Repository navigation
Fix/pi setup host support - #10
Merged
Merged
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR extends the real ./setup installer to support --host pi, aligning setup-time host selection with the existing Pi host config + generated Pi skill docs.
Changes:
- Add
pito./setup --hostvalidation and auto-detection, and install/link Pi skills into$HOME/.pi/agent/skills. - Update setup validation tests to include Pi host support and Pi-specific runtime assets.
- Update host registry tests to include the Pi host export and updated host count.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| test/host-config.test.ts | Updates host registry assertions to include pi and the new host count. |
| test/gen-skill-docs.test.ts | Extends setup script validation tests to cover --host pi behavior and expected setup content. |
| setup | Adds Pi host install mode, generation step, and Pi runtime-root/skill linking logic. |
| hosts/README.md | Adds a follow-up section documenting that setup --host pi support landed (but currently includes pasted diff content). |
Comments suppressed due to low confidence (1)
test/gen-skill-docs.test.ts:2285
setupnow detects Pi in auto mode (command -v piwas added), but this test doesn't assert that. Add the expectation (and update the test name) so the new behavior is covered.
test('auto mode detects claude, codex, kiro, and opencode binaries', () => {
expect(setupContent).toContain('command -v claude');
expect(setupContent).toContain('command -v codex');
expect(setupContent).toContain('command -v kiro-cli');
expect(setupContent).toContain('command -v opencode');
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+850
to
+867
| if [ -f "$pi_dir/gstack/SKILL.md" ]; then | ||
| ln -snf "$pi_dir/gstack/SKILL.md" "$pi_gstack/SKILL.md" | ||
| fi | ||
| if [ -d "$gstack_dir/bin" ]; then | ||
| ln -snf "$gstack_dir/bin" "$pi_gstack/bin" | ||
| fi | ||
| if [ -d "$gstack_dir/browse/dist" ]; then | ||
| ln -snf "$gstack_dir/browse/dist" "$pi_gstack/browse/dist" | ||
| fi | ||
| if [ -d "$gstack_dir/browse/bin" ]; then | ||
| ln -snf "$gstack_dir/browse/bin" "$pi_gstack/browse/bin" | ||
| fi | ||
| if [ -d "$gstack_dir/design/dist" ]; then | ||
| ln -snf "$gstack_dir/design/dist" "$pi_gstack/design/dist" | ||
| fi | ||
| if [ -f "$pi_dir/gstack-upgrade/SKILL.md" ]; then | ||
| ln -snf "$pi_dir/gstack-upgrade/SKILL.md" "$pi_gstack/gstack-upgrade/SKILL.md" | ||
| fi |
Comment on lines
+868
to
+887
| for f in checklist.md design-checklist.md greptile-triage.md TODOS-format.md; do | ||
| if [ -f "$gstack_dir/review/$f" ]; then | ||
| ln -snf "$gstack_dir/review/$f" "$pi_gstack/review/$f" | ||
| fi | ||
| done | ||
| if [ -d "$gstack_dir/review/specialists" ]; then | ||
| ln -snf "$gstack_dir/review/specialists" "$pi_gstack/review/specialists" | ||
| fi | ||
| if [ -d "$gstack_dir/qa/templates" ]; then | ||
| ln -snf "$gstack_dir/qa/templates" "$pi_gstack/qa/templates" | ||
| fi | ||
| if [ -d "$gstack_dir/qa/references" ]; then | ||
| ln -snf "$gstack_dir/qa/references" "$pi_gstack/qa/references" | ||
| fi | ||
| if [ -f "$gstack_dir/plan-devex-review/dx-hall-of-fame.md" ]; then | ||
| ln -snf "$gstack_dir/plan-devex-review/dx-hall-of-fame.md" "$pi_gstack/plan-devex-review/dx-hall-of-fame.md" | ||
| fi | ||
| if [ -f "$gstack_dir/ETHOS.md" ]; then | ||
| ln -snf "$gstack_dir/ETHOS.md" "$pi_gstack/ETHOS.md" | ||
| fi |
| [ "$skill_name" = "gstack" ] && continue | ||
| target="$skills_dir/$skill_name" | ||
| if [ -L "$target" ] || [ ! -e "$target" ]; then | ||
| ln -snf "$skill_dir" "$target" |
| if [ -d "$pi_dir/gstack-office-hours" ]; then | ||
| local repo_office_hours_alias="$pi_dir/office-hours" | ||
| if [ -L "$repo_office_hours_alias" ] || [ ! -e "$repo_office_hours_alias" ]; then | ||
| ln -snf "$pi_dir/gstack-office-hours" "$repo_office_hours_alias" |
| if [ -d "$skills_dir/gstack-office-hours" ]; then | ||
| local office_hours_alias="$skills_dir/office-hours" | ||
| if [ -L "$office_hours_alias" ] || [ ! -e "$office_hours_alias" ]; then | ||
| ln -snf "$skills_dir/gstack-office-hours" "$office_hours_alias" |
Comment on lines
+779
to
+783
| For the exact implementation details, see the commit or PR that introduced this | ||
| change rather than duplicating the full patch in this README. | ||
| done | ||
|
|
||
| case "$HOST" in |
…p script to use bun_cmd, keep dev/main test in test/gen-skill-docs.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.