workspai 0.65.0 → 0.67.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 (211) hide show
  1. package/README.md +28 -23
  2. package/contracts/agent-customization-pack.v1.json +4 -2
  3. package/contracts/analyze-last-run.v1.json +9 -1
  4. package/contracts/cli-runtime-command-inventory.v1.snapshot.json +117 -0
  5. package/contracts/extension-cli-compatibility.v1.json +6 -0
  6. package/contracts/published-contract-catalog.v1.json +30 -0
  7. package/contracts/runtime-command-surface.v1.json +100 -2
  8. package/contracts/workspace-activity-board.v1.json +114 -0
  9. package/contracts/workspace-activity-event.v1.json +132 -0
  10. package/contracts/workspace-activity-monitor-fleet.v1.json +18 -0
  11. package/contracts/workspace-activity-monitor-snapshot.v1.json +161 -0
  12. package/contracts/workspace-intelligence/agent-bootstrap-receipt.v1.json +17 -0
  13. package/contracts/workspace-intelligence/mcp-design.v1.json +49 -2
  14. package/contracts/workspace-intelligence/project-agent-entry.v1.json +3 -0
  15. package/contracts/workspace-intelligence/project-context-agent.v1.json +49 -7
  16. package/contracts/workspace-intelligence/project-knowledge-graph-reference.v1.json +51 -0
  17. package/contracts/workspace-intelligence/workspace-intelligence-benchmark.v1.json +196 -0
  18. package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +97 -2
  19. package/contracts/workspace-intelligence/workspace-skills-index.v1.json +34 -0
  20. package/contracts/workspace-intelligence-architecture.v1.json +17 -0
  21. package/contracts/workspace-intelligence-chain.v1.json +17 -0
  22. package/dist/analyze-IC2KRVCG.js +1 -0
  23. package/dist/{artifact-remediation-plan-XIQNI35L.js → artifact-remediation-plan-GFFHC2ZU.js} +1 -1
  24. package/dist/autopilot-release-RECEZAZI.js +1 -0
  25. package/dist/capabilities-command-X4WZIJNR.js +1 -0
  26. package/dist/chunk-2LIVMG5C.js +2 -0
  27. package/dist/chunk-2M62CU3O.js +2 -0
  28. package/dist/chunk-2MTJWPQ4.js +1 -0
  29. package/dist/chunk-2MVIRJJR.js +1 -0
  30. package/dist/chunk-2RPFCBS4.js +1 -0
  31. package/dist/chunk-3O7LZPKA.js +4 -0
  32. package/dist/chunk-3OGPTLI2.js +1 -0
  33. package/dist/{chunk-6TBTMWNA.js → chunk-4RV4JVGR.js} +1 -1
  34. package/dist/{chunk-YYQEWAES.js → chunk-4WVOAX2V.js} +1 -1
  35. package/dist/{chunk-N4QQADXX.js → chunk-5EVDW7JM.js} +1 -1
  36. package/dist/{chunk-J3X56S7L.js → chunk-5ME4W4LN.js} +1 -1
  37. package/dist/chunk-5OA33JH2.js +2 -0
  38. package/dist/chunk-5TY74LLW.js +2 -0
  39. package/dist/chunk-6254CWUY.js +49 -0
  40. package/dist/{chunk-D5YJOQYK.js → chunk-6E2Y3XGT.js} +1 -1
  41. package/dist/chunk-ARUFY5W3.js +1 -0
  42. package/dist/chunk-B4IVVTMQ.js +2 -0
  43. package/dist/{chunk-HDNATYW7.js → chunk-BHFRP7TV.js} +1 -1
  44. package/dist/{chunk-KTN2ARZJ.js → chunk-BHM6RHTA.js} +3 -3
  45. package/dist/chunk-BRYJTW6S.js +2 -0
  46. package/dist/{chunk-HCFWT42C.js → chunk-BUYLM6QV.js} +1 -1
  47. package/dist/chunk-CPR2CMOY.js +1 -0
  48. package/dist/{chunk-XGE2FDI4.js → chunk-CZVT7T2X.js} +1 -1
  49. package/dist/chunk-EHCKITR4.js +2 -0
  50. package/dist/chunk-ENZPM52J.js +1 -0
  51. package/dist/chunk-FPDH3N3A.js +7 -0
  52. package/dist/{chunk-PXWKMPPI.js → chunk-FX5J6JCK.js} +1 -1
  53. package/dist/chunk-FY4X2VOE.js +39 -0
  54. package/dist/chunk-GIQ4SDRJ.js +1 -0
  55. package/dist/chunk-H77ZNH5O.js +1 -0
  56. package/dist/{chunk-2RL6RRT2.js → chunk-HQLBO23O.js} +50 -50
  57. package/dist/chunk-HYE5UHPV.js +2 -0
  58. package/dist/{chunk-D65FCQIO.js → chunk-IKUFNK46.js} +1 -1
  59. package/dist/{chunk-WRQWVSBJ.js → chunk-IQQMFRWM.js} +1 -1
  60. package/dist/chunk-JCGSIDMC.js +2 -0
  61. package/dist/chunk-KENOAC2Q.js +13 -0
  62. package/dist/chunk-KQ2TMI26.js +97 -0
  63. package/dist/chunk-L5Q2S5GY.js +3 -0
  64. package/dist/chunk-LPCZHKD5.js +1 -0
  65. package/dist/chunk-N4QFNOAI.js +1 -0
  66. package/dist/chunk-NMXGSVMD.js +1 -0
  67. package/dist/{chunk-GQSRNUCU.js → chunk-NVND4727.js} +3 -3
  68. package/dist/{chunk-W6FHVXNL.js → chunk-OCNPOYMA.js} +1 -1
  69. package/dist/chunk-PSYQ6IJA.js +12 -0
  70. package/dist/{chunk-VRGEPPUB.js → chunk-QMQBX3RV.js} +1 -1
  71. package/dist/{chunk-YUGKQ44M.js → chunk-SLFOUSRW.js} +1 -1
  72. package/dist/chunk-SRLWHOLF.js +1 -0
  73. package/dist/chunk-SVYY55IS.js +157 -0
  74. package/dist/chunk-SX6A656X.js +1 -0
  75. package/dist/{chunk-X6TNBARH.js → chunk-TABXSDTR.js} +2 -2
  76. package/dist/chunk-THIG2YQP.js +681 -0
  77. package/dist/chunk-TP7VKEUF.js +1 -0
  78. package/dist/chunk-U5ENEDJA.js +7 -0
  79. package/dist/chunk-UTV4DTNM.js +1 -0
  80. package/dist/chunk-VI4ZRAY6.js +1 -0
  81. package/dist/chunk-VQZ5PI5J.js +1 -0
  82. package/dist/chunk-VWBMDGPY.js +9 -0
  83. package/dist/chunk-XDPTAV2T.js +2 -0
  84. package/dist/chunk-XWKGZRHN.js +1 -0
  85. package/dist/chunk-Y35VLVF6.js +5 -0
  86. package/dist/{chunk-VYDURWN7.js → chunk-Y4Z6CEII.js} +1 -1
  87. package/dist/chunk-YYY2WXOH.js +1 -0
  88. package/dist/chunk-ZGHJIQXL.js +1 -0
  89. package/dist/chunk-ZI2E7P6O.js +4 -0
  90. package/dist/{create-ALT2ME6H.js → create-72ITVZXV.js} +1 -1
  91. package/dist/{demo-kit-QHIDCSBI.js → demo-kit-5UQH2OXC.js} +1 -1
  92. package/dist/{doctor-RW4R3O5C.js → doctor-CVYUESRQ.js} +1 -1
  93. package/dist/{dotnet-webapi-clean-AVHPJG7Y.js → dotnet-webapi-clean-YEHYIGOT.js} +1 -1
  94. package/dist/{goal-lifecycle-VYOKS6E6.js → goal-lifecycle-H55AGFCB.js} +1 -1
  95. package/dist/goal-pack-6OBZOPCD.js +1 -0
  96. package/dist/{gofiber-standard-47S2GYAO.js → gofiber-standard-C44IIQYH.js} +1 -1
  97. package/dist/{gogin-standard-EWB4XNOI.js → gogin-standard-X7VKACVR.js} +1 -1
  98. package/dist/index.d.ts +20 -2
  99. package/dist/index.js +177 -177
  100. package/dist/live-command-5VXPR43F.js +15 -0
  101. package/dist/{pipeline-U4N2DVD7.js → pipeline-SKYOXWHW.js} +1 -1
  102. package/dist/{project-agent-entry-YAQCHIMP.js → project-agent-entry-5IUBEREI.js} +1 -1
  103. package/dist/project-intelligence-lens-LQCN65P2.js +1 -0
  104. package/dist/{project-test-coverage-4S7MEQ6T.js → project-test-coverage-KD4LLFGV.js} +1 -1
  105. package/dist/{pythonRapidkitExec-VAW5XE4Z.js → pythonRapidkitExec-44ORGQ4R.js} +1 -1
  106. package/dist/{rust-axum-M5X4ZC4Z.js → rust-axum-JKZTZDRZ.js} +1 -1
  107. package/dist/{springboot-standard-Y5ADLZMQ.js → springboot-standard-PI4FLTAN.js} +1 -1
  108. package/dist/verified-goal-HN7G532B.js +1 -0
  109. package/dist/{workspace-HGUZWNAB.js → workspace-5W7FYGDQ.js} +1 -1
  110. package/dist/{workspace-agent-sync-GEN3KBAX.js → workspace-agent-sync-OZCDQORK.js} +1 -1
  111. package/dist/{workspace-archive-ZBCKJHXS.js → workspace-archive-NOSGRKRZ.js} +1 -1
  112. package/dist/{workspace-context-4WIWFW26.js → workspace-context-L65BR5L6.js} +1 -1
  113. package/dist/{workspace-contract-7DXK4GF5.js → workspace-contract-JYHNEJPV.js} +1 -1
  114. package/dist/workspace-explain-SUBK6FLO.js +1 -0
  115. package/dist/workspace-explain-contract-WMREJWHF.js +1 -0
  116. package/dist/{workspace-feedback-RQ4TGJW6.js → workspace-feedback-MWGCT5R2.js} +1 -1
  117. package/dist/{workspace-foundation-J3NNRMI3.js → workspace-foundation-VIB3PXNH.js} +1 -1
  118. package/dist/{workspace-graph-stream-PQI7OGCE.js → workspace-graph-stream-45JHE4MG.js} +1 -1
  119. package/dist/workspace-graph-token-efficiency-NPECU6Y5.js +1 -0
  120. package/dist/{workspace-history-SYCDK7FO.js → workspace-history-JKW3VJO3.js} +1 -1
  121. package/dist/{workspace-intelligence-6FS26JOQ.js → workspace-intelligence-3C47PK4L.js} +1 -1
  122. package/dist/workspace-intelligence-benchmark-SRDIHX3X.js +1 -0
  123. package/dist/workspace-intelligence-evaluation-OJIQS5SN.js +1 -0
  124. package/dist/{workspace-intelligence-runner-XYUPCSLN.js → workspace-intelligence-runner-OWN5ZI6W.js} +1 -1
  125. package/dist/{workspace-intelligence-runtime-registry-IW6J53LO.js → workspace-intelligence-runtime-registry-UKFB3BI7.js} +1 -1
  126. package/dist/workspace-knowledge-graph-AKG5NUU6.js +1 -0
  127. package/dist/{workspace-knowledge-graph-contract-L3CLAM2M.js → workspace-knowledge-graph-contract-X52KXBXJ.js} +1 -1
  128. package/dist/{workspace-knowledge-graph-query-FZXSPWGK.js → workspace-knowledge-graph-query-DXA4CROE.js} +1 -1
  129. package/dist/workspace-knowledge-graph-snapshot-SNI5K2RL.js +1 -0
  130. package/dist/{workspace-marker-7NHMDIRL.js → workspace-marker-XGAWZZDX.js} +1 -1
  131. package/dist/workspace-mcp-serve-PK226GMV.js +3 -0
  132. package/dist/workspace-model-R4ISKDB2.js +1 -0
  133. package/dist/{workspace-onboarding-X3PWRIIS.js → workspace-onboarding-Y5RPEFUD.js} +1 -1
  134. package/dist/{workspace-python-engine-state-J4QKW55K.js → workspace-python-engine-state-BE4A3BL5.js} +1 -1
  135. package/dist/{workspace-readme-G7TZ3V5T.js → workspace-readme-PL5V3UDH.js} +2 -2
  136. package/dist/{workspace-registry-summary-LJN4WHIZ.js → workspace-registry-summary-STGUGROG.js} +1 -1
  137. package/dist/workspace-repair-engine-FNLL5ZDK.js +3 -0
  138. package/dist/workspace-run-GFBFGUFM.js +1 -0
  139. package/dist/{workspace-verify-USRRIM2F.js → workspace-verify-AXVX3PF3.js} +1 -1
  140. package/dist/{workspace-watch-43YZPLF7.js → workspace-watch-RLBEJKXE.js} +1 -1
  141. package/docs/DEVELOPMENT.md +19 -0
  142. package/docs/README.md +19 -16
  143. package/docs/SETUP.md +10 -0
  144. package/docs/agent-entry.md +22 -7
  145. package/docs/ci-workflows.md +1 -1
  146. package/docs/commands-reference.md +58 -8
  147. package/docs/contracts/ARTIFACT_CATALOG.md +64 -44
  148. package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +1 -0
  149. package/docs/contracts/NAMING_AND_COEXISTENCE.md +20 -18
  150. package/docs/contracts/README.md +7 -3
  151. package/docs/real-world-qualification.md +19 -3
  152. package/docs/workspace-intelligence-benchmark.md +82 -0
  153. package/docs/workspace-knowledge-graph.md +95 -27
  154. package/docs/workspace-live-activity.md +209 -0
  155. package/docs/workspace-operations.md +32 -9
  156. package/package.json +4 -2
  157. package/dist/analyze-5PDVWECJ.js +0 -1
  158. package/dist/autopilot-release-JVIJCTKX.js +0 -1
  159. package/dist/capabilities-command-LHM3XIS6.js +0 -1
  160. package/dist/chunk-2647BYBC.js +0 -1
  161. package/dist/chunk-27UR373Z.js +0 -1
  162. package/dist/chunk-2C5ZBVBI.js +0 -2
  163. package/dist/chunk-6JWNDWOA.js +0 -1
  164. package/dist/chunk-CCDGHPEJ.js +0 -2
  165. package/dist/chunk-DFG33SBR.js +0 -2
  166. package/dist/chunk-FY4IIAIF.js +0 -1
  167. package/dist/chunk-HEZZ72V4.js +0 -94
  168. package/dist/chunk-HN7P4T3B.js +0 -681
  169. package/dist/chunk-ILIBOMYL.js +0 -1
  170. package/dist/chunk-J7QYANXK.js +0 -8
  171. package/dist/chunk-JD3A5QM6.js +0 -2
  172. package/dist/chunk-JQLJBK5N.js +0 -1
  173. package/dist/chunk-KLSSPJTV.js +0 -1
  174. package/dist/chunk-L22EABIC.js +0 -7
  175. package/dist/chunk-LNXIMF3O.js +0 -1
  176. package/dist/chunk-MDTI3UEB.js +0 -1
  177. package/dist/chunk-MOSXTVPU.js +0 -1
  178. package/dist/chunk-MYJQGGIU.js +0 -5
  179. package/dist/chunk-NOV6723U.js +0 -1
  180. package/dist/chunk-NYEAMMUL.js +0 -1
  181. package/dist/chunk-NZ3WZYD5.js +0 -1
  182. package/dist/chunk-O5B2L3R2.js +0 -1
  183. package/dist/chunk-OWB5KWSS.js +0 -13
  184. package/dist/chunk-P5PSZQPB.js +0 -2
  185. package/dist/chunk-QCKWQFCD.js +0 -1
  186. package/dist/chunk-QI3HG6IG.js +0 -144
  187. package/dist/chunk-SWGSFLTC.js +0 -1
  188. package/dist/chunk-THIOE2PB.js +0 -2
  189. package/dist/chunk-U5FCQTVL.js +0 -4
  190. package/dist/chunk-UXEO5QCF.js +0 -33
  191. package/dist/chunk-VR6XMUF3.js +0 -2
  192. package/dist/chunk-VVJK5NFY.js +0 -2
  193. package/dist/chunk-VXKWWX7S.js +0 -8
  194. package/dist/chunk-W322YDHS.js +0 -49
  195. package/dist/chunk-WPRLXKWC.js +0 -8
  196. package/dist/chunk-Y5YAP4F3.js +0 -2
  197. package/dist/chunk-YN5X2FTP.js +0 -1
  198. package/dist/chunk-YOCN7GF4.js +0 -1
  199. package/dist/goal-pack-YWPI43QL.js +0 -1
  200. package/dist/project-intelligence-lens-MRQR2LQW.js +0 -1
  201. package/dist/verified-goal-WM34TTGE.js +0 -1
  202. package/dist/workspace-explain-TE2LGOAV.js +0 -1
  203. package/dist/workspace-explain-contract-V2IVSROX.js +0 -1
  204. package/dist/workspace-graph-token-efficiency-2I4X374C.js +0 -1
  205. package/dist/workspace-intelligence-evaluation-CQDKOYZZ.js +0 -1
  206. package/dist/workspace-knowledge-graph-SWCKDTPF.js +0 -1
  207. package/dist/workspace-knowledge-graph-snapshot-M572JRB4.js +0 -1
  208. package/dist/workspace-mcp-serve-IBMTFQDY.js +0 -3
  209. package/dist/workspace-model-ZL6WCICX.js +0 -1
  210. package/dist/workspace-repair-engine-NX7I632M.js +0 -3
  211. package/dist/workspace-run-6GT5OBQ5.js +0 -1
@@ -0,0 +1 @@
1
+ var r="workspai.doctor-capabilities.v1",k="universal-doctor-capabilities-v1",t="workspai.doctor-validation.v1",w="doctor-disease-corpus-v1";var o={model:".workspai/reports/workspace-model.json",knowledgeGraph:".workspai/reports/workspace-knowledge-graph.json",snapshot:".workspai/reports/workspace-model-snapshot.json",diff:".workspai/reports/workspace-model-diff-last-run.json",impact:".workspai/reports/workspace-impact-last-run.json",analyze:".workspai/reports/analyze-last-run.json",doctor:".workspai/reports/doctor-last-run.json",contractVerify:".workspai/reports/workspace-contract-verify-last-run.json",readiness:".workspai/reports/release-readiness-last-run.json",verify:".workspai/reports/workspace-verify-last-run.json",history:".workspai/reports/workspace-intelligence-history.json",agentContext:".workspai/reports/workspace-context-agent.json",agentIndex:".workspai/reports/INDEX.json",agentCustomizationPack:".workspai/reports/agent-customization-pack.json",skillsIndex:".workspai/reports/workspace-skills-index.json",agents:"AGENTS.md",explain:".workspai/reports/workspace-explain-last-run.json",intelligenceRun:".workspai/reports/workspace-intelligence-run-last-run.json",evaluationLive:".workspai/reports/workspace-intelligence-evaluation-live.json",evaluationLastRun:".workspai/reports/workspace-intelligence-evaluation-last-run.json",verifiedGoalStatus:".workspai/reports/verified-goal-last-run.json",repairTransaction:".workspai/reports/workspace-repair-last-run.json"},s={model:"workspace-model.v1",knowledgeGraph:"workspace-knowledge-graph.v1",snapshot:"workspace-model-snapshot.v1",diff:"workspace-model-diff.v1",impact:"workspace-impact.v1",analyze:"rapidkit-analyze-v1",doctor:"doctor-workspace-evidence-v1",contractVerify:"workspace-contract-verify.v1",readiness:"release-readiness-v1",verify:"workspace-verify.v1",history:"workspace-intelligence-history.v1",agentContext:"workspace-context.v1",agentIndex:"rapidkit-agent-reports-index.v1",agentCustomizationPack:"rapidkit-agent-customization-pack.v1",skillsIndex:"workspace-skills-index.v1",agents:null,explain:"workspace-explain.v1",intelligenceRun:"workspace-intelligence-run.v1",evaluationLive:"workspace-intelligence-evaluation.v1",evaluationLastRun:"workspace-intelligence-evaluation.v1",verifiedGoalStatus:"workspai.verified-goal-status.v1",repairTransaction:"workspai.workspace-repair-transaction.v1"},c={model:"contracts/workspace-intelligence/workspace-model.v1.json",knowledgeGraph:"contracts/workspace-intelligence/workspace-knowledge-graph.v1.json",snapshot:"contracts/workspace-intelligence/workspace-model-snapshot.v1.json",diff:"contracts/workspace-intelligence/workspace-model-diff.v1.json",impact:"contracts/workspace-intelligence/workspace-impact.v1.json",analyze:"contracts/analyze-last-run.v1.json",doctor:"contracts/doctor-workspace-evidence.v1.json",contractVerify:"contracts/workspace-intelligence/workspace-contract-verify.v1.json",readiness:"contracts/release-readiness.v1.json",verify:"contracts/workspace-intelligence/workspace-verify.v1.json",history:"contracts/workspace-intelligence/workspace-intelligence-history.v1.json",agentContext:"contracts/workspace-intelligence/workspace-context.v1.json",agentIndex:"contracts/workspace-intelligence/agent-reports-index.v1.json",agentCustomizationPack:"contracts/workspace-intelligence/agent-customization-pack-report.v1.json",skillsIndex:"contracts/workspace-intelligence/workspace-skills-index.v1.json",agents:null,explain:"contracts/workspace-intelligence/workspace-explain.v1.json",intelligenceRun:"contracts/workspace-intelligence/workspace-intelligence-run.v1.json",evaluationLive:"contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json",evaluationLastRun:"contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json",verifiedGoalStatus:"contracts/workspace-intelligence/verified-goal-status.v1.json",repairTransaction:"contracts/workspace-intelligence/workspace-repair-transaction.v1.json"},l={goalIndex:{artifactPath:".workspai/goals/index.json",schemaVersion:"workspai.goal-index.v1",contractPath:"contracts/workspace-intelligence/goal-index.v1.json",producerCommands:[["goal"]]},projectWorkspaceLink:{artifactPath:".workspai/workspace-link.local.json",schemaVersion:"project-workspace-link.v1",contractPath:"contracts/project-workspace-link.v1.json",producerCommands:[["adopt"],["import"],["project","workspace","relink"],["workspace","sync"]]},projectContextAgent:{artifactPath:".workspai/reports/project-context-agent.json",schemaVersion:"project-context-agent.v1",contractPath:"contracts/workspace-intelligence/project-context-agent.v1.json",producerCommands:[["adopt"],["import"],["workspace","sync"],["workspace","agent-sync","--write"]]},projectKnowledgeGraphReference:{artifactPath:".workspai/reports/project-knowledge-graph-reference.json",schemaVersion:"project-knowledge-graph-reference.v1",contractPath:"contracts/workspace-intelligence/project-knowledge-graph-reference.v1.json",producerCommands:[["adopt"],["import"],["workspace","model"],["workspace","sync"],["workspace","intelligence","run"]]},projectAgentEntry:{artifactPath:".workspai/agent-entry.v1.json",schemaVersion:"workspai.agent-entry.v1",contractPath:"contracts/workspace-intelligence/project-agent-entry.v1.json",producerCommands:[["adopt"],["import"],["workspace","sync"],["workspace","agent-sync","--write"]]},workspaceContract:{artifactPath:".workspai/workspace.contract.json",schemaVersion:1,contractPath:"contracts/workspace-contract.v1.json",producerCommands:[["workspace","sync"],["workspace","contract","sync"]]},workspaceModelCache:{artifactPath:".workspai/cache/workspace-model.v1.json",schemaVersion:"workspace-model-cache.v1",contractPath:"contracts/workspace-model-cache.v1.json",producerCommands:[["workspace","model"]]},workspaceRegistry:{artifactPath:".workspai/workspace-registry.v1.json",schemaVersion:"workspace-registry.v1",contractPath:"contracts/workspace-registry.v1.json",producerCommands:[["workspace","sync"]]},compatibilityMatrix:{artifactPath:".workspai/compatibility-matrix.json",schemaVersion:"rapidkit.compatibility-matrix.v1",contractPath:"contracts/compatibility-matrix.v1.json",producerCommands:[["bootstrap"]]},doctorWorkspaceCache:{artifactPath:".workspai/reports/doctor-workspace-cache.json",schemaVersion:"doctor-workspace-cache-v2",contractPath:"contracts/doctor-workspace-cache.v2.json",producerCommands:[["doctor","workspace"]]},doctorCapabilities:{artifactPath:".workspai/reports/doctor-capabilities.json",schemaVersion:r,contractPath:"contracts/workspace-intelligence/doctor-capabilities.v1.json",producerCommands:[["doctor","capabilities","--write"]]},doctorValidation:{artifactPath:".workspai/reports/doctor-validation-last-run.json",schemaVersion:t,contractPath:"contracts/workspace-intelligence/doctor-validation.v1.json",producerCommands:[["doctor","capabilities","--validate","--write"]]},bootstrapCompliance:{artifactPath:".workspai/reports/bootstrap-compliance.latest.json",schemaVersion:"bootstrap-compliance.v1",contractPath:"contracts/bootstrap-compliance.v1.json",producerCommands:[["bootstrap"]]},mirrorOps:{artifactPath:".workspai/reports/mirror-ops.latest.json",schemaVersion:"mirror-ops.v1",contractPath:"contracts/mirror-ops.v1.json",producerCommands:[["mirror","status"]]},transparencyEvidence:{artifactPath:".workspai/reports/transparency-evidence.latest.json",schemaVersion:"transparency-evidence.v1",contractPath:"contracts/transparency-evidence.v1.json",producerCommands:[["mirror","sync"]]},workspaceShareBundle:{artifactPath:".workspai/reports/share-bundle.json",schemaVersion:"1.1",schemaVersionField:"schema_version",contractPath:"contracts/workspace-share-bundle.v1.json",producerCommands:[["workspace","share"]]},doctorProject:{artifactPath:".workspai/reports/doctor-project-last-run.json",schemaVersion:"doctor-project-evidence-v1",contractPath:"contracts/doctor-project-evidence.v1.json",producerCommands:[["doctor","project"]]},doctorReceipt:{artifactPath:".workspai/reports/doctor-receipt-last-run.json",schemaVersion:"workspai.doctor-receipt.v1",contractPath:"contracts/workspace-intelligence/doctor-receipt.v1.json",producerCommands:[["doctor","workspace"],["doctor","project"]]},projectTestCoverage:{artifactPath:".workspai/reports/project-test-coverage-last-run.json",schemaVersion:"workspai.project-test-coverage.v1",contractPath:"contracts/project-test-coverage.v1.json",producerCommands:[["project","coverage"]]},goalPackLastRun:{artifactPath:".workspai/reports/goal-pack-last-run.json",schemaVersion:"workspai.goal-pack.v1",contractPath:"contracts/workspace-intelligence/goal-pack.v1.json",producerCommands:[["goal"]]},doctorRemediationPlan:{artifactPath:".workspai/reports/doctor-remediation-plan-last-run.json",schemaVersion:"doctor-remediation-plan-v2",contractPath:"contracts/doctor-remediation-plan.v2.json",producerCommands:[["workspace","remediation-plan"]]},artifactRemediationPlan:{artifactPath:".workspai/reports/artifact-remediation-plan-last-run.json",schemaVersion:"artifact-remediation-plan-v1",contractPath:"contracts/artifact-remediation-plan.v1.json",producerCommands:[["workspace","remediation-plan"]]},doctorFixResult:{artifactPath:".workspai/reports/doctor-fix-result-last-run.json",schemaVersion:"rapidkit-doctor-fix-result-v1",contractPath:"contracts/workspace-intelligence/doctor-fix-result.v1.json",producerCommands:[["doctor","workspace"]]},pipelineLastRun:{artifactPath:".workspai/reports/pipeline-last-run.json",schemaVersion:"rapidkit-pipeline-v1",contractPath:"contracts/pipeline-last-run.v1.json",producerCommands:[["pipeline"]]},autopilotReleaseLastRun:{artifactPath:".workspai/reports/autopilot-release-last-run.json",schemaVersion:"autopilot-release-v1",contractPath:"contracts/autopilot-release.v1.json",producerCommands:[["autopilot","release"]]},autopilotReleaseAlias:{artifactPath:".workspai/reports/autopilot-release.json",schemaVersion:"autopilot-release-v1",contractPath:"contracts/autopilot-release.v1.json",producerCommands:[["autopilot","release"]]},workspaceRunLast:{artifactPath:".workspai/reports/workspace-run-last.json",schemaVersion:"workspace-run-v1",contractPath:"contracts/workspace-run-last.v1.json",producerCommands:[["workspace","run"]]},workspaiMcpDesign:{artifactPath:".workspai/reports/workspai-mcp-design.json",schemaVersion:"workspai-mcp-design.v1",contractPath:"contracts/workspace-intelligence/mcp-design.v1.json",producerCommands:[["workspace","agent-sync","--write"]]},workspaceIntelligenceBenchmark:{artifactPath:".workspai/reports/workspace-intelligence-benchmark-last-run.json",schemaVersion:"workspace-intelligence-benchmark.v1",contractPath:"contracts/workspace-intelligence/workspace-intelligence-benchmark.v1.json",producerCommands:[["workspace","graph","benchmark-suite","--write"]]},legacyMcpDesign:{artifactPath:".workspai/reports/rapidkit-mcp-design.json",schemaVersion:"workspai-mcp-design.v1",contractPath:"contracts/workspace-intelligence/mcp-design.v1.json",producerCommands:[["workspace","agent-sync","--write"]]},workspaceWhy:{artifactPath:".workspai/reports/workspace-why-last-run.json",schemaVersion:s.explain,contractPath:c.explain,producerCommands:[["workspace","why"]]},workspaceTrace:{artifactPath:".workspai/reports/workspace-trace-last-run.json",schemaVersion:s.explain,contractPath:c.explain,producerCommands:[["workspace","trace"]]},agentHooks:{artifactPath:".vscode/workspai-agent-hooks.json",schemaVersion:"workspai-agent-hooks.v1",contractPath:"contracts/workspace-intelligence/agent-hooks.v1.json",producerCommands:[["workspace","agent-sync"]]},infraPlan:{artifactPath:".workspai/reports/infra-plan.json",schemaVersion:"rapidkit.infra-plan.v1",contractPath:"contracts/infra-plan.v1.json",producerCommands:[["infra","plan"]]}},h=Object.freeze(Object.fromEntries(Object.entries(l).map(([a,n])=>[a,n.artifactPath]))),u={[o.intelligenceRun]:[["workspace","intelligence","run"]],[o.snapshot]:[["workspace","snapshot"]],[o.history]:[["workspace","feedback","record","--json"]],[o.evaluationLive]:[["workspace","eval","init"],["workspace","eval","record","--json"]],[o.evaluationLastRun]:[["workspace","eval","report","--json"]],[o.verifiedGoalStatus]:[["workspace","goal","plan"],["workspace","goal","verify"]],[o.repairTransaction]:[["workspace","repair","plan"],["workspace","repair","propose"],["workspace","repair","approve"],["workspace","repair","decide"],["workspace","repair","execute"],["workspace","repair","resume"],["workspace","repair","rollback"],["workspace","repair","cancel"]]},j={analyze:"analyze",workspace:"workspace <action> [subaction] [key] [value]",doctor:"doctor [scope]",readiness:"readiness"},f=["analyze","readiness","doctor","workspace"],C=["model","diff","impact","doctor-evidence","contract-evidence","analyze-evidence","readiness-evidence","verify","context","agent-sync","explain"],P=["sync","baseline"],y={sync:[".workspai/workspace.contract.json",".workspai/workspace-registry.v1.json"],baseline:[o.snapshot]},e=o,d={model:{command:["workspace","model","--json","--write"],produces:[e.model,e.knowledgeGraph]},diff:{command:["workspace","diff","--from",e.snapshot,"--json"],produces:[e.diff]},impact:{command:["workspace","impact","--from",e.diff,"--json"],produces:[e.impact]},"doctor-evidence":{command:["doctor","workspace","--json"],produces:[e.doctor]},"contract-evidence":{command:["workspace","contract","verify","--strict","--json"],produces:[e.contractVerify]},"analyze-evidence":{command:["analyze","--json"],produces:[e.analyze]},"readiness-evidence":{command:["readiness","--json","--skip-verify"],produces:[e.readiness]},verify:{command:["workspace","verify","--from-impact",e.impact,"--json"],produces:[e.verify,e.history]},context:{command:["workspace","context","--for-agent","--json","--write","--no-agent-sync"],produces:[e.agentContext]},"agent-sync":{command:["workspace","agent-sync","--write","--json","--preset","enterprise"],produces:[e.agentIndex,e.agentCustomizationPack,e.skillsIndex,e.agents]},explain:{command:["workspace","explain","release-blocked","--json","--write"],produces:[e.explain]}};function I(a){return d[a]}export{r as a,k as b,t as c,w as d,o as e,s as f,c as g,l as h,h as i,u as j,j as k,f as l,C as m,P as n,y as o,d as p,I as q};
@@ -0,0 +1,4 @@
1
+ import {e,d,i,a,b,c}from'./chunk-UTV4DTNM.js';import m from'fs';import y from'path';var E=64*1024,w=1024*1024,_="workspace-activity-monitor-snapshot.v1",T="workspace-activity-monitor-fleet.v1";function N(n){if(!n||typeof n!="object")return false;let s=n;return s.schemaVersion===a&&typeof s.eventId=="string"&&typeof s.runId=="string"&&Number.isInteger(s.sequence)&&Number(s.sequence)>0&&typeof s.timestamp=="string"&&!!s.scope&&typeof s.scope?.id=="string"&&typeof s.scope?.label=="string"&&["ephemeral-project","project","workspace"].includes(String(s.scope?.kind))&&typeof s.scope?.portable=="boolean"&&b.includes(s.kind)&&c.includes(s.status)&&(s.attempt===void 0||Number.isInteger(s.attempt)&&s.attempt>0)&&(s.origin===void 0||typeof s.origin.id=="string"&&typeof s.origin.label=="string"&&["project","workspace-root"].includes(s.origin.kind))&&typeof s.message=="string"}function R(n,s){try{let o=m.statSync(n).size,a;if(o<=E+w)a=m.readFileSync(n,"utf8");else {let t=m.openSync(n,"r");try{let r=Buffer.allocUnsafe(E),d=Buffer.allocUnsafe(w),e=m.readSync(t,r,0,r.length,0),i=Math.max(0,o-d.length),p=m.readSync(t,d,0,d.length,i),c=r.subarray(0,e).toString("utf8"),u=d.subarray(0,p).toString("utf8"),l=u.indexOf(`
2
+ `),g=l>=0?u.slice(l+1):"";a=`${c.endsWith(`
3
+ `)?c:`${c}
4
+ `}${g}`,s.push(`Bounded replay window applied to ${y.basename(n)}.`);}finally{m.closeSync(t);}}return a.split(/\r?\n/).filter(Boolean).flatMap(t=>{try{let r=JSON.parse(t);return N(r)?[r]:[]}catch{return s.push(`Ignored an incomplete activity record in ${y.basename(n)}.`),[]}})}catch(o){return s.push(`Unable to read ${y.basename(n)}: ${o instanceof Error?o.message:String(o)}`),[]}}function W(n,s,o){let a=s.get(n.fromBlockId),t=s.get(n.toBlockId);return !a||!t?"planned":t.status!=="planned"?t.status:o!=="running"&&o!=="planned"?"skipped":a.status==="succeeded"||a.status==="warned"?"running":a.status==="failed"?"failed":a.status==="blocked"?"blocked":a.status==="cancelled"?"cancelled":"planned"}function O(n){let s=e(n.targetPath??process.cwd(),{env:n.env}),o=[],a=y.join(s.statePath,"runs"),t=[];try{t=m.readdirSync(a,{withFileTypes:true}).filter(e=>e.isFile()&&e.name.endsWith(".ndjson")).map(e=>{let i=y.join(a,e.name);return {name:e.name,mtimeMs:m.statSync(i).mtimeMs}}).sort((e,i)=>i.mtimeMs-e.mtimeMs);}catch(e){e.code!=="ENOENT"&&o.push(e instanceof Error?e.message:String(e));}n.runId&&(t=t.filter(e=>e.name===`${n.runId}.ndjson`)),t=t.slice(0,Math.max(1,n.maxRuns??25));let r=t.flatMap(e=>R(y.join(a,e.name),o)).sort((e,i)=>e.timestamp.localeCompare(i.timestamp)||e.sequence-i.sequence),d=Math.max(100,n.maxEvents??2e4);return {resolvedScope:s,events:r.slice(-d),diagnostics:o}}function f(n){let s=new Map,o=new Map,a=new Map;for(let t of n.events){let r=s.get(t.runId);if(!r){let d=Array.isArray(t.attributes?.command)?t.attributes.command.filter(e=>typeof e=="string"):[];r={runId:t.runId,...t.parentRunId?{parentRunId:t.parentRunId}:{},...Number.isInteger(Number(t.attributes?.pid))&&Number(t.attributes?.pid)>0?{pid:Number(t.attributes?.pid)}:{},...t.origin?{origin:t.origin}:{},command:d,status:t.status,startedAt:t.timestamp,updatedAt:t.timestamp,blocks:[],edges:[],touches:[],artifacts:[],warnings:[]},s.set(t.runId,r),o.set(t.runId,new Map),a.set(t.runId,new Map);}if(r.updatedAt=t.timestamp,t.kind.startsWith("run.")){if(r.status=t.status,t.kind==="run.started"&&Array.isArray(t.attributes?.command)){let e=t.attributes?.command;r.command=e.filter(i=>typeof i=="string");}let d=Number(t.attributes?.pid);t.kind==="run.started"&&Number.isInteger(d)&&d>0&&(r.pid=d),t.origin&&(r.origin=t.origin),t.durationMs!==void 0&&(r.durationMs=t.durationMs);}if(t.blockId&&t.kind.startsWith("block.")){let d=o.get(t.runId),e=d.get(t.blockId),i=Number(t.attributes?.order),p=e?.attempt??0,c=t.kind==="block.planned"||t.kind==="block.skipped"&&p===0?void 0:t.kind==="block.started"&&e?.status!=="running"?p+1:Math.max(1,p),u=t.attempt??c,l=[...e?.attempts??[]];if(u!==void 0){let g=l.findIndex(B=>B.attempt===u),v=g>=0?l[g]:void 0,b={attempt:u,status:t.status,startedAt:v?.startedAt??t.timestamp,updatedAt:t.timestamp,...t.progress?{progress:t.progress}:v?.progress?{progress:v.progress}:{},...t.durationMs!==void 0?{durationMs:t.durationMs}:v?.durationMs!==void 0?{durationMs:v.durationMs}:{}};g>=0?l[g]=b:l.push(b);}d.set(t.blockId,{id:t.blockId,label:t.kind==="block.planned"||!e?t.message||t.blockId:e.label,status:t.status,order:Number.isFinite(i)?i:e?.order??d.size+1,...t.parentSpanId?{parentId:t.parentSpanId}:e?.parentId?{parentId:e.parentId}:{},...t.progress?{progress:t.progress}:e?.progress?{progress:e.progress}:{},...t.durationMs!==void 0?{durationMs:t.durationMs}:e?.durationMs!==void 0?{durationMs:e.durationMs}:{},...typeof t.attributes?.layoutHint=="string"?{layoutHint:t.attributes.layoutHint}:e?.layoutHint?{layoutHint:e.layoutHint}:{},...typeof t.attributes?.group=="string"?{group:t.attributes.group}:e?.group?{group:e.group}:{},updatedAt:t.timestamp,...u!==void 0?{attempt:u}:e?.attempt?{attempt:e.attempt}:{},attempts:l});}if(t.kind==="edge.declared"&&t.edge){let d=a.get(t.runId),e=Number(t.attributes?.order);d.set(t.edge.id,{id:t.edge.id,fromBlockId:t.edge.fromBlockId,toBlockId:t.edge.toBlockId,kind:t.edge.kind,status:"planned",order:Number.isFinite(e)?e:d.size+1,updatedAt:t.timestamp});}(t.kind==="touch.observed"||t.kind==="touch.planned")&&(r.touches.push({locator:t.target?.locator??t.message,...t.target?.operation?{operation:t.target.operation}:{},at:t.timestamp}),r.touches=r.touches.slice(-20)),t.kind==="artifact.published"&&(r.artifacts.push({locator:t.target?.locator??t.message,at:t.timestamp}),r.artifacts=r.artifacts.slice(-20)),t.kind==="warning.detected"&&(r.warnings.push(t.message),r.warnings=r.warnings.slice(-20));}for(let[t,r]of s){r.blocks=[...o.get(t)?.values()??[]].sort((e,i)=>e.order-i.order||e.id.localeCompare(i.id));let d=o.get(t)??new Map;r.edges=[...a.get(t)?.values()??[]].map(e=>({...e,status:W(e,d,r.status),updatedAt:d.get(e.toBlockId)?.updatedAt??d.get(e.fromBlockId)?.updatedAt??e.updatedAt})).sort((e,i)=>e.order-i.order||e.id.localeCompare(i.id));}return {schemaVersion:_,generatedAt:new Date().toISOString(),scope:n.resolvedScope.scope,runs:[...s.values()].sort((t,r)=>r.updatedAt.localeCompare(t.updatedAt)),diagnostics:[...n.diagnostics??[]]}}function Q(n){let s=Math.max(0,Math.min(n.events.length,Math.floor(n.eventCount)));return f({resolvedScope:n.resolvedScope,events:n.events.slice(0,s),diagnostics:n.diagnostics})}function P(n){try{return process.kill(n,0),true}catch(s){return s.code==="EPERM"}}function x(n,s=P){return {...n,runs:n.runs.map(o=>{if(o.status!=="running"||!o.pid||s(o.pid))return o;let a=Date.parse(o.updatedAt),t=Date.parse(o.startedAt);return {...o,status:"cancelled",orphaned:true,durationMs:Number.isFinite(a)&&Number.isFinite(t)?Math.max(0,a-t):o.durationMs,blocks:o.blocks.map(r=>({...r,status:r.status==="running"?"cancelled":r.status==="planned"?"skipped":r.status,attempts:r.attempts.map((d,e,i)=>e===i.length-1&&d.status==="running"?{...d,status:"cancelled"}:d)})),edges:o.edges.map(r=>({...r,status:r.status==="running"?"cancelled":r.status==="planned"?"skipped":r.status}))}})}}function H(n){let s=[];try{s=m.readdirSync(n.stateHome,{withFileTypes:true}).filter(e=>e.isDirectory()).flatMap(e=>{let i=y.join(n.stateHome,e.name,"runs");try{return [{path:i,mtimeMs:m.statSync(i).mtimeMs}]}catch{return []}}).sort((e,i)=>i.mtimeMs-e.mtimeMs).slice(0,Math.min(200,Math.max(16,n.maxScopes*4)));}catch(e){e.code!=="ENOENT"&&n.diagnostics.push(e instanceof Error?e.message:String(e));}let o=s.flatMap(e=>{try{return m.readdirSync(e.path,{withFileTypes:true}).filter(i=>i.isFile()&&i.name.endsWith(".ndjson")&&(!n.runId||i.name===`${n.runId}.ndjson`)).map(i=>{let p=y.join(e.path,i.name);return {filePath:p,mtimeMs:m.statSync(p).mtimeMs}})}catch{return []}}).sort((e,i)=>i.mtimeMs-e.mtimeMs).slice(0,Math.max(n.maxRuns*4,n.maxScopes*2)),a=new Map;for(let e of o)for(let i of R(e.filePath,n.diagnostics))a.has(i.eventId)||a.set(i.eventId,i);let t=[...a.values()].sort((e,i)=>e.timestamp.localeCompare(i.timestamp)||e.sequence-i.sequence),r=[...new Set([...t].reverse().map(e=>e.runId))].slice(0,n.maxRuns),d=new Set(r);return t.filter(e=>d.has(e.runId))}function X(n={}){let s=[],o=Math.max(1,Math.min(100,n.maxRuns??12)),a=Math.max(1,Math.min(50,n.maxScopes??12)),t=H({stateHome:d(n.env),runId:n.runId,maxRuns:o,maxScopes:a,diagnostics:s}),r=Math.max(100,Math.min(5e5,n.maxEvents??5e4));t=t.slice(-r);let d$1=new Map;for(let i of t){let p=d$1.get(i.scope.id)??{scope:i.scope,events:[]};p.events.push(i),d$1.set(i.scope.id,p);}let e=[...d$1.values()].map(i=>x(f({resolvedScope:{scope:i.scope},events:i.events}))).sort((i,p)=>(p.runs[0]?.updatedAt??"").localeCompare(i.runs[0]?.updatedAt??"")||i.scope.label.localeCompare(p.scope.label)).slice(0,a);return {schemaVersion:T,generatedAt:new Date().toISOString(),scopes:e,diagnostics:s}}function Z(n={}){let s=O(n);return x(f({resolvedScope:s.resolvedScope,events:s.events,diagnostics:s.diagnostics}))}function tt(n={}){let s=e(n.targetPath??process.cwd(),{env:n.env}),o=y.join(s.statePath,"runs");return i(o,{maxRuns:n.maxRuns,maxAgeDays:n.maxAgeDays})}var L=new Set(["planned","running"]),j="workspace-activity-board.v1";function $(n){return L.has(n)}function F(n){return n.command.length>0?`workspai ${n.command.join(" ")}`:`run ${n.runId.slice(0,8)}`}function J(n){return n.slice(1).map((s,o)=>{let a=n[o];return {id:`inferred:${a.id}->${s.id}`,fromBlockId:a.id,toBlockId:s.id,kind:s.layoutHint==="gate"?"gate":s.layoutHint==="sink"?"handoff":"sequence",status:D(a.status,s.status),order:o+1,updatedAt:s.updatedAt,inferred:true}})}function D(n,s){return s!=="planned"?s:n==="succeeded"||n==="warned"?"running":n==="failed"||n==="blocked"||n==="cancelled"?n:"planned"}function Y(n,s,o){let a=[...n.blocks].sort((e,i)=>e.order-i.order||e.id.localeCompare(i.id)),t=a.some(e=>e.parentId),r=a.filter(e=>!t||!!e.parentId).map(e=>({...e,root:!e.parentId})),d=n.edges.length>0?n.edges.map(e=>({...e,inferred:false})):J(r);return {run:n,commandLabel:F(n),active:n.status==="running",nodes:r,edges:d,activeBlockCount:r.filter(e=>e.status==="running").length,warningCount:n.warnings.length+r.filter(e=>e.status==="warned").length,scope:s,locationLabel:n.origin&&(n.origin.label!==s.label||o.originLabel!==n.origin.label)?`${o.scopeLabel}/${o.originLabel}`:o.scopeLabel}}function st(n,s={}){let o=Math.max(1,s.maxRuns??6),a=n.schemaVersion==="workspace-activity-monitor-fleet.v1",t=a?n.scopes:[n],r=new Map,d=new Map;for(let c of t){let u=r.get(c.scope.label)??new Set;u.add(c.scope.id),r.set(c.scope.label,u);for(let l of c.runs){if(!l.origin)continue;let g=`${c.scope.id}\0${l.origin.label}`,v=d.get(g)??new Set;v.add(l.origin.id),d.set(g,v);}}let e=t.flatMap(c=>c.runs.map(u=>{let l=(r.get(c.scope.label)?.size??0)>1?`${c.scope.label}#${c.scope.id.slice(-4)}`:c.scope.label,g=u.origin?`${c.scope.id}\0${u.origin.label}`:void 0,v=u.origin?(d.get(g??"")?.size??0)>1?`${u.origin.label}#${u.origin.id.slice(-4)}`:u.origin.label:void 0;return Y(u,c.scope,{scopeLabel:l,originLabel:v})})).sort((c,u)=>c.active!==u.active?c.active?-1:1:u.run.updatedAt.localeCompare(c.run.updatedAt)),i=(s.activeOnly?e.filter(c=>c.active):e).slice(0,o),p=i.find(c=>c.run.runId===s.selectedRunId)?.run.runId??i.find(c=>c.active)?.run.runId??i[0]?.run.runId;return {schemaVersion:j,scopeLabel:a?"Global activity":t[0]?.scope.label??"activity",generatedAt:n.generatedAt,activeRunCount:e.filter(c=>c.active).length,healthyRunCount:e.filter(c=>c.run.status==="succeeded").length,warningRunCount:e.filter(c=>c.run.status==="warned"||c.warningCount>0).length,failedRunCount:e.filter(c=>c.run.status==="failed").length,...p?{selectedRunId:p}:{},runs:i,diagnostics:a?[...n.diagnostics,...t.flatMap(c=>c.diagnostics)]:n.diagnostics,global:a,scopeCount:t.length}}function it(n,s,o){return n.edges.find(a=>a.fromBlockId===s&&a.toBlockId===o)}function rt(n){return n.runs.map(s=>s.run.runId)}function ot(n){return n.runs.some(s=>s.active||s.nodes.some(o=>$(o.status))||s.edges.some(o=>o.status==="running"))}export{_ as a,T as b,O as c,Q as d,X as e,Z as f,tt as g,j as h,st as i,it as j,rt as k,ot as l};
@@ -1 +1 @@
1
- export{b as buildWorkspaceManifest,f as createProject,a as initializeStandaloneGitRepository,g as registerWorkspaceAtPath,d as resolvePythonFreeFallbackProfile,c as syncWorkspaceFoundationFiles,e as writeWorkspaceLauncher}from'./chunk-HN7P4T3B.js';
1
+ export{b as buildWorkspaceManifest,f as createProject,a as initializeStandaloneGitRepository,g as registerWorkspaceAtPath,d as resolvePythonFreeFallbackProfile,c as syncWorkspaceFoundationFiles,e as writeWorkspaceLauncher}from'./chunk-THIG2YQP.js';
@@ -1,4 +1,4 @@
1
- import {h as h$1}from'./chunk-X6TNBARH.js';import {b,a as a$1}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import a from'path';import T from'nunjucks';import e from'chalk';import h from'ora';import {fileURLToPath}from'url';import {execa}from'execa';import G from'crypto';var J=fileURLToPath(import.meta.url),M=a.dirname(J);function O(t=32){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",x=G.randomBytes(t),o="";for(let p=0;p<t;p++)o+=i[x[p]%i.length];return o}async function te(t,i){let o=(i.template||"fastapi")==="fastapi",p=o?"FastAPI":"NestJS",d=i.kit_name||(o?"fastapi.standard":"nestjs.standard"),D=d.replace(".","/"),$=h(`Generating ${p} project...`).start();try{let w=a.resolve(M,".."),m;d==="fastapi.ddd"?m="fastapi-ddd":d.startsWith("fastapi")?m="fastapi-standard":m="nestjs-standard";let f=a.join(w,"templates","kits",m),S=T.configure(f,{autoescape:false,trimBlocks:true,lstripBlocks:true});S.addFilter("generate_secret",function(n,r=32){return O(r)});let F={project_name:i.project_name,author:i.author||"Workspai User",description:i.description||(o?"FastAPI service generated with Workspai":"NestJS application generated with Workspai"),app_version:i.app_version||"0.1.0",license:i.license||"MIT",package_manager:i.package_manager||"npm",node_version:i.node_version||"20.0.0",database_type:i.database_type||"postgresql",include_caching:i.include_caching||false,created_at:new Date().toISOString(),workspai_version:h$1(),rapidkit_version:h$1()},y;o?y=["src/main.py.j2","src/__init__.py.j2","src/cli.py.j2","src/routing/__init__.py.j2","src/routing/health.py.j2","src/routing/examples.py.j2","src/modules/__init__.py.j2","tests/__init__.py.j2","tests/test_health.py.j2","tests/test_examples.py.j2","README.md.j2","pyproject.toml.j2","Makefile.j2","env.example.j2","rapidkit.j2","rapidkit.cmd.j2"]:y=["src/main.ts.j2","src/app.module.ts.j2","src/app.controller.ts.j2","src/app.service.ts.j2","src/config/configuration.ts.j2","src/config/validation.ts.j2","src/config/index.ts.j2","src/modules/index.ts.j2","src/examples/examples.module.ts.j2","src/examples/examples.controller.ts.j2","src/examples/examples.service.ts.j2","src/examples/dto/create-note.dto.ts.j2","test/app.controller.spec.ts.j2","test/examples.controller.spec.ts.j2","test/app.e2e-spec.ts.j2","test/jest-e2e.json.j2","package.json.j2","tsconfig.json.j2","tsconfig.build.json.j2","nest-cli.json.j2","jest.config.ts.j2","eslint.config.cjs.j2","env.example.j2","docker-compose.yml.j2","Dockerfile.j2","README.md.j2","rapidkit.j2","rapidkit.cmd.j2"];for(let n of y){let r=a.join(f,n);try{await promises.access(r);}catch{continue}let _=await promises.readFile(r,"utf-8"),g;try{g=S.renderString(_,F);}catch(W){throw console.error(`Failed to render template: ${n}`),W}let c=n==="env.example.j2"?".env.example":n.replace(/\.j2$/,""),v=a.join(t,c);await promises.mkdir(a.dirname(v),{recursive:true}),await promises.writeFile(v,g),(c.endsWith(".workspai/rapidkit")||c.endsWith(".workspai/cli.py")||c.endsWith(".workspai/activate")||c.endsWith(".rapidkit/rapidkit")||c.endsWith(".rapidkit/cli.py")||c.endsWith(".rapidkit/activate")||c==="rapidkit")&&await promises.chmod(v,493);}if(o){let n=a.join(f,".rapidkit","context.json"),r=a.join(t,".workspai","context.json");try{await promises.mkdir(a.join(t,".workspai"),{recursive:true}),await promises.copyFile(n,r);}catch{await promises.mkdir(a.join(t,".workspai"),{recursive:true});let g=i.engine||"pip";await promises.writeFile(r,JSON.stringify({engine:g,created_by:"workspai-cli-fallback",legacyCreatedBy:"rapidkit-npm-fallback"},null,2));}}let I=a.join(t,".workspai");await promises.mkdir(I,{recursive:true});let R=a.join(I,"project.json"),C={kit_name:d,profile:D,created_at:new Date().toISOString(),created_by:"workspai-cli-fallback",workspai_version:h$1(),rapidkit_version:h$1(),runtime:o?"python":"node"},P=JSON.stringify(C,null,2);await promises.writeFile(R,P,"utf-8");let j=a.join(t,"rapidkit");await promises.access(j).then(()=>true).catch(()=>false)||(await promises.writeFile(j,`#!/usr/bin/env bash
1
+ import {h as h$1}from'./chunk-TABXSDTR.js';import {b,a as a$1}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import a from'path';import T from'nunjucks';import e from'chalk';import h from'ora';import {fileURLToPath}from'url';import {execa}from'execa';import G from'crypto';var J=fileURLToPath(import.meta.url),M=a.dirname(J);function O(t=32){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",x=G.randomBytes(t),o="";for(let p=0;p<t;p++)o+=i[x[p]%i.length];return o}async function te(t,i){let o=(i.template||"fastapi")==="fastapi",p=o?"FastAPI":"NestJS",d=i.kit_name||(o?"fastapi.standard":"nestjs.standard"),D=d.replace(".","/"),$=h(`Generating ${p} project...`).start();try{let w=a.resolve(M,".."),m;d==="fastapi.ddd"?m="fastapi-ddd":d.startsWith("fastapi")?m="fastapi-standard":m="nestjs-standard";let f=a.join(w,"templates","kits",m),S=T.configure(f,{autoescape:false,trimBlocks:true,lstripBlocks:true});S.addFilter("generate_secret",function(n,r=32){return O(r)});let F={project_name:i.project_name,author:i.author||"Workspai User",description:i.description||(o?"FastAPI service generated with Workspai":"NestJS application generated with Workspai"),app_version:i.app_version||"0.1.0",license:i.license||"MIT",package_manager:i.package_manager||"npm",node_version:i.node_version||"20.0.0",database_type:i.database_type||"postgresql",include_caching:i.include_caching||false,created_at:new Date().toISOString(),workspai_version:h$1(),rapidkit_version:h$1()},y;o?y=["src/main.py.j2","src/__init__.py.j2","src/cli.py.j2","src/routing/__init__.py.j2","src/routing/health.py.j2","src/routing/examples.py.j2","src/modules/__init__.py.j2","tests/__init__.py.j2","tests/test_health.py.j2","tests/test_examples.py.j2","README.md.j2","pyproject.toml.j2","Makefile.j2","env.example.j2","rapidkit.j2","rapidkit.cmd.j2"]:y=["src/main.ts.j2","src/app.module.ts.j2","src/app.controller.ts.j2","src/app.service.ts.j2","src/config/configuration.ts.j2","src/config/validation.ts.j2","src/config/index.ts.j2","src/modules/index.ts.j2","src/examples/examples.module.ts.j2","src/examples/examples.controller.ts.j2","src/examples/examples.service.ts.j2","src/examples/dto/create-note.dto.ts.j2","test/app.controller.spec.ts.j2","test/examples.controller.spec.ts.j2","test/app.e2e-spec.ts.j2","test/jest-e2e.json.j2","package.json.j2","tsconfig.json.j2","tsconfig.build.json.j2","nest-cli.json.j2","jest.config.ts.j2","eslint.config.cjs.j2","env.example.j2","docker-compose.yml.j2","Dockerfile.j2","README.md.j2","rapidkit.j2","rapidkit.cmd.j2"];for(let n of y){let r=a.join(f,n);try{await promises.access(r);}catch{continue}let _=await promises.readFile(r,"utf-8"),g;try{g=S.renderString(_,F);}catch(W){throw console.error(`Failed to render template: ${n}`),W}let c=n==="env.example.j2"?".env.example":n.replace(/\.j2$/,""),v=a.join(t,c);await promises.mkdir(a.dirname(v),{recursive:true}),await promises.writeFile(v,g),(c.endsWith(".workspai/rapidkit")||c.endsWith(".workspai/cli.py")||c.endsWith(".workspai/activate")||c.endsWith(".rapidkit/rapidkit")||c.endsWith(".rapidkit/cli.py")||c.endsWith(".rapidkit/activate")||c==="rapidkit")&&await promises.chmod(v,493);}if(o){let n=a.join(f,".rapidkit","context.json"),r=a.join(t,".workspai","context.json");try{await promises.mkdir(a.join(t,".workspai"),{recursive:true}),await promises.copyFile(n,r);}catch{await promises.mkdir(a.join(t,".workspai"),{recursive:true});let g=i.engine||"pip";await promises.writeFile(r,JSON.stringify({engine:g,created_by:"workspai-cli-fallback",legacyCreatedBy:"rapidkit-npm-fallback"},null,2));}}let I=a.join(t,".workspai");await promises.mkdir(I,{recursive:true});let R=a.join(I,"project.json"),C={kit_name:d,profile:D,created_at:new Date().toISOString(),created_by:"workspai-cli-fallback",workspai_version:h$1(),rapidkit_version:h$1(),runtime:o?"python":"node"},P=JSON.stringify(C,null,2);await promises.writeFile(R,P,"utf-8");let j=a.join(t,"rapidkit");await promises.access(j).then(()=>true).catch(()=>false)||(await promises.writeFile(j,`#!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
  SCRIPT_DIR="$(cd "$(dirname "\${BASH_SOURCE[0]}")" && pwd)"
4
4
  cd "$SCRIPT_DIR"
@@ -1 +1 @@
1
- export{a as DOCTOR_WORKSPACE_REPORT_PATH,n as applyEnvKeyAddFix,j as applyFileAppendFix,k as applyFileCopyFix,i as applyFileCreateFix,m as applyJsonEditFix,o as applyMakefileTargetFix,h as applyPackageScriptFix,f as assertOperationPathInsideProject,g as assertOperationPathInsideProjectResolved,e as buildRepairOperationIdentity,q as computeDoctorFixAwareExitCode,p as computeDoctorGateExitCode,l as decodeJsonPointerSegment,d as parseInternalRepairCommand,c as parsePackageScriptFix,b as resolveDoctorPolicyProfile,r as runDoctor}from'./chunk-HEZZ72V4.js';
1
+ export{a as DOCTOR_WORKSPACE_REPORT_PATH,n as applyEnvKeyAddFix,j as applyFileAppendFix,k as applyFileCopyFix,i as applyFileCreateFix,m as applyJsonEditFix,o as applyMakefileTargetFix,h as applyPackageScriptFix,f as assertOperationPathInsideProject,g as assertOperationPathInsideProjectResolved,e as buildRepairOperationIdentity,q as computeDoctorFixAwareExitCode,p as computeDoctorGateExitCode,l as decodeJsonPointerSegment,d as parseInternalRepairCommand,c as parsePackageScriptFix,b as resolveDoctorPolicyProfile,r as runDoctor}from'./chunk-KQ2TMI26.js';
@@ -1,4 +1,4 @@
1
- import {b as b$1,c}from'./chunk-IBJEQHJR.js';import {h as h$1}from'./chunk-X6TNBARH.js';import {b as b$2,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import o from'path';import i from'chalk';import S from'ora';import {execa}from'execa';var b="net8.0",j="8080";function y(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function E(e,r){return e.trim().replace(/[^A-Za-z0-9_.]+/g,".").replace(/^\.+|\.+$/g,"").replace(/\.{2,}/g,".").split(".").map(a=>a.replace(/^[^A-Za-z_]+/,"").replace(/[^A-Za-z0-9_]/g,"")).filter(Boolean).join(".")||r}function _(e,r){return e.replace(/[\r\n\t]+/g," ").trim()||r}function D(e){return e.trim()===b}function $(){return JSON.stringify({engine:"npm",runtime:"dotnet"},null,2)}function I(e,r){return JSON.stringify({kit_name:"dotnet.webapi.clean",runtime:"dotnet",framework:"dotnet",module_support:false,project_name:e.project_name,root_namespace:e.root_namespace,target_framework:e.target_framework,app_version:e.app_version,created_by:"workspai",workspai_version:r,rapidkit_version:r,created_at:new Date().toISOString()},null,2)}function P(e){return `<Project Sdk="Microsoft.NET.Sdk.Web">
1
+ import {b as b$1,c}from'./chunk-IBJEQHJR.js';import {h as h$1}from'./chunk-TABXSDTR.js';import {b as b$2,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import o from'path';import i from'chalk';import S from'ora';import {execa}from'execa';var b="net8.0",j="8080";function y(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function E(e,r){return e.trim().replace(/[^A-Za-z0-9_.]+/g,".").replace(/^\.+|\.+$/g,"").replace(/\.{2,}/g,".").split(".").map(a=>a.replace(/^[^A-Za-z_]+/,"").replace(/[^A-Za-z0-9_]/g,"")).filter(Boolean).join(".")||r}function _(e,r){return e.replace(/[\r\n\t]+/g," ").trim()||r}function D(e){return e.trim()===b}function $(){return JSON.stringify({engine:"npm",runtime:"dotnet"},null,2)}function I(e,r){return JSON.stringify({kit_name:"dotnet.webapi.clean",runtime:"dotnet",framework:"dotnet",module_support:false,project_name:e.project_name,root_namespace:e.root_namespace,target_framework:e.target_framework,app_version:e.app_version,created_by:"workspai",workspai_version:r,rapidkit_version:r,created_at:new Date().toISOString()},null,2)}function P(e){return `<Project Sdk="Microsoft.NET.Sdk.Web">
2
2
  <PropertyGroup>
3
3
  <TargetFramework>${e.target_framework}</TargetFramework>
4
4
  <Nullable>enable</Nullable>
@@ -1 +1 @@
1
- export{f as GOAL_INDEX_PATH,e as GOAL_INDEX_SCHEMA_VERSION,k as buildGoalLifecycleResult,l as inspectGoalLifecycle,p as linkGoalRepairTransaction,n as prepareGoalVerification,m as transitionGoalLifecycle,o as verifyGoalLifecycle}from'./chunk-MDTI3UEB.js';
1
+ export{f as GOAL_INDEX_PATH,e as GOAL_INDEX_SCHEMA_VERSION,k as buildGoalLifecycleResult,l as inspectGoalLifecycle,p as linkGoalRepairTransaction,n as prepareGoalVerification,m as transitionGoalLifecycle,o as verifyGoalLifecycle}from'./chunk-GIQ4SDRJ.js';
@@ -0,0 +1 @@
1
+ import {c}from'./chunk-N4QFNOAI.js';import {c as c$4}from'./chunk-H77ZNH5O.js';import {j,i,d as d$1,f as f$2,c as c$3,e as e$1,h}from'./chunk-GIQ4SDRJ.js';export{b as GOAL_AGENT_HANDOFF_SCHEMA_VERSION,f as GOAL_INDEX_PATH,e as GOAL_INDEX_SCHEMA_VERSION,g as GOAL_LIFECYCLE_RESULT_SCHEMA_VERSION,d as GOAL_PACK_LAST_RUN_PATH,a as GOAL_PACK_SCHEMA_VERSION,c as GOAL_PLAN_RESULT_SCHEMA_VERSION}from'./chunk-GIQ4SDRJ.js';import {f as f$3}from'./chunk-2MVIRJJR.js';import {b}from'./chunk-FPDH3N3A.js';import {a as a$1}from'./chunk-ENZPM52J.js';import {b as b$1}from'./chunk-PSYQ6IJA.js';import {c as c$2,f as f$1}from'./chunk-XDPTAV2T.js';import {a}from'./chunk-AFIFZTOY.js';import {d,c as c$1}from'./chunk-EWZZUQBR.js';import {f,e}from'./chunk-ZGHJIQXL.js';import C from'path';import _ from'fs-extra';var ve=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/,ye=/(?:^|\s)(?:\/(?:home|Users|private|var|tmp|mnt|opt|srv|root|workspace|workspaces|data|Volumes|etc|usr|run|dev|proc|sys)\/[^\s]+|[A-Za-z]:[\\/][^\s]+|\\\\[^\\\s]+\\[^\s]+)/,Pe=/(?:-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----|\b(?:github_pat_|gh[pousr]_|glpat-|npm_|xox[baprs]-|sk-(?:proj-)?)[A-Za-z0-9_-]{12,}|\b(?:AKIA|ASIA)[A-Z0-9]{16}\b|\bAIza[A-Za-z0-9_-]{20,}|\bBearer\s+[A-Za-z0-9._~+/-]{16,}|[a-z][a-z0-9+.-]*:\/\/[^\s:/]+:[^\s@/]+@|\b(?:password|passwd|secret|token|api[_-]?key)\s*[:=]\s*[^\s]{6,})/i,je=[{category:"test-coverage",patterns:[/\b(?:test\s+)?coverage\b/i,/\bcoverage\s+(?:to|above|at least)\b/i]},{category:"dependency-security",patterns:[/\b(?:dependency|dependencies|package|packages)\b.*\b(?:security|vulnerab|audit)\b/i,/\b(?:security|vulnerab|audit)\b.*\b(?:dependency|dependencies|package|packages)\b/i]},{category:"release-readiness",patterns:[/\brelease[ -]readiness\b/i,/\bready (?:this |the )?(?:workspace|project) for release\b/i,/\bprepare (?:this |the )?(?:workspace|project) for release\b/i,/\bprepare\b[^\n]{0,80}\bfor release\b/i]},{category:"defect-repair",patterns:[/\b(?:fix|repair|resolve|debug)\b.*\b(?:bug|error|failure|issue|regression)\b/i]},{category:"performance",patterns:[/\b(?:performance|latency|throughput|cpu|optimi[sz]e|faster|slower)\b/i,/\b(?:memory\s+(?:allocation|consumption|footprint|leak|pressure|usage)|out[ -]of[ -]memory|heap|ram)\b/i]},{category:"refactor",patterns:[/\b(?:refactor|restructure|decouple|extract|simplify|cleanup|clean up)\b/i]},{category:"documentation",patterns:[/\b(?:document|documentation|readme|guide|tutorial|docs)\b/i]},{category:"feature-change",patterns:[/\b(?:add|build|create|enforce|enhance|harden|implement|improve|introduce|support)\b/i]},{category:"system-understanding",patterns:[/\b(?:understand|explain|map|find|where|how|architecture|analy[sz]e|search)\b/i]}];function Ge(e){if(typeof e!="string")throw new Error("Goal intent must be text.");let t=e.trim().replace(/\s+/g," ");if(!t)throw new Error("Goal intent cannot be empty.");if(t.length>2e3)throw new Error("Goal intent exceeds the 2000 character safety limit.");if(ve.test(t))throw new Error("Goal intent contains unsupported control characters.");if(ye.test(t))throw new Error("Goal intent contains a machine-local absolute path. Use a workspace-relative path or project scope.");if(Pe.test(t))throw new Error("Goal intent appears to contain secret material and was not persisted.");return t}function Ce(e){let t=e.match(/\b(?:coverage\D{0,24})?((?:100(?:\.0+)?|\d{1,2}(?:\.\d+)?))\s*(?:%|percent(?:age)?(?:\s+points?)?)/i);if(!t||!/coverage/i.test(e))return null;let n=Number(t[1]);return Number.isFinite(n)&&n>=0&&n<=100?n:null}var ne=[{runtime:"cpp",patterns:[/\bc\+\+/i,/\bcpp\b/i]},{runtime:"dotnet",patterns:[/\.net\b/i,/\bdotnet\b/i,/\bc#/i,/\bcsharp\b/i]},{runtime:"node",patterns:[/\bnode(?:\.js)?\b/i,/\btypescript\b/i,/\bjavascript\b/i,/\b(?:js|ts)\b/i]},{runtime:"python",patterns:[/\bpython\b/i,/\bpytest\b/i]},{runtime:"go",patterns:[/\bgolang\b/i,/\bgo(?:\s+(?:test|coverage|tests))\b/i]},{runtime:"java",patterns:[/\bjava\b/i,/\bjunit\b/i,/\bjacoco\b/i]},{runtime:"rust",patterns:[/\brust\b/i,/\bcargo\b/i]},{runtime:"php",patterns:[/\bphp\b/i,/\bphpunit\b/i]},{runtime:"ruby",patterns:[/\bruby\b/i,/\brspec\b/i]},{runtime:"kotlin",patterns:[/\bkotlin\b/i]},{runtime:"scala",patterns:[/\bscala\b/i]},{runtime:"clojure",patterns:[/\bclojure\b/i]},{runtime:"elixir",patterns:[/\belixir\b/i]},{runtime:"deno",patterns:[/\bdeno\b/i]},{runtime:"bun",patterns:[/\bbun\b/i]},{runtime:"c",patterns:[/\bc(?:\s+(?:test|coverage|tests|code))\b/i]}];function Ae(e){return ne.filter(t=>t.patterns.some(n=>n.test(e))).map(t=>t.runtime)}function K(e,t={}){let n=Ge(e),r=je.filter(u=>u.patterns.some(j=>j.test(n))).map(u=>u.category),a=r.some(u=>u!=="feature-change")?r.filter(u=>u!=="feature-change"):r,s=a[0]??"feature-change",l=Ce(n),d=Ae(n),p=d.length===0&&t.selectedCoverageRuntime?[t.selectedCoverageRuntime]:d,m=[...new Set((t.availableCoverageRuntimes??[]).filter(u=>ne.some(j=>j.runtime===u)))].sort(),b=[];return a.length>1&&a[0]!=="test-coverage"&&b.push(`The intent also contains signals for: ${a.slice(1).join(", ")}.`),s==="test-coverage"&&l===null&&b.push("A numeric test coverage target is required for machine verification."),s==="test-coverage"&&p.length>1&&b.push(`The Goal names multiple coverage runtimes: ${p.join(", ")}. Select one runtime per Goal.`),s==="test-coverage"&&p.length===0&&m.length>1&&b.push(`Coverage scope is ambiguous across detected runtimes: ${m.join(", ")}. Name one runtime or language in the Goal.`),s==="test-coverage"&&p.length===1&&m.length>0&&!m.includes(p[0])&&b.push(`The requested ${p[0]} coverage runtime is not present in the selected scope. Detected runtimes: ${m.join(", ")}.`),{original:n,normalized:n.toLocaleLowerCase("en-US"),statement:n.replace(/[.!?]+$/,""),category:s,confidence:a.length===1?"high":a.length>1?"medium":"low",ambiguities:b,...l===null?{}:{requestedTarget:{metric:"test-coverage-percent",operator:"at-least",value:l,...p.length===1?{runtime:p[0]}:{}}}}}function oe(e){let t={"test-coverage":["test suite coverage configuration instrumentation","CI tests LCOV Cobertura JaCoCo LLVM coverage"],"dependency-security":["dependency manifest lockfile security audit vulnerability"],"release-readiness":["release pipeline readiness gates build test deploy"],"defect-repair":["failure error test implementation call path"],"feature-change":["API implementation module dependency tests"],refactor:["module dependency ownership implementation tests"],performance:["performance benchmark latency throughput runtime"],documentation:["documentation README guide architecture decision"],"system-understanding":["architecture service API dependency ownership"]};return [...new Set([e.statement,...t[e.category]])].slice(0,3)}var ae="contracts/workspace-intelligence/goal-pack.v1.json",se="contracts/workspace-intelligence/goal-agent-handoff.v1.json",Re="contracts/workspace-intelligence/goal-plan-result.v1.json",pe="contracts/workspace-intelligence/goal-index.v1.json",ue=new Set(["node","bun","deno","python","go","java","dotnet","rust","php","ruby","elixir","clojure","scala","kotlin","c","cpp"]);function Se(e,t){let n=e.match(/[A-Za-z0-9][A-Za-z0-9+#.%_-]*/g)??[],r=new Set(t.map(m=>m.toLocaleLowerCase("en-US").replace(/[^a-z0-9]/g,"")).filter(Boolean)),a=[];for(let m=0;m<n.length;){let b=0;for(let u=Math.min(4,n.length-m);u>=1;u-=1){let j=n.slice(m,m+u).join("").toLocaleLowerCase("en-US").replace(/[^a-z0-9]/g,"");if(r.has(j)){b=u;break}}if(b>0){m+=b;continue}a.push(n[m]),m+=1;}let s=a.findIndex((m,b)=>{let u=m.toLocaleLowerCase("en-US"),j=a[b+1]?.toLocaleLowerCase("en-US");return u==="without"&&["breaking","changing","modifying","removing"].includes(j??"")||u==="while"&&["keeping","maintaining","preserving"].includes(j??"")}),l=s>=2?a.slice(0,s):a,d=l.length>=2?l.join(" "):e;if(s<2)return [d];let p=a.slice(s).filter(m=>!["without","while","breaking","changing","modifying","removing","keeping","maintaining","preserving"].includes(m.toLocaleLowerCase("en-US")));return p.length>0?[d,p.join(" ")]:[d]}function ie(e){return e.split(C.sep).join("/")}function V(e,t){return C.resolve(t.absolutePath??C.join(e,t.path))}function ce(e){let t=e.requested.trim().replace(/^project:/,"");if(!t)throw new Error("Project goal scope must name a project.");let n=C.isAbsolute(t)?C.resolve(t):null,r=e.model.projects.filter(a=>a.name===t||ie(a.path)===ie(t)||n!==null&&V(e.workspacePath,a)===n);if(r.length!==1)throw new Error(r.length===0?`Project goal scope was not found in the canonical model: ${t}`:`Project goal scope is ambiguous in the canonical model: ${t}`);return r[0]}async function Ee(e){let t=await a$1(e);if(t.status==="miss")throw new Error(`Canonical model and live graph evidence are required (${t.reason}). Run \`workspai workspace intelligence run --for-agent generic --strict --json\` or retry with --refresh.`);let{model:n,graph:r}=t;return a(n,"contracts/workspace-intelligence/workspace-model.v1.json","Goal source model"),a(r,"contracts/workspace-intelligence/workspace-knowledge-graph.v1.json","Goal source graph"),b$1(r,n),{model:n,graph:r}}function le(e){let t=e.scope.trim();if(t==="workspace")return {kind:"workspace",projects:e.model.projects.map(r=>r.name).sort(),selectionSource:e.selectionSource,resolution:"selected"};let n=t.startsWith("projects:")?"projects:":t.startsWith("project:")&&t.slice(8).includes(",")?"project:":null;if(n){let r=t.slice(n.length).split(",").map(l=>l.trim()).filter(Boolean);if(r.length<2)throw new Error("A project-set Goal scope must name at least two projects.");let a=r.map(l=>ce({workspacePath:e.workspacePath,model:e.model,requested:l})),s=[...new Set(a.map(l=>l.name))].sort();if(s.length!==r.length)throw new Error("A project-set Goal scope must not contain duplicate projects.");return {kind:"project-set",projects:s,selectionSource:e.selectionSource,resolution:"selected"}}if(t)return {kind:"project",projects:[ce({workspacePath:e.workspacePath,model:e.model,requested:t}).name],selectionSource:e.selectionSource,resolution:"selected"};throw new Error("Goal scope cannot be empty.")}async function Ie(e){if(e.explicitScope?.trim())return {scope:le({workspacePath:e.workspacePath,model:e.model,scope:e.explicitScope,selectionSource:"explicit"}),selectionRequired:false};if(e.invocationProjectPath){let t=C.resolve(e.invocationProjectPath),n=e.model.projects.filter(r=>V(e.workspacePath,r)===t);if(n.length!==1)throw new Error("The invocation project is not represented uniquely in the canonical workspace model. Refresh intelligence or pass --scope explicitly.");return {scope:{kind:"project",projects:[n[0].name],selectionSource:"invocation-project",resolution:"selected"},selectionRequired:false}}if(e.model.projects.length===1)return {scope:{kind:"project",projects:[e.model.projects[0].name],selectionSource:"single-project-workspace",resolution:"selected"},selectionRequired:false};if(e.selectScope){let t=await e.selectScope({workspaceName:e.model.workspace.name,projects:e.model.projects.map(r=>({name:r.name,runtime:r.runtime,runtimeCandidates:[...r.runtimeCandidates].sort(),framework:r.framework})).sort((r,a)=>r.name.localeCompare(a.name))}),n=t.kind==="workspace"?"workspace":t.projects.length===1?`project:${t.projects[0]}`:`projects:${t.projects.join(",")}`;return {scope:le({workspacePath:e.workspacePath,model:e.model,scope:n,selectionSource:"interactive"}),selectionRequired:false}}return {scope:{kind:"workspace",projects:e.model.projects.map(t=>t.name).sort(),selectionSource:"workspace",resolution:"selection-required"},selectionRequired:true}}function xe(e,t){if(t.kind==="workspace")return {entities:e.quality.entityCount,relationships:e.quality.relationCount,proofs:e.quality.proofCount,unresolved:e.quality.unknownCount,proofCoveragePercent:Number((e.quality.relationProofCoverageRatio*100).toFixed(2))};let n=new Set(t.projects),r=e.entities.filter(p=>p.projectId!==void 0&&n.has(p.projectId)),a=new Set(r.map(p=>p.id)),s=e.relations.filter(p=>a.has(p.from)||a.has(p.to)),l=new Set([...r.flatMap(p=>p.proofIds),...s.flatMap(p=>p.proofIds)]),d=s.filter(p=>p.proofIds.length>0).length;return {entities:r.length,relationships:s.length,proofs:l.size,unresolved:s.length-d,proofCoveragePercent:s.length===0?100:Number((d/s.length*100).toFixed(2))}}function Te(e){let t=new Map;for(let r of e){let a=t.get(r.kind)??[];a.push(r),t.set(r.kind,a);}let n=[];for(let r=0;[...t.values()].some(a=>r<a.length);r+=1)for(let a of t.values()){let s=a[r];s&&n.push(s);}return n}async function _e(e$1){let t=C.join(e$1.workspacePath,e.intelligenceRun),n=await _.readJson(t).catch(()=>null),a=(Array.isArray(n?.stages)?n.stages:[]).filter(o=>o.status==="blocked"||o.status==="failed").map(o=>String(o.id??"unknown")).sort(),s=n?.status,l={status:s==="passed"?"passed":s==="blocked"||s==="failed"?"blocked":"unknown",artifact:e.intelligenceRun,blockedStages:a},d={status:"not-applicable",runtime:null,runtimeChoices:[],runner:null,existingEvidence:[],prerequisites:[]};if(e$1.intent.category==="test-coverage"){let o=e$1.intent.requestedTarget?.runtime;if(e$1.intent.ambiguities.some(P=>P.startsWith("Coverage scope is ambiguous")||P.startsWith("The Goal names multiple coverage runtimes")||P.startsWith("The selected projects do not share a common canonical coverage runtime")||P.startsWith("The requested ")))d={status:"requires-setup",runtime:o??null,runtimeChoices:e$1.coverageRuntimeChoices,runner:null,existingEvidence:[],prerequisites:["Select exactly one detected runtime or language for this coverage Goal."]};else {let P=o?e$1.projects.filter(c=>c.runtimeCandidates.includes(o)):e$1.projects,i=await Promise.all(P.map(async c=>({project:c,capability:await c$4(V(e$1.workspacePath,c),o??(ue.has(c.runtime)?c.runtime:"unknown"))}))),h=i.map(c=>c.capability.status);d={status:h.includes("unsupported")?"unsupported":h.includes("requires-setup")?"requires-setup":"available",runtime:i.length===1?i[0].capability.runtime:[...new Set(i.map(c=>c.capability.runtime))].join(","),runtimeChoices:e$1.coverageRuntimeChoices,runner:i.length===1?i[0].capability.runner:[...new Set(i.flatMap(c=>c.capability.runner?[c.capability.runner]:[]))].join(",")||null,existingEvidence:i.flatMap(c=>c.capability.existingEvidence.map(A=>({project:c.project.name,...A}))).filter((c,A,w)=>w.findIndex(k=>k.project===c.project&&k.path===c.path&&k.sha256===c.sha256)===A).sort((c,A)=>c.project.localeCompare(A.project)||c.path.localeCompare(A.path)),prerequisites:[...new Set(i.flatMap(c=>c.capability.prerequisites))].sort()};}}let p=oe(e$1.intent),m=[...Se(p[0],e$1.projects.map(o=>o.name)),...p.slice(1)].filter((o,y,P)=>P.indexOf(o)===y).slice(0,3),b=m.map((o,y)=>{let P=o.match(/[A-Za-z0-9][A-Za-z0-9+#.%_-]*/g)?.length??0,i=y===0&&P>=4?2:1,h=e$1.projects.map(w=>{let k=G=>f$3(e$1.graph,{query:o,projectId:w.name,...G?{kind:G}:{},limit:60,relationsPerEntity:0,minimumTermMatches:i}).entities,S=k(),de=[...new Set(e$1.graph.entities.filter(G=>G.projectId===w.name||G.projectId===void 0&&G.identity.scope==="workspace").map(G=>G.kind))].flatMap(G=>k(G).slice(0,8)),U=[...S,...de];return U.filter((G,me)=>U.findIndex(ge=>ge.id===G.id)===me)}),c=[],A=new Set;for(let w=0;h.some(k=>w<k.length);w+=1)for(let k of h){let S=k[w];!S||A.has(S.id)||(A.add(S.id),c.push(S));}return Te(c)}),u={"test-coverage":["test-suite"],"dependency-security":["package","module"],"release-readiness":["pipeline","deployment","lifecycle-stage"],"defect-repair":["test-suite","lifecycle-stage"],"feature-change":["project","runtime-unit","api","package","module","test-suite"],refactor:["package","module","api","test-suite"],performance:["lifecycle-stage","test-suite","pipeline"],documentation:["document","decision"],"system-understanding":["project","service","api","package","protocol"]},j=new Set(e$1.projects.map(o=>o.name)),v=e$1.graph.entities.filter(o=>o.proofIds.length>0&&(!o.projectId||j.has(o.projectId))&&u[e$1.intent.category].includes(o.kind)).sort((o,y)=>u[e$1.intent.category].indexOf(o.kind)-u[e$1.intent.category].indexOf(y.kind)||o.label.localeCompare(y.label)),f=[],M=new Set,E=o=>{!o||f.length>=20||M.has(o.id)||(M.add(o.id),f.push(o));},I=(e$1.intent.statement.match(/[A-Za-z][A-Za-z0-9+#.-]{1,}/g)??[]).length>=2,g=I?b[0]??[]:[];for(let o of g.slice(0,12))E(o);if(!I)for(let o of v)E(o);for(let o=0;f.length<20&&b.slice(1).some(y=>o<y.length);o+=1)for(let y of b.slice(1))E(y[o]);if(I)for(let o of v)E(o);for(let o of g.slice(12))E(o);let x=f.map(o=>({entityId:o.id,kind:o.kind,label:o.label,proofIds:o.proofIds.slice(0,12)})),L=b[0]?.length??0;return {workspaceIntelligence:l,measurement:d,retrieval:{status:I&&L>=3?"grounded":x.length>0?"partial":"empty",strategy:"deterministic-category-v1",queries:m,anchors:x}}}async function Le(e){let t=C.join(e,f$2);if(!await _.pathExists(t))return {schemaVersion:e$1,generatedAt:new Date(0).toISOString(),activeGoalId:null,goals:[]};let n=await _.readJson(t);a(n,pe,"Goal index");try{i(n);}catch(r){let a=h(n);if(!(a!==null&&r instanceof Error&&r.message==="Goal index is inconsistent: activeGoalId must identify the only selected actionable lifecycle entry.")||!a)throw r;return a}return n}function Ne(e,t,n){let r=e.goals.find(l=>l.id===t.id),a=t.state==="ready-to-plan",s={id:t.id,fingerprint:t.fingerprint,objective:t.intent.statement,category:t.intent.category,state:t.state,lifecycle:r?.lifecycle==="cancelled"?"cancelled":a?"active":"planned",scope:t.scope,createdAt:r?.createdAt??t.generatedAt,updatedAt:n,goalPack:t.artifacts.goalPack,agentHandoff:t.artifacts.agentHandoff,...r?.verifiedGoalId?{verifiedGoalId:r.verifiedGoalId}:{},...r?.repairTransactionId?{repairTransactionId:r.repairTransactionId}:{},...r?.repairTransactionIds?{repairTransactionIds:r.repairTransactionIds}:{},...r?.verificationReceipt?{verificationReceipt:r.verificationReceipt}:{}};return {schemaVersion:e$1,generatedAt:n,activeGoalId:s.lifecycle==="active"?t.id:e.activeGoalId===t.id?null:e.activeGoalId,goals:[...e.goals.filter(l=>l.id!==t.id).map(l=>s.lifecycle==="active"&&l.lifecycle==="active"?{...l,lifecycle:"planned",updatedAt:n}:l),s].sort((l,d)=>l.id.localeCompare(d.id))}}async function et(e$1){let t=b({startPath:C.resolve(e$1.startPath),explicitWorkspacePath:e$1.workspacePath,strict:true,requireProjectMembership:true});if(!t)throw new Error("No canonical Workspai workspace could be resolved.");let n=C.resolve(t.workspacePath);e$1.refresh&&await c({workspacePath:n,strict:false,agent:"generic"});let{model:r,graph:a$1}=await Ee(n),s=await Ie({workspacePath:n,invocationProjectPath:t.projectPath,model:r,explicitScope:e$1.scope,selectScope:e$1.selectScope}),l=s.scope,d$2=r.projects.filter(i=>l.projects.includes(i.name));if(d$2.length===0)throw new Error("A Goal Pack requires at least one registered project in its selected scope.");let p=e$1.maxAttempts??5;if(!Number.isInteger(p)||p<1||p>25)throw new Error("--max-attempts must be an integer from 1 to 25.");let m=new Date().toISOString(),b$1=d(r),u=d$2.map(i=>({name:i.name,runtimes:[...new Set(i.runtimeCandidates.filter(h=>ue.has(h)))].sort()})),j$1=[...new Set(u.flatMap(i=>i.runtimes))].sort(),v=u.length<=1?j$1:u[0].runtimes.filter(i=>u.every(h=>h.runtimes.includes(i))),f$3=K(e$1.intent,{availableCoverageRuntimes:v,...e$1.runtime?{selectedCoverageRuntime:e$1.runtime}:v.length===1?{selectedCoverageRuntime:v[0]}:{}});if(e$1.runtime&&!v.includes(e$1.runtime)){let i=e$1.runtime,h=u.filter(c=>!c.runtimes.includes(i)).map(c=>c.name);throw new Error(d$2.length>1&&h.length>0?`--runtime ${e$1.runtime} is not canonical for every project in the selected Goal scope. Missing from: ${h.join(", ")}. Split the projects into runtime-compatible Goal scopes.`:`--runtime ${e$1.runtime} is not present in the canonical Workspace Model for the selected Goal scope. Available runtimes: ${v.join(", ")||"none"}.`)}if(e$1.runtime&&f$3.category!=="test-coverage")throw new Error("--runtime is valid only for a test-coverage Goal.");if(e$1.runtime&&f$3.requestedTarget?.runtime&&f$3.requestedTarget.runtime!==e$1.runtime)throw new Error(`--runtime ${e$1.runtime} conflicts with the ${f$3.requestedTarget.runtime} runtime named in the Goal intent.`);if(!s.selectionRequired&&f$3.category==="test-coverage"&&f$3.requestedTarget&&!f$3.requestedTarget.runtime&&v.length>1&&!e$1.runtime&&e$1.selectCoverageRuntime){let i=await e$1.selectCoverageRuntime({workspaceName:r.workspace.name,scope:l,projects:d$2.map(h=>({name:h.name,runtime:h.runtime,runtimeCandidates:[...h.runtimeCandidates].sort()})),runtimes:v});if(!v.includes(i))throw new Error("The selected coverage runtime is outside the canonical Goal scope.");f$3=K(e$1.intent,{availableCoverageRuntimes:v,selectedCoverageRuntime:i});}!s.selectionRequired&&f$3.category==="test-coverage"&&d$2.length>1&&v.length===0&&(f$3={...f$3,ambiguities:[`The selected projects do not share a common canonical coverage runtime: ${u.map(i=>`${i.name} (${i.runtimes.join(", ")||"none"})`).join("; ")}. Split them into runtime-compatible Goal scopes so every selected project is verified.`,...f$3.ambiguities]}),s.selectionRequired&&(f$3={...f$3,ambiguities:[`Goal scope is unresolved across ${l.projects.length} registered projects: ${l.projects.join(", ")}. Select one project, multiple projects, or the entire workspace.`,...f$3.ambiguities]});let M=await _e({workspacePath:n,projects:d$2,graph:a$1,intent:f$3,coverageRuntimeChoices:v}),E={generatedAt:m,intent:f$3,workspaceName:r.workspace.name,scope:l,sourceBinding:{model:{artifact:e.model,schemaVersion:f.model,hashAlgorithm:"sha256",hashSemantics:"workspace-model-structural-v1",hash:b$1,generatedAt:r.generatedAt},graph:{artifact:e.knowledgeGraph,schemaVersion:f.knowledgeGraph,hashAlgorithm:"sha256",hashSemantics:"canonical-json-v1",hash:c$1(a$1),generatedAt:a$1.generatedAt,modelHash:a$1.source.hash,...a$1.source.inputs?.hash?{inputHash:a$1.source.inputs.hash}:{}}},preflight:M,baseline:{projectCount:d$2.length,runtimes:[...new Set(d$2.flatMap(i=>i.runtimeCandidates))].sort(),frameworks:[...new Set(d$2.map(i=>i.framework))].sort(),graph:xe(a$1,l)},maxAttempts:p,consumer:e$1.consumer??"generic"},I={digestCanonical:c$1},{goalPack:g,handoff:x}=j(E,I);a(g,ae,"Goal Pack"),a(x,se,"Goal agent handoff");let L=false,o=async()=>{let i=C.join(n,g.artifacts.goalPack),h=C.join(n,g.artifacts.agentHandoff),[c,A]=await Promise.all([_.pathExists(i),_.pathExists(h)]);if(c!==A)throw new Error(`Goal Pack instance is incomplete and cannot be resumed: ${g.id}`);if(!c)return;let[w,k]=await Promise.all([_.readJson(i),_.readJson(h)]);a(w,ae,"Persisted Goal Pack"),a(k,se,"Persisted goal agent handoff");let S=j({...E,generatedAt:w.generatedAt,sourceBinding:w.sourceBinding},I);if(w.id!==g.id||k.goalId!==g.id||c$1(w)!==c$1(S.goalPack)||c$1(k)!==c$1(S.handoff))throw new Error(`Goal Pack instance failed immutable integrity validation: ${g.id}`);g=w,x=k,L=true;};if(e$1.dryRun)await o();else {let i$1=`.workspai/goals/${g.id}/publication`;await c$2(n,i$1,async()=>{await o();let h=Ne(await Le(n),g,new Date().toISOString());a(h,pe,"Goal index"),i(h),await f$1(n,d$1,L?[{relativePath:d$1,payload:g},{relativePath:f$2,payload:h}]:[{relativePath:g.artifacts.goalPack,payload:g},{relativePath:g.artifacts.agentHandoff,payload:x},{relativePath:d$1,payload:g},{relativePath:f$2,payload:h}]);});}let y=[g.artifacts.goalPack,g.artifacts.agentHandoff,d$1,f$2],P={schemaVersion:c$3,result:g.state==="needs-confirmation"?"needs-confirmation":g.state==="blocked"?"blocked":g.state==="needs-evidence"?"needs-evidence":"planned",resolution:{source:t.source,invocationScope:t.projectPath?"project":"workspace"},goalPack:g,agentHandoff:x,writtenArtifacts:e$1.dryRun?[]:L?[d$1,f$2]:y,dryRun:e$1.dryRun===true,resumed:L};return a(P,Re,"Goal plan result"),P}export{et as planGoalPack};
@@ -1,4 +1,4 @@
1
- import {c,b as b$1,d,e,f,a as a$1}from'./chunk-IBJEQHJR.js';import {h}from'./chunk-X6TNBARH.js';import {b,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import p from'path';import o from'chalk';import T from'ora';import {execa}from'execa';function q(e){return `package main
1
+ import {c,b as b$1,d,e,f,a as a$1}from'./chunk-IBJEQHJR.js';import {h}from'./chunk-TABXSDTR.js';import {b,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import p from'path';import o from'chalk';import T from'ora';import {execa}from'execa';function q(e){return `package main
2
2
 
3
3
  import (
4
4
  "fmt"
@@ -1,4 +1,4 @@
1
- import {c as c$1,b as b$2,d,e,f,a as a$1}from'./chunk-IBJEQHJR.js';import {h}from'./chunk-X6TNBARH.js';import {b as b$1,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import c from'path';import o from'chalk';import O from'ora';import {execa}from'execa';function N(e){return `package main
1
+ import {c as c$1,b as b$2,d,e,f,a as a$1}from'./chunk-IBJEQHJR.js';import {h}from'./chunk-TABXSDTR.js';import {b as b$1,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import c from'path';import o from'chalk';import O from'ora';import {execa}from'execa';function N(e){return `package main
2
2
 
3
3
  import (
4
4
  "context"
package/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ declare function getPublishedContractVersions(): {
55
55
  projectWorkspaceLink: "project-workspace-link.v1";
56
56
  projectWorkspaceResolution: "project-workspace-resolution.v1";
57
57
  projectContextAgent: "project-context-agent.v1";
58
+ projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1";
58
59
  projectAgentEntry: "workspai.agent-entry.v1";
59
60
  agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1";
60
61
  doctorProjectEvidence: "doctor-project-evidence-v1";
@@ -100,6 +101,10 @@ declare function getPublishedContractVersions(): {
100
101
  readonly repairTransaction: "workspai.workspace-repair-transaction.v1";
101
102
  };
102
103
  cliLogEvent: "cli-log-event-v1";
104
+ workspaceActivityEvent: "workspace-activity-event.v1";
105
+ workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1";
106
+ workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1";
107
+ workspaceActivityBoard: "workspace-activity-board.v1";
103
108
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
104
109
  factFreshness: "rapidkit-fact-freshness-v1";
105
110
  blockerResolution: "rapidkit-blocker-resolution-v1";
@@ -113,6 +118,7 @@ declare function getPublishedContractVersions(): {
113
118
  workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
114
119
  workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
115
120
  workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
121
+ workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1";
116
122
  modelUsageEvent: "model-usage-event.v1";
117
123
  workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
118
124
  workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
@@ -262,6 +268,7 @@ declare function getVersionContract(): {
262
268
  projectWorkspaceLink: "project-workspace-link.v1";
263
269
  projectWorkspaceResolution: "project-workspace-resolution.v1";
264
270
  projectContextAgent: "project-context-agent.v1";
271
+ projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1";
265
272
  projectAgentEntry: "workspai.agent-entry.v1";
266
273
  agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1";
267
274
  doctorProjectEvidence: "doctor-project-evidence-v1";
@@ -307,6 +314,10 @@ declare function getVersionContract(): {
307
314
  readonly repairTransaction: "workspai.workspace-repair-transaction.v1";
308
315
  };
309
316
  cliLogEvent: "cli-log-event-v1";
317
+ workspaceActivityEvent: "workspace-activity-event.v1";
318
+ workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1";
319
+ workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1";
320
+ workspaceActivityBoard: "workspace-activity-board.v1";
310
321
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
311
322
  factFreshness: "rapidkit-fact-freshness-v1";
312
323
  blockerResolution: "rapidkit-blocker-resolution-v1";
@@ -320,6 +331,7 @@ declare function getVersionContract(): {
320
331
  workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
321
332
  workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
322
333
  workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
334
+ workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1";
323
335
  modelUsageEvent: "model-usage-event.v1";
324
336
  workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
325
337
  workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
@@ -462,6 +474,7 @@ declare function getGlobalCommandCapabilities(): {
462
474
  projectWorkspaceLink: "project-workspace-link.v1";
463
475
  projectWorkspaceResolution: "project-workspace-resolution.v1";
464
476
  projectContextAgent: "project-context-agent.v1";
477
+ projectKnowledgeGraphReference: "project-knowledge-graph-reference.v1";
465
478
  projectAgentEntry: "workspai.agent-entry.v1";
466
479
  agentBootstrapReceipt: "workspai.agent-bootstrap-receipt.v1";
467
480
  doctorProjectEvidence: "doctor-project-evidence-v1";
@@ -507,6 +520,10 @@ declare function getGlobalCommandCapabilities(): {
507
520
  readonly repairTransaction: "workspai.workspace-repair-transaction.v1";
508
521
  };
509
522
  cliLogEvent: "cli-log-event-v1";
523
+ workspaceActivityEvent: "workspace-activity-event.v1";
524
+ workspaceActivityMonitorSnapshot: "workspace-activity-monitor-snapshot.v1";
525
+ workspaceActivityMonitorFleet: "workspace-activity-monitor-fleet.v1";
526
+ workspaceActivityBoard: "workspace-activity-board.v1";
510
527
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
511
528
  factFreshness: "rapidkit-fact-freshness-v1";
512
529
  blockerResolution: "rapidkit-blocker-resolution-v1";
@@ -520,6 +537,7 @@ declare function getGlobalCommandCapabilities(): {
520
537
  workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
521
538
  workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
522
539
  workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
540
+ workspaceIntelligenceBenchmark: "workspace-intelligence-benchmark.v1";
523
541
  modelUsageEvent: "model-usage-event.v1";
524
542
  workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
525
543
  workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
@@ -601,8 +619,8 @@ declare function getGlobalCommandCapabilities(): {
601
619
  };
602
620
  workspace: {
603
621
  command: string;
604
- subcommands: ("archive" | "snapshot" | "list" | "import" | "goal" | "init" | "sync" | "agent-sync" | "contract" | "model" | "share" | "remediation-plan" | "run" | "diff" | "impact" | "verify" | "explain" | "why" | "trace" | "registry" | "foundation" | "intelligence" | "graph" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp" | "policy" | "export" | "hydrate" | "connect")[];
605
- intelligenceSubcommands: ("snapshot" | "goal" | "agent-sync" | "contract" | "model" | "remediation-plan" | "diff" | "impact" | "verify" | "explain" | "why" | "trace" | "intelligence" | "graph" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp")[];
622
+ subcommands: ("archive" | "snapshot" | "list" | "import" | "goal" | "init" | "sync" | "agent-sync" | "model" | "intelligence" | "run" | "contract" | "share" | "remediation-plan" | "graph" | "diff" | "impact" | "verify" | "explain" | "why" | "trace" | "registry" | "foundation" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp" | "policy" | "export" | "hydrate" | "connect")[];
623
+ intelligenceSubcommands: ("snapshot" | "goal" | "agent-sync" | "model" | "intelligence" | "contract" | "remediation-plan" | "graph" | "diff" | "impact" | "verify" | "explain" | "why" | "trace" | "watch" | "context" | "repair" | "feedback" | "eval" | "mcp")[];
606
624
  };
607
625
  commandMap: any;
608
626
  runtimeInventory: RuntimeCommandInventoryPayload;