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,40 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-intelligence-history.v1.json",
4
+ "title": "Workspai Workspace Intelligence History",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "retention", "entries"],
7
+ "properties": {
8
+ "schemaVersion": { "const": "workspace-intelligence-history.v1" },
9
+ "retention": { "type": "integer", "minimum": 1 },
10
+ "entries": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "required": ["generatedAt"],
15
+ "properties": {
16
+ "generatedAt": { "type": "string", "format": "date-time" },
17
+ "kind": { "enum": ["verify", "agent-action", "doctor-fix"] },
18
+ "verdict": { "enum": ["ready", "needs-attention", "blocked"] },
19
+ "risk": { "type": "string" },
20
+ "affectedProjects": { "type": "integer", "minimum": 0 },
21
+ "freshness": { "enum": ["fresh", "stale", "unknown"] },
22
+ "gatePassed": { "type": "boolean" },
23
+ "blockingReasons": { "type": "integer", "minimum": 0 },
24
+ "policyViolations": { "type": "integer", "minimum": 0 },
25
+ "actionId": { "type": "string" },
26
+ "scope": { "type": "string" },
27
+ "summary": { "type": "string" },
28
+ "outcome": { "enum": ["ok", "failed"] },
29
+ "evidenceSha256": { "type": "string" },
30
+ "applied": { "type": "integer", "minimum": 0 },
31
+ "failed": { "type": "integer", "minimum": 0 },
32
+ "skipped": { "type": "integer", "minimum": 0 },
33
+ "remainingBlockers": { "type": "integer", "minimum": 0 }
34
+ },
35
+ "additionalProperties": true
36
+ }
37
+ }
38
+ },
39
+ "additionalProperties": false
40
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-model-diff.v1.json",
4
+ "title": "Workspai Workspace Model Diff",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "fromRef",
10
+ "toRef",
11
+ "fromHash",
12
+ "toHash",
13
+ "summary",
14
+ "changes",
15
+ "currentModel"
16
+ ],
17
+ "properties": {
18
+ "schemaVersion": {
19
+ "const": "workspace-model-diff.v1"
20
+ },
21
+ "generatedAt": {
22
+ "type": "string",
23
+ "format": "date-time"
24
+ },
25
+ "fromRef": { "type": "string" },
26
+ "toRef": { "type": "string" },
27
+ "fromHash": { "type": "string" },
28
+ "toHash": { "type": "string" },
29
+ "summary": {
30
+ "type": "object",
31
+ "required": [
32
+ "changed",
33
+ "addedProjects",
34
+ "removedProjects",
35
+ "changedProjects",
36
+ "workspaceChanges",
37
+ "validationChanges",
38
+ "gitChangedFiles"
39
+ ],
40
+ "properties": {
41
+ "changed": { "type": "boolean" },
42
+ "addedProjects": { "type": "integer", "minimum": 0 },
43
+ "removedProjects": { "type": "integer", "minimum": 0 },
44
+ "changedProjects": { "type": "integer", "minimum": 0 },
45
+ "workspaceChanges": { "type": "integer", "minimum": 0 },
46
+ "validationChanges": { "type": "integer", "minimum": 0 },
47
+ "gitChangedFiles": { "type": "integer", "minimum": 0 }
48
+ },
49
+ "additionalProperties": false
50
+ },
51
+ "git": {
52
+ "type": "object",
53
+ "required": ["available", "dirty", "changedFiles", "untrackedFiles", "deletedFiles"],
54
+ "properties": {
55
+ "available": { "type": "boolean" },
56
+ "ref": { "type": "string" },
57
+ "branch": { "type": "string" },
58
+ "commit": { "type": "string" },
59
+ "dirty": { "type": "boolean" },
60
+ "changedFiles": { "type": "integer", "minimum": 0 },
61
+ "untrackedFiles": { "type": "integer", "minimum": 0 },
62
+ "deletedFiles": { "type": "integer", "minimum": 0 }
63
+ },
64
+ "additionalProperties": false
65
+ },
66
+ "changes": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "object",
70
+ "required": ["type", "severity", "target", "message"],
71
+ "properties": {
72
+ "type": {
73
+ "enum": [
74
+ "project.added",
75
+ "project.removed",
76
+ "project.changed",
77
+ "workspace.changed",
78
+ "validation.changed",
79
+ "git.file.changed",
80
+ "git.untracked",
81
+ "git.deleted"
82
+ ]
83
+ },
84
+ "severity": {
85
+ "enum": ["info", "warning", "critical"]
86
+ },
87
+ "target": { "type": "string" },
88
+ "message": { "type": "string" }
89
+ },
90
+ "additionalProperties": true
91
+ }
92
+ },
93
+ "currentModel": {
94
+ "type": "object",
95
+ "required": ["schemaVersion"],
96
+ "properties": {
97
+ "schemaVersion": {
98
+ "const": "workspace-model.v1"
99
+ }
100
+ },
101
+ "additionalProperties": true
102
+ }
103
+ },
104
+ "additionalProperties": true
105
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-model-snapshot.v1.json",
4
+ "title": "Workspai Workspace Model Snapshot",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "generatedAt", "modelHash", "modelRef", "model"],
7
+ "properties": {
8
+ "schemaVersion": {
9
+ "const": "workspace-model-snapshot.v1"
10
+ },
11
+ "generatedAt": {
12
+ "type": "string",
13
+ "format": "date-time"
14
+ },
15
+ "modelHash": {
16
+ "type": "string",
17
+ "minLength": 64,
18
+ "maxLength": 64
19
+ },
20
+ "modelRef": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "model": {
25
+ "type": "object",
26
+ "required": ["schemaVersion"],
27
+ "properties": {
28
+ "schemaVersion": {
29
+ "const": "workspace-model.v1"
30
+ }
31
+ },
32
+ "additionalProperties": true
33
+ }
34
+ },
35
+ "additionalProperties": true
36
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-model.v1.json",
4
+ "title": "Workspai Workspace Intelligence Model",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "workspace",
10
+ "identity",
11
+ "summary",
12
+ "projects",
13
+ "contracts",
14
+ "evidence",
15
+ "discovery",
16
+ "policies"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "const": "workspace-model.v1"
21
+ },
22
+ "generatedAt": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "workspace": {
27
+ "type": "object",
28
+ "required": ["name", "root", "type"],
29
+ "properties": {
30
+ "name": { "type": "string" },
31
+ "root": { "type": "string" },
32
+ "type": { "type": "string" },
33
+ "profile": { "type": "string" }
34
+ },
35
+ "additionalProperties": true
36
+ },
37
+ "identity": { "type": "object", "additionalProperties": true },
38
+ "summary": { "type": "object", "additionalProperties": true },
39
+ "factFreshness": { "$ref": "#/$defs/factFreshnessSummary" },
40
+ "facts": {
41
+ "type": "array",
42
+ "items": { "$ref": "#/$defs/workspaceFact" }
43
+ },
44
+ "projects": {
45
+ "type": "array",
46
+ "items": { "type": "object", "additionalProperties": true }
47
+ },
48
+ "contracts": { "type": "object", "additionalProperties": true },
49
+ "graph": {
50
+ "type": "object",
51
+ "description": "First-class inferred dependency graph (workspace-dependency-graph.v1). Additive/optional.",
52
+ "additionalProperties": true
53
+ },
54
+ "evidence": { "type": "object", "additionalProperties": true },
55
+ "discovery": { "type": "object", "additionalProperties": true },
56
+ "policies": { "type": "object", "additionalProperties": true },
57
+ "validation": { "type": "object", "additionalProperties": true }
58
+ },
59
+ "$defs": {
60
+ "factFreshness": {
61
+ "type": "object",
62
+ "required": [
63
+ "schemaVersion",
64
+ "kind",
65
+ "category",
66
+ "generatedAt",
67
+ "ttlSeconds",
68
+ "status",
69
+ "verifyBeforeUse",
70
+ "reason"
71
+ ],
72
+ "properties": {
73
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
74
+ "kind": {
75
+ "enum": ["durable", "derived", "evidence-backed", "live", "verify-before-use"]
76
+ },
77
+ "category": { "enum": ["structure", "verification", "state"] },
78
+ "generatedAt": { "type": "string", "format": "date-time" },
79
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
80
+ "expiresAt": { "type": "string", "format": "date-time" },
81
+ "status": { "enum": ["fresh", "stale", "unknown"] },
82
+ "verifyBeforeUse": { "type": "boolean" },
83
+ "sourceArtifact": { "type": "string" },
84
+ "sourcePath": { "type": "string" },
85
+ "inputsHash": { "type": "string" },
86
+ "reason": { "type": "string" }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "workspaceFact": {
91
+ "type": "object",
92
+ "required": ["id", "label", "scope", "value", "freshness"],
93
+ "properties": {
94
+ "id": { "type": "string" },
95
+ "label": { "type": "string" },
96
+ "scope": {
97
+ "enum": ["workspace", "project", "evidence", "policy", "contract", "command", "graph"]
98
+ },
99
+ "project": { "type": "string" },
100
+ "value": true,
101
+ "freshness": { "$ref": "#/$defs/factFreshness" }
102
+ },
103
+ "additionalProperties": false
104
+ },
105
+ "factFreshnessSummary": {
106
+ "type": "object",
107
+ "required": [
108
+ "schemaVersion",
109
+ "generatedAt",
110
+ "status",
111
+ "totalFacts",
112
+ "staleFacts",
113
+ "unknownFacts",
114
+ "liveFacts",
115
+ "verifyBeforeUseFacts",
116
+ "byKind",
117
+ "byCategory"
118
+ ],
119
+ "properties": {
120
+ "schemaVersion": { "const": "rapidkit-fact-freshness-v1" },
121
+ "generatedAt": { "type": "string", "format": "date-time" },
122
+ "status": { "enum": ["fresh", "stale", "unknown"] },
123
+ "totalFacts": { "type": "integer", "minimum": 0 },
124
+ "staleFacts": { "type": "integer", "minimum": 0 },
125
+ "unknownFacts": { "type": "integer", "minimum": 0 },
126
+ "liveFacts": { "type": "integer", "minimum": 0 },
127
+ "verifyBeforeUseFacts": { "type": "integer", "minimum": 0 },
128
+ "byKind": { "type": "object", "additionalProperties": { "type": "integer" } },
129
+ "byCategory": { "type": "object", "additionalProperties": { "type": "integer" } }
130
+ },
131
+ "additionalProperties": false
132
+ }
133
+ },
134
+ "additionalProperties": true
135
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-operational-skill.v1.json",
4
+ "title": "Workspai Workspace Operational Skill",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "skillId",
9
+ "canonicalPath",
10
+ "title",
11
+ "triggers",
12
+ "requiredReports",
13
+ "scopedProjects",
14
+ "verificationCommands",
15
+ "answerContractSections",
16
+ "markdown"
17
+ ],
18
+ "properties": {
19
+ "schemaVersion": { "const": "workspace-operational-skill.v1" },
20
+ "skillId": { "type": "string", "minLength": 1 },
21
+ "canonicalPath": { "type": "string", "pattern": "^\\.workspai/skills/[^/]+\\.md$" },
22
+ "title": { "type": "string" },
23
+ "triggers": { "type": "array", "items": { "type": "string" } },
24
+ "requiredReports": { "type": "array", "items": { "type": "string" } },
25
+ "scopedProjects": { "type": "array", "items": { "type": "string" } },
26
+ "verificationCommands": { "type": "array", "items": { "type": "string" } },
27
+ "answerContractSections": {
28
+ "type": "array",
29
+ "items": {
30
+ "enum": ["Scope", "Evidence", "Diagnosis", "Fix Plan", "Run", "Verify", "Assumptions"]
31
+ }
32
+ },
33
+ "promptStem": { "type": "string" },
34
+ "markdown": { "type": "string" }
35
+ },
36
+ "additionalProperties": false
37
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-skills-index.v1.json",
4
+ "title": "Workspai Workspace Skills Index",
5
+ "type": "object",
6
+ "required": ["schemaVersion", "generatedAt", "inputsHash", "skills"],
7
+ "properties": {
8
+ "schemaVersion": { "const": "workspace-skills-index.v1" },
9
+ "generatedAt": { "type": "string", "format": "date-time" },
10
+ "inputsHash": { "type": "string", "minLength": 8 },
11
+ "skills": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "required": ["skillId", "path", "schemaVersion", "title"],
16
+ "properties": {
17
+ "skillId": { "type": "string" },
18
+ "path": { "type": "string" },
19
+ "schemaVersion": { "type": "string" },
20
+ "title": { "type": "string" }
21
+ },
22
+ "additionalProperties": false
23
+ }
24
+ }
25
+ },
26
+ "additionalProperties": false
27
+ }
@@ -0,0 +1,213 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/workspace-verify.v1.json",
4
+ "title": "Workspai Workspace Verify Last Run",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "workspacePath",
10
+ "mode",
11
+ "impact",
12
+ "summary",
13
+ "steps",
14
+ "missingEvidence",
15
+ "blockingReasons",
16
+ "verificationPlan",
17
+ "affectedSubgraph",
18
+ "graphIntegrity",
19
+ "freshness",
20
+ "policyMode",
21
+ "policyViolations"
22
+ ],
23
+ "properties": {
24
+ "schemaVersion": {
25
+ "const": "workspace-verify.v1"
26
+ },
27
+ "generatedAt": {
28
+ "type": "string",
29
+ "format": "date-time"
30
+ },
31
+ "workspacePath": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "mode": {
36
+ "const": "evidence"
37
+ },
38
+ "fromImpactRef": { "type": "string" },
39
+ "scope": { "type": "string" },
40
+ "impact": {
41
+ "type": "object",
42
+ "required": ["changed", "risk", "affectedProjects", "recommendedCommands"],
43
+ "properties": {
44
+ "changed": { "type": "boolean" },
45
+ "risk": {
46
+ "enum": ["none", "low", "medium", "high", "critical"]
47
+ },
48
+ "affectedProjects": { "type": "integer", "minimum": 0 },
49
+ "recommendedCommands": { "type": "integer", "minimum": 0 }
50
+ },
51
+ "additionalProperties": false
52
+ },
53
+ "summary": {
54
+ "type": "object",
55
+ "required": [
56
+ "verdict",
57
+ "exitCode",
58
+ "stepsPassed",
59
+ "stepsWarn",
60
+ "stepsFailed",
61
+ "stepsMissing",
62
+ "stepsSkipped"
63
+ ],
64
+ "properties": {
65
+ "verdict": {
66
+ "enum": ["ready", "needs-attention", "blocked"]
67
+ },
68
+ "exitCode": {
69
+ "enum": [0, 1, 2]
70
+ },
71
+ "stepsPassed": { "type": "integer", "minimum": 0 },
72
+ "stepsWarn": { "type": "integer", "minimum": 0 },
73
+ "stepsFailed": { "type": "integer", "minimum": 0 },
74
+ "stepsMissing": { "type": "integer", "minimum": 0 },
75
+ "stepsSkipped": { "type": "integer", "minimum": 0 }
76
+ },
77
+ "additionalProperties": false
78
+ },
79
+ "steps": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "required": ["id", "label", "scope", "command", "status", "required", "message"],
84
+ "properties": {
85
+ "id": { "type": "string" },
86
+ "label": { "type": "string" },
87
+ "scope": {
88
+ "enum": ["workspace", "project"]
89
+ },
90
+ "project": { "type": "string" },
91
+ "status": {
92
+ "enum": ["pass", "warn", "fail", "missing", "skipped"]
93
+ },
94
+ "required": { "type": "boolean" },
95
+ "evidencePath": { "type": "string" },
96
+ "message": { "type": "string" },
97
+ "command": { "type": "object", "additionalProperties": true }
98
+ },
99
+ "additionalProperties": true
100
+ }
101
+ },
102
+ "missingEvidence": {
103
+ "type": "array",
104
+ "items": { "type": "string" }
105
+ },
106
+ "blockingReasons": {
107
+ "type": "array",
108
+ "items": { "type": "string" }
109
+ },
110
+ "verificationPlan": {
111
+ "type": "array",
112
+ "items": { "type": "object", "additionalProperties": true }
113
+ },
114
+ "affectedSubgraph": {
115
+ "type": "object",
116
+ "required": [
117
+ "totalProjects",
118
+ "directlyChanged",
119
+ "transitiveDependents",
120
+ "covered",
121
+ "uncovered",
122
+ "unverifiable"
123
+ ],
124
+ "properties": {
125
+ "totalProjects": { "type": "integer", "minimum": 0 },
126
+ "directlyChanged": { "type": "array", "items": { "type": "string" } },
127
+ "transitiveDependents": { "type": "array", "items": { "type": "string" } },
128
+ "covered": { "type": "array", "items": { "type": "string" } },
129
+ "uncovered": { "type": "array", "items": { "type": "string" } },
130
+ "unverifiable": { "type": "array", "items": { "type": "string" } }
131
+ },
132
+ "additionalProperties": false
133
+ },
134
+ "graphIntegrity": {
135
+ "type": "object",
136
+ "required": ["ok", "cycles", "danglingEdges", "orphans", "stats"],
137
+ "properties": {
138
+ "ok": { "type": "boolean" },
139
+ "cycles": {
140
+ "type": "array",
141
+ "items": { "type": "array", "items": { "type": "string" } }
142
+ },
143
+ "danglingEdges": {
144
+ "type": "array",
145
+ "items": {
146
+ "type": "object",
147
+ "required": ["from", "to", "kind", "missing"],
148
+ "properties": {
149
+ "from": { "type": "string" },
150
+ "to": { "type": "string" },
151
+ "kind": { "type": "string" },
152
+ "missing": { "enum": ["from", "to", "both"] }
153
+ },
154
+ "additionalProperties": true
155
+ }
156
+ },
157
+ "orphans": { "type": "array", "items": { "type": "string" } },
158
+ "stats": {
159
+ "type": "object",
160
+ "required": [
161
+ "nodeCount",
162
+ "edgeCount",
163
+ "cycleCount",
164
+ "danglingCount",
165
+ "orphanCount"
166
+ ],
167
+ "properties": {
168
+ "nodeCount": { "type": "integer", "minimum": 0 },
169
+ "edgeCount": { "type": "integer", "minimum": 0 },
170
+ "cycleCount": { "type": "integer", "minimum": 0 },
171
+ "danglingCount": { "type": "integer", "minimum": 0 },
172
+ "orphanCount": { "type": "integer", "minimum": 0 }
173
+ },
174
+ "additionalProperties": false
175
+ }
176
+ },
177
+ "additionalProperties": false
178
+ },
179
+ "freshness": {
180
+ "type": "object",
181
+ "required": ["verdict", "baseline", "changed", "added", "removed", "projectHashes"],
182
+ "properties": {
183
+ "verdict": { "enum": ["fresh", "stale", "unknown"] },
184
+ "baseline": { "enum": ["none", "recorded"] },
185
+ "changed": { "type": "array", "items": { "type": "string" } },
186
+ "added": { "type": "array", "items": { "type": "string" } },
187
+ "removed": { "type": "array", "items": { "type": "string" } },
188
+ "projectHashes": {
189
+ "type": "object",
190
+ "additionalProperties": { "type": "string" }
191
+ }
192
+ },
193
+ "additionalProperties": false
194
+ },
195
+ "policyMode": { "type": "string" },
196
+ "policyViolations": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "object",
200
+ "required": ["source", "severity", "code", "message"],
201
+ "properties": {
202
+ "source": { "enum": ["model", "contract"] },
203
+ "severity": { "enum": ["error", "warning"] },
204
+ "code": { "type": "string" },
205
+ "message": { "type": "string" },
206
+ "target": { "type": "string" }
207
+ },
208
+ "additionalProperties": false
209
+ }
210
+ }
211
+ },
212
+ "additionalProperties": true
213
+ }