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,315 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://getrapidkit.com/schemas/doctor-workspace-evidence.v1.json",
4
+ "title": "RapidKit Doctor Workspace Evidence",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "evidenceType",
9
+ "generatedAt",
10
+ "workspacePath",
11
+ "summary",
12
+ "projects"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": {
16
+ "const": "doctor-workspace-evidence-v1"
17
+ },
18
+ "evidenceType": {
19
+ "const": "workspace"
20
+ },
21
+ "generatedAt": {
22
+ "type": "string",
23
+ "format": "date-time"
24
+ },
25
+ "workspacePath": { "type": "string", "minLength": 1 },
26
+ "workspaceName": { "type": "string" },
27
+ "projectScanCached": { "type": "boolean" },
28
+ "projectScanSignature": { "type": "string" },
29
+ "cachePath": { "type": ["string", "null"] },
30
+ "healthScore": { "type": "object", "additionalProperties": true },
31
+ "evidenceFreshness": { "$ref": "#/$defs/evidenceFreshness" },
32
+ "system": { "type": "object", "additionalProperties": true },
33
+ "projects": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "object",
37
+ "properties": {
38
+ "probes": {
39
+ "type": "array",
40
+ "items": { "$ref": "#/$defs/probe" }
41
+ },
42
+ "repairCapabilities": {
43
+ "type": "array",
44
+ "items": { "$ref": "#/$defs/repairCapability" }
45
+ }
46
+ },
47
+ "additionalProperties": true
48
+ }
49
+ },
50
+ "summary": {
51
+ "type": "object",
52
+ "required": ["totalProjects", "totalIssues", "hasSystemErrors"],
53
+ "properties": {
54
+ "totalProjects": { "type": "integer", "minimum": 0 },
55
+ "totalIssues": { "type": "integer", "minimum": 0 },
56
+ "projectAdvisoryWarningProjects": { "type": "integer", "minimum": 0 },
57
+ "projectAdvisoryWarnings": { "type": "integer", "minimum": 0 },
58
+ "hasSystemErrors": { "type": "boolean" },
59
+ "scopeProvenance": { "type": "object", "additionalProperties": true }
60
+ },
61
+ "additionalProperties": true
62
+ },
63
+ "driftDelta": { "type": "object", "additionalProperties": true },
64
+ "scoreBreakdown": {
65
+ "type": "array",
66
+ "items": { "type": "object", "additionalProperties": true }
67
+ },
68
+ "contract": { "type": "object", "additionalProperties": true },
69
+ "policyProfile": { "$ref": "#/$defs/policyProfile" }
70
+ },
71
+ "$defs": {
72
+ "freshness": {
73
+ "type": "object",
74
+ "required": [
75
+ "category",
76
+ "generatedAt",
77
+ "ttlSeconds",
78
+ "status",
79
+ "verifyBeforeUse",
80
+ "reason"
81
+ ],
82
+ "properties": {
83
+ "category": { "enum": ["structure", "verification", "state"] },
84
+ "generatedAt": { "type": "string", "format": "date-time" },
85
+ "ttlSeconds": { "type": ["integer", "null"], "minimum": 0 },
86
+ "expiresAt": { "type": "string", "format": "date-time" },
87
+ "status": { "enum": ["fresh", "stale", "unknown"] },
88
+ "verifyBeforeUse": { "type": "boolean" },
89
+ "reason": { "type": "string" }
90
+ },
91
+ "additionalProperties": false
92
+ },
93
+ "evidenceFreshness": {
94
+ "type": "object",
95
+ "required": [
96
+ "generatedAt",
97
+ "status",
98
+ "staleProbeCount",
99
+ "unknownProbeCount",
100
+ "liveStateProbeCount",
101
+ "verifyBeforeUseProbeCount"
102
+ ],
103
+ "properties": {
104
+ "generatedAt": { "type": "string", "format": "date-time" },
105
+ "status": { "enum": ["fresh", "stale", "unknown"] },
106
+ "staleProbeCount": { "type": "integer", "minimum": 0 },
107
+ "unknownProbeCount": { "type": "integer", "minimum": 0 },
108
+ "liveStateProbeCount": { "type": "integer", "minimum": 0 },
109
+ "verifyBeforeUseProbeCount": { "type": "integer", "minimum": 0 },
110
+ "oldestProbeGeneratedAt": { "type": "string", "format": "date-time" }
111
+ },
112
+ "additionalProperties": false
113
+ },
114
+ "repairIntent": {
115
+ "type": "object",
116
+ "required": [
117
+ "mode",
118
+ "confidence",
119
+ "primaryActionLabel",
120
+ "requiresApproval",
121
+ "requiresFreshEvidence",
122
+ "reason",
123
+ "relatedCommands"
124
+ ],
125
+ "properties": {
126
+ "mode": {
127
+ "enum": [
128
+ "none",
129
+ "run-command",
130
+ "edit-file",
131
+ "review-required",
132
+ "verify-before-fix",
133
+ "refresh-evidence",
134
+ "manual-guidance"
135
+ ]
136
+ },
137
+ "confidence": { "enum": ["high", "medium", "low"] },
138
+ "primaryActionLabel": { "type": "string" },
139
+ "requiresApproval": { "type": "boolean" },
140
+ "requiresFreshEvidence": { "type": "boolean" },
141
+ "reason": { "type": "string" },
142
+ "relatedCommands": { "type": "array", "items": { "type": "string" } }
143
+ },
144
+ "additionalProperties": false
145
+ },
146
+ "policyProfile": {
147
+ "type": "object",
148
+ "required": [
149
+ "name",
150
+ "exitOnErrors",
151
+ "exitOnWarnings",
152
+ "warningExitCode",
153
+ "advisoryWarningsBlockRelease",
154
+ "description"
155
+ ],
156
+ "properties": {
157
+ "name": { "enum": ["local", "ci", "release", "enterprise-strict"] },
158
+ "exitOnErrors": { "const": true },
159
+ "exitOnWarnings": { "type": "boolean" },
160
+ "warningExitCode": { "enum": [0, 1, 2] },
161
+ "advisoryWarningsBlockRelease": { "type": "boolean" },
162
+ "description": { "type": "string" }
163
+ },
164
+ "additionalProperties": false
165
+ },
166
+ "probe": {
167
+ "type": "object",
168
+ "properties": {
169
+ "id": { "type": "string", "minLength": 1 },
170
+ "label": { "type": "string", "minLength": 1 },
171
+ "status": { "enum": ["pass", "warn", "fail"] },
172
+ "severity": { "enum": ["info", "warn", "error"] },
173
+ "scope": { "type": "string" },
174
+ "reason": { "type": "string" },
175
+ "recommendation": { "type": "string" },
176
+ "freshness": { "$ref": "#/$defs/freshness" },
177
+ "issueClass": {
178
+ "enum": [
179
+ "dependency",
180
+ "environment",
181
+ "security",
182
+ "test",
183
+ "quality",
184
+ "container",
185
+ "deployment",
186
+ "runtime",
187
+ "workspace-contract",
188
+ "source-tree",
189
+ "framework",
190
+ "configuration",
191
+ "custom",
192
+ "unknown"
193
+ ]
194
+ },
195
+ "operationalImpact": {
196
+ "enum": [
197
+ "none",
198
+ "developer-friction",
199
+ "ci-risk",
200
+ "release-risk",
201
+ "security-risk",
202
+ "runtime-risk",
203
+ "customer-risk"
204
+ ]
205
+ },
206
+ "repairIntent": { "$ref": "#/$defs/repairIntent" },
207
+ "repairCapability": { "$ref": "#/$defs/repairCapability" }
208
+ },
209
+ "additionalProperties": true
210
+ },
211
+ "repairCapability": {
212
+ "type": "object",
213
+ "required": [
214
+ "id",
215
+ "issueId",
216
+ "title",
217
+ "status",
218
+ "fixKind",
219
+ "risk",
220
+ "canAutoFix",
221
+ "canEditFiles",
222
+ "requiresApproval",
223
+ "requiresReview",
224
+ "files",
225
+ "refreshCommands",
226
+ "reason"
227
+ ],
228
+ "properties": {
229
+ "id": { "type": "string", "minLength": 1 },
230
+ "issueId": { "type": "string", "minLength": 1 },
231
+ "title": { "type": "string", "minLength": 1 },
232
+ "status": { "enum": ["available", "manual", "blocked"] },
233
+ "fixKind": {
234
+ "enum": [
235
+ "package-json-script",
236
+ "file-create",
237
+ "file-append",
238
+ "file-copy",
239
+ "dependency-sync",
240
+ "command",
241
+ "manual"
242
+ ]
243
+ },
244
+ "risk": { "enum": ["safe", "guarded", "invasive"] },
245
+ "canAutoFix": { "type": "boolean" },
246
+ "canEditFiles": { "type": "boolean" },
247
+ "requiresApproval": { "type": "boolean" },
248
+ "requiresReview": { "type": "boolean" },
249
+ "files": { "type": "array", "items": { "type": "string" } },
250
+ "command": { "type": "string" },
251
+ "operation": { "$ref": "#/$defs/repairOperation" },
252
+ "verifyCommand": { "type": "string" },
253
+ "refreshCommands": { "type": "array", "items": { "type": "string" } },
254
+ "reason": { "type": "string" },
255
+ "limitations": { "type": "array", "items": { "type": "string" } }
256
+ },
257
+ "additionalProperties": true
258
+ },
259
+ "repairOperation": {
260
+ "type": "object",
261
+ "required": ["type", "path"],
262
+ "properties": {
263
+ "type": {
264
+ "enum": [
265
+ "file-create",
266
+ "file-append",
267
+ "file-copy",
268
+ "package-json-script",
269
+ "json-edit",
270
+ "env-key-add",
271
+ "makefile-target"
272
+ ]
273
+ },
274
+ "sourcePath": { "type": "string", "minLength": 1 },
275
+ "path": { "type": "string", "minLength": 1 },
276
+ "content": { "type": "string" },
277
+ "overwrite": { "type": "boolean" },
278
+ "lines": { "type": "array", "items": { "type": "string" } },
279
+ "ensureNewline": { "type": "boolean" },
280
+ "scriptName": { "type": "string" },
281
+ "scriptValue": { "type": "string" },
282
+ "edits": {
283
+ "type": "array",
284
+ "items": {
285
+ "type": "object",
286
+ "required": ["pointer", "value"],
287
+ "properties": {
288
+ "pointer": { "type": "string" },
289
+ "value": { "type": ["string", "number", "boolean", "null"] }
290
+ },
291
+ "additionalProperties": false
292
+ }
293
+ },
294
+ "keys": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "required": ["name", "value"],
299
+ "properties": {
300
+ "name": { "type": "string" },
301
+ "value": { "type": "string" },
302
+ "comment": { "type": "string" }
303
+ },
304
+ "additionalProperties": false
305
+ }
306
+ },
307
+ "target": { "type": "string" },
308
+ "command": { "type": "string" },
309
+ "phony": { "type": "boolean" }
310
+ },
311
+ "additionalProperties": false
312
+ }
313
+ },
314
+ "additionalProperties": true
315
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "schemaVersion": "rapidkit-extension-cli-compatibility.v1",
3
+ "cli": "workspai",
4
+ "minimumVerifiedCliVersion": "0.42.0",
5
+ "publishedContractSchemas": {
6
+ "runtimeCommandSurface": "rapidkit-runtime-command-surface-v1",
7
+ "cliLogEvent": "cli-log-event-v1",
8
+ "freshnessMetadata": "rapidkit-freshness-metadata-v1",
9
+ "factFreshness": "rapidkit-fact-freshness-v1",
10
+ "blockerResolution": "rapidkit-blocker-resolution-v1",
11
+ "workspaceModel": "workspace-model.v1",
12
+ "workspaceImpact": "workspace-impact.v1",
13
+ "workspaceVerify": "workspace-verify.v1",
14
+ "workspaceContext": "workspace-context.v1",
15
+ "workspaceDependencyGraph": "workspace-dependency-graph.v1",
16
+ "workspaceIntelligenceHistory": "workspace-intelligence-history.v1",
17
+ "agentCustomizationPack": "rapidkit-agent-customization-pack.v1",
18
+ "workspaceOperationalSkill": "workspace-operational-skill.v1",
19
+ "workspaceSkillsIndex": "workspace-skills-index.v1",
20
+ "workspaceExplain": "workspace-explain.v1",
21
+ "agentActionOutcome": "agent-action-outcome.v1",
22
+ "doctorRemediationPlan": "doctor-remediation-plan-v2",
23
+ "artifactRemediationPlan": "artifact-remediation-plan-v1",
24
+ "doctorFixResult": "rapidkit-doctor-fix-result-v1"
25
+ }
26
+ }
@@ -0,0 +1,305 @@
1
+ {
2
+ "schemaVersion": "rapidkit.infra-stack.v1",
3
+ "description": "Canonical workspace infrastructure service catalog and module/env resolution rules.",
4
+ "futureProfiles": [
5
+ "frontend-dev",
6
+ "edge-proxy"
7
+ ],
8
+ "services": {
9
+ "postgres": {
10
+ "displayName": "PostgreSQL",
11
+ "category": "database",
12
+ "image": "postgres:16-alpine",
13
+ "ports": [
14
+ {
15
+ "name": "sql",
16
+ "host": 5432,
17
+ "container": 5432
18
+ }
19
+ ],
20
+ "env": {
21
+ "POSTGRES_USER": "rapidkit",
22
+ "POSTGRES_PASSWORD": "rapidkit",
23
+ "POSTGRES_DB": "rapidkit"
24
+ },
25
+ "volumes": [
26
+ "postgres_data:/var/lib/postgresql/data"
27
+ ],
28
+ "healthcheck": {
29
+ "test": [
30
+ "CMD-SHELL",
31
+ "pg_isready -U rapidkit -d rapidkit"
32
+ ],
33
+ "interval": "10s",
34
+ "timeout": "5s",
35
+ "retries": 5
36
+ },
37
+ "connectionEnv": {
38
+ "DATABASE_URL": "postgresql://rapidkit:rapidkit@localhost:5432/rapidkit",
39
+ "RAPIDKIT_DB_POSTGRES_URL": "postgresql://rapidkit:rapidkit@localhost:5432/rapidkit"
40
+ }
41
+ },
42
+ "redis": {
43
+ "displayName": "Redis",
44
+ "category": "cache",
45
+ "image": "redis:7-alpine",
46
+ "ports": [
47
+ {
48
+ "name": "redis",
49
+ "host": 6379,
50
+ "container": 6379
51
+ }
52
+ ],
53
+ "command": [
54
+ "redis-server",
55
+ "--appendonly",
56
+ "yes"
57
+ ],
58
+ "volumes": [
59
+ "redis_data:/data"
60
+ ],
61
+ "healthcheck": {
62
+ "test": [
63
+ "CMD",
64
+ "redis-cli",
65
+ "ping"
66
+ ],
67
+ "interval": "10s",
68
+ "timeout": "3s",
69
+ "retries": 5
70
+ },
71
+ "connectionEnv": {
72
+ "REDIS_URL": "redis://localhost:6379/0",
73
+ "CELERY_BROKER_URL": "redis://localhost:6379/0",
74
+ "CELERY_RESULT_BACKEND": "redis://localhost:6379/1"
75
+ }
76
+ },
77
+ "mongo": {
78
+ "displayName": "MongoDB",
79
+ "category": "database",
80
+ "image": "mongo:7",
81
+ "ports": [
82
+ {
83
+ "name": "mongo",
84
+ "host": 27017,
85
+ "container": 27017
86
+ }
87
+ ],
88
+ "volumes": [
89
+ "mongo_data:/data/db"
90
+ ],
91
+ "connectionEnv": {
92
+ "MONGODB_URI": "mongodb://localhost:27017/rapidkit",
93
+ "MONGO_URL": "mongodb://localhost:27017/rapidkit"
94
+ }
95
+ },
96
+ "mysql": {
97
+ "displayName": "MySQL",
98
+ "category": "database",
99
+ "image": "mysql:8.4",
100
+ "ports": [
101
+ {
102
+ "name": "mysql",
103
+ "host": 3306,
104
+ "container": 3306
105
+ }
106
+ ],
107
+ "env": {
108
+ "MYSQL_ROOT_PASSWORD": "rapidkit",
109
+ "MYSQL_DATABASE": "rapidkit",
110
+ "MYSQL_USER": "rapidkit",
111
+ "MYSQL_PASSWORD": "rapidkit"
112
+ },
113
+ "healthcheck": {
114
+ "test": [
115
+ "CMD",
116
+ "mysqladmin",
117
+ "ping",
118
+ "-h",
119
+ "127.0.0.1",
120
+ "-urapidkit",
121
+ "-prapidkit"
122
+ ],
123
+ "interval": "10s",
124
+ "timeout": "5s",
125
+ "retries": 5
126
+ },
127
+ "connectionEnv": {
128
+ "DATABASE_URL": "mysql://rapidkit:rapidkit@localhost:3306/rapidkit"
129
+ }
130
+ },
131
+ "rabbitmq": {
132
+ "displayName": "RabbitMQ",
133
+ "category": "queue",
134
+ "image": "rabbitmq:3-management-alpine",
135
+ "ports": [
136
+ {
137
+ "name": "amqp",
138
+ "host": 5672,
139
+ "container": 5672
140
+ },
141
+ {
142
+ "name": "management",
143
+ "host": 15672,
144
+ "container": 15672
145
+ }
146
+ ],
147
+ "healthcheck": {
148
+ "test": [
149
+ "CMD",
150
+ "rabbitmq-diagnostics",
151
+ "-q",
152
+ "ping"
153
+ ],
154
+ "interval": "15s",
155
+ "timeout": "10s",
156
+ "retries": 5
157
+ },
158
+ "connectionEnv": {
159
+ "CELERY_BROKER_URL": "amqp://guest:guest@localhost:5672//",
160
+ "RABBITMQ_URL": "amqp://guest:guest@localhost:5672//"
161
+ }
162
+ },
163
+ "mailpit": {
164
+ "displayName": "Mailpit (SMTP dev)",
165
+ "category": "communication",
166
+ "image": "axllent/mailpit:latest",
167
+ "ports": [
168
+ {
169
+ "name": "smtp",
170
+ "host": 1025,
171
+ "container": 1025
172
+ },
173
+ {
174
+ "name": "ui",
175
+ "host": 8025,
176
+ "container": 8025
177
+ }
178
+ ],
179
+ "connectionEnv": {
180
+ "SMTP_HOST": "localhost",
181
+ "SMTP_PORT": "1025",
182
+ "MAIL_URL": "smtp://localhost:1025"
183
+ }
184
+ },
185
+ "minio": {
186
+ "displayName": "MinIO (S3-compatible)",
187
+ "category": "storage",
188
+ "image": "minio/minio:latest",
189
+ "ports": [
190
+ {
191
+ "name": "s3",
192
+ "host": 9000,
193
+ "container": 9000
194
+ },
195
+ {
196
+ "name": "console",
197
+ "host": 9001,
198
+ "container": 9001
199
+ }
200
+ ],
201
+ "command": [
202
+ "server",
203
+ "/data",
204
+ "--console-address",
205
+ ":9001"
206
+ ],
207
+ "env": {
208
+ "MINIO_ROOT_USER": "rapidkit",
209
+ "MINIO_ROOT_PASSWORD": "rapidkit-dev"
210
+ },
211
+ "volumes": [
212
+ "minio_data:/data"
213
+ ],
214
+ "connectionEnv": {
215
+ "AWS_S3_ENDPOINT": "http://localhost:9000",
216
+ "S3_ENDPOINT_URL": "http://localhost:9000"
217
+ }
218
+ }
219
+ },
220
+ "moduleMappings": {
221
+ "free/database/db_postgres": [
222
+ "postgres"
223
+ ],
224
+ "free/database/db_mongo": [
225
+ "mongo"
226
+ ],
227
+ "free/database/db_mysql": [
228
+ "mysql"
229
+ ],
230
+ "free/cache/redis": [
231
+ "redis"
232
+ ],
233
+ "free/tasks/celery": [
234
+ "redis"
235
+ ],
236
+ "free/tasks/workflow_engine": [
237
+ "postgres",
238
+ "redis"
239
+ ],
240
+ "free/tasks/queue_platform": [
241
+ "redis"
242
+ ],
243
+ "free/tasks/event_bus": [
244
+ "redis"
245
+ ],
246
+ "free/communication/webhook_platform": [
247
+ "postgres",
248
+ "redis"
249
+ ],
250
+ "free/communication/email": [
251
+ "mailpit"
252
+ ],
253
+ "free/business/storage": [
254
+ "minio"
255
+ ],
256
+ "free/security/audit_policy": [
257
+ "postgres"
258
+ ],
259
+ "free/business/approval_engine": [
260
+ "postgres",
261
+ "redis"
262
+ ]
263
+ },
264
+ "envVarMappings": {
265
+ "DATABASE_URL": [
266
+ "postgres"
267
+ ],
268
+ "RAPIDKIT_DB_POSTGRES_URL": [
269
+ "postgres"
270
+ ],
271
+ "REDIS_URL": [
272
+ "redis"
273
+ ],
274
+ "CELERY_BROKER_URL": [
275
+ "redis"
276
+ ],
277
+ "CELERY_RESULT_BACKEND": [
278
+ "redis"
279
+ ],
280
+ "MONGODB_URI": [
281
+ "mongo"
282
+ ],
283
+ "MONGO_URL": [
284
+ "mongo"
285
+ ],
286
+ "MYSQL_URL": [
287
+ "mysql"
288
+ ],
289
+ "RABBITMQ_URL": [
290
+ "rabbitmq"
291
+ ],
292
+ "SMTP_HOST": [
293
+ "mailpit"
294
+ ],
295
+ "MAIL_URL": [
296
+ "mailpit"
297
+ ],
298
+ "AWS_S3_ENDPOINT": [
299
+ "minio"
300
+ ],
301
+ "S3_ENDPOINT_URL": [
302
+ "minio"
303
+ ]
304
+ }
305
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "schemaVersion": "rapidkit.module-layout.v1",
3
+ "canonicalModuleRoot": "src/modules/free",
4
+ "pathPattern": "src/modules/free/{category}/{module}",
5
+ "slugPattern": "free/{category}/{module}",
6
+ "frameworks": {
7
+ "fastapi": {
8
+ "moduleCommands": true,
9
+ "injectAnchors": [
10
+ "src/routing/__init__.py",
11
+ "src/modules/__init__.py"
12
+ ],
13
+ "moduleMarkerFiles": [
14
+ "__init__.py"
15
+ ]
16
+ },
17
+ "nestjs": {
18
+ "moduleCommands": true,
19
+ "injectAnchors": [
20
+ "src/app.module.ts",
21
+ "src/modules/index.ts"
22
+ ],
23
+ "moduleMarkerFiles": [
24
+ "index.ts",
25
+ "module.ts"
26
+ ]
27
+ }
28
+ },
29
+ "unsupportedModuleFrameworks": [
30
+ "go",
31
+ "springboot",
32
+ "dotnet"
33
+ ]
34
+ }