Skip to content

Fix/pi setup host support - #10

Merged
adamtasteslikegood merged 5 commits into
dev/mainfrom
fix/pi-setup-host-support
Jul 18, 2026
Merged

adamtasteslikegood merged 5 commits into
dev/mainfrom
fix/pi-setup-host-support

Conversation

@adamtasteslikegood

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2026 13:51
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 pi to ./setup --host validation 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

  • setup now detects Pi in auto mode (command -v pi was 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 thread setup
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 thread setup
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
Comment thread setup
[ "$skill_name" = "gstack" ] && continue
target="$skills_dir/$skill_name"
if [ -L "$target" ] || [ ! -e "$target" ]; then
ln -snf "$skill_dir" "$target"
Comment thread setup
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"
Comment thread setup
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 thread hosts/README.md Outdated
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
@adamtasteslikegood
adamtasteslikegood merged commit 8a2ed71 into dev/main Jul 18, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants