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
@@ -0,0 +1,496 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://rapidkit.dev/contracts/doctor-remediation-plan.v1.json",
4
+ "title": "RapidKit Doctor Remediation Plan",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "policyProfile",
11
+ "fixableProjects",
12
+ "totalSteps",
13
+ "executableSteps",
14
+ "risk",
15
+ "steps"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": {
19
+ "const": "doctor-remediation-plan-v2"
20
+ },
21
+ "generatedAt": {
22
+ "type": "string"
23
+ },
24
+ "policyProfile": {
25
+ "enum": ["local", "ci", "release", "enterprise-strict"]
26
+ },
27
+ "fixableProjects": {
28
+ "type": "integer",
29
+ "minimum": 0
30
+ },
31
+ "totalSteps": {
32
+ "type": "integer",
33
+ "minimum": 0
34
+ },
35
+ "executableSteps": {
36
+ "type": "integer",
37
+ "minimum": 0
38
+ },
39
+ "risk": {
40
+ "$ref": "#/$defs/riskSummary"
41
+ },
42
+ "steps": {
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "#/$defs/step"
46
+ }
47
+ }
48
+ },
49
+ "$defs": {
50
+ "riskSummary": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["safe", "guarded", "invasive"],
54
+ "properties": {
55
+ "safe": {
56
+ "type": "integer",
57
+ "minimum": 0
58
+ },
59
+ "guarded": {
60
+ "type": "integer",
61
+ "minimum": 0
62
+ },
63
+ "invasive": {
64
+ "type": "integer",
65
+ "minimum": 0
66
+ }
67
+ }
68
+ },
69
+ "preview": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": ["title", "summary", "changes"],
73
+ "properties": {
74
+ "title": {
75
+ "type": "string"
76
+ },
77
+ "summary": {
78
+ "type": "string"
79
+ },
80
+ "changes": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "rollback": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": ["available", "strategy"],
92
+ "properties": {
93
+ "available": {
94
+ "type": "boolean"
95
+ },
96
+ "strategy": {
97
+ "enum": ["snapshot", "idempotent", "manual", "none"]
98
+ }
99
+ }
100
+ },
101
+ "diffPreview": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": ["available", "format", "summary", "hunks"],
105
+ "properties": {
106
+ "available": {
107
+ "type": "boolean"
108
+ },
109
+ "format": {
110
+ "enum": ["unified", "summary", "none"]
111
+ },
112
+ "summary": {
113
+ "type": "string"
114
+ },
115
+ "hunks": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "string"
119
+ }
120
+ },
121
+ "limitations": {
122
+ "type": "array",
123
+ "items": {
124
+ "type": "string"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ "studioStatus": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": ["state", "reason"],
133
+ "properties": {
134
+ "state": {
135
+ "enum": ["ready", "blocked", "review-required", "guidance-only"]
136
+ },
137
+ "reason": {
138
+ "type": "string"
139
+ }
140
+ }
141
+ },
142
+ "repairIntent": {
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "required": ["mode", "primaryAction", "requiresApproval"],
146
+ "properties": {
147
+ "mode": {
148
+ "enum": [
149
+ "none",
150
+ "run-command",
151
+ "edit-file",
152
+ "review-required",
153
+ "verify-before-fix",
154
+ "refresh-evidence",
155
+ "manual-guidance"
156
+ ]
157
+ },
158
+ "primaryAction": {
159
+ "type": "string"
160
+ },
161
+ "requiresApproval": {
162
+ "type": "boolean"
163
+ },
164
+ "confidence": {
165
+ "enum": ["high", "medium", "low"]
166
+ },
167
+ "notes": {
168
+ "type": "array",
169
+ "items": {
170
+ "type": "string"
171
+ }
172
+ }
173
+ }
174
+ },
175
+ "repairOperation": {
176
+ "oneOf": [
177
+ {
178
+ "type": "object",
179
+ "additionalProperties": false,
180
+ "required": ["type", "path", "content", "overwrite"],
181
+ "properties": {
182
+ "type": {
183
+ "const": "file-create"
184
+ },
185
+ "path": {
186
+ "type": "string"
187
+ },
188
+ "content": {
189
+ "type": "string"
190
+ },
191
+ "overwrite": {
192
+ "const": false
193
+ }
194
+ }
195
+ },
196
+ {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": ["type", "path", "lines", "ensureNewline"],
200
+ "properties": {
201
+ "type": {
202
+ "const": "file-append"
203
+ },
204
+ "path": {
205
+ "type": "string"
206
+ },
207
+ "lines": {
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string"
211
+ }
212
+ },
213
+ "ensureNewline": {
214
+ "type": "boolean"
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "type": "object",
220
+ "additionalProperties": false,
221
+ "required": ["type", "sourcePath", "path", "overwrite"],
222
+ "properties": {
223
+ "type": {
224
+ "const": "file-copy"
225
+ },
226
+ "sourcePath": {
227
+ "type": "string"
228
+ },
229
+ "path": {
230
+ "type": "string"
231
+ },
232
+ "overwrite": {
233
+ "const": false
234
+ }
235
+ }
236
+ },
237
+ {
238
+ "type": "object",
239
+ "additionalProperties": false,
240
+ "required": ["type", "path", "scriptName", "scriptValue"],
241
+ "properties": {
242
+ "type": {
243
+ "const": "package-json-script"
244
+ },
245
+ "path": {
246
+ "type": "string"
247
+ },
248
+ "scriptName": {
249
+ "type": "string"
250
+ },
251
+ "scriptValue": {
252
+ "type": "string"
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "required": ["type", "path", "edits"],
260
+ "properties": {
261
+ "type": {
262
+ "const": "json-edit"
263
+ },
264
+ "path": {
265
+ "type": "string"
266
+ },
267
+ "edits": {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "required": ["pointer", "value"],
273
+ "properties": {
274
+ "pointer": {
275
+ "type": "string"
276
+ },
277
+ "value": {
278
+ "type": ["string", "number", "boolean", "null"]
279
+ }
280
+ }
281
+ }
282
+ }
283
+ }
284
+ },
285
+ {
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": ["type", "path", "keys"],
289
+ "properties": {
290
+ "type": {
291
+ "const": "env-key-add"
292
+ },
293
+ "path": {
294
+ "type": "string"
295
+ },
296
+ "keys": {
297
+ "type": "array",
298
+ "items": {
299
+ "type": "object",
300
+ "additionalProperties": false,
301
+ "required": ["name", "value"],
302
+ "properties": {
303
+ "name": {
304
+ "type": "string"
305
+ },
306
+ "value": {
307
+ "type": "string"
308
+ },
309
+ "comment": {
310
+ "type": "string"
311
+ }
312
+ }
313
+ }
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "type": "object",
319
+ "additionalProperties": false,
320
+ "required": ["type", "path", "target", "command", "phony"],
321
+ "properties": {
322
+ "type": {
323
+ "const": "makefile-target"
324
+ },
325
+ "path": {
326
+ "type": "string"
327
+ },
328
+ "target": {
329
+ "type": "string"
330
+ },
331
+ "command": {
332
+ "type": "string"
333
+ },
334
+ "phony": {
335
+ "type": "boolean"
336
+ }
337
+ }
338
+ }
339
+ ]
340
+ },
341
+ "step": {
342
+ "type": "object",
343
+ "additionalProperties": false,
344
+ "required": [
345
+ "id",
346
+ "phase",
347
+ "order",
348
+ "dependsOn",
349
+ "projectName",
350
+ "projectPath",
351
+ "originalCommand",
352
+ "kind",
353
+ "risk",
354
+ "executable",
355
+ "files",
356
+ "preview",
357
+ "diffPreview",
358
+ "refreshCommands",
359
+ "rollback",
360
+ "studioStatus",
361
+ "executableInCurrentEnvironment"
362
+ ],
363
+ "properties": {
364
+ "id": {
365
+ "type": "string"
366
+ },
367
+ "phase": {
368
+ "enum": [
369
+ "dependency-baseline",
370
+ "local-environment",
371
+ "source-hygiene",
372
+ "command-contract",
373
+ "runtime-governance",
374
+ "manual-review",
375
+ "generic-execution"
376
+ ]
377
+ },
378
+ "order": {
379
+ "type": "integer",
380
+ "minimum": 1
381
+ },
382
+ "dependsOn": {
383
+ "type": "array",
384
+ "items": {
385
+ "type": "string"
386
+ }
387
+ },
388
+ "projectName": {
389
+ "type": "string"
390
+ },
391
+ "projectPath": {
392
+ "type": "string"
393
+ },
394
+ "originalCommand": {
395
+ "type": "string"
396
+ },
397
+ "kind": {
398
+ "enum": [
399
+ "env-copy",
400
+ "package-json-script",
401
+ "file-create",
402
+ "file-append",
403
+ "json-edit",
404
+ "env-key-add",
405
+ "makefile-target",
406
+ "rapidkit-init",
407
+ "go-mod-tidy",
408
+ "dependency-sync",
409
+ "manual-url",
410
+ "shell"
411
+ ]
412
+ },
413
+ "risk": {
414
+ "enum": ["safe", "guarded", "invasive"]
415
+ },
416
+ "executable": {
417
+ "type": "boolean"
418
+ },
419
+ "reason": {
420
+ "type": "string"
421
+ },
422
+ "issueId": {
423
+ "type": "string"
424
+ },
425
+ "issueClass": {
426
+ "enum": [
427
+ "dependency",
428
+ "environment",
429
+ "security",
430
+ "test",
431
+ "quality",
432
+ "container",
433
+ "deployment",
434
+ "runtime",
435
+ "workspace-contract",
436
+ "source-tree",
437
+ "framework",
438
+ "configuration",
439
+ "custom",
440
+ "unknown"
441
+ ]
442
+ },
443
+ "operationalImpact": {
444
+ "enum": [
445
+ "none",
446
+ "developer-friction",
447
+ "ci-risk",
448
+ "release-risk",
449
+ "security-risk",
450
+ "runtime-risk",
451
+ "customer-risk"
452
+ ]
453
+ },
454
+ "repairIntent": {
455
+ "$ref": "#/$defs/repairIntent"
456
+ },
457
+ "files": {
458
+ "type": "array",
459
+ "items": {
460
+ "type": "string"
461
+ }
462
+ },
463
+ "operation": {
464
+ "$ref": "#/$defs/repairOperation"
465
+ },
466
+ "preview": {
467
+ "$ref": "#/$defs/preview"
468
+ },
469
+ "diffPreview": {
470
+ "$ref": "#/$defs/diffPreview"
471
+ },
472
+ "verifyCommand": {
473
+ "type": "string"
474
+ },
475
+ "refreshCommands": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "string"
479
+ }
480
+ },
481
+ "rollback": {
482
+ "$ref": "#/$defs/rollback"
483
+ },
484
+ "studioStatus": {
485
+ "$ref": "#/$defs/studioStatus"
486
+ },
487
+ "executableInCurrentEnvironment": {
488
+ "type": "boolean"
489
+ },
490
+ "blockedReason": {
491
+ "type": "string"
492
+ }
493
+ }
494
+ }
495
+ }
496
+ }