rapidkit 0.40.0 → 0.41.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 +49 -23
- package/contracts/agent-customization-pack.v1.json +52 -2
- package/contracts/extension-cli-compatibility.v1.json +14 -2
- package/contracts/runtime-command-surface.v1.json +7 -1
- package/contracts/workspace-intelligence/agent-action-outcome.v1.json +22 -0
- package/contracts/workspace-intelligence/blocker-resolution.v1.json +65 -0
- package/contracts/workspace-intelligence/doctor-fix-result.v1.json +34 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +91 -0
- package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +51 -0
- package/contracts/workspace-intelligence/workspace-explain.v1.json +31 -0
- package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +36 -0
- package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +37 -0
- package/contracts/workspace-intelligence/workspace-skills-index.v1.json +27 -0
- package/dist/analyze-JVMUCQ22.js +1 -0
- package/dist/autopilot-release-GM5ALPWO.js +1 -0
- package/dist/chunk-424B73UF.js +1 -0
- package/dist/chunk-44GSDNPQ.js +1 -0
- package/dist/chunk-56RL5OB6.js +2 -0
- package/dist/chunk-64RTZBHU.js +2 -0
- package/dist/chunk-73IS6RIM.js +7 -0
- package/dist/{chunk-VQMZC5TC.js → chunk-AO6PG3K2.js} +1 -1
- package/dist/chunk-AT3EQ2S7.js +2 -0
- package/dist/{chunk-3YLMCP3V.js → chunk-CDCYRBAY.js} +1 -1
- package/dist/chunk-DMUEGR36.js +2 -0
- package/dist/{chunk-4FJQWL7P.js → chunk-FPUNOIAR.js} +1 -1
- package/dist/chunk-FVCZGUVX.js +1 -0
- package/dist/chunk-ICGWHIMK.js +1 -0
- package/dist/{workspace-graph-ICB7OVAZ.js → chunk-JEI6BTZI.js} +1 -1
- package/dist/{chunk-ERCD6NFF.js → chunk-KTQZUWAM.js} +1 -1
- package/dist/{chunk-RXWM5DSC.js → chunk-MGUJWRZA.js} +2 -2
- package/dist/chunk-MIWDCR6I.js +2 -0
- package/dist/{chunk-6G2KSHP6.js → chunk-OLDPVVSV.js} +1 -1
- package/dist/chunk-P5ODFWB2.js +13 -0
- package/dist/{chunk-4Q2ZZKGB.js → chunk-PCXSTKZ5.js} +1 -1
- package/dist/{chunk-6KD5F6LX.js → chunk-Q2KZIBV4.js} +1 -1
- package/dist/chunk-QN2LPLHO.js +1 -0
- package/dist/chunk-RIZCWYRR.js +1 -0
- package/dist/chunk-VMJA36WD.js +1 -0
- package/dist/chunk-WA6JYVJM.js +2 -0
- package/dist/{chunk-G76C74EV.js → chunk-XOVB2ZP5.js} +1 -1
- package/dist/chunk-Y2SCTWL4.js +32 -0
- package/dist/chunk-YOQ2546V.js +50 -0
- package/dist/{chunk-ZWKLRZE5.js → chunk-ZQRFVFKK.js} +2 -2
- package/dist/{create-XVDDQA42.js → create-UGXMC4CT.js} +1 -1
- package/dist/{demo-kit-RWGOEDW4.js → demo-kit-2VI4H6OJ.js} +1 -1
- package/dist/{doctor-UOLOGJ2Z.js → doctor-LCKG5S76.js} +1 -1
- package/dist/{dotnet-webapi-clean-RTBRPDPL.js → dotnet-webapi-clean-K33C77EI.js} +1 -1
- package/dist/{gofiber-standard-UGIRKPKL.js → gofiber-standard-BQ4HCXL2.js} +1 -1
- package/dist/{gogin-standard-HJ7SPFNT.js → gogin-standard-PUBCYW3A.js} +1 -1
- package/dist/index.d.ts +45 -7
- package/dist/index.js +190 -115
- package/dist/{pipeline-M52LR5FJ.js → pipeline-MKNYPNGD.js} +1 -1
- package/dist/{springboot-standard-IWJSVDLZ.js → springboot-standard-XFVQI37R.js} +1 -1
- package/dist/{workspace-L4ITCKMM.js → workspace-FDMJD5XI.js} +1 -1
- package/dist/workspace-agent-sync-WJIZCZX5.js +1 -0
- package/dist/{workspace-context-NMMQMHNU.js → workspace-context-RYOQYGOP.js} +1 -1
- package/dist/workspace-contract-ITFCJCHI.js +1 -0
- package/dist/workspace-explain-VKSUKP3O.js +1 -0
- package/dist/workspace-explain-contract-CLHQ3XEH.js +1 -0
- package/dist/workspace-feedback-65NR3EZH.js +1 -0
- package/dist/{workspace-foundation-HNIRAIBF.js → workspace-foundation-SILFUKL5.js} +1 -1
- package/dist/workspace-graph-2A5THUCI.js +1 -0
- package/dist/workspace-history-VPDADQKG.js +1 -0
- package/dist/{workspace-intelligence-64IWAYHS.js → workspace-intelligence-YOZQBAK5.js} +1 -1
- package/dist/workspace-mcp-serve-OOLITFCK.js +3 -0
- package/dist/workspace-model-VMMLHJWI.js +1 -0
- package/dist/workspace-registry-summary-ZXGKL2NT.js +1 -0
- package/dist/workspace-run-IHB2TPMD.js +1 -0
- package/dist/workspace-verify-3CAKAZIL.js +1 -0
- package/dist/workspace-watch-3MEZRSEE.js +1 -0
- package/docs/contracts/ARTIFACT_CATALOG.md +3 -1
- package/docs/contracts/NAMING_AND_COEXISTENCE.md +58 -0
- package/docs/workspace-run.md +25 -1
- package/package.json +1 -1
- package/dist/analyze-RHQM4AB2.js +0 -1
- package/dist/autopilot-release-S32GYUAQ.js +0 -1
- package/dist/chunk-CY2WXWYQ.js +0 -7
- package/dist/chunk-FV5A3N3I.js +0 -2
- package/dist/chunk-GDGATWR5.js +0 -2
- package/dist/chunk-GOM3RFB3.js +0 -2
- package/dist/chunk-KYH364KQ.js +0 -1
- package/dist/chunk-NAMOYGLS.js +0 -2
- package/dist/chunk-OWNGSAO3.js +0 -2
- package/dist/chunk-QPEBI6AB.js +0 -2
- package/dist/chunk-TYZPPUBH.js +0 -1
- package/dist/chunk-WHCON2VN.js +0 -50
- package/dist/chunk-X7PWDIQW.js +0 -1
- package/dist/workspace-agent-sync-G7JU77IK.js +0 -25
- package/dist/workspace-contract-D5O4OZD5.js +0 -1
- package/dist/workspace-history-LHUTLE3S.js +0 -1
- package/dist/workspace-model-SDHH5RBC.js +0 -1
- package/dist/workspace-registry-summary-MIPHVB56.js +0 -1
- package/dist/workspace-run-A26PEGQT.js +0 -1
- package/dist/workspace-verify-6Q6MGRG6.js +0 -1
- package/dist/workspace-watch-JDXVGW4H.js +0 -1
package/README.md
CHANGED
|
@@ -23,7 +23,9 @@ contracts, and release gates.
|
|
|
23
23
|
npm install -g rapidkit
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
### CLI help
|
|
27
|
+
|
|
28
|
+
Browse all commands without a global install (first run fetches from npm):
|
|
27
29
|
|
|
28
30
|
```bash
|
|
29
31
|
npx rapidkit --help
|
|
@@ -32,11 +34,8 @@ npx rapidkit --help
|
|
|
32
34
|
### Create a governed workspace
|
|
33
35
|
|
|
34
36
|
```bash
|
|
35
|
-
|
|
36
|
-
cd ~/rapidkit/workspaces
|
|
37
|
-
|
|
38
|
-
npx rapidkit create workspace platform --yes --profile polyglot --output .
|
|
39
|
-
cd platform
|
|
37
|
+
npx rapidkit my-workspace --yes --profile polyglot
|
|
38
|
+
cd ~/rapidkit/workspaces/my-workspace
|
|
40
39
|
|
|
41
40
|
npx rapidkit bootstrap --profile polyglot
|
|
42
41
|
npx rapidkit create project
|
|
@@ -50,13 +49,9 @@ npx rapidkit pipeline --json --strict
|
|
|
50
49
|
### Adopt an existing project
|
|
51
50
|
|
|
52
51
|
```bash
|
|
53
|
-
|
|
54
|
-
cd ~/rapidkit/workspaces
|
|
52
|
+
npx rapidkit adopt /path/to/project
|
|
53
|
+
cd ~/rapidkit/workspaces/workspai
|
|
55
54
|
|
|
56
|
-
npx rapidkit create workspace platform --yes --profile polyglot --output .
|
|
57
|
-
npx rapidkit adopt /path/to/project --workspace ~/rapidkit/workspaces/platform
|
|
58
|
-
|
|
59
|
-
cd ~/rapidkit/workspaces/platform
|
|
60
55
|
npx rapidkit workspace model --json
|
|
61
56
|
npx rapidkit workspace context --for-agent --json --write
|
|
62
57
|
npx rapidkit pipeline --json --strict
|
|
@@ -167,8 +162,11 @@ For the visual experience, install the [Workspai VS Code extension](https://mark
|
|
|
167
162
|
| What projects exist in this workspace? | `workspace model --json` |
|
|
168
163
|
| What context should AI agents receive? | `workspace context --for-agent --json --write` |
|
|
169
164
|
| What breaks if I change this? | `workspace impact --from <snapshot>` |
|
|
165
|
+
| Why is release blocked? | `workspace explain release-blocked --json --write` |
|
|
166
|
+
| Trace a diff through blast radius and gates? | `workspace trace --from .rapidkit/reports/workspace-model-diff-last-run.json --json --write` |
|
|
170
167
|
| Can I safely release? | `pipeline --json --strict` |
|
|
171
168
|
| How do I align AI tools and CI? | `workspace agent-sync --write` |
|
|
169
|
+
| Expose workspace evidence to MCP clients? | `workspace mcp serve` |
|
|
172
170
|
| How do I onboard an existing project? | `adopt` |
|
|
173
171
|
| How do I bring repositories into a workspace? | `import` |
|
|
174
172
|
|
|
@@ -247,11 +245,39 @@ Workspace Intelligence provides a shared understanding of projects, dependencies
|
|
|
247
245
|
| `workspace snapshot --json` | Persist model snapshot |
|
|
248
246
|
| `workspace diff --from <file\|git[:ref]> --json` | Diff against snapshot or git |
|
|
249
247
|
| `workspace impact --from <file> --json` | Graph-aware transitive blast-radius evidence |
|
|
250
|
-
| `workspace verify [--strict] --json` | Definitive verification gate (subgraph + freshness + policy)
|
|
248
|
+
| `workspace verify [--strict] --json` | Definitive verification gate (subgraph + freshness + policy + fleet evidence) |
|
|
249
|
+
| `workspace explain <target> [--write] --json` | Human narrative for release blockers, projects, or trace slices |
|
|
250
|
+
| `workspace why <target>` | Alias of `workspace explain` |
|
|
251
|
+
| `workspace trace --from <diff> [--write] --json` | Diff → impact → gates narrative for agents and IDE handoff |
|
|
252
|
+
| `workspace feedback record --json` | Append structured agent action outcomes to intelligence history |
|
|
253
|
+
| `workspace mcp serve` | Read-mostly stdio MCP bridge over workspace evidence |
|
|
251
254
|
| `workspace graph <emit\|explain\|dot\|mermaid>` | Inspect and visualize the dependency graph |
|
|
252
255
|
| `workspace watch [--json] [--once]` | Daemon mode: keep model + graph in memory, stream change events |
|
|
256
|
+
| `workspace run <stage> [--scope project:X] [--reuse-passed]` | Fleet init/test/build/start or custom stages from `.rapidkit/context.json` |
|
|
257
|
+
|
|
258
|
+
JSON schemas: `contracts/workspace-intelligence/`. Command coexistence and naming:
|
|
259
|
+
[docs/contracts/NAMING_AND_COEXISTENCE.md](docs/contracts/NAMING_AND_COEXISTENCE.md).
|
|
260
|
+
Details: [commands-reference.md](docs/commands-reference.md).
|
|
261
|
+
|
|
262
|
+
### Operational intelligence (Phase 4)
|
|
263
|
+
|
|
264
|
+
After model → diff → impact → verify, use **explain** and **trace** for
|
|
265
|
+
human/agent narratives, **feedback** to record outcomes, and **MCP serve** for
|
|
266
|
+
read-only tool access:
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
npx rapidkit workspace explain release-blocked --json --write
|
|
270
|
+
npx rapidkit workspace trace --from .rapidkit/reports/workspace-model-diff-last-run.json --json --write
|
|
271
|
+
npx rapidkit workspace feedback record --json
|
|
272
|
+
npx rapidkit workspace mcp serve
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
Fleet runs support scoped execution and result reuse:
|
|
253
276
|
|
|
254
|
-
|
|
277
|
+
```bash
|
|
278
|
+
npx rapidkit workspace run test --scope project:api --reuse-passed --json
|
|
279
|
+
npx rapidkit workspace run lint --scope project:api # custom stage from context.json
|
|
280
|
+
```
|
|
255
281
|
|
|
256
282
|
### Graph-aware intelligence engine
|
|
257
283
|
|
|
@@ -308,6 +334,9 @@ npm run check:agent-customization-drift -- --workspace <workspace-root>
|
|
|
308
334
|
| Artifact / file | Purpose |
|
|
309
335
|
| ----------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
310
336
|
| `.rapidkit/reports/agent-customization-pack.json` | Versioned output inventory, target matrix, drift state |
|
|
337
|
+
| `.rapidkit/reports/workspace-explain-last-run.json` | Unified explain / trace narrative for blockers and projects |
|
|
338
|
+
| `.rapidkit/reports/workspace-skills-index.json` | Index of operational playbooks (`.rapidkit/skills/*.md`) |
|
|
339
|
+
| `.rapidkit/skills/rapidkit-*.md` | Operational playbooks (generated by agent-sync) |
|
|
311
340
|
| `.rapidkit/reports/rapidkit-mcp-design.json` | Read-mostly MCP-ready tool design manifest |
|
|
312
341
|
| `.rapidkit/reports/INDEX.json` | Read order, blockers, report timestamps |
|
|
313
342
|
| `.rapidkit/reports/workspace-context-agent.json` | Canonical agent context pack |
|
|
@@ -361,8 +390,6 @@ CI template: [docs/examples/ci-agent-grounding.yml](docs/examples/ci-agent-groun
|
|
|
361
390
|
|
|
362
391
|
```bash
|
|
363
392
|
npm install -g rapidkit
|
|
364
|
-
# or
|
|
365
|
-
npx rapidkit --help
|
|
366
393
|
```
|
|
367
394
|
|
|
368
395
|
## Project workflows
|
|
@@ -370,8 +397,10 @@ npx rapidkit --help
|
|
|
370
397
|
### I already have a project
|
|
371
398
|
|
|
372
399
|
```bash
|
|
373
|
-
npx rapidkit adopt /path/to/project
|
|
374
|
-
npx rapidkit import ../orders-api
|
|
400
|
+
npx rapidkit adopt /path/to/project
|
|
401
|
+
npx rapidkit import ../orders-api
|
|
402
|
+
cd ~/rapidkit/workspaces/workspai
|
|
403
|
+
|
|
375
404
|
npx rapidkit workspace model --json
|
|
376
405
|
npx rapidkit doctor workspace --json
|
|
377
406
|
```
|
|
@@ -379,11 +408,8 @@ npx rapidkit doctor workspace --json
|
|
|
379
408
|
### I want a new project
|
|
380
409
|
|
|
381
410
|
```bash
|
|
382
|
-
|
|
383
|
-
cd ~/rapidkit/workspaces
|
|
384
|
-
|
|
385
|
-
npx rapidkit create workspace platform --yes --profile polyglot --output .
|
|
386
|
-
cd platform
|
|
411
|
+
npx rapidkit my-workspace --yes --profile polyglot
|
|
412
|
+
cd ~/rapidkit/workspaces/my-workspace
|
|
387
413
|
|
|
388
414
|
npx rapidkit bootstrap --profile polyglot
|
|
389
415
|
npx rapidkit create project # interactive kit picker
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
".github/prompts/rapidkit-diagnose.prompt.md",
|
|
20
20
|
".github/skills/rapidkit-workspace-intelligence/SKILL.md",
|
|
21
21
|
".github/agents/workspai-advisor.agent.md",
|
|
22
|
-
".rapidkit/reports/rapidkit-mcp-design.json"
|
|
22
|
+
".rapidkit/reports/rapidkit-mcp-design.json",
|
|
23
|
+
".rapidkit/reports/workspace-skills-index.json"
|
|
23
24
|
]
|
|
24
25
|
}
|
|
25
26
|
},
|
|
@@ -99,6 +100,11 @@
|
|
|
99
100
|
"label": "Agent context pack",
|
|
100
101
|
"required": true
|
|
101
102
|
},
|
|
103
|
+
{
|
|
104
|
+
"path": ".rapidkit/reports/workspace-skills-index.json",
|
|
105
|
+
"label": "Operational skills index",
|
|
106
|
+
"required": true
|
|
107
|
+
},
|
|
102
108
|
{
|
|
103
109
|
"path": ".rapidkit/reports/workspace-model.json",
|
|
104
110
|
"label": "Workspace model graph",
|
|
@@ -133,6 +139,31 @@
|
|
|
133
139
|
"path": ".rapidkit/reports/workspace-verify-last-run.json",
|
|
134
140
|
"label": "Workspace verify",
|
|
135
141
|
"required": false
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": ".rapidkit/reports/workspace-model-snapshot.json",
|
|
145
|
+
"label": "Workspace model snapshot",
|
|
146
|
+
"required": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"path": ".rapidkit/reports/workspace-model-diff-last-run.json",
|
|
150
|
+
"label": "Workspace model diff",
|
|
151
|
+
"required": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"path": ".rapidkit/reports/workspace-explain-last-run.json",
|
|
155
|
+
"label": "Workspace explain",
|
|
156
|
+
"required": false
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"path": ".rapidkit/reports/workspace-contract-verify-last-run.json",
|
|
160
|
+
"label": "Workspace contract verify",
|
|
161
|
+
"required": false
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"path": ".rapidkit/reports/workspace-intelligence-history.json",
|
|
165
|
+
"label": "Workspace intelligence history",
|
|
166
|
+
"required": false
|
|
136
167
|
}
|
|
137
168
|
],
|
|
138
169
|
"strictRules": [
|
|
@@ -151,9 +182,28 @@
|
|
|
151
182
|
"prompt",
|
|
152
183
|
"skill",
|
|
153
184
|
"skill-resource",
|
|
185
|
+
"operational-skill",
|
|
186
|
+
"skills-index",
|
|
187
|
+
"explain-report",
|
|
154
188
|
"agent",
|
|
155
189
|
"rule",
|
|
156
190
|
"hook",
|
|
157
191
|
"mcp-design"
|
|
158
|
-
]
|
|
192
|
+
],
|
|
193
|
+
"pathLayers": {
|
|
194
|
+
"l1CanonicalRoots": [
|
|
195
|
+
".rapidkit/reports/",
|
|
196
|
+
".rapidkit/skills/"
|
|
197
|
+
],
|
|
198
|
+
"l2PrefixedMirrorRoots": [
|
|
199
|
+
".github/",
|
|
200
|
+
".cursor/",
|
|
201
|
+
".claude/"
|
|
202
|
+
],
|
|
203
|
+
"l3SharedIndustryFiles": [
|
|
204
|
+
"AGENTS.md",
|
|
205
|
+
".github/copilot-instructions.md",
|
|
206
|
+
"CLAUDE.md"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
159
209
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "rapidkit-extension-cli-compatibility.v1",
|
|
3
3
|
"cli": "rapidkit-npm",
|
|
4
|
-
"minimumVerifiedCliVersion": "0.
|
|
4
|
+
"minimumVerifiedCliVersion": "0.41.0",
|
|
5
5
|
"publishedContractSchemas": {
|
|
6
6
|
"runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
|
|
7
7
|
"cliLogEvent": "cli-log-event-v1",
|
|
8
|
-
"freshnessMetadata": "rapidkit-freshness-metadata-v1"
|
|
8
|
+
"freshnessMetadata": "rapidkit-freshness-metadata-v1",
|
|
9
|
+
"blockerResolution": "rapidkit-blocker-resolution-v1",
|
|
10
|
+
"workspaceModel": "workspace-model.v1",
|
|
11
|
+
"workspaceImpact": "workspace-impact.v1",
|
|
12
|
+
"workspaceVerify": "workspace-verify.v1",
|
|
13
|
+
"workspaceContext": "workspace-context.v1",
|
|
14
|
+
"workspaceDependencyGraph": "workspace-dependency-graph.v1",
|
|
15
|
+
"workspaceIntelligenceHistory": "workspace-intelligence-history.v1",
|
|
16
|
+
"agentCustomizationPack": "rapidkit-agent-customization-pack.v1",
|
|
17
|
+
"workspaceOperationalSkill": "workspace-operational-skill.v1",
|
|
18
|
+
"workspaceSkillsIndex": "workspace-skills-index.v1",
|
|
19
|
+
"workspaceExplain": "workspace-explain.v1",
|
|
20
|
+
"agentActionOutcome": "agent-action-outcome.v1"
|
|
9
21
|
}
|
|
10
22
|
}
|
|
@@ -53,6 +53,11 @@
|
|
|
53
53
|
"watch",
|
|
54
54
|
"context",
|
|
55
55
|
"agent-sync",
|
|
56
|
+
"explain",
|
|
57
|
+
"why",
|
|
58
|
+
"trace",
|
|
59
|
+
"feedback",
|
|
60
|
+
"mcp",
|
|
56
61
|
"policy",
|
|
57
62
|
"contract",
|
|
58
63
|
"share",
|
|
@@ -70,7 +75,8 @@
|
|
|
70
75
|
"impact",
|
|
71
76
|
"verify",
|
|
72
77
|
"context",
|
|
73
|
-
"agent-sync"
|
|
78
|
+
"agent-sync",
|
|
79
|
+
"explain"
|
|
74
80
|
],
|
|
75
81
|
"moduleSuggestionFrameworks": [
|
|
76
82
|
"fastapi",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/agent-action-outcome.v1.json",
|
|
4
|
+
"title": "RapidKit Agent Action Outcome",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "generatedAt", "actionId", "scope", "summary", "outcome"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "agent-action-outcome.v1" },
|
|
9
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"actionId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"scope": { "type": "string" },
|
|
12
|
+
"summary": { "type": "string" },
|
|
13
|
+
"outcome": { "enum": ["ok", "failed"] },
|
|
14
|
+
"affectedFiles": { "type": "array", "items": { "type": "string" } },
|
|
15
|
+
"commandsRun": { "type": "array", "items": { "type": "string" } },
|
|
16
|
+
"verifyBefore": { "type": "string" },
|
|
17
|
+
"verifyAfter": { "type": "string" },
|
|
18
|
+
"evidenceSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
19
|
+
"evidencePath": { "type": "string" }
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/blocker-resolution.v1.json",
|
|
4
|
+
"title": "RapidKit Blocker Resolution Hint",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"blockerId",
|
|
9
|
+
"resolutionClass",
|
|
10
|
+
"blockerSignature",
|
|
11
|
+
"fixHints"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"const": "rapidkit-blocker-resolution-v1"
|
|
16
|
+
},
|
|
17
|
+
"blockerId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
20
|
+
},
|
|
21
|
+
"sourceCommand": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"sourceArtifact": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"resolutionClass": {
|
|
28
|
+
"enum": [
|
|
29
|
+
"artifact-missing",
|
|
30
|
+
"command-failed-repeat",
|
|
31
|
+
"config-fixable",
|
|
32
|
+
"semantic-attention",
|
|
33
|
+
"unresolvable-without-human"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"blockerSignature": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 8
|
|
39
|
+
},
|
|
40
|
+
"commandRetryHint": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"fixHints": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["actionKind", "detail"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"actionKind": {
|
|
50
|
+
"enum": ["edit-file", "run-once", "commit-files", "refresh-baseline"]
|
|
51
|
+
},
|
|
52
|
+
"targetPath": { "type": "string" },
|
|
53
|
+
"detail": { "type": "string" },
|
|
54
|
+
"studioActionId": {
|
|
55
|
+
"enum": ["fix-lens", "verify-gates", "run-analyze", "doctor-fix"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"verifyCommand": { "type": "string" },
|
|
62
|
+
"verifyArtifact": { "type": "string" }
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "rapidkit-doctor-fix-result-v1",
|
|
4
|
+
"title": "Doctor fix execution result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": ["schemaVersion", "appliedFixes", "remainingBlockers", "verifyRecommended"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": {
|
|
10
|
+
"const": "rapidkit-doctor-fix-result-v1"
|
|
11
|
+
},
|
|
12
|
+
"appliedFixes": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["path", "action", "outcome"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"path": { "type": "string" },
|
|
19
|
+
"action": { "type": "string" },
|
|
20
|
+
"outcome": {
|
|
21
|
+
"enum": ["applied", "failed", "skipped", "guidance"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"remainingBlockers": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": { "type": "string" }
|
|
29
|
+
},
|
|
30
|
+
"verifyRecommended": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/studio-blocker-handoff.v1.json",
|
|
4
|
+
"title": "Workspai Studio Blocker Handoff",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"cardId",
|
|
9
|
+
"cardStatus",
|
|
10
|
+
"blockers",
|
|
11
|
+
"artifactPath",
|
|
12
|
+
"sourceCommand",
|
|
13
|
+
"scope"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": {
|
|
17
|
+
"const": "rapidkit-studio-blocker-handoff-v1"
|
|
18
|
+
},
|
|
19
|
+
"cardId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"cardLabel": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"cardStatus": {
|
|
27
|
+
"enum": ["pass", "warn", "fail", "missing"]
|
|
28
|
+
},
|
|
29
|
+
"blockers": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "type": "string" }
|
|
32
|
+
},
|
|
33
|
+
"artifactPath": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"sourceCommand": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"scope": {
|
|
40
|
+
"enum": ["workspace", "project"]
|
|
41
|
+
},
|
|
42
|
+
"stderrTail": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"exitCode": {
|
|
46
|
+
"type": ["integer", "null"]
|
|
47
|
+
},
|
|
48
|
+
"blockerSignature": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 8
|
|
51
|
+
},
|
|
52
|
+
"commandRunCount": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 0
|
|
55
|
+
},
|
|
56
|
+
"resolutionClass": {
|
|
57
|
+
"enum": [
|
|
58
|
+
"artifact-missing",
|
|
59
|
+
"command-failed-repeat",
|
|
60
|
+
"config-fixable",
|
|
61
|
+
"semantic-attention",
|
|
62
|
+
"unresolvable-without-human"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"studioMode": {
|
|
66
|
+
"enum": ["FIX", "RUN_ONCE", "VERIFY_ONLY", "EXPLAIN"]
|
|
67
|
+
},
|
|
68
|
+
"resolutionHints": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"$ref": "blocker-resolution.v1.json"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"verifyCommand": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"verifyArtifact": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"handoffSource": {
|
|
81
|
+
"enum": ["repair", "artifacts", "advisor", "tree", "dashboard"]
|
|
82
|
+
},
|
|
83
|
+
"workspacePath": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"projectPath": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "workspace-contract-verify.v1",
|
|
4
|
+
"title": "Workspace contract verify evidence",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"generatedAt",
|
|
10
|
+
"status",
|
|
11
|
+
"contractPath",
|
|
12
|
+
"projectCount",
|
|
13
|
+
"checks",
|
|
14
|
+
"violations"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"const": "workspace-contract-verify.v1"
|
|
19
|
+
},
|
|
20
|
+
"generatedAt": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "date-time"
|
|
23
|
+
},
|
|
24
|
+
"status": {
|
|
25
|
+
"enum": ["passed", "failed"]
|
|
26
|
+
},
|
|
27
|
+
"contractPath": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"projectCount": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0
|
|
33
|
+
},
|
|
34
|
+
"checks": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": ["id", "status", "message"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"id": { "type": "string" },
|
|
41
|
+
"status": { "enum": ["passed", "failed"] },
|
|
42
|
+
"message": { "type": "string" }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"violations": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": { "type": "string" }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-explain.v1.json",
|
|
4
|
+
"title": "RapidKit Workspace Explain Report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "generatedAt", "workspacePath", "target", "summary", "sections"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "workspace-explain.v1" },
|
|
9
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"workspacePath": { "type": "string" },
|
|
11
|
+
"target": { "type": "object", "additionalProperties": true },
|
|
12
|
+
"summary": { "type": "string" },
|
|
13
|
+
"sections": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["id", "title", "body"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"id": { "type": "string" },
|
|
20
|
+
"title": { "type": "string" },
|
|
21
|
+
"body": { "type": "string" }
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"releaseRisk": { "type": "string" },
|
|
27
|
+
"blockingReasons": { "type": "array", "items": { "type": "string" } },
|
|
28
|
+
"resolutionHints": { "type": "array", "items": { "type": "object" } }
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-intelligence-history.v1.json",
|
|
4
|
+
"title": "RapidKit Workspace Intelligence History",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "retention", "entries"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "workspace-intelligence-history.v1" },
|
|
9
|
+
"retention": { "type": "integer", "minimum": 1 },
|
|
10
|
+
"entries": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["generatedAt"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
17
|
+
"kind": { "enum": ["verify", "agent-action"] },
|
|
18
|
+
"verdict": { "enum": ["ready", "needs-attention", "blocked"] },
|
|
19
|
+
"risk": { "type": "string" },
|
|
20
|
+
"affectedProjects": { "type": "integer", "minimum": 0 },
|
|
21
|
+
"freshness": { "enum": ["fresh", "stale", "unknown"] },
|
|
22
|
+
"gatePassed": { "type": "boolean" },
|
|
23
|
+
"blockingReasons": { "type": "integer", "minimum": 0 },
|
|
24
|
+
"policyViolations": { "type": "integer", "minimum": 0 },
|
|
25
|
+
"actionId": { "type": "string" },
|
|
26
|
+
"scope": { "type": "string" },
|
|
27
|
+
"summary": { "type": "string" },
|
|
28
|
+
"outcome": { "enum": ["ok", "failed"] },
|
|
29
|
+
"evidenceSha256": { "type": "string" }
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-operational-skill.v1.json",
|
|
4
|
+
"title": "RapidKit Workspace Operational Skill",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"skillId",
|
|
9
|
+
"canonicalPath",
|
|
10
|
+
"title",
|
|
11
|
+
"triggers",
|
|
12
|
+
"requiredReports",
|
|
13
|
+
"scopedProjects",
|
|
14
|
+
"verificationCommands",
|
|
15
|
+
"answerContractSections",
|
|
16
|
+
"markdown"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": { "const": "workspace-operational-skill.v1" },
|
|
20
|
+
"skillId": { "type": "string", "minLength": 1 },
|
|
21
|
+
"canonicalPath": { "type": "string", "pattern": "^\\.rapidkit/skills/[^/]+\\.md$" },
|
|
22
|
+
"title": { "type": "string" },
|
|
23
|
+
"triggers": { "type": "array", "items": { "type": "string" } },
|
|
24
|
+
"requiredReports": { "type": "array", "items": { "type": "string" } },
|
|
25
|
+
"scopedProjects": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"verificationCommands": { "type": "array", "items": { "type": "string" } },
|
|
27
|
+
"answerContractSections": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"enum": ["Scope", "Evidence", "Diagnosis", "Fix Plan", "Run", "Verify", "Assumptions"]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"promptStem": { "type": "string" },
|
|
34
|
+
"markdown": { "type": "string" }
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|