rapidkit 0.41.1 → 0.41.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +132 -58
  2. package/contracts/agent-customization-pack.v1.json +15 -0
  3. package/contracts/doctor-project-evidence.v1.json +260 -2
  4. package/contracts/doctor-remediation-plan.v1.json +496 -0
  5. package/contracts/doctor-workspace-evidence.v1.json +260 -2
  6. package/contracts/extension-cli-compatibility.v1.json +5 -2
  7. package/contracts/runtime-command-surface.v1.json +3 -1
  8. package/contracts/workspace-intelligence/doctor-fix-result.v1.json +11 -1
  9. package/contracts/workspace-intelligence/fact-freshness.v1.json +58 -0
  10. package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +24 -0
  11. package/contracts/workspace-intelligence/workspace-context.v1.json +84 -1
  12. package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +6 -2
  13. package/contracts/workspace-intelligence/workspace-model.v1.json +80 -0
  14. package/dist/analyze-UTB3PNKM.js +1 -0
  15. package/dist/autopilot-release-GBH7PIIZ.js +1 -0
  16. package/dist/{chunk-CKXJR3YT.js → chunk-3CYEVV6H.js} +1 -1
  17. package/dist/{chunk-RSYUNEH7.js → chunk-42ARJBM7.js} +1 -1
  18. package/dist/chunk-6UBWN4EE.js +2 -0
  19. package/dist/chunk-7BEZH5LE.js +2 -0
  20. package/dist/{chunk-ITJ6RKUW.js → chunk-AM5OJWXF.js} +1 -1
  21. package/dist/{chunk-KIUSCFHF.js → chunk-C4ASE2DV.js} +1 -1
  22. package/dist/chunk-COBMOVUK.js +1 -0
  23. package/dist/{chunk-ELU3G6DQ.js → chunk-DKNVDNT4.js} +1 -1
  24. package/dist/chunk-GD6VML5K.js +32 -0
  25. package/dist/chunk-GH674HP5.js +4 -0
  26. package/dist/chunk-HT3G7HOV.js +78 -0
  27. package/dist/{chunk-BFEBZABL.js → chunk-KZLRUBQ5.js} +19 -19
  28. package/dist/chunk-O74N26AD.js +1 -0
  29. package/dist/chunk-TDSIF42O.js +1 -0
  30. package/dist/chunk-TSUQQTHI.js +1 -0
  31. package/dist/chunk-ULIVVMT6.js +1 -0
  32. package/dist/{chunk-CDPR2YKL.js → chunk-XRGBKUJO.js} +1 -1
  33. package/dist/chunk-XY3SGMAJ.js +2 -0
  34. package/dist/{create-RNP5ACQL.js → create-XTKHAYH7.js} +1 -1
  35. package/dist/doctor-4UQZIELO.js +1 -0
  36. package/dist/index.d.ts +11 -2
  37. package/dist/index.js +165 -140
  38. package/dist/pipeline-ZCJ6NVRC.js +5 -0
  39. package/dist/{workspace-E554C5SM.js → workspace-VKUBU4M4.js} +1 -1
  40. package/dist/{workspace-agent-sync-2HRPM5ZD.js → workspace-agent-sync-QJWXK3RT.js} +1 -1
  41. package/dist/{workspace-context-VJTXW3K4.js → workspace-context-I5OXR6XB.js} +1 -1
  42. package/dist/workspace-explain-YFKDZRVX.js +1 -0
  43. package/dist/{workspace-feedback-65NR3EZH.js → workspace-feedback-KCDFF7YS.js} +1 -1
  44. package/dist/{workspace-foundation-LISDH53T.js → workspace-foundation-V6SLZRBY.js} +1 -1
  45. package/dist/workspace-history-DSCH7PQZ.js +1 -0
  46. package/dist/{workspace-intelligence-E3KXEZCM.js → workspace-intelligence-4SGJDZ6H.js} +1 -1
  47. package/dist/{workspace-marker-IOPQ42A7.js → workspace-marker-HAC7BMEG.js} +1 -1
  48. package/dist/workspace-mcp-serve-4QN7ZU6C.js +3 -0
  49. package/dist/workspace-model-R6XYEQZO.js +1 -0
  50. package/dist/workspace-run-QRT3JJDB.js +1 -0
  51. package/dist/{workspace-verify-NRYH7RNB.js → workspace-verify-TEQWZOXM.js} +1 -1
  52. package/dist/{workspace-watch-H2AETGFI.js → workspace-watch-WERGZE5P.js} +1 -1
  53. package/docs/contracts/ARTIFACT_CATALOG.md +59 -20
  54. package/docs/contracts/NAMING_AND_COEXISTENCE.md +3 -2
  55. package/docs/contracts/README.md +12 -0
  56. package/docs/doctor-command.md +217 -13
  57. package/package.json +1 -1
  58. package/scripts/enterprise-package-smoke.mjs +50 -45
  59. package/dist/analyze-QYHMGLSG.js +0 -1
  60. package/dist/autopilot-release-AHMQEUFH.js +0 -1
  61. package/dist/chunk-33LR2QEM.js +0 -2
  62. package/dist/chunk-46AGNYI7.js +0 -50
  63. package/dist/chunk-EN6YCX36.js +0 -1
  64. package/dist/chunk-JW2FSKT3.js +0 -2
  65. package/dist/chunk-LKX3L7TE.js +0 -2
  66. package/dist/chunk-RV6HBTFC.js +0 -2
  67. package/dist/chunk-TJN7G2MA.js +0 -1
  68. package/dist/chunk-UQR6G7KH.js +0 -32
  69. package/dist/chunk-VKLL63TL.js +0 -1
  70. package/dist/chunk-VMJA36WD.js +0 -1
  71. package/dist/doctor-XM6QDTDC.js +0 -1
  72. package/dist/pipeline-DH6Z47O4.js +0 -5
  73. package/dist/workspace-explain-3WSJLIJ6.js +0 -1
  74. package/dist/workspace-history-VPDADQKG.js +0 -1
  75. package/dist/workspace-mcp-serve-RFYDCA2L.js +0 -3
  76. package/dist/workspace-model-YL7W3573.js +0 -1
  77. package/dist/workspace-run-GCIQD73R.js +0 -1
@@ -28,10 +28,24 @@
28
28
  "projectScanSignature": { "type": "string" },
29
29
  "cachePath": { "type": ["string", "null"] },
30
30
  "healthScore": { "type": "object", "additionalProperties": true },
31
+ "evidenceFreshness": { "$ref": "#/$defs/evidenceFreshness" },
31
32
  "system": { "type": "object", "additionalProperties": true },
32
33
  "projects": {
33
34
  "type": "array",
34
- "items": { "type": "object", "additionalProperties": true }
35
+ "items": {
36
+ "type": "object",
37
+ "properties": {
38
+ "probes": {
39
+ "type": "array",
40
+ "items": { "$ref": "#/$defs/probe" }
41
+ },
42
+ "repairCapabilities": {
43
+ "type": "array",
44
+ "items": { "$ref": "#/$defs/repairCapability" }
45
+ }
46
+ },
47
+ "additionalProperties": true
48
+ }
35
49
  },
36
50
  "summary": {
37
51
  "type": "object",
@@ -51,7 +65,251 @@
51
65
  "type": "array",
52
66
  "items": { "type": "object", "additionalProperties": true }
53
67
  },
54
- "contract": { "type": "object", "additionalProperties": true }
68
+ "contract": { "type": "object", "additionalProperties": true },
69
+ "policyProfile": { "$ref": "#/$defs/policyProfile" }
70
+ },
71
+ "$defs": {
72
+ "freshness": {
73
+ "type": "object",
74
+ "required": [
75
+ "category",
76
+ "generatedAt",
77
+ "ttlSeconds",
78
+ "status",
79
+ "verifyBeforeUse",
80
+ "reason"
81
+ ],
82
+ "properties": {
83
+ "category": { "enum": ["structure", "verification", "state"] },
84
+ "generatedAt": { "type": "string", "format": "date-time" },
85
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
86
+ "expiresAt": { "type": "string", "format": "date-time" },
87
+ "status": { "enum": ["fresh", "stale", "unknown"] },
88
+ "verifyBeforeUse": { "type": "boolean" },
89
+ "reason": { "type": "string" }
90
+ },
91
+ "additionalProperties": false
92
+ },
93
+ "evidenceFreshness": {
94
+ "type": "object",
95
+ "required": [
96
+ "generatedAt",
97
+ "status",
98
+ "staleProbeCount",
99
+ "unknownProbeCount",
100
+ "liveStateProbeCount",
101
+ "verifyBeforeUseProbeCount"
102
+ ],
103
+ "properties": {
104
+ "generatedAt": { "type": "string", "format": "date-time" },
105
+ "status": { "enum": ["fresh", "stale", "unknown"] },
106
+ "staleProbeCount": { "type": "integer", "minimum": 0 },
107
+ "unknownProbeCount": { "type": "integer", "minimum": 0 },
108
+ "liveStateProbeCount": { "type": "integer", "minimum": 0 },
109
+ "verifyBeforeUseProbeCount": { "type": "integer", "minimum": 0 },
110
+ "oldestProbeGeneratedAt": { "type": "string", "format": "date-time" }
111
+ },
112
+ "additionalProperties": false
113
+ },
114
+ "repairIntent": {
115
+ "type": "object",
116
+ "required": [
117
+ "mode",
118
+ "confidence",
119
+ "primaryActionLabel",
120
+ "requiresApproval",
121
+ "requiresFreshEvidence",
122
+ "reason",
123
+ "relatedCommands"
124
+ ],
125
+ "properties": {
126
+ "mode": {
127
+ "enum": [
128
+ "none",
129
+ "run-command",
130
+ "edit-file",
131
+ "review-required",
132
+ "verify-before-fix",
133
+ "refresh-evidence",
134
+ "manual-guidance"
135
+ ]
136
+ },
137
+ "confidence": { "enum": ["high", "medium", "low"] },
138
+ "primaryActionLabel": { "type": "string" },
139
+ "requiresApproval": { "type": "boolean" },
140
+ "requiresFreshEvidence": { "type": "boolean" },
141
+ "reason": { "type": "string" },
142
+ "relatedCommands": { "type": "array", "items": { "type": "string" } }
143
+ },
144
+ "additionalProperties": false
145
+ },
146
+ "policyProfile": {
147
+ "type": "object",
148
+ "required": [
149
+ "name",
150
+ "exitOnErrors",
151
+ "exitOnWarnings",
152
+ "warningExitCode",
153
+ "advisoryWarningsBlockRelease",
154
+ "description"
155
+ ],
156
+ "properties": {
157
+ "name": { "enum": ["local", "ci", "release", "enterprise-strict"] },
158
+ "exitOnErrors": { "const": true },
159
+ "exitOnWarnings": { "type": "boolean" },
160
+ "warningExitCode": { "enum": [0, 1, 2] },
161
+ "advisoryWarningsBlockRelease": { "type": "boolean" },
162
+ "description": { "type": "string" }
163
+ },
164
+ "additionalProperties": false
165
+ },
166
+ "probe": {
167
+ "type": "object",
168
+ "properties": {
169
+ "id": { "type": "string", "minLength": 1 },
170
+ "label": { "type": "string", "minLength": 1 },
171
+ "status": { "enum": ["pass", "warn", "fail"] },
172
+ "severity": { "enum": ["info", "warn", "error"] },
173
+ "scope": { "type": "string" },
174
+ "reason": { "type": "string" },
175
+ "recommendation": { "type": "string" },
176
+ "freshness": { "$ref": "#/$defs/freshness" },
177
+ "issueClass": {
178
+ "enum": [
179
+ "dependency",
180
+ "environment",
181
+ "security",
182
+ "test",
183
+ "quality",
184
+ "container",
185
+ "deployment",
186
+ "runtime",
187
+ "workspace-contract",
188
+ "source-tree",
189
+ "framework",
190
+ "configuration",
191
+ "custom",
192
+ "unknown"
193
+ ]
194
+ },
195
+ "operationalImpact": {
196
+ "enum": [
197
+ "none",
198
+ "developer-friction",
199
+ "ci-risk",
200
+ "release-risk",
201
+ "security-risk",
202
+ "runtime-risk",
203
+ "customer-risk"
204
+ ]
205
+ },
206
+ "repairIntent": { "$ref": "#/$defs/repairIntent" },
207
+ "repairCapability": { "$ref": "#/$defs/repairCapability" }
208
+ },
209
+ "additionalProperties": true
210
+ },
211
+ "repairCapability": {
212
+ "type": "object",
213
+ "required": [
214
+ "id",
215
+ "issueId",
216
+ "title",
217
+ "status",
218
+ "fixKind",
219
+ "risk",
220
+ "canAutoFix",
221
+ "canEditFiles",
222
+ "requiresApproval",
223
+ "requiresReview",
224
+ "files",
225
+ "refreshCommands",
226
+ "reason"
227
+ ],
228
+ "properties": {
229
+ "id": { "type": "string", "minLength": 1 },
230
+ "issueId": { "type": "string", "minLength": 1 },
231
+ "title": { "type": "string", "minLength": 1 },
232
+ "status": { "enum": ["available", "manual", "blocked"] },
233
+ "fixKind": {
234
+ "enum": [
235
+ "package-json-script",
236
+ "file-create",
237
+ "file-append",
238
+ "file-copy",
239
+ "dependency-sync",
240
+ "command",
241
+ "manual"
242
+ ]
243
+ },
244
+ "risk": { "enum": ["safe", "guarded", "invasive"] },
245
+ "canAutoFix": { "type": "boolean" },
246
+ "canEditFiles": { "type": "boolean" },
247
+ "requiresApproval": { "type": "boolean" },
248
+ "requiresReview": { "type": "boolean" },
249
+ "files": { "type": "array", "items": { "type": "string" } },
250
+ "command": { "type": "string" },
251
+ "operation": { "$ref": "#/$defs/repairOperation" },
252
+ "verifyCommand": { "type": "string" },
253
+ "refreshCommands": { "type": "array", "items": { "type": "string" } },
254
+ "reason": { "type": "string" },
255
+ "limitations": { "type": "array", "items": { "type": "string" } }
256
+ },
257
+ "additionalProperties": true
258
+ },
259
+ "repairOperation": {
260
+ "type": "object",
261
+ "required": ["type", "path"],
262
+ "properties": {
263
+ "type": {
264
+ "enum": [
265
+ "file-create",
266
+ "file-append",
267
+ "file-copy",
268
+ "package-json-script",
269
+ "json-edit",
270
+ "env-key-add",
271
+ "makefile-target"
272
+ ]
273
+ },
274
+ "sourcePath": { "type": "string", "minLength": 1 },
275
+ "path": { "type": "string", "minLength": 1 },
276
+ "content": { "type": "string" },
277
+ "overwrite": { "type": "boolean" },
278
+ "lines": { "type": "array", "items": { "type": "string" } },
279
+ "ensureNewline": { "type": "boolean" },
280
+ "scriptName": { "type": "string" },
281
+ "scriptValue": { "type": "string" },
282
+ "edits": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "object",
286
+ "required": ["pointer", "value"],
287
+ "properties": {
288
+ "pointer": { "type": "string" },
289
+ "value": { "type": ["string", "number", "boolean", "null"] }
290
+ },
291
+ "additionalProperties": false
292
+ }
293
+ },
294
+ "keys": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "required": ["name", "value"],
299
+ "properties": {
300
+ "name": { "type": "string" },
301
+ "value": { "type": "string" },
302
+ "comment": { "type": "string" }
303
+ },
304
+ "additionalProperties": false
305
+ }
306
+ },
307
+ "target": { "type": "string" },
308
+ "command": { "type": "string" },
309
+ "phony": { "type": "boolean" }
310
+ },
311
+ "additionalProperties": false
312
+ }
55
313
  },
56
314
  "additionalProperties": true
57
315
  }
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "schemaVersion": "rapidkit-extension-cli-compatibility.v1",
3
3
  "cli": "rapidkit-npm",
4
- "minimumVerifiedCliVersion": "0.41.1",
4
+ "minimumVerifiedCliVersion": "0.41.3",
5
5
  "publishedContractSchemas": {
6
6
  "runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
7
7
  "cliLogEvent": "cli-log-event-v1",
8
8
  "freshnessMetadata": "rapidkit-freshness-metadata-v1",
9
+ "factFreshness": "rapidkit-fact-freshness-v1",
9
10
  "blockerResolution": "rapidkit-blocker-resolution-v1",
10
11
  "workspaceModel": "workspace-model.v1",
11
12
  "workspaceImpact": "workspace-impact.v1",
@@ -17,6 +18,8 @@
17
18
  "workspaceOperationalSkill": "workspace-operational-skill.v1",
18
19
  "workspaceSkillsIndex": "workspace-skills-index.v1",
19
20
  "workspaceExplain": "workspace-explain.v1",
20
- "agentActionOutcome": "agent-action-outcome.v1"
21
+ "agentActionOutcome": "agent-action-outcome.v1",
22
+ "doctorRemediationPlan": "doctor-remediation-plan-v2",
23
+ "doctorFixResult": "rapidkit-doctor-fix-result-v1"
21
24
  }
22
25
  }
@@ -76,7 +76,9 @@
76
76
  "verify",
77
77
  "context",
78
78
  "agent-sync",
79
- "explain"
79
+ "explain",
80
+ "why",
81
+ "trace"
80
82
  ],
81
83
  "moduleSuggestionFrameworks": [
82
84
  "fastapi",
@@ -4,11 +4,21 @@
4
4
  "title": "Doctor fix execution result",
5
5
  "type": "object",
6
6
  "additionalProperties": true,
7
- "required": ["schemaVersion", "appliedFixes", "remainingBlockers", "verifyRecommended"],
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "appliedFixes",
11
+ "remainingBlockers",
12
+ "verifyRecommended"
13
+ ],
8
14
  "properties": {
9
15
  "schemaVersion": {
10
16
  "const": "rapidkit-doctor-fix-result-v1"
11
17
  },
18
+ "generatedAt": {
19
+ "type": "string",
20
+ "format": "date-time"
21
+ },
12
22
  "appliedFixes": {
13
23
  "type": "array",
14
24
  "items": {
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/fact-freshness.v1.json",
4
+ "title": "RapidKit Fact Freshness Contract",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "kind",
9
+ "category",
10
+ "generatedAt",
11
+ "ttlSeconds",
12
+ "status",
13
+ "verifyBeforeUse",
14
+ "reason"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": "rapidkit-fact-freshness-v1"
19
+ },
20
+ "kind": {
21
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
22
+ },
23
+ "category": {
24
+ "enum": ["structure", "verification", "state"]
25
+ },
26
+ "generatedAt": {
27
+ "type": "string",
28
+ "format": "date-time"
29
+ },
30
+ "ttlSeconds": {
31
+ "type": ["integer", "null"],
32
+ "minimum": 0
33
+ },
34
+ "expiresAt": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ },
38
+ "status": {
39
+ "enum": ["fresh", "stale", "unknown"]
40
+ },
41
+ "verifyBeforeUse": {
42
+ "type": "boolean"
43
+ },
44
+ "sourceArtifact": {
45
+ "type": "string"
46
+ },
47
+ "sourcePath": {
48
+ "type": "string"
49
+ },
50
+ "inputsHash": {
51
+ "type": "string"
52
+ },
53
+ "reason": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "additionalProperties": false
58
+ }
@@ -65,6 +65,30 @@
65
65
  "studioMode": {
66
66
  "enum": ["FIX", "RUN_ONCE", "VERIFY_ONLY", "EXPLAIN"]
67
67
  },
68
+ "incidentSummary": {
69
+ "type": "object",
70
+ "required": ["title", "phase", "primaryAction", "verifyRequired", "auditStatus"],
71
+ "properties": {
72
+ "title": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "phase": {
77
+ "enum": ["detect", "diagnose", "fix", "verify", "audit"]
78
+ },
79
+ "primaryAction": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "verifyRequired": {
84
+ "type": "boolean"
85
+ },
86
+ "auditStatus": {
87
+ "enum": ["not-started", "pending", "saved", "failed", "unknown"]
88
+ }
89
+ },
90
+ "additionalProperties": false
91
+ },
68
92
  "resolutionHints": {
69
93
  "type": "array",
70
94
  "items": {
@@ -41,7 +41,15 @@
41
41
  },
42
42
  "scope": { "type": "object", "additionalProperties": true },
43
43
  "projects": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
44
- "safeCommands": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
44
+ "safeCommands": {
45
+ "type": "array",
46
+ "items": { "type": "object", "additionalProperties": true }
47
+ },
48
+ "factFreshness": { "$ref": "#/$defs/factFreshnessSummary" },
49
+ "facts": {
50
+ "type": "array",
51
+ "items": { "$ref": "#/$defs/workspaceFact" }
52
+ },
45
53
  "validation": {
46
54
  "type": "object",
47
55
  "required": ["status", "errors", "warnings"],
@@ -55,5 +63,80 @@
55
63
  "additionalProperties": true
56
64
  }
57
65
  },
66
+ "$defs": {
67
+ "factFreshness": {
68
+ "type": "object",
69
+ "required": [
70
+ "schemaVersion",
71
+ "kind",
72
+ "category",
73
+ "generatedAt",
74
+ "ttlSeconds",
75
+ "status",
76
+ "verifyBeforeUse",
77
+ "reason"
78
+ ],
79
+ "properties": {
80
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
81
+ "kind": {
82
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
83
+ },
84
+ "category": { "enum": ["structure", "verification", "state"] },
85
+ "generatedAt": { "type": "string", "format": "date-time" },
86
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
87
+ "expiresAt": { "type": "string", "format": "date-time" },
88
+ "status": { "enum": ["fresh", "stale", "unknown"] },
89
+ "verifyBeforeUse": { "type": "boolean" },
90
+ "sourceArtifact": { "type": "string" },
91
+ "sourcePath": { "type": "string" },
92
+ "inputsHash": { "type": "string" },
93
+ "reason": { "type": "string" }
94
+ },
95
+ "additionalProperties": false
96
+ },
97
+ "workspaceFact": {
98
+ "type": "object",
99
+ "required": ["id", "label", "scope", "value", "freshness"],
100
+ "properties": {
101
+ "id": { "type": "string" },
102
+ "label": { "type": "string" },
103
+ "scope": {
104
+ "enum": ["workspace", "project", "evidence", "policy", "contract", "command", "graph"]
105
+ },
106
+ "project": { "type": "string" },
107
+ "value": true,
108
+ "freshness": { "$ref": "#/$defs/factFreshness" }
109
+ },
110
+ "additionalProperties": false
111
+ },
112
+ "factFreshnessSummary": {
113
+ "type": "object",
114
+ "required": [
115
+ "schemaVersion",
116
+ "generatedAt",
117
+ "status",
118
+ "totalFacts",
119
+ "staleFacts",
120
+ "unknownFacts",
121
+ "liveFacts",
122
+ "verifyBeforeUseFacts",
123
+ "byKind",
124
+ "byCategory"
125
+ ],
126
+ "properties": {
127
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
128
+ "generatedAt": { "type": "string", "format": "date-time" },
129
+ "status": { "enum": ["fresh", "stale", "unknown"] },
130
+ "totalFacts": { "type": "integer", "minimum": 0 },
131
+ "staleFacts": { "type": "integer", "minimum": 0 },
132
+ "unknownFacts": { "type": "integer", "minimum": 0 },
133
+ "liveFacts": { "type": "integer", "minimum": 0 },
134
+ "verifyBeforeUseFacts": { "type": "integer", "minimum": 0 },
135
+ "byKind": { "type": "object", "additionalProperties": { "type": "integer" } },
136
+ "byCategory": { "type": "object", "additionalProperties": { "type": "integer" } }
137
+ },
138
+ "additionalProperties": false
139
+ }
140
+ },
58
141
  "additionalProperties": true
59
142
  }
@@ -14,7 +14,7 @@
14
14
  "required": ["generatedAt"],
15
15
  "properties": {
16
16
  "generatedAt": { "type": "string", "format": "date-time" },
17
- "kind": { "enum": ["verify", "agent-action"] },
17
+ "kind": { "enum": ["verify", "agent-action", "doctor-fix"] },
18
18
  "verdict": { "enum": ["ready", "needs-attention", "blocked"] },
19
19
  "risk": { "type": "string" },
20
20
  "affectedProjects": { "type": "integer", "minimum": 0 },
@@ -26,7 +26,11 @@
26
26
  "scope": { "type": "string" },
27
27
  "summary": { "type": "string" },
28
28
  "outcome": { "enum": ["ok", "failed"] },
29
- "evidenceSha256": { "type": "string" }
29
+ "evidenceSha256": { "type": "string" },
30
+ "applied": { "type": "integer", "minimum": 0 },
31
+ "failed": { "type": "integer", "minimum": 0 },
32
+ "skipped": { "type": "integer", "minimum": 0 },
33
+ "remainingBlockers": { "type": "integer", "minimum": 0 }
30
34
  },
31
35
  "additionalProperties": true
32
36
  }
@@ -36,6 +36,11 @@
36
36
  },
37
37
  "identity": { "type": "object", "additionalProperties": true },
38
38
  "summary": { "type": "object", "additionalProperties": true },
39
+ "factFreshness": { "$ref": "#/$defs/factFreshnessSummary" },
40
+ "facts": {
41
+ "type": "array",
42
+ "items": { "$ref": "#/$defs/workspaceFact" }
43
+ },
39
44
  "projects": {
40
45
  "type": "array",
41
46
  "items": { "type": "object", "additionalProperties": true }
@@ -51,5 +56,80 @@
51
56
  "policies": { "type": "object", "additionalProperties": true },
52
57
  "validation": { "type": "object", "additionalProperties": true }
53
58
  },
59
+ "$defs": {
60
+ "factFreshness": {
61
+ "type": "object",
62
+ "required": [
63
+ "schemaVersion",
64
+ "kind",
65
+ "category",
66
+ "generatedAt",
67
+ "ttlSeconds",
68
+ "status",
69
+ "verifyBeforeUse",
70
+ "reason"
71
+ ],
72
+ "properties": {
73
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
74
+ "kind": {
75
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
76
+ },
77
+ "category": { "enum": ["structure", "verification", "state"] },
78
+ "generatedAt": { "type": "string", "format": "date-time" },
79
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
80
+ "expiresAt": { "type": "string", "format": "date-time" },
81
+ "status": { "enum": ["fresh", "stale", "unknown"] },
82
+ "verifyBeforeUse": { "type": "boolean" },
83
+ "sourceArtifact": { "type": "string" },
84
+ "sourcePath": { "type": "string" },
85
+ "inputsHash": { "type": "string" },
86
+ "reason": { "type": "string" }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "workspaceFact": {
91
+ "type": "object",
92
+ "required": ["id", "label", "scope", "value", "freshness"],
93
+ "properties": {
94
+ "id": { "type": "string" },
95
+ "label": { "type": "string" },
96
+ "scope": {
97
+ "enum": ["workspace", "project", "evidence", "policy", "contract", "command", "graph"]
98
+ },
99
+ "project": { "type": "string" },
100
+ "value": true,
101
+ "freshness": { "$ref": "#/$defs/factFreshness" }
102
+ },
103
+ "additionalProperties": false
104
+ },
105
+ "factFreshnessSummary": {
106
+ "type": "object",
107
+ "required": [
108
+ "schemaVersion",
109
+ "generatedAt",
110
+ "status",
111
+ "totalFacts",
112
+ "staleFacts",
113
+ "unknownFacts",
114
+ "liveFacts",
115
+ "verifyBeforeUseFacts",
116
+ "byKind",
117
+ "byCategory"
118
+ ],
119
+ "properties": {
120
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
121
+ "generatedAt": { "type": "string", "format": "date-time" },
122
+ "status": { "enum": ["fresh", "stale", "unknown"] },
123
+ "totalFacts": { "type": "integer", "minimum": 0 },
124
+ "staleFacts": { "type": "integer", "minimum": 0 },
125
+ "unknownFacts": { "type": "integer", "minimum": 0 },
126
+ "liveFacts": { "type": "integer", "minimum": 0 },
127
+ "verifyBeforeUseFacts": { "type": "integer", "minimum": 0 },
128
+ "byKind": { "type": "object", "additionalProperties": { "type": "integer" } },
129
+ "byCategory": { "type": "object", "additionalProperties": { "type": "integer" } }
130
+ },
131
+ "additionalProperties": false
132
+ }
133
+ },
54
134
  "additionalProperties": true
55
135
  }
@@ -0,0 +1 @@
1
+ export{b as printAnalyzeReport,a as runAnalyze}from'./chunk-DKNVDNT4.js';
@@ -0,0 +1 @@
1
+ export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-3CYEVV6H.js';