rapidkit 0.40.1 → 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 +36 -2
- 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 +123 -106
- package/dist/{pipeline-XK62WL4D.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-OJTLXPMX.js +0 -1
- package/dist/chunk-5VBRMLRU.js +0 -7
- package/dist/chunk-7VI4U7Q5.js +0 -2
- 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-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-SPP32MPV.js +0 -1
- package/dist/workspace-verify-6Q6MGRG6.js +0 -1
- package/dist/workspace-watch-JDXVGW4H.js +0 -1
package/README.md
CHANGED
|
@@ -162,8 +162,11 @@ For the visual experience, install the [Workspai VS Code extension](https://mark
|
|
|
162
162
|
| What projects exist in this workspace? | `workspace model --json` |
|
|
163
163
|
| What context should AI agents receive? | `workspace context --for-agent --json --write` |
|
|
164
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` |
|
|
165
167
|
| Can I safely release? | `pipeline --json --strict` |
|
|
166
168
|
| How do I align AI tools and CI? | `workspace agent-sync --write` |
|
|
169
|
+
| Expose workspace evidence to MCP clients? | `workspace mcp serve` |
|
|
167
170
|
| How do I onboard an existing project? | `adopt` |
|
|
168
171
|
| How do I bring repositories into a workspace? | `import` |
|
|
169
172
|
|
|
@@ -242,11 +245,39 @@ Workspace Intelligence provides a shared understanding of projects, dependencies
|
|
|
242
245
|
| `workspace snapshot --json` | Persist model snapshot |
|
|
243
246
|
| `workspace diff --from <file\|git[:ref]> --json` | Diff against snapshot or git |
|
|
244
247
|
| `workspace impact --from <file> --json` | Graph-aware transitive blast-radius evidence |
|
|
245
|
-
| `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 |
|
|
246
254
|
| `workspace graph <emit\|explain\|dot\|mermaid>` | Inspect and visualize the dependency graph |
|
|
247
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` |
|
|
248
257
|
|
|
249
|
-
JSON schemas: `contracts/workspace-intelligence/`.
|
|
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:
|
|
276
|
+
|
|
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
|
+
```
|
|
250
281
|
|
|
251
282
|
### Graph-aware intelligence engine
|
|
252
283
|
|
|
@@ -303,6 +334,9 @@ npm run check:agent-customization-drift -- --workspace <workspace-root>
|
|
|
303
334
|
| Artifact / file | Purpose |
|
|
304
335
|
| ----------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
305
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) |
|
|
306
340
|
| `.rapidkit/reports/rapidkit-mcp-design.json` | Read-mostly MCP-ready tool design manifest |
|
|
307
341
|
| `.rapidkit/reports/INDEX.json` | Read order, blockers, report timestamps |
|
|
308
342
|
| `.rapidkit/reports/workspace-context-agent.json` | Canonical agent context pack |
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://getrapidkit.com/schemas/workspace-skills-index.v1.json",
|
|
4
|
+
"title": "RapidKit Workspace Skills Index",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "generatedAt", "inputsHash", "skills"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": "workspace-skills-index.v1" },
|
|
9
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"inputsHash": { "type": "string", "minLength": 8 },
|
|
11
|
+
"skills": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["skillId", "path", "schemaVersion", "title"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"skillId": { "type": "string" },
|
|
18
|
+
"path": { "type": "string" },
|
|
19
|
+
"schemaVersion": { "type": "string" },
|
|
20
|
+
"title": { "type": "string" }
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as printAnalyzeReport,a as runAnalyze}from'./chunk-AO6PG3K2.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-73IS6RIM.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n="workspace-explain.v1",a=["project","release-blocked","blocker","trace"];function p(t){let r=t.trim();if(!r)return null;if(r==="release-blocked")return {kind:"release-blocked"};if(r.startsWith("project:")){let e=r.slice(8).trim();return e?{kind:"project",project:e}:null}if(r.startsWith("blocker:")){let e=r.slice(8).trim();return e?{kind:"blocker",blockerId:e}:null}if(r.startsWith("trace:")){let e=r.slice(6).trim();return e?{kind:"trace",diffRef:e}:null}return {kind:"project",project:r}}function l(t){if(!t||typeof t!="object"||Array.isArray(t))return false;let r=t;return r.schemaVersion===n&&typeof r.generatedAt=="string"&&typeof r.summary=="string"&&Array.isArray(r.sections)&&r.target!=null&&typeof r.target=="object"&&!Array.isArray(r.target)&&typeof r.target.kind=="string"}export{n as a,a as b,p as c,l as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a,b as b$1}from'./chunk-S5KTATOU.js';import {b}from'./chunk-QN2LPLHO.js';function f(r){let s=new Map;for(let n of r.projects)s.has(n.name)||s.set(n.name,b(n));return s}function j(r){let s=f(r),n=r.graph??{nodes:r.projects.map(t=>({id:t.name,path:t.path})),edges:[]},a$1=a(n),o=new Map;for(let t of n.nodes){let e=s.get(t.id)??b({missing:t.id}),g=[...b$1(a$1,[t.id],{direction:"dependencies"}).keys()].filter(c=>c!==t.id).sort((c,l)=>c.localeCompare(l)).map(c=>({id:c,hash:s.get(c)??"<unknown>"}));o.set(t.id,{id:t.id,ownHash:e,transitiveInputsHash:b({own:e,dependencies:g})});}return o}function v(r,s){if(!s||Object.keys(s).length===0)return {verdict:"unknown",baseline:"none",changed:[],added:[],removed:[]};let n=[],a=[];for(let[e,i]of r.entries())e in s?s[e]!==i.transitiveInputsHash&&n.push(e):a.push(e);let o=[];for(let e of Object.keys(s))r.has(e)||o.push(e);return n.sort((e,i)=>e.localeCompare(i)),a.sort((e,i)=>e.localeCompare(i)),o.sort((e,i)=>e.localeCompare(i)),{verdict:n.length>0||a.length>0||o.length>0?"stale":"fresh",baseline:"recorded",changed:n,added:a,removed:o}}function w(r){let s={};for(let[n,a]of [...r.entries()].sort((o,t)=>o[0].localeCompare(t[0])))s[n]=a.transitiveInputsHash;return s}export{f as a,j as b,v as c,w as d};
|