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,229 @@
1
+ {
2
+ "schemaVersion": "rapidkit-agent-customization-pack.v1",
3
+ "presets": {
4
+ "minimal": {
5
+ "meaning": "Generate the portable grounding index, AGENTS.md, and provider-specific lightweight instructions.",
6
+ "requiredOutputs": [
7
+ ".workspai/reports/INDEX.json",
8
+ ".workspai/reports/agent-customization-pack.json",
9
+ "AGENTS.md"
10
+ ]
11
+ },
12
+ "enterprise": {
13
+ "meaning": "Generate the full VS Code-native pack: instructions, prompts, skills, custom agents, and validation metadata.",
14
+ "requiredOutputs": [
15
+ ".workspai/reports/INDEX.json",
16
+ ".workspai/reports/agent-customization-pack.json",
17
+ "AGENTS.md",
18
+ ".github/instructions/workspai-workspace.instructions.md",
19
+ ".github/prompts/workspai-diagnose.prompt.md",
20
+ ".github/skills/workspai-workspace-intelligence/SKILL.md",
21
+ ".github/agents/workspai-advisor.agent.md",
22
+ ".workspai/reports/workspai-mcp-design.json",
23
+ ".workspai/reports/workspace-skills-index.json"
24
+ ]
25
+ }
26
+ },
27
+ "targets": {
28
+ "all": {
29
+ "meaning": "Generate every supported customization surface.",
30
+ "outputFamilies": [
31
+ "portable",
32
+ "vscode",
33
+ "copilot",
34
+ "cursor",
35
+ "claude"
36
+ ]
37
+ },
38
+ "vscode": {
39
+ "meaning": "Generate VS Code-native customizations for Copilot Chat and agent workflows.",
40
+ "outputFamilies": [
41
+ "instructions",
42
+ "prompts",
43
+ "skills",
44
+ "agents",
45
+ "hooks"
46
+ ]
47
+ },
48
+ "agents": {
49
+ "meaning": "Generate portable AGENTS.md grounding for any agent.",
50
+ "outputFamilies": [
51
+ "portable"
52
+ ]
53
+ },
54
+ "copilot": {
55
+ "meaning": "Generate GitHub Copilot instructions, prompts, and skills.",
56
+ "outputFamilies": [
57
+ "instructions",
58
+ "prompts",
59
+ "skills"
60
+ ]
61
+ },
62
+ "cursor": {
63
+ "meaning": "Generate Cursor rules.",
64
+ "outputFamilies": [
65
+ "rules"
66
+ ]
67
+ },
68
+ "claude": {
69
+ "meaning": "Generate Claude Code grounding files.",
70
+ "outputFamilies": [
71
+ "rules",
72
+ "portable"
73
+ ]
74
+ },
75
+ "codex": {
76
+ "meaning": "Use AGENTS.md and the report index as the Codex grounding layer.",
77
+ "outputFamilies": [
78
+ "portable"
79
+ ]
80
+ },
81
+ "orca": {
82
+ "meaning": "Use AGENTS.md and the report index as the Orca/Grok grounding layer.",
83
+ "outputFamilies": [
84
+ "portable"
85
+ ]
86
+ }
87
+ },
88
+ "standardAnswerContract": [
89
+ "Scope",
90
+ "Evidence",
91
+ "Diagnosis",
92
+ "Fix Plan",
93
+ "Run",
94
+ "Verify",
95
+ "Assumptions"
96
+ ],
97
+ "requiredReports": [
98
+ {
99
+ "path": ".workspai/reports/workspace-context-agent.json",
100
+ "label": "Agent context pack",
101
+ "required": true
102
+ },
103
+ {
104
+ "path": ".workspai/reports/workspace-skills-index.json",
105
+ "label": "Operational skills index",
106
+ "required": true
107
+ },
108
+ {
109
+ "path": ".workspai/reports/workspace-model.json",
110
+ "label": "Workspace model graph",
111
+ "required": false
112
+ },
113
+ {
114
+ "path": ".workspai/reports/doctor-last-run.json",
115
+ "label": "Workspace doctor",
116
+ "required": false
117
+ },
118
+ {
119
+ "path": ".workspai/reports/doctor-project-last-run.json",
120
+ "label": "Project doctor",
121
+ "required": false
122
+ },
123
+ {
124
+ "path": ".workspai/reports/doctor-remediation-plan-last-run.json",
125
+ "label": "Doctor remediation plan",
126
+ "required": false
127
+ },
128
+ {
129
+ "path": ".workspai/reports/artifact-remediation-plan-last-run.json",
130
+ "label": "Artifact remediation plan",
131
+ "required": false
132
+ },
133
+ {
134
+ "path": ".workspai/reports/doctor-fix-result-last-run.json",
135
+ "label": "Doctor fix result",
136
+ "required": false
137
+ },
138
+ {
139
+ "path": ".workspai/reports/analyze-last-run.json",
140
+ "label": "Workspace analyze",
141
+ "required": false
142
+ },
143
+ {
144
+ "path": ".workspai/reports/pipeline-last-run.json",
145
+ "label": "Governance pipeline",
146
+ "required": false
147
+ },
148
+ {
149
+ "path": ".workspai/reports/release-readiness-last-run.json",
150
+ "label": "Release readiness",
151
+ "required": false
152
+ },
153
+ {
154
+ "path": ".workspai/reports/workspace-impact-last-run.json",
155
+ "label": "Workspace impact",
156
+ "required": false
157
+ },
158
+ {
159
+ "path": ".workspai/reports/workspace-verify-last-run.json",
160
+ "label": "Workspace verify",
161
+ "required": false
162
+ },
163
+ {
164
+ "path": ".workspai/reports/workspace-model-snapshot.json",
165
+ "label": "Workspace model snapshot",
166
+ "required": false
167
+ },
168
+ {
169
+ "path": ".workspai/reports/workspace-model-diff-last-run.json",
170
+ "label": "Workspace model diff",
171
+ "required": false
172
+ },
173
+ {
174
+ "path": ".workspai/reports/workspace-explain-last-run.json",
175
+ "label": "Workspace explain",
176
+ "required": false
177
+ },
178
+ {
179
+ "path": ".workspai/reports/workspace-contract-verify-last-run.json",
180
+ "label": "Workspace contract verify",
181
+ "required": false
182
+ },
183
+ {
184
+ "path": ".workspai/reports/workspace-intelligence-history.json",
185
+ "label": "Workspace intelligence history",
186
+ "required": false
187
+ }
188
+ ],
189
+ "strictRules": [
190
+ "Required reports must exist.",
191
+ "Generated report paths must stay inside the workspace root.",
192
+ "Generated customization text must be English-only.",
193
+ "Agent answers must not claim pass, ready, or healthy without cited evidence.",
194
+ "Commands must distinguish display guidance from execution requests.",
195
+ "Agent hook files must be advisory and disabled by default unless the user explicitly enables them.",
196
+ "MCP design artifacts must stay read-mostly until write tools have explicit approval boundaries."
197
+ ],
198
+ "outputKinds": [
199
+ "report",
200
+ "grounding",
201
+ "instruction",
202
+ "prompt",
203
+ "skill",
204
+ "skill-resource",
205
+ "operational-skill",
206
+ "skills-index",
207
+ "explain-report",
208
+ "agent",
209
+ "rule",
210
+ "hook",
211
+ "mcp-design"
212
+ ],
213
+ "pathLayers": {
214
+ "l1CanonicalRoots": [
215
+ ".workspai/reports/",
216
+ ".workspai/skills/"
217
+ ],
218
+ "l2PrefixedMirrorRoots": [
219
+ ".github/",
220
+ ".cursor/",
221
+ ".claude/"
222
+ ],
223
+ "l3SharedIndustryFiles": [
224
+ "AGENTS.md",
225
+ ".github/copilot-instructions.md",
226
+ "CLAUDE.md"
227
+ ]
228
+ }
229
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/analyze-last-run.v1.json",
4
+ "title": "RapidKit Analyze Last Run Evidence",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "generatedAt",
9
+ "workspacePath",
10
+ "workspaceDetected",
11
+ "summary",
12
+ "projects",
13
+ "findings",
14
+ "enterpriseControls"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": "rapidkit-analyze-v1"
19
+ },
20
+ "generatedAt": {
21
+ "type": "string",
22
+ "format": "date-time"
23
+ },
24
+ "workspacePath": { "type": "string", "minLength": 1 },
25
+ "workspaceDetected": { "type": "boolean" },
26
+ "profile": { "type": ["string", "null"] },
27
+ "summary": {
28
+ "type": "object",
29
+ "required": ["score", "verdict", "projectCount", "runtimeCount", "findings"],
30
+ "properties": {
31
+ "score": { "type": "number" },
32
+ "verdict": {
33
+ "enum": ["ready", "needs-attention", "blocked"]
34
+ },
35
+ "projectCount": { "type": "integer", "minimum": 0 },
36
+ "runtimeCount": { "type": "integer", "minimum": 0 },
37
+ "findings": {
38
+ "type": "object",
39
+ "required": ["fail", "warn", "info"],
40
+ "properties": {
41
+ "fail": { "type": "integer", "minimum": 0 },
42
+ "warn": { "type": "integer", "minimum": 0 },
43
+ "info": { "type": "integer", "minimum": 0 }
44
+ },
45
+ "additionalProperties": true
46
+ }
47
+ },
48
+ "additionalProperties": true
49
+ },
50
+ "runtimes": {
51
+ "type": "object",
52
+ "additionalProperties": { "type": "integer", "minimum": 0 }
53
+ },
54
+ "projects": {
55
+ "type": "array",
56
+ "items": { "type": "object", "additionalProperties": true }
57
+ },
58
+ "dependencyGraph": {
59
+ "type": "object",
60
+ "properties": {
61
+ "status": { "enum": ["generated", "empty"] },
62
+ "edges": {
63
+ "type": "array",
64
+ "items": { "type": "object", "additionalProperties": true }
65
+ },
66
+ "topImpactedProjects": {
67
+ "type": "array",
68
+ "items": { "type": "object", "additionalProperties": true }
69
+ }
70
+ },
71
+ "additionalProperties": true
72
+ },
73
+ "findings": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "object",
77
+ "required": ["id", "severity", "title", "detail", "target", "remediation"],
78
+ "properties": {
79
+ "id": { "type": "string" },
80
+ "severity": { "enum": ["info", "warn", "fail"] },
81
+ "title": { "type": "string" },
82
+ "detail": { "type": "string" },
83
+ "target": { "type": "string" },
84
+ "remediation": { "type": "string" }
85
+ },
86
+ "additionalProperties": true
87
+ }
88
+ },
89
+ "nextActions": {
90
+ "type": "array",
91
+ "items": { "type": "string" }
92
+ },
93
+ "enterpriseControls": {
94
+ "type": "object",
95
+ "required": ["jsonReady", "ciGateCommand", "releaseGateCommand", "evidencePath"],
96
+ "properties": {
97
+ "jsonReady": { "type": "boolean" },
98
+ "ciGateCommand": { "type": "string" },
99
+ "releaseGateCommand": { "type": "string" },
100
+ "evidencePath": { "type": "string" }
101
+ },
102
+ "additionalProperties": true
103
+ }
104
+ },
105
+ "additionalProperties": true
106
+ }
@@ -0,0 +1,163 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://rapidkit.dev/contracts/artifact-remediation-plan.v1.json",
4
+ "title": "RapidKit Artifact Remediation Plan",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "generatedAt", "workspace", "source", "summary", "actions"],
8
+ "properties": {
9
+ "schemaVersion": {
10
+ "const": "artifact-remediation-plan-v1"
11
+ },
12
+ "generatedAt": {
13
+ "type": "string"
14
+ },
15
+ "workspace": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["name"],
19
+ "properties": {
20
+ "name": { "type": "string" },
21
+ "path": { "type": "string" }
22
+ }
23
+ },
24
+ "source": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["command", "reportsDir", "includeAbsolutePaths", "ciMode"],
28
+ "properties": {
29
+ "command": { "const": "workspace remediation-plan" },
30
+ "reportsDir": { "type": "string" },
31
+ "includeAbsolutePaths": { "type": "boolean" },
32
+ "ciMode": { "type": "boolean" }
33
+ }
34
+ },
35
+ "summary": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "artifactsScanned",
40
+ "cardsCovered",
41
+ "totalActions",
42
+ "executableActions",
43
+ "risk"
44
+ ],
45
+ "properties": {
46
+ "artifactsScanned": { "type": "integer", "minimum": 0 },
47
+ "cardsCovered": { "type": "integer", "minimum": 0 },
48
+ "totalActions": { "type": "integer", "minimum": 0 },
49
+ "executableActions": { "type": "integer", "minimum": 0 },
50
+ "risk": { "$ref": "#/$defs/riskSummary" }
51
+ }
52
+ },
53
+ "actions": {
54
+ "type": "array",
55
+ "items": { "$ref": "#/$defs/action" }
56
+ }
57
+ },
58
+ "$defs": {
59
+ "riskSummary": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["safe", "guarded", "invasive"],
63
+ "properties": {
64
+ "safe": { "type": "integer", "minimum": 0 },
65
+ "guarded": { "type": "integer", "minimum": 0 },
66
+ "invasive": { "type": "integer", "minimum": 0 }
67
+ }
68
+ },
69
+ "operation": {
70
+ "oneOf": [
71
+ {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": ["type", "path", "content", "overwrite"],
75
+ "properties": {
76
+ "type": { "const": "file-create" },
77
+ "path": { "type": "string" },
78
+ "content": { "type": "string" },
79
+ "overwrite": { "const": false }
80
+ }
81
+ },
82
+ {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": ["type", "command", "cwd"],
86
+ "properties": {
87
+ "type": { "const": "run-command" },
88
+ "command": { "type": "string" },
89
+ "cwd": { "enum": ["workspace", "project"] }
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ "action": {
95
+ "type": "object",
96
+ "additionalProperties": false,
97
+ "required": [
98
+ "id",
99
+ "artifactKind",
100
+ "cardId",
101
+ "title",
102
+ "order",
103
+ "phase",
104
+ "scope",
105
+ "status",
106
+ "mode",
107
+ "risk",
108
+ "requiresApproval",
109
+ "blocker",
110
+ "summary",
111
+ "verifyCommand",
112
+ "cwd",
113
+ "files",
114
+ "rollback",
115
+ "notes"
116
+ ],
117
+ "properties": {
118
+ "id": { "type": "string" },
119
+ "artifactKind": { "type": "string" },
120
+ "cardId": { "type": "string" },
121
+ "title": { "type": "string" },
122
+ "order": { "type": "integer", "minimum": 0 },
123
+ "phase": { "type": "string" },
124
+ "scope": { "enum": ["workspace", "project"] },
125
+ "status": { "enum": ["ready", "review-required", "blocked", "guidance-only"] },
126
+ "mode": {
127
+ "enum": [
128
+ "edit-file",
129
+ "run-command",
130
+ "refresh-evidence",
131
+ "verify-before-fix",
132
+ "manual-guidance"
133
+ ]
134
+ },
135
+ "risk": { "enum": ["safe", "guarded", "invasive"] },
136
+ "requiresApproval": { "type": "boolean" },
137
+ "blocker": { "type": "string" },
138
+ "summary": { "type": "string" },
139
+ "command": { "type": "string" },
140
+ "verifyCommand": { "type": "string" },
141
+ "cwd": { "enum": ["workspace", "project"] },
142
+ "files": {
143
+ "type": "array",
144
+ "items": { "type": "string" }
145
+ },
146
+ "operation": { "$ref": "#/$defs/operation" },
147
+ "rollback": {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "required": ["available", "strategy"],
151
+ "properties": {
152
+ "available": { "type": "boolean" },
153
+ "strategy": { "enum": ["idempotent", "manual", "none"] }
154
+ }
155
+ },
156
+ "notes": {
157
+ "type": "array",
158
+ "items": { "type": "string" }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "schemaVersion": "backend-import-stack-parity-v1",
3
+ "frameworkToStack": {
4
+ "fastapi": "fastapi",
5
+ "django": "django",
6
+ "flask": "flask",
7
+ "python": "unknown",
8
+ "nestjs": "nestjs",
9
+ "express": "express",
10
+ "fastify": "unknown",
11
+ "koa": "koa",
12
+ "node": "unknown",
13
+ "gofiber": "go",
14
+ "gogin": "go",
15
+ "echo": "go",
16
+ "go": "go",
17
+ "springboot": "springboot",
18
+ "java": "unknown",
19
+ "rails": "rails",
20
+ "ruby": "unknown",
21
+ "dotnet": "dotnet",
22
+ "unknown": "unknown"
23
+ },
24
+ "runtimeToStack": {
25
+ "python": "unknown",
26
+ "node": "unknown",
27
+ "nodejs": "unknown",
28
+ "typescript": "unknown",
29
+ "go": "go",
30
+ "golang": "go",
31
+ "java": "unknown",
32
+ "ruby": "unknown",
33
+ "dotnet": "dotnet",
34
+ "csharp": "dotnet",
35
+ "unknown": "unknown"
36
+ }
37
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/cli-log-event.v1.json",
4
+ "title": "Workspai CLI Log Event",
5
+ "description": "NDJSON stream events emitted on stderr when RAPIDKIT_LOG_FORMAT=json or --log-format json",
6
+ "type": "object",
7
+ "required": [
8
+ "schemaVersion",
9
+ "runId",
10
+ "timestamp",
11
+ "level",
12
+ "event",
13
+ "component",
14
+ "message"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "const": "cli-log-event-v1"
19
+ },
20
+ "runId": {
21
+ "type": "string",
22
+ "minLength": 8
23
+ },
24
+ "timestamp": {
25
+ "type": "string",
26
+ "format": "date-time"
27
+ },
28
+ "level": {
29
+ "enum": ["debug", "info", "warn", "error"]
30
+ },
31
+ "event": {
32
+ "enum": ["log", "progress", "run.started", "run.completed", "run.failed"]
33
+ },
34
+ "component": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "message": {
39
+ "type": "string"
40
+ },
41
+ "command": {
42
+ "type": "array",
43
+ "items": { "type": "string" }
44
+ },
45
+ "metadata": {
46
+ "type": "object",
47
+ "additionalProperties": true
48
+ }
49
+ },
50
+ "additionalProperties": false
51
+ }