workspai 0.43.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 (255) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +624 -0
  3. package/contracts/agent-customization-pack.v1.json +229 -0
  4. package/contracts/analyze-last-run.v1.json +106 -0
  5. package/contracts/artifact-remediation-plan.v1.json +163 -0
  6. package/contracts/backend-import-stack-parity.snapshot.json +37 -0
  7. package/contracts/cli-log-event.v1.json +51 -0
  8. package/contracts/create-planner-capabilities.v1.json +251 -0
  9. package/contracts/doctor-project-evidence.v1.json +304 -0
  10. package/contracts/doctor-remediation-plan.v1.json +496 -0
  11. package/contracts/doctor-workspace-evidence.v1.json +315 -0
  12. package/contracts/extension-cli-compatibility.v1.json +26 -0
  13. package/contracts/infra-stack.v1.json +305 -0
  14. package/contracts/module-layout.v1.json +34 -0
  15. package/contracts/module-support.v1.json +20 -0
  16. package/contracts/pipeline-last-run.v1.json +80 -0
  17. package/contracts/release-readiness.v1.json +60 -0
  18. package/contracts/runtime-command-surface.v1.json +364 -0
  19. package/contracts/workspace-intelligence/agent-action-outcome.v1.json +38 -0
  20. package/contracts/workspace-intelligence/blocker-resolution.v1.json +65 -0
  21. package/contracts/workspace-intelligence/doctor-fix-result.v1.json +44 -0
  22. package/contracts/workspace-intelligence/fact-freshness.v1.json +58 -0
  23. package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +115 -0
  24. package/contracts/workspace-intelligence/workspace-context.v1.json +142 -0
  25. package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +51 -0
  26. package/contracts/workspace-intelligence/workspace-dependency-graph.v1.json +152 -0
  27. package/contracts/workspace-intelligence/workspace-explain.v1.json +31 -0
  28. package/contracts/workspace-intelligence/workspace-impact.v1.json +114 -0
  29. package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +40 -0
  30. package/contracts/workspace-intelligence/workspace-model-diff.v1.json +105 -0
  31. package/contracts/workspace-intelligence/workspace-model-snapshot.v1.json +36 -0
  32. package/contracts/workspace-intelligence/workspace-model.v1.json +135 -0
  33. package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +37 -0
  34. package/contracts/workspace-intelligence/workspace-skills-index.v1.json +27 -0
  35. package/contracts/workspace-intelligence/workspace-verify.v1.json +213 -0
  36. package/contracts/workspace-registry.v1.json +83 -0
  37. package/contracts/workspace-run-last.v1.json +112 -0
  38. package/data/modules-embeddings.json +16953 -0
  39. package/dist/analyze-5BU4QIPK.js +1 -0
  40. package/dist/artifact-remediation-plan-5GJWPPRS.js +3 -0
  41. package/dist/autopilot-release-QYUOVB26.js +1 -0
  42. package/dist/chunk-22DT744Z.js +1 -0
  43. package/dist/chunk-2E6WGUN6.js +1 -0
  44. package/dist/chunk-2FIX2MDC.js +1 -0
  45. package/dist/chunk-3KXW53QI.js +1 -0
  46. package/dist/chunk-3ZK2GU7C.js +1 -0
  47. package/dist/chunk-4KUIFXHM.js +5 -0
  48. package/dist/chunk-54XJNLYC.js +13 -0
  49. package/dist/chunk-5SWNSJGW.js +1 -0
  50. package/dist/chunk-5XATWNME.js +1 -0
  51. package/dist/chunk-753LOKFZ.js +2 -0
  52. package/dist/chunk-7YHK5NM3.js +2 -0
  53. package/dist/chunk-A5FBGRJA.js +1 -0
  54. package/dist/chunk-AAKUNWPR.js +78 -0
  55. package/dist/chunk-AFSZHLQT.js +1 -0
  56. package/dist/chunk-AQ4XZZC6.js +1 -0
  57. package/dist/chunk-CVTCPPEF.js +1 -0
  58. package/dist/chunk-DNAY5ALC.js +1 -0
  59. package/dist/chunk-EWYYLJQY.js +2 -0
  60. package/dist/chunk-GSWPGELT.js +2 -0
  61. package/dist/chunk-GZTYAEWX.js +1 -0
  62. package/dist/chunk-HTYMXMQM.js +1 -0
  63. package/dist/chunk-IBJEQHJR.js +205 -0
  64. package/dist/chunk-ICGWHIMK.js +1 -0
  65. package/dist/chunk-JEI6BTZI.js +3 -0
  66. package/dist/chunk-JHC6SCJC.js +1 -0
  67. package/dist/chunk-LO4C4VXR.js +4 -0
  68. package/dist/chunk-LPZFK3Y6.js +920 -0
  69. package/dist/chunk-LUP4U6EE.js +1 -0
  70. package/dist/chunk-LYC6AIF2.js +2 -0
  71. package/dist/chunk-LZQNVH7D.js +1 -0
  72. package/dist/chunk-NAAQMSO3.js +1 -0
  73. package/dist/chunk-NFUXULIF.js +1 -0
  74. package/dist/chunk-OCGZNSOE.js +1 -0
  75. package/dist/chunk-OJEWQO3Z.js +33 -0
  76. package/dist/chunk-OL64GWQC.js +9 -0
  77. package/dist/chunk-PI5KUXDA.js +7 -0
  78. package/dist/chunk-PYCJWW4B.js +1 -0
  79. package/dist/chunk-RE773WOX.js +13 -0
  80. package/dist/chunk-RO73VVHW.js +2 -0
  81. package/dist/chunk-S5KTATOU.js +1 -0
  82. package/dist/chunk-SI3AQKIP.js +1 -0
  83. package/dist/chunk-T3GJ7YVG.js +1 -0
  84. package/dist/chunk-T6OR6YOI.js +2 -0
  85. package/dist/chunk-VRDF2J46.js +653 -0
  86. package/dist/chunk-VZKSNUEE.js +2 -0
  87. package/dist/chunk-WU4ZRRA5.js +4 -0
  88. package/dist/chunk-XEJD4KCV.js +33 -0
  89. package/dist/chunk-XZGVNGRB.js +1 -0
  90. package/dist/chunk-Y45WZR5N.js +5 -0
  91. package/dist/create-WRZO4HK2.js +1 -0
  92. package/dist/demo-kit-AJ5LIM5G.js +149 -0
  93. package/dist/doctor-MF3M3FS3.js +1 -0
  94. package/dist/dotnet-webapi-clean-IPY3MCGQ.js +425 -0
  95. package/dist/gofiber-standard-N5N3QGH3.js +1397 -0
  96. package/dist/gogin-standard-LAWQTBWL.js +1459 -0
  97. package/dist/imported-projects-registry-FOIE27WT.js +1 -0
  98. package/dist/index.d.ts +141 -0
  99. package/dist/index.js +454 -0
  100. package/dist/managed-agent-markers-AXUM75OE.js +8 -0
  101. package/dist/module-layout-NZ43RSC5.js +1 -0
  102. package/dist/pipeline-QCUHFWDY.js +5 -0
  103. package/dist/platform-capabilities-XAVU4HSM.js +1 -0
  104. package/dist/pythonRapidkitExec-3L3XJBSY.js +1 -0
  105. package/dist/springboot-standard-OZYF7ZM7.js +697 -0
  106. package/dist/workspace-PR6VZRBG.js +1 -0
  107. package/dist/workspace-agent-sync-KTYF3HQR.js +1 -0
  108. package/dist/workspace-archive-GCZNI44O.js +3 -0
  109. package/dist/workspace-context-QUTOP2XV.js +1 -0
  110. package/dist/workspace-contract-XUGMCUSQ.js +1 -0
  111. package/dist/workspace-explain-JEONEGZZ.js +1 -0
  112. package/dist/workspace-explain-contract-DNS2YEL7.js +1 -0
  113. package/dist/workspace-feedback-R6H4UFZB.js +1 -0
  114. package/dist/workspace-foundation-KGSV4E6D.js +1 -0
  115. package/dist/workspace-graph-2A5THUCI.js +1 -0
  116. package/dist/workspace-history-CGCK2DJI.js +1 -0
  117. package/dist/workspace-intelligence-QJGVL37U.js +1 -0
  118. package/dist/workspace-marker-SMBC3Z2Q.js +1 -0
  119. package/dist/workspace-mcp-serve-AK4MYEHQ.js +3 -0
  120. package/dist/workspace-model-PNXXOGPO.js +1 -0
  121. package/dist/workspace-python-engine-state-MTWIIZPY.js +2 -0
  122. package/dist/workspace-registry-summary-RUJE6RPH.js +1 -0
  123. package/dist/workspace-run-Y7YMUIHX.js +1 -0
  124. package/dist/workspace-verify-WSDUUTR5.js +1 -0
  125. package/dist/workspace-watch-AGPOJ74Q.js +1 -0
  126. package/docs/AI_DYNAMIC_INTEGRATION.md +440 -0
  127. package/docs/AI_EXAMPLES.md +419 -0
  128. package/docs/AI_FEATURES.md +460 -0
  129. package/docs/AI_QUICKSTART.md +245 -0
  130. package/docs/DEVELOPMENT.md +90 -0
  131. package/docs/From Code to Shared Understanding.png +0 -0
  132. package/docs/OPEN_SOURCE_USER_SCENARIOS.md +170 -0
  133. package/docs/OPTIMIZATION_GUIDE.md +504 -0
  134. package/docs/PACKAGE_MANAGER_POLICY.md +25 -0
  135. package/docs/README.md +125 -0
  136. package/docs/SECURITY.md +63 -0
  137. package/docs/SETUP.md +107 -0
  138. package/docs/UTILITIES.md +221 -0
  139. package/docs/WORKSPACE_MARKER_SPEC.md +276 -0
  140. package/docs/ci-workflows.md +59 -0
  141. package/docs/commands-reference.md +172 -0
  142. package/docs/config-file-guide.md +299 -0
  143. package/docs/contracts/ARTIFACT_CATALOG.md +333 -0
  144. package/docs/contracts/CLI_LOG_EVENT_STREAM.md +123 -0
  145. package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +138 -0
  146. package/docs/contracts/NAMING_AND_COEXISTENCE.md +60 -0
  147. package/docs/contracts/README.md +86 -0
  148. package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +98 -0
  149. package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +75 -0
  150. package/docs/contracts/rapidkit-cli-contracts.json +239 -0
  151. package/docs/create-planner-capabilities.md +81 -0
  152. package/docs/doctor-command.md +467 -0
  153. package/docs/examples/ci-agent-grounding.yml +65 -0
  154. package/docs/from-code-to-shared-understanding.md +45 -0
  155. package/docs/governance-policy.enterprise.example.json +40 -0
  156. package/docs/mirror-config.enterprise.example.json +60 -0
  157. package/docs/policies.workspace.example.yml +23 -0
  158. package/docs/workspace-operations.md +160 -0
  159. package/docs/workspace-run.md +104 -0
  160. package/package.json +179 -0
  161. package/rapidkit.config.example.cjs +62 -0
  162. package/scripts/check-agent-customization-drift.mjs +78 -0
  163. package/scripts/check-cli-resolution.cjs +72 -0
  164. package/scripts/enforce-package-manager.cjs +10 -0
  165. package/scripts/enterprise-package-smoke.mjs +463 -0
  166. package/scripts/prepack-enterprise.mjs +43 -0
  167. package/templates/generator.js +179 -0
  168. package/templates/kits/fastapi-ddd/README.md.j2 +117 -0
  169. package/templates/kits/fastapi-ddd/common/env.example.j2 +10 -0
  170. package/templates/kits/fastapi-ddd/env.example.j2 +1 -0
  171. package/templates/kits/fastapi-ddd/pyproject.toml.j2 +64 -0
  172. package/templates/kits/fastapi-ddd/src/__init__.py.j2 +3 -0
  173. package/templates/kits/fastapi-ddd/src/app/__init__.py.j2 +11 -0
  174. package/templates/kits/fastapi-ddd/src/app/application/__init__.py.j2 +5 -0
  175. package/templates/kits/fastapi-ddd/src/app/application/interfaces.py.j2 +43 -0
  176. package/templates/kits/fastapi-ddd/src/app/application/use_cases/__init__.py.j2 +6 -0
  177. package/templates/kits/fastapi-ddd/src/app/application/use_cases/health.py.j2 +14 -0
  178. package/templates/kits/fastapi-ddd/src/app/application/use_cases/notes.py.j2 +24 -0
  179. package/templates/kits/fastapi-ddd/src/app/config/__init__.py.j2 +16 -0
  180. package/templates/kits/fastapi-ddd/src/app/domain/__init__.py.j2 +3 -0
  181. package/templates/kits/fastapi-ddd/src/app/domain/models/__init__.py.j2 +6 -0
  182. package/templates/kits/fastapi-ddd/src/app/domain/models/health.py.j2 +16 -0
  183. package/templates/kits/fastapi-ddd/src/app/domain/models/note.py.j2 +27 -0
  184. package/templates/kits/fastapi-ddd/src/app/infrastructure/__init__.py.j2 +5 -0
  185. package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/__init__.py.j2 +6 -0
  186. package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/health.py.j2 +17 -0
  187. package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/notes.py.j2 +28 -0
  188. package/templates/kits/fastapi-ddd/src/app/main.py.j2 +61 -0
  189. package/templates/kits/fastapi-ddd/src/app/presentation/__init__.py.j2 +3 -0
  190. package/templates/kits/fastapi-ddd/src/app/presentation/api/__init__.py.j2 +5 -0
  191. package/templates/kits/fastapi-ddd/src/app/presentation/api/dependencies/__init__.py.j2 +19 -0
  192. package/templates/kits/fastapi-ddd/src/app/presentation/api/router.py.j2 +10 -0
  193. package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/__init__.py.j2 +5 -0
  194. package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/health.py.j2 +27 -0
  195. package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/notes.py.j2 +50 -0
  196. package/templates/kits/fastapi-ddd/src/app/shared/__init__.py.j2 +5 -0
  197. package/templates/kits/fastapi-ddd/src/app/shared/result.py.j2 +28 -0
  198. package/templates/kits/fastapi-ddd/src/cli.py.j2 +170 -0
  199. package/templates/kits/fastapi-ddd/src/main.py.j2 +35 -0
  200. package/templates/kits/fastapi-ddd/src/modules/__init__.py.j2 +3 -0
  201. package/templates/kits/fastapi-ddd/src/routing/__init__.py.j2 +13 -0
  202. package/templates/kits/fastapi-ddd/src/routing/health.py.j2 +7 -0
  203. package/templates/kits/fastapi-ddd/src/routing/notes.py.j2 +7 -0
  204. package/templates/kits/fastapi-ddd/tests/__init__.py.j2 +1 -0
  205. package/templates/kits/fastapi-ddd/tests/test_app_factory.py.j2 +22 -0
  206. package/templates/kits/fastapi-ddd/tests/test_health.py.j2 +17 -0
  207. package/templates/kits/fastapi-ddd/tests/test_notes.py.j2 +27 -0
  208. package/templates/kits/fastapi-standard/README.md.j2 +140 -0
  209. package/templates/kits/fastapi-standard/common/env.example.j2 +10 -0
  210. package/templates/kits/fastapi-standard/env.example.j2 +1 -0
  211. package/templates/kits/fastapi-standard/pyproject.toml.j2 +64 -0
  212. package/templates/kits/fastapi-standard/src/__init__.py.j2 +3 -0
  213. package/templates/kits/fastapi-standard/src/cli.py.j2 +171 -0
  214. package/templates/kits/fastapi-standard/src/main.py.j2 +66 -0
  215. package/templates/kits/fastapi-standard/src/modules/__init__.py.j2 +3 -0
  216. package/templates/kits/fastapi-standard/src/routing/__init__.py.j2 +16 -0
  217. package/templates/kits/fastapi-standard/src/routing/examples.py.j2 +71 -0
  218. package/templates/kits/fastapi-standard/src/routing/health.py.j2 +22 -0
  219. package/templates/kits/fastapi-standard/tests/__init__.py.j2 +1 -0
  220. package/templates/kits/fastapi-standard/tests/test_examples.py.j2 +29 -0
  221. package/templates/kits/fastapi-standard/tests/test_health.py.j2 +17 -0
  222. package/templates/kits/nestjs-standard/Dockerfile.j2 +41 -0
  223. package/templates/kits/nestjs-standard/README.md.j2 +134 -0
  224. package/templates/kits/nestjs-standard/docker-compose.yml.j2 +94 -0
  225. package/templates/kits/nestjs-standard/docs/README.md.j2 +15 -0
  226. package/templates/kits/nestjs-standard/env.example.j2 +18 -0
  227. package/templates/kits/nestjs-standard/eslint.config.cjs.j2 +9 -0
  228. package/templates/kits/nestjs-standard/jest.config.ts.j2 +28 -0
  229. package/templates/kits/nestjs-standard/nest-cli.json.j2 +10 -0
  230. package/templates/kits/nestjs-standard/package.json.j2 +101 -0
  231. package/templates/kits/nestjs-standard/src/app.controller.ts.j2 +14 -0
  232. package/templates/kits/nestjs-standard/src/app.module.ts.j2 +26 -0
  233. package/templates/kits/nestjs-standard/src/app.service.ts.j2 +16 -0
  234. package/templates/kits/nestjs-standard/src/auth/auth.controller.ts.j2 +20 -0
  235. package/templates/kits/nestjs-standard/src/auth/auth.module.ts.j2 +13 -0
  236. package/templates/kits/nestjs-standard/src/auth/auth.service.ts.j2 +6 -0
  237. package/templates/kits/nestjs-standard/src/auth/entities/token.entity.ts.j2 +3 -0
  238. package/templates/kits/nestjs-standard/src/auth/entities/user.entity.ts.j2 +3 -0
  239. package/templates/kits/nestjs-standard/src/auth/entities/webauthn.entity.ts.j2 +3 -0
  240. package/templates/kits/nestjs-standard/src/config/configuration.ts.j2 +85 -0
  241. package/templates/kits/nestjs-standard/src/config/index.ts.j2 +2 -0
  242. package/templates/kits/nestjs-standard/src/config/validation.ts.j2 +21 -0
  243. package/templates/kits/nestjs-standard/src/examples/dto/create-note.dto.ts.j2 +11 -0
  244. package/templates/kits/nestjs-standard/src/examples/examples.controller.ts.j2 +24 -0
  245. package/templates/kits/nestjs-standard/src/examples/examples.module.ts.j2 +10 -0
  246. package/templates/kits/nestjs-standard/src/examples/examples.service.ts.j2 +33 -0
  247. package/templates/kits/nestjs-standard/src/main.ts.j2 +53 -0
  248. package/templates/kits/nestjs-standard/src/modules/index.ts.j2 +25 -0
  249. package/templates/kits/nestjs-standard/test/app.controller.spec.ts.j2 +24 -0
  250. package/templates/kits/nestjs-standard/test/app.e2e-spec.ts.j2 +60 -0
  251. package/templates/kits/nestjs-standard/test/examples.controller.spec.ts.j2 +28 -0
  252. package/templates/kits/nestjs-standard/test/jest-e2e.json.j2 +15 -0
  253. package/templates/kits/nestjs-standard/tsconfig.build.json.j2 +12 -0
  254. package/templates/kits/nestjs-standard/tsconfig.json.j2 +26 -0
  255. package/workspai.config.example.cjs +62 -0
@@ -0,0 +1,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/fact-freshness.v1.json",
4
+ "title": "RapidKit Fact Freshness Contract",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "kind",
9
+ "category",
10
+ "generatedAt",
11
+ "ttlSeconds",
12
+ "status",
13
+ "verifyBeforeUse",
14
+ "reason"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": "rapidkit-fact-freshness-v1"
19
+ },
20
+ "kind": {
21
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
22
+ },
23
+ "category": {
24
+ "enum": ["structure", "verification", "state"]
25
+ },
26
+ "generatedAt": {
27
+ "type": "string",
28
+ "format": "date-time"
29
+ },
30
+ "ttlSeconds": {
31
+ "type": ["integer", "null"],
32
+ "minimum": 0
33
+ },
34
+ "expiresAt": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ },
38
+ "status": {
39
+ "enum": ["fresh", "stale", "unknown"]
40
+ },
41
+ "verifyBeforeUse": {
42
+ "type": "boolean"
43
+ },
44
+ "sourceArtifact": {
45
+ "type": "string"
46
+ },
47
+ "sourcePath": {
48
+ "type": "string"
49
+ },
50
+ "inputsHash": {
51
+ "type": "string"
52
+ },
53
+ "reason": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "additionalProperties": false
58
+ }
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/studio-blocker-handoff.v1.json",
4
+ "title": "Workspai Studio Blocker Handoff",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "cardId",
9
+ "cardStatus",
10
+ "blockers",
11
+ "artifactPath",
12
+ "sourceCommand",
13
+ "scope"
14
+ ],
15
+ "properties": {
16
+ "schemaVersion": {
17
+ "const": "rapidkit-studio-blocker-handoff-v1"
18
+ },
19
+ "cardId": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "cardLabel": {
24
+ "type": "string"
25
+ },
26
+ "cardStatus": {
27
+ "enum": ["pass", "warn", "fail", "missing"]
28
+ },
29
+ "blockers": {
30
+ "type": "array",
31
+ "items": { "type": "string" }
32
+ },
33
+ "artifactPath": {
34
+ "type": "string"
35
+ },
36
+ "sourceCommand": {
37
+ "type": "string"
38
+ },
39
+ "scope": {
40
+ "enum": ["workspace", "project"]
41
+ },
42
+ "stderrTail": {
43
+ "type": "string"
44
+ },
45
+ "exitCode": {
46
+ "type": ["integer", "null"]
47
+ },
48
+ "blockerSignature": {
49
+ "type": "string",
50
+ "minLength": 8
51
+ },
52
+ "commandRunCount": {
53
+ "type": "integer",
54
+ "minimum": 0
55
+ },
56
+ "resolutionClass": {
57
+ "enum": [
58
+ "artifact-missing",
59
+ "command-failed-repeat",
60
+ "config-fixable",
61
+ "semantic-attention",
62
+ "unresolvable-without-human"
63
+ ]
64
+ },
65
+ "studioMode": {
66
+ "enum": ["FIX", "RUN_ONCE", "VERIFY_ONLY", "EXPLAIN"]
67
+ },
68
+ "incidentSummary": {
69
+ "type": "object",
70
+ "required": ["title", "phase", "primaryAction", "verifyRequired", "auditStatus"],
71
+ "properties": {
72
+ "title": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "phase": {
77
+ "enum": ["detect", "diagnose", "fix", "verify", "audit"]
78
+ },
79
+ "primaryAction": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "verifyRequired": {
84
+ "type": "boolean"
85
+ },
86
+ "auditStatus": {
87
+ "enum": ["not-started", "pending", "saved", "failed", "unknown"]
88
+ }
89
+ },
90
+ "additionalProperties": false
91
+ },
92
+ "resolutionHints": {
93
+ "type": "array",
94
+ "items": {
95
+ "$ref": "blocker-resolution.v1.json"
96
+ }
97
+ },
98
+ "verifyCommand": {
99
+ "type": "string"
100
+ },
101
+ "verifyArtifact": {
102
+ "type": "string"
103
+ },
104
+ "handoffSource": {
105
+ "enum": ["repair", "artifacts", "advisor", "tree", "dashboard"]
106
+ },
107
+ "workspacePath": {
108
+ "type": "string"
109
+ },
110
+ "projectPath": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "additionalProperties": false
115
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-context.v1.json",
4
+ "title": "Workspai Workspace Agent Context",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "agent",
10
+ "workspaceSummary",
11
+ "modelRef",
12
+ "workspace",
13
+ "scope",
14
+ "projects",
15
+ "safeCommands",
16
+ "validation"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "const": "workspace-context.v1"
21
+ },
22
+ "generatedAt": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "agent": {
27
+ "enum": ["generic", "codex", "claude", "cursor", "orca"]
28
+ },
29
+ "workspaceSummary": { "type": "string" },
30
+ "modelRef": { "type": "string" },
31
+ "workspace": {
32
+ "type": "object",
33
+ "required": ["name", "root", "type"],
34
+ "properties": {
35
+ "name": { "type": "string" },
36
+ "root": { "type": "string" },
37
+ "type": { "type": "string" },
38
+ "profile": { "type": "string" }
39
+ },
40
+ "additionalProperties": false
41
+ },
42
+ "scope": { "type": "object", "additionalProperties": true },
43
+ "projects": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
44
+ "safeCommands": {
45
+ "type": "array",
46
+ "items": { "type": "object", "additionalProperties": true }
47
+ },
48
+ "factFreshness": { "$ref": "#/$defs/factFreshnessSummary" },
49
+ "facts": {
50
+ "type": "array",
51
+ "items": { "$ref": "#/$defs/workspaceFact" }
52
+ },
53
+ "validation": {
54
+ "type": "object",
55
+ "required": ["status", "errors", "warnings"],
56
+ "properties": {
57
+ "status": {
58
+ "enum": ["passed", "warning", "failed"]
59
+ },
60
+ "errors": { "type": "integer", "minimum": 0 },
61
+ "warnings": { "type": "integer", "minimum": 0 }
62
+ },
63
+ "additionalProperties": true
64
+ }
65
+ },
66
+ "$defs": {
67
+ "factFreshness": {
68
+ "type": "object",
69
+ "required": [
70
+ "schemaVersion",
71
+ "kind",
72
+ "category",
73
+ "generatedAt",
74
+ "ttlSeconds",
75
+ "status",
76
+ "verifyBeforeUse",
77
+ "reason"
78
+ ],
79
+ "properties": {
80
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
81
+ "kind": {
82
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
83
+ },
84
+ "category": { "enum": ["structure", "verification", "state"] },
85
+ "generatedAt": { "type": "string", "format": "date-time" },
86
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
87
+ "expiresAt": { "type": "string", "format": "date-time" },
88
+ "status": { "enum": ["fresh", "stale", "unknown"] },
89
+ "verifyBeforeUse": { "type": "boolean" },
90
+ "sourceArtifact": { "type": "string" },
91
+ "sourcePath": { "type": "string" },
92
+ "inputsHash": { "type": "string" },
93
+ "reason": { "type": "string" }
94
+ },
95
+ "additionalProperties": false
96
+ },
97
+ "workspaceFact": {
98
+ "type": "object",
99
+ "required": ["id", "label", "scope", "value", "freshness"],
100
+ "properties": {
101
+ "id": { "type": "string" },
102
+ "label": { "type": "string" },
103
+ "scope": {
104
+ "enum": ["workspace", "project", "evidence", "policy", "contract", "command", "graph"]
105
+ },
106
+ "project": { "type": "string" },
107
+ "value": true,
108
+ "freshness": { "$ref": "#/$defs/factFreshness" }
109
+ },
110
+ "additionalProperties": false
111
+ },
112
+ "factFreshnessSummary": {
113
+ "type": "object",
114
+ "required": [
115
+ "schemaVersion",
116
+ "generatedAt",
117
+ "status",
118
+ "totalFacts",
119
+ "staleFacts",
120
+ "unknownFacts",
121
+ "liveFacts",
122
+ "verifyBeforeUseFacts",
123
+ "byKind",
124
+ "byCategory"
125
+ ],
126
+ "properties": {
127
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
128
+ "generatedAt": { "type": "string", "format": "date-time" },
129
+ "status": { "enum": ["fresh", "stale", "unknown"] },
130
+ "totalFacts": { "type": "integer", "minimum": 0 },
131
+ "staleFacts": { "type": "integer", "minimum": 0 },
132
+ "unknownFacts": { "type": "integer", "minimum": 0 },
133
+ "liveFacts": { "type": "integer", "minimum": 0 },
134
+ "verifyBeforeUseFacts": { "type": "integer", "minimum": 0 },
135
+ "byKind": { "type": "object", "additionalProperties": { "type": "integer" } },
136
+ "byCategory": { "type": "object", "additionalProperties": { "type": "integer" } }
137
+ },
138
+ "additionalProperties": false
139
+ }
140
+ },
141
+ "additionalProperties": true
142
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "workspace-contract-verify.v1",
4
+ "title": "Workspace contract verify evidence",
5
+ "type": "object",
6
+ "additionalProperties": true,
7
+ "required": [
8
+ "schemaVersion",
9
+ "generatedAt",
10
+ "status",
11
+ "contractPath",
12
+ "projectCount",
13
+ "checks",
14
+ "violations"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": "workspace-contract-verify.v1"
19
+ },
20
+ "generatedAt": {
21
+ "type": "string",
22
+ "format": "date-time"
23
+ },
24
+ "status": {
25
+ "enum": ["passed", "failed"]
26
+ },
27
+ "contractPath": {
28
+ "type": "string"
29
+ },
30
+ "projectCount": {
31
+ "type": "integer",
32
+ "minimum": 0
33
+ },
34
+ "checks": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "object",
38
+ "required": ["id", "status", "message"],
39
+ "properties": {
40
+ "id": { "type": "string" },
41
+ "status": { "enum": ["passed", "failed"] },
42
+ "message": { "type": "string" }
43
+ }
44
+ }
45
+ },
46
+ "violations": {
47
+ "type": "array",
48
+ "items": { "type": "string" }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,152 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-dependency-graph.v1.json",
4
+ "title": "Workspai Workspace Dependency Graph",
5
+ "description": "First-class, versioned dependency graph of inter-project relationships consumed by impact, verify, run --blast-radius, and risk weighting.",
6
+ "type": "object",
7
+ "required": ["schemaVersion", "generatedAt", "nodes", "edges", "stats"],
8
+ "properties": {
9
+ "schemaVersion": {
10
+ "const": "workspace-dependency-graph.v1"
11
+ },
12
+ "generatedAt": {
13
+ "type": "string",
14
+ "format": "date-time"
15
+ },
16
+ "nodes": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "object",
20
+ "required": ["id", "path"],
21
+ "properties": {
22
+ "id": { "type": "string", "minLength": 1 },
23
+ "path": { "type": "string", "minLength": 1 },
24
+ "runtime": { "type": "string" },
25
+ "framework": { "type": "string" },
26
+ "kind": { "type": "string" },
27
+ "operationalProfile": {
28
+ "type": "object",
29
+ "required": ["weight", "score", "verificationPriority", "reasons", "centrality"],
30
+ "properties": {
31
+ "weight": { "enum": ["low", "medium", "high", "critical"] },
32
+ "score": { "type": "integer", "minimum": 0, "maximum": 100 },
33
+ "verificationPriority": { "enum": ["normal", "elevated", "strict"] },
34
+ "reasons": {
35
+ "type": "array",
36
+ "items": { "type": "string" }
37
+ },
38
+ "centrality": {
39
+ "type": "object",
40
+ "required": ["fanIn", "fanOut", "reach", "betweenness", "isHotspot"],
41
+ "properties": {
42
+ "fanIn": { "type": "integer", "minimum": 0 },
43
+ "fanOut": { "type": "integer", "minimum": 0 },
44
+ "reach": { "type": "integer", "minimum": 0 },
45
+ "betweenness": { "type": "number", "minimum": 0 },
46
+ "isHotspot": { "type": "boolean" }
47
+ },
48
+ "additionalProperties": true
49
+ }
50
+ },
51
+ "additionalProperties": true
52
+ }
53
+ },
54
+ "additionalProperties": true
55
+ }
56
+ },
57
+ "edges": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "required": ["from", "to", "kind", "source", "confidence", "evidence"],
62
+ "properties": {
63
+ "from": { "type": "string", "minLength": 1 },
64
+ "to": { "type": "string", "minLength": 1 },
65
+ "kind": {
66
+ "enum": [
67
+ "code-import",
68
+ "package-dep",
69
+ "event-pub-sub",
70
+ "service-dependsOn",
71
+ "shared-resource"
72
+ ]
73
+ },
74
+ "source": {
75
+ "enum": ["inferred", "contract", "manual"]
76
+ },
77
+ "confidence": {
78
+ "enum": ["high", "medium", "low"]
79
+ },
80
+ "evidence": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "required": ["file"],
85
+ "properties": {
86
+ "file": { "type": "string", "minLength": 1 },
87
+ "detail": { "type": "string" }
88
+ },
89
+ "additionalProperties": true
90
+ }
91
+ }
92
+ },
93
+ "additionalProperties": true
94
+ }
95
+ },
96
+ "stats": {
97
+ "type": "object",
98
+ "required": [
99
+ "nodeCount",
100
+ "edgeCount",
101
+ "inferredEdges",
102
+ "contractEdges",
103
+ "manualEdges",
104
+ "authoritativeEdges",
105
+ "lowConfidenceEdges",
106
+ "orphanCount",
107
+ "connectedNodeCount",
108
+ "density",
109
+ "edgeCoverageRatio",
110
+ "evidenceCoverageRatio",
111
+ "hotspotCount",
112
+ "hasCycle"
113
+ ],
114
+ "properties": {
115
+ "nodeCount": { "type": "integer", "minimum": 0 },
116
+ "edgeCount": { "type": "integer", "minimum": 0 },
117
+ "inferredEdges": { "type": "integer", "minimum": 0 },
118
+ "contractEdges": { "type": "integer", "minimum": 0 },
119
+ "manualEdges": { "type": "integer", "minimum": 0 },
120
+ "authoritativeEdges": { "type": "integer", "minimum": 0 },
121
+ "lowConfidenceEdges": { "type": "integer", "minimum": 0 },
122
+ "orphanCount": { "type": "integer", "minimum": 0 },
123
+ "connectedNodeCount": { "type": "integer", "minimum": 0 },
124
+ "density": { "type": "number", "minimum": 0 },
125
+ "edgeCoverageRatio": { "type": "number", "minimum": 0, "maximum": 1 },
126
+ "evidenceCoverageRatio": { "type": "number", "minimum": 0, "maximum": 1 },
127
+ "hotspotCount": { "type": "integer", "minimum": 0 },
128
+ "hasCycle": { "type": "boolean" }
129
+ },
130
+ "additionalProperties": true
131
+ },
132
+ "diagnostics": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "object",
136
+ "required": ["code", "severity", "message"],
137
+ "properties": {
138
+ "code": { "type": "string", "minLength": 1 },
139
+ "severity": { "enum": ["info", "warning", "error"] },
140
+ "message": { "type": "string", "minLength": 1 },
141
+ "recommendation": { "type": "string" },
142
+ "nodeIds": {
143
+ "type": "array",
144
+ "items": { "type": "string", "minLength": 1 }
145
+ }
146
+ },
147
+ "additionalProperties": true
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": true
152
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-explain.v1.json",
4
+ "title": "Workspai Workspace Explain Report",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "generatedAt", "workspacePath", "target", "summary", "sections"],
7
+ "properties": {
8
+ "schemaVersion": { "const": "workspace-explain.v1" },
9
+ "generatedAt": { "type": "string", "format": "date-time" },
10
+ "workspacePath": { "type": "string" },
11
+ "target": { "type": "object", "additionalProperties": true },
12
+ "summary": { "type": "string" },
13
+ "sections": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "required": ["id", "title", "body"],
18
+ "properties": {
19
+ "id": { "type": "string" },
20
+ "title": { "type": "string" },
21
+ "body": { "type": "string" }
22
+ },
23
+ "additionalProperties": false
24
+ }
25
+ },
26
+ "releaseRisk": { "type": "string" },
27
+ "blockingReasons": { "type": "array", "items": { "type": "string" } },
28
+ "resolutionHints": { "type": "array", "items": { "type": "object" } }
29
+ },
30
+ "additionalProperties": false
31
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-impact.v1.json",
4
+ "title": "Workspai Workspace Impact",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "fromRef",
10
+ "diffRef",
11
+ "workspace",
12
+ "summary",
13
+ "affectedProjects",
14
+ "transitiveImpact",
15
+ "criticalPathHotspots",
16
+ "workspaceImpact",
17
+ "verificationPlan",
18
+ "agentBrief",
19
+ "diff"
20
+ ],
21
+ "properties": {
22
+ "schemaVersion": {
23
+ "const": "workspace-impact.v1"
24
+ },
25
+ "generatedAt": {
26
+ "type": "string",
27
+ "format": "date-time"
28
+ },
29
+ "fromRef": { "type": "string" },
30
+ "diffRef": { "type": "string" },
31
+ "workspace": {
32
+ "type": "object",
33
+ "required": ["name", "type"],
34
+ "properties": {
35
+ "name": { "type": "string" },
36
+ "profile": { "type": "string" },
37
+ "type": { "type": "string" }
38
+ },
39
+ "additionalProperties": false
40
+ },
41
+ "summary": {
42
+ "type": "object",
43
+ "required": [
44
+ "changed",
45
+ "risk",
46
+ "affectedProjects",
47
+ "workspaceItems",
48
+ "recommendedCommands",
49
+ "blastRadius"
50
+ ],
51
+ "properties": {
52
+ "changed": { "type": "boolean" },
53
+ "risk": {
54
+ "enum": ["none", "low", "medium", "high", "critical"]
55
+ },
56
+ "affectedProjects": { "type": "integer", "minimum": 0 },
57
+ "workspaceItems": { "type": "integer", "minimum": 0 },
58
+ "recommendedCommands": { "type": "integer", "minimum": 0 },
59
+ "blastRadius": {
60
+ "type": "object",
61
+ "required": ["directlyAffected", "transitivelyAffected", "maxDistance", "graphEdges"],
62
+ "properties": {
63
+ "directlyAffected": { "type": "integer", "minimum": 0 },
64
+ "transitivelyAffected": { "type": "integer", "minimum": 0 },
65
+ "maxDistance": { "type": "integer", "minimum": 0 },
66
+ "graphEdges": { "type": "integer", "minimum": 0 }
67
+ },
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ },
73
+ "affectedProjects": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
74
+ "transitiveImpact": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
75
+ "criticalPathHotspots": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "object",
79
+ "required": ["project", "fanIn", "fanOut", "reach", "betweenness"],
80
+ "properties": {
81
+ "project": { "type": "string" },
82
+ "fanIn": { "type": "integer", "minimum": 0 },
83
+ "fanOut": { "type": "integer", "minimum": 0 },
84
+ "reach": { "type": "integer", "minimum": 0 },
85
+ "betweenness": { "type": "number", "minimum": 0 }
86
+ },
87
+ "additionalProperties": true
88
+ }
89
+ },
90
+ "workspaceImpact": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
91
+ "verificationPlan": { "type": "array", "items": { "type": "object", "additionalProperties": true } },
92
+ "agentBrief": {
93
+ "type": "object",
94
+ "required": ["headline", "bullets", "unsafeAssumptions"],
95
+ "properties": {
96
+ "headline": { "type": "string" },
97
+ "bullets": { "type": "array", "items": { "type": "string" } },
98
+ "unsafeAssumptions": { "type": "array", "items": { "type": "string" } }
99
+ },
100
+ "additionalProperties": false
101
+ },
102
+ "diff": {
103
+ "type": "object",
104
+ "required": ["schemaVersion"],
105
+ "properties": {
106
+ "schemaVersion": {
107
+ "const": "workspace-model-diff.v1"
108
+ }
109
+ },
110
+ "additionalProperties": true
111
+ }
112
+ },
113
+ "additionalProperties": true
114
+ }