workspai 0.71.0 → 0.72.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 (96) hide show
  1. package/contracts/artifact-remediation-plan.v1.json +49 -0
  2. package/contracts/workspace-repair-capabilities.v1.json +7 -1
  3. package/dist/analyze-5ENZTHOT.js +1 -0
  4. package/dist/{artifact-remediation-plan-URQL5MBN.js → artifact-remediation-plan-WDK5ISRU.js} +1 -1
  5. package/dist/autopilot-release-PNSWAVZG.js +1 -0
  6. package/dist/{chunk-YC676TPF.js → chunk-2RF75G5T.js} +1 -1
  7. package/dist/{chunk-CX6PAQTQ.js → chunk-5OLNT6YD.js} +63 -63
  8. package/dist/{chunk-L5IV2SI4.js → chunk-5PFFR5S7.js} +1 -1
  9. package/dist/{chunk-HMKDU7OU.js → chunk-5TKRCE6F.js} +1 -1
  10. package/dist/{chunk-IGJA6GBQ.js → chunk-62YBFWHY.js} +1 -1
  11. package/dist/chunk-6WOFOOM7.js +7 -0
  12. package/dist/{chunk-K2LKJBQ4.js → chunk-7LKCWDX6.js} +1 -1
  13. package/dist/chunk-7Q7X4X5I.js +1 -0
  14. package/dist/chunk-BVWDG66W.js +1 -0
  15. package/dist/{chunk-5HURQABR.js → chunk-COBU44T5.js} +1 -1
  16. package/dist/chunk-CQBM6BBP.js +2 -0
  17. package/dist/chunk-CY4QZ3PE.js +3 -0
  18. package/dist/{chunk-ACCWXKZW.js → chunk-D5RUGSBC.js} +2 -2
  19. package/dist/chunk-EDPUQXP6.js +5 -0
  20. package/dist/{chunk-V52R2W2Q.js → chunk-IX5Z6EK6.js} +1 -1
  21. package/dist/{chunk-AUVWD3WV.js → chunk-JQINCVK5.js} +1 -1
  22. package/dist/{chunk-GL3KLNIG.js → chunk-KVPTZMEV.js} +1 -1
  23. package/dist/{chunk-26VNCHVV.js → chunk-LDNX2R6V.js} +1 -1
  24. package/dist/{chunk-554W2TXP.js → chunk-LLEKVSMX.js} +1 -1
  25. package/dist/{chunk-QHHSSIMZ.js → chunk-N2PAAQKI.js} +1 -1
  26. package/dist/{chunk-7V3YDKMG.js → chunk-ONV6WW7A.js} +1 -1
  27. package/dist/{chunk-TD5TQZEG.js → chunk-QVUVJU56.js} +1 -1
  28. package/dist/{chunk-FFE2JZZJ.js → chunk-QYXX6G5O.js} +8 -8
  29. package/dist/{chunk-C563KVBD.js → chunk-S66NO5BX.js} +1 -1
  30. package/dist/{chunk-M2R6UXJB.js → chunk-SATPH22S.js} +1 -1
  31. package/dist/{chunk-IOKEF3DE.js → chunk-SG3QRCMM.js} +1 -1
  32. package/dist/{chunk-2KJNASF3.js → chunk-SS7X2YF5.js} +1 -1
  33. package/dist/{chunk-4CE3GI4Y.js → chunk-T6KHOIEY.js} +1 -1
  34. package/dist/{chunk-AUQLOQ2S.js → chunk-T6LCDLJ7.js} +1 -1
  35. package/dist/{chunk-XY537LCX.js → chunk-TDQ2PRHV.js} +1 -1
  36. package/dist/{chunk-LOXR5QUX.js → chunk-TQQEZQLC.js} +1 -1
  37. package/dist/{chunk-H64KAPJJ.js → chunk-UHAPXPGW.js} +1 -1
  38. package/dist/chunk-V4LCPLV6.js +1 -0
  39. package/dist/{chunk-GYN6RPNU.js → chunk-WMC2H7MJ.js} +1 -1
  40. package/dist/{chunk-YS34N35Y.js → chunk-WPZUKU2B.js} +1 -1
  41. package/dist/chunk-X5ZNFXFI.js +1 -0
  42. package/dist/{create-HSHAZYAK.js → create-7CWWGDXQ.js} +1 -1
  43. package/dist/{doctor-VZ2MZ7EI.js → doctor-WYBSI3GC.js} +1 -1
  44. package/dist/{goal-lifecycle-NKSCALES.js → goal-lifecycle-PSPYQ4TR.js} +1 -1
  45. package/dist/{goal-pack-MPKW4K6F.js → goal-pack-G7SAYDIC.js} +1 -1
  46. package/dist/index.js +101 -101
  47. package/dist/{pipeline-RIA5UXUC.js → pipeline-NDV7DBB7.js} +1 -1
  48. package/dist/{project-agent-entry-GQAPCSOT.js → project-agent-entry-HEBGPLMX.js} +1 -1
  49. package/dist/{project-intelligence-lens-5I2GQBWC.js → project-intelligence-lens-QTQEZXUY.js} +1 -1
  50. package/dist/{project-test-coverage-4RRCHY5W.js → project-test-coverage-4BGDDBBL.js} +1 -1
  51. package/dist/{proof-carrying-change-T33C2SSD.js → proof-carrying-change-SHO2E3DX.js} +1 -1
  52. package/dist/{verified-goal-MK5MXGRY.js → verified-goal-BSREU6R7.js} +1 -1
  53. package/dist/{workspace-AZKZPG45.js → workspace-E3MM3AIE.js} +1 -1
  54. package/dist/{workspace-agent-sync-CGK44F3O.js → workspace-agent-sync-NBIOSXCG.js} +1 -1
  55. package/dist/{workspace-context-S6ZWRUFZ.js → workspace-context-ZDXF6S7S.js} +1 -1
  56. package/dist/{workspace-contract-Y7WRHLYR.js → workspace-contract-E7GVWM7W.js} +1 -1
  57. package/dist/{workspace-explain-CSJL3GJR.js → workspace-explain-YB66UFAS.js} +1 -1
  58. package/dist/{workspace-foundation-LLND2WIF.js → workspace-foundation-LRLYPR36.js} +1 -1
  59. package/dist/{workspace-graph-stream-PHFO2J2E.js → workspace-graph-stream-SJUCBPS4.js} +1 -1
  60. package/dist/workspace-graph-token-efficiency-BTIS6JXL.js +1 -0
  61. package/dist/{workspace-intelligence-ND2N3B2A.js → workspace-intelligence-3IAAM3H3.js} +1 -1
  62. package/dist/{workspace-intelligence-benchmark-S5OXVNLC.js → workspace-intelligence-benchmark-UCGDKMDF.js} +1 -1
  63. package/dist/{workspace-intelligence-runner-LHHJM2AT.js → workspace-intelligence-runner-FPPKTSNK.js} +1 -1
  64. package/dist/{workspace-knowledge-graph-NOGGGENE.js → workspace-knowledge-graph-WNQMNAVL.js} +1 -1
  65. package/dist/{workspace-knowledge-graph-query-WHCGPBGS.js → workspace-knowledge-graph-query-3GPXGWYN.js} +1 -1
  66. package/dist/workspace-knowledge-graph-snapshot-MTFTCVFF.js +1 -0
  67. package/dist/{workspace-mcp-serve-6NVF7AS6.js → workspace-mcp-serve-KSZ2O66S.js} +1 -1
  68. package/dist/{workspace-model-VOQOEDVU.js → workspace-model-5FA2636K.js} +1 -1
  69. package/dist/{workspace-onboarding-ZRLUMBLE.js → workspace-onboarding-RJMTHN7Z.js} +1 -1
  70. package/dist/{workspace-registry-summary-NWZK5IKS.js → workspace-registry-summary-WKENOFEA.js} +1 -1
  71. package/dist/workspace-repair-engine-4JTNNDZL.js +3 -0
  72. package/dist/workspace-run-HFOY2UYT.js +1 -0
  73. package/dist/{workspace-verify-4EQI3MCW.js → workspace-verify-37QL2JYE.js} +1 -1
  74. package/dist/{workspace-watch-BPRU2X7K.js → workspace-watch-P5X6TAFK.js} +1 -1
  75. package/docs/ci-workflows.md +1 -1
  76. package/docs/commands-reference.md +16 -2
  77. package/docs/contracts/ARTIFACT_CATALOG.md +4 -1
  78. package/docs/doctor-command.md +13 -0
  79. package/docs/workspace-knowledge-graph.md +11 -0
  80. package/docs/workspace-repair-engine.md +9 -1
  81. package/docs/workspace-run.md +13 -0
  82. package/package.json +1 -1
  83. package/dist/analyze-4YQ67OCK.js +0 -1
  84. package/dist/autopilot-release-V3A3YCDD.js +0 -1
  85. package/dist/chunk-DWL3PPLA.js +0 -1
  86. package/dist/chunk-EZPLMAW2.js +0 -1
  87. package/dist/chunk-IRLKWRLP.js +0 -3
  88. package/dist/chunk-RMGSMDJW.js +0 -5
  89. package/dist/chunk-TKXRP2B4.js +0 -1
  90. package/dist/chunk-U5ENEDJA.js +0 -7
  91. package/dist/chunk-WCJU3CFG.js +0 -1
  92. package/dist/chunk-ZOE43SGQ.js +0 -1
  93. package/dist/workspace-graph-token-efficiency-WNAFAN2F.js +0 -1
  94. package/dist/workspace-knowledge-graph-snapshot-7XHZNRFK.js +0 -1
  95. package/dist/workspace-repair-engine-VUOCH66O.js +0 -3
  96. package/dist/workspace-run-3YZTVOU6.js +0 -1
@@ -41,9 +41,29 @@
41
41
  "cardsCovered": { "type": "integer", "minimum": 0 },
42
42
  "totalActions": { "type": "integer", "minimum": 0 },
43
43
  "executableActions": { "type": "integer", "minimum": 0 },
44
+ "blockedActions": { "type": "integer", "minimum": 0 },
45
+ "guidanceActions": { "type": "integer", "minimum": 0 },
44
46
  "risk": { "$ref": "#/$defs/riskSummary" }
45
47
  }
46
48
  },
49
+ "execution": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": ["nextActionId", "eligibleActionIds", "blockedActionIds"],
53
+ "properties": {
54
+ "nextActionId": { "type": ["string", "null"] },
55
+ "eligibleActionIds": {
56
+ "type": "array",
57
+ "items": { "type": "string", "minLength": 1 },
58
+ "uniqueItems": true
59
+ },
60
+ "blockedActionIds": {
61
+ "type": "array",
62
+ "items": { "type": "string", "minLength": 1 },
63
+ "uniqueItems": true
64
+ }
65
+ }
66
+ },
47
67
  "actions": {
48
68
  "type": "array",
49
69
  "items": { "$ref": "#/$defs/action" }
@@ -330,6 +350,11 @@
330
350
  "items": { "$ref": "#/$defs/repairStrategyStage" }
331
351
  },
332
352
  "transaction": { "$ref": "#/$defs/dependencyRepairTransaction" },
353
+ "requirements": {
354
+ "type": "array",
355
+ "items": { "$ref": "#/$defs/actionRequirement" }
356
+ },
357
+ "retryPolicy": { "$ref": "#/$defs/retryPolicy" },
333
358
  "status": { "enum": ["ready", "review-required", "blocked", "guidance-only"] },
334
359
  "mode": {
335
360
  "enum": [
@@ -367,6 +392,30 @@
367
392
  "items": { "type": "string" }
368
393
  }
369
394
  }
395
+ },
396
+ "actionRequirement": {
397
+ "type": "object",
398
+ "additionalProperties": false,
399
+ "required": ["kind", "id", "status", "message"],
400
+ "properties": {
401
+ "kind": { "enum": ["executable", "action"] },
402
+ "id": { "type": "string", "minLength": 1 },
403
+ "status": { "enum": ["satisfied", "missing", "pending"] },
404
+ "executable": { "type": "string", "minLength": 1 },
405
+ "actionId": { "type": "string", "minLength": 1 },
406
+ "message": { "type": "string", "minLength": 1 }
407
+ }
408
+ },
409
+ "retryPolicy": {
410
+ "type": "object",
411
+ "additionalProperties": false,
412
+ "required": ["sameGeneration", "resumeWhen"],
413
+ "properties": {
414
+ "sameGeneration": { "enum": ["allowed", "forbidden"] },
415
+ "resumeWhen": {
416
+ "enum": ["immediate", "dependencies-complete", "environment-changed"]
417
+ }
418
+ }
370
419
  }
371
420
  }
372
421
  }
@@ -19,6 +19,10 @@
19
19
  "invariants": {
20
20
  "multiAdapterProjects": true,
21
21
  "missingTools": "decision-required",
22
+ "missingToolSameGenerationRetry": false,
23
+ "missingToolResumeBoundary": "environment-change-and-fresh-plan",
24
+ "plannerExecutorAvailabilityProbe": "shared-launchability-check",
25
+ "setupInstallsHostRuntimes": false,
22
26
  "unsupportedEcosystems": "decision-required",
23
27
  "silentFallbackToModelExecution": false,
24
28
  "mutationAuthority": "cli-only",
@@ -148,7 +152,9 @@
148
152
  "everyFailureTerminates": true,
149
153
  "everyMutationIsCheckpointed": true,
150
154
  "workspaceAndProjectScopesUseTheSameEngine": true,
151
- "linkedProjectsRemainBoundaryChecked": true
155
+ "linkedProjectsRemainBoundaryChecked": true,
156
+ "missingToolsBlockExecutionBeforeApproval": true,
157
+ "polyglotActionsDeclareIndependentExecutablePrerequisites": true
152
158
  }
153
159
  },
154
160
  "adapters": [
@@ -0,0 +1 @@
1
+ export{b as printAnalyzeReport,a as runAnalyze}from'./chunk-LLEKVSMX.js';
@@ -1 +1 @@
1
- export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-IRLKWRLP.js';
1
+ export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-CY4QZ3PE.js';
@@ -0,0 +1 @@
1
+ export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-LDNX2R6V.js';
@@ -1 +1 @@
1
- import {a as a$1}from'./chunk-A5FBGRJA.js';import {g as g$1,p}from'./chunk-YS34N35Y.js';import {g,h}from'./chunk-FE5R6EUV.js';import {t,s}from'./chunk-ODK4LCEL.js';import {s as s$1,q}from'./chunk-RGNCL5OB.js';import {t as t$1}from'./chunk-VQZ5PI5J.js';import a from'path';import {existsSync}from'fs';import m from'fs-extra';var f=t.workspaceRegistry,w=s.workspaceRegistry.schemaVersion;function E(r){return {slug:r.slug,relativePath:r.relativePath,framework:r.framework,kit:r.kit,source:r.source}}async function b(r){let e=t$1(r,"workspace.json").find(t=>existsSync(t));if(!e)return {exists:false,legacyProjectCount:0};try{let t=await m.readJson(e),c=Array.isArray(t.projects)?t.projects.length:0,o=typeof t.workspace_name=="string"&&t.workspace_name.trim()||typeof t.name=="string"&&t.name.trim()||a.basename(r);return {exists:true,manifestPath:e,workspaceName:o,profile:typeof t.profile=="string"?t.profile:void 0,legacyProjectCount:c}}catch{return {exists:true,manifestPath:e,legacyProjectCount:0,workspaceName:a.basename(r)}}}async function _(r){let e=a$1(r);for(let t of s$1())if(await m.pathExists(t))try{let o=((await m.readJson(t)).workspaces||[]).find(s=>a$1(s.path)===e);if(o)return {exists:true,projectCount:Array.isArray(o.projects)?o.projects.length:0,registryPath:t}}catch{continue}return {exists:false,projectCount:0,registryPath:a.join(q(),"workspaces.json")}}async function T(r,e){let t=a.resolve(r),c=await g(t,g$1),o=await b(t),s=await _(t),i=e?.contract!==void 0||!!c,n=[];if(e?.contract)n=e.contract.projects||[];else if(i)try{let{contract:A}=await p({workspacePath:t});n=A.projects||[];}catch{n=[];}let d={contract:{exists:i,projectCount:n.length,path:g$1},globalRegistry:{exists:s.exists,projectCount:s.projectCount,path:s.registryPath},legacyWorkspaceJson:{exists:o.exists,projectCount:o.legacyProjectCount,path:o.manifestPath?a.relative(t,o.manifestPath):void 0}},p$1="none",u=[],y=0;return i?(p$1="workspace.contract.json",u=n.map(E),y=u.length):s.projectCount>0?(p$1="global-registry",y=s.projectCount):o.legacyProjectCount>0&&(p$1="legacy-workspace.json",y=o.legacyProjectCount),{contractExists:i,summary:{schemaVersion:w,kind:"rapidkit.workspace.registry",workspacePath:t,workspaceName:o.workspaceName||a.basename(t),profile:o.profile,projectCount:y,authority:p$1,contractPath:g$1,projects:u,sources:d}}}async function U(r){let e=await g(r,f);if(!e)return null;try{let t=await m.readJson(e);return t?.schemaVersion!==w?null:t}catch{return null}}async function D(r,e){let t=await M(r,e);return await h(r,f,t),t}async function M(r,e){return {...(await T(r,{contract:e?.contract})).summary,generatedAt:(e?.now??new Date).toISOString(),registrySummaryPath:f}}function F(r,e=""){return r.projectCount>0?r.authority==="workspace.contract.json"?`${r.projectCount} project(s) registered in workspace contract${e}.`:r.authority==="global-registry"?`${r.projectCount} project(s) registered in global workspace registry${e}.`:`${r.projectCount} project(s) registered in legacy workspace manifest${e}.`:`Workspace state exists, but no projects are registered yet${e}.`}export{f as a,w as b,T as c,U as d,D as e,M as f,F as g};
1
+ import {a as a$1}from'./chunk-A5FBGRJA.js';import {g as g$1,p}from'./chunk-WPZUKU2B.js';import {g,h}from'./chunk-FE5R6EUV.js';import {t,s}from'./chunk-ODK4LCEL.js';import {s as s$1,q}from'./chunk-RGNCL5OB.js';import {t as t$1}from'./chunk-VQZ5PI5J.js';import a from'path';import {existsSync}from'fs';import m from'fs-extra';var f=t.workspaceRegistry,w=s.workspaceRegistry.schemaVersion;function E(r){return {slug:r.slug,relativePath:r.relativePath,framework:r.framework,kit:r.kit,source:r.source}}async function b(r){let e=t$1(r,"workspace.json").find(t=>existsSync(t));if(!e)return {exists:false,legacyProjectCount:0};try{let t=await m.readJson(e),c=Array.isArray(t.projects)?t.projects.length:0,o=typeof t.workspace_name=="string"&&t.workspace_name.trim()||typeof t.name=="string"&&t.name.trim()||a.basename(r);return {exists:true,manifestPath:e,workspaceName:o,profile:typeof t.profile=="string"?t.profile:void 0,legacyProjectCount:c}}catch{return {exists:true,manifestPath:e,legacyProjectCount:0,workspaceName:a.basename(r)}}}async function _(r){let e=a$1(r);for(let t of s$1())if(await m.pathExists(t))try{let o=((await m.readJson(t)).workspaces||[]).find(s=>a$1(s.path)===e);if(o)return {exists:true,projectCount:Array.isArray(o.projects)?o.projects.length:0,registryPath:t}}catch{continue}return {exists:false,projectCount:0,registryPath:a.join(q(),"workspaces.json")}}async function T(r,e){let t=a.resolve(r),c=await g(t,g$1),o=await b(t),s=await _(t),i=e?.contract!==void 0||!!c,n=[];if(e?.contract)n=e.contract.projects||[];else if(i)try{let{contract:A}=await p({workspacePath:t});n=A.projects||[];}catch{n=[];}let d={contract:{exists:i,projectCount:n.length,path:g$1},globalRegistry:{exists:s.exists,projectCount:s.projectCount,path:s.registryPath},legacyWorkspaceJson:{exists:o.exists,projectCount:o.legacyProjectCount,path:o.manifestPath?a.relative(t,o.manifestPath):void 0}},p$1="none",u=[],y=0;return i?(p$1="workspace.contract.json",u=n.map(E),y=u.length):s.projectCount>0?(p$1="global-registry",y=s.projectCount):o.legacyProjectCount>0&&(p$1="legacy-workspace.json",y=o.legacyProjectCount),{contractExists:i,summary:{schemaVersion:w,kind:"rapidkit.workspace.registry",workspacePath:t,workspaceName:o.workspaceName||a.basename(t),profile:o.profile,projectCount:y,authority:p$1,contractPath:g$1,projects:u,sources:d}}}async function U(r){let e=await g(r,f);if(!e)return null;try{let t=await m.readJson(e);return t?.schemaVersion!==w?null:t}catch{return null}}async function D(r,e){let t=await M(r,e);return await h(r,f,t),t}async function M(r,e){return {...(await T(r,{contract:e?.contract})).summary,generatedAt:(e?.now??new Date).toISOString(),registrySummaryPath:f}}function F(r,e=""){return r.projectCount>0?r.authority==="workspace.contract.json"?`${r.projectCount} project(s) registered in workspace contract${e}.`:r.authority==="global-registry"?`${r.projectCount} project(s) registered in global workspace registry${e}.`:`${r.projectCount} project(s) registered in legacy workspace manifest${e}.`:`Workspace state exists, but no projects are registered yet${e}.`}export{f as a,w as b,T as c,U as d,D as e,M as f,F as g};