Skip to content

hosted: advertise skills and update in help + completion - #454

Merged
ankitranjan7 merged 8 commits into
mainfrom
feat/hosted-advertise-skills-update
Aug 27, 2026
Merged

hosted: advertise skills and update in help + completion#454
ankitranjan7 merged 8 commits into
mainfrom
feat/hosted-advertise-skills-update

Conversation

@ankitranjan7

Copy link
Copy Markdown
Contributor

Summary

  • webcmd skills and webcmd update are already routed to the local program before hosted dispatch (src/main.ts:78) and run under hosted configuration — verified by an existing test at src/hosted/main-lifecycle.test.ts:128 that asserts skills add succeeds with zero Cloud requests. But hosted root help listed skills under localOnlyCommands and omitted update entirely, and hosted completion derives from the advertised array (src/completion-shared.ts:67) so it offered neither.
  • Moves skills and update into HOSTED_ROOT_HELP.commands so hosted help lists them correctly and completion picks them up.
  • Drops the "Run `webcmd setup` and choose local mode to use local-only commands." footer from root help — it over-claimed. The footer string stays exported and is still attached to the daemon and doctor errors, where it is accurate.

Test plan

  • New unit tests in `src/completion-shared.test.ts` (8 cases) cover: advertised set includes skills/update, completion set includes them, daemon still local-only, no double-listing, root help no longer contains the footer, and `LOCAL_ONLY_COMMAND_HELP` remains exported for reuse.
  • Two hosted snapshot updates in `src/hosted/manifest.test.ts` (bundled as a fixup) match the new advertised-command shape.
  • Focused suites green: `completion-shared`, `hosted`, `command-presentation`, `cli`.

Notes

  • Part 1 of 3 slices from a hosted-parity design that ships the client-owned surface. The other two (external CLI passthrough, doctor exit contract) are independent PRs against `main`.

🤖 Generated with Claude Code

ankitranjan7 and others added 3 commits August 27, 2026 15:46
Both are routed to the local program before hosted dispatch and already
run under hosted configuration, but help listed skills as local-only and
omitted update, and completion is derived from the advertised array so it
offered neither.

Drops the choose-local-mode footer from root help, where it over-claimed.
The string stays on the daemon and doctor errors, where it is accurate.
Task 1 added `skills` and `update` to the advertised hosted commands and
dropped the local-mode footer from root help. Two hosted test files still
asserted the old shape.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🟠 Maintainer review suggested — low confidence

The automated review could not reach a fully supported conclusion.

This review is advisory and does not block merging.

@ankitranjan7
ankitranjan7 merged commit bf16357 into main Aug 27, 2026
19 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.

1 participant