workspai 0.45.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.
- package/README.md +242 -516
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +4 -0
- package/contracts/extension-cli-compatibility.v1.json +3 -2
- package/contracts/published-contract-catalog.v1.json +7 -1
- package/contracts/runtime-command-surface.v1.json +41 -6
- package/contracts/workspace-archive-capabilities.v1.json +17 -6
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +4 -0
- package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +207 -0
- package/contracts/workspace-intelligence-architecture.v1.json +1 -1
- package/contracts/workspace-intelligence-chain.v1.json +37 -1
- package/dist/analyze-BEBEZSZK.js +1 -0
- package/dist/{artifact-remediation-plan-WLZGROUU.js → artifact-remediation-plan-FFQSESAM.js} +1 -1
- package/dist/autopilot-release-WUR4CQIT.js +1 -0
- package/dist/chunk-2G7FASAO.js +2 -0
- package/dist/{chunk-5GNT4RJI.js → chunk-4EPHWD27.js} +1 -1
- package/dist/{chunk-J4AICQFB.js → chunk-4LGXSBCN.js} +1 -1
- package/dist/chunk-52PBRX7F.js +1 -0
- package/dist/{chunk-2QOWRBQD.js → chunk-6IIZJQLV.js} +1 -1
- package/dist/{chunk-HYJK7W3B.js → chunk-CVHMUSRX.js} +1 -1
- package/dist/{chunk-7UZVOYF5.js → chunk-DIPD72H4.js} +1 -1
- package/dist/chunk-EFYHGCGX.js +2 -0
- package/dist/chunk-EYJ2CQSK.js +1 -0
- package/dist/chunk-FPJNWPKU.js +1 -0
- package/dist/{chunk-JP25YL3J.js → chunk-FTY7GGXJ.js} +2 -2
- package/dist/chunk-FWRXA435.js +2 -0
- package/dist/chunk-FXQJX34Z.js +1 -0
- package/dist/chunk-HDURFXW5.js +2 -0
- package/dist/chunk-HMUKBW2S.js +4 -0
- package/dist/{chunk-DXPU4DDV.js → chunk-J5PIZCAU.js} +92 -78
- package/dist/{chunk-6ZENXBMG.js → chunk-K4WNYXKK.js} +7 -7
- package/dist/chunk-MER6ZBN2.js +13 -0
- package/dist/chunk-N7DV5L7C.js +1 -0
- package/dist/{chunk-P424XYHP.js → chunk-PRBVYW3T.js} +1 -1
- package/dist/{chunk-WANW4QA4.js → chunk-QA5BGEQW.js} +1 -1
- package/dist/chunk-QZLIURER.js +13 -0
- package/dist/{chunk-P7SCWJFG.js → chunk-RIEF2DDX.js} +1 -1
- package/dist/{chunk-V2H2KRMZ.js → chunk-SXMTSV5M.js} +1 -1
- package/dist/chunk-SXPY523X.js +1 -0
- package/dist/{chunk-XIVFLY6G.js → chunk-UQWOVV6V.js} +1 -1
- package/dist/chunk-V3LRQZ36.js +1 -0
- package/dist/chunk-VFDM65IE.js +80 -0
- package/dist/{chunk-KU4S7RCM.js → chunk-WPEEC5BX.js} +1 -1
- package/dist/chunk-WYFPXTTS.js +2 -0
- package/dist/{chunk-K63BSU56.js → chunk-YUATNVOT.js} +62 -51
- package/dist/{chunk-OOOPYUL2.js → chunk-ZKAI3PJE.js} +1 -1
- package/dist/{create-KFR6FLRT.js → create-WCV3L6XH.js} +1 -1
- package/dist/doctor-5BWM2EMJ.js +1 -0
- package/dist/{dotnet-webapi-clean-BYUUHX5Y.js → dotnet-webapi-clean-6TVFBTVI.js} +20 -20
- package/dist/{gofiber-standard-B6UK5GR7.js → gofiber-standard-2BL7GWZB.js} +1 -1
- package/dist/{gogin-standard-BXU44VEM.js → gogin-standard-XGP3KBXA.js} +1 -1
- package/dist/index.d.ts +88 -13
- package/dist/index.js +327 -324
- package/dist/pipeline-ORIWVVYM.js +5 -0
- package/dist/{platform-capabilities-YICBF4FA.js → platform-capabilities-2B4QMZXE.js} +1 -1
- package/dist/{pythonRapidkitExec-UJYIB6FL.js → pythonRapidkitExec-CVCIK225.js} +1 -1
- package/dist/{springboot-standard-PEHDKH2L.js → springboot-standard-JJNUID6M.js} +6 -6
- package/dist/workspace-7OXW5YTJ.js +1 -0
- package/dist/{workspace-agent-sync-G5YVI3BJ.js → workspace-agent-sync-O4IA6VOA.js} +1 -1
- package/dist/workspace-archive-H74NBBNW.js +10 -0
- package/dist/{workspace-context-E3UFWL5X.js → workspace-context-R7IPUBPG.js} +1 -1
- package/dist/workspace-contract-HKCMOMFE.js +1 -0
- package/dist/workspace-explain-GOPQYTPQ.js +1 -0
- package/dist/workspace-explain-contract-SVFJAAEI.js +1 -0
- package/dist/{workspace-feedback-YY6WQPWQ.js → workspace-feedback-REOS36ZZ.js} +1 -1
- package/dist/{workspace-foundation-3C2DLCVI.js → workspace-foundation-KXT4QI5O.js} +1 -1
- package/dist/{workspace-history-VF3CHDYQ.js → workspace-history-OGOVSKZG.js} +1 -1
- package/dist/{workspace-intelligence-3GG7GEDQ.js → workspace-intelligence-7IESQSXY.js} +1 -1
- package/dist/workspace-intelligence-runner-6GJ5M4HB.js +1 -0
- package/dist/{workspace-mcp-serve-MJMUV4RY.js → workspace-mcp-serve-FRVWBO36.js} +1 -1
- package/dist/{workspace-model-NG45SRM5.js → workspace-model-PPYX7B4S.js} +1 -1
- package/dist/workspace-python-engine-state-2MLKJYQG.js +2 -0
- package/dist/workspace-registry-summary-SZ46R5PD.js +1 -0
- package/dist/workspace-run-V3KKHTVF.js +1 -0
- package/dist/{workspace-verify-ZNT6JX7D.js → workspace-verify-MFQ7IXGD.js} +1 -1
- package/dist/{workspace-watch-W47T4RX2.js → workspace-watch-SOPZHRWA.js} +1 -1
- package/docs/AI_DYNAMIC_INTEGRATION.md +29 -33
- package/docs/AI_FEATURES.md +18 -27
- package/docs/AI_QUICKSTART.md +7 -4
- package/docs/DEVELOPMENT.md +5 -5
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +23 -2
- package/docs/OPTIMIZATION_GUIDE.md +19 -51
- package/docs/PACKAGE_MANAGER_POLICY.md +4 -1
- package/docs/README.md +30 -3
- package/docs/SECURITY.md +13 -6
- package/docs/SETUP.md +6 -3
- package/docs/UTILITIES.md +8 -20
- package/docs/WORKSPACE_MARKER_SPEC.md +27 -20
- package/docs/ci-workflows.md +19 -5
- package/docs/commands-reference.md +37 -9
- package/docs/config-file-guide.md +64 -247
- package/docs/contracts/ARTIFACT_CATALOG.md +14 -2
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +1 -1
- package/docs/contracts/README.md +5 -2
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +4 -4
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +14 -10
- package/docs/creating-workspaces-and-projects.md +649 -0
- package/docs/doctor-command.md +5 -4
- package/docs/examples/ci-agent-grounding.yml +16 -10
- package/docs/from-code-to-shared-understanding.md +69 -38
- package/docs/workspace-intelligence-runner.md +186 -0
- package/docs/workspace-operations.md +29 -11
- package/docs/workspace-run.md +4 -1
- package/package.json +9 -8
- package/rapidkit.config.example.cjs +5 -5
- package/scripts/enforce-package-manager.cjs +1 -1
- package/scripts/prepack-enterprise.mjs +4 -0
- package/workspai.config.example.cjs +12 -47
- package/dist/analyze-YLV7NVLF.js +0 -1
- package/dist/autopilot-release-YBN3SWAA.js +0 -1
- package/dist/chunk-2K3GYCPS.js +0 -1
- package/dist/chunk-42G2OK64.js +0 -1
- package/dist/chunk-5AKYMAIL.js +0 -1
- package/dist/chunk-5PVEQ6CZ.js +0 -13
- package/dist/chunk-6AA3WWQZ.js +0 -2
- package/dist/chunk-7RIWU5TZ.js +0 -1
- package/dist/chunk-BJLE5CH7.js +0 -4
- package/dist/chunk-G3H5R3RR.js +0 -1
- package/dist/chunk-IMUU5Q2V.js +0 -13
- package/dist/chunk-KPPGZCUW.js +0 -78
- package/dist/chunk-LCRROMRR.js +0 -2
- package/dist/chunk-QWU2CZBG.js +0 -2
- package/dist/chunk-XZGVNGRB.js +0 -1
- package/dist/chunk-ZWO6K24C.js +0 -2
- package/dist/doctor-YJDM5XBH.js +0 -1
- package/dist/imported-projects-registry-FOIE27WT.js +0 -1
- package/dist/pipeline-FEDYO3IA.js +0 -5
- package/dist/workspace-PLXOO6ST.js +0 -1
- package/dist/workspace-archive-EEGLHZDW.js +0 -10
- package/dist/workspace-contract-LQJDZV36.js +0 -1
- package/dist/workspace-explain-G74ZIF23.js +0 -1
- package/dist/workspace-explain-contract-KT757JGQ.js +0 -1
- package/dist/workspace-python-engine-state-MTWIIZPY.js +0 -2
- package/dist/workspace-registry-summary-JM2XY52C.js +0 -1
- package/dist/workspace-run-WEQYIERE.js +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/workspai)
|
|
6
6
|
[](https://www.npmjs.com/package/workspai)
|
|
7
|
-
[](
|
|
7
|
+
[](LICENSE)
|
|
8
8
|
[](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,609 +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
|
|
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
|
-
|
|
51
|
+
## Get Workspace Intelligence
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
```
|
|
69
|
-
|
|
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
|
-

|
|
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
62
|
```
|
|
190
63
|
|
|
191
|
-
|
|
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
|
|
195
|
-
npx workspai workspace agent-sync --write --refresh-context --preset enterprise
|
|
196
|
-
npx workspai workspace agent-sync --write --refresh-context --preset enterprise --experimental-hooks
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### Release verification
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
npx workspai pipeline --json --strict
|
|
68
|
+
npx workspai workspace intelligence run --for-agent codex --strict --json
|
|
203
69
|
```
|
|
204
70
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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
|
-
|
|
83
|
+
Already inside a Workspai workspace? Start directly with the canonical
|
|
84
|
+
`workspace intelligence run --for-agent codex --strict --json` runner.
|
|
222
85
|
|
|
223
|
-
|
|
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:
|
|
224
88
|
|
|
225
|
-
|
|
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
|
-
```
|
|
232
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+

|
|
300
96
|
|
|
301
|
-
|
|
302
|
-
prototype:
|
|
97
|
+
[View the Mermaid source and explanation](docs/from-code-to-shared-understanding.md).
|
|
303
98
|
|
|
304
|
-
|
|
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
|
-
|
|
312
|
-
|
|
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
|
-
|
|
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
|
-
|
|
116
|
+
## One Intelligence Chain
|
|
317
117
|
|
|
318
118
|
The canonical execution order is versioned in
|
|
319
|
-
[`
|
|
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 ->
|
|
122
|
+
Model -> Diff -> Impact -> Doctor + Contract Verify + Analyze -> Readiness
|
|
325
123
|
-> Verify -> Context -> Agent Sync -> Explain
|
|
326
124
|
```
|
|
327
125
|
|
|
328
|
-
Each
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
|
348
|
-
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
|
362
|
-
npx workspai
|
|
363
|
-
|
|
364
|
-
npx workspai
|
|
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
|
-
|
|
368
|
-
`actionId`, `summary`, and `outcome` fields are validated before the outcome is
|
|
369
|
-
appended to `workspace-intelligence-history.json`.
|
|
175
|
+
### Understand a change
|
|
370
176
|
|
|
371
|
-
|
|
177
|
+
Create a baseline:
|
|
372
178
|
|
|
373
179
|
```bash
|
|
374
|
-
npx workspai workspace
|
|
375
|
-
npx workspai workspace
|
|
180
|
+
npx workspai workspace model --json --write
|
|
181
|
+
npx workspai workspace snapshot --json
|
|
376
182
|
```
|
|
377
183
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
The workspace model carries a deterministic, first-class **dependency graph** that
|
|
381
|
-
`impact`, `verify`, and `graph` all reason over — so the same evidence drives blast
|
|
382
|
-
radius, gating, and visualization:
|
|
383
|
-
|
|
384
|
-
- **Transitive blast radius** — `workspace impact` reports each affected project's
|
|
385
|
-
`distance`, `path`, and `via` edge back to the change, plus centrality-weighted
|
|
386
|
-
**critical-path hotspots**.
|
|
387
|
-
- **Whole-subgraph gate** — `workspace verify` gates the changed projects **and** their
|
|
388
|
-
transitive dependents, surfaces graph **integrity** issues (cycles, dangling edges,
|
|
389
|
-
orphans), and emits a structured `gate` (`passed`/`mode`/`exitCode`/`reasons`).
|
|
390
|
-
- **Transitive freshness** — a deterministic `fresh | stale | unknown` verdict chained
|
|
391
|
-
through the graph: a dependency change makes every dependent stale, not just by
|
|
392
|
-
timestamp.
|
|
393
|
-
- **Fact freshness contracts** — `workspace model` and agent context packs mark each
|
|
394
|
-
workspace fact as durable, derived, evidence-backed, live, or verify-before-use so
|
|
395
|
-
agents do not reuse stale state as if it were structure.
|
|
396
|
-
- **Policy violations** — model/contract violations are surfaced as structured
|
|
397
|
-
`policyViolations[]` (not just an exit code) so IDEs and CI can render blockers.
|
|
398
|
-
- **Health history** — every verify run appends to a bounded
|
|
399
|
-
`.workspai/reports/workspace-intelligence-history.json` ring buffer for trends.
|
|
400
|
-
- **Fast rebuilds** — `workspace model --cache` / `--incremental` reuse unchanged
|
|
401
|
-
project models and re-infer only incident edges, keyed by a structural `inputsHash`.
|
|
402
|
-
- **Watch / daemon** — `workspace watch` keeps the model + graph in memory and streams
|
|
403
|
-
deterministic `workspace-watch-event.v1` change events (changed projects, graph edge
|
|
404
|
-
deltas, structural hash) via fast incremental rebuilds.
|
|
405
|
-
|
|
406
|
-
### Agent Customization Pack
|
|
407
|
-
|
|
408
|
-
Workspai can generate a versioned **Agent Customization Pack** so AI tools do
|
|
409
|
-
not start from an ungrounded repository scan. They start from the same workspace
|
|
410
|
-
truth developers and CI use: reports, commands, contracts, blockers, scope, and
|
|
411
|
-
verification evidence.
|
|
412
|
-
|
|
413
|
-
This is CLI-only and does not require the Workspai extension:
|
|
184
|
+
After a change:
|
|
414
185
|
|
|
415
186
|
```bash
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
# Context pack write also syncs grounding by default
|
|
424
|
-
npx workspai workspace context --for-agent --json --write
|
|
425
|
-
|
|
426
|
-
# CI strict gate (fail if required reports missing/stale)
|
|
427
|
-
npx workspai workspace agent-sync --write --strict --json
|
|
428
|
-
|
|
429
|
-
# CI drift gate after sync
|
|
430
|
-
npm run check:agent-customization-drift -- --workspace <workspace-root>
|
|
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
|
|
431
194
|
```
|
|
432
195
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
| `.workspai/reports/agent-customization-pack.json` | Versioned output inventory, target matrix, drift state |
|
|
436
|
-
| `.workspai/reports/workspace-explain-last-run.json` | Unified explain / trace narrative for blockers and projects |
|
|
437
|
-
| `.workspai/reports/workspace-skills-index.json` | Index of operational playbooks (`.workspai/skills/*.md`) |
|
|
438
|
-
| `.workspai/skills/workspai-*.md` | Operational playbooks (generated by agent-sync) |
|
|
439
|
-
| `.workspai/reports/workspai-mcp-design.json` | Read-mostly MCP-ready tool design manifest |
|
|
440
|
-
| `.workspai/reports/INDEX.json` | Read order, blockers, report timestamps |
|
|
441
|
-
| `.workspai/reports/workspace-context-agent.json` | Canonical agent context pack |
|
|
442
|
-
| `.workspai/reports/artifact-remediation-plan-last-run.json` | Cross-artifact Studio repair plan |
|
|
443
|
-
| `.workspai/reports/doctor-remediation-plan-last-run.json` | Doctor-specific ordered repair plan |
|
|
444
|
-
| `.workspai/reports/doctor-fix-result-last-run.json` | Doctor fix/apply execution result |
|
|
445
|
-
| `.workspai/AGENT-GROUNDING.md` | Tool-agnostic grounding doc |
|
|
446
|
-
| `AGENTS.md` | Open standard for all agents (managed Workspai section) |
|
|
447
|
-
| `.github/copilot-instructions.md` | GitHub Copilot / VS Code Chat always-on rules |
|
|
448
|
-
| `.github/instructions/workspai-workspace.instructions.md` | Copilot workspace scope and command discipline |
|
|
449
|
-
| `.github/instructions/workspai-evidence.instructions.md` | Copilot scoped evidence rules |
|
|
450
|
-
| `.github/prompts/workspai-diagnose.prompt.md` | Copilot reusable diagnose prompt |
|
|
451
|
-
| `.github/skills/workspai-workspace-intelligence/SKILL.md` | Workspace Intelligence skill workflow |
|
|
452
|
-
| `.github/skills/workspai-workspace-intelligence/resources/mcp-tools.md` | Future MCP tool design reference |
|
|
453
|
-
| `.github/agents/workspai-advisor.agent.md` | Read-only workspace advisor agent |
|
|
454
|
-
| `.github/agents/workspai-repair.agent.md` | Blocker repair agent |
|
|
455
|
-
| `.github/agents/workspai-release.agent.md` | Release safety agent |
|
|
456
|
-
| `.github/agents/workspai-project-onboarder.agent.md` | Project onboarding agent |
|
|
457
|
-
| `.cursor/rules/workspai-grounding.mdc` | Cursor always-on project rule |
|
|
458
|
-
| `CLAUDE.md` | Claude Code entry (`@AGENTS.md` + managed notes) |
|
|
459
|
-
| `.claude/rules/workspai-evidence.md` | Claude Code scoped evidence rules |
|
|
460
|
-
| `.claude/rules/rapidkit-evidence.md` | Legacy Claude Code scoped evidence mirror |
|
|
461
|
-
| `.vscode/workspai-agent-hooks.json` | Optional advisory VS Code hooks (`--experimental-hooks`) |
|
|
462
|
-
|
|
463
|
-
Legacy `rapidkit-*` agent files may still be read by older consumers, but canonical Workspai grounding is written under `.workspai` and Workspai-named agent surfaces.
|
|
464
|
-
|
|
465
|
-
The pack also publishes a standard answer contract for agent-facing output:
|
|
466
|
-
|
|
467
|
-
```text
|
|
468
|
-
Scope -> Evidence -> Diagnosis -> Fix Plan -> Run -> Verify -> Assumptions
|
|
469
|
-
```
|
|
470
|
-
|
|
471
|
-
That contract is what keeps agent responses operational: every recommendation
|
|
472
|
-
should name the workspace/project scope, cite the evidence it used, explain the
|
|
473
|
-
diagnosis, propose the command or file action, and tell the user how to verify
|
|
474
|
-
the result.
|
|
475
|
-
|
|
476
|
-
Agents cannot be **forced** probabilistically. This stack makes the desired
|
|
477
|
-
behavior explicit, versioned, and easy for IDEs, CI, and Workspai to audit.
|
|
478
|
-
|
|
479
|
-
Skip auto-sync after context write: `--no-agent-sync`. Target specific ecosystems: `--target copilot,cursor,claude`.
|
|
480
|
-
|
|
481
|
-
After `pipeline`, grounding syncs automatically (refresh context + INDEX + agent surfaces). Disable with `--no-agent-sync` or `RAPIDKIT_NO_AGENT_SYNC=1`.
|
|
482
|
-
|
|
483
|
-
Contract: `contracts/agent-customization-pack.v1.json`. Artifact map:
|
|
484
|
-
[docs/contracts/ARTIFACT_CATALOG.md](docs/contracts/ARTIFACT_CATALOG.md).
|
|
485
|
-
|
|
486
|
-
CI template: [docs/examples/ci-agent-grounding.yml](docs/examples/ci-agent-grounding.yml).
|
|
487
|
-
|
|
488
|
-
## Requirements
|
|
489
|
-
|
|
490
|
-
- Node.js `>= 20.19.6`
|
|
491
|
-
- Python `>= 3.10` (for Python/Core workflows)
|
|
492
|
-
- 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.
|
|
493
198
|
|
|
494
|
-
|
|
199
|
+
### Ground AI tools
|
|
495
200
|
|
|
496
201
|
```bash
|
|
497
|
-
|
|
202
|
+
npx workspai workspace agent-sync \
|
|
203
|
+
--write \
|
|
204
|
+
--refresh-context \
|
|
205
|
+
--preset enterprise \
|
|
206
|
+
--json
|
|
498
207
|
```
|
|
499
208
|
|
|
500
|
-
|
|
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.
|
|
501
213
|
|
|
502
|
-
|
|
214
|
+
## Outputs and Consumers
|
|
503
215
|
|
|
504
|
-
|
|
505
|
-
npx workspai adopt /path/to/project
|
|
506
|
-
npx workspai import ../orders-api
|
|
507
|
-
cd ~/.workspai/workspaces/workspai
|
|
216
|
+
Workspai separates human output, machine output, and durable cross-tool state:
|
|
508
217
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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 |
|
|
512
227
|
|
|
513
|
-
|
|
228
|
+
Important durable outputs:
|
|
514
229
|
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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 |
|
|
525
241
|
|
|
526
|
-
|
|
242
|
+
See the [Artifact Catalog](docs/contracts/ARTIFACT_CATALOG.md) for the complete
|
|
243
|
+
writer, schema, and consumer map.
|
|
527
244
|
|
|
528
|
-
|
|
245
|
+
## Onboard Software
|
|
529
246
|
|
|
530
|
-
|
|
531
|
-
npx workspai create project <kit> <name>
|
|
532
|
-
```
|
|
247
|
+
All onboarding routes feed the same Workspace Intelligence model.
|
|
533
248
|
|
|
534
|
-
|
|
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` |
|
|
535
257
|
|
|
536
|
-
|
|
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.
|
|
537
261
|
|
|
538
|
-
|
|
262
|
+
Detailed onboarding behavior:
|
|
539
263
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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)
|
|
543
267
|
|
|
544
|
-
|
|
268
|
+
## Integrations
|
|
545
269
|
|
|
546
|
-
|
|
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.
|
|
547
275
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
| Pipeline | `.workspai/reports/pipeline-last-run.json` |
|
|
551
|
-
| Doctor | `.workspai/reports/doctor-last-run.json` |
|
|
552
|
-
| Analyze | `.workspai/reports/analyze-last-run.json` |
|
|
553
|
-
| Readiness | `.workspai/reports/release-readiness-last-run.json` |
|
|
554
|
-
| 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.
|
|
555
278
|
|
|
556
|
-
|
|
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.
|
|
557
282
|
|
|
558
|
-
|
|
559
|
-
npx workspai doctor workspace
|
|
560
|
-
npx workspai workspace agent-sync --write --refresh-context
|
|
561
|
-
npx workspai setup <python|node|go|java|dotnet> [--warm-deps]
|
|
562
|
-
npx workspai workspace list
|
|
563
|
-
npx workspai cache <status|clear|prune|repair>
|
|
564
|
-
npx workspai mirror <status|sync|verify|rotate>
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
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`.
|
|
568
|
-
|
|
569
|
-
## Workspai ecosystem
|
|
283
|
+
## Requirements
|
|
570
284
|
|
|
571
|
-
|
|
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
|
|
572
289
|
|
|
573
|
-
|
|
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`.
|
|
574
293
|
|
|
575
|
-
|
|
576
|
-
| --------- | --------------------------------------------------------------------------- | ------------------------------------------- |
|
|
577
|
-
| CLI | [workspai](https://github.com/rapidkitlabs/workspai/tree/main/packages/cli) | Commands, governance, adoption, CI evidence |
|
|
578
|
-
| VS Code | [rapidkit-vscode](https://github.com/rapidkitlabs/rapidkit-vscode) | Workspai dashboard, sidebar, AI studio |
|
|
579
|
-
| Core | [rapidkit-core](https://github.com/rapidkitlabs/rapidkit-core) | Python engine, modules, doctor |
|
|
580
|
-
| Examples | [rapidkit-examples](https://github.com/rapidkitlabs/rapidkit-examples) | Starter workspaces |
|
|
294
|
+
## Documentation
|
|
581
295
|
|
|
582
|
-
|
|
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.
|
|
583
320
|
|
|
584
|
-
|
|
321
|
+
## Troubleshooting
|
|
585
322
|
|
|
586
|
-
|
|
587
|
-
|
|
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 |
|
|
588
333
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
| Workspace model / context | Yes | Dashboard + AI scope |
|
|
593
|
-
| Cross-tool agent grounding | Yes (`workspace agent-sync`) | Send-to-Copilot / Ask Studio UX |
|
|
594
|
-
| Enterprise evidence loop | Partial | Full dashboard |
|
|
595
|
-
| 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).
|
|
596
337
|
|
|
597
|
-
|
|
338
|
+
## Contributing and Support
|
|
598
339
|
|
|
599
|
-
|
|
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.
|
|
600
343
|
|
|
601
|
-
|
|
602
|
-
| ------------------------------------------------------------------------ | ------------------------------------------- |
|
|
603
|
-
| [docs/README.md](docs/README.md) | Documentation index |
|
|
604
|
-
| [docs/commands-reference.md](docs/commands-reference.md) | Full command syntax |
|
|
605
|
-
| [docs/workspace-operations.md](docs/workspace-operations.md) | Import, adopt, snapshots, archives, infra |
|
|
606
|
-
| [docs/workspace-run.md](docs/workspace-run.md) | Polyglot fleet orchestration |
|
|
607
|
-
| [docs/doctor-command.md](docs/doctor-command.md) | Doctor scopes, CI exit codes, JSON evidence |
|
|
608
|
-
| [docs/OPEN_SOURCE_USER_SCENARIOS.md](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-based workflows |
|
|
609
|
-
| [docs/SETUP.md](docs/SETUP.md) | Maintainer setup |
|
|
610
|
-
| [docs/SECURITY.md](docs/SECURITY.md) | Security policy |
|
|
611
|
-
| [docs/config-file-guide.md](docs/config-file-guide.md) | User configuration |
|
|
612
|
-
| [CHANGELOG.md](CHANGELOG.md) | Version history |
|
|
613
|
-
|
|
614
|
-
## Development
|
|
344
|
+
From a source checkout:
|
|
615
345
|
|
|
616
346
|
```bash
|
|
617
|
-
npm ci
|
|
618
|
-
npm run
|
|
347
|
+
npm ci
|
|
348
|
+
npm run build
|
|
349
|
+
npm test
|
|
350
|
+
npm run validate
|
|
619
351
|
```
|
|
620
352
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
## 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.
|
|
626
357
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
| Security audit fails on esbuild | `npm audit --audit-level=moderate` | Keep `esbuild` override in `package.json` |
|
|
634
|
-
| Doctor output stale | Report timestamps | Re-run `doctor workspace` or `doctor project` |
|
|
635
|
-
| Copilot ignores workspace evidence | Missing grounding files | `workspace agent-sync --write --refresh-context` |
|
|
636
|
-
| Agent grounding strict CI failed | Stale/missing reports | Run governance chain then re-sync |
|
|
637
|
-
| 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.
|
|
638
364
|
|
|
639
365
|
## License
|
|
640
366
|
|
|
641
|
-
MIT
|
|
367
|
+
MIT. See [LICENSE](LICENSE).
|