workspai 0.53.0 → 0.54.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.
Files changed (32) hide show
  1. package/contracts/artifact-remediation-plan.v1.json +22 -3
  2. package/contracts/doctor-project-evidence.v1.json +21 -2
  3. package/contracts/doctor-remediation-plan.v1.json +22 -3
  4. package/contracts/doctor-workspace-evidence.v1.json +21 -2
  5. package/contracts/extension-cli-compatibility.v1.json +1 -1
  6. package/contracts/workspace-intelligence/doctor-dependency-repair-transaction.v1.json +52 -13
  7. package/contracts/workspace-intelligence/workspace-repair-transaction.v1.json +56 -6
  8. package/contracts/workspace-repair-capabilities.v1.json +48 -0
  9. package/dist/{artifact-remediation-plan-CJSPCMWA.js → artifact-remediation-plan-A2PRCUNA.js} +1 -1
  10. package/dist/autopilot-release-63XHNGR6.js +1 -0
  11. package/dist/{chunk-T6JI7GYZ.js → chunk-4HTSZGEU.js} +50 -50
  12. package/dist/{chunk-HOVJUP7K.js → chunk-BPACED27.js} +1 -1
  13. package/dist/{chunk-E5YYVFM2.js → chunk-I5CGTCP5.js} +1 -1
  14. package/dist/chunk-IQQWQ3II.js +3 -0
  15. package/dist/chunk-UFOCUHG3.js +1 -0
  16. package/dist/{chunk-27AXFTKW.js → chunk-ZLYEYHMH.js} +1 -1
  17. package/dist/{doctor-KNIYGDM7.js → doctor-HJ3O7SAO.js} +1 -1
  18. package/dist/index.js +7 -7
  19. package/dist/{pipeline-PVCLAQDI.js → pipeline-TDQK5QYQ.js} +1 -1
  20. package/dist/{verified-goal-MCSNMA3P.js → verified-goal-S2PEBJUV.js} +1 -1
  21. package/dist/{workspace-intelligence-runner-JNCQLUH7.js → workspace-intelligence-runner-EQFLRVRL.js} +1 -1
  22. package/dist/workspace-repair-engine-OZXOXVVV.js +3 -0
  23. package/dist/workspace-run-VPXRRHDK.js +1 -0
  24. package/docs/doctor-command.md +6 -0
  25. package/docs/workspace-repair-engine.md +17 -8
  26. package/package.json +1 -1
  27. package/dist/autopilot-release-LZWNQQLY.js +0 -1
  28. package/dist/chunk-SUV7Y2FH.js +0 -3
  29. package/dist/chunk-ZTKIBREF.js +0 -1
  30. package/dist/workspace-repair-engine-SRWECKZO.js +0 -3
  31. package/dist/workspace-run-3U77TMKX.js +0 -1
  32. /package/dist/{chunk-USMLRNZ7.js → chunk-3LVJBH7V.js} +0 -0
@@ -131,10 +131,12 @@
131
131
  "schemaVersion": {
132
132
  "const": "workspai.doctor-dependency-repair-transaction.v1"
133
133
  },
134
- "kind": { "const": "dependency-security" },
134
+ "kind": { "enum": ["dependency-security", "dependency-materialization"] },
135
135
  "state": { "const": "planned" },
136
136
  "projectPath": { "type": "string", "minLength": 1 },
137
137
  "ecosystem": { "type": "string", "minLength": 1 },
138
+ "sourceMutationRequired": { "type": "boolean" },
139
+ "observableState": { "enum": ["runtime-dependency-tree"] },
138
140
  "requiredStages": {
139
141
  "type": "array",
140
142
  "items": { "enum": ["reconcile", "audit", "test", "build"] },
@@ -145,7 +147,6 @@
145
147
  "additionalProperties": false,
146
148
  "required": [
147
149
  "manifestLockConsistent",
148
- "auditClean",
149
150
  "declaredTestsPass",
150
151
  "declaredBuildPass",
151
152
  "canonicalVerificationRequired"
@@ -153,12 +154,30 @@
153
154
  "properties": {
154
155
  "manifestLockConsistent": { "const": true },
155
156
  "auditClean": { "const": true },
157
+ "installedTreePresent": { "const": true },
156
158
  "declaredTestsPass": { "const": true },
157
159
  "declaredBuildPass": { "const": true },
158
160
  "canonicalVerificationRequired": { "const": true }
159
161
  }
160
162
  }
161
- }
163
+ },
164
+ "allOf": [
165
+ {
166
+ "if": { "properties": { "kind": { "const": "dependency-security" } } },
167
+ "then": { "properties": { "completion": { "type": "object", "properties": { "auditClean": { "const": true } }, "required": ["auditClean"] } } }
168
+ },
169
+ {
170
+ "if": { "properties": { "kind": { "const": "dependency-materialization" } } },
171
+ "then": {
172
+ "required": ["sourceMutationRequired", "observableState"],
173
+ "properties": {
174
+ "sourceMutationRequired": { "const": false },
175
+ "observableState": { "const": "runtime-dependency-tree" },
176
+ "completion": { "type": "object", "properties": { "installedTreePresent": { "const": true } }, "required": ["installedTreePresent"] }
177
+ }
178
+ }
179
+ }
180
+ ]
162
181
  },
163
182
  "action": {
164
183
  "type": "object",
@@ -497,10 +497,12 @@
497
497
  "schemaVersion": {
498
498
  "const": "workspai.doctor-dependency-repair-transaction.v1"
499
499
  },
500
- "kind": { "const": "dependency-security" },
500
+ "kind": { "enum": ["dependency-security", "dependency-materialization"] },
501
501
  "state": { "const": "planned" },
502
502
  "projectPath": { "type": "string", "minLength": 1 },
503
503
  "ecosystem": { "type": "string", "minLength": 1 },
504
+ "sourceMutationRequired": { "type": "boolean" },
505
+ "observableState": { "enum": ["runtime-dependency-tree"] },
504
506
  "requiredStages": {
505
507
  "type": "array",
506
508
  "items": { "enum": ["reconcile", "audit", "test", "build"] },
@@ -510,7 +512,6 @@
510
512
  "type": "object",
511
513
  "required": [
512
514
  "manifestLockConsistent",
513
- "auditClean",
514
515
  "declaredTestsPass",
515
516
  "declaredBuildPass",
516
517
  "canonicalVerificationRequired"
@@ -518,6 +519,7 @@
518
519
  "properties": {
519
520
  "manifestLockConsistent": { "const": true },
520
521
  "auditClean": { "const": true },
522
+ "installedTreePresent": { "const": true },
521
523
  "declaredTestsPass": { "const": true },
522
524
  "declaredBuildPass": { "const": true },
523
525
  "canonicalVerificationRequired": { "const": true }
@@ -525,6 +527,23 @@
525
527
  "additionalProperties": false
526
528
  }
527
529
  },
530
+ "allOf": [
531
+ {
532
+ "if": { "properties": { "kind": { "const": "dependency-security" } } },
533
+ "then": { "properties": { "completion": { "type": "object", "properties": { "auditClean": { "const": true } }, "required": ["auditClean"] } } }
534
+ },
535
+ {
536
+ "if": { "properties": { "kind": { "const": "dependency-materialization" } } },
537
+ "then": {
538
+ "required": ["sourceMutationRequired", "observableState"],
539
+ "properties": {
540
+ "sourceMutationRequired": { "const": false },
541
+ "observableState": { "const": "runtime-dependency-tree" },
542
+ "completion": { "type": "object", "properties": { "installedTreePresent": { "const": true } }, "required": ["installedTreePresent"] }
543
+ }
544
+ }
545
+ }
546
+ ],
528
547
  "additionalProperties": false
529
548
  },
530
549
  "commandInvocation": {
@@ -186,10 +186,12 @@
186
186
  "schemaVersion": {
187
187
  "const": "workspai.doctor-dependency-repair-transaction.v1"
188
188
  },
189
- "kind": { "const": "dependency-security" },
189
+ "kind": { "enum": ["dependency-security", "dependency-materialization"] },
190
190
  "state": { "const": "planned" },
191
191
  "projectPath": { "type": "string", "minLength": 1 },
192
192
  "ecosystem": { "type": "string", "minLength": 1 },
193
+ "sourceMutationRequired": { "type": "boolean" },
194
+ "observableState": { "enum": ["runtime-dependency-tree"] },
193
195
  "requiredStages": {
194
196
  "type": "array",
195
197
  "items": { "enum": ["reconcile", "audit", "test", "build"] },
@@ -200,7 +202,6 @@
200
202
  "additionalProperties": false,
201
203
  "required": [
202
204
  "manifestLockConsistent",
203
- "auditClean",
204
205
  "declaredTestsPass",
205
206
  "declaredBuildPass",
206
207
  "canonicalVerificationRequired"
@@ -208,12 +209,30 @@
208
209
  "properties": {
209
210
  "manifestLockConsistent": { "const": true },
210
211
  "auditClean": { "const": true },
212
+ "installedTreePresent": { "const": true },
211
213
  "declaredTestsPass": { "const": true },
212
214
  "declaredBuildPass": { "const": true },
213
215
  "canonicalVerificationRequired": { "const": true }
214
216
  }
215
217
  }
216
- }
218
+ },
219
+ "allOf": [
220
+ {
221
+ "if": { "properties": { "kind": { "const": "dependency-security" } } },
222
+ "then": { "properties": { "completion": { "type": "object", "properties": { "auditClean": { "const": true } }, "required": ["auditClean"] } } }
223
+ },
224
+ {
225
+ "if": { "properties": { "kind": { "const": "dependency-materialization" } } },
226
+ "then": {
227
+ "required": ["sourceMutationRequired", "observableState"],
228
+ "properties": {
229
+ "sourceMutationRequired": { "const": false },
230
+ "observableState": { "const": "runtime-dependency-tree" },
231
+ "completion": { "type": "object", "properties": { "installedTreePresent": { "const": true } }, "required": ["installedTreePresent"] }
232
+ }
233
+ }
234
+ }
235
+ ]
217
236
  },
218
237
  "repairIntent": {
219
238
  "type": "object",
@@ -507,10 +507,12 @@
507
507
  "schemaVersion": {
508
508
  "const": "workspai.doctor-dependency-repair-transaction.v1"
509
509
  },
510
- "kind": { "const": "dependency-security" },
510
+ "kind": { "enum": ["dependency-security", "dependency-materialization"] },
511
511
  "state": { "const": "planned" },
512
512
  "projectPath": { "type": "string", "minLength": 1 },
513
513
  "ecosystem": { "type": "string", "minLength": 1 },
514
+ "sourceMutationRequired": { "type": "boolean" },
515
+ "observableState": { "enum": ["runtime-dependency-tree"] },
514
516
  "requiredStages": {
515
517
  "type": "array",
516
518
  "items": { "enum": ["reconcile", "audit", "test", "build"] },
@@ -520,7 +522,6 @@
520
522
  "type": "object",
521
523
  "required": [
522
524
  "manifestLockConsistent",
523
- "auditClean",
524
525
  "declaredTestsPass",
525
526
  "declaredBuildPass",
526
527
  "canonicalVerificationRequired"
@@ -528,6 +529,7 @@
528
529
  "properties": {
529
530
  "manifestLockConsistent": { "const": true },
530
531
  "auditClean": { "const": true },
532
+ "installedTreePresent": { "const": true },
531
533
  "declaredTestsPass": { "const": true },
532
534
  "declaredBuildPass": { "const": true },
533
535
  "canonicalVerificationRequired": { "const": true }
@@ -535,6 +537,23 @@
535
537
  "additionalProperties": false
536
538
  }
537
539
  },
540
+ "allOf": [
541
+ {
542
+ "if": { "properties": { "kind": { "const": "dependency-security" } } },
543
+ "then": { "properties": { "completion": { "type": "object", "properties": { "auditClean": { "const": true } }, "required": ["auditClean"] } } }
544
+ },
545
+ {
546
+ "if": { "properties": { "kind": { "const": "dependency-materialization" } } },
547
+ "then": {
548
+ "required": ["sourceMutationRequired", "observableState"],
549
+ "properties": {
550
+ "sourceMutationRequired": { "const": false },
551
+ "observableState": { "const": "runtime-dependency-tree" },
552
+ "completion": { "type": "object", "properties": { "installedTreePresent": { "const": true } }, "required": ["installedTreePresent"] }
553
+ }
554
+ }
555
+ }
556
+ ],
538
557
  "additionalProperties": false
539
558
  },
540
559
  "commandInvocation": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "rapidkit-extension-cli-compatibility.v1",
3
3
  "cli": "workspai",
4
- "minimumVerifiedCliVersion": "0.53.0",
4
+ "minimumVerifiedCliVersion": "0.54.0",
5
5
  "publishedContractSchemas": {
6
6
  "workspaceContract": 1,
7
7
  "runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://workspai.dev/contracts/workspace-intelligence/doctor-dependency-repair-transaction.v1.json",
4
4
  "title": "Workspai Doctor Dependency Repair Transaction v1",
5
- "description": "The portable closure contract a consumer must satisfy after changing a dependency manifest or lockfile.",
5
+ "description": "The portable closure contract for dependency security changes and runtime dependency materialization.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
@@ -19,7 +19,7 @@
19
19
  "const": "workspai.doctor-dependency-repair-transaction.v1"
20
20
  },
21
21
  "kind": {
22
- "const": "dependency-security"
22
+ "enum": ["dependency-security", "dependency-materialization"]
23
23
  },
24
24
  "state": {
25
25
  "const": "planned"
@@ -32,24 +32,20 @@
32
32
  "type": "string",
33
33
  "minLength": 1
34
34
  },
35
+ "sourceMutationRequired": { "type": "boolean" },
36
+ "observableState": {
37
+ "enum": ["runtime-dependency-tree"]
38
+ },
35
39
  "requiredStages": {
36
40
  "type": "array",
37
- "prefixItems": [
38
- { "const": "reconcile" },
39
- { "const": "audit" },
40
- { "const": "test" },
41
- { "const": "build" }
42
- ],
43
- "items": false,
44
- "minItems": 4,
45
- "maxItems": 4
41
+ "items": { "enum": ["reconcile", "audit", "test", "build"] },
42
+ "uniqueItems": true
46
43
  },
47
44
  "completion": {
48
45
  "type": "object",
49
46
  "additionalProperties": false,
50
47
  "required": [
51
48
  "manifestLockConsistent",
52
- "auditClean",
53
49
  "declaredTestsPass",
54
50
  "declaredBuildPass",
55
51
  "canonicalVerificationRequired"
@@ -57,10 +53,53 @@
57
53
  "properties": {
58
54
  "manifestLockConsistent": { "const": true },
59
55
  "auditClean": { "const": true },
56
+ "installedTreePresent": { "const": true },
60
57
  "declaredTestsPass": { "const": true },
61
58
  "declaredBuildPass": { "const": true },
62
59
  "canonicalVerificationRequired": { "const": true }
63
60
  }
64
61
  }
65
- }
62
+ },
63
+ "allOf": [
64
+ {
65
+ "if": { "properties": { "kind": { "const": "dependency-security" } } },
66
+ "then": {
67
+ "properties": {
68
+ "requiredStages": {
69
+ "prefixItems": [
70
+ { "const": "reconcile" },
71
+ { "const": "audit" },
72
+ { "const": "test" },
73
+ { "const": "build" }
74
+ ],
75
+ "items": false,
76
+ "minItems": 4,
77
+ "maxItems": 4
78
+ },
79
+ "completion": { "type": "object", "properties": { "auditClean": { "const": true } }, "required": ["auditClean"] }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "if": { "properties": { "kind": { "const": "dependency-materialization" } } },
85
+ "then": {
86
+ "required": ["sourceMutationRequired", "observableState"],
87
+ "properties": {
88
+ "sourceMutationRequired": { "const": false },
89
+ "observableState": { "const": "runtime-dependency-tree" },
90
+ "requiredStages": {
91
+ "prefixItems": [
92
+ { "const": "reconcile" },
93
+ { "const": "test" },
94
+ { "const": "build" }
95
+ ],
96
+ "items": false,
97
+ "minItems": 3,
98
+ "maxItems": 3
99
+ },
100
+ "completion": { "type": "object", "properties": { "installedTreePresent": { "const": true } }, "required": ["installedTreePresent"] }
101
+ }
102
+ }
103
+ }
104
+ ]
66
105
  }
@@ -129,7 +129,17 @@
129
129
  "adapterEvaluation": {
130
130
  "type": "object",
131
131
  "additionalProperties": false,
132
- "required": ["adapterId", "ecosystem", "projectPath", "manifests", "support", "status", "requiredExecutables", "missingExecutables", "message"],
132
+ "required": [
133
+ "adapterId",
134
+ "ecosystem",
135
+ "projectPath",
136
+ "manifests",
137
+ "support",
138
+ "status",
139
+ "requiredExecutables",
140
+ "missingExecutables",
141
+ "message"
142
+ ],
133
143
  "properties": {
134
144
  "adapterId": { "type": "string", "minLength": 1 },
135
145
  "ecosystem": { "type": "string", "minLength": 1 },
@@ -137,8 +147,16 @@
137
147
  "manifests": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
138
148
  "support": { "enum": ["full", "conditional", "unsupported"] },
139
149
  "status": { "enum": ["ready", "partial", "unsupported"] },
140
- "requiredExecutables": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
141
- "missingExecutables": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
150
+ "requiredExecutables": {
151
+ "type": "array",
152
+ "items": { "type": "string" },
153
+ "uniqueItems": true
154
+ },
155
+ "missingExecutables": {
156
+ "type": "array",
157
+ "items": { "type": "string" },
158
+ "uniqueItems": true
159
+ },
142
160
  "message": { "type": "string" }
143
161
  }
144
162
  },
@@ -195,7 +213,9 @@
195
213
  "properties": {
196
214
  "id": { "type": "string", "minLength": 1 },
197
215
  "kind": { "enum": ["repair", "reconcile", "audit", "test", "build", "verify", "rollback"] },
198
- "status": { "enum": ["pending", "running", "passed", "failed", "blocked", "skipped", "cancelled"] },
216
+ "status": {
217
+ "enum": ["pending", "running", "passed", "failed", "blocked", "skipped", "cancelled"]
218
+ },
199
219
  "required": { "type": "boolean" },
200
220
  "risk": { "enum": ["safe", "guarded", "invasive"] },
201
221
  "summary": { "type": "string" },
@@ -214,6 +234,13 @@
214
234
  "required": ["status", "artifact", "exitCode", "summary"],
215
235
  "properties": {
216
236
  "status": { "enum": ["passed", "failed", "not-run"] },
237
+ "targetStatus": { "enum": ["passed", "failed", "unknown"] },
238
+ "workspaceStatus": { "enum": ["passed", "blocked", "failed"] },
239
+ "remainingActionIds": {
240
+ "type": "array",
241
+ "uniqueItems": true,
242
+ "items": { "type": "string", "minLength": 1 }
243
+ },
217
244
  "artifact": { "const": ".workspai/reports/workspace-intelligence-run-last-run.json" },
218
245
  "exitCode": { "type": ["integer", "null"] },
219
246
  "summary": { "type": "string" }
@@ -228,7 +255,17 @@
228
255
  "options": {
229
256
  "type": "array",
230
257
  "minItems": 1,
231
- "items": { "enum": ["approve-guarded", "approve-invasive", "allow-breaking", "allow-force", "manual-repair", "rollback", "cancel"] }
258
+ "items": {
259
+ "enum": [
260
+ "approve-guarded",
261
+ "approve-invasive",
262
+ "allow-breaking",
263
+ "allow-force",
264
+ "manual-repair",
265
+ "rollback",
266
+ "cancel"
267
+ ]
268
+ }
232
269
  }
233
270
  }
234
271
  },
@@ -239,7 +276,20 @@
239
276
  "properties": {
240
277
  "sequence": { "type": "integer", "minimum": 1 },
241
278
  "at": { "type": "string", "format": "date-time" },
242
- "type": { "enum": ["planned", "approval", "checkpoint", "stage", "verification", "decision", "rollback", "closed", "failed", "cancelled"] },
279
+ "type": {
280
+ "enum": [
281
+ "planned",
282
+ "approval",
283
+ "checkpoint",
284
+ "stage",
285
+ "verification",
286
+ "decision",
287
+ "rollback",
288
+ "closed",
289
+ "failed",
290
+ "cancelled"
291
+ ]
292
+ },
243
293
  "stageId": { "type": "string" },
244
294
  "status": { "type": "string" },
245
295
  "message": { "type": "string" }
@@ -311,6 +311,54 @@
311
311
  "governed Doctor audit"
312
312
  ],
313
313
  "limitation": "A project-specific dependency audit command must be declared by Doctor evidence."
314
+ },
315
+ {
316
+ "id": "clojure",
317
+ "ecosystem": "Clojure",
318
+ "manifests": [
319
+ "deps.edn",
320
+ "project.clj"
321
+ ],
322
+ "lockfiles": [],
323
+ "packageManagers": [
324
+ "Clojure CLI",
325
+ "Leiningen"
326
+ ],
327
+ "support": "conditional",
328
+ "stages": {
329
+ "reconcile": "native",
330
+ "audit": "conditional",
331
+ "test": "conditional",
332
+ "build": "conditional"
333
+ },
334
+ "requiredToolFamilies": [
335
+ "clojure or lein",
336
+ "governed project audit"
337
+ ],
338
+ "limitation": "Tests and builds run only when the selected Clojure project surface declares a deterministic entrypoint."
339
+ },
340
+ {
341
+ "id": "scala-sbt",
342
+ "ecosystem": "Scala / sbt",
343
+ "manifests": [
344
+ "build.sbt"
345
+ ],
346
+ "lockfiles": [],
347
+ "packageManagers": [
348
+ "sbt"
349
+ ],
350
+ "support": "conditional",
351
+ "stages": {
352
+ "reconcile": "native",
353
+ "audit": "conditional",
354
+ "test": "native",
355
+ "build": "native"
356
+ },
357
+ "requiredToolFamilies": [
358
+ "sbt",
359
+ "governed project audit"
360
+ ],
361
+ "limitation": "A project-specific dependency audit command must be declared by Doctor evidence."
314
362
  }
315
363
  ]
316
364
  }
@@ -1 +1 @@
1
- export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-SUV7Y2FH.js';
1
+ export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-IQQWQ3II.js';
@@ -0,0 +1 @@
1
+ export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-BPACED27.js';