Skip to content

feat(cli): lead the CLI install with the native binary - #449

Merged
harlan-zw merged 1 commit into
mainfrom
feat/cli-native-install
Oct 6, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
feat/cli-native-install

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

None.

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

A native skilld install upgrades itself from signed releases. An npm install only prints a notice and waits for you to run npm. /cli still led with npm and kept the native command in a macOS and Linux aside. Windows had no native command on the site, although the latest release ships install.ps1.

  • The /cli hero now has a macOS / Linux, Windows, npm switch above the CLI install chip, with macOS / Linux preselected. A line under the chip says what each choice gives you.
  • skilld.dev/install.sh and skilld.dev/install.ps1 answer with a 302 to releases/latest/download. The install URL drops from 72 characters to 29, and GitHub Releases still serves every script and binary.
  • CLI_INSTALL_SCRIPTS in shared/skill-commands.ts feeds the route rules, the printed commands, and the production smoke check. The smoke check expects both 302s, so a lost redirect rolls the deploy back.
  • The switch inside RunChip moved to _ChipSwitch, so both chips draw the same control.
  • The /docs/cli header and its generator lead with the native command and list all three.
  • COPY.md records the switch labels and the two consequence lines.

npx skilld run and npx skilld install skilld --global stay on npx. A one-off command needs no install.

The native path has little use so far. install.sh has 26 downloads across all releases, and install.ps1 has none. npm had 1,916 downloads from 28 September to 4 October.

Architecture after this change: one constant in skill-commands.ts feeds the /cli chip, the docs, the 302 route rules, and the smoke check; the copied command hits skilld.dev, which redirects to GitHub Releases

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

The native install upgrades itself from signed releases; an npm install waits for npm. The /cli hero now picks macOS / Linux, Windows, or npm, native first. skilld.dev/install.sh and /install.ps1 302 to the latest release so the printed commands stay short, and the production smoke check guards both.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 6, 2026
@harlan-zw

Copy link
Copy Markdown
Collaborator Author

Agent check of the built Worker (pnpm build, then wrangler dev), since CI cannot cover it:

  • GET /install.sh and GET /install.ps1 answered 302 with the releases/latest/download Location. curl -fsSL http://localhost:3517/install.sh followed it and printed the real script.
  • In headless Chrome, the Windows option swapped the chip to irm https://skilld.dev/install.ps1 | iex, and npm swapped it to npm install --global skilld.
  • The RunChip run and install switch renders the same after the move to _ChipSwitch.
Dark, default Light, Windows Mobile
Dark, default Light, Windows Mobile

@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 6, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-06 03:34 UTC.

GitHub merged this pull request.

  • Logged (25/100): The pull request's visual evidence, the hero platform switch in dark, light, and mobile, could not be inspected as pixels from this review session.
    • Ask an agent to verify and fix this finding

de1dcbd6-2936-488d-ab7c-7bfd1755a5cd

Selected findings run after merge and open separate pull requests.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 6, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: READY.

Read the Review results

@harlan-zw
harlan-zw merged commit e12b0d0 into main Oct 6, 2026
7 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Oct 6, 2026
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.

1 participant