vgxness 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +16 -16
  2. package/dist/agents/agent-activation-service.js +9 -5
  3. package/dist/cli/commands/interactive-entrypoint-dispatcher.js +4 -4
  4. package/dist/cli/commands/setup-dispatcher.js +4 -4
  5. package/dist/cli/doctor-renderer.js +1 -1
  6. package/dist/cli/sdd-renderer.js +7 -7
  7. package/dist/cli/setup-status-renderer.js +1 -0
  8. package/dist/cli/tui/main-menu/main-menu-read-model.js +8 -0
  9. package/dist/cli/tui/main-menu/main-menu-render-shape.js +14 -1
  10. package/dist/cli/tui/opentui/code/index.js +4 -4
  11. package/dist/cli/tui/opentui/main-menu/screen.js +6 -0
  12. package/dist/cli/tui/opentui/setup/screen.js +1 -1
  13. package/dist/cli/tui/opentui/setup/smoke.js +1 -1
  14. package/dist/cli/tui/setup/setup-tui-read-model.js +3 -3
  15. package/dist/cli/tui/setup/setup-tui-render-shape.js +8 -9
  16. package/dist/cli/tui/setup/setup-tui-state.js +1 -1
  17. package/dist/code/runtime/sdd-context.js +2 -2
  18. package/dist/mcp/validation.js +6 -2
  19. package/dist/orchestrator/natural-language-planner.js +1 -1
  20. package/dist/sdd/sdd-workflow-service.js +1 -1
  21. package/dist/setup/backup-rollback-service.js +2 -2
  22. package/dist/setup/setup-lifecycle-service.js +6 -6
  23. package/dist/setup/setup-plan.js +3 -3
  24. package/dist/verification/verification-plan-service.js +1 -1
  25. package/docs/architecture.md +39 -38
  26. package/docs/cli.md +134 -127
  27. package/docs/funcionamiento-del-sistema.md +16 -16
  28. package/docs/harness-gap-analysis.md +15 -1
  29. package/docs/prd.md +10 -10
  30. package/docs/vgxcode.md +20 -9
  31. package/docs/vgxness-code.md +6 -4
  32. package/package.json +1 -1
  33. package/dist/cli/guided-main-menu.js +0 -470
  34. package/dist/cli/setup-wizard-read-model.js +0 -72
  35. package/dist/cli/setup-wizard-renderer.js +0 -155
  36. package/dist/cli/setup-wizard-state.js +0 -82
@@ -21,7 +21,7 @@ const templates = {
21
21
  },
22
22
  cli: {
23
23
  rationale: ['CLI changes affect TypeScript dispatch/rendering paths and user-visible behavior.', 'Only typecheck is currently allowlisted; CLI execution remains manual/copy-only.'],
24
- recommendations: [typecheckRecommendation(), manualRecommendation('manual-cli-smoke', 'Smoke-test CLI command manually', 'Use npm run cli -- <command> as copy-only text for an operator-selected CLI scenario.', 'npm run cli -- <command>')],
24
+ recommendations: [typecheckRecommendation(), manualRecommendation('manual-cli-smoke', 'Smoke-test CLI command manually', 'Use bun run cli:bun -- <command> as copy-only text for an operator-selected CLI scenario.', 'bun run cli:bun -- <command>')],
25
25
  manualChecks: [manualCheck('review-cli-output', 'Review CLI output shape', 'Confirm human output is concise and JSON output remains structured where applicable.')],
26
26
  },
27
27
  mcp: {
@@ -30,7 +30,7 @@ Human operator AI coding tool / agent
30
30
  │ │
31
31
  ├───────────────┐ │
32
32
  ▼ ▼ ▼
33
- CLI (`vgx`) TUI (`vgx`) MCP server (`vgx mcp start`)
33
+ CLI (`vgxness`) TUI (`vgxness`) MCP server (`vgxness mcp start`)
34
34
  │ │ │
35
35
  └───────────────┴──────────┬───────────┘
36
36
 
@@ -142,7 +142,7 @@ Current service API:
142
142
 
143
143
  Artifact read/list surfaces use the full-content `artifacts` table in the selected local SQLite memory store. They do **not** read Engram search previews, and they do **not** create or modify `openspec/` paths.
144
144
 
145
- The CLI exposes the same boundary through `npm run cli -- sdd status|ready|save-artifact|get-artifact|list-artifacts`. These commands do **not** execute providers, continue phases automatically, create `openspec/`, or write `.opencode/`, `.claude/`, or user/global provider config.
145
+ The CLI exposes the same boundary through `vgxness sdd status|ready|save-artifact|get-artifact|list-artifacts`. These commands do **not** execute providers, continue phases automatically, create `openspec/`, or write `.opencode/`, `.claude/`, or user/global provider config.
146
146
 
147
147
  ### Target architecture
148
148
 
@@ -187,7 +187,7 @@ This plane should remain separate from runtime execution. Rendering OpenCode, Cl
187
187
  The CLI exposes this through:
188
188
 
189
189
  ```bash
190
- npm run cli -- orchestrator preview --project vgxness --intent "..." [--change <id>] [--db <path>]
190
+ vgxness orchestrator preview --project vgxness --intent "..." [--change <id>] [--db <path>]
191
191
  ```
192
192
 
193
193
  This seam is intentionally non-executing. It may read SDD status/next context for a supplied change from the selected local SQLite store, but it does not call providers, invoke run preflight, edit code, write provider config, create run records, install global memory, or create `openspec/`. Future live orchestration must build on this explicit preview contract instead of bypassing it with prompt-only routing.
@@ -199,9 +199,9 @@ The MCP server is the agent-facing control plane. It should expose typed, narrow
199
199
  Current MCP operator verification uses two short-lived CLI commands before connecting a client:
200
200
 
201
201
  ```bash
202
- npm run cli -- mcp setup --preview --provider opencode --db <path>
203
- npm run cli -- mcp setup --preview --provider claude --db <path>
204
- npm run cli -- mcp doctor --db <path> --project vgxness --change manual-smoke
202
+ vgxness mcp setup --preview --provider opencode --db <path>
203
+ vgxness mcp setup --preview --provider claude --db <path>
204
+ vgxness mcp doctor --db <path> --project vgxness --change manual-smoke
205
205
  ```
206
206
 
207
207
  `mcp setup --preview` returns copyable stdio client snippets only. It is read-only and must not write `.opencode/`, `.claude/`, or provider config. `mcp doctor` verifies local readiness with JSON checks and may prepare/use the selected SQLite DB, but it does not mutate provider configuration.
@@ -223,15 +223,15 @@ The CLI is the scriptable operator surface. It should be predictable, dry-run fr
223
223
  Command shape should stay verb-first and grouped by product concept:
224
224
 
225
225
  ```bash
226
- vgx init
227
- vgx doctor
228
- vgx status
229
- vgx mcp install opencode
230
- vgx mcp status
231
- vgx sdd status <change>
232
- vgx sdd next <change>
233
- vgx profiles list
234
- vgx profiles set apply <model>
226
+ vgxness init
227
+ vgxness doctor
228
+ vgxness status
229
+ vgxness mcp install opencode
230
+ vgxness mcp status
231
+ vgxness sdd status <change>
232
+ vgxness sdd next <change>
233
+ vgxness profiles list
234
+ vgxness profiles set apply <model>
235
235
  ```
236
236
 
237
237
  ### TUI boundary
@@ -324,7 +324,7 @@ Harness tools expose the same registry through `createAgentRegistryToolHandlers(
324
324
  | `getAgent({ id })` / `getAgentByName({ project, scope, name })` | Read full definitions for execution or adapter rendering. |
325
325
  | `listAgents(filters)` / `listSubagents({ parentAgentId })` | Discover available agents and parent-child relationships. |
326
326
 
327
- The minimal CLI exposes this same registry for local terminal use through `npm run cli -- agents register|list|get` and `npm run cli -- subagents register|list|get`. It stays thin: flag/JSON-file parsing, SQLite opening, and JSON formatting only; registry rules remain in the service/tool boundary.
327
+ The minimal CLI exposes this same registry for local terminal use through `vgxness agents register|list|get` and `vgxness subagents register|list|get`. It stays thin: flag/JSON-file parsing, SQLite opening, and JSON formatting only; registry rules remain in the service/tool boundary.
328
328
 
329
329
  Current agent resolution v1 is provider-agnostic, deterministic, and rule-based. It accepts project/scope, task text or intent, desired capabilities, workflow/phase, provider adapter, and optional `agent`/`subagent` mode. Resolution reads existing agent definitions only, then scores compatible candidates with transparent reasons:
330
330
 
@@ -338,8 +338,8 @@ Current agent resolution v1 is provider-agnostic, deterministic, and rule-based.
338
338
  Incompatible definitions are returned under `skipped` with reasons such as project/scope mismatch, mode mismatch, provider adapter mismatch, workflow mismatch, or capability mismatch. Ties are stable: higher score first, then top-level agents before subagents, then agent name/id.
339
339
 
340
340
  ```bash
341
- npm run cli -- agents resolve --project vgxness --capabilities implementation,typescript --workflow sdd --phase apply --provider opencode --task "Implement the next SDD apply slice"
342
- npm run cli -- agents resolve --project vgxness --mode subagent --capabilities review --workflow sdd --phase verify
341
+ vgxness agents resolve --project vgxness --capabilities implementation,typescript --workflow sdd --phase apply --provider opencode --task "Implement the next SDD apply slice"
342
+ vgxness agents resolve --project vgxness --mode subagent --capabilities review --workflow sdd --phase verify
343
343
  ```
344
344
 
345
345
  Resolution v1 does **not** call an AI/model ranker, execute agents, mutate provider config, install tools, choose a model dynamically, or create/update provider files. Future orchestration can use these ranked candidates as one explicit input, but current behavior is explainable metadata matching only.
@@ -375,15 +375,15 @@ Skill improvement proposals are the current controlled foundation for self-impro
375
375
  CLI examples:
376
376
 
377
377
  ```bash
378
- npm run cli -- skills register --project vgxness --name sdd-apply --description "Applies SDD tasks"
379
- npm run cli -- skills add-version --project vgxness --name sdd-apply --version 1.0.0 --source-kind path --source-path .config/opencode/skills/sdd-apply/SKILL.md --activate
380
- npm run cli -- skills attach --project vgxness --name sdd-apply --target-type workflow-phase --target-key sdd:apply
381
- npm run cli -- skills resolve --agent apply-agent --project vgxness --workflow sdd --phase apply --provider opencode
382
- npm run cli -- skills payload --agent apply-agent --project vgxness --workflow sdd --phase apply --provider opencode
383
- npm run cli -- skills propose --project vgxness --name sdd-apply --proposed-version 1.1.0 --source-kind inline --inline-metadata '{"content":"Updated skill"}' --rationale "Repeated correction from trace"
384
- npm run cli -- skills submit-proposal --proposal <proposal-id> --actor uziel
385
- npm run cli -- skills approve-proposal --proposal <proposal-id> --actor uziel --reason "Reviewed diff"
386
- npm run cli -- skills apply-proposal --proposal <proposal-id> --actor uziel
378
+ vgxness skills register --project vgxness --name sdd-apply --description "Applies SDD tasks"
379
+ vgxness skills add-version --project vgxness --name sdd-apply --version 1.0.0 --source-kind path --source-path .config/opencode/skills/sdd-apply/SKILL.md --activate
380
+ vgxness skills attach --project vgxness --name sdd-apply --target-type workflow-phase --target-key sdd:apply
381
+ vgxness skills resolve --agent apply-agent --project vgxness --workflow sdd --phase apply --provider opencode
382
+ vgxness skills payload --agent apply-agent --project vgxness --workflow sdd --phase apply --provider opencode
383
+ vgxness skills propose --project vgxness --name sdd-apply --proposed-version 1.1.0 --source-kind inline --inline-metadata '{"content":"Updated skill"}' --rationale "Repeated correction from trace"
384
+ vgxness skills submit-proposal --proposal <proposal-id> --actor uziel
385
+ vgxness skills approve-proposal --proposal <proposal-id> --actor uziel --reason "Reviewed diff"
386
+ vgxness skills apply-proposal --proposal <proposal-id> --actor uziel
387
387
  ```
388
388
 
389
389
  V1 does **not** autonomously detect trace patterns, mutate skill files, activate autonomous updates, evaluate proposed quality, or write external skill/provider configuration. Proposal creation is reviewable, and activation is gated by explicit approval plus explicit apply.
@@ -428,8 +428,8 @@ Renderers currently include:
428
428
  | `opencode` | `rendered/opencode/<project>/<scope>/<agent>/opencode.json` | Single config preview with `$schema` and `agent` object. Top-level agents default to `primary`; subagents render as `subagent`. |
429
429
 
430
430
  ```bash
431
- npm run cli -- agents render --provider json --project vgxness --name apply-agent
432
- npm run cli -- agents render --provider opencode --project vgxness --name apply-agent
431
+ vgxness agents render --provider json --project vgxness --name apply-agent
432
+ vgxness agents render --provider opencode --project vgxness --name apply-agent
433
433
  ```
434
434
 
435
435
  Rendering is intentionally read-only: it returns generated content in the CLI response. It does **not** write `.opencode/`, `.claude/`, or any user/global provider config.
@@ -442,7 +442,7 @@ Claude Code rendering remains follow-up work after its exact install-safe artifa
442
442
  The current OpenCode integration also exposes a preview-only composition seam through `OpenCodeInjectionPreviewService` and the thin CLI command:
443
443
 
444
444
  ```bash
445
- npm run cli -- opencode preview --provider opencode --agent apply-agent --project vgxness --change checkout-flow --phase apply-progress
445
+ vgxness opencode preview --provider opencode --agent apply-agent --project vgxness --change checkout-flow --phase apply-progress
446
446
  ```
447
447
 
448
448
  This preview lives in the provider adapter/preview layer, not in provider-agnostic core services. It composes existing read-only outputs:
@@ -620,16 +620,17 @@ Agent and subagent registry definitions keep neutral `permissions` such as `{ "s
620
620
 
621
621
  ## Future interface surface
622
622
 
623
- Candidate future CLI surface beyond the current minimal local CLI documented in `docs/cli.md`:
623
+ Current and near-term CLI surface should build on the plural domain commands documented in `docs/cli.md`. Future shortcuts can be added later, but they should not imply separate singular command families:
624
624
 
625
625
  ```bash
626
- vgx init
627
- vgx memory search|get|save|update
628
- vgx agent list|add|validate|render
629
- vgx skill list|add|propose|approve|reject
630
- vgx sdd new|continue|status|archive
631
- vgx run list|show|resume
632
- vgx adapter doctor|render
626
+ vgxness init
627
+ vgxness memory search|get|save|update
628
+ vgxness agents list|register|get|resolve|render
629
+ vgxness skills list|register|propose|approve-proposal|apply-proposal
630
+ vgxness sdd status|next|ready|save-artifact|accept-artifact|list-artifacts
631
+ vgxness runs list|get|timeline|debug|resume-inspect|resume-gate
632
+ vgxness mcp doctor|install
633
+ vgxness opencode preview
633
634
  ```
634
635
 
635
636
  Representative MCP tools mirror the same core services for agent use. For the current exact tool names, use `SUPPORTED_VGX_MCP_TOOL_NAMES`: