workspai 0.43.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/LICENSE +21 -0
- package/README.md +624 -0
- package/contracts/agent-customization-pack.v1.json +229 -0
- package/contracts/analyze-last-run.v1.json +106 -0
- package/contracts/artifact-remediation-plan.v1.json +163 -0
- package/contracts/backend-import-stack-parity.snapshot.json +37 -0
- package/contracts/cli-log-event.v1.json +51 -0
- package/contracts/create-planner-capabilities.v1.json +251 -0
- package/contracts/doctor-project-evidence.v1.json +304 -0
- package/contracts/doctor-remediation-plan.v1.json +496 -0
- package/contracts/doctor-workspace-evidence.v1.json +315 -0
- package/contracts/extension-cli-compatibility.v1.json +26 -0
- package/contracts/infra-stack.v1.json +305 -0
- package/contracts/module-layout.v1.json +34 -0
- package/contracts/module-support.v1.json +20 -0
- package/contracts/pipeline-last-run.v1.json +80 -0
- package/contracts/release-readiness.v1.json +60 -0
- package/contracts/runtime-command-surface.v1.json +364 -0
- package/contracts/workspace-intelligence/agent-action-outcome.v1.json +38 -0
- package/contracts/workspace-intelligence/blocker-resolution.v1.json +65 -0
- package/contracts/workspace-intelligence/doctor-fix-result.v1.json +44 -0
- package/contracts/workspace-intelligence/fact-freshness.v1.json +58 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +115 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +142 -0
- package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +51 -0
- package/contracts/workspace-intelligence/workspace-dependency-graph.v1.json +152 -0
- package/contracts/workspace-intelligence/workspace-explain.v1.json +31 -0
- package/contracts/workspace-intelligence/workspace-impact.v1.json +114 -0
- package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +40 -0
- package/contracts/workspace-intelligence/workspace-model-diff.v1.json +105 -0
- package/contracts/workspace-intelligence/workspace-model-snapshot.v1.json +36 -0
- package/contracts/workspace-intelligence/workspace-model.v1.json +135 -0
- package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +37 -0
- package/contracts/workspace-intelligence/workspace-skills-index.v1.json +27 -0
- package/contracts/workspace-intelligence/workspace-verify.v1.json +213 -0
- package/contracts/workspace-registry.v1.json +83 -0
- package/contracts/workspace-run-last.v1.json +112 -0
- package/data/modules-embeddings.json +16953 -0
- package/dist/analyze-5BU4QIPK.js +1 -0
- package/dist/artifact-remediation-plan-5GJWPPRS.js +3 -0
- package/dist/autopilot-release-QYUOVB26.js +1 -0
- package/dist/chunk-22DT744Z.js +1 -0
- package/dist/chunk-2E6WGUN6.js +1 -0
- package/dist/chunk-2FIX2MDC.js +1 -0
- package/dist/chunk-3KXW53QI.js +1 -0
- package/dist/chunk-3ZK2GU7C.js +1 -0
- package/dist/chunk-4KUIFXHM.js +5 -0
- package/dist/chunk-54XJNLYC.js +13 -0
- package/dist/chunk-5SWNSJGW.js +1 -0
- package/dist/chunk-5XATWNME.js +1 -0
- package/dist/chunk-753LOKFZ.js +2 -0
- package/dist/chunk-7YHK5NM3.js +2 -0
- package/dist/chunk-A5FBGRJA.js +1 -0
- package/dist/chunk-AAKUNWPR.js +78 -0
- package/dist/chunk-AFSZHLQT.js +1 -0
- package/dist/chunk-AQ4XZZC6.js +1 -0
- package/dist/chunk-CVTCPPEF.js +1 -0
- package/dist/chunk-DNAY5ALC.js +1 -0
- package/dist/chunk-EWYYLJQY.js +2 -0
- package/dist/chunk-GSWPGELT.js +2 -0
- package/dist/chunk-GZTYAEWX.js +1 -0
- package/dist/chunk-HTYMXMQM.js +1 -0
- package/dist/chunk-IBJEQHJR.js +205 -0
- package/dist/chunk-ICGWHIMK.js +1 -0
- package/dist/chunk-JEI6BTZI.js +3 -0
- package/dist/chunk-JHC6SCJC.js +1 -0
- package/dist/chunk-LO4C4VXR.js +4 -0
- package/dist/chunk-LPZFK3Y6.js +920 -0
- package/dist/chunk-LUP4U6EE.js +1 -0
- package/dist/chunk-LYC6AIF2.js +2 -0
- package/dist/chunk-LZQNVH7D.js +1 -0
- package/dist/chunk-NAAQMSO3.js +1 -0
- package/dist/chunk-NFUXULIF.js +1 -0
- package/dist/chunk-OCGZNSOE.js +1 -0
- package/dist/chunk-OJEWQO3Z.js +33 -0
- package/dist/chunk-OL64GWQC.js +9 -0
- package/dist/chunk-PI5KUXDA.js +7 -0
- package/dist/chunk-PYCJWW4B.js +1 -0
- package/dist/chunk-RE773WOX.js +13 -0
- package/dist/chunk-RO73VVHW.js +2 -0
- package/dist/chunk-S5KTATOU.js +1 -0
- package/dist/chunk-SI3AQKIP.js +1 -0
- package/dist/chunk-T3GJ7YVG.js +1 -0
- package/dist/chunk-T6OR6YOI.js +2 -0
- package/dist/chunk-VRDF2J46.js +653 -0
- package/dist/chunk-VZKSNUEE.js +2 -0
- package/dist/chunk-WU4ZRRA5.js +4 -0
- package/dist/chunk-XEJD4KCV.js +33 -0
- package/dist/chunk-XZGVNGRB.js +1 -0
- package/dist/chunk-Y45WZR5N.js +5 -0
- package/dist/create-WRZO4HK2.js +1 -0
- package/dist/demo-kit-AJ5LIM5G.js +149 -0
- package/dist/doctor-MF3M3FS3.js +1 -0
- package/dist/dotnet-webapi-clean-IPY3MCGQ.js +425 -0
- package/dist/gofiber-standard-N5N3QGH3.js +1397 -0
- package/dist/gogin-standard-LAWQTBWL.js +1459 -0
- package/dist/imported-projects-registry-FOIE27WT.js +1 -0
- package/dist/index.d.ts +141 -0
- package/dist/index.js +454 -0
- package/dist/managed-agent-markers-AXUM75OE.js +8 -0
- package/dist/module-layout-NZ43RSC5.js +1 -0
- package/dist/pipeline-QCUHFWDY.js +5 -0
- package/dist/platform-capabilities-XAVU4HSM.js +1 -0
- package/dist/pythonRapidkitExec-3L3XJBSY.js +1 -0
- package/dist/springboot-standard-OZYF7ZM7.js +697 -0
- package/dist/workspace-PR6VZRBG.js +1 -0
- package/dist/workspace-agent-sync-KTYF3HQR.js +1 -0
- package/dist/workspace-archive-GCZNI44O.js +3 -0
- package/dist/workspace-context-QUTOP2XV.js +1 -0
- package/dist/workspace-contract-XUGMCUSQ.js +1 -0
- package/dist/workspace-explain-JEONEGZZ.js +1 -0
- package/dist/workspace-explain-contract-DNS2YEL7.js +1 -0
- package/dist/workspace-feedback-R6H4UFZB.js +1 -0
- package/dist/workspace-foundation-KGSV4E6D.js +1 -0
- package/dist/workspace-graph-2A5THUCI.js +1 -0
- package/dist/workspace-history-CGCK2DJI.js +1 -0
- package/dist/workspace-intelligence-QJGVL37U.js +1 -0
- package/dist/workspace-marker-SMBC3Z2Q.js +1 -0
- package/dist/workspace-mcp-serve-AK4MYEHQ.js +3 -0
- package/dist/workspace-model-PNXXOGPO.js +1 -0
- package/dist/workspace-python-engine-state-MTWIIZPY.js +2 -0
- package/dist/workspace-registry-summary-RUJE6RPH.js +1 -0
- package/dist/workspace-run-Y7YMUIHX.js +1 -0
- package/dist/workspace-verify-WSDUUTR5.js +1 -0
- package/dist/workspace-watch-AGPOJ74Q.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +440 -0
- package/docs/AI_EXAMPLES.md +419 -0
- package/docs/AI_FEATURES.md +460 -0
- package/docs/AI_QUICKSTART.md +245 -0
- package/docs/DEVELOPMENT.md +90 -0
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +170 -0
- package/docs/OPTIMIZATION_GUIDE.md +504 -0
- package/docs/PACKAGE_MANAGER_POLICY.md +25 -0
- package/docs/README.md +125 -0
- package/docs/SECURITY.md +63 -0
- package/docs/SETUP.md +107 -0
- package/docs/UTILITIES.md +221 -0
- package/docs/WORKSPACE_MARKER_SPEC.md +276 -0
- package/docs/ci-workflows.md +59 -0
- package/docs/commands-reference.md +172 -0
- package/docs/config-file-guide.md +299 -0
- package/docs/contracts/ARTIFACT_CATALOG.md +333 -0
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +123 -0
- package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +138 -0
- package/docs/contracts/NAMING_AND_COEXISTENCE.md +60 -0
- package/docs/contracts/README.md +86 -0
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +98 -0
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +75 -0
- package/docs/contracts/rapidkit-cli-contracts.json +239 -0
- package/docs/create-planner-capabilities.md +81 -0
- package/docs/doctor-command.md +467 -0
- package/docs/examples/ci-agent-grounding.yml +65 -0
- package/docs/from-code-to-shared-understanding.md +45 -0
- package/docs/governance-policy.enterprise.example.json +40 -0
- package/docs/mirror-config.enterprise.example.json +60 -0
- package/docs/policies.workspace.example.yml +23 -0
- package/docs/workspace-operations.md +160 -0
- package/docs/workspace-run.md +104 -0
- package/package.json +179 -0
- package/rapidkit.config.example.cjs +62 -0
- package/scripts/check-agent-customization-drift.mjs +78 -0
- package/scripts/check-cli-resolution.cjs +72 -0
- package/scripts/enforce-package-manager.cjs +10 -0
- package/scripts/enterprise-package-smoke.mjs +463 -0
- package/scripts/prepack-enterprise.mjs +43 -0
- package/templates/generator.js +179 -0
- package/templates/kits/fastapi-ddd/README.md.j2 +117 -0
- package/templates/kits/fastapi-ddd/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-ddd/env.example.j2 +1 -0
- package/templates/kits/fastapi-ddd/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-ddd/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/__init__.py.j2 +11 -0
- package/templates/kits/fastapi-ddd/src/app/application/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/application/interfaces.py.j2 +43 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/health.py.j2 +14 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/notes.py.j2 +24 -0
- package/templates/kits/fastapi-ddd/src/app/config/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/health.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/note.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/notes.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/app/main.py.j2 +61 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/dependencies/__init__.py.j2 +19 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/router.py.j2 +10 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/health.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/notes.py.j2 +50 -0
- package/templates/kits/fastapi-ddd/src/app/shared/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/shared/result.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/cli.py.j2 +170 -0
- package/templates/kits/fastapi-ddd/src/main.py.j2 +35 -0
- package/templates/kits/fastapi-ddd/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/routing/__init__.py.j2 +13 -0
- package/templates/kits/fastapi-ddd/src/routing/health.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/src/routing/notes.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-ddd/tests/test_app_factory.py.j2 +22 -0
- package/templates/kits/fastapi-ddd/tests/test_health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/tests/test_notes.py.j2 +27 -0
- package/templates/kits/fastapi-standard/README.md.j2 +140 -0
- package/templates/kits/fastapi-standard/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-standard/env.example.j2 +1 -0
- package/templates/kits/fastapi-standard/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-standard/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/cli.py.j2 +171 -0
- package/templates/kits/fastapi-standard/src/main.py.j2 +66 -0
- package/templates/kits/fastapi-standard/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/routing/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-standard/src/routing/examples.py.j2 +71 -0
- package/templates/kits/fastapi-standard/src/routing/health.py.j2 +22 -0
- package/templates/kits/fastapi-standard/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-standard/tests/test_examples.py.j2 +29 -0
- package/templates/kits/fastapi-standard/tests/test_health.py.j2 +17 -0
- package/templates/kits/nestjs-standard/Dockerfile.j2 +41 -0
- package/templates/kits/nestjs-standard/README.md.j2 +134 -0
- package/templates/kits/nestjs-standard/docker-compose.yml.j2 +94 -0
- package/templates/kits/nestjs-standard/docs/README.md.j2 +15 -0
- package/templates/kits/nestjs-standard/env.example.j2 +18 -0
- package/templates/kits/nestjs-standard/eslint.config.cjs.j2 +9 -0
- package/templates/kits/nestjs-standard/jest.config.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/nest-cli.json.j2 +10 -0
- package/templates/kits/nestjs-standard/package.json.j2 +101 -0
- package/templates/kits/nestjs-standard/src/app.controller.ts.j2 +14 -0
- package/templates/kits/nestjs-standard/src/app.module.ts.j2 +26 -0
- package/templates/kits/nestjs-standard/src/app.service.ts.j2 +16 -0
- package/templates/kits/nestjs-standard/src/auth/auth.controller.ts.j2 +20 -0
- package/templates/kits/nestjs-standard/src/auth/auth.module.ts.j2 +13 -0
- package/templates/kits/nestjs-standard/src/auth/auth.service.ts.j2 +6 -0
- package/templates/kits/nestjs-standard/src/auth/entities/token.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/user.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/webauthn.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/config/configuration.ts.j2 +85 -0
- package/templates/kits/nestjs-standard/src/config/index.ts.j2 +2 -0
- package/templates/kits/nestjs-standard/src/config/validation.ts.j2 +21 -0
- package/templates/kits/nestjs-standard/src/examples/dto/create-note.dto.ts.j2 +11 -0
- package/templates/kits/nestjs-standard/src/examples/examples.controller.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/src/examples/examples.module.ts.j2 +10 -0
- package/templates/kits/nestjs-standard/src/examples/examples.service.ts.j2 +33 -0
- package/templates/kits/nestjs-standard/src/main.ts.j2 +53 -0
- package/templates/kits/nestjs-standard/src/modules/index.ts.j2 +25 -0
- package/templates/kits/nestjs-standard/test/app.controller.spec.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/test/app.e2e-spec.ts.j2 +60 -0
- package/templates/kits/nestjs-standard/test/examples.controller.spec.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/test/jest-e2e.json.j2 +15 -0
- package/templates/kits/nestjs-standard/tsconfig.build.json.j2 +12 -0
- package/templates/kits/nestjs-standard/tsconfig.json.j2 +26 -0
- package/workspai.config.example.cjs +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RapidKit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
# Workspai
|
|
2
|
+
|
|
3
|
+
## Open-Source Workspace Intelligence for Software Systems
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/workspai)
|
|
6
|
+
[](https://www.npmjs.com/package/workspai)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://workspai.dev)
|
|
9
|
+
|
|
10
|
+
Not another AI coding assistant.
|
|
11
|
+
Not another agent framework.
|
|
12
|
+
Not another context engine.
|
|
13
|
+
|
|
14
|
+
> One workspace. One truth. Humans and AI aligned.
|
|
15
|
+
|
|
16
|
+
Workspai turns scattered projects into a governed, agent-ready workspace.
|
|
17
|
+
|
|
18
|
+
It gives developers, CI, IDEs, and AI agents the same evidence-backed source of
|
|
19
|
+
truth: workspace model, agent context, impact analysis, verification evidence,
|
|
20
|
+
contracts, and release gates.
|
|
21
|
+
|
|
22
|
+
## Start here
|
|
23
|
+
|
|
24
|
+
### Install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install -g workspai
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
For short `npx` workflows, use the separate alias package:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx wsai --help
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### CLI help
|
|
37
|
+
|
|
38
|
+
Browse all commands without a global install (first run fetches from npm):
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx workspai --help
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Create a governed workspace
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx workspai my-workspace --yes --profile polyglot
|
|
48
|
+
cd ~/.workspai/workspaces/my-workspace
|
|
49
|
+
|
|
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
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npx workspai adopt /path/to/project
|
|
63
|
+
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-create` | Workspai owns the scaffold contract | Create the project with a first-class kit |
|
|
87
|
+
| `external-create-adopt` | The ecosystem has an official generator, but Workspai does not own the post-create contract yet | Use the ecosystem generator, then adopt into Workspace Intelligence |
|
|
88
|
+
| `adopt-only` | The project already exists or native create is not supported | Register, model, verify, and govern the project without scaffolding it |
|
|
89
|
+
|
|
90
|
+
Native create includes FastAPI, NestJS, Go, Spring Boot, .NET, and official
|
|
91
|
+
frontend generators such as Next.js, Vite, Nuxt, Angular, Astro, Remix, and
|
|
92
|
+
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 <snapshot>` |
|
|
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
|
|
192
|
+
|
|
193
|
+
```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
|
|
197
|
+
```
|
|
198
|
+
|
|
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
|
|
213
|
+
|
|
214
|
+
```text
|
|
215
|
+
~/.workspai/workspaces.json
|
|
216
|
+
~/.workspai/workspaces/
|
|
217
|
+
workspai/ # managed default (standalone, import, and adopt fallback)
|
|
218
|
+
my-workspace/ # user-created workspaces
|
|
219
|
+
```
|
|
220
|
+
|
|
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
|
|
224
|
+
|
|
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
|
+
```
|
|
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
|
|
271
|
+
```
|
|
272
|
+
|
|
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.
|
|
294
|
+
|
|
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.
|
|
300
|
+
|
|
301
|
+
That means you can move faster without turning the product into a fragile
|
|
302
|
+
prototype:
|
|
303
|
+
|
|
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
|
|
310
|
+
|
|
311
|
+
The result is faster product development with clearer boundaries, safer AI
|
|
312
|
+
assistance, and release decisions backed by evidence instead of guesswork.
|
|
313
|
+
|
|
314
|
+
## Workspace Intelligence Commands
|
|
315
|
+
|
|
316
|
+
Workspace Intelligence provides a shared understanding of projects, dependencies, operational context, and release readiness for developers, CI pipelines, and AI agents.
|
|
317
|
+
|
|
318
|
+
| Command | Purpose |
|
|
319
|
+
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
320
|
+
| `workspace model [--cache\|--incremental] --json` | Canonical workspace model (graph-aware, incremental rebuilds) |
|
|
321
|
+
| `workspace context --for-agent --json --write` | Agent-ready context pack + auto agent grounding sync |
|
|
322
|
+
| `workspace agent-sync --write` | Agent Customization Pack (AGENTS.md, Copilot, Cursor, Claude, INDEX, skills, agents) |
|
|
323
|
+
| `workspace snapshot --json` | Persist model snapshot |
|
|
324
|
+
| `workspace diff --from <file\|git[:ref]> --json` | Diff against snapshot or git |
|
|
325
|
+
| `workspace impact --from <file> --json` | Graph-aware transitive blast-radius evidence |
|
|
326
|
+
| `workspace verify [--strict] --json` | Definitive verification gate (subgraph + freshness + policy + fleet evidence) |
|
|
327
|
+
| `workspace remediation-plan [--ci] --json --write` | Cross-artifact Studio repair plan for blocked governance cards |
|
|
328
|
+
| `workspace explain <target> [--write] --json` | Human narrative for release blockers, projects, or trace slices |
|
|
329
|
+
| `workspace why <target>` | Alias of `workspace explain` |
|
|
330
|
+
| `workspace trace --from <diff> [--write] --json` | Diff → impact → gates narrative for agents and IDE handoff |
|
|
331
|
+
| `workspace feedback record --json` | Append structured agent action outcomes to intelligence history |
|
|
332
|
+
| `workspace mcp serve` | Read-mostly stdio MCP bridge over workspace evidence |
|
|
333
|
+
| `workspace graph <emit\|explain\|dot\|mermaid>` | Inspect and visualize the dependency graph |
|
|
334
|
+
| `workspace watch [--json] [--once]` | Daemon mode: keep model + graph in memory, stream change events |
|
|
335
|
+
| `workspace run <stage> [--scope project:X] [--reuse-passed]` | Fleet init/test/build/start or custom stages from `.workspai/context.json` |
|
|
336
|
+
|
|
337
|
+
JSON schemas: `contracts/workspace-intelligence/`. Command coexistence and naming:
|
|
338
|
+
[docs/contracts/NAMING_AND_COEXISTENCE.md](docs/contracts/NAMING_AND_COEXISTENCE.md).
|
|
339
|
+
Details: [commands-reference.md](docs/commands-reference.md).
|
|
340
|
+
|
|
341
|
+
### Operational intelligence (Phase 4)
|
|
342
|
+
|
|
343
|
+
After model → diff → impact → verify, use **explain** and **trace** for
|
|
344
|
+
human/agent narratives, **feedback** to record outcomes, and **MCP serve** for
|
|
345
|
+
read-only tool access:
|
|
346
|
+
|
|
347
|
+
```bash
|
|
348
|
+
npx workspai workspace explain release-blocked --json --write
|
|
349
|
+
npx workspai workspace trace --from .workspai/reports/workspace-model-diff-last-run.json --json --write
|
|
350
|
+
npx workspai workspace feedback record --json
|
|
351
|
+
npx workspai workspace mcp serve
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
Fleet runs support scoped execution and result reuse:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
npx workspai workspace run test --scope project:api --reuse-passed --json
|
|
358
|
+
npx workspai workspace run lint --scope project:api # custom stage from context.json
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### Graph-aware intelligence engine
|
|
362
|
+
|
|
363
|
+
The workspace model carries a deterministic, first-class **dependency graph** that
|
|
364
|
+
`impact`, `verify`, and `graph` all reason over — so the same evidence drives blast
|
|
365
|
+
radius, gating, and visualization:
|
|
366
|
+
|
|
367
|
+
- **Transitive blast radius** — `workspace impact` reports each affected project's
|
|
368
|
+
`distance`, `path`, and `via` edge back to the change, plus centrality-weighted
|
|
369
|
+
**critical-path hotspots**.
|
|
370
|
+
- **Whole-subgraph gate** — `workspace verify` gates the changed projects **and** their
|
|
371
|
+
transitive dependents, surfaces graph **integrity** issues (cycles, dangling edges,
|
|
372
|
+
orphans), and emits a structured `gate` (`passed`/`mode`/`exitCode`/`reasons`).
|
|
373
|
+
- **Transitive freshness** — a deterministic `fresh | stale | unknown` verdict chained
|
|
374
|
+
through the graph: a dependency change makes every dependent stale, not just by
|
|
375
|
+
timestamp.
|
|
376
|
+
- **Fact freshness contracts** — `workspace model` and agent context packs mark each
|
|
377
|
+
workspace fact as durable, derived, evidence-backed, live, or verify-before-use so
|
|
378
|
+
agents do not reuse stale state as if it were structure.
|
|
379
|
+
- **Policy violations** — model/contract violations are surfaced as structured
|
|
380
|
+
`policyViolations[]` (not just an exit code) so IDEs and CI can render blockers.
|
|
381
|
+
- **Health history** — every verify run appends to a bounded
|
|
382
|
+
`.workspai/reports/workspace-intelligence-history.json` ring buffer for trends.
|
|
383
|
+
- **Fast rebuilds** — `workspace model --cache` / `--incremental` reuse unchanged
|
|
384
|
+
project models and re-infer only incident edges, keyed by a structural `inputsHash`.
|
|
385
|
+
- **Watch / daemon** — `workspace watch` keeps the model + graph in memory and streams
|
|
386
|
+
deterministic `workspace-watch-event.v1` change events (changed projects, graph edge
|
|
387
|
+
deltas, structural hash) via fast incremental rebuilds.
|
|
388
|
+
|
|
389
|
+
### Agent Customization Pack
|
|
390
|
+
|
|
391
|
+
Workspai can generate a versioned **Agent Customization Pack** so AI tools do
|
|
392
|
+
not start from an ungrounded repository scan. They start from the same workspace
|
|
393
|
+
truth developers and CI use: reports, commands, contracts, blockers, scope, and
|
|
394
|
+
verification evidence.
|
|
395
|
+
|
|
396
|
+
This is CLI-only and does not require the Workspai extension:
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
# Full enterprise pack:
|
|
400
|
+
# context pack + INDEX + AGENTS.md + Copilot/Cursor/Claude/Codex surfaces + MCP-ready design
|
|
401
|
+
npx workspai workspace agent-sync --write --refresh-context --preset enterprise
|
|
402
|
+
|
|
403
|
+
# Optional advisory VS Code agent hooks (disabled by default in the generated file)
|
|
404
|
+
npx workspai workspace agent-sync --write --refresh-context --preset enterprise --experimental-hooks
|
|
405
|
+
|
|
406
|
+
# Context pack write also syncs grounding by default
|
|
407
|
+
npx workspai workspace context --for-agent --json --write
|
|
408
|
+
|
|
409
|
+
# CI strict gate (fail if required reports missing/stale)
|
|
410
|
+
npx workspai workspace agent-sync --write --strict --json
|
|
411
|
+
|
|
412
|
+
# CI drift gate after sync
|
|
413
|
+
npm run check:agent-customization-drift -- --workspace <workspace-root>
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
| Artifact / file | Purpose |
|
|
417
|
+
| ----------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
418
|
+
| `.workspai/reports/agent-customization-pack.json` | Versioned output inventory, target matrix, drift state |
|
|
419
|
+
| `.workspai/reports/workspace-explain-last-run.json` | Unified explain / trace narrative for blockers and projects |
|
|
420
|
+
| `.workspai/reports/workspace-skills-index.json` | Index of operational playbooks (`.workspai/skills/*.md`) |
|
|
421
|
+
| `.workspai/skills/workspai-*.md` | Operational playbooks (generated by agent-sync) |
|
|
422
|
+
| `.workspai/reports/workspai-mcp-design.json` | Read-mostly MCP-ready tool design manifest |
|
|
423
|
+
| `.workspai/reports/INDEX.json` | Read order, blockers, report timestamps |
|
|
424
|
+
| `.workspai/reports/workspace-context-agent.json` | Canonical agent context pack |
|
|
425
|
+
| `.workspai/reports/artifact-remediation-plan-last-run.json` | Cross-artifact Studio repair plan |
|
|
426
|
+
| `.workspai/reports/doctor-remediation-plan-last-run.json` | Doctor-specific ordered repair plan |
|
|
427
|
+
| `.workspai/reports/doctor-fix-result-last-run.json` | Doctor fix/apply execution result |
|
|
428
|
+
| `.workspai/AGENT-GROUNDING.md` | Tool-agnostic grounding doc |
|
|
429
|
+
| `AGENTS.md` | Open standard for all agents (managed Workspai section) |
|
|
430
|
+
| `.github/copilot-instructions.md` | GitHub Copilot / VS Code Chat always-on rules |
|
|
431
|
+
| `.github/instructions/workspai-workspace.instructions.md` | Copilot workspace scope and command discipline |
|
|
432
|
+
| `.github/instructions/workspai-evidence.instructions.md` | Copilot scoped evidence rules |
|
|
433
|
+
| `.github/prompts/workspai-diagnose.prompt.md` | Copilot reusable diagnose prompt |
|
|
434
|
+
| `.github/skills/workspai-workspace-intelligence/SKILL.md` | Workspace Intelligence skill workflow |
|
|
435
|
+
| `.github/skills/workspai-workspace-intelligence/resources/mcp-tools.md` | Future MCP tool design reference |
|
|
436
|
+
| `.github/agents/workspai-advisor.agent.md` | Read-only workspace advisor agent |
|
|
437
|
+
| `.github/agents/workspai-repair.agent.md` | Blocker repair agent |
|
|
438
|
+
| `.github/agents/workspai-release.agent.md` | Release safety agent |
|
|
439
|
+
| `.github/agents/workspai-project-onboarder.agent.md` | Project onboarding agent |
|
|
440
|
+
| `.cursor/rules/workspai-grounding.mdc` | Cursor always-on project rule |
|
|
441
|
+
| `CLAUDE.md` | Claude Code entry (`@AGENTS.md` + managed notes) |
|
|
442
|
+
| `.claude/rules/workspai-evidence.md` | Claude Code scoped evidence rules |
|
|
443
|
+
| `.claude/rules/rapidkit-evidence.md` | Legacy Claude Code scoped evidence mirror |
|
|
444
|
+
| `.vscode/workspai-agent-hooks.json` | Optional advisory VS Code hooks (`--experimental-hooks`) |
|
|
445
|
+
|
|
446
|
+
Legacy `rapidkit-*` agent files may still be read by older consumers, but canonical Workspai grounding is written under `.workspai` and Workspai-named agent surfaces.
|
|
447
|
+
|
|
448
|
+
The pack also publishes a standard answer contract for agent-facing output:
|
|
449
|
+
|
|
450
|
+
```text
|
|
451
|
+
Scope -> Evidence -> Diagnosis -> Fix Plan -> Run -> Verify -> Assumptions
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
That contract is what keeps agent responses operational: every recommendation
|
|
455
|
+
should name the workspace/project scope, cite the evidence it used, explain the
|
|
456
|
+
diagnosis, propose the command or file action, and tell the user how to verify
|
|
457
|
+
the result.
|
|
458
|
+
|
|
459
|
+
Agents cannot be **forced** probabilistically. This stack makes the desired
|
|
460
|
+
behavior explicit, versioned, and easy for IDEs, CI, and Workspai to audit.
|
|
461
|
+
|
|
462
|
+
Skip auto-sync after context write: `--no-agent-sync`. Target specific ecosystems: `--target copilot,cursor,claude`.
|
|
463
|
+
|
|
464
|
+
After `pipeline`, grounding syncs automatically (refresh context + INDEX + agent surfaces). Disable with `--no-agent-sync` or `RAPIDKIT_NO_AGENT_SYNC=1`.
|
|
465
|
+
|
|
466
|
+
Contract: `contracts/agent-customization-pack.v1.json`. Artifact map:
|
|
467
|
+
[docs/contracts/ARTIFACT_CATALOG.md](docs/contracts/ARTIFACT_CATALOG.md).
|
|
468
|
+
|
|
469
|
+
CI template: [docs/examples/ci-agent-grounding.yml](docs/examples/ci-agent-grounding.yml).
|
|
470
|
+
|
|
471
|
+
## Requirements
|
|
472
|
+
|
|
473
|
+
- Node.js `>= 20.19.6`
|
|
474
|
+
- Python `>= 3.10` (for Python/Core workflows)
|
|
475
|
+
- Java 21+, Go, .NET SDK 8+ (optional, per stack)
|
|
476
|
+
|
|
477
|
+
## Install
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
npm install -g workspai
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
## Project workflows
|
|
484
|
+
|
|
485
|
+
### I already have a project
|
|
486
|
+
|
|
487
|
+
```bash
|
|
488
|
+
npx workspai adopt /path/to/project
|
|
489
|
+
npx workspai import ../orders-api
|
|
490
|
+
cd ~/.workspai/workspaces/workspai
|
|
491
|
+
|
|
492
|
+
npx workspai workspace model --json
|
|
493
|
+
npx workspai doctor workspace --json
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### I want a new project
|
|
497
|
+
|
|
498
|
+
```bash
|
|
499
|
+
npx workspai my-workspace --yes --profile polyglot
|
|
500
|
+
cd ~/.workspai/workspaces/my-workspace
|
|
501
|
+
|
|
502
|
+
npx workspai bootstrap --profile polyglot
|
|
503
|
+
npx workspai create project # interactive kit picker
|
|
504
|
+
npx workspai create project nextjs my-web --yes
|
|
505
|
+
npx workspai create project fastapi.standard my-api --yes
|
|
506
|
+
cd <project-name> && npx workspai init && npx workspai dev
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
Backend kits: `fastapi.standard`, `nestjs.standard`, `springboot.standard`, `gofiber.standard`, `dotnet.webapi.clean`, and more.
|
|
510
|
+
|
|
511
|
+
Frontend kits: `nextjs`, `remix`, `vite-react`, `nuxt`, `angular`, `astro`, `sveltekit`, and more — same command shape:
|
|
512
|
+
|
|
513
|
+
```bash
|
|
514
|
+
npx workspai create project <kit> <name>
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
(`create frontend <id>` remains supported as an alias.)
|
|
518
|
+
|
|
519
|
+
Shortcut: `npx workspai platform` (interactive workspace wizard).
|
|
520
|
+
|
|
521
|
+
### I want CI or release gates
|
|
522
|
+
|
|
523
|
+
```bash
|
|
524
|
+
npx workspai pipeline --json --strict
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
Stages individually: `workspace sync`, `doctor workspace --ci`, `analyze --strict`, `readiness --strict`, `autopilot release`.
|
|
528
|
+
|
|
529
|
+
## CI & evidence
|
|
530
|
+
|
|
531
|
+
| Stage | Report |
|
|
532
|
+
| --------- | --------------------------------------------------- |
|
|
533
|
+
| Pipeline | `.workspai/reports/pipeline-last-run.json` |
|
|
534
|
+
| Doctor | `.workspai/reports/doctor-last-run.json` |
|
|
535
|
+
| Analyze | `.workspai/reports/analyze-last-run.json` |
|
|
536
|
+
| Readiness | `.workspai/reports/release-readiness-last-run.json` |
|
|
537
|
+
| Autopilot | `.workspai/reports/autopilot-release-last-run.json` |
|
|
538
|
+
|
|
539
|
+
Common workspace commands:
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
npx workspai doctor workspace
|
|
543
|
+
npx workspai workspace agent-sync --write --refresh-context
|
|
544
|
+
npx workspai setup <python|node|go|java|dotnet> [--warm-deps]
|
|
545
|
+
npx workspai workspace list
|
|
546
|
+
npx workspai cache <status|clear|prune|repair>
|
|
547
|
+
npx workspai mirror <status|sync|verify|rotate>
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
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`.
|
|
551
|
+
|
|
552
|
+
## Workspai ecosystem
|
|
553
|
+
|
|
554
|
+
RapidKit Labs builds Workspai as a single Workspace Intelligence platform.
|
|
555
|
+
|
|
556
|
+
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.
|
|
557
|
+
|
|
558
|
+
| Component | Repository | Role |
|
|
559
|
+
| --------- | --------------------------------------------------------------------------- | ------------------------------------------- |
|
|
560
|
+
| CLI | [workspai](https://github.com/rapidkitlabs/workspai/tree/main/packages/cli) | Commands, governance, adoption, CI evidence |
|
|
561
|
+
| VS Code | [rapidkit-vscode](https://github.com/rapidkitlabs/rapidkit-vscode) | Workspai dashboard, sidebar, AI studio |
|
|
562
|
+
| Core | [rapidkit-core](https://github.com/rapidkitlabs/rapidkit-core) | Python engine, modules, doctor |
|
|
563
|
+
| Examples | [rapidkit-examples](https://github.com/rapidkitlabs/rapidkit-examples) | Starter workspaces |
|
|
564
|
+
|
|
565
|
+
## VS Code extension
|
|
566
|
+
|
|
567
|
+
Workspai is the VS Code and CLI experience for Workspace Intelligence.
|
|
568
|
+
|
|
569
|
+
Search **Workspai** in the marketplace or install via:
|
|
570
|
+
`ext install rapidkit.rapidkit-vscode`.
|
|
571
|
+
|
|
572
|
+
| Feature | CLI | Extension |
|
|
573
|
+
| ------------------------------- | ---------------------------- | ------------------------------- |
|
|
574
|
+
| Create / adopt / import | Yes | Guided wizards |
|
|
575
|
+
| Workspace model / context | Yes | Dashboard + AI scope |
|
|
576
|
+
| Cross-tool agent grounding | Yes (`workspace agent-sync`) | Send-to-Copilot / Ask Studio UX |
|
|
577
|
+
| Enterprise evidence loop | Partial | Full dashboard |
|
|
578
|
+
| Module catalog (FastAPI/NestJS) | Limited | Browser UI |
|
|
579
|
+
|
|
580
|
+
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)).
|
|
581
|
+
|
|
582
|
+
## Documentation
|
|
583
|
+
|
|
584
|
+
| Doc | Description |
|
|
585
|
+
| ------------------------------------------------------------------------ | ------------------------------------------- |
|
|
586
|
+
| [docs/README.md](docs/README.md) | Documentation index |
|
|
587
|
+
| [docs/commands-reference.md](docs/commands-reference.md) | Full command syntax |
|
|
588
|
+
| [docs/workspace-operations.md](docs/workspace-operations.md) | Import, adopt, snapshots, archives, infra |
|
|
589
|
+
| [docs/workspace-run.md](docs/workspace-run.md) | Polyglot fleet orchestration |
|
|
590
|
+
| [docs/doctor-command.md](docs/doctor-command.md) | Doctor scopes, CI exit codes, JSON evidence |
|
|
591
|
+
| [docs/OPEN_SOURCE_USER_SCENARIOS.md](docs/OPEN_SOURCE_USER_SCENARIOS.md) | Role-based workflows |
|
|
592
|
+
| [docs/SETUP.md](docs/SETUP.md) | Maintainer setup |
|
|
593
|
+
| [docs/SECURITY.md](docs/SECURITY.md) | Security policy |
|
|
594
|
+
| [docs/config-file-guide.md](docs/config-file-guide.md) | User configuration |
|
|
595
|
+
| [CHANGELOG.md](CHANGELOG.md) | Version history |
|
|
596
|
+
|
|
597
|
+
## Development
|
|
598
|
+
|
|
599
|
+
```bash
|
|
600
|
+
npm ci && npm run build && npm run test
|
|
601
|
+
npm run install:local # link CLI globally for manual testing
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
Contributors: [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md), [docs/ci-workflows.md](docs/ci-workflows.md).
|
|
605
|
+
|
|
606
|
+
`npm run prepack` validates embeddings and CLI surfaces before `npm pack` / `npm publish`.
|
|
607
|
+
|
|
608
|
+
## Troubleshooting
|
|
609
|
+
|
|
610
|
+
| Problem | Quick check | Fix |
|
|
611
|
+
| --------------------------------------- | ---------------------------------- | ------------------------------------------------ |
|
|
612
|
+
| `python3` not found | `python3 --version` | Install Python 3.10+ |
|
|
613
|
+
| `setup --warm-deps` skipped | Project markers in cwd | Run from target project directory |
|
|
614
|
+
| Strict policy blocks command | `.workspai/policies.yml` | `workspace policy set …` |
|
|
615
|
+
| `npm audit fix --force` downgrades tsup | `package.json` | Do not use `--force`; keep `tsup@^8.5.1` |
|
|
616
|
+
| Security audit fails on esbuild | `npm audit --audit-level=moderate` | Keep `esbuild` override in `package.json` |
|
|
617
|
+
| Doctor output stale | Report timestamps | Re-run `doctor workspace` or `doctor project` |
|
|
618
|
+
| Copilot ignores workspace evidence | Missing grounding files | `workspace agent-sync --write --refresh-context` |
|
|
619
|
+
| Agent grounding strict CI failed | Stale/missing reports | Run governance chain then re-sync |
|
|
620
|
+
| Affected run scope wrong | Git ref | Use `--since <ref>` explicitly |
|
|
621
|
+
|
|
622
|
+
## License
|
|
623
|
+
|
|
624
|
+
MIT — see [LICENSE](LICENSE).
|