workspai 0.44.0 → 0.46.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 (138) hide show
  1. package/README.md +243 -513
  2. package/contracts/cli-runtime-command-inventory.v1.snapshot.json +1372 -0
  3. package/contracts/command-capabilities.v1.json +166 -1
  4. package/contracts/extension-cli-compatibility.v1.json +4 -2
  5. package/contracts/published-contract-catalog.v1.json +12 -1
  6. package/contracts/runtime-command-surface.v1.json +1478 -3
  7. package/contracts/workspace-archive-capabilities.v1.json +17 -6
  8. package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +4 -0
  9. package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +207 -0
  10. package/contracts/workspace-intelligence-architecture.v1.json +1 -1
  11. package/contracts/workspace-intelligence-chain.v1.json +37 -1
  12. package/dist/analyze-BEBEZSZK.js +1 -0
  13. package/dist/{artifact-remediation-plan-Z7OCSME3.js → artifact-remediation-plan-FFQSESAM.js} +1 -1
  14. package/dist/autopilot-release-WUR4CQIT.js +1 -0
  15. package/dist/chunk-2G7FASAO.js +2 -0
  16. package/dist/{chunk-CL6TGI4Q.js → chunk-4EPHWD27.js} +1 -1
  17. package/dist/{chunk-J4AICQFB.js → chunk-4LGXSBCN.js} +1 -1
  18. package/dist/chunk-52PBRX7F.js +1 -0
  19. package/dist/{chunk-2QOWRBQD.js → chunk-6IIZJQLV.js} +1 -1
  20. package/dist/{chunk-JICOD2GI.js → chunk-CVHMUSRX.js} +1 -1
  21. package/dist/{chunk-7UZVOYF5.js → chunk-DIPD72H4.js} +1 -1
  22. package/dist/chunk-EFYHGCGX.js +2 -0
  23. package/dist/chunk-EYJ2CQSK.js +1 -0
  24. package/dist/chunk-FPJNWPKU.js +1 -0
  25. package/dist/{chunk-JP25YL3J.js → chunk-FTY7GGXJ.js} +2 -2
  26. package/dist/chunk-FWRXA435.js +2 -0
  27. package/dist/chunk-FXQJX34Z.js +1 -0
  28. package/dist/chunk-HDURFXW5.js +2 -0
  29. package/dist/chunk-HMUKBW2S.js +4 -0
  30. package/dist/{chunk-OW4UNG27.js → chunk-J5PIZCAU.js} +92 -78
  31. package/dist/{chunk-P4SWTY5X.js → chunk-K4WNYXKK.js} +7 -7
  32. package/dist/chunk-MER6ZBN2.js +13 -0
  33. package/dist/chunk-N7DV5L7C.js +1 -0
  34. package/dist/{chunk-JHC6SCJC.js → chunk-NHN4QXPP.js} +1 -1
  35. package/dist/{chunk-P424XYHP.js → chunk-PRBVYW3T.js} +1 -1
  36. package/dist/{chunk-NTXO7BMH.js → chunk-QA5BGEQW.js} +1 -1
  37. package/dist/chunk-QZLIURER.js +13 -0
  38. package/dist/{chunk-L3E6IRUQ.js → chunk-RIEF2DDX.js} +1 -1
  39. package/dist/{chunk-L2Q7B2OJ.js → chunk-SXMTSV5M.js} +1 -1
  40. package/dist/chunk-SXPY523X.js +1 -0
  41. package/dist/{chunk-XIVFLY6G.js → chunk-UQWOVV6V.js} +1 -1
  42. package/dist/chunk-V3LRQZ36.js +1 -0
  43. package/dist/chunk-VFDM65IE.js +80 -0
  44. package/dist/{chunk-B66A4TVP.js → chunk-WPEEC5BX.js} +1 -1
  45. package/dist/chunk-WYFPXTTS.js +2 -0
  46. package/dist/{chunk-M4VITK6X.js → chunk-YUATNVOT.js} +62 -51
  47. package/dist/{chunk-7IHLTPZ6.js → chunk-ZKAI3PJE.js} +1 -1
  48. package/dist/{create-DFAWAS5C.js → create-WCV3L6XH.js} +1 -1
  49. package/dist/doctor-5BWM2EMJ.js +1 -0
  50. package/dist/{dotnet-webapi-clean-BYUUHX5Y.js → dotnet-webapi-clean-6TVFBTVI.js} +20 -20
  51. package/dist/{gofiber-standard-B6UK5GR7.js → gofiber-standard-2BL7GWZB.js} +1 -1
  52. package/dist/{gogin-standard-BXU44VEM.js → gogin-standard-XGP3KBXA.js} +1 -1
  53. package/dist/index.d.ts +123 -15
  54. package/dist/index.js +337 -323
  55. package/dist/pipeline-ORIWVVYM.js +5 -0
  56. package/dist/{platform-capabilities-YICBF4FA.js → platform-capabilities-2B4QMZXE.js} +1 -1
  57. package/dist/{pythonRapidkitExec-UJYIB6FL.js → pythonRapidkitExec-CVCIK225.js} +1 -1
  58. package/dist/{springboot-standard-PEHDKH2L.js → springboot-standard-JJNUID6M.js} +6 -6
  59. package/dist/workspace-7OXW5YTJ.js +1 -0
  60. package/dist/{workspace-agent-sync-ZYCPXTU3.js → workspace-agent-sync-O4IA6VOA.js} +1 -1
  61. package/dist/workspace-archive-H74NBBNW.js +10 -0
  62. package/dist/{workspace-context-WAGGJCDL.js → workspace-context-R7IPUBPG.js} +1 -1
  63. package/dist/workspace-contract-HKCMOMFE.js +1 -0
  64. package/dist/workspace-explain-GOPQYTPQ.js +1 -0
  65. package/dist/workspace-explain-contract-SVFJAAEI.js +1 -0
  66. package/dist/{workspace-feedback-RCB25NFO.js → workspace-feedback-REOS36ZZ.js} +1 -1
  67. package/dist/{workspace-foundation-KXDL6P6X.js → workspace-foundation-KXT4QI5O.js} +1 -1
  68. package/dist/{workspace-history-M4QQBIPB.js → workspace-history-OGOVSKZG.js} +1 -1
  69. package/dist/{workspace-intelligence-QOGD2TZS.js → workspace-intelligence-7IESQSXY.js} +1 -1
  70. package/dist/workspace-intelligence-runner-6GJ5M4HB.js +1 -0
  71. package/dist/{workspace-mcp-serve-CEFKEMYG.js → workspace-mcp-serve-FRVWBO36.js} +1 -1
  72. package/dist/{workspace-model-GMSRBICO.js → workspace-model-PPYX7B4S.js} +1 -1
  73. package/dist/workspace-python-engine-state-2MLKJYQG.js +2 -0
  74. package/dist/workspace-registry-summary-SZ46R5PD.js +1 -0
  75. package/dist/workspace-run-V3KKHTVF.js +1 -0
  76. package/dist/{workspace-verify-NP4GMFSV.js → workspace-verify-MFQ7IXGD.js} +1 -1
  77. package/dist/{workspace-watch-IIBH3Y25.js → workspace-watch-SOPZHRWA.js} +1 -1
  78. package/docs/AI_DYNAMIC_INTEGRATION.md +29 -33
  79. package/docs/AI_FEATURES.md +18 -27
  80. package/docs/AI_QUICKSTART.md +7 -4
  81. package/docs/DEVELOPMENT.md +5 -5
  82. package/docs/From Code to Shared Understanding.png +0 -0
  83. package/docs/OPEN_SOURCE_USER_SCENARIOS.md +23 -2
  84. package/docs/OPTIMIZATION_GUIDE.md +19 -51
  85. package/docs/PACKAGE_MANAGER_POLICY.md +4 -1
  86. package/docs/README.md +30 -3
  87. package/docs/SECURITY.md +13 -6
  88. package/docs/SETUP.md +6 -3
  89. package/docs/UTILITIES.md +8 -20
  90. package/docs/WORKSPACE_MARKER_SPEC.md +27 -20
  91. package/docs/ci-workflows.md +19 -5
  92. package/docs/commands-reference.md +51 -10
  93. package/docs/config-file-guide.md +64 -247
  94. package/docs/contracts/ARTIFACT_CATALOG.md +14 -2
  95. package/docs/contracts/CLI_LOG_EVENT_STREAM.md +1 -1
  96. package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +27 -6
  97. package/docs/contracts/README.md +5 -2
  98. package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +4 -4
  99. package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +14 -10
  100. package/docs/creating-workspaces-and-projects.md +649 -0
  101. package/docs/doctor-command.md +5 -4
  102. package/docs/examples/ci-agent-grounding.yml +16 -10
  103. package/docs/from-code-to-shared-understanding.md +69 -38
  104. package/docs/workspace-intelligence-runner.md +186 -0
  105. package/docs/workspace-operations.md +29 -11
  106. package/docs/workspace-run.md +4 -1
  107. package/package.json +10 -8
  108. package/rapidkit.config.example.cjs +5 -5
  109. package/scripts/enforce-package-manager.cjs +1 -1
  110. package/scripts/prepack-enterprise.mjs +8 -0
  111. package/workspai.config.example.cjs +12 -47
  112. package/dist/analyze-6OCBM4ID.js +0 -1
  113. package/dist/autopilot-release-LI2WJCEW.js +0 -1
  114. package/dist/chunk-2K3GYCPS.js +0 -1
  115. package/dist/chunk-2QN6BMM7.js +0 -2
  116. package/dist/chunk-5AKYMAIL.js +0 -1
  117. package/dist/chunk-5PVEQ6CZ.js +0 -13
  118. package/dist/chunk-7EIMPQR3.js +0 -1
  119. package/dist/chunk-7RIWU5TZ.js +0 -1
  120. package/dist/chunk-FWJV7CCI.js +0 -2
  121. package/dist/chunk-LGP6WXS2.js +0 -4
  122. package/dist/chunk-TRMDODFM.js +0 -13
  123. package/dist/chunk-UNF72FTB.js +0 -1
  124. package/dist/chunk-V5JN4TDX.js +0 -2
  125. package/dist/chunk-VA5MRHKM.js +0 -2
  126. package/dist/chunk-XZGVNGRB.js +0 -1
  127. package/dist/chunk-YUX4YFGL.js +0 -78
  128. package/dist/doctor-PVSWDBJL.js +0 -1
  129. package/dist/imported-projects-registry-FOIE27WT.js +0 -1
  130. package/dist/pipeline-ND734AJM.js +0 -5
  131. package/dist/workspace-FQT3QIRS.js +0 -1
  132. package/dist/workspace-archive-EEGLHZDW.js +0 -10
  133. package/dist/workspace-contract-SEI4SNSG.js +0 -1
  134. package/dist/workspace-explain-MVGGRCDN.js +0 -1
  135. package/dist/workspace-explain-contract-KT757JGQ.js +0 -1
  136. package/dist/workspace-python-engine-state-MTWIIZPY.js +0 -2
  137. package/dist/workspace-registry-summary-S52SEJAG.js +0 -1
  138. package/dist/workspace-run-VC4OUPRF.js +0 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/workspai.svg?style=flat-square)](https://www.npmjs.com/package/workspai)
6
6
  [![Downloads](https://img.shields.io/npm/dm/workspai.svg?style=flat-square)](https://www.npmjs.com/package/workspai)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
8
8
  [![Built by Workspai](https://img.shields.io/badge/Built%20by-Workspai-0f172a?logo=github)](https://workspai.dev)
9
9
 
10
10
  Not another AI coding assistant.
@@ -25,6 +25,7 @@ contracts, and release gates.
25
25
 
26
26
  ```bash
27
27
  npm install -g workspai
28
+ workspai --help
28
29
  ```
29
30
 
30
31
  For short `npx` workflows, use the separate alias package:
@@ -33,605 +34,334 @@ For short `npx` workflows, use the separate alias package:
33
34
  npx wspai --help
34
35
  ```
35
36
 
37
+ `workspai` is the canonical npm package and command. `wspai` is an optional
38
+ short alias for `npx` workflows. RapidKit Core is the optional Python engine
39
+ used only by Python/Core-dependent workflows; it is not a replacement CLI.
40
+ This package is the active CLI boundary in the
41
+ [Workspai monorepo](../../README.md).
42
+
36
43
  ### CLI help
37
44
 
38
- Browse all commands without a global install (first run fetches from npm):
45
+ Browse all commands from the latest release without a global install:
39
46
 
40
47
  ```bash
41
- npx workspai --help
48
+ npx workspai@latest --help
42
49
  ```
43
50
 
44
- ### Create a governed workspace
51
+ ## Get Workspace Intelligence
45
52
 
46
- ```bash
47
- npx workspai my-workspace --yes --profile polyglot
48
- cd ~/.workspai/workspaces/my-workspace
53
+ Project creation, import, and adoption are entry routes. The core experience
54
+ starts when Workspai builds a durable model of the whole workspace and turns it
55
+ into evidence that different tools can consume.
49
56
 
50
- npx workspai bootstrap --profile polyglot
51
- npx workspai create project nextjs my-web --yes
52
- npx workspai create project fastapi.standard my-api --yes
53
-
54
- npx workspai workspace model --json
55
- npx workspai workspace context --for-agent --json --write
56
- npx workspai pipeline --json --strict
57
- ```
58
-
59
- ### Adopt an existing project
57
+ Connect an existing project without moving or copying its source:
60
58
 
61
59
  ```bash
62
- npx workspai adopt /path/to/project
60
+ npx workspai adopt /path/to/project --json
63
61
  cd ~/.workspai/workspaces/workspai
64
-
65
- npx workspai workspace model --json
66
- npx workspai workspace context --for-agent --json --write
67
- npx workspai pipeline --json --strict
68
62
  ```
69
63
 
70
- ### What you get
71
-
72
- - A governed workspace boundary for projects, policies, reports, and contracts
73
- - Native create for Workspai-owned backend and frontend kits
74
- - Adopt/import for existing repositories without moving source code
75
- - Agent-ready context packs for Copilot, Cursor, Claude, Codex, and other tools
76
- - Impact analysis and release gates backed by workspace evidence
77
- - One shared truth for developers, CI, IDEs, and AI agents
78
-
79
- ## Create planner
80
-
81
- Workspai does not pretend every technology is a native scaffold. It uses a
82
- create planner contract to choose the safest path:
83
-
84
- | Lane | Use when | Result |
85
- | ---------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
86
- | `native` | Workspai owns the scaffold contract | Create the project with a first-class Workspai kit |
87
- | `official` | The ecosystem has an official generator | Run an available official generator and register it, or adopt planned handoffs |
88
- | `existing` | The project already exists, or no create path is available or necessary | Register, model, verify, and govern the project without scaffolding it |
89
-
90
- Native create is reserved for Workspai-owned kits such as FastAPI, NestJS,
91
- Go, Spring Boot, and .NET. Official generator paths cover frontend frameworks
92
- such as Next.js, Vite, Nuxt, Angular, Astro, Remix, and SvelteKit.
93
-
94
- External ecosystems such as WordPress, Laravel, Symfony, Rails, and generic PHP
95
- projects can still enter Workspai through adopt/import and receive workspace
96
- model, context, impact, doctor, and release governance.
97
-
98
- Details: [docs/create-planner-capabilities.md](docs/create-planner-capabilities.md).
99
-
100
- ## Workspace Intelligence
101
-
102
- Most AI tools understand:
103
-
104
- - Files
105
- - Functions
106
- - Repositories
107
-
108
- Production systems require understanding:
109
-
110
- - Ownership
111
- - Architecture
112
- - Dependencies
113
- - Operational context
114
- - Verification requirements
115
- - Change impact
116
-
117
- Workspai adds the missing layer:
118
-
119
- **Workspace Intelligence.**
120
-
121
- **One workspace. One truth. Humans and AI aligned.**
122
-
123
- A shared, evidence-backed understanding of software systems for developers, CI pipelines, IDEs, and AI agents.
124
-
125
- In Workspai, Workspace Intelligence is not a chat feature. It is the deterministic workspace layer behind the CLI:
126
-
127
- - **Model** — what projects, runtimes, frameworks, commands, policies, contracts, and evidence exist
128
- - **Context** — what AI agents and IDEs should know before giving advice
129
- - **Impact** — what changed and which projects, commands, and release gates are affected
130
- - **Verify** — which evidence proves the workspace is ready, blocked, or needs attention
131
- - **Sync** — how developers, CI, Workspai, and AI agents stay grounded in the same truth
132
- - **Freshness** — which facts are durable, derived, evidence-backed, live, or must be verified before use
133
-
134
- ## From Code to Shared Understanding
135
-
136
- How Workspai transforms projects and repositories into workspace intelligence for developers, CI, and AI agents.
137
-
138
- ![From Code to Shared Understanding](https://raw.githubusercontent.com/rapidkitlabs/workspai/main/packages/cli/docs/From%20Code%20to%20Shared%20Understanding.png)
139
-
140
- Mermaid source for GitHub docs: [from-code-to-shared-understanding.md](docs/from-code-to-shared-understanding.md).
141
-
142
- Workspai provides the workspace intelligence engine: model, context, impact, verification, evidence, contracts, governance, and the VS Code experience on top of that foundation.
143
-
144
- For the visual experience, install the [Workspai VS Code extension](https://marketplace.visualstudio.com/items?itemName=rapidkit.rapidkit-vscode).
145
-
146
- ## Table of contents
147
-
148
- - [Start here](#start-here)
149
- - [Create planner](#create-planner)
150
- - [Workspace Intelligence](#workspace-intelligence)
151
- - [From Code to Shared Understanding](#from-code-to-shared-understanding)
152
- - [Typical workflows](#typical-workflows)
153
- - [Mental model](#mental-model)
154
- - [Why this architecture helps](#why-this-architecture-helps)
155
- - [Workspace Intelligence Commands](#workspace-intelligence-commands)
156
- - [Agent Customization Pack](#agent-customization-pack)
157
- - [Requirements](#requirements)
158
- - [Install](#install)
159
- - [Project workflows](#project-workflows)
160
- - [CI & evidence](#ci--evidence)
161
- - [Workspai ecosystem](#workspai-ecosystem)
162
- - [VS Code extension](#vs-code-extension)
163
- - [Documentation](#documentation)
164
- - [Development](#development)
165
- - [Troubleshooting](#troubleshooting)
166
- - [License](#license)
167
-
168
- ## Typical workflows
169
-
170
- | Question | Command |
171
- | --------------------------------------------- | -------------------------------------------------------------------------------------------- |
172
- | What projects exist in this workspace? | `workspace model --json` |
173
- | What context should AI agents receive? | `workspace context --for-agent --json --write` |
174
- | What breaks if I change this? | `workspace impact --from .workspai/reports/workspace-model-diff-last-run.json` |
175
- | Why is release blocked? | `workspace explain release-blocked --json --write` |
176
- | Trace a diff through blast radius and gates? | `workspace trace --from .workspai/reports/workspace-model-diff-last-run.json --json --write` |
177
- | What should Studio do for blocked artifacts? | `workspace remediation-plan --ci --json --write` |
178
- | Can I safely release? | `pipeline --json --strict` |
179
- | How do I align AI tools and CI? | `workspace agent-sync --write` |
180
- | Expose workspace evidence to MCP clients? | `workspace mcp serve` |
181
- | How do I onboard an existing project? | `adopt` |
182
- | How do I bring repositories into a workspace? | `import` |
183
-
184
- ### Existing project
185
-
186
- ```bash
187
- npx workspai adopt /path/to/project --workspace /path/to/workspace
188
- npx workspai workspace model --json
189
- ```
190
-
191
- ### Agent-ready workspace
64
+ Execute the canonical chain and persist the shared model, evidence, and
65
+ agent-ready context:
192
66
 
193
67
  ```bash
194
- npx workspai workspace context --for-agent --json --write
195
- npx workspai workspace agent-sync --write --refresh-context --preset enterprise
196
- npx workspai workspace agent-sync --write --refresh-context --preset enterprise --experimental-hooks
68
+ npx workspai workspace intelligence run --for-agent codex --strict --json
197
69
  ```
198
70
 
199
- ### Release verification
200
-
201
- ```bash
202
- npx workspai pipeline --json --strict
203
- ```
204
-
205
- ### Adopt in place
206
-
207
- ```bash
208
- npx workspai adopt /path/to/project --workspace /path/to/workspace --json
209
- npx workspai adopt --json # from inside the project folder
210
- ```
211
-
212
- ### Workspace layout
71
+ You now have a common source of truth for projects, runtimes, dependencies,
72
+ commands, policies, contracts, health, and release evidence. The first durable
73
+ outputs include:
213
74
 
214
75
  ```text
215
- ~/.workspai/workspaces.json
216
- ~/.workspai/workspaces/
217
- workspai/ # managed default (standalone, import, and adopt fallback)
218
- my-workspace/ # user-created workspaces
76
+ .workspai/reports/workspace-model.json
77
+ .workspai/reports/workspace-context-agent.json
78
+ .workspai/reports/INDEX.json
79
+ .workspai/reports/workspace-intelligence-run-last-run.json
80
+ AGENTS.md
219
81
  ```
220
82
 
221
- New workspaces go under `~/.workspai/workspaces/<name>`. Legacy `~/rapidkit/workspaces/*` and `~/Workspai/rapidkits/*` paths remain registered. Use `--output <parent-dir>` for a custom parent.
222
-
223
- ## Mental model
83
+ Already inside a Workspai workspace? Start directly with the canonical
84
+ `workspace intelligence run --for-agent codex --strict --json` runner.
224
85
 
225
- ### Two capabilities, one workspace intelligence layer
226
-
227
- ```text
228
- Workspace Intelligence → every project in the workspace
229
- Native generation → first-class scaffolds and stack-specific project creation
230
- Deep module generation → selected backend engine kits such as FastAPI and NestJS
231
- ```
86
+ The broader governance and release pipeline is a separate gate when you are
87
+ ready; it is not a substitute for the canonical chain:
232
88
 
233
- Workspace Intelligence is not limited to a framework lane. It works across
234
- Workspai-created projects, frontend apps, Go, Spring Boot, .NET, FastAPI, NestJS,
235
- and adopted/imported repositories. The difference is generation depth:
236
- some stacks have first-class scaffolds, some use official ecosystem generators,
237
- and existing projects can be adopted in place.
238
-
239
- Workspai treats the **workspace** as the operating boundary: policy, registry,
240
- evidence, contracts, and release readiness. Projects can live inside the
241
- workspace or be **adopted** from outside.
242
-
243
- ```text
244
- workspace/
245
- .workspai-workspace
246
- .workspai/workspace.json
247
- .workspai/reports/
248
- workspace-model.json
249
- workspace-context-agent.json
250
- INDEX.json
251
- agent-customization-pack.json
252
- workspace-skills-index.json
253
- workspai-mcp-design.json
254
- .workspai/skills/
255
- .workspai/AGENT-GROUNDING.md
256
- services/api/
257
- .workspai/project.json
258
- AGENTS.md
259
- .github/copilot-instructions.md
260
- .github/instructions/
261
- .github/prompts/
262
- .github/skills/
263
- .github/agents/
264
- .cursor/rules/workspai-grounding.mdc
265
- CLAUDE.md
266
- .vscode/workspai-agent-hooks.json
267
-
268
- external-project/
269
- .workspai/project.json
270
- .workspai/adopt.json
89
+ ```bash
90
+ npx workspai pipeline --json --strict
271
91
  ```
272
92
 
273
- `.workspai/workspace.json` is the workspace manifest, not the project list.
274
- Legacy `.rapidkit/*` metadata is read as a fallback when opening older workspaces,
275
- but new Workspai CLI writes target `.workspai/*`.
276
- Projects are discovered from workspace project metadata, imported/adopted
277
- records, and workspace intelligence reports.
278
-
279
- Agent-facing outputs are generated from the same evidence layer:
280
- `workspace context --for-agent --write` writes the agent context report, and
281
- `workspace agent-sync --write --refresh-context --preset enterprise` writes the
282
- portable `AGENTS.md`, report index, skills, Copilot/Cursor/Claude surfaces, and
283
- agent handoff files. The exact generated output inventory is recorded in
284
- `.workspai/reports/agent-customization-pack.json` and summarized in the
285
- [Agent Customization Pack](#agent-customization-pack) section below.
286
-
287
- Every tool gets the same answers for every registered project: what projects
288
- exist, what stack they use, which commands are safe, what evidence exists, what
289
- changed, what release gates apply, and what context agents should receive.
290
-
291
- ## Why this architecture helps
292
-
293
- You do not have to change frameworks to benefit from Workspai.
93
+ ## From Code to Shared Understanding
294
94
 
295
- Use the frontend or backend stack that already fits your product: Next.js,
296
- Vite, FastAPI, NestJS, Go, Spring Boot, .NET, or an existing repository you
297
- adopt in place. Workspai adds the workspace layer around it: project registry,
298
- safe commands, evidence, impact analysis, agent context, verification, and
299
- release gates.
95
+ ![From Code to Shared Understanding](https://raw.githubusercontent.com/rapidkitlabs/workspai/main/packages/cli/docs/From%20Code%20to%20Shared%20Understanding.png)
300
96
 
301
- That means you can move faster without turning the product into a fragile
302
- prototype:
97
+ [View the Mermaid source and explanation](docs/from-code-to-shared-understanding.md).
303
98
 
304
- - Start new products with governed scaffolds when Workspai owns the create path
305
- - Adopt existing products without moving source code or rewriting the stack
306
- - Give humans, CI, IDEs, and AI agents the same workspace truth
307
- - Know what changed, what is affected, and what must be verified before release
308
- - Keep framework stability while adding professional product-development
309
- workflows around the codebase
99
+ Workspai is the deterministic layer between source code and its consumers:
310
100
 
311
- The result is faster product development with clearer boundaries, safer AI
312
- assistance, and release decisions backed by evidence instead of guesswork.
101
+ | Capability | What it answers |
102
+ | --------------------- | ------------------------------------------------------------------------------------------- |
103
+ | **Model** | What projects, runtimes, frameworks, commands, policies, contracts, and dependencies exist? |
104
+ | **Snapshot and diff** | What changed between two known workspace states? |
105
+ | **Impact** | Which projects and transitive dependents are affected? |
106
+ | **Evidence** | What do health, analysis, contracts, and readiness reports prove? |
107
+ | **Verify** | Is the affected workspace ready, blocked, stale, or missing evidence? |
108
+ | **Context** | What should developers, IDEs, and AI agents know before acting? |
109
+ | **Explain** | Why is a project, change, or release blocked, and what should happen next? |
110
+ | **Sync** | How do tools stay aligned with the same current workspace truth? |
313
111
 
314
- ## Workspace Intelligence Commands
112
+ Create, import, and adopt add software to this boundary. Workspace Intelligence
113
+ then models and governs every registered project, whether Workspai created it or
114
+ it already existed.
315
115
 
316
- Workspace Intelligence provides a shared understanding of projects, dependencies, operational context, and release readiness for developers, CI pipelines, and AI agents.
116
+ ## One Intelligence Chain
317
117
 
318
118
  The canonical execution order is versioned in
319
- [`contracts/workspace-intelligence-chain.v1.json`](contracts/workspace-intelligence-chain.v1.json).
320
- CLI, IDE, CI, agent grounding, documentation, and diagrams must consume that
321
- contract instead of maintaining independent command sequences. It currently defines:
119
+ [`workspace-intelligence-chain.v1.json`](contracts/workspace-intelligence-chain.v1.json):
322
120
 
323
121
  ```text
324
- Model -> Snapshot -> Diff -> Impact -> Doctor -> Contract Verify -> Readiness
122
+ Model -> Diff -> Impact -> Doctor + Contract Verify + Analyze -> Readiness
325
123
  -> Verify -> Context -> Agent Sync -> Explain
326
124
  ```
327
125
 
328
- Each contracted step declares its command, dependencies, consumed and produced
329
- artifacts, and whether a non-zero structured verdict continues or stops the chain.
330
-
331
- | Command | Purpose |
332
- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
333
- | `workspace model [--cache\|--incremental] --json` | Canonical workspace model (graph-aware, incremental rebuilds) |
334
- | `workspace context --for-agent --json --write` | Agent-ready context pack + auto agent grounding sync |
335
- | `workspace agent-sync --write` | Agent Customization Pack (AGENTS.md, Copilot, Cursor, Claude, INDEX, skills, agents) |
336
- | `workspace snapshot --json` | Persist model snapshot |
337
- | `workspace diff --from <file\|git[:ref]> --json` | Diff against snapshot or git |
338
- | `workspace impact --from <file> --json` | Graph-aware transitive blast-radius evidence |
339
- | `workspace verify [--strict] --json` | Definitive verification gate (subgraph + freshness + policy + fleet evidence) |
340
- | `workspace remediation-plan [--ci] --json --write` | Cross-artifact Studio repair plan for blocked governance cards |
341
- | `workspace explain <target> [--write] --json` | Human narrative for release blockers, projects, or trace slices |
342
- | `workspace why <target>` | Alias of `workspace explain` |
343
- | `workspace trace --from <diff> [--write] --json` | Diff → impact → gates narrative for agents and IDE handoff |
344
- | `workspace feedback record --json` | Append structured agent action outcomes to intelligence history |
345
- | `workspace mcp serve` | Read-mostly stdio MCP bridge over workspace evidence |
346
- | `workspace graph <emit\|explain\|dot\|mermaid>` | Inspect and visualize the dependency graph |
347
- | `workspace watch [--json] [--once]` | Daemon mode: keep model + graph in memory, stream change events |
348
- | `workspace run <stage> [--scope project:X] [--reuse-passed]` | Fleet init/test/build/start or custom stages from `.workspai/context.json` |
349
-
350
- JSON schemas: `contracts/workspace-intelligence/`. Command coexistence and naming:
351
- [docs/contracts/NAMING_AND_COEXISTENCE.md](docs/contracts/NAMING_AND_COEXISTENCE.md).
352
- Details: [commands-reference.md](docs/commands-reference.md).
353
-
354
- ### Operational intelligence (Phase 4)
355
-
356
- After model diff impact verify, use **explain** and **trace** for
357
- human/agent narratives, **feedback** to record outcomes, and **MCP serve** for
358
- read-only tool access:
126
+ Each step declares what it consumes, what it produces, and whether its verdict
127
+ continues or stops the chain. The CLI, CI, IDE integrations, generated agent
128
+ instructions, and documentation can therefore use the same contract instead of
129
+ inventing separate workflows.
130
+
131
+ The execution envelope reports `sync` before Model and baseline resolution
132
+ after Model/before Diff as exactly two `preflight` entries. They are not extra
133
+ chain stages. The report always contains exactly 11 ordered `stages`; exit `0`
134
+ means passed, `1` is a hard execution failure, and `2` is an evidence-blocked
135
+ completed run. See [Unified Workspace Intelligence Runner](docs/workspace-intelligence-runner.md)
136
+ for the complete report, baseline, failure-propagation, and CI contract.
137
+
138
+ Use `workspace intelligence run --for-agent <agent> --strict --json` to execute
139
+ and enforce this exact contract-backed order. `pipeline --json --strict` remains
140
+ the broader governance/release orchestrator (`sync doctor analyze readiness
141
+ autopilot`); it is not an alias for the canonical intelligence chain.
142
+
143
+ ## Core Workflows
144
+
145
+ | What you need | Command |
146
+ | ------------------------------------------ | ---------------------------------------------------------------------------------------- |
147
+ | Build and persist the current system model | `npx workspai workspace model --json --write` |
148
+ | Generate agent-ready context | `npx workspai workspace context --for-agent --json --write` |
149
+ | Generate portable agent and IDE surfaces | `npx workspai workspace agent-sync --write --refresh-context --preset enterprise --json` |
150
+ | Save a model baseline | `npx workspai workspace snapshot --json` |
151
+ | Compare with a baseline or Git state | `npx workspai workspace diff --from <snapshot-or-git-ref> --json` |
152
+ | Calculate transitive blast radius | `npx workspai workspace impact --from <diff-report> --json` |
153
+ | Verify affected projects and evidence | `npx workspai workspace verify --from-impact <impact-report> --json --strict` |
154
+ | Explain a blocker | `npx workspai workspace explain release-blocked --json --write` |
155
+ | Inspect a project in the dependency graph | `npx workspai workspace graph explain <project> --json` |
156
+ | Run affected project tests | `npx workspai workspace run test --affected --blast-radius --json` |
157
+ | Run the release/governance gate | `npx workspai pipeline --json --strict` |
158
+ | Run the canonical intelligence chain | `npx workspai workspace intelligence run --for-agent codex --strict --json` |
159
+ | Expose current evidence to MCP clients | `npx workspai workspace mcp serve` |
160
+
161
+ `workspace verify` consumes current impact, doctor, contract, analysis, and
162
+ readiness evidence. Use `workspace intelligence run` for the canonical chain,
163
+ or `pipeline` for the broader governance/release workflow.
164
+
165
+ Other useful operational commands:
359
166
 
360
167
  ```bash
361
- npx workspai workspace explain release-blocked --json --write
362
- npx workspai workspace trace --from .workspai/reports/workspace-model-diff-last-run.json --json --write
363
- npx workspai workspace feedback record --json
364
- npx workspai workspace mcp serve
168
+ npx workspai doctor workspace
169
+ npx workspai setup <python|node|go|java|dotnet> [--warm-deps]
170
+ npx workspai workspace list
171
+ npx workspai cache <status|clear|prune|repair>
172
+ npx workspai mirror <status|sync|verify|rotate>
365
173
  ```
366
174
 
367
- Fleet runs support scoped execution and result reuse:
175
+ ### Understand a change
368
176
 
369
- ```bash
370
- npx workspai workspace run test --scope project:api --reuse-passed --json
371
- npx workspai workspace run lint --scope project:api # custom stage from context.json
372
- ```
373
-
374
- ### Graph-aware intelligence engine
375
-
376
- The workspace model carries a deterministic, first-class **dependency graph** that
377
- `impact`, `verify`, and `graph` all reason over — so the same evidence drives blast
378
- radius, gating, and visualization:
379
-
380
- - **Transitive blast radius** — `workspace impact` reports each affected project's
381
- `distance`, `path`, and `via` edge back to the change, plus centrality-weighted
382
- **critical-path hotspots**.
383
- - **Whole-subgraph gate** — `workspace verify` gates the changed projects **and** their
384
- transitive dependents, surfaces graph **integrity** issues (cycles, dangling edges,
385
- orphans), and emits a structured `gate` (`passed`/`mode`/`exitCode`/`reasons`).
386
- - **Transitive freshness** — a deterministic `fresh | stale | unknown` verdict chained
387
- through the graph: a dependency change makes every dependent stale, not just by
388
- timestamp.
389
- - **Fact freshness contracts** — `workspace model` and agent context packs mark each
390
- workspace fact as durable, derived, evidence-backed, live, or verify-before-use so
391
- agents do not reuse stale state as if it were structure.
392
- - **Policy violations** — model/contract violations are surfaced as structured
393
- `policyViolations[]` (not just an exit code) so IDEs and CI can render blockers.
394
- - **Health history** — every verify run appends to a bounded
395
- `.workspai/reports/workspace-intelligence-history.json` ring buffer for trends.
396
- - **Fast rebuilds** — `workspace model --cache` / `--incremental` reuse unchanged
397
- project models and re-infer only incident edges, keyed by a structural `inputsHash`.
398
- - **Watch / daemon** — `workspace watch` keeps the model + graph in memory and streams
399
- deterministic `workspace-watch-event.v1` change events (changed projects, graph edge
400
- deltas, structural hash) via fast incremental rebuilds.
401
-
402
- ### Agent Customization Pack
403
-
404
- Workspai can generate a versioned **Agent Customization Pack** so AI tools do
405
- not start from an ungrounded repository scan. They start from the same workspace
406
- truth developers and CI use: reports, commands, contracts, blockers, scope, and
407
- verification evidence.
408
-
409
- This is CLI-only and does not require the Workspai extension:
177
+ Create a baseline:
410
178
 
411
179
  ```bash
412
- # Full enterprise pack:
413
- # context pack + INDEX + AGENTS.md + Copilot/Cursor/Claude/Codex surfaces + MCP-ready design
414
- npx workspai workspace agent-sync --write --refresh-context --preset enterprise
415
-
416
- # Optional advisory VS Code agent hooks (disabled by default in the generated file)
417
- npx workspai workspace agent-sync --write --refresh-context --preset enterprise --experimental-hooks
418
-
419
- # Context pack write also syncs grounding by default
420
- npx workspai workspace context --for-agent --json --write
421
-
422
- # CI strict gate (fail if required reports missing/stale)
423
- npx workspai workspace agent-sync --write --strict --json
424
-
425
- # CI drift gate after sync
426
- npm run check:agent-customization-drift -- --workspace <workspace-root>
180
+ npx workspai workspace model --json --write
181
+ npx workspai workspace snapshot --json
427
182
  ```
428
183
 
429
- | Artifact / file | Purpose |
430
- | ----------------------------------------------------------------------- | ----------------------------------------------------------- |
431
- | `.workspai/reports/agent-customization-pack.json` | Versioned output inventory, target matrix, drift state |
432
- | `.workspai/reports/workspace-explain-last-run.json` | Unified explain / trace narrative for blockers and projects |
433
- | `.workspai/reports/workspace-skills-index.json` | Index of operational playbooks (`.workspai/skills/*.md`) |
434
- | `.workspai/skills/workspai-*.md` | Operational playbooks (generated by agent-sync) |
435
- | `.workspai/reports/workspai-mcp-design.json` | Read-mostly MCP-ready tool design manifest |
436
- | `.workspai/reports/INDEX.json` | Read order, blockers, report timestamps |
437
- | `.workspai/reports/workspace-context-agent.json` | Canonical agent context pack |
438
- | `.workspai/reports/artifact-remediation-plan-last-run.json` | Cross-artifact Studio repair plan |
439
- | `.workspai/reports/doctor-remediation-plan-last-run.json` | Doctor-specific ordered repair plan |
440
- | `.workspai/reports/doctor-fix-result-last-run.json` | Doctor fix/apply execution result |
441
- | `.workspai/AGENT-GROUNDING.md` | Tool-agnostic grounding doc |
442
- | `AGENTS.md` | Open standard for all agents (managed Workspai section) |
443
- | `.github/copilot-instructions.md` | GitHub Copilot / VS Code Chat always-on rules |
444
- | `.github/instructions/workspai-workspace.instructions.md` | Copilot workspace scope and command discipline |
445
- | `.github/instructions/workspai-evidence.instructions.md` | Copilot scoped evidence rules |
446
- | `.github/prompts/workspai-diagnose.prompt.md` | Copilot reusable diagnose prompt |
447
- | `.github/skills/workspai-workspace-intelligence/SKILL.md` | Workspace Intelligence skill workflow |
448
- | `.github/skills/workspai-workspace-intelligence/resources/mcp-tools.md` | Future MCP tool design reference |
449
- | `.github/agents/workspai-advisor.agent.md` | Read-only workspace advisor agent |
450
- | `.github/agents/workspai-repair.agent.md` | Blocker repair agent |
451
- | `.github/agents/workspai-release.agent.md` | Release safety agent |
452
- | `.github/agents/workspai-project-onboarder.agent.md` | Project onboarding agent |
453
- | `.cursor/rules/workspai-grounding.mdc` | Cursor always-on project rule |
454
- | `CLAUDE.md` | Claude Code entry (`@AGENTS.md` + managed notes) |
455
- | `.claude/rules/workspai-evidence.md` | Claude Code scoped evidence rules |
456
- | `.claude/rules/rapidkit-evidence.md` | Legacy Claude Code scoped evidence mirror |
457
- | `.vscode/workspai-agent-hooks.json` | Optional advisory VS Code hooks (`--experimental-hooks`) |
458
-
459
- Legacy `rapidkit-*` agent files may still be read by older consumers, but canonical Workspai grounding is written under `.workspai` and Workspai-named agent surfaces.
460
-
461
- The pack also publishes a standard answer contract for agent-facing output:
184
+ After a change:
462
185
 
463
- ```text
464
- Scope -> Evidence -> Diagnosis -> Fix Plan -> Run -> Verify -> Assumptions
186
+ ```bash
187
+ npx workspai workspace model --json --write
188
+ npx workspai workspace diff \
189
+ --from .workspai/reports/workspace-model-snapshot.json \
190
+ --json
191
+ npx workspai workspace impact \
192
+ --from .workspai/reports/workspace-model-diff-last-run.json \
193
+ --json
465
194
  ```
466
195
 
467
- That contract is what keeps agent responses operational: every recommendation
468
- should name the workspace/project scope, cite the evidence it used, explain the
469
- diagnosis, propose the command or file action, and tell the user how to verify
470
- the result.
471
-
472
- Agents cannot be **forced** probabilistically. This stack makes the desired
473
- behavior explicit, versioned, and easy for IDEs, CI, and Workspai to audit.
474
-
475
- Skip auto-sync after context write: `--no-agent-sync`. Target specific ecosystems: `--target copilot,cursor,claude`.
476
-
477
- After `pipeline`, grounding syncs automatically (refresh context + INDEX + agent surfaces). Disable with `--no-agent-sync` or `RAPIDKIT_NO_AGENT_SYNC=1`.
478
-
479
- Contract: `contracts/agent-customization-pack.v1.json`. Artifact map:
480
- [docs/contracts/ARTIFACT_CATALOG.md](docs/contracts/ARTIFACT_CATALOG.md).
481
-
482
- CI template: [docs/examples/ci-agent-grounding.yml](docs/examples/ci-agent-grounding.yml).
483
-
484
- ## Requirements
485
-
486
- - Node.js `>= 20.19.6`
487
- - Python `>= 3.10` (for Python/Core workflows)
488
- - Java 21+, Go, .NET SDK 8+ (optional, per stack)
196
+ Impact reports include affected projects and graph paths back to the change, so
197
+ developers, CI, IDEs, and agents reason over the same blast radius.
489
198
 
490
- ## Install
199
+ ### Ground AI tools
491
200
 
492
201
  ```bash
493
- npm install -g workspai
202
+ npx workspai workspace agent-sync \
203
+ --write \
204
+ --refresh-context \
205
+ --preset enterprise \
206
+ --json
494
207
  ```
495
208
 
496
- ## Project workflows
209
+ This generates a versioned Agent Customization Pack from workspace evidence,
210
+ including `AGENTS.md`, report indexes, skills, and supported Copilot, Cursor,
211
+ Claude, and Codex surfaces. AI tools begin with the same scope, commands,
212
+ contracts, blockers, and verification evidence used by humans and CI.
497
213
 
498
- ### I already have a project
214
+ ## Outputs and Consumers
499
215
 
500
- ```bash
501
- npx workspai adopt /path/to/project
502
- npx workspai import ../orders-api
503
- cd ~/.workspai/workspaces/workspai
216
+ Workspai separates human output, machine output, and durable cross-tool state:
504
217
 
505
- npx workspai workspace model --json
506
- npx workspai doctor workspace --json
507
- ```
218
+ | Output | Primary consumers |
219
+ | ----------------------------------------- | -------------------------------------------------- |
220
+ | CLI summaries and next actions | Developers and operators |
221
+ | JSON stdout | Scripts, CI jobs, IDE command bridges, and agents |
222
+ | Exit codes | CI and release gates |
223
+ | Persisted `.workspai/reports/*` artifacts | Developers, CI, IDEs, dashboards, and agents |
224
+ | Generated grounding files | Copilot, Cursor, Claude, Codex, and other AI tools |
225
+ | MCP stdio tools | MCP-compatible clients |
226
+ | Workspace watch events | Incremental IDE and automation consumers |
508
227
 
509
- ### I want a new project
228
+ Important durable outputs:
510
229
 
511
- ```bash
512
- npx workspai my-workspace --yes --profile polyglot
513
- cd ~/.workspai/workspaces/my-workspace
514
-
515
- npx workspai bootstrap --profile polyglot
516
- npx workspai create project # interactive kit picker
517
- npx workspai create project nextjs my-web --yes
518
- npx workspai create project fastapi.standard my-api --yes
519
- cd <project-name> && npx workspai init && npx workspai dev
520
- ```
230
+ | Artifact | Producer | Used for |
231
+ | ------------------------------------------------------- | ------------------------------ | ------------------------------------- |
232
+ | `.workspai/reports/workspace-model.json` | `workspace model --write` | Canonical system structure |
233
+ | `.workspai/reports/workspace-model-diff-last-run.json` | `workspace diff` | Structural change evidence |
234
+ | `.workspai/reports/workspace-impact-last-run.json` | `workspace impact` | Blast radius and affected scope |
235
+ | `.workspai/reports/workspace-verify-last-run.json` | `workspace verify` | Structured verification gate |
236
+ | `.workspai/reports/workspace-context-agent.json` | `workspace context --write` | Canonical agent context |
237
+ | `.workspai/reports/INDEX.json` | `workspace agent-sync --write` | Agent read order and report discovery |
238
+ | `.workspai/reports/workspace-explain-last-run.json` | `workspace explain --write` | Evidence-backed narrative |
239
+ | `.workspai/reports/workspace-intelligence-history.json` | Verify and feedback flows | Trends and audit history |
240
+ | `.workspai/reports/pipeline-last-run.json` | `pipeline --json` | CI and release workflow result |
521
241
 
522
- Backend kits: `fastapi.standard`, `nestjs.standard`, `springboot.standard`, `gofiber.standard`, `dotnet.webapi.clean`, and more.
242
+ See the [Artifact Catalog](docs/contracts/ARTIFACT_CATALOG.md) for the complete
243
+ writer, schema, and consumer map.
523
244
 
524
- Frontend generators: `nextjs`, `remix`, `vite-react`, `nuxt`, `angular`, `astro`, `sveltekit`, and more — same command shape:
245
+ ## Onboard Software
525
246
 
526
- ```bash
527
- npx workspai create project <kit> <name>
528
- ```
247
+ All onboarding routes feed the same Workspace Intelligence model.
529
248
 
530
- (`create frontend <id>` remains supported as an alias.)
249
+ | Route | Use it when | Example |
250
+ | ---------------- | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
251
+ | Adopt | Existing source should stay in place | `npx workspai adopt /path/to/project --json` |
252
+ | Import local | Existing source should be copied into a workspace | `npx workspai import ../orders-api --workspace /path/to/workspace --json` |
253
+ | Import Git | A repository should be cloned into a workspace | `npx workspai import https://github.com/acme/orders-api.git --git --workspace /path/to/workspace --json` |
254
+ | Create workspace | You need a new governed boundary | `npx workspai create workspace platform --profile polyglot --yes` |
255
+ | Create project | You need a supported new scaffold | `npx workspai create project nextjs web --yes` |
256
+ | Interactive | You want Workspai to guide the choice | `npx workspai create` |
531
257
 
532
- Shortcut: `npx workspai platform` (interactive workspace wizard).
258
+ Adopt never moves or copies source. Create can use a Workspai-managed kit or an
259
+ available official ecosystem generator. Unsupported native create requests are
260
+ directed toward official tooling followed by adoption.
533
261
 
534
- ### I want CI or release gates
262
+ Detailed onboarding behavior:
535
263
 
536
- ```bash
537
- npx workspai pipeline --json --strict
538
- ```
264
+ - [Creating Workspaces and Projects](docs/creating-workspaces-and-projects.md)
265
+ - [Workspace Operations](docs/workspace-operations.md)
266
+ - [Create Planner Capabilities](docs/create-planner-capabilities.md)
539
267
 
540
- Stages individually: `workspace sync`, `doctor workspace --ci`, `analyze --strict`, `readiness --strict`, `autopilot release`.
268
+ ## Integrations
541
269
 
542
- ## CI & evidence
270
+ - **AI tools:** Generate context, `AGENTS.md`, instructions, skills, and tool-specific surfaces with `workspace agent-sync`.
271
+ - **CI:** Consume structured reports and exit codes with `pipeline --json --strict`.
272
+ - **IDEs:** Read the same model, impact, verification, contract, and context artifacts used by CI.
273
+ - **MCP:** Expose read-mostly workspace evidence with `workspace mcp serve`.
274
+ - **VS Code:** Use the [Workspai extension](https://marketplace.visualstudio.com/items?itemName=rapidkit.rapidkit-vscode) for dashboards, impact, evidence, guided workflows, and Incident Studio.
543
275
 
544
- | Stage | Report |
545
- | --------- | --------------------------------------------------- |
546
- | Pipeline | `.workspai/reports/pipeline-last-run.json` |
547
- | Doctor | `.workspai/reports/doctor-last-run.json` |
548
- | Analyze | `.workspai/reports/analyze-last-run.json` |
549
- | Readiness | `.workspai/reports/release-readiness-last-run.json` |
550
- | Autopilot | `.workspai/reports/autopilot-release-last-run.json` |
276
+ The VS Code extension invokes this npm CLI, so command-line and visual workflows
277
+ share the same contracts and artifacts.
551
278
 
552
- Common workspace commands:
279
+ The Marketplace listing may temporarily retain legacy `rapidkit` wording. The
280
+ canonical package, command, metadata namespace, and Node.js requirement are the
281
+ `workspai`, `.workspai`, and Node.js `>=20.19.0` contracts documented here.
553
282
 
554
- ```bash
555
- npx workspai doctor workspace
556
- npx workspai workspace agent-sync --write --refresh-context
557
- npx workspai setup <python|node|go|java|dotnet> [--warm-deps]
558
- npx workspai workspace list
559
- npx workspai cache <status|clear|prune|repair>
560
- npx workspai mirror <status|sync|verify|rotate>
561
- ```
562
-
563
- Full syntax: [docs/commands-reference.md](docs/commands-reference.md). CI workflows: [docs/ci-workflows.md](docs/ci-workflows.md) — includes `.github/workflows/ci.yml`, `.github/workflows/workspace-e2e-matrix.yml`, `.github/workflows/windows-bridge-e2e.yml`, `.github/workflows/e2e-smoke.yml`, `.github/workflows/security.yml`.
564
-
565
- ## Workspai ecosystem
283
+ ## Requirements
566
284
 
567
- RapidKit Labs builds Workspai as a single Workspace Intelligence platform.
285
+ - Node.js `>=20.19.0`
286
+ - npm
287
+ - Python `>=3.10` only for Python/Core-dependent workflows
288
+ - Java, Go, or .NET SDK only when operating those project types
568
289
 
569
- Workspai provides the CLI engine and the VS Code surface: model, context, impact, verification, evidence, contracts, governance, dashboard, sidebar, Incident Studio, AI workflows, and developer-facing workspace operations.
290
+ Python is not required for Python-free workspace profiles, npm-owned backend
291
+ generators, frontend generators, or workspaces created with
292
+ `--skip-python-engine`.
570
293
 
571
- | Component | Repository | Role |
572
- | --------- | --------------------------------------------------------------------------- | ------------------------------------------- |
573
- | CLI | [workspai](https://github.com/rapidkitlabs/workspai/tree/main/packages/cli) | Commands, governance, adoption, CI evidence |
574
- | VS Code | [rapidkit-vscode](https://github.com/rapidkitlabs/rapidkit-vscode) | Workspai dashboard, sidebar, AI studio |
575
- | Core | [rapidkit-core](https://github.com/rapidkitlabs/rapidkit-core) | Python engine, modules, doctor |
576
- | Examples | [rapidkit-examples](https://github.com/rapidkitlabs/rapidkit-examples) | Starter workspaces |
294
+ ## Documentation
577
295
 
578
- ## VS Code extension
296
+ | Documentation | Purpose |
297
+ | ---------------------------------------------------------------------------- | -------------------------------------------------------- |
298
+ | [Documentation index](docs/README.md) | All user, operator, contract, and contributor docs |
299
+ | [Command reference](docs/commands-reference.md) | Complete command syntax and flags |
300
+ | [Creating workspaces and projects](docs/creating-workspaces-and-projects.md) | Interactive, automated, location, and linking behavior |
301
+ | [Workspace operations](docs/workspace-operations.md) | Adopt, import, snapshots, archives, contracts, and infra |
302
+ | [Workspace run](docs/workspace-run.md) | Polyglot and affected-project execution |
303
+ | [Doctor command](docs/doctor-command.md) | Health checks, evidence, fixes, and exit codes |
304
+ | [CI workflows](docs/ci-workflows.md) | CI examples and repository validation |
305
+ | [Configuration](docs/config-file-guide.md) | User configuration and precedence |
306
+ | [Open-source scenarios](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-oriented examples |
307
+ | [Artifact Catalog](docs/contracts/ARTIFACT_CATALOG.md) | Canonical files, writers, schemas, and readers |
308
+
309
+ Repository workflows include
310
+ [`.github/workflows/ci.yml`](../../.github/workflows/ci.yml),
311
+ [`.github/workflows/workspace-e2e-matrix.yml`](../../.github/workflows/workspace-e2e-matrix.yml),
312
+ [`.github/workflows/windows-bridge-e2e.yml`](../../.github/workflows/windows-bridge-e2e.yml),
313
+ [`.github/workflows/e2e-smoke.yml`](../../.github/workflows/e2e-smoke.yml),
314
+ [`.github/workflows/frontend-generator-smoke.yml`](../../.github/workflows/frontend-generator-smoke.yml),
315
+ [`.github/workflows/security.yml`](../../.github/workflows/security.yml), and the
316
+ maintainer-only
317
+ [`.github/workflows/release-npm-manual.yml`](../../.github/workflows/release-npm-manual.yml).
318
+ See [CI Workflows](docs/ci-workflows.md) for the complete validation and
319
+ contributor-automation map.
579
320
 
580
- Workspai is the VS Code and CLI experience for Workspace Intelligence.
321
+ ## Troubleshooting
581
322
 
582
- Search **Workspai** in the marketplace or install via:
583
- `ext install rapidkit.rapidkit-vscode`.
323
+ | Problem | What to check | Next step |
324
+ | ---------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------ |
325
+ | Node version is rejected | `node --version` | Install Node.js `>=20.19.0` |
326
+ | `npx` resolves an old CLI | `npx workspai --version` | Run `npx workspai@latest --version` or update the global package |
327
+ | Python/Core workflow cannot start | `python3 --version` | Install Python 3.10+ or use a Python-free profile where supported |
328
+ | Workspace is not detected | Look for `.workspai-workspace` | Run from the workspace or pass `--workspace <path>` |
329
+ | Strict policy blocks a command | `.workspai/policies.yml` | Inspect `workspace policy show` before changing policy |
330
+ | Reports are stale | Report timestamps | Re-run `pipeline` or the required chain stages |
331
+ | AI tools ignore workspace evidence | `AGENTS.md` and `.workspai/reports/INDEX.json` | Run `workspace agent-sync --write --refresh-context` |
332
+ | Project generator fails | Runtime and network output | Fix the reported prerequisite, then retry or create officially and adopt |
584
333
 
585
- | Feature | CLI | Extension |
586
- | ------------------------------- | ---------------------------- | ------------------------------- |
587
- | Create / adopt / import | Yes | Guided wizards |
588
- | Workspace model / context | Yes | Dashboard + AI scope |
589
- | Cross-tool agent grounding | Yes (`workspace agent-sync`) | Send-to-Copilot / Ask Studio UX |
590
- | Enterprise evidence loop | Partial | Full dashboard |
591
- | Module catalog (FastAPI/NestJS) | Limited | Browser UI |
334
+ For command-specific behavior, use the
335
+ [Command Reference](docs/commands-reference.md) and
336
+ [Documentation Index](docs/README.md).
592
337
 
593
- The extension invokes this npm CLI. For the latest `adopt` and frontend generator features, install matching CLI version: `npm install -g workspai` or `npm link` from this repo ([Development](#development)).
338
+ ## Contributing and Support
594
339
 
595
- ## Documentation
340
+ Workspai is MIT-licensed and developed in the open. Contributions to runtime
341
+ support, contracts, documentation, tests, and Workspace Intelligence workflows
342
+ are welcome.
596
343
 
597
- | Doc | Description |
598
- | ------------------------------------------------------------------------ | ------------------------------------------- |
599
- | [docs/README.md](docs/README.md) | Documentation index |
600
- | [docs/commands-reference.md](docs/commands-reference.md) | Full command syntax |
601
- | [docs/workspace-operations.md](docs/workspace-operations.md) | Import, adopt, snapshots, archives, infra |
602
- | [docs/workspace-run.md](docs/workspace-run.md) | Polyglot fleet orchestration |
603
- | [docs/doctor-command.md](docs/doctor-command.md) | Doctor scopes, CI exit codes, JSON evidence |
604
- | [docs/OPEN_SOURCE_USER_SCENARIOS.md](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-based workflows |
605
- | [docs/SETUP.md](docs/SETUP.md) | Maintainer setup |
606
- | [docs/SECURITY.md](docs/SECURITY.md) | Security policy |
607
- | [docs/config-file-guide.md](docs/config-file-guide.md) | User configuration |
608
- | [CHANGELOG.md](CHANGELOG.md) | Version history |
609
-
610
- ## Development
344
+ From a source checkout:
611
345
 
612
346
  ```bash
613
- npm ci && npm run build && npm run test
614
- npm run install:local # link workspai and wspai globally for manual testing
347
+ npm ci
348
+ npm run build
349
+ npm test
350
+ npm run validate
615
351
  ```
616
352
 
617
- Contributors: [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md), [docs/ci-workflows.md](docs/ci-workflows.md).
618
-
619
- `npm run prepack` validates embeddings and CLI surfaces before `npm pack` / `npm publish`.
620
-
621
- ## Troubleshooting
353
+ Use the npm version declared by the repository's `packageManager` field. Python,
354
+ Go, Java, and .NET are required only for workflows that exercise those runtimes.
355
+ To validate only this package, run `npm --workspace workspai run validate` from
356
+ the monorepo root.
622
357
 
623
- | Problem | Quick check | Fix |
624
- | --------------------------------------- | ---------------------------------- | ------------------------------------------------ |
625
- | `python3` not found | `python3 --version` | Install Python 3.10+ |
626
- | `setup --warm-deps` skipped | Project markers in cwd | Run from target project directory |
627
- | Strict policy blocks command | `.workspai/policies.yml` | `workspace policy set …` |
628
- | `npm audit fix --force` downgrades tsup | `package.json` | Do not use `--force`; keep `tsup@^8.5.1` |
629
- | Security audit fails on esbuild | `npm audit --audit-level=moderate` | Keep `esbuild` override in `package.json` |
630
- | Doctor output stale | Report timestamps | Re-run `doctor workspace` or `doctor project` |
631
- | Copilot ignores workspace evidence | Missing grounding files | `workspace agent-sync --write --refresh-context` |
632
- | Agent grounding strict CI failed | Stale/missing reports | Run governance chain then re-sync |
633
- | Affected run scope wrong | Git ref | Use `--since <ref>` explicitly |
358
+ - Read [CONTRIBUTING.md](https://github.com/rapidkitlabs/workspai/blob/main/packages/cli/CONTRIBUTING.md) before submitting changes.
359
+ - Use [GitHub Issues](https://github.com/rapidkitlabs/workspai/issues) for reproducible bugs and feature requests.
360
+ - Use [GitHub Discussions](https://github.com/rapidkitlabs/workspai/discussions) for questions and design conversations.
361
+ - Read the [Development Guide](docs/DEVELOPMENT.md) for local workflows.
362
+ - Report vulnerabilities through the [Security Policy](docs/SECURITY.md), not a public issue.
363
+ - Review the [Changelog](https://github.com/rapidkitlabs/workspai/blob/main/packages/cli/CHANGELOG.md) before upgrading.
634
364
 
635
365
  ## License
636
366
 
637
- MIT see [LICENSE](LICENSE).
367
+ MIT. See [LICENSE](LICENSE).