devworkspace 0.4.5 → 0.5.1

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 (263) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +7 -0
  3. package/dist/cli/args.d.ts +30 -0
  4. package/dist/cli/args.js +10 -0
  5. package/dist/cli/args.js.map +1 -1
  6. package/dist/cli/help.js +134 -0
  7. package/dist/cli/help.js.map +1 -1
  8. package/dist/cli/render.d.ts +6 -0
  9. package/dist/cli/render.js +106 -0
  10. package/dist/cli/render.js.map +1 -1
  11. package/dist/cli/run.js +351 -1
  12. package/dist/cli/run.js.map +1 -1
  13. package/dist/core/contracts.d.ts +70 -0
  14. package/dist/core/contracts.js +88 -0
  15. package/dist/core/contracts.js.map +1 -0
  16. package/dist/discovery/commands.d.ts +1 -1
  17. package/dist/discovery/commands.js.map +1 -1
  18. package/dist/discovery/detect.d.ts +2 -70
  19. package/dist/discovery/detect.js.map +1 -1
  20. package/dist/discovery/entrypoints.d.ts +2 -11
  21. package/dist/discovery/entrypoints.js.map +1 -1
  22. package/dist/discovery/types.d.ts +79 -0
  23. package/dist/discovery/types.js +2 -0
  24. package/dist/discovery/types.js.map +1 -0
  25. package/dist/dx/dashboard.d.ts +21 -0
  26. package/dist/dx/dashboard.js +274 -0
  27. package/dist/dx/dashboard.js.map +1 -0
  28. package/dist/dx/guidance.d.ts +21 -0
  29. package/dist/dx/guidance.js +266 -0
  30. package/dist/dx/guidance.js.map +1 -0
  31. package/dist/dx/index.d.ts +4 -0
  32. package/dist/dx/index.js +5 -0
  33. package/dist/dx/index.js.map +1 -0
  34. package/dist/dx/onboarding.d.ts +23 -0
  35. package/dist/dx/onboarding.js +155 -0
  36. package/dist/dx/onboarding.js.map +1 -0
  37. package/dist/dx/types.d.ts +70 -0
  38. package/dist/dx/types.js +3 -0
  39. package/dist/dx/types.js.map +1 -0
  40. package/dist/index.d.ts +35 -0
  41. package/dist/index.js +28 -0
  42. package/dist/index.js.map +1 -1
  43. package/dist/integrations/persistentPath.d.ts +2 -9
  44. package/dist/integrations/persistentPath.js.map +1 -1
  45. package/dist/integrations/types.d.ts +4 -1
  46. package/dist/integrations/types.js.map +1 -1
  47. package/dist/intelligence/agents/profiles.d.ts +2 -0
  48. package/dist/intelligence/agents/profiles.js +326 -0
  49. package/dist/intelligence/agents/profiles.js.map +1 -0
  50. package/dist/intelligence/agents/registry.d.ts +15 -0
  51. package/dist/intelligence/agents/registry.js +108 -0
  52. package/dist/intelligence/agents/registry.js.map +1 -0
  53. package/dist/intelligence/agents/types.d.ts +43 -0
  54. package/dist/intelligence/agents/types.js +2 -0
  55. package/dist/intelligence/agents/types.js.map +1 -0
  56. package/dist/intelligence/observability/tracer.d.ts +13 -0
  57. package/dist/intelligence/observability/tracer.js +129 -0
  58. package/dist/intelligence/observability/tracer.js.map +1 -0
  59. package/dist/intelligence/observability/types.d.ts +38 -0
  60. package/dist/intelligence/observability/types.js +2 -0
  61. package/dist/intelligence/observability/types.js.map +1 -0
  62. package/dist/intelligence/orchestration/engine.d.ts +51 -0
  63. package/dist/intelligence/orchestration/engine.js +578 -0
  64. package/dist/intelligence/orchestration/engine.js.map +1 -0
  65. package/dist/intelligence/orchestration/lock-manager.d.ts +21 -0
  66. package/dist/intelligence/orchestration/lock-manager.js +70 -0
  67. package/dist/intelligence/orchestration/lock-manager.js.map +1 -0
  68. package/dist/intelligence/orchestration/store.d.ts +11 -0
  69. package/dist/intelligence/orchestration/store.js +73 -0
  70. package/dist/intelligence/orchestration/store.js.map +1 -0
  71. package/dist/intelligence/orchestration/types.d.ts +111 -0
  72. package/dist/intelligence/orchestration/types.js +48 -0
  73. package/dist/intelligence/orchestration/types.js.map +1 -0
  74. package/dist/intelligence/routing/matcher.d.ts +7 -0
  75. package/dist/intelligence/routing/matcher.js +96 -0
  76. package/dist/intelligence/routing/matcher.js.map +1 -0
  77. package/dist/intelligence/routing/router.d.ts +9 -0
  78. package/dist/intelligence/routing/router.js +198 -0
  79. package/dist/intelligence/routing/router.js.map +1 -0
  80. package/dist/intelligence/routing/types.d.ts +64 -0
  81. package/dist/intelligence/routing/types.js +2 -0
  82. package/dist/intelligence/routing/types.js.map +1 -0
  83. package/dist/intelligence/runtime/adk/adapter.d.ts +7 -0
  84. package/dist/intelligence/runtime/adk/adapter.js +49 -0
  85. package/dist/intelligence/runtime/adk/adapter.js.map +1 -0
  86. package/dist/intelligence/runtime/adk/detector.d.ts +7 -0
  87. package/dist/intelligence/runtime/adk/detector.js +28 -0
  88. package/dist/intelligence/runtime/adk/detector.js.map +1 -0
  89. package/dist/intelligence/runtime/boundary.d.ts +30 -0
  90. package/dist/intelligence/runtime/boundary.js +163 -0
  91. package/dist/intelligence/runtime/boundary.js.map +1 -0
  92. package/dist/intelligence/runtime/external.d.ts +9 -0
  93. package/dist/intelligence/runtime/external.js +76 -0
  94. package/dist/intelligence/runtime/external.js.map +1 -0
  95. package/dist/intelligence/runtime/native.d.ts +19 -0
  96. package/dist/intelligence/runtime/native.js +67 -0
  97. package/dist/intelligence/runtime/native.js.map +1 -0
  98. package/dist/intelligence/runtime/types.d.ts +77 -0
  99. package/dist/intelligence/runtime/types.js +12 -0
  100. package/dist/intelligence/runtime/types.js.map +1 -0
  101. package/dist/intelligence/security/audit.d.ts +8 -0
  102. package/dist/intelligence/security/audit.js +43 -0
  103. package/dist/intelligence/security/audit.js.map +1 -0
  104. package/dist/intelligence/security/policy.d.ts +12 -0
  105. package/dist/intelligence/security/policy.js +153 -0
  106. package/dist/intelligence/security/policy.js.map +1 -0
  107. package/dist/intelligence/security/types.d.ts +25 -0
  108. package/dist/intelligence/security/types.js +2 -0
  109. package/dist/intelligence/security/types.js.map +1 -0
  110. package/dist/intelligence/skills/builtins.d.ts +2 -0
  111. package/dist/intelligence/skills/builtins.js +379 -0
  112. package/dist/intelligence/skills/builtins.js.map +1 -0
  113. package/dist/intelligence/skills/loader.d.ts +4 -0
  114. package/dist/intelligence/skills/loader.js +84 -0
  115. package/dist/intelligence/skills/loader.js.map +1 -0
  116. package/dist/intelligence/skills/registry.d.ts +15 -0
  117. package/dist/intelligence/skills/registry.js +134 -0
  118. package/dist/intelligence/skills/registry.js.map +1 -0
  119. package/dist/intelligence/skills/types.d.ts +35 -0
  120. package/dist/intelligence/skills/types.js +2 -0
  121. package/dist/intelligence/skills/types.js.map +1 -0
  122. package/dist/intelligence/verification/engine.d.ts +37 -0
  123. package/dist/intelligence/verification/engine.js +127 -0
  124. package/dist/intelligence/verification/engine.js.map +1 -0
  125. package/dist/intelligence/verification/reviewer.d.ts +8 -0
  126. package/dist/intelligence/verification/reviewer.js +55 -0
  127. package/dist/intelligence/verification/reviewer.js.map +1 -0
  128. package/dist/intelligence/verification/types.d.ts +43 -0
  129. package/dist/intelligence/verification/types.js +2 -0
  130. package/dist/intelligence/verification/types.js.map +1 -0
  131. package/dist/mcp/setup.d.ts +2 -4
  132. package/dist/mcp/setup.js.map +1 -1
  133. package/dist/mcp/tools.js +6 -6
  134. package/dist/mcp/tools.js.map +1 -1
  135. package/dist/mcp/types.d.ts +4 -0
  136. package/dist/mcp/types.js.map +1 -1
  137. package/dist/mcp/verify.d.ts +1 -1
  138. package/dist/mcp/verify.js.map +1 -1
  139. package/dist/security/redact.js +3 -2
  140. package/dist/security/redact.js.map +1 -1
  141. package/dist/services/doctor.js +4 -0
  142. package/dist/services/doctor.js.map +1 -1
  143. package/dist/services/intelligence.d.ts +44 -0
  144. package/dist/services/intelligence.js +119 -0
  145. package/dist/services/intelligence.js.map +1 -0
  146. package/dist/services/standards.d.ts +85 -0
  147. package/dist/services/standards.js +230 -0
  148. package/dist/services/standards.js.map +1 -0
  149. package/dist/services/taskContext.js +4 -0
  150. package/dist/services/taskContext.js.map +1 -1
  151. package/dist/standards/acquisition/ingest.d.ts +12 -0
  152. package/dist/standards/acquisition/ingest.js +98 -0
  153. package/dist/standards/acquisition/ingest.js.map +1 -0
  154. package/dist/standards/applicability/engine.d.ts +38 -0
  155. package/dist/standards/applicability/engine.js +250 -0
  156. package/dist/standards/applicability/engine.js.map +1 -0
  157. package/dist/standards/builtin/code-quality.d.ts +2 -0
  158. package/dist/standards/builtin/code-quality.js +53 -0
  159. package/dist/standards/builtin/code-quality.js.map +1 -0
  160. package/dist/standards/builtin/database-safety.d.ts +2 -0
  161. package/dist/standards/builtin/database-safety.js +56 -0
  162. package/dist/standards/builtin/database-safety.js.map +1 -0
  163. package/dist/standards/builtin/index.d.ts +8 -0
  164. package/dist/standards/builtin/index.js +14 -0
  165. package/dist/standards/builtin/index.js.map +1 -0
  166. package/dist/standards/builtin/security-baseline.d.ts +2 -0
  167. package/dist/standards/builtin/security-baseline.js +64 -0
  168. package/dist/standards/builtin/security-baseline.js.map +1 -0
  169. package/dist/standards/builtin/testing-contracts.d.ts +2 -0
  170. package/dist/standards/builtin/testing-contracts.js +54 -0
  171. package/dist/standards/builtin/testing-contracts.js.map +1 -0
  172. package/dist/standards/builtin/undo-kit.d.ts +8 -0
  173. package/dist/standards/builtin/undo-kit.js +106 -0
  174. package/dist/standards/builtin/undo-kit.js.map +1 -0
  175. package/dist/standards/config/config.d.ts +12 -0
  176. package/dist/standards/config/config.js +110 -0
  177. package/dist/standards/config/config.js.map +1 -0
  178. package/dist/standards/distribution/cache.d.ts +58 -0
  179. package/dist/standards/distribution/cache.js +425 -0
  180. package/dist/standards/distribution/cache.js.map +1 -0
  181. package/dist/standards/distribution/index.d.ts +6 -0
  182. package/dist/standards/distribution/index.js +7 -0
  183. package/dist/standards/distribution/index.js.map +1 -0
  184. package/dist/standards/distribution/keys.d.ts +53 -0
  185. package/dist/standards/distribution/keys.js +269 -0
  186. package/dist/standards/distribution/keys.js.map +1 -0
  187. package/dist/standards/distribution/package.d.ts +25 -0
  188. package/dist/standards/distribution/package.js +254 -0
  189. package/dist/standards/distribution/package.js.map +1 -0
  190. package/dist/standards/distribution/server.d.ts +38 -0
  191. package/dist/standards/distribution/server.js +204 -0
  192. package/dist/standards/distribution/server.js.map +1 -0
  193. package/dist/standards/distribution/sync.d.ts +56 -0
  194. package/dist/standards/distribution/sync.js +245 -0
  195. package/dist/standards/distribution/sync.js.map +1 -0
  196. package/dist/standards/distribution/types.d.ts +140 -0
  197. package/dist/standards/distribution/types.js +26 -0
  198. package/dist/standards/distribution/types.js.map +1 -0
  199. package/dist/standards/engine/compliance.d.ts +2 -0
  200. package/dist/standards/engine/compliance.js +45 -0
  201. package/dist/standards/engine/compliance.js.map +1 -0
  202. package/dist/standards/engine/engine.d.ts +14 -0
  203. package/dist/standards/engine/engine.js +114 -0
  204. package/dist/standards/engine/engine.js.map +1 -0
  205. package/dist/standards/engine/reporter.d.ts +2 -0
  206. package/dist/standards/engine/reporter.js +42 -0
  207. package/dist/standards/engine/reporter.js.map +1 -0
  208. package/dist/standards/index.d.ts +18 -0
  209. package/dist/standards/index.js +19 -0
  210. package/dist/standards/index.js.map +1 -0
  211. package/dist/standards/registry/registry.d.ts +29 -0
  212. package/dist/standards/registry/registry.js +210 -0
  213. package/dist/standards/registry/registry.js.map +1 -0
  214. package/dist/standards/schema/types.d.ts +133 -0
  215. package/dist/standards/schema/types.js +33 -0
  216. package/dist/standards/schema/types.js.map +1 -0
  217. package/dist/standards/schema/validate.d.ts +6 -0
  218. package/dist/standards/schema/validate.js +131 -0
  219. package/dist/standards/schema/validate.js.map +1 -0
  220. package/dist/standards/templates/index.d.ts +11 -0
  221. package/dist/standards/templates/index.js +176 -0
  222. package/dist/standards/templates/index.js.map +1 -0
  223. package/dist/standards/validators/database.d.ts +5 -0
  224. package/dist/standards/validators/database.js +122 -0
  225. package/dist/standards/validators/database.js.map +1 -0
  226. package/dist/standards/validators/quality.d.ts +6 -0
  227. package/dist/standards/validators/quality.js +91 -0
  228. package/dist/standards/validators/quality.js.map +1 -0
  229. package/dist/standards/validators/registry.d.ts +11 -0
  230. package/dist/standards/validators/registry.js +83 -0
  231. package/dist/standards/validators/registry.js.map +1 -0
  232. package/dist/standards/validators/security.d.ts +7 -0
  233. package/dist/standards/validators/security.js +182 -0
  234. package/dist/standards/validators/security.js.map +1 -0
  235. package/dist/standards/validators/testing.d.ts +6 -0
  236. package/dist/standards/validators/testing.js +142 -0
  237. package/dist/standards/validators/testing.js.map +1 -0
  238. package/dist/standards/validators/types.d.ts +11 -0
  239. package/dist/standards/validators/types.js +2 -0
  240. package/dist/standards/validators/types.js.map +1 -0
  241. package/dist/standards/validators/undo-kit.d.ts +7 -0
  242. package/dist/standards/validators/undo-kit.js +334 -0
  243. package/dist/standards/validators/undo-kit.js.map +1 -0
  244. package/dist/tasks/routing.js +5 -3
  245. package/dist/tasks/routing.js.map +1 -1
  246. package/dist/utils/fs.d.ts +1 -1
  247. package/dist/utils/fs.js.map +1 -1
  248. package/dist/utils/lock.js +11 -3
  249. package/dist/utils/lock.js.map +1 -1
  250. package/dist/utils/paths.js +29 -0
  251. package/dist/utils/paths.js.map +1 -1
  252. package/dist/utils/proc.d.ts +4 -0
  253. package/dist/utils/proc.js +60 -4
  254. package/dist/utils/proc.js.map +1 -1
  255. package/docs/agents.md +15 -0
  256. package/docs/contributing.md +13 -5
  257. package/docs/getting-started.md +7 -0
  258. package/docs/mcp.md +13 -0
  259. package/docs/security/HOME_SERVER_THREAT_MODEL.md +72 -0
  260. package/docs/security/THREAT_MODEL.md +101 -0
  261. package/docs/security.md +8 -2
  262. package/docs/standards.md +143 -0
  263. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,9 +2,82 @@
2
2
 
3
3
  All notable changes are documented here. This project follows [Semantic Versioning](https://semver.org/). Workspace schema changes are called out under **Breaking**.
4
4
 
5
+ ## [0.5.1] - 2026-12-01
6
+
7
+ ### Fixed
8
+ - **Truthful Runtime Contracts & Execution Separation (`src/intelligence/runtime/`)**:
9
+ - Added unified 9-state `RuntimeExecutionStatus` (`PREPARED`, `RUNNING`, `SUCCEEDED`, `FAILED`, `BLOCKED`, `NOT_EXECUTED`, `TIMED_OUT`, `CANCELLED`, `UNSUPPORTED`) and separated `verificationStatus` from execution `ok`.
10
+ - Prevented `NativeRuntimeAdapter`, `ExternalAgentAdapter`, and `GoogleAdkAdapter` from returning `ok: true` for planning summaries, prepared CLI instructions, or unwired invocations.
11
+ - **Mandatory Bound Verification & Stale Receipt Invalidation (`src/intelligence/orchestration/`, `src/intelligence/verification/`)**:
12
+ - Enforced real `IndependentVerificationEngine` verification before `COMPLETED` / `verified: true` can be recorded; missing, errored, timed-out, skipped, or mismatched verifiers halt cleanly instead of defaulting to verified.
13
+ - Bound `ExecutionReceipt` records to `executionId`, `stageId`, `verifierId`/`verifierVersion`, `workspaceFingerprint`, and actual workspace file contents, with `invalidateStaleReceipts()` invalidating receipts when files change after verification.
14
+ - **Process Boundary & Non-Sandbox Disclosure (`src/intelligence/runtime/boundary.ts`, `src/utils/proc.ts`)**:
15
+ - Added pre-spawn shell blocking, `cwd` containment/symlink checks, `replaceEnv: true` with minimal environment allowlisting (`createMinimalExecutionEnv`), OS process-tree cleanup on timeout/abort (`killProcessTree`), and explicit `sandboxed: false` (`unavailable-cwd-only`) capability reporting.
16
+ - **Knowledge Distribution Hardening (`src/standards/distribution/`)**:
17
+ - Rejected duplicate or case-conflicting paths in `manifest.files`, serialized concurrent cache mutations with `withLock`, enforced HTTPS for remote HTTP sync URLs, rejected HTTP redirects (`redirect: 'manual'`), wrapped TLS errors, and capped response payload size.
18
+ - **Automated Release Trigger (`.github/workflows/release.yml`)**:
19
+ - Triggered Release automatically on `package.json` version bumps on `main` (auto-tagging `vX.Y.Z` after `release:check` passes) or semver tag pushes, skipping cleanly when the version is already published on npm.
20
+
21
+ ## [0.5.0] - 2026-12-01
22
+
23
+ ### Added
24
+ - **Core Service Contracts & Architecture Decoupling (`src/core/contracts.ts`)**:
25
+ - Standardized `ServiceResult<T>`, `SerializedError`, and `serializeError()` with automatic secret redaction.
26
+ - Eliminated all circular dependency cycles across `src/discovery/`, `src/integrations/`, and `src/mcp/`.
27
+ - **Global Engineering Standards & Offline Knowledge Distribution (`src/standards/distribution/`)**:
28
+ - Implemented `StaticKnowledgeDistributor` (read-only generic static endpoints only; zero project/telemetry endpoints), `KeyTrustStore` (Ed25519 key generation, signing, verification, rotation, revocation, recovery), `LocalPackageCache` (pinning, update preview, local review workflow, atomic staged install, rollback), and strict allowlisted `KnowledgeSyncClient` with offline fallback.
29
+ - Authored `docs/security/THREAT_MODEL.md` and `docs/security/HOME_SERVER_THREAT_MODEL.md`.
30
+ - **Truthful Agent Runtime & Execution Receipts (`src/intelligence/orchestration/`, `src/intelligence/runtime/`)**:
31
+ - Eliminated placeholder runtime execution (`PlaceholderRuntimeAdapter` always fails cleanly); required verifiable `ExecutionReceipt` evidence and `IndependentVerificationEngine` gates prior to stage completion.
32
+ - Hardened 11-state transition machine (`isValidStateTransition`), timeouts (`TIMED_OUT`), cancellations (`CANCELLED`), retries, `resume()`, idempotency keys, `dryRun()` preview, and destructive SQL/filesystem approval gating.
33
+ - **Developer Experience, Adaptive Guidance & Optional Local Dashboard (`src/dx/`)**:
34
+ - Added `devworkspace guide [--experience beginner|guided|professional] [--privacy strict-local|cached-sync] [--save]` with deduplicated, evidence-backed recommendations and local metrics (`timeToFirstResultMs`, `estimatedTokens`).
35
+ - Added `devworkspace dashboard [--out <path>] [--no-standards]` generating a self-contained, CSP-locked (`default-src 'none'`), keyboard-accessible, zero-telemetry HTML5 viewer reusing core services directly.
36
+ - **Global Engineering Standards — `devworkspace standards approve <id>`**:
37
+ - Implemented the missing approval lifecycle command to transition custom standards from `DRAFT`/`REVIEW` to `APPROVED` status.
38
+ - Writes `metadata.approvedAt` timestamp atomically; validates the standard before persisting.
39
+ - Idempotent — re-running on an already-APPROVED standard is safe.
40
+ - Added `approvedAt?: string` field to `StandardMetadata` type.
41
+ - **Global Standards Registry — auto-load user-level standards**:
42
+ - `StandardsRegistry` constructor now automatically calls `loadGlobalStandardsSync()` on construction, loading standards from `~/.devworkspace/standards/` (or `DEVWORKSPACE_HOME`).
43
+ - Previously this required an explicit `await registry.loadGlobalStandards()` call; now global standards are always present.
44
+ - **Ingestion duplicate guard and built-in collision prevention**:
45
+ - `devworkspace standards add` now rejects ingestion of a standard whose ID matches any built-in standard (`security-baseline`, `deployment-safety-and-rollback`, etc.), preventing shadowing attacks.
46
+ - Rejects ingestion if `.devworkspace/standards/custom/<id>.json` already exists; pass `--force` to overwrite.
47
+ - **Config tamper sanitisation**:
48
+ - `StandardsConfigManager.loadConfig()` now strips `security-baseline` from `disabledStandards` even if it appears in an on-disk `config.json`, providing two-layer security bypass protection.
49
+ - **SQL comment stripping in destructive DDL detector**:
50
+ - `validateExpandAndContract` now strips multi-line `/* */` comments and line `--` comments before pattern matching, eliminating false-positives for commented-out DDL examples in migration files.
51
+ - **Stripe key pattern** added to `src/security/redact.ts` secret detector (`sk_live_*`, `pk_live_*`, `rk_live_*`).
52
+ - **New test suites**:
53
+ - `tests/unit/standards-critical-functional.test.ts` — 9 tests covering critical functional requirements A through K (global persistence, path compatibility, security bypass prevention, destructive migration detection, rollback documentation, ingestion duplicate rejection, JSON exit codes).
54
+ - `tests/unit/standards-validator-accuracy.test.ts` — 10 tests covering false-positive, false-negative, missing file, and malformed configuration scenarios for all major validators.
55
+ - **5 independent audit deliverables** added to repository root:
56
+ - `GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md`
57
+ - `GLOBAL_STANDARDS_VERIFICATION_MATRIX.md`
58
+ - `GLOBAL_STANDARDS_SECURITY_REPORT.md`
59
+ - `GLOBAL_STANDARDS_REAL_PROJECT_TESTS.md`
60
+ - `GLOBAL_STANDARDS_FINAL_STATUS.md`
61
+
62
+ ### Fixed
63
+ - **Database Migration Validator (`ISS-0001`)**: Context-aware `isDestructiveTruncate()` in `src/standards/validators/database.ts` exempts PostgreSQL `BEFORE/AFTER/INSTEAD OF TRUNCATE ON` trigger DDL while continuing to flag actual destructive `TRUNCATE TABLE` statements; prevented skipped checks from inflating compliance scores to 100%.
64
+ - **Security & Path Traversal Hardening**: Hardened `validateRelativePath()` in `src/utils/paths.ts` to decode URL-encoded segments across `/` (`%2e%2e%2f`) and block Windows reserved device names (`CON`, `PRN`, `AUX`, `NUL`, `COM1-9`, `LPT1-9`). Wrapped MCP tool error handlers in `redact()`.
65
+ - **Task Retrieval & Query Expansion**: Decomposed hyphenated compound terms (e.g. `cross-tenant`) in `expandQueryTerms()` inside `src/services/taskContext.ts` for improved deterministic security recall.
66
+ - Release workflow (`scripts/release-check.mjs`) now uses a dual-strategy tag check: `git describe --tags --exact-match` with `origin` fetch fallback, then `git tag --points-at HEAD` as a secondary fallback, with improved diagnostic messages including HEAD SHA and existing tags.
67
+ - `.github/workflows/release.yml` now sets `fetch-tags: true` on `actions/checkout@v4` and explicitly runs `git fetch origin --tags --force` to ensure tags are always present in GitHub Actions CI.
68
+
5
69
  ## [0.4.5] - 2026-11-19
6
70
 
7
71
  ### Added
72
+ - **Intelligent Agent & Skill Orchestration Engine**:
73
+ - Implemented unified Specialist Agent Registry (`src/intelligence/agents/`) with 12 built-in specialist profiles (`planner`, `architect`, `research`, `developer`, `debugger`, `testing`, `security-auditor`, `performance-engineer`, `code-reviewer`, `documentation`, `database-specialist`, `release-manager`) and custom agent persistence in `.devworkspace/registry/agents.json`.
74
+ - Implemented portable Agent Skills Engine (`src/intelligence/skills/`) conforming to `agentskills.io` with 13 core engineering skills and progressive disclosure.
75
+ - Implemented capability-based routing and adaptive complexity scoring (`src/intelligence/routing/`) producing transparent selection rationales and single-writer policies.
76
+ - Implemented 12-state deterministic workflow orchestration engine (`src/intelligence/orchestration/`) with persistent run checkpoints (`.devworkspace/orchestration/runs/R-*.json`), approval gating, and `StageLockManager` single-writer file concurrency protection.
77
+ - Implemented Independent Verification Engine (`src/intelligence/verification/`) combining contract checks with dual-agent code reviews and automated bounded correction cycles.
78
+ - Implemented least-privilege Security Policy Evaluator (`src/intelligence/security/`) with path traversal blocking, credential quarantine (`.env*`, keys, `id_rsa`), and append-only security audit logging (`.devworkspace/orchestration/security-audit.jsonl`).
79
+ - Added optional, decoupled Google Agent Development Kit (ADK) adapter (`src/intelligence/runtime/adk/`) under Apache 2.0 license with zero mandatory cloud dependencies in core.
80
+ - Added new CLI command groups: `devworkspace agents`, `devworkspace skills`, `devworkspace orchestrate`, and `devworkspace intelligence`.
8
81
  - **Google Antigravity User-Level MCP Automation (`--user`)**:
9
82
  - Implemented automated user-level MCP configuration for Google Antigravity via `devworkspace setup --agent antigravity --user` (and `devworkspace mcp setup --agent antigravity --user`).
10
83
  - Added robust directory discovery (`detectAntigravityUserConfigPath`) across Windows, Linux, and macOS (`~/.gemini/antigravity/mcp_config.json`, `~/.gemini/config/mcp_config.json`, or custom `ANTIGRAVITY_CONFIG_PATH`).
package/README.md CHANGED
@@ -452,6 +452,13 @@ devworkspace refresh # Re-check repository evidence after pullin
452
452
  | `fact` | Record, verify, list, or remove project facts with provenance | [Knowledge Model](docs/knowledge.md) |
453
453
  | `feature` | End-to-end feature map tracing across routes, services, and tests | [Getting Started](docs/getting-started.md) |
454
454
  | `graph` | Inspect, trace, and generate Graphify-compatible knowledge graphs | [Integrations](docs/integrations.md) |
455
+ | `agents` | Specialist agent registry, capabilities, and health checks | [Agent Integrations](docs/agents.md) |
456
+ | `skills` | Portable engineering skill discovery, validation, and installation | [Agent Integrations](docs/agents.md) |
457
+ | `orchestrate` | Multi-agent execution planning, single-writer runs, and checkpoints | [Task Routing](docs/routing.md) |
458
+ | `intelligence` | Unified status, diagnostics, and orchestration performance benchmarks | [Getting Started](docs/getting-started.md) |
459
+ | `standards` | Global engineering standards, The Undo Kit, and automated compliance auditing | [Engineering Standards](docs/standards.md) |
460
+ | `guide` | Adaptive onboarding & evidence-backed next-step guidance (`beginner`/`guided`/`professional`) | [Getting Started](docs/getting-started.md) |
461
+ | `dashboard` | Generate an optional, local-only accessible HTML dashboard (zero telemetry) | [Getting Started](docs/getting-started.md) |
455
462
  | `decision` | Append-only architectural decision records (ADRs) | [Architecture](docs/architecture.md) |
456
463
  | `session` | Record concise session summaries (never transcripts) | [Getting Started](docs/getting-started.md) |
457
464
  | `testenv` | Declare local test environment for database-touching checks | [Testing Contract](docs/testing.md) |
@@ -284,6 +284,36 @@ export declare const OPTIONS: {
284
284
  readonly depth: {
285
285
  readonly type: "string";
286
286
  };
287
+ readonly 'auto-approve': {
288
+ readonly type: "boolean";
289
+ };
290
+ readonly query: {
291
+ readonly type: "string";
292
+ };
293
+ readonly 'max-agents': {
294
+ readonly type: "string";
295
+ };
296
+ readonly 'max-retries': {
297
+ readonly type: "string";
298
+ };
299
+ readonly verbose: {
300
+ readonly type: "boolean";
301
+ };
302
+ readonly approval: {
303
+ readonly type: "boolean";
304
+ };
305
+ readonly experience: {
306
+ readonly type: "string";
307
+ };
308
+ readonly privacy: {
309
+ readonly type: "string";
310
+ };
311
+ readonly save: {
312
+ readonly type: "boolean";
313
+ };
314
+ readonly 'no-standards': {
315
+ readonly type: "boolean";
316
+ };
287
317
  };
288
318
  export interface ParsedArgs {
289
319
  positionals: string[];
package/dist/cli/args.js CHANGED
@@ -89,6 +89,16 @@ export const OPTIONS = {
89
89
  tag: { type: 'string', multiple: true },
90
90
  from: { type: 'string' },
91
91
  depth: { type: 'string' },
92
+ 'auto-approve': { type: 'boolean' },
93
+ query: { type: 'string' },
94
+ 'max-agents': { type: 'string' },
95
+ 'max-retries': { type: 'string' },
96
+ verbose: { type: 'boolean' },
97
+ approval: { type: 'boolean' },
98
+ experience: { type: 'string' },
99
+ privacy: { type: 'string' },
100
+ save: { type: 'boolean' },
101
+ 'no-standards': { type: 'boolean' },
92
102
  };
93
103
  export function parseCli(argv) {
94
104
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIvD,qGAAqG;AACrG,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,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AAE,OAAO,IAAI,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,CAAuB,EAAE,CAAS;IACrD,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACf,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,CAAuB,EAAE,CAAS;IACpD,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACpB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QAAE,MAAM,IAAI,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;IAC1G,OAAO,CAAC,CAAC;AACX,CAAC","sourcesContent":["import { parseArgs } from 'node:util';\nimport { DevWorkspaceError } from '../errors/index.js';\n\ntype OptionSpec = { type: 'boolean' | 'string'; short?: string; multiple?: boolean };\n\n/** Every flag the CLI understands. Unknown flags are rejected so typos never silently do nothing. */\nexport const OPTIONS = {\n help: { type: 'boolean', short: 'h' },\n version: { type: 'boolean', short: 'v' },\n json: { type: 'boolean' },\n debug: { type: 'boolean' },\n 'no-color': { type: 'boolean' },\n ascii: { type: 'boolean' },\n 'dry-run': { type: 'boolean' },\n yes: { type: 'boolean', short: 'y' },\n 'include-agent-files': { type: 'boolean' },\n integrations: { type: 'boolean' },\n 'with-integrations': { type: 'boolean' },\n only: { type: 'string', multiple: true },\n scope: { type: 'string' },\n restarted: { type: 'boolean' },\n quick: { type: 'boolean' },\n cwd: { type: 'string' },\n root: { type: 'string' },\n fix: { type: 'boolean' },\n strict: { type: 'boolean' },\n out: { type: 'string', short: 'o' },\n overwrite: { type: 'boolean' },\n 'allow-different-project': { type: 'boolean' },\n topic: { type: 'string' },\n full: { type: 'boolean' },\n all: { type: 'boolean' },\n agent: { type: 'string' },\n user: { type: 'boolean' },\n force: { type: 'boolean', short: 'f' },\n launcher: { type: 'string' },\n 'package-version': { type: 'string' },\n 'no-verify': { type: 'boolean' },\n type: { type: 'string' },\n title: { type: 'string' },\n key: { type: 'string' },\n value: { type: 'string' },\n source: { type: 'string' },\n 'source-type': { type: 'string' },\n file: { type: 'string', multiple: true },\n confidence: { type: 'string' },\n status: { type: 'string' },\n reason: { type: 'string' },\n detail: { type: 'string' },\n note: { type: 'string' },\n phase: { type: 'string' },\n passed: { type: 'string' },\n failed: { type: 'string' },\n criteria: { type: 'string', multiple: true },\n plan: { type: 'string', multiple: true },\n area: { type: 'string', multiple: true },\n 'decision-note': { type: 'string', multiple: true },\n summary: { type: 'string' },\n blocker: { type: 'string', multiple: true },\n 'clear-blockers': { type: 'boolean' },\n require: { type: 'string', multiple: true },\n 'user-work-intact': { type: 'boolean' },\n 'knowledge-reviewed': { type: 'boolean' },\n 'final-state-inspected': { type: 'boolean' },\n context: { type: 'string' },\n for: { type: 'string' },\n role: { type: 'string' },\n decision: { type: 'string' },\n consequences: { type: 'string' },\n supersedes: { type: 'string' },\n goal: { type: 'string' },\n done: { type: 'string', multiple: true },\n 'tests-run': { type: 'string', multiple: true },\n remaining: { type: 'string', multiple: true },\n next: { type: 'string' },\n task: { type: 'string' },\n limit: { type: 'string' },\n package: { type: 'string' },\n check: { type: 'string', multiple: true },\n target: { type: 'string' },\n timeout: { type: 'string' },\n deep: { type: 'boolean' },\n id: { type: 'string' },\n name: { type: 'string' },\n description: { type: 'string' },\n symbol: { type: 'string' },\n entry: { type: 'string', multiple: true },\n route: { type: 'string', multiple: true },\n service: { type: 'string', multiple: true },\n model: { type: 'string', multiple: true },\n test: { type: 'string', multiple: true },\n tag: { type: 'string', multiple: true },\n from: { type: 'string' },\n depth: { type: 'string' },\n} as const satisfies Record<string, OptionSpec>;\n\nexport interface ParsedArgs {\n positionals: string[];\n values: Record<string, string | boolean | string[] | undefined>;\n}\n\nexport function parseCli(argv: string[]): ParsedArgs {\n try {\n const normalizedArgv = argv.map((arg, idx) => {\n if (arg === '--check') {\n const next = argv[idx + 1];\n if (!next || next.startsWith('-')) {\n return '--check=true';\n }\n }\n return arg;\n });\n const { values, positionals } = parseArgs({ args: normalizedArgv, options: OPTIONS, allowPositionals: true, strict: true });\n return { positionals, values: values as ParsedArgs['values'] };\n } catch (e) {\n throw new DevWorkspaceError('USAGE', (e as Error).message.replace(/^Unknown option/, 'Unknown option'), {\n hint: 'Run \"devworkspace --help\" or \"devworkspace <command> --help\".',\n });\n }\n}\n\nexport function str(v: ParsedArgs['values'], k: string): string | undefined {\n const x = v[k];\n return typeof x === 'string' ? x : undefined;\n}\n\nexport function bool(v: ParsedArgs['values'], k: string): boolean {\n return v[k] === true;\n}\n\nexport function isCheckOrDryRun(v: ParsedArgs['values']): boolean {\n if (bool(v, 'dry-run')) return true;\n const checks = list(v, 'check');\n return checks.includes('true');\n}\n\nexport function list(v: ParsedArgs['values'], k: string): string[] {\n const x = v[k];\n return Array.isArray(x) ? x : [];\n}\n\nexport function int(v: ParsedArgs['values'], k: string): number | undefined {\n const s = str(v, k);\n if (s === undefined) return undefined;\n const n = Number(s);\n if (!Number.isInteger(n)) throw new DevWorkspaceError('USAGE', `--${k} must be an integer (got \"${s}\").`);\n return n;\n}\n"]}
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAIvD,qGAAqG;AACrG,MAAM,CAAC,MA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AAO,EAAE,KAAK,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;IAC1G,OAAO,CAAC,CAAC;AACX,CAAC","sourcesContent":["import { parseArgs } from 'node:util';\nimport { DevWorkspaceError } from '../errors/index.js';\n\ntype OptionSpec = { type: 'boolean' | 'string'; short?: string; multiple?: boolean };\n\n/** Every flag the CLI understands. Unknown flags are rejected so typos never silently do nothing. */\nexport const OPTIONS = {\n help: { type: 'boolean', short: 'h' },\n version: { type: 'boolean', short: 'v' },\n json: { type: 'boolean' },\n debug: { type: 'boolean' },\n 'no-color': { type: 'boolean' },\n ascii: { type: 'boolean' },\n 'dry-run': { type: 'boolean' },\n yes: { type: 'boolean', short: 'y' },\n 'include-agent-files': { type: 'boolean' },\n integrations: { type: 'boolean' },\n 'with-integrations': { type: 'boolean' },\n only: { type: 'string', multiple: true },\n scope: { type: 'string' },\n restarted: { type: 'boolean' },\n quick: { type: 'boolean' },\n cwd: { type: 'string' },\n root: { type: 'string' },\n fix: { type: 'boolean' },\n strict: { type: 'boolean' },\n out: { type: 'string', short: 'o' },\n overwrite: { type: 'boolean' },\n 'allow-different-project': { type: 'boolean' },\n topic: { type: 'string' },\n full: { type: 'boolean' },\n all: { type: 'boolean' },\n agent: { type: 'string' },\n user: { type: 'boolean' },\n force: { type: 'boolean', short: 'f' },\n launcher: { type: 'string' },\n 'package-version': { type: 'string' },\n 'no-verify': { type: 'boolean' },\n type: { type: 'string' },\n title: { type: 'string' },\n key: { type: 'string' },\n value: { type: 'string' },\n source: { type: 'string' },\n 'source-type': { type: 'string' },\n file: { type: 'string', multiple: true },\n confidence: { type: 'string' },\n status: { type: 'string' },\n reason: { type: 'string' },\n detail: { type: 'string' },\n note: { type: 'string' },\n phase: { type: 'string' },\n passed: { type: 'string' },\n failed: { type: 'string' },\n criteria: { type: 'string', multiple: true },\n plan: { type: 'string', multiple: true },\n area: { type: 'string', multiple: true },\n 'decision-note': { type: 'string', multiple: true },\n summary: { type: 'string' },\n blocker: { type: 'string', multiple: true },\n 'clear-blockers': { type: 'boolean' },\n require: { type: 'string', multiple: true },\n 'user-work-intact': { type: 'boolean' },\n 'knowledge-reviewed': { type: 'boolean' },\n 'final-state-inspected': { type: 'boolean' },\n context: { type: 'string' },\n for: { type: 'string' },\n role: { type: 'string' },\n decision: { type: 'string' },\n consequences: { type: 'string' },\n supersedes: { type: 'string' },\n goal: { type: 'string' },\n done: { type: 'string', multiple: true },\n 'tests-run': { type: 'string', multiple: true },\n remaining: { type: 'string', multiple: true },\n next: { type: 'string' },\n task: { type: 'string' },\n limit: { type: 'string' },\n package: { type: 'string' },\n check: { type: 'string', multiple: true },\n target: { type: 'string' },\n timeout: { type: 'string' },\n deep: { type: 'boolean' },\n id: { type: 'string' },\n name: { type: 'string' },\n description: { type: 'string' },\n symbol: { type: 'string' },\n entry: { type: 'string', multiple: true },\n route: { type: 'string', multiple: true },\n service: { type: 'string', multiple: true },\n model: { type: 'string', multiple: true },\n test: { type: 'string', multiple: true },\n tag: { type: 'string', multiple: true },\n from: { type: 'string' },\n depth: { type: 'string' },\n 'auto-approve': { type: 'boolean' },\n query: { type: 'string' },\n 'max-agents': { type: 'string' },\n 'max-retries': { type: 'string' },\n verbose: { type: 'boolean' },\n approval: { type: 'boolean' },\n experience: { type: 'string' },\n privacy: { type: 'string' },\n save: { type: 'boolean' },\n 'no-standards': { type: 'boolean' },\n} as const satisfies Record<string, OptionSpec>;\n\nexport interface ParsedArgs {\n positionals: string[];\n values: Record<string, string | boolean | string[] | undefined>;\n}\n\nexport function parseCli(argv: string[]): ParsedArgs {\n try {\n const normalizedArgv = argv.map((arg, idx) => {\n if (arg === '--check') {\n const next = argv[idx + 1];\n if (!next || next.startsWith('-')) {\n return '--check=true';\n }\n }\n return arg;\n });\n const { values, positionals } = parseArgs({ args: normalizedArgv, options: OPTIONS, allowPositionals: true, strict: true });\n return { positionals, values: values as ParsedArgs['values'] };\n } catch (e) {\n throw new DevWorkspaceError('USAGE', (e as Error).message.replace(/^Unknown option/, 'Unknown option'), {\n hint: 'Run \"devworkspace --help\" or \"devworkspace <command> --help\".',\n });\n }\n}\n\nexport function str(v: ParsedArgs['values'], k: string): string | undefined {\n const x = v[k];\n return typeof x === 'string' ? x : undefined;\n}\n\nexport function bool(v: ParsedArgs['values'], k: string): boolean {\n return v[k] === true;\n}\n\nexport function isCheckOrDryRun(v: ParsedArgs['values']): boolean {\n if (bool(v, 'dry-run')) return true;\n const checks = list(v, 'check');\n return checks.includes('true');\n}\n\nexport function list(v: ParsedArgs['values'], k: string): string[] {\n const x = v[k];\n return Array.isArray(x) ? x : [];\n}\n\nexport function int(v: ParsedArgs['values'], k: string): number | undefined {\n const s = str(v, k);\n if (s === undefined) return undefined;\n const n = Number(s);\n if (!Number.isInteger(n)) throw new DevWorkspaceError('USAGE', `--${k} must be an integer (got \"${s}\").`);\n return n;\n}\n"]}
package/dist/cli/help.js CHANGED
@@ -301,6 +301,140 @@ export const COMMANDS = [
301
301
  'devworkspace mcp setup --agent antigravity --check',
302
302
  ],
303
303
  },
304
+ {
305
+ name: 'agents',
306
+ summary: 'Manage intelligent specialist agents and registry profiles',
307
+ usage: [
308
+ 'devworkspace agents list',
309
+ 'devworkspace agents inspect <id>',
310
+ 'devworkspace agents health [id]',
311
+ 'devworkspace agents register <file>',
312
+ 'devworkspace agents remove <id>',
313
+ ],
314
+ options: [...COMMON],
315
+ examples: [
316
+ 'devworkspace agents list',
317
+ 'devworkspace agents inspect planner',
318
+ 'devworkspace agents health developer',
319
+ ],
320
+ },
321
+ {
322
+ name: 'skills',
323
+ summary: 'Manage portable engineering skills and progressive capabilities',
324
+ usage: [
325
+ 'devworkspace skills list',
326
+ 'devworkspace skills search <query>',
327
+ 'devworkspace skills inspect <id>',
328
+ 'devworkspace skills install <file>',
329
+ 'devworkspace skills validate <file>',
330
+ 'devworkspace skills remove <id>',
331
+ ],
332
+ options: [['--query <text>', 'search keyword for skills'], ...COMMON],
333
+ examples: [
334
+ 'devworkspace skills list',
335
+ 'devworkspace skills search api',
336
+ 'devworkspace skills inspect api-development',
337
+ ],
338
+ },
339
+ {
340
+ name: 'orchestrate',
341
+ summary: 'Multi-agent engineering orchestration, planning, and execution',
342
+ usage: [
343
+ 'devworkspace orchestrate plan "<request>" [--auto-approve]',
344
+ 'devworkspace orchestrate run <runId>',
345
+ 'devworkspace orchestrate status <runId>',
346
+ 'devworkspace orchestrate explain <runId>',
347
+ 'devworkspace orchestrate cancel <runId>',
348
+ 'devworkspace orchestrate history',
349
+ ],
350
+ options: [
351
+ ['--auto-approve', 'proceed without pausing for approval on standard mutations'],
352
+ ['--timeout <seconds>', 'maximum execution time'],
353
+ ...COMMON,
354
+ ],
355
+ examples: [
356
+ 'devworkspace orchestrate plan "Refactor database models and add tests"',
357
+ 'devworkspace orchestrate run R-20261125-a1b2',
358
+ 'devworkspace orchestrate status R-20261125-a1b2',
359
+ 'devworkspace orchestrate history',
360
+ ],
361
+ },
362
+ {
363
+ name: 'intelligence',
364
+ summary: 'Unified status, diagnostics, and benchmarks for intelligent orchestration',
365
+ usage: [
366
+ 'devworkspace intelligence status',
367
+ 'devworkspace intelligence doctor',
368
+ 'devworkspace intelligence benchmark',
369
+ ],
370
+ options: [...COMMON],
371
+ examples: [
372
+ 'devworkspace intelligence status',
373
+ 'devworkspace intelligence doctor',
374
+ ],
375
+ },
376
+ {
377
+ name: 'standards',
378
+ summary: 'Global engineering standards, The Undo Kit, and automated compliance auditing',
379
+ usage: [
380
+ 'devworkspace standards list [--category <cat>] [--applicable] [--status <status>]',
381
+ 'devworkspace standards show <id>',
382
+ 'devworkspace standards audit [--strict]',
383
+ 'devworkspace standards check [<id>] [--strict]',
384
+ 'devworkspace standards apply <id> [--force]',
385
+ 'devworkspace standards add <file> [--title <name>] [--category <cat>] [--force]',
386
+ 'devworkspace standards approve <id>',
387
+ 'devworkspace standards update',
388
+ 'devworkspace standards report [--out <path>]',
389
+ 'devworkspace standards validate',
390
+ ],
391
+ options: [
392
+ ['--category <cat>', 'filter standards by category (security, deployment, database, testing, etc.)'],
393
+ ['--applicable', 'show only standards applicable to the current project technologies'],
394
+ ['--strict', 'fail with exit code 3 if warnings are detected'],
395
+ ['--force', 'overwrite existing templates during apply'],
396
+ ['--out <path>', 'custom output file path for standards audit report'],
397
+ ...COMMON,
398
+ ],
399
+ examples: [
400
+ 'devworkspace standards list --applicable',
401
+ 'devworkspace standards show deployment-safety-and-rollback',
402
+ 'devworkspace standards audit',
403
+ 'devworkspace standards apply deployment-safety-and-rollback',
404
+ 'devworkspace standards approve custom-api-standard',
405
+ 'devworkspace standards report',
406
+ ],
407
+ },
408
+ {
409
+ name: 'guide',
410
+ summary: 'Adaptive onboarding and evidence-backed next-step guidance',
411
+ usage: [
412
+ 'devworkspace guide [--experience beginner|guided|professional] [--privacy strict-local|cached-sync] [--save]',
413
+ ],
414
+ options: [
415
+ ['--experience <level>', 'guidance detail: beginner (explanatory), guided (default), or professional (concise)'],
416
+ ['--privacy <mode>', 'workspace privacy mode: strict-local (default) or cached-sync'],
417
+ ['--save', 'persist experience and privacy preferences to .devworkspace/state/dx-preferences.json'],
418
+ ['--deep', 'include full doctor diagnostics in recommendations'],
419
+ ...COMMON,
420
+ ],
421
+ examples: [
422
+ 'devworkspace guide',
423
+ 'devworkspace guide --experience professional',
424
+ 'devworkspace guide --experience beginner --privacy strict-local --save',
425
+ ],
426
+ },
427
+ {
428
+ name: 'dashboard',
429
+ summary: 'Generate an optional, local-only accessible HTML dashboard (zero telemetry)',
430
+ usage: ['devworkspace dashboard [--out <path>] [--no-standards]'],
431
+ options: [
432
+ ['--out <path>', 'workspace-relative output HTML path (default: .devworkspace/local/dashboard.html)'],
433
+ ['--no-standards', 'skip running standards audit when generating snapshot'],
434
+ ...COMMON,
435
+ ],
436
+ examples: ['devworkspace dashboard', 'devworkspace dashboard --out .devworkspace/local/overview.html --json'],
437
+ },
304
438
  ];
305
439
  export function topHelp(version) {
306
440
  const w = Math.max(...COMMANDS.map((c) => c.name.length));
@@ -1 +1 @@
1
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AAI,CAAC,CAAC;AACf,CAAC","sourcesContent":["export interface CommandHelp {\n name: string;\n summary: string;\n usage: string[];\n options: [string, string][];\n examples: string[];\n}\n\nconst COMMON: [string, string][] = [\n ['--json', 'machine-readable output'],\n ['--cwd <dir>', 'run as if started in <dir>'],\n ['--debug', 'show stack traces and debug logs'],\n];\n\nexport const COMMANDS: CommandHelp[] = [\n {\n name: 'init',\n summary: 'Create .devworkspace/ in the current project (safe to re-run)',\n usage: ['devworkspace init [--root <dir>] [--dry-run] [--with-integrations [--yes] [--scope project|user]]'],\n options: [\n ['--root <dir>', 'project root (default: Git top-level or current directory)'],\n ['--dry-run', 'show what would be created'],\n ['--with-integrations', 'then run the same integration setup as \"devworkspace setup --integrations\"'],\n ['--yes', 'with --with-integrations: approve machine-level and third-party installs'],\n ...COMMON,\n ],\n examples: ['npx devworkspace init', 'npx devworkspace init --with-integrations --yes'],\n },\n {\n name: 'setup',\n summary: 'Single-command repository setup (inspect, initialize, discover contract & validate)',\n usage: [\n 'devworkspace setup',\n 'devworkspace setup --agent claude-code|codex|antigravity|all|auto [--check] [--no-verify] [--launcher auto|direct|npx] [--package-version <v>]',\n 'devworkspace setup --integrations [--yes] [--dry-run] [--scope project|user] [--only graphify,agent-skills,ponytail]',\n ],\n options: [\n ['--agent <name>', 'initialize if needed, configure MCP for agent (claude-code, codex, antigravity, all, auto = detect) and verify the server starts'],\n ['--check', 'with --agent: validate and plan without writing files'],\n ['--no-verify', 'with --agent: skip starting the MCP server to verify it'],\n ['--launcher auto|direct|npx', 'how agents start the server (default auto: PATH binary if version-matched, else npx)'],\n ['--package-version <v>', 'pin the npx launcher to devworkspace@<v>'],\n ['--integrations', 'set up external integrations (Graphify, Agent Skills, Ponytail)'],\n ['--dry-run', 'show exactly what would run; changes nothing'],\n ['--yes', 'with --integrations: approve machine-level and third-party installs'],\n ['--scope project|user', 'where to install (default: project; user needs --yes)'],\n ['--only <ids>', 'comma-separated: graphify, agent-skills, ponytail'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace setup',\n 'devworkspace setup --agent claude-code',\n 'devworkspace setup --agent antigravity --check',\n 'devworkspace setup --json',\n 'devworkspace setup --integrations --yes',\n ],\n },\n {\n name: 'integrations',\n summary: 'Show or repair the integration installation (observed, not assumed)',\n usage: [\n 'devworkspace integrations status [--quick] [--restarted] [--strict]',\n 'devworkspace integrations repair [--yes] [--dry-run] [--only <ids>] [--scope project|user]',\n ],\n options: [\n ['--quick', 'only look at files and PATH (fast, but nothing can show VERIFIED)'],\n ['--restarted', 'record that you restarted Claude Code, clearing RESTART_REQUIRED'],\n ['--strict', 'exit 3 unless every required integration is VERIFIED'],\n ...COMMON,\n ],\n examples: ['devworkspace integrations status', 'devworkspace integrations repair --yes'],\n },\n {\n name: 'analyze',\n summary: 'Deterministic repository discovery + generate the Claude onboarding prompt',\n usage: ['devworkspace analyze [--dry-run]'],\n options: [['--dry-run', 'discover and report without writing files'], ...COMMON],\n examples: ['devworkspace analyze', 'devworkspace analyze --json'],\n },\n {\n name: 'status',\n summary: 'Concise overview: health, Git, knowledge, tasks, integrations, verification',\n usage: ['devworkspace status [--strict] [--deep] (read-only)'],\n options: [['--strict', 'exit 3 when anything needs attention'], ['--deep', 'also run the integration health checks (what doctor does)'], ...COMMON],\n examples: ['devworkspace status', 'devworkspace status --json'],\n },\n {\n name: 'doctor',\n summary: 'Check the workspace, integrations, security and portability',\n usage: ['devworkspace doctor [--fix] [--strict] (core workspace and integrations are reported separately)'],\n options: [['--fix', 'safely create missing folders/ignore rules (never deletes)'], ['--strict', 'exit 3 when there are warnings'], ...COMMON],\n examples: ['devworkspace doctor', 'devworkspace doctor --json --strict'],\n },\n {\n name: 'refresh',\n summary: 'Re-derive deterministic facts and mark knowledge stale when its evidence changed',\n usage: ['devworkspace refresh [--dry-run] (writes discovery files and detector facts; --dry-run writes nothing)'],\n options: [['--dry-run', 'report stale knowledge without writing'], ...COMMON],\n examples: ['devworkspace refresh'],\n },\n {\n name: 'context',\n summary: 'Show what DevWorkspace believes about the project',\n usage: ['devworkspace context [--for <request>] [--role <explorer|tester|reviewer>] [--topic <prefix>] [--full]'],\n options: [\n ['--for <request>', 'task-aware context: only what this request needs, each item with the reason it is included (safety rules are always shown)'],\n ['--role <role>', 'role-sliced context for AI workflows: explorer, tester, reviewer (requires --for)'],\n ['--topic <text>', 'only facts and testing-contract entries that match <text> (safety rules are always shown)'],\n ['--full', 'also print .devworkspace/context/*.md'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace context --topic auth',\n 'devworkspace context --for \"fix the invoice total rounding bug\"',\n 'devworkspace context --for \"fix memory leak in auth\" --role explorer',\n 'devworkspace context --for \"add regression tests\" --role tester',\n 'devworkspace context --for \"review authentication changes\" --role reviewer',\n ],\n },\n {\n name: 'fact',\n summary: 'Record, verify or remove a piece of project knowledge',\n usage: [\n 'devworkspace fact add --key <key> --value <text> --source <desc> [--file <rel path>]... [--source-type ai|user|file|git] [--confidence HIGH|MEDIUM|LOW] [--status VERIFIED|INFERRED|UNKNOWN]',\n 'devworkspace fact verify <key>',\n 'devworkspace fact remove <key>',\n 'devworkspace fact list',\n ],\n options: [\n ['--key', 'lowercase dotted key, e.g. auth.session-store'],\n ['--value', 'one concise sentence (no secrets, no absolute paths)'],\n ['--file <path>', 'repository file that evidences the fact (repeatable); used for staleness'],\n ...COMMON,\n ],\n examples: ['devworkspace fact add --key auth.sessions --value \"Sessions live in Redis\" --source \"src/auth/session.ts\" --file src/auth/session.ts --source-type ai --confidence HIGH --status VERIFIED'],\n },\n {\n name: 'feature',\n summary: 'Manage feature-level knowledge and end-to-end component traces',\n usage: [\n 'devworkspace feature list',\n 'devworkspace feature show <id>',\n 'devworkspace feature validate',\n 'devworkspace feature add --id <id> --name <name> [--entry <path>...] [--route <path>...] [--service <path>...] [--model <path>...] [--test <path>...] [--symbol <sym>]',\n ],\n options: [\n ['--id <id>', 'unique feature identifier, e.g. auth.login'],\n ['--name <name>', 'human-readable name for the feature'],\n ['--entry <path>', 'frontend entry point path (repeatable)'],\n ['--route <path>', 'backend route/controller path (repeatable)'],\n ['--service <path>', 'backend service path (repeatable)'],\n ['--model <path>', 'database model/schema path (repeatable)'],\n ['--test <path>', 'test file path (repeatable)'],\n ['--symbol <sym>', 'symbol name (function, class, endpoint) to verify in component files'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace feature list',\n 'devworkspace feature show auth.login',\n 'devworkspace feature validate',\n 'devworkspace feature add --id auth.login --name \"User Authentication\" --entry frontend/src/pages/Login.tsx --route backend/src/routes/auth.ts --symbol authRoutes',\n ],\n },\n {\n name: 'graph',\n summary: 'Inspect, trace, and generate Graphify-compatible knowledge graphs',\n usage: [\n 'devworkspace graph status',\n 'devworkspace graph trace [--from <path|query>] [--depth <n>]',\n 'devworkspace graph generate [--force] [--dry-run] [--out <file>]',\n ],\n options: [\n ['--from <path|query>', 'starting node file path or symbol name to trace from'],\n ['--depth <n>', 'maximum traversal depth (1-10, default 2)'],\n ['--force', 'overwrite an existing native Graphify graph with the offline fallback graph'],\n ['--dry-run', 'preview nodes, edges and files without writing to disk'],\n ['--out <file>', 'custom output file path (defaults to graphify-out/graph.json)'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace graph status',\n 'devworkspace graph trace --from src/api.ts --depth 3',\n 'devworkspace graph generate',\n 'devworkspace graph generate --force',\n ],\n },\n {\n name: 'task',\n summary: 'Track engineering tasks with a completion gate',\n usage: [\n 'devworkspace task new \"<request>\" [--type BUG|FEATURE|...]',\n 'devworkspace task list [--all] (alias: devworkspace tasks)',\n 'devworkspace task show <id>',\n 'devworkspace task status <id> <STATUS> [--note <text>]',\n 'devworkspace task update <id> [--title ..] [--criteria ..]... [--plan ..]... [--area ..]... [--blocker ..]... [--require <check>]... [--summary ..]',\n 'devworkspace task run <id> <check> [--package <dir>] [--timeout <seconds>] (executes the contract command; read-only checks only)',\n 'devworkspace task verify <id> <check> pass|fail|skip|pending [--package <dir>] [--reason user-override] [--detail <text>] (records a report, not an executed result)',\n 'devworkspace task tests <id> --phase baseline|after --passed <n> --failed <n>',\n 'devworkspace task attest <id> [--user-work-intact] [--knowledge-reviewed] [--final-state-inspected]',\n ],\n options: [\n ['--all', 'include completed tasks'],\n ['--package <dir>', 'with run/verify: the package the result belongs to (default: every changed package / the root)'],\n ['--timeout <seconds>', 'with run: per-command time limit (default 600)'],\n ...COMMON,\n ],\n examples: ['devworkspace task run T-20260101-ab12 typecheck', 'devworkspace task new \"Fix the quotation email bug\"', 'devworkspace task status T-20260101-ab12 COMPLETED'],\n },\n {\n name: 'testenv',\n summary: 'Declare a test environment so database-touching checks may run (local, never committed)',\n usage: [\n 'devworkspace testenv declare --package <dir> --check integration|security|e2e|unit [--check ...] --target \"<description>\" --yes',\n 'devworkspace testenv list',\n 'devworkspace testenv revoke --package <dir>',\n ],\n options: [\n ['--package <dir>', 'package directory the declaration covers'],\n ['--check <id>', 'check the declaration allows (repeatable)'],\n ['--target <text>', 'words describing the environment, never a connection string'],\n ['--yes', 'confirm that running those checks there is safe'],\n ...COMMON,\n ],\n examples: ['devworkspace testenv declare --package backend --check integration --target \"disposable docker compose stack\" --yes'],\n },\n {\n name: 'decision',\n summary: 'Record architectural/project decisions (append-only, human-readable)',\n usage: [\n 'devworkspace decision add --title <t> --context <c> --decision <d> --consequences <q> [--supersedes <n>]',\n 'devworkspace decision list',\n 'devworkspace decision show <n>',\n ],\n options: COMMON,\n examples: ['devworkspace decision list'],\n },\n {\n name: 'session',\n summary: 'Save or list short session summaries (never transcripts)',\n usage: [\n 'devworkspace session save --goal <g> [--done <x>]... [--area <a>]... [--tests-run <t>]... [--decision-note <d>]... [--remaining <r>]... [--next <n>] [--task <id>]',\n 'devworkspace session list',\n ],\n options: COMMON,\n examples: ['devworkspace session save --goal \"Fix login bug\" --done \"Added regression test\" --next \"Run e2e\"'],\n },\n {\n name: 'agent',\n summary: 'Manage coding agent integrations (claude, codex, cursor, copilot)',\n usage: [\n 'devworkspace agent install [--agent claude|codex|cursor|copilot|all] [--dry-run]',\n 'devworkspace agent list',\n ],\n options: [\n ['--agent <id>', 'agent adapter: claude, codex, cursor, copilot, or all (default: claude)'],\n ['--dry-run', 'preview the files that would change'],\n ...COMMON,\n ],\n examples: ['devworkspace agent install --agent cursor', 'devworkspace agent install --agent all --dry-run', 'devworkspace agent list'],\n },\n {\n name: 'export',\n summary: 'Export portable project knowledge to a JSON bundle',\n usage: ['devworkspace export [--out <file>] [--dry-run]'],\n options: [['--out <file>', 'output path (default: devworkspace-export-<date>.json)'], ...COMMON],\n examples: ['devworkspace export --out knowledge.json'],\n },\n {\n name: 'import',\n summary: 'Safely import an export bundle (validated; never silently overwrites)',\n usage: ['devworkspace import <file> [--dry-run] [--overwrite] [--allow-different-project]'],\n options: [['--overwrite', 'replace differing local files (backups are kept)'], ['--dry-run', 'show what would change'], ...COMMON],\n examples: ['devworkspace import knowledge.json --dry-run'],\n },\n {\n name: 'reset',\n summary: 'Delete .devworkspace/ so you can start again with init (shows a plan unless --yes)',\n usage: ['devworkspace reset [--include-agent-files] [--yes]'],\n options: [\n ['--yes', 'actually delete (without it, reset only shows what it would remove)'],\n ['--include-agent-files', 'also remove managed DevWorkspace blocks and skills from agent instruction files'],\n ['--dry-run', 'show the plan only'],\n ...COMMON,\n ],\n examples: ['devworkspace reset', 'devworkspace reset --yes', 'devworkspace reset --yes --include-agent-files && devworkspace init'],\n },\n {\n name: 'migrate',\n summary: 'Upgrade workspace files to the current schema (with backups)',\n usage: ['devworkspace migrate [--dry-run]'],\n options: [['--dry-run', 'list what would be migrated'], ...COMMON],\n examples: ['devworkspace migrate'],\n },\n {\n name: 'mcp',\n summary: 'Local-first Model Context Protocol (MCP) server and agent configuration',\n usage: [\n 'devworkspace mcp serve [--debug]',\n 'devworkspace mcp setup [--agent claude-code|codex|antigravity|all|auto] [--check] [--no-verify]',\n ],\n options: [\n ['--agent <name>', 'agent to configure (claude-code, codex, antigravity, all, auto)'],\n ['--check', 'validate and plan configuration without modifying files'],\n ['--no-verify', 'skip the live server start/handshake check'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace mcp serve',\n 'devworkspace mcp setup --agent claude-code',\n 'devworkspace mcp setup --agent antigravity --check',\n ],\n },\n];\n\nexport function topHelp(version: string): string {\n const w = Math.max(...COMMANDS.map((c) => c.name.length));\n return [\n `devworkspace ${version} - project-local AI engineering workspace`,\n '',\n 'Usage: devworkspace <command> [options]',\n '',\n 'Commands:',\n ...COMMANDS.map((c) => ` ${c.name.padEnd(w + 2)}${c.summary}`),\n '',\n 'Quick start:',\n ' cd my-project',\n ' npx devworkspace init',\n ' npx devworkspace analyze',\n ' # paste .devworkspace/analysis/onboarding-prompt.md into Claude Code',\n '',\n 'Global options: --json --cwd <dir> --debug --no-color --ascii --help --version',\n '(DevWorkspace never prompts interactively; destructive commands such as reset require --yes.)',\n 'Exit codes: 0 ok · 1 failure · 2 usage error or approval needed · 3 warnings (--strict) or setup finished but not fully verified · 130 interrupted',\n 'Run \"devworkspace <command> --help\" for details.',\n ].join('\\n');\n}\n\nexport function commandHelp(c: CommandHelp): string {\n const w = Math.max(...c.options.map(([o]) => o.length));\n return [\n `devworkspace ${c.name} - ${c.summary}`,\n '',\n 'Usage:',\n ...c.usage.map((u) => ` ${u}`),\n '',\n 'Options:',\n ...c.options.map(([o, d]) => ` ${o.padEnd(w + 2)}${d}`),\n '',\n 'Examples:',\n ...c.examples.map((e) => ` ${e}`),\n ].join('\\n');\n}\n"]}
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,GAAuB;IACjC,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IACrC,CAAC,aAAa,EAAE,4BAA4B,CAAC;IAC7C,CAAC,SAAS,EAAE,kCAAkC,CAAC;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAkB;IACrC;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,+DAA+D;QACxE,KAAK,EAAE,CAAC,mGAAmG,CAAC;QA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;KACnD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,CAAc;IACxC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,OAAO;QACL,gBAAgB,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,OAAO,EAAE;QACvC,EAAE;QACF,QAAQ;QACR,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,EAAE;QACF,UAAU;QACV,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACxD,EAAE;QACF,WAAW;QACX,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;KACnC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC","sourcesContent":["export interface CommandHelp {\n name: string;\n summary: string;\n usage: string[];\n options: [string, string][];\n examples: string[];\n}\n\nconst COMMON: [string, string][] = [\n ['--json', 'machine-readable output'],\n ['--cwd <dir>', 'run as if started in <dir>'],\n ['--debug', 'show stack traces and debug logs'],\n];\n\nexport const COMMANDS: CommandHelp[] = [\n {\n name: 'init',\n summary: 'Create .devworkspace/ in the current project (safe to re-run)',\n usage: ['devworkspace init [--root <dir>] [--dry-run] [--with-integrations [--yes] [--scope project|user]]'],\n options: [\n ['--root <dir>', 'project root (default: Git top-level or current directory)'],\n ['--dry-run', 'show what would be created'],\n ['--with-integrations', 'then run the same integration setup as \"devworkspace setup --integrations\"'],\n ['--yes', 'with --with-integrations: approve machine-level and third-party installs'],\n ...COMMON,\n ],\n examples: ['npx devworkspace init', 'npx devworkspace init --with-integrations --yes'],\n },\n {\n name: 'setup',\n summary: 'Single-command repository setup (inspect, initialize, discover contract & validate)',\n usage: [\n 'devworkspace setup',\n 'devworkspace setup --agent claude-code|codex|antigravity|all|auto [--check] [--no-verify] [--launcher auto|direct|npx] [--package-version <v>]',\n 'devworkspace setup --integrations [--yes] [--dry-run] [--scope project|user] [--only graphify,agent-skills,ponytail]',\n ],\n options: [\n ['--agent <name>', 'initialize if needed, configure MCP for agent (claude-code, codex, antigravity, all, auto = detect) and verify the server starts'],\n ['--check', 'with --agent: validate and plan without writing files'],\n ['--no-verify', 'with --agent: skip starting the MCP server to verify it'],\n ['--launcher auto|direct|npx', 'how agents start the server (default auto: PATH binary if version-matched, else npx)'],\n ['--package-version <v>', 'pin the npx launcher to devworkspace@<v>'],\n ['--integrations', 'set up external integrations (Graphify, Agent Skills, Ponytail)'],\n ['--dry-run', 'show exactly what would run; changes nothing'],\n ['--yes', 'with --integrations: approve machine-level and third-party installs'],\n ['--scope project|user', 'where to install (default: project; user needs --yes)'],\n ['--only <ids>', 'comma-separated: graphify, agent-skills, ponytail'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace setup',\n 'devworkspace setup --agent claude-code',\n 'devworkspace setup --agent antigravity --check',\n 'devworkspace setup --json',\n 'devworkspace setup --integrations --yes',\n ],\n },\n {\n name: 'integrations',\n summary: 'Show or repair the integration installation (observed, not assumed)',\n usage: [\n 'devworkspace integrations status [--quick] [--restarted] [--strict]',\n 'devworkspace integrations repair [--yes] [--dry-run] [--only <ids>] [--scope project|user]',\n ],\n options: [\n ['--quick', 'only look at files and PATH (fast, but nothing can show VERIFIED)'],\n ['--restarted', 'record that you restarted Claude Code, clearing RESTART_REQUIRED'],\n ['--strict', 'exit 3 unless every required integration is VERIFIED'],\n ...COMMON,\n ],\n examples: ['devworkspace integrations status', 'devworkspace integrations repair --yes'],\n },\n {\n name: 'analyze',\n summary: 'Deterministic repository discovery + generate the Claude onboarding prompt',\n usage: ['devworkspace analyze [--dry-run]'],\n options: [['--dry-run', 'discover and report without writing files'], ...COMMON],\n examples: ['devworkspace analyze', 'devworkspace analyze --json'],\n },\n {\n name: 'status',\n summary: 'Concise overview: health, Git, knowledge, tasks, integrations, verification',\n usage: ['devworkspace status [--strict] [--deep] (read-only)'],\n options: [['--strict', 'exit 3 when anything needs attention'], ['--deep', 'also run the integration health checks (what doctor does)'], ...COMMON],\n examples: ['devworkspace status', 'devworkspace status --json'],\n },\n {\n name: 'doctor',\n summary: 'Check the workspace, integrations, security and portability',\n usage: ['devworkspace doctor [--fix] [--strict] (core workspace and integrations are reported separately)'],\n options: [['--fix', 'safely create missing folders/ignore rules (never deletes)'], ['--strict', 'exit 3 when there are warnings'], ...COMMON],\n examples: ['devworkspace doctor', 'devworkspace doctor --json --strict'],\n },\n {\n name: 'refresh',\n summary: 'Re-derive deterministic facts and mark knowledge stale when its evidence changed',\n usage: ['devworkspace refresh [--dry-run] (writes discovery files and detector facts; --dry-run writes nothing)'],\n options: [['--dry-run', 'report stale knowledge without writing'], ...COMMON],\n examples: ['devworkspace refresh'],\n },\n {\n name: 'context',\n summary: 'Show what DevWorkspace believes about the project',\n usage: ['devworkspace context [--for <request>] [--role <explorer|tester|reviewer>] [--topic <prefix>] [--full]'],\n options: [\n ['--for <request>', 'task-aware context: only what this request needs, each item with the reason it is included (safety rules are always shown)'],\n ['--role <role>', 'role-sliced context for AI workflows: explorer, tester, reviewer (requires --for)'],\n ['--topic <text>', 'only facts and testing-contract entries that match <text> (safety rules are always shown)'],\n ['--full', 'also print .devworkspace/context/*.md'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace context --topic auth',\n 'devworkspace context --for \"fix the invoice total rounding bug\"',\n 'devworkspace context --for \"fix memory leak in auth\" --role explorer',\n 'devworkspace context --for \"add regression tests\" --role tester',\n 'devworkspace context --for \"review authentication changes\" --role reviewer',\n ],\n },\n {\n name: 'fact',\n summary: 'Record, verify or remove a piece of project knowledge',\n usage: [\n 'devworkspace fact add --key <key> --value <text> --source <desc> [--file <rel path>]... [--source-type ai|user|file|git] [--confidence HIGH|MEDIUM|LOW] [--status VERIFIED|INFERRED|UNKNOWN]',\n 'devworkspace fact verify <key>',\n 'devworkspace fact remove <key>',\n 'devworkspace fact list',\n ],\n options: [\n ['--key', 'lowercase dotted key, e.g. auth.session-store'],\n ['--value', 'one concise sentence (no secrets, no absolute paths)'],\n ['--file <path>', 'repository file that evidences the fact (repeatable); used for staleness'],\n ...COMMON,\n ],\n examples: ['devworkspace fact add --key auth.sessions --value \"Sessions live in Redis\" --source \"src/auth/session.ts\" --file src/auth/session.ts --source-type ai --confidence HIGH --status VERIFIED'],\n },\n {\n name: 'feature',\n summary: 'Manage feature-level knowledge and end-to-end component traces',\n usage: [\n 'devworkspace feature list',\n 'devworkspace feature show <id>',\n 'devworkspace feature validate',\n 'devworkspace feature add --id <id> --name <name> [--entry <path>...] [--route <path>...] [--service <path>...] [--model <path>...] [--test <path>...] [--symbol <sym>]',\n ],\n options: [\n ['--id <id>', 'unique feature identifier, e.g. auth.login'],\n ['--name <name>', 'human-readable name for the feature'],\n ['--entry <path>', 'frontend entry point path (repeatable)'],\n ['--route <path>', 'backend route/controller path (repeatable)'],\n ['--service <path>', 'backend service path (repeatable)'],\n ['--model <path>', 'database model/schema path (repeatable)'],\n ['--test <path>', 'test file path (repeatable)'],\n ['--symbol <sym>', 'symbol name (function, class, endpoint) to verify in component files'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace feature list',\n 'devworkspace feature show auth.login',\n 'devworkspace feature validate',\n 'devworkspace feature add --id auth.login --name \"User Authentication\" --entry frontend/src/pages/Login.tsx --route backend/src/routes/auth.ts --symbol authRoutes',\n ],\n },\n {\n name: 'graph',\n summary: 'Inspect, trace, and generate Graphify-compatible knowledge graphs',\n usage: [\n 'devworkspace graph status',\n 'devworkspace graph trace [--from <path|query>] [--depth <n>]',\n 'devworkspace graph generate [--force] [--dry-run] [--out <file>]',\n ],\n options: [\n ['--from <path|query>', 'starting node file path or symbol name to trace from'],\n ['--depth <n>', 'maximum traversal depth (1-10, default 2)'],\n ['--force', 'overwrite an existing native Graphify graph with the offline fallback graph'],\n ['--dry-run', 'preview nodes, edges and files without writing to disk'],\n ['--out <file>', 'custom output file path (defaults to graphify-out/graph.json)'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace graph status',\n 'devworkspace graph trace --from src/api.ts --depth 3',\n 'devworkspace graph generate',\n 'devworkspace graph generate --force',\n ],\n },\n {\n name: 'task',\n summary: 'Track engineering tasks with a completion gate',\n usage: [\n 'devworkspace task new \"<request>\" [--type BUG|FEATURE|...]',\n 'devworkspace task list [--all] (alias: devworkspace tasks)',\n 'devworkspace task show <id>',\n 'devworkspace task status <id> <STATUS> [--note <text>]',\n 'devworkspace task update <id> [--title ..] [--criteria ..]... [--plan ..]... [--area ..]... [--blocker ..]... [--require <check>]... [--summary ..]',\n 'devworkspace task run <id> <check> [--package <dir>] [--timeout <seconds>] (executes the contract command; read-only checks only)',\n 'devworkspace task verify <id> <check> pass|fail|skip|pending [--package <dir>] [--reason user-override] [--detail <text>] (records a report, not an executed result)',\n 'devworkspace task tests <id> --phase baseline|after --passed <n> --failed <n>',\n 'devworkspace task attest <id> [--user-work-intact] [--knowledge-reviewed] [--final-state-inspected]',\n ],\n options: [\n ['--all', 'include completed tasks'],\n ['--package <dir>', 'with run/verify: the package the result belongs to (default: every changed package / the root)'],\n ['--timeout <seconds>', 'with run: per-command time limit (default 600)'],\n ...COMMON,\n ],\n examples: ['devworkspace task run T-20260101-ab12 typecheck', 'devworkspace task new \"Fix the quotation email bug\"', 'devworkspace task status T-20260101-ab12 COMPLETED'],\n },\n {\n name: 'testenv',\n summary: 'Declare a test environment so database-touching checks may run (local, never committed)',\n usage: [\n 'devworkspace testenv declare --package <dir> --check integration|security|e2e|unit [--check ...] --target \"<description>\" --yes',\n 'devworkspace testenv list',\n 'devworkspace testenv revoke --package <dir>',\n ],\n options: [\n ['--package <dir>', 'package directory the declaration covers'],\n ['--check <id>', 'check the declaration allows (repeatable)'],\n ['--target <text>', 'words describing the environment, never a connection string'],\n ['--yes', 'confirm that running those checks there is safe'],\n ...COMMON,\n ],\n examples: ['devworkspace testenv declare --package backend --check integration --target \"disposable docker compose stack\" --yes'],\n },\n {\n name: 'decision',\n summary: 'Record architectural/project decisions (append-only, human-readable)',\n usage: [\n 'devworkspace decision add --title <t> --context <c> --decision <d> --consequences <q> [--supersedes <n>]',\n 'devworkspace decision list',\n 'devworkspace decision show <n>',\n ],\n options: COMMON,\n examples: ['devworkspace decision list'],\n },\n {\n name: 'session',\n summary: 'Save or list short session summaries (never transcripts)',\n usage: [\n 'devworkspace session save --goal <g> [--done <x>]... [--area <a>]... [--tests-run <t>]... [--decision-note <d>]... [--remaining <r>]... [--next <n>] [--task <id>]',\n 'devworkspace session list',\n ],\n options: COMMON,\n examples: ['devworkspace session save --goal \"Fix login bug\" --done \"Added regression test\" --next \"Run e2e\"'],\n },\n {\n name: 'agent',\n summary: 'Manage coding agent integrations (claude, codex, cursor, copilot)',\n usage: [\n 'devworkspace agent install [--agent claude|codex|cursor|copilot|all] [--dry-run]',\n 'devworkspace agent list',\n ],\n options: [\n ['--agent <id>', 'agent adapter: claude, codex, cursor, copilot, or all (default: claude)'],\n ['--dry-run', 'preview the files that would change'],\n ...COMMON,\n ],\n examples: ['devworkspace agent install --agent cursor', 'devworkspace agent install --agent all --dry-run', 'devworkspace agent list'],\n },\n {\n name: 'export',\n summary: 'Export portable project knowledge to a JSON bundle',\n usage: ['devworkspace export [--out <file>] [--dry-run]'],\n options: [['--out <file>', 'output path (default: devworkspace-export-<date>.json)'], ...COMMON],\n examples: ['devworkspace export --out knowledge.json'],\n },\n {\n name: 'import',\n summary: 'Safely import an export bundle (validated; never silently overwrites)',\n usage: ['devworkspace import <file> [--dry-run] [--overwrite] [--allow-different-project]'],\n options: [['--overwrite', 'replace differing local files (backups are kept)'], ['--dry-run', 'show what would change'], ...COMMON],\n examples: ['devworkspace import knowledge.json --dry-run'],\n },\n {\n name: 'reset',\n summary: 'Delete .devworkspace/ so you can start again with init (shows a plan unless --yes)',\n usage: ['devworkspace reset [--include-agent-files] [--yes]'],\n options: [\n ['--yes', 'actually delete (without it, reset only shows what it would remove)'],\n ['--include-agent-files', 'also remove managed DevWorkspace blocks and skills from agent instruction files'],\n ['--dry-run', 'show the plan only'],\n ...COMMON,\n ],\n examples: ['devworkspace reset', 'devworkspace reset --yes', 'devworkspace reset --yes --include-agent-files && devworkspace init'],\n },\n {\n name: 'migrate',\n summary: 'Upgrade workspace files to the current schema (with backups)',\n usage: ['devworkspace migrate [--dry-run]'],\n options: [['--dry-run', 'list what would be migrated'], ...COMMON],\n examples: ['devworkspace migrate'],\n },\n {\n name: 'mcp',\n summary: 'Local-first Model Context Protocol (MCP) server and agent configuration',\n usage: [\n 'devworkspace mcp serve [--debug]',\n 'devworkspace mcp setup [--agent claude-code|codex|antigravity|all|auto] [--check] [--no-verify]',\n ],\n options: [\n ['--agent <name>', 'agent to configure (claude-code, codex, antigravity, all, auto)'],\n ['--check', 'validate and plan configuration without modifying files'],\n ['--no-verify', 'skip the live server start/handshake check'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace mcp serve',\n 'devworkspace mcp setup --agent claude-code',\n 'devworkspace mcp setup --agent antigravity --check',\n ],\n },\n {\n name: 'agents',\n summary: 'Manage intelligent specialist agents and registry profiles',\n usage: [\n 'devworkspace agents list',\n 'devworkspace agents inspect <id>',\n 'devworkspace agents health [id]',\n 'devworkspace agents register <file>',\n 'devworkspace agents remove <id>',\n ],\n options: [...COMMON],\n examples: [\n 'devworkspace agents list',\n 'devworkspace agents inspect planner',\n 'devworkspace agents health developer',\n ],\n },\n {\n name: 'skills',\n summary: 'Manage portable engineering skills and progressive capabilities',\n usage: [\n 'devworkspace skills list',\n 'devworkspace skills search <query>',\n 'devworkspace skills inspect <id>',\n 'devworkspace skills install <file>',\n 'devworkspace skills validate <file>',\n 'devworkspace skills remove <id>',\n ],\n options: [['--query <text>', 'search keyword for skills'], ...COMMON],\n examples: [\n 'devworkspace skills list',\n 'devworkspace skills search api',\n 'devworkspace skills inspect api-development',\n ],\n },\n {\n name: 'orchestrate',\n summary: 'Multi-agent engineering orchestration, planning, and execution',\n usage: [\n 'devworkspace orchestrate plan \"<request>\" [--auto-approve]',\n 'devworkspace orchestrate run <runId>',\n 'devworkspace orchestrate status <runId>',\n 'devworkspace orchestrate explain <runId>',\n 'devworkspace orchestrate cancel <runId>',\n 'devworkspace orchestrate history',\n ],\n options: [\n ['--auto-approve', 'proceed without pausing for approval on standard mutations'],\n ['--timeout <seconds>', 'maximum execution time'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace orchestrate plan \"Refactor database models and add tests\"',\n 'devworkspace orchestrate run R-20261125-a1b2',\n 'devworkspace orchestrate status R-20261125-a1b2',\n 'devworkspace orchestrate history',\n ],\n },\n {\n name: 'intelligence',\n summary: 'Unified status, diagnostics, and benchmarks for intelligent orchestration',\n usage: [\n 'devworkspace intelligence status',\n 'devworkspace intelligence doctor',\n 'devworkspace intelligence benchmark',\n ],\n options: [...COMMON],\n examples: [\n 'devworkspace intelligence status',\n 'devworkspace intelligence doctor',\n ],\n },\n {\n name: 'standards',\n summary: 'Global engineering standards, The Undo Kit, and automated compliance auditing',\n usage: [\n 'devworkspace standards list [--category <cat>] [--applicable] [--status <status>]',\n 'devworkspace standards show <id>',\n 'devworkspace standards audit [--strict]',\n 'devworkspace standards check [<id>] [--strict]',\n 'devworkspace standards apply <id> [--force]',\n 'devworkspace standards add <file> [--title <name>] [--category <cat>] [--force]',\n 'devworkspace standards approve <id>',\n 'devworkspace standards update',\n 'devworkspace standards report [--out <path>]',\n 'devworkspace standards validate',\n ],\n options: [\n ['--category <cat>', 'filter standards by category (security, deployment, database, testing, etc.)'],\n ['--applicable', 'show only standards applicable to the current project technologies'],\n ['--strict', 'fail with exit code 3 if warnings are detected'],\n ['--force', 'overwrite existing templates during apply'],\n ['--out <path>', 'custom output file path for standards audit report'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace standards list --applicable',\n 'devworkspace standards show deployment-safety-and-rollback',\n 'devworkspace standards audit',\n 'devworkspace standards apply deployment-safety-and-rollback',\n 'devworkspace standards approve custom-api-standard',\n 'devworkspace standards report',\n ],\n },\n {\n name: 'guide',\n summary: 'Adaptive onboarding and evidence-backed next-step guidance',\n usage: [\n 'devworkspace guide [--experience beginner|guided|professional] [--privacy strict-local|cached-sync] [--save]',\n ],\n options: [\n ['--experience <level>', 'guidance detail: beginner (explanatory), guided (default), or professional (concise)'],\n ['--privacy <mode>', 'workspace privacy mode: strict-local (default) or cached-sync'],\n ['--save', 'persist experience and privacy preferences to .devworkspace/state/dx-preferences.json'],\n ['--deep', 'include full doctor diagnostics in recommendations'],\n ...COMMON,\n ],\n examples: [\n 'devworkspace guide',\n 'devworkspace guide --experience professional',\n 'devworkspace guide --experience beginner --privacy strict-local --save',\n ],\n },\n {\n name: 'dashboard',\n summary: 'Generate an optional, local-only accessible HTML dashboard (zero telemetry)',\n usage: ['devworkspace dashboard [--out <path>] [--no-standards]'],\n options: [\n ['--out <path>', 'workspace-relative output HTML path (default: .devworkspace/local/dashboard.html)'],\n ['--no-standards', 'skip running standards audit when generating snapshot'],\n ...COMMON,\n ],\n examples: ['devworkspace dashboard', 'devworkspace dashboard --out .devworkspace/local/overview.html --json'],\n },\n];\n\nexport function topHelp(version: string): string {\n const w = Math.max(...COMMANDS.map((c) => c.name.length));\n return [\n `devworkspace ${version} - project-local AI engineering workspace`,\n '',\n 'Usage: devworkspace <command> [options]',\n '',\n 'Commands:',\n ...COMMANDS.map((c) => ` ${c.name.padEnd(w + 2)}${c.summary}`),\n '',\n 'Quick start:',\n ' cd my-project',\n ' npx devworkspace init',\n ' npx devworkspace analyze',\n ' # paste .devworkspace/analysis/onboarding-prompt.md into Claude Code',\n '',\n 'Global options: --json --cwd <dir> --debug --no-color --ascii --help --version',\n '(DevWorkspace never prompts interactively; destructive commands such as reset require --yes.)',\n 'Exit codes: 0 ok · 1 failure · 2 usage error or approval needed · 3 warnings (--strict) or setup finished but not fully verified · 130 interrupted',\n 'Run \"devworkspace <command> --help\" for details.',\n ].join('\\n');\n}\n\nexport function commandHelp(c: CommandHelp): string {\n const w = Math.max(...c.options.map(([o]) => o.length));\n return [\n `devworkspace ${c.name} - ${c.summary}`,\n '',\n 'Usage:',\n ...c.usage.map((u) => ` ${u}`),\n '',\n 'Options:',\n ...c.options.map(([o, d]) => ` ${o.padEnd(w + 2)}${d}`),\n '',\n 'Examples:',\n ...c.examples.map((e) => ` ${e}`),\n ].join('\\n');\n}\n"]}
@@ -19,6 +19,8 @@ import type { FeatureSummary } from '../services/features.js';
19
19
  import type { ProjectSetupResult } from '../services/setup.js';
20
20
  import type { GraphGenerateResult, GraphStatusResult, GraphTraceResult } from '../services/graph.js';
21
21
  import type { McpSetupResult } from '../mcp/setup.js';
22
+ import type { EngineeringStandard, StandardsAuditReport, RegistryValidationResult } from '../standards/schema/types.js';
23
+ import type { StandardsListResult } from '../services/standards.js';
22
24
  export interface Style {
23
25
  ok(s: string): string;
24
26
  warn(s: string): string;
@@ -68,3 +70,7 @@ export declare function renderProjectSetup(s: Style, r: ProjectSetupResult): str
68
70
  export declare function renderGraphStatus(s: Style, res: GraphStatusResult): string;
69
71
  export declare function renderGraphTrace(s: Style, trace: GraphTraceResult): string;
70
72
  export declare function renderGraphGenerate(s: Style, res: GraphGenerateResult): string;
73
+ export declare function renderStandardsList(s: Style, result: StandardsListResult): string;
74
+ export declare function renderStandard(s: Style, std: EngineeringStandard): string;
75
+ export declare function renderStandardsAudit(s: Style, report: StandardsAuditReport): string;
76
+ export declare function renderRegistryValidation(s: Style, result: RegistryValidationResult): string;