workspai 0.61.0 → 0.63.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 +7 -5
- package/contracts/studio-card-repair-capabilities.v1.json +65 -1
- package/contracts/workspace-intelligence/agent-bootstrap-receipt.v1.json +31 -3
- package/contracts/workspace-intelligence/agent-customization-pack-report.v1.json +5 -1
- package/contracts/workspace-intelligence/agent-reports-index.v1.json +5 -1
- package/contracts/workspace-intelligence/project-agent-entry.v1.json +32 -4
- package/contracts/workspace-intelligence/project-context-agent.v1.json +34 -2
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +28 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +4 -1
- package/contracts/workspace-intelligence-chain.v1.json +4 -5
- package/dist/{artifact-remediation-plan-HPNQTNJ2.js → artifact-remediation-plan-XIQNI35L.js} +1 -1
- package/dist/autopilot-release-NUQKFKKK.js +1 -0
- package/dist/{chunk-NJ6WJ7VU.js → chunk-2LLMKTMO.js} +1 -1
- package/dist/{chunk-2FPANIX3.js → chunk-GXPOT3A7.js} +14 -12
- package/dist/{chunk-YGONW6VG.js → chunk-J5OMC4RZ.js} +1 -1
- package/dist/{chunk-WQX3JYEP.js → chunk-LNXIMF3O.js} +1 -1
- package/dist/chunk-ODJAKGQF.js +49 -0
- package/dist/{chunk-2JVRDBJC.js → chunk-PPQL5UTI.js} +1 -1
- package/dist/{chunk-JEGG4EEZ.js → chunk-QB3BLYUR.js} +1 -1
- package/dist/{chunk-4KNDIFJ5.js → chunk-QQU536KA.js} +1 -1
- package/dist/{chunk-GWMC6SSY.js → chunk-TTQVOCG6.js} +1 -1
- package/dist/{chunk-JRIEP4BY.js → chunk-TVCJKE2U.js} +1 -1
- package/dist/chunk-U5WVR74V.js +1 -0
- package/dist/{chunk-5YNZR74I.js → chunk-UDXFUASA.js} +1 -1
- package/dist/chunk-UIBBSKJ3.js +94 -0
- package/dist/chunk-VYDURWN7.js +1 -0
- package/dist/chunk-WRQWVSBJ.js +3 -0
- package/dist/chunk-YUGKQ44M.js +1 -0
- package/dist/chunk-Z5L2IK54.js +2 -0
- package/dist/{create-TPUFKW6B.js → create-2VELRQAX.js} +1 -1
- package/dist/{doctor-MAPZ2ZCD.js → doctor-LDZ7BIU3.js} +1 -1
- package/dist/{goal-lifecycle-BNLXDHED.js → goal-lifecycle-HAWBRYDF.js} +1 -1
- package/dist/{goal-pack-2PF775AU.js → goal-pack-HNQHQFRW.js} +1 -1
- package/dist/index.js +170 -170
- package/dist/{pipeline-BY2YL7C6.js → pipeline-TWHWU6GP.js} +1 -1
- package/dist/{project-agent-entry-VXCOXRJB.js → project-agent-entry-YFRLKNOB.js} +1 -1
- package/dist/{project-intelligence-lens-BA6JLXQH.js → project-intelligence-lens-VWBLAGQ7.js} +1 -1
- package/dist/{verified-goal-5OV4BALK.js → verified-goal-Y4NTKSWH.js} +1 -1
- package/dist/{workspace-J4OGSSNO.js → workspace-XWKEBPS3.js} +1 -1
- package/dist/{workspace-agent-sync-MU7W3C4S.js → workspace-agent-sync-FQU6VIEU.js} +1 -1
- package/dist/{workspace-context-MDACPLHD.js → workspace-context-DPDGFTWJ.js} +1 -1
- package/dist/workspace-explain-OU2PEVYO.js +1 -0
- package/dist/{workspace-explain-contract-JWFM22L4.js → workspace-explain-contract-V2IVSROX.js} +1 -1
- package/dist/{workspace-foundation-3X5OBEMM.js → workspace-foundation-MHKSQDKT.js} +1 -1
- package/dist/{workspace-intelligence-runner-DEW3CZKA.js → workspace-intelligence-runner-YQWX5VAM.js} +1 -1
- package/dist/{workspace-mcp-serve-S5IXSJJL.js → workspace-mcp-serve-PYKYJIE6.js} +1 -1
- package/dist/{workspace-onboarding-LK5IK6LE.js → workspace-onboarding-DRFJWRLH.js} +1 -1
- package/dist/{workspace-readme-56YZ4EAZ.js → workspace-readme-G7TZ3V5T.js} +1 -1
- package/dist/workspace-repair-engine-XZLHR27V.js +3 -0
- package/dist/workspace-run-YXI5L466.js +1 -0
- package/docs/agent-entry.md +32 -2
- package/docs/ci-workflows.md +1 -1
- package/package.json +1 -1
- package/dist/autopilot-release-7Q5JT7YN.js +0 -1
- package/dist/chunk-7DSYI7YN.js +0 -3
- package/dist/chunk-ASOFWN6J.js +0 -1
- package/dist/chunk-BQCGULHR.js +0 -1
- package/dist/chunk-PVXSIYLP.js +0 -1
- package/dist/chunk-RALI2ESF.js +0 -49
- package/dist/chunk-VDFHUYAQ.js +0 -91
- package/dist/chunk-ZJ62F4U3.js +0 -2
- package/dist/workspace-explain-NWP3JTFR.js +0 -1
- package/dist/workspace-repair-engine-3OLRNXD6.js +0 -3
- package/dist/workspace-run-JTEIX4WA.js +0 -1
- /package/dist/{chunk-JMFCMPWI.js → chunk-QA62UOE4.js} +0 -0
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Here is what you get:
|
|
|
38
38
|
| **Health & Readiness** | Doctor checks, verification gates, and release posture based on evidence, not guesses |
|
|
39
39
|
| **Agent Context** | Bounded, focused instructions so AI tools read what they need, not the entire repo |
|
|
40
40
|
| **Agent Rules** | Ready-to-use grounding for Cursor, Copilot, Claude, Codex, Gemini, and more |
|
|
41
|
-
| **Agent Skills** |
|
|
41
|
+
| **Agent Skills** | Runtime-, polyglot-, test-, and delivery-aware operational playbooks, with portable `SKILL.md` projections where the host supports Agent Skills |
|
|
42
42
|
| **MCP Server** | 14 read-oriented tools so MCP clients can query evidence, graph, blockers, and context live |
|
|
43
43
|
|
|
44
44
|
`generic` is the safe default when you do not yet know which agent will use the
|
|
@@ -63,7 +63,9 @@ your-workspace/ # ── Workspace level ──
|
|
|
63
63
|
│ │ ├── INDEX.json # evidence inventory & read order
|
|
64
64
|
│ │ └── ... # impact, doctor, analyze, explain, etc.
|
|
65
65
|
│ └── skills/ # generated operational skills
|
|
66
|
-
│
|
|
66
|
+
│ ├── workspai-release-readiness.md # always available
|
|
67
|
+
│ ├── workspai-node-runtime-validation.md # only when Node is detected
|
|
68
|
+
│ └── workspai-polyglot-change-validation.md # only for multi-runtime workspaces
|
|
67
69
|
│
|
|
68
70
|
│ # Workspace-level agent grounding (per host):
|
|
69
71
|
├── AGENTS.md · CLAUDE.md · GEMINI.md · QWEN.md
|
|
@@ -87,9 +89,9 @@ your-workspace/ # ── Workspace level ──
|
|
|
87
89
|
└── summit-web/ # (same structure per project)
|
|
88
90
|
```
|
|
89
91
|
|
|
90
|
-
Your agent
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
Your agent starts with `agent-entry.v1.json`, compact workspace context, and the Skills
|
|
93
|
+
index; it then retrieves only task-scoped Graph evidence and targeted source. No broad
|
|
94
|
+
scan or complete Graph load is needed for ordinary work.
|
|
93
95
|
|
|
94
96
|

|
|
95
97
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "workspai.studio-card-repair-capabilities.v1",
|
|
3
|
-
"invariant": "A card repair starts with its declared repairPolicy but every unresolved policy path transfers to governed causal source repair.
|
|
3
|
+
"invariant": "An aggregate card is a presentation boundary, never a mutation boundary. Blocking findings form a deterministic sequential causal queue; each CLI transaction owns exactly one causal finding family and one canonical project unless declared dependencies require a bounded cross-project closure. Advisory and informational findings never widen that queue. A card repair starts with its declared repairPolicy but every unresolved policy path transfers to governed causal source repair. After each exact target closes, fresh evidence selects the next target. The card closes only after its exact producer refreshes, no selected causal action remains, and aggregate Workspace Verify completes without an execution failure. Unrelated workspace blockers are reported separately and do not reopen the selected card.",
|
|
4
4
|
"cards": [
|
|
5
5
|
{
|
|
6
6
|
"cardId": "doctor",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"verifyArtifact": ".workspai/reports/doctor-last-run.json",
|
|
12
12
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
13
13
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
14
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
15
|
+
"transactionScope": "one-causal-finding-family",
|
|
14
16
|
"workspacePosture": "reported-separately",
|
|
15
17
|
"repairPolicy": "diagnose-and-repair",
|
|
16
18
|
"remediationArtifacts": [
|
|
@@ -27,6 +29,8 @@
|
|
|
27
29
|
"verifyArtifact": ".workspai/reports/doctor-project-last-run.json",
|
|
28
30
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
29
31
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
32
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
33
|
+
"transactionScope": "one-causal-finding-family",
|
|
30
34
|
"workspacePosture": "reported-separately",
|
|
31
35
|
"repairPolicy": "diagnose-and-repair",
|
|
32
36
|
"remediationArtifacts": [
|
|
@@ -43,6 +47,8 @@
|
|
|
43
47
|
"verifyArtifact": ".workspai/reports/pipeline-last-run.json",
|
|
44
48
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
45
49
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
50
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
51
|
+
"transactionScope": "one-causal-finding-family",
|
|
46
52
|
"workspacePosture": "reported-separately",
|
|
47
53
|
"repairPolicy": "source-repair-then-produce",
|
|
48
54
|
"remediationArtifacts": [
|
|
@@ -58,6 +64,8 @@
|
|
|
58
64
|
"verifyArtifact": ".workspai/reports/analyze-last-run.json",
|
|
59
65
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
60
66
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
67
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
68
|
+
"transactionScope": "one-causal-finding-family",
|
|
61
69
|
"workspacePosture": "reported-separately",
|
|
62
70
|
"repairPolicy": "source-repair-then-produce",
|
|
63
71
|
"remediationArtifacts": [
|
|
@@ -73,6 +81,8 @@
|
|
|
73
81
|
"verifyArtifact": ".workspai/reports/release-readiness-last-run.json",
|
|
74
82
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
75
83
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
84
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
85
|
+
"transactionScope": "one-causal-finding-family",
|
|
76
86
|
"workspacePosture": "reported-separately",
|
|
77
87
|
"repairPolicy": "source-repair-then-produce",
|
|
78
88
|
"remediationArtifacts": [
|
|
@@ -88,6 +98,8 @@
|
|
|
88
98
|
"verifyArtifact": ".workspai/reports/bootstrap-compliance.latest.json",
|
|
89
99
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
90
100
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
101
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
102
|
+
"transactionScope": "one-causal-finding-family",
|
|
91
103
|
"workspacePosture": "reported-separately",
|
|
92
104
|
"repairPolicy": "source-repair-then-produce",
|
|
93
105
|
"remediationArtifacts": [
|
|
@@ -103,6 +115,8 @@
|
|
|
103
115
|
"verifyArtifact": ".workspai/workspace-registry.v1.json",
|
|
104
116
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
105
117
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
118
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
119
|
+
"transactionScope": "one-causal-finding-family",
|
|
106
120
|
"workspacePosture": "reported-separately",
|
|
107
121
|
"repairPolicy": "refresh-producer",
|
|
108
122
|
"remediationArtifacts": []
|
|
@@ -116,6 +130,8 @@
|
|
|
116
130
|
"verifyArtifact": ".workspai/workspace.json",
|
|
117
131
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
118
132
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
133
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
134
|
+
"transactionScope": "one-causal-finding-family",
|
|
119
135
|
"workspacePosture": "reported-separately",
|
|
120
136
|
"repairPolicy": "refresh-producer",
|
|
121
137
|
"remediationArtifacts": []
|
|
@@ -129,6 +145,8 @@
|
|
|
129
145
|
"verifyArtifact": ".workspai/reports/workspace-contract-verify-last-run.json",
|
|
130
146
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
131
147
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
148
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
149
|
+
"transactionScope": "one-causal-finding-family",
|
|
132
150
|
"workspacePosture": "reported-separately",
|
|
133
151
|
"repairPolicy": "source-repair-then-produce",
|
|
134
152
|
"remediationArtifacts": []
|
|
@@ -142,6 +160,8 @@
|
|
|
142
160
|
"verifyArtifact": ".workspai/reports/autopilot-release-last-run.json",
|
|
143
161
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
144
162
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
163
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
164
|
+
"transactionScope": "one-causal-finding-family",
|
|
145
165
|
"workspacePosture": "reported-separately",
|
|
146
166
|
"repairPolicy": "source-repair-then-produce",
|
|
147
167
|
"remediationArtifacts": []
|
|
@@ -155,6 +175,8 @@
|
|
|
155
175
|
"verifyArtifact": ".workspai/reports/workspace-run-last.json",
|
|
156
176
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
157
177
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
178
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
179
|
+
"transactionScope": "one-causal-finding-family",
|
|
158
180
|
"workspacePosture": "reported-separately",
|
|
159
181
|
"repairPolicy": "source-repair-then-produce",
|
|
160
182
|
"remediationArtifacts": [
|
|
@@ -170,6 +192,8 @@
|
|
|
170
192
|
"verifyArtifact": ".workspai/toolchain.lock",
|
|
171
193
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
172
194
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
195
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
196
|
+
"transactionScope": "one-causal-finding-family",
|
|
173
197
|
"workspacePosture": "reported-separately",
|
|
174
198
|
"repairPolicy": "source-repair-then-produce",
|
|
175
199
|
"remediationArtifacts": []
|
|
@@ -183,6 +207,8 @@
|
|
|
183
207
|
"verifyArtifact": ".workspai/reports/doctor-project-last-run.json",
|
|
184
208
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
185
209
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
210
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
211
|
+
"transactionScope": "one-causal-finding-family",
|
|
186
212
|
"workspacePosture": "reported-separately",
|
|
187
213
|
"repairPolicy": "diagnose-and-repair",
|
|
188
214
|
"remediationArtifacts": [
|
|
@@ -198,6 +224,8 @@
|
|
|
198
224
|
"verifyArtifact": ".workspai/reports/snapshot-last-run.json",
|
|
199
225
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
200
226
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
227
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
228
|
+
"transactionScope": "one-causal-finding-family",
|
|
201
229
|
"workspacePosture": "reported-separately",
|
|
202
230
|
"repairPolicy": "refresh-producer",
|
|
203
231
|
"remediationArtifacts": []
|
|
@@ -211,6 +239,8 @@
|
|
|
211
239
|
"verifyArtifact": ".workspai/reports/workspace-model.json",
|
|
212
240
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
213
241
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
242
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
243
|
+
"transactionScope": "one-causal-finding-family",
|
|
214
244
|
"workspacePosture": "reported-separately",
|
|
215
245
|
"repairPolicy": "refresh-producer",
|
|
216
246
|
"remediationArtifacts": []
|
|
@@ -224,6 +254,8 @@
|
|
|
224
254
|
"verifyArtifact": ".workspai/reports/workspace-model-snapshot.json",
|
|
225
255
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
226
256
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
257
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
258
|
+
"transactionScope": "one-causal-finding-family",
|
|
227
259
|
"workspacePosture": "reported-separately",
|
|
228
260
|
"repairPolicy": "refresh-producer",
|
|
229
261
|
"remediationArtifacts": []
|
|
@@ -237,6 +269,8 @@
|
|
|
237
269
|
"verifyArtifact": ".workspai/reports/workspace-model-diff-last-run.json",
|
|
238
270
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
239
271
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
272
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
273
|
+
"transactionScope": "one-causal-finding-family",
|
|
240
274
|
"workspacePosture": "reported-separately",
|
|
241
275
|
"repairPolicy": "refresh-producer",
|
|
242
276
|
"remediationArtifacts": []
|
|
@@ -250,6 +284,8 @@
|
|
|
250
284
|
"verifyArtifact": ".workspai/reports/workspace-impact-last-run.json",
|
|
251
285
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
252
286
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
287
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
288
|
+
"transactionScope": "one-causal-finding-family",
|
|
253
289
|
"workspacePosture": "reported-separately",
|
|
254
290
|
"repairPolicy": "refresh-producer",
|
|
255
291
|
"remediationArtifacts": []
|
|
@@ -263,6 +299,8 @@
|
|
|
263
299
|
"verifyArtifact": ".workspai/reports/workspace-intelligence-run-last-run.json",
|
|
264
300
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
265
301
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
302
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
303
|
+
"transactionScope": "one-causal-finding-family",
|
|
266
304
|
"workspacePosture": "reported-separately",
|
|
267
305
|
"repairPolicy": "source-repair-then-produce",
|
|
268
306
|
"remediationArtifacts": []
|
|
@@ -276,6 +314,8 @@
|
|
|
276
314
|
"verifyArtifact": ".workspai/reports/workspace-verify-last-run.json",
|
|
277
315
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
278
316
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
317
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
318
|
+
"transactionScope": "one-causal-finding-family",
|
|
279
319
|
"workspacePosture": "reported-separately",
|
|
280
320
|
"repairPolicy": "source-repair-then-produce",
|
|
281
321
|
"remediationArtifacts": [
|
|
@@ -291,6 +331,8 @@
|
|
|
291
331
|
"verifyArtifact": ".workspai/reports/workspace-explain-last-run.json",
|
|
292
332
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
293
333
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
334
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
335
|
+
"transactionScope": "one-causal-finding-family",
|
|
294
336
|
"workspacePosture": "reported-separately",
|
|
295
337
|
"repairPolicy": "refresh-producer",
|
|
296
338
|
"remediationArtifacts": []
|
|
@@ -304,6 +346,8 @@
|
|
|
304
346
|
"verifyArtifact": ".workspai/reports/workspace-why-last-run.json",
|
|
305
347
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
306
348
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
349
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
350
|
+
"transactionScope": "one-causal-finding-family",
|
|
307
351
|
"workspacePosture": "reported-separately",
|
|
308
352
|
"repairPolicy": "refresh-producer",
|
|
309
353
|
"remediationArtifacts": []
|
|
@@ -317,6 +361,8 @@
|
|
|
317
361
|
"verifyArtifact": ".workspai/reports/workspace-trace-last-run.json",
|
|
318
362
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
319
363
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
364
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
365
|
+
"transactionScope": "one-causal-finding-family",
|
|
320
366
|
"workspacePosture": "reported-separately",
|
|
321
367
|
"repairPolicy": "refresh-producer",
|
|
322
368
|
"remediationArtifacts": []
|
|
@@ -330,6 +376,8 @@
|
|
|
330
376
|
"verifyArtifact": ".workspai/reports/workspace-model.json",
|
|
331
377
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
332
378
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
379
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
380
|
+
"transactionScope": "one-causal-finding-family",
|
|
333
381
|
"workspacePosture": "reported-separately",
|
|
334
382
|
"repairPolicy": "refresh-producer",
|
|
335
383
|
"remediationArtifacts": []
|
|
@@ -343,6 +391,8 @@
|
|
|
343
391
|
"verifyArtifact": ".workspai/reports/workspace-context-agent.json",
|
|
344
392
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
345
393
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
394
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
395
|
+
"transactionScope": "one-causal-finding-family",
|
|
346
396
|
"workspacePosture": "reported-separately",
|
|
347
397
|
"repairPolicy": "refresh-producer",
|
|
348
398
|
"remediationArtifacts": []
|
|
@@ -356,6 +406,8 @@
|
|
|
356
406
|
"verifyArtifact": ".workspai/reports/agent-customization-pack.json",
|
|
357
407
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
358
408
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
409
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
410
|
+
"transactionScope": "one-causal-finding-family",
|
|
359
411
|
"workspacePosture": "reported-separately",
|
|
360
412
|
"repairPolicy": "refresh-producer",
|
|
361
413
|
"remediationArtifacts": []
|
|
@@ -369,6 +421,8 @@
|
|
|
369
421
|
"verifyArtifact": ".workspai/reports/share-bundle.json",
|
|
370
422
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
371
423
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
424
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
425
|
+
"transactionScope": "one-causal-finding-family",
|
|
372
426
|
"workspacePosture": "reported-separately",
|
|
373
427
|
"repairPolicy": "refresh-producer",
|
|
374
428
|
"remediationArtifacts": []
|
|
@@ -382,6 +436,8 @@
|
|
|
382
436
|
"verifyArtifact": ".workspai/archive-manifest.json",
|
|
383
437
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
384
438
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
439
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
440
|
+
"transactionScope": "one-causal-finding-family",
|
|
385
441
|
"workspacePosture": "reported-separately",
|
|
386
442
|
"repairPolicy": "refresh-producer",
|
|
387
443
|
"remediationArtifacts": []
|
|
@@ -395,6 +451,8 @@
|
|
|
395
451
|
"verifyArtifact": ".workspai/reports/mirror-ops.latest.json",
|
|
396
452
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
397
453
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
454
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
455
|
+
"transactionScope": "one-causal-finding-family",
|
|
398
456
|
"workspacePosture": "reported-separately",
|
|
399
457
|
"repairPolicy": "refresh-producer",
|
|
400
458
|
"remediationArtifacts": []
|
|
@@ -408,6 +466,8 @@
|
|
|
408
466
|
"verifyArtifact": ".workspai/cache-config.yml",
|
|
409
467
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
410
468
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
469
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
470
|
+
"transactionScope": "one-causal-finding-family",
|
|
411
471
|
"workspacePosture": "reported-separately",
|
|
412
472
|
"repairPolicy": "refresh-producer",
|
|
413
473
|
"remediationArtifacts": []
|
|
@@ -421,6 +481,8 @@
|
|
|
421
481
|
"verifyArtifact": ".workspai/policies.yml",
|
|
422
482
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
423
483
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
484
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
485
|
+
"transactionScope": "one-causal-finding-family",
|
|
424
486
|
"workspacePosture": "reported-separately",
|
|
425
487
|
"repairPolicy": "source-repair-then-produce",
|
|
426
488
|
"remediationArtifacts": []
|
|
@@ -434,6 +496,8 @@
|
|
|
434
496
|
"verifyArtifact": ".workspai/reports/infra-plan.json",
|
|
435
497
|
"aggregateVerifyCommand": "npx workspai workspace verify --json",
|
|
436
498
|
"targetClosure": "exact-producer-and-causal-action-set",
|
|
499
|
+
"aggregateRepair": "sequential-causal-queue",
|
|
500
|
+
"transactionScope": "one-causal-finding-family",
|
|
437
501
|
"workspacePosture": "reported-separately",
|
|
438
502
|
"repairPolicy": "source-repair-then-produce",
|
|
439
503
|
"remediationArtifacts": []
|
|
@@ -119,8 +119,6 @@
|
|
|
119
119
|
"projectContext",
|
|
120
120
|
"workspaceIndex",
|
|
121
121
|
"workspaceContext",
|
|
122
|
-
"workspaceModel",
|
|
123
|
-
"knowledgeGraph",
|
|
124
122
|
"modelFreshness",
|
|
125
123
|
"graphFreshness",
|
|
126
124
|
"graphMatchesModel",
|
|
@@ -137,12 +135,42 @@
|
|
|
137
135
|
"knowledgeGraph": {
|
|
138
136
|
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
139
137
|
},
|
|
138
|
+
"workspaceSkillsIndex": {
|
|
139
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
140
|
+
},
|
|
141
|
+
"boundedGraphSearch": {
|
|
142
|
+
"const": "command:workspai workspace graph search <task-query> --scope project:<project> --limit 12 --json"
|
|
143
|
+
},
|
|
140
144
|
"modelFreshness": { "enum": ["fresh", "stale", "unknown", "missing"] },
|
|
141
145
|
"graphFreshness": { "enum": ["fresh", "stale", "unknown", "missing"] },
|
|
142
146
|
"graphMatchesModel": { "type": "boolean" },
|
|
143
147
|
"liveInputsValidated": { "type": "boolean" },
|
|
144
148
|
"blockerCount": { "type": "integer", "minimum": 0 }
|
|
145
|
-
}
|
|
149
|
+
},
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"properties": {
|
|
153
|
+
"workspaceModel": {
|
|
154
|
+
"const": "workspace:.workspai/reports/workspace-model.json"
|
|
155
|
+
},
|
|
156
|
+
"knowledgeGraph": {
|
|
157
|
+
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": ["workspaceModel", "knowledgeGraph"]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"properties": {
|
|
164
|
+
"workspaceSkillsIndex": {
|
|
165
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
166
|
+
},
|
|
167
|
+
"boundedGraphSearch": {
|
|
168
|
+
"const": "command:workspai workspace graph search <task-query> --scope project:<project> --limit 12 --json"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": ["workspaceSkillsIndex", "boundedGraphSearch"]
|
|
172
|
+
}
|
|
173
|
+
]
|
|
146
174
|
},
|
|
147
175
|
"activeGoal": {
|
|
148
176
|
"type": "object",
|
|
@@ -22,7 +22,11 @@
|
|
|
22
22
|
"properties": {
|
|
23
23
|
"schemaVersion": { "const": "rapidkit-agent-customization-pack.v1" },
|
|
24
24
|
"generatedAt": { "type": "string", "format": "date-time" },
|
|
25
|
-
"workspaceRoot": {
|
|
25
|
+
"workspaceRoot": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"description": "Portable workspace identity (workspace:<name>), never a machine-local filesystem path."
|
|
29
|
+
},
|
|
26
30
|
"preset": { "enum": ["minimal", "enterprise"] },
|
|
27
31
|
"targets": {
|
|
28
32
|
"type": "array",
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
"properties": {
|
|
19
19
|
"schemaVersion": { "const": "rapidkit-agent-reports-index.v1" },
|
|
20
20
|
"generatedAt": { "type": "string", "format": "date-time" },
|
|
21
|
-
"workspaceRoot": {
|
|
21
|
+
"workspaceRoot": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"description": "Portable workspace identity (workspace:<name>), never a machine-local filesystem path."
|
|
25
|
+
},
|
|
22
26
|
"intelligenceChain": {
|
|
23
27
|
"type": "object",
|
|
24
28
|
"additionalProperties": false,
|
|
@@ -61,9 +61,7 @@
|
|
|
61
61
|
"projectGrounding",
|
|
62
62
|
"goalIndex",
|
|
63
63
|
"workspaceIndex",
|
|
64
|
-
"workspaceContext"
|
|
65
|
-
"workspaceModel",
|
|
66
|
-
"knowledgeGraph"
|
|
64
|
+
"workspaceContext"
|
|
67
65
|
],
|
|
68
66
|
"properties": {
|
|
69
67
|
"projectContext": { "const": ".workspai/reports/project-context-agent.json" },
|
|
@@ -76,8 +74,38 @@
|
|
|
76
74
|
"workspaceModel": { "const": "workspace:.workspai/reports/workspace-model.json" },
|
|
77
75
|
"knowledgeGraph": {
|
|
78
76
|
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
77
|
+
},
|
|
78
|
+
"workspaceSkillsIndex": {
|
|
79
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
80
|
+
},
|
|
81
|
+
"boundedGraphSearch": {
|
|
82
|
+
"const": "command:workspai workspace graph search <task-query> --scope project:<project> --limit 12 --json"
|
|
79
83
|
}
|
|
80
|
-
}
|
|
84
|
+
},
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"properties": {
|
|
88
|
+
"workspaceModel": {
|
|
89
|
+
"const": "workspace:.workspai/reports/workspace-model.json"
|
|
90
|
+
},
|
|
91
|
+
"knowledgeGraph": {
|
|
92
|
+
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["workspaceModel", "knowledgeGraph"]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"properties": {
|
|
99
|
+
"workspaceSkillsIndex": {
|
|
100
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
101
|
+
},
|
|
102
|
+
"boundedGraphSearch": {
|
|
103
|
+
"const": "command:workspai workspace graph search <task-query> --scope project:<project> --limit 12 --json"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": ["workspaceSkillsIndex", "boundedGraphSearch"]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
81
109
|
},
|
|
82
110
|
"protocol": {
|
|
83
111
|
"type": "object",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"generatedAt": { "type": "string", "format": "date-time" },
|
|
22
22
|
"workspace": {
|
|
23
23
|
"type": "object",
|
|
24
|
-
"required": ["name", "relationship", "contract", "
|
|
24
|
+
"required": ["name", "relationship", "contract", "access"],
|
|
25
25
|
"properties": {
|
|
26
26
|
"name": { "type": "string", "minLength": 1 },
|
|
27
27
|
"profile": { "type": "string" },
|
|
@@ -33,6 +33,14 @@
|
|
|
33
33
|
"knowledgeGraph": {
|
|
34
34
|
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
35
35
|
},
|
|
36
|
+
"index": { "const": "workspace:.workspai/reports/INDEX.json" },
|
|
37
|
+
"context": {
|
|
38
|
+
"const": "workspace:.workspai/reports/workspace-context-agent.json"
|
|
39
|
+
},
|
|
40
|
+
"skillsIndex": {
|
|
41
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
42
|
+
},
|
|
43
|
+
"boundedGraphSearch": { "type": "string", "minLength": 1 },
|
|
36
44
|
"access": {
|
|
37
45
|
"type": "object",
|
|
38
46
|
"required": [
|
|
@@ -54,7 +62,31 @@
|
|
|
54
62
|
"additionalProperties": false
|
|
55
63
|
}
|
|
56
64
|
},
|
|
57
|
-
"additionalProperties": false
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"properties": {
|
|
69
|
+
"model": { "const": "workspace:.workspai/reports/workspace-model.json" },
|
|
70
|
+
"knowledgeGraph": {
|
|
71
|
+
"const": "workspace:.workspai/reports/workspace-knowledge-graph.json"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": ["model", "knowledgeGraph"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"properties": {
|
|
78
|
+
"index": { "const": "workspace:.workspai/reports/INDEX.json" },
|
|
79
|
+
"context": {
|
|
80
|
+
"const": "workspace:.workspai/reports/workspace-context-agent.json"
|
|
81
|
+
},
|
|
82
|
+
"skillsIndex": {
|
|
83
|
+
"const": "workspace:.workspai/reports/workspace-skills-index.json"
|
|
84
|
+
},
|
|
85
|
+
"boundedGraphSearch": { "type": "string", "minLength": 1 }
|
|
86
|
+
},
|
|
87
|
+
"required": ["index", "context", "skillsIndex", "boundedGraphSearch"]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
58
90
|
},
|
|
59
91
|
"project": {
|
|
60
92
|
"type": "object",
|
|
@@ -64,6 +64,34 @@
|
|
|
64
64
|
"additionalProperties": false
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
+
"selectedTarget": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"description": "One immutable causal finding target selected from an aggregate card for the next CLI-owned transaction.",
|
|
70
|
+
"required": ["findingId", "actionIds", "repairMode", "sourceMutation"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"findingId": { "type": "string", "minLength": 1 },
|
|
73
|
+
"causalKey": { "type": "string", "minLength": 1 },
|
|
74
|
+
"actionIds": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"minItems": 1,
|
|
77
|
+
"uniqueItems": true,
|
|
78
|
+
"items": { "type": "string", "minLength": 1 }
|
|
79
|
+
},
|
|
80
|
+
"sourcePaths": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"uniqueItems": true,
|
|
83
|
+
"items": { "type": "string", "minLength": 1 }
|
|
84
|
+
},
|
|
85
|
+
"projectName": { "type": "string", "minLength": 1 },
|
|
86
|
+
"projectPath": { "type": "string", "minLength": 1 },
|
|
87
|
+
"repairMode": {
|
|
88
|
+
"enum": ["edit-file", "run-command", "refresh-evidence", "verify-before-fix", "manual-guidance"]
|
|
89
|
+
},
|
|
90
|
+
"sourceMutation": { "enum": ["required", "allowed", "forbidden"] },
|
|
91
|
+
"verifyCommand": { "type": "string", "minLength": 1 }
|
|
92
|
+
},
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
67
95
|
"artifactPath": {
|
|
68
96
|
"type": "string"
|
|
69
97
|
},
|
|
@@ -78,7 +78,10 @@
|
|
|
78
78
|
"required": ["name", "root", "type"],
|
|
79
79
|
"properties": {
|
|
80
80
|
"name": { "type": "string" },
|
|
81
|
-
"root": {
|
|
81
|
+
"root": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "Portable workspace identity (workspace:<name>), never a machine-local filesystem path."
|
|
84
|
+
},
|
|
82
85
|
"type": { "type": "string" },
|
|
83
86
|
"profile": { "type": "string" }
|
|
84
87
|
},
|
|
@@ -1263,14 +1263,13 @@
|
|
|
1263
1263
|
"agents": {
|
|
1264
1264
|
"canonicalReadOrder": [
|
|
1265
1265
|
".workspai/reports/INDEX.json",
|
|
1266
|
+
".workspai/goals/index.json",
|
|
1267
|
+
".workspai/reports/goal-pack-last-run.json",
|
|
1266
1268
|
".workspai/reports/workspace-context-agent.json",
|
|
1269
|
+
".workspai/reports/workspace-skills-index.json",
|
|
1267
1270
|
".workspai/reports/workspace-verify-last-run.json",
|
|
1268
1271
|
".workspai/reports/workspace-impact-last-run.json",
|
|
1269
|
-
".workspai/reports/workspace-explain-last-run.json"
|
|
1270
|
-
".workspai/reports/workspace-model.json",
|
|
1271
|
-
".workspai/reports/workspace-knowledge-graph.json",
|
|
1272
|
-
".workspai/reports/agent-customization-pack.json",
|
|
1273
|
-
".workspai/reports/workspace-skills-index.json"
|
|
1272
|
+
".workspai/reports/workspace-explain-last-run.json"
|
|
1274
1273
|
],
|
|
1275
1274
|
"entrypoints": [
|
|
1276
1275
|
"AGENTS.md",
|
package/dist/{artifact-remediation-plan-HPNQTNJ2.js → artifact-remediation-plan-XIQNI35L.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-
|
|
1
|
+
export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-WRQWVSBJ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-2LLMKTMO.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-QA62UOE4.js';import {a as a$4}from'./chunk-QJCCZLOF.js';import {a as a$2,e as e$1}from'./chunk-W6FHVXNL.js';import {d,a,e as e$2}from'./chunk-CCDGHPEJ.js';import {e,h}from'./chunk-NZ3WZYD5.js';import a$3 from'chalk';import re from'fs';import b from'path';import {execa}from'execa';var V="autopilot-release-last-run.json",G="autopilot-release.json";function $(r){try{return JSON.parse(r)}catch{return null}}function Se(r){let e=b.resolve(r),n=a$4(e);if(!n)throw new Error("No Workspai workspace found in current directory or parents");return n}async function S(r,e){let n=process.argv[1];if(!n)return {exitCode:1,stdout:"",stderr:"RapidKit entrypoint is unavailable for autopilot execution.",crashed:true};try{let o=await execa(process.execPath,[n,...r],{cwd:e,reject:false,env:{...process.env,RAPIDKIT_AUTOPILOT_CHILD:"1"}});return {exitCode:Number(o.exitCode??1),stdout:o.stdout,stderr:o.stderr,crashed:false}}catch(o){return {exitCode:1,stdout:"",stderr:o instanceof Error?o.message:String(o),crashed:true}}}function oe(r){let e=r.toLowerCase();return e==="pass"?"pass":e==="warn"?"warn":e==="fail"?"fail":"warn"}function ae(r){return r.summary.failed>0||r.gates.results.some(e=>e.status==="fail")?"fail":r.gates.results.some(e=>e.status==="warn")?"warn":"pass"}function be(r){let e=r.filter(o=>o.status!=="skipped");if(e.length===0)return 100;let n=e.reduce((o,t)=>t.status==="pass"?o+1:t.status==="warn"?o+.6:o,0);return Math.round(n/e.length*100)}function Ae(r){return r.executionError?["Re-run: npx workspai autopilot release --mode audit --json","Inspect .workspai/reports/autopilot-release-last-run.json for execution failure details"]:r.blockers.length>0?["Run: npx workspai doctor workspace --plan","Run: npx workspai readiness --json --strict","Run: npx workspai workspace run test --affected --strict"]:r.hasWarnings&&r.mode!=="enforce"?["Review warning-level findings in autopilot report","Optionally run: npx workspai autopilot release --mode safe-fix"]:["Workspace is release-ready based on current autopilot policy"]}async function xe(r,e){await re.promises.mkdir(b.dirname(r),{recursive:true}),await re.promises.writeFile(r,`${JSON.stringify(e,null,2)}
|
|
2
2
|
`,"utf-8");}async function ze(r){let e$3=Se(r.workspacePath),n=r.mode,o=[],t=[],L,H,N,q,Q,X=0,f=false,I=0,_=0,W=-1,T=-1,c="skipped",d$1="skipped",ne=n==="enforce"?["doctor","workspace","--json","--strict"]:["doctor","workspace","--json","--ci"];if(r.skipPipelineStages)o.push({name:"doctor-workspace",status:"skipped",durationMs:0,summary:"doctor stage skipped (pipeline already executed)"},{name:"analyze",status:"skipped",durationMs:0,summary:"analyze stage skipped (pipeline already executed)"},{name:"readiness",status:"skipped",durationMs:0,summary:"readiness stage skipped (pipeline already executed)"});else {let s=Date.now(),l=await S([...ne],e$3),m=Date.now()-s;if(c="pass",l.crashed)c="fail",f=true,t.push(`doctor workspace execution error: ${l.stderr||"unknown error"}`);else if(l.exitCode===1)c="fail",t.push("doctor workspace command failed or reported errors");else if(l.exitCode===2)c="warn",t.push("doctor workspace reported warnings");else if(l.exitCode!==0)c="fail",t.push("doctor workspace command failed");else {let p=$(l.stdout),E=p&&p.healthScore&&typeof p.healthScore=="object"?p.healthScore:{},k=Number(E.errors??0),C=Number(E.warnings??0);Number.isFinite(k)&&k>0?(c="fail",t.push(`doctor workspace reports ${k} error(s)`)):Number.isFinite(C)&&C>0&&(c="warn");}W=o.push({name:"doctor-workspace",status:c,durationMs:m,summary:c==="pass"?"doctor workspace passed":c==="warn"?"doctor workspace reported warnings":"doctor workspace reported errors"})-1,n==="enforce"&&c==="warn"&&t.push("doctor workspace reported warnings under enforce mode");let g=Date.now(),w=await S(["analyze","--json"],e$3),P=Date.now()-g;H=await d(e$3,e.analyze)??a(e$3,e.analyze);let i="pass";if(w.crashed)i="fail",f=true,t.push(`analyze execution error: ${w.stderr||"unknown error"}`);else if(w.exitCode!==0)i=w.exitCode===2?"warn":"fail",t.push(w.exitCode===2?"analyze reported needs-attention verdict":"analyze command failed or reported blocked verdict");else {let p=$(w.stdout),E=p&&p.summary&&typeof p.summary=="object"?p.summary:{},k=String(E.verdict??"ready");k==="blocked"?(i="fail",t.push("analyze reported blocked verdict")):k==="needs-attention"&&(i="warn");}o.push({name:"analyze",status:i,durationMs:P,summary:i==="pass"?"analyze passed":i==="warn"?"analyze reported needs-attention":"analyze reported blocked verdict"}),n==="enforce"&&i==="warn"&&t.push("analyze reported warnings under enforce mode");let v=Date.now(),h=await S(["readiness","--json"],e$3),y=Date.now()-v;if(d$1="fail",h.crashed)d$1="fail",f=true,t.push(`readiness execution error: ${h.stderr||"unknown error"}`);else if(h.exitCode!==0)d$1="fail",t.push("readiness command failed");else {let p=$(h.stdout),E=String(p?.overallStatus??"fail");if(d$1=oe(E),typeof p?.evidencePath=="string"&&p.evidencePath.trim().length>0&&(L=p.evidencePath),d$1==="fail"){let k=Array.isArray(p?.blockingReasons)?p?.blockingReasons.filter(C=>typeof C=="string"):[];k.length>0?t.push(...k.map(C=>`readiness: ${C}`)):t.push("readiness overall status is fail");}}T=o.push({name:"readiness",status:d$1,durationMs:y,summary:`readiness overall status is ${d$1}`})-1,n==="enforce"&&d$1==="warn"&&t.push("readiness reported warnings under enforce mode");}let ie=Date.now(),D=await S(["doctor","workspace","--plan","--json"],e$3),le=Date.now()-ie,R="warn";if(D.crashed)R="fail",f=true,t.push(`doctor remediation plan execution error: ${D.stderr||"unknown error"}`);else if(D.exitCode!==0)R="fail",t.push("doctor remediation plan command failed");else {let s=$(D.stdout),l=s&&s.remediationPlan&&typeof s.remediationPlan=="object"?s.remediationPlan:null,m=Number(l?.totalSteps??0),g=Number(l?.executableSteps??0);Number.isFinite(m)&&m>0&&(I=m),Number.isFinite(g)&&g>0&&(_=g),Number.isFinite(m)&&m===0?R="pass":R="warn";}if(o.push({name:"remediation-plan",status:R,durationMs:le,summary:R==="pass"?"no remediation steps required":"remediation steps available"}),n==="enforce"&&R==="warn"&&t.push("remediation plan has pending steps under enforce mode"),n==="safe-fix"){let s=Date.now(),l=await S(["doctor","workspace","--apply"],e$3),m=Date.now()-s,g=l.crashed||l.exitCode!==0?"fail":"pass";if(l.crashed)f=true,t.push(`doctor remediation apply execution error: ${l.stderr||"unknown error"}`);else if(g==="fail")t.push("doctor remediation apply failed");else {X=_>0?_:I>0?I:1;let w=await S(["doctor","workspace","--json"],e$3);if(w.crashed)c="fail",f=true,t.push(`post-apply doctor execution error: ${w.stderr||"unknown error"}`);else if(w.exitCode!==0)c="fail",t.push("post-apply doctor workspace command failed");else {let i=$(w.stdout),v=i&&i.healthScore&&typeof i.healthScore=="object"?i.healthScore:{},h=Number(v.errors??0),y=Number(v.warnings??0);Number.isFinite(h)&&h>0?(c="fail",t.push(`post-apply doctor reports ${h} error(s)`)):Number.isFinite(y)&&y>0?c="warn":c="pass";}W>=0&&(o[W].status=c,o[W].summary=`doctor workspace post-apply status is ${c}`);let P=await S(["readiness","--json"],e$3);if(P.crashed)d$1="fail",f=true,t.push(`post-apply readiness execution error: ${P.stderr||"unknown error"}`);else if(P.exitCode!==0)d$1="fail",t.push("post-apply readiness command failed");else {let i=$(P.stdout),v=String(i?.overallStatus??"fail");if(d$1=oe(v),typeof i?.evidencePath=="string"&&i.evidencePath.trim().length>0&&(L=i.evidencePath),d$1==="fail"){let h=Array.isArray(i?.blockingReasons)?i?.blockingReasons.filter(y=>typeof y=="string"):[];h.length>0?t.push(...h.map(y=>`post-apply readiness: ${y}`)):t.push("post-apply readiness overall status is fail");}}T>=0&&(o[T].status=d$1,o[T].summary=`readiness post-apply overall status is ${d$1}`);}o.push({name:"remediation-apply",status:g,durationMs:m,summary:g==="pass"?"safe remediation apply completed":"safe remediation apply failed"});}else o.push({name:"remediation-apply",status:"skipped",durationMs:0,summary:"remediation apply is skipped for this mode"});let ce=Date.now(),A="pass",x="workspace test/build completed for selected projects";try{let s=await a$1({workspacePath:e$3,stage:"test",affected:true,since:r.since,parallel:r.parallel,maxWorkers:r.maxWorkers,strict:true,json:true,enforceGates:false});N=a(e$3,b.join(".workspai","reports",a$2)),await e$1(e$3,s),q=N;let l=ae(s);if(l==="fail")A="fail",x="workspace test stage failed for selected projects",t.push("workspace run test failed for selected projects");else {l==="warn"&&(A="warn",x="workspace test stage completed with warnings",n==="enforce"&&t.push("workspace run test reported warnings under enforce mode"));let m=await a$1({workspacePath:e$3,stage:"build",affected:true,since:r.since,parallel:r.parallel,maxWorkers:r.maxWorkers,strict:true,json:true,enforceGates:false});await e$1(e$3,m),Q=N;let g=ae(m);g==="fail"?(A="fail",x="workspace build stage failed for selected projects",t.push("workspace run build failed for selected projects")):g==="warn"&&(A="warn",x="workspace test/build completed with warnings",n==="enforce"&&t.push("workspace run test/build reported warnings under enforce mode"));}}catch(s){A="fail",x="workspace test/build orchestration failed",f=true,t.push(`workspace run orchestration error: ${s instanceof Error?s.message:String(s)}`);}let pe=Date.now()-ce;o.push({name:"workspace-run-test-build",status:A,durationMs:pe,summary:x});let M=o.filter(s=>s.status==="warn").length,ue=o.filter(s=>s.status==="fail").length,F=n==="enforce"?o.some(s=>s.status==="warn"||s.status==="fail"):ue>0,j=[...new Set(t)],O=f||F?Math.max(1,j.length):0,de=O>0?j:[],fe=O===0?j:[],me=be(o),ge=f||F?"blocked":M>0?"partial":"approved",we=f?3:F?1:M>0?2:0,he=Ae({mode:n,executionError:f,blockers:j,hasWarnings:M>0}),Y=a(e$3,".workspai/reports"),ke=b.join(Y,V),ye=b.join(Y,G),u={schemaVersion:h.autopilotReleaseLastRun.schemaVersion,generatedAt:new Date().toISOString(),workspacePath:e$3,mode:n,summary:{releaseScore:me,verdict:ge,blockers:O,warnings:M,safeFixesApplied:X,manualActions:j.length,exitCode:we},stages:o,blockingReasons:de,warningReasons:fe,nextActions:he,artifacts:{reportPath:ke,aliasEvidencePath:ye,analyzeEvidencePath:H,readinessEvidencePath:L,workspaceRunEvidencePath:N,workspaceRunTestPath:q,workspaceRunBuildPath:Q},enterpriseControls:{jsonReady:true,evidencePath:`.workspai/reports/${V}`,aliasEvidencePath:`.workspai/reports/${G}`}};if(await e$2(e$3,`.workspai/reports/${V}`,u),await e$2(e$3,`.workspai/reports/${G}`,u),r.output&&await xe(b.resolve(r.output),u),!r.json){console.log(a$3.bold.cyan(`
|
|
3
3
|
\u{1F680} Workspai Autopilot Release
|
|
4
4
|
`)),console.log(a$3.bold(`Workspace: ${a$3.cyan(b.basename(e$3))}`)),console.log(a$3.gray(`Path: ${e$3}`)),console.log(a$3.white(`Mode: ${n}`)),console.log(a$3.white(`Verdict: ${u.summary.verdict==="approved"?a$3.green("approved"):u.summary.verdict==="partial"?a$3.yellow("partial"):a$3.red("blocked")}`)),console.log(a$3.white(`Release score: ${u.summary.releaseScore}`));for(let s of u.stages){let l=s.status==="pass"?a$3.green("PASS"):s.status==="warn"?a$3.yellow("WARN"):s.status==="skipped"?a$3.gray("SKIP"):a$3.red("FAIL");console.log(` - ${s.name}: ${l} ${s.summary} (${s.durationMs}ms)`);}if(u.blockingReasons.length>0){console.log(a$3.bold.red(`
|