fix(limps): finalize grouped CLI migration and completion UX#138
Merged
paulbreuler merged 3 commits intomainfrom Feb 11, 2026
Merged
fix(limps): finalize grouped CLI migration and completion UX#138paulbreuler merged 3 commits intomainfrom
paulbreuler merged 3 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Completes the migration of limps CLI to canonical grouped commands (e.g., limps server start, limps plan ..., limps docs ...), and adds an env-driven completion engine plus UX fixes around help text, init guidance, and exit semantics.
Changes:
- Reorganizes CLI commands into grouped modules and updates help/README/examples to match the new hierarchy.
- Introduces a new completion core (
LIMPS_COMPLETE=1) and updates completion suggestions/behavior + adds regression tests. - Improves UX correctness (canonical
initnext steps, updated daemon guidance strings, non-zero exit on missing required scoring flags).
Reviewed changes
Copilot reviewed 47 out of 47 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/limps/tests/cli/tags.test.ts | Updates tests to use limps docs tags ... group. |
| packages/limps/tests/cli/score-task-command.test.tsx | Adds UX coverage for limps plan score guidance + scoring output. |
| packages/limps/tests/cli/process.test.tsx | Updates imports for grouped docs process command module. |
| packages/limps/tests/cli/init-project.test.ts | Adds regression test for canonical daemon management instructions in init output. |
| packages/limps/tests/cli/e2e.test.ts | Updates e2e CLI invocations to grouped commands; asserts internal completion command hidden; checks non-zero exits. |
| packages/limps/tests/cli/completion.test.ts | Adds completion engine + completion script wiring tests. |
| packages/limps/tests/cli/commands.test.tsx | Updates Pastel command module imports to grouped plan commands. |
| packages/limps/src/utils/daemon-manager.ts | Updates daemon-start error guidance to limps server start. |
| packages/limps/src/server-http.ts | Updates daemon conflict guidance strings to limps server .... |
| packages/limps/src/server-http-entry.ts | Updates comment to reflect new spawn source command. |
| packages/limps/src/core/task-target.ts | Adds shared helper to resolve a task ID from --plan/--agent. |
| packages/limps/src/core/completion.ts | Adds completion suggestion engine + generated shell scripts. |
| packages/limps/src/core/command-context.ts | Adds shared config resolution/loading helper for commands. |
| packages/limps/src/commands/server/stop.tsx | Migrates to grouped server module layout and shared command context loader. |
| packages/limps/src/commands/server/status.tsx | Migrates imports + uses shared command context loader. |
| packages/limps/src/commands/server/start.tsx | Migrates imports + updates entry path and user-facing guidance strings. |
| packages/limps/src/commands/server/index.tsx | Adds grouped server index/help command. |
| packages/limps/src/commands/server/bridge.tsx | Migrates to grouped server module layout + updates guidance strings. |
| packages/limps/src/commands/plan/status.tsx | Migrates to grouped plan module layout + updates help usage/examples. |
| packages/limps/src/commands/plan/scores.tsx | Switches to --plan option, adds non-zero exit behavior on missing required flags. |
| packages/limps/src/commands/plan/score.tsx | Switches to --plan/--agent options; adds non-zero exit behavior on missing required flags. |
| packages/limps/src/commands/plan/repair.tsx | Migrates imports + updates user guidance to limps plan repair. |
| packages/limps/src/commands/plan/next.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/plan/list.tsx | Migrates imports + uses shared command context loader. |
| packages/limps/src/commands/plan/index.tsx | Adds grouped plan index/help command. |
| packages/limps/src/commands/plan/create.tsx | Migrates imports + uses shared command context loader. |
| packages/limps/src/commands/plan/agents.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/index.tsx | Updates root help to emphasize grouped commands and new completion command. |
| packages/limps/src/commands/docs/update.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/tags/remove.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/tags/list.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/tags/index.tsx | Updates nested tags help to limps docs tags .... |
| packages/limps/src/commands/docs/tags/add.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/search.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/reindex.tsx | Migrates imports + uses shared command context loader. |
| packages/limps/src/commands/docs/process.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/list.tsx | Migrates imports + uses shared command context loader. |
| packages/limps/src/commands/docs/index.tsx | Adds grouped docs index/help command. |
| packages/limps/src/commands/docs/delete.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/docs/create.tsx | Migrates imports + updates help usage/examples to grouped form. |
| packages/limps/src/commands/completion.tsx | Adds user-facing limps completion <shell> command. |
| packages/limps/src/cli/next-task.ts | Updates warning guidance to limps plan repair .... |
| packages/limps/src/cli/init-project.ts | Updates init next steps and daemon management examples to grouped commands. |
| packages/limps/src/cli/config-cmd.ts | Updates generated instructions to limps server start. |
| packages/limps/src/cli.tsx | Adds env-driven completion request handling and updates foreground start bypass to grouped command. |
| packages/limps/package.json | Makes build cleanup cross-platform by removing dist before tsc. |
| README.md | Updates examples and docs to canonical grouped CLI hierarchy and removes invalid command examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merged
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.
Summary
server,plan,docs,config,health,graph,proposals,completion)src/core/Changes
packages/limps/src/commands/{server,plan,docs}/packages/limps/src/core/command-context.tsandpackages/limps/src/core/task-target.tspackages/limps/src/core/completion.ts__completecommand exposure from--help; switch scripts to env-based internal completion (LIMPS_COMPLETE=1)health drift,proposals list), add missing options (docs process --config), and honor typed--configtokens for plan/agent suggestionslimps initnext-step output to canonicallimps server start --config ...start --foregroundbootstrap path in CLI entryplan score/plan scorespackages/limps/package.json(node -e fs.rmSync(...))proposals [plan], removehealth driftCLI example)--configtoken context, and completion script wiringinit-projectoutput test for canonical startup commandTests
npm run build(packages/limps)npm test -- tests/cli/completion.test.ts tests/cli/e2e.test.ts tests/cli/init-project.test.ts tests/cli/score-task-command.test.tsx(packages/limps)packages/limps: 123 files / 1397 tests passedpackages/limps-headless: 21 files / 317 tests passedCode Review
/mcp-code-reviewskill not available in this session)initoutput, foreground bootstrap alias)Breaking Changes
limps server start,limps plan list,limps docs search, etc.)limps completion <shell>)BREAKING CHANGE:; this section documents operational migration impact for this PR.Notes / Risks
LIMPS_COMPLETE=1) and should be re-sourced in user shells after upgradePlan / Agent (if applicable)