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.
- package/LICENSE +21 -0
- package/README.md +624 -0
- package/contracts/agent-customization-pack.v1.json +229 -0
- package/contracts/analyze-last-run.v1.json +106 -0
- package/contracts/artifact-remediation-plan.v1.json +163 -0
- package/contracts/backend-import-stack-parity.snapshot.json +37 -0
- package/contracts/cli-log-event.v1.json +51 -0
- package/contracts/create-planner-capabilities.v1.json +251 -0
- package/contracts/doctor-project-evidence.v1.json +304 -0
- package/contracts/doctor-remediation-plan.v1.json +496 -0
- package/contracts/doctor-workspace-evidence.v1.json +315 -0
- package/contracts/extension-cli-compatibility.v1.json +26 -0
- package/contracts/infra-stack.v1.json +305 -0
- package/contracts/module-layout.v1.json +34 -0
- package/contracts/module-support.v1.json +20 -0
- package/contracts/pipeline-last-run.v1.json +80 -0
- package/contracts/release-readiness.v1.json +60 -0
- package/contracts/runtime-command-surface.v1.json +364 -0
- package/contracts/workspace-intelligence/agent-action-outcome.v1.json +38 -0
- package/contracts/workspace-intelligence/blocker-resolution.v1.json +65 -0
- package/contracts/workspace-intelligence/doctor-fix-result.v1.json +44 -0
- package/contracts/workspace-intelligence/fact-freshness.v1.json +58 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +115 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +142 -0
- package/contracts/workspace-intelligence/workspace-contract-verify.v1.json +51 -0
- package/contracts/workspace-intelligence/workspace-dependency-graph.v1.json +152 -0
- package/contracts/workspace-intelligence/workspace-explain.v1.json +31 -0
- package/contracts/workspace-intelligence/workspace-impact.v1.json +114 -0
- package/contracts/workspace-intelligence/workspace-intelligence-history.v1.json +40 -0
- package/contracts/workspace-intelligence/workspace-model-diff.v1.json +105 -0
- package/contracts/workspace-intelligence/workspace-model-snapshot.v1.json +36 -0
- package/contracts/workspace-intelligence/workspace-model.v1.json +135 -0
- package/contracts/workspace-intelligence/workspace-operational-skill.v1.json +37 -0
- package/contracts/workspace-intelligence/workspace-skills-index.v1.json +27 -0
- package/contracts/workspace-intelligence/workspace-verify.v1.json +213 -0
- package/contracts/workspace-registry.v1.json +83 -0
- package/contracts/workspace-run-last.v1.json +112 -0
- package/data/modules-embeddings.json +16953 -0
- package/dist/analyze-5BU4QIPK.js +1 -0
- package/dist/artifact-remediation-plan-5GJWPPRS.js +3 -0
- package/dist/autopilot-release-QYUOVB26.js +1 -0
- package/dist/chunk-22DT744Z.js +1 -0
- package/dist/chunk-2E6WGUN6.js +1 -0
- package/dist/chunk-2FIX2MDC.js +1 -0
- package/dist/chunk-3KXW53QI.js +1 -0
- package/dist/chunk-3ZK2GU7C.js +1 -0
- package/dist/chunk-4KUIFXHM.js +5 -0
- package/dist/chunk-54XJNLYC.js +13 -0
- package/dist/chunk-5SWNSJGW.js +1 -0
- package/dist/chunk-5XATWNME.js +1 -0
- package/dist/chunk-753LOKFZ.js +2 -0
- package/dist/chunk-7YHK5NM3.js +2 -0
- package/dist/chunk-A5FBGRJA.js +1 -0
- package/dist/chunk-AAKUNWPR.js +78 -0
- package/dist/chunk-AFSZHLQT.js +1 -0
- package/dist/chunk-AQ4XZZC6.js +1 -0
- package/dist/chunk-CVTCPPEF.js +1 -0
- package/dist/chunk-DNAY5ALC.js +1 -0
- package/dist/chunk-EWYYLJQY.js +2 -0
- package/dist/chunk-GSWPGELT.js +2 -0
- package/dist/chunk-GZTYAEWX.js +1 -0
- package/dist/chunk-HTYMXMQM.js +1 -0
- package/dist/chunk-IBJEQHJR.js +205 -0
- package/dist/chunk-ICGWHIMK.js +1 -0
- package/dist/chunk-JEI6BTZI.js +3 -0
- package/dist/chunk-JHC6SCJC.js +1 -0
- package/dist/chunk-LO4C4VXR.js +4 -0
- package/dist/chunk-LPZFK3Y6.js +920 -0
- package/dist/chunk-LUP4U6EE.js +1 -0
- package/dist/chunk-LYC6AIF2.js +2 -0
- package/dist/chunk-LZQNVH7D.js +1 -0
- package/dist/chunk-NAAQMSO3.js +1 -0
- package/dist/chunk-NFUXULIF.js +1 -0
- package/dist/chunk-OCGZNSOE.js +1 -0
- package/dist/chunk-OJEWQO3Z.js +33 -0
- package/dist/chunk-OL64GWQC.js +9 -0
- package/dist/chunk-PI5KUXDA.js +7 -0
- package/dist/chunk-PYCJWW4B.js +1 -0
- package/dist/chunk-RE773WOX.js +13 -0
- package/dist/chunk-RO73VVHW.js +2 -0
- package/dist/chunk-S5KTATOU.js +1 -0
- package/dist/chunk-SI3AQKIP.js +1 -0
- package/dist/chunk-T3GJ7YVG.js +1 -0
- package/dist/chunk-T6OR6YOI.js +2 -0
- package/dist/chunk-VRDF2J46.js +653 -0
- package/dist/chunk-VZKSNUEE.js +2 -0
- package/dist/chunk-WU4ZRRA5.js +4 -0
- package/dist/chunk-XEJD4KCV.js +33 -0
- package/dist/chunk-XZGVNGRB.js +1 -0
- package/dist/chunk-Y45WZR5N.js +5 -0
- package/dist/create-WRZO4HK2.js +1 -0
- package/dist/demo-kit-AJ5LIM5G.js +149 -0
- package/dist/doctor-MF3M3FS3.js +1 -0
- package/dist/dotnet-webapi-clean-IPY3MCGQ.js +425 -0
- package/dist/gofiber-standard-N5N3QGH3.js +1397 -0
- package/dist/gogin-standard-LAWQTBWL.js +1459 -0
- package/dist/imported-projects-registry-FOIE27WT.js +1 -0
- package/dist/index.d.ts +141 -0
- package/dist/index.js +454 -0
- package/dist/managed-agent-markers-AXUM75OE.js +8 -0
- package/dist/module-layout-NZ43RSC5.js +1 -0
- package/dist/pipeline-QCUHFWDY.js +5 -0
- package/dist/platform-capabilities-XAVU4HSM.js +1 -0
- package/dist/pythonRapidkitExec-3L3XJBSY.js +1 -0
- package/dist/springboot-standard-OZYF7ZM7.js +697 -0
- package/dist/workspace-PR6VZRBG.js +1 -0
- package/dist/workspace-agent-sync-KTYF3HQR.js +1 -0
- package/dist/workspace-archive-GCZNI44O.js +3 -0
- package/dist/workspace-context-QUTOP2XV.js +1 -0
- package/dist/workspace-contract-XUGMCUSQ.js +1 -0
- package/dist/workspace-explain-JEONEGZZ.js +1 -0
- package/dist/workspace-explain-contract-DNS2YEL7.js +1 -0
- package/dist/workspace-feedback-R6H4UFZB.js +1 -0
- package/dist/workspace-foundation-KGSV4E6D.js +1 -0
- package/dist/workspace-graph-2A5THUCI.js +1 -0
- package/dist/workspace-history-CGCK2DJI.js +1 -0
- package/dist/workspace-intelligence-QJGVL37U.js +1 -0
- package/dist/workspace-marker-SMBC3Z2Q.js +1 -0
- package/dist/workspace-mcp-serve-AK4MYEHQ.js +3 -0
- package/dist/workspace-model-PNXXOGPO.js +1 -0
- package/dist/workspace-python-engine-state-MTWIIZPY.js +2 -0
- package/dist/workspace-registry-summary-RUJE6RPH.js +1 -0
- package/dist/workspace-run-Y7YMUIHX.js +1 -0
- package/dist/workspace-verify-WSDUUTR5.js +1 -0
- package/dist/workspace-watch-AGPOJ74Q.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +440 -0
- package/docs/AI_EXAMPLES.md +419 -0
- package/docs/AI_FEATURES.md +460 -0
- package/docs/AI_QUICKSTART.md +245 -0
- package/docs/DEVELOPMENT.md +90 -0
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +170 -0
- package/docs/OPTIMIZATION_GUIDE.md +504 -0
- package/docs/PACKAGE_MANAGER_POLICY.md +25 -0
- package/docs/README.md +125 -0
- package/docs/SECURITY.md +63 -0
- package/docs/SETUP.md +107 -0
- package/docs/UTILITIES.md +221 -0
- package/docs/WORKSPACE_MARKER_SPEC.md +276 -0
- package/docs/ci-workflows.md +59 -0
- package/docs/commands-reference.md +172 -0
- package/docs/config-file-guide.md +299 -0
- package/docs/contracts/ARTIFACT_CATALOG.md +333 -0
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +123 -0
- package/docs/contracts/COMMAND_OWNERSHIP_MATRIX.md +138 -0
- package/docs/contracts/NAMING_AND_COEXISTENCE.md +60 -0
- package/docs/contracts/README.md +86 -0
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +98 -0
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +75 -0
- package/docs/contracts/rapidkit-cli-contracts.json +239 -0
- package/docs/create-planner-capabilities.md +81 -0
- package/docs/doctor-command.md +467 -0
- package/docs/examples/ci-agent-grounding.yml +65 -0
- package/docs/from-code-to-shared-understanding.md +45 -0
- package/docs/governance-policy.enterprise.example.json +40 -0
- package/docs/mirror-config.enterprise.example.json +60 -0
- package/docs/policies.workspace.example.yml +23 -0
- package/docs/workspace-operations.md +160 -0
- package/docs/workspace-run.md +104 -0
- package/package.json +179 -0
- package/rapidkit.config.example.cjs +62 -0
- package/scripts/check-agent-customization-drift.mjs +78 -0
- package/scripts/check-cli-resolution.cjs +72 -0
- package/scripts/enforce-package-manager.cjs +10 -0
- package/scripts/enterprise-package-smoke.mjs +463 -0
- package/scripts/prepack-enterprise.mjs +43 -0
- package/templates/generator.js +179 -0
- package/templates/kits/fastapi-ddd/README.md.j2 +117 -0
- package/templates/kits/fastapi-ddd/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-ddd/env.example.j2 +1 -0
- package/templates/kits/fastapi-ddd/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-ddd/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/__init__.py.j2 +11 -0
- package/templates/kits/fastapi-ddd/src/app/application/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/application/interfaces.py.j2 +43 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/health.py.j2 +14 -0
- package/templates/kits/fastapi-ddd/src/app/application/use_cases/notes.py.j2 +24 -0
- package/templates/kits/fastapi-ddd/src/app/config/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/health.py.j2 +16 -0
- package/templates/kits/fastapi-ddd/src/app/domain/models/note.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/__init__.py.j2 +6 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/src/app/infrastructure/repositories/notes.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/app/main.py.j2 +61 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/dependencies/__init__.py.j2 +19 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/router.py.j2 +10 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/health.py.j2 +27 -0
- package/templates/kits/fastapi-ddd/src/app/presentation/api/routes/notes.py.j2 +50 -0
- package/templates/kits/fastapi-ddd/src/app/shared/__init__.py.j2 +5 -0
- package/templates/kits/fastapi-ddd/src/app/shared/result.py.j2 +28 -0
- package/templates/kits/fastapi-ddd/src/cli.py.j2 +170 -0
- package/templates/kits/fastapi-ddd/src/main.py.j2 +35 -0
- package/templates/kits/fastapi-ddd/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-ddd/src/routing/__init__.py.j2 +13 -0
- package/templates/kits/fastapi-ddd/src/routing/health.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/src/routing/notes.py.j2 +7 -0
- package/templates/kits/fastapi-ddd/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-ddd/tests/test_app_factory.py.j2 +22 -0
- package/templates/kits/fastapi-ddd/tests/test_health.py.j2 +17 -0
- package/templates/kits/fastapi-ddd/tests/test_notes.py.j2 +27 -0
- package/templates/kits/fastapi-standard/README.md.j2 +140 -0
- package/templates/kits/fastapi-standard/common/env.example.j2 +10 -0
- package/templates/kits/fastapi-standard/env.example.j2 +1 -0
- package/templates/kits/fastapi-standard/pyproject.toml.j2 +64 -0
- package/templates/kits/fastapi-standard/src/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/cli.py.j2 +171 -0
- package/templates/kits/fastapi-standard/src/main.py.j2 +66 -0
- package/templates/kits/fastapi-standard/src/modules/__init__.py.j2 +3 -0
- package/templates/kits/fastapi-standard/src/routing/__init__.py.j2 +16 -0
- package/templates/kits/fastapi-standard/src/routing/examples.py.j2 +71 -0
- package/templates/kits/fastapi-standard/src/routing/health.py.j2 +22 -0
- package/templates/kits/fastapi-standard/tests/__init__.py.j2 +1 -0
- package/templates/kits/fastapi-standard/tests/test_examples.py.j2 +29 -0
- package/templates/kits/fastapi-standard/tests/test_health.py.j2 +17 -0
- package/templates/kits/nestjs-standard/Dockerfile.j2 +41 -0
- package/templates/kits/nestjs-standard/README.md.j2 +134 -0
- package/templates/kits/nestjs-standard/docker-compose.yml.j2 +94 -0
- package/templates/kits/nestjs-standard/docs/README.md.j2 +15 -0
- package/templates/kits/nestjs-standard/env.example.j2 +18 -0
- package/templates/kits/nestjs-standard/eslint.config.cjs.j2 +9 -0
- package/templates/kits/nestjs-standard/jest.config.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/nest-cli.json.j2 +10 -0
- package/templates/kits/nestjs-standard/package.json.j2 +101 -0
- package/templates/kits/nestjs-standard/src/app.controller.ts.j2 +14 -0
- package/templates/kits/nestjs-standard/src/app.module.ts.j2 +26 -0
- package/templates/kits/nestjs-standard/src/app.service.ts.j2 +16 -0
- package/templates/kits/nestjs-standard/src/auth/auth.controller.ts.j2 +20 -0
- package/templates/kits/nestjs-standard/src/auth/auth.module.ts.j2 +13 -0
- package/templates/kits/nestjs-standard/src/auth/auth.service.ts.j2 +6 -0
- package/templates/kits/nestjs-standard/src/auth/entities/token.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/user.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/auth/entities/webauthn.entity.ts.j2 +3 -0
- package/templates/kits/nestjs-standard/src/config/configuration.ts.j2 +85 -0
- package/templates/kits/nestjs-standard/src/config/index.ts.j2 +2 -0
- package/templates/kits/nestjs-standard/src/config/validation.ts.j2 +21 -0
- package/templates/kits/nestjs-standard/src/examples/dto/create-note.dto.ts.j2 +11 -0
- package/templates/kits/nestjs-standard/src/examples/examples.controller.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/src/examples/examples.module.ts.j2 +10 -0
- package/templates/kits/nestjs-standard/src/examples/examples.service.ts.j2 +33 -0
- package/templates/kits/nestjs-standard/src/main.ts.j2 +53 -0
- package/templates/kits/nestjs-standard/src/modules/index.ts.j2 +25 -0
- package/templates/kits/nestjs-standard/test/app.controller.spec.ts.j2 +24 -0
- package/templates/kits/nestjs-standard/test/app.e2e-spec.ts.j2 +60 -0
- package/templates/kits/nestjs-standard/test/examples.controller.spec.ts.j2 +28 -0
- package/templates/kits/nestjs-standard/test/jest-e2e.json.j2 +15 -0
- package/templates/kits/nestjs-standard/tsconfig.build.json.j2 +12 -0
- package/templates/kits/nestjs-standard/tsconfig.json.j2 +26 -0
- package/workspai.config.example.cjs +62 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rapidkit.dev/contracts/doctor-remediation-plan.v1.json",
|
|
4
|
+
"title": "RapidKit Doctor Remediation Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"generatedAt",
|
|
10
|
+
"policyProfile",
|
|
11
|
+
"fixableProjects",
|
|
12
|
+
"totalSteps",
|
|
13
|
+
"executableSteps",
|
|
14
|
+
"risk",
|
|
15
|
+
"steps"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": {
|
|
19
|
+
"const": "doctor-remediation-plan-v2"
|
|
20
|
+
},
|
|
21
|
+
"generatedAt": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"policyProfile": {
|
|
25
|
+
"enum": ["local", "ci", "release", "enterprise-strict"]
|
|
26
|
+
},
|
|
27
|
+
"fixableProjects": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 0
|
|
30
|
+
},
|
|
31
|
+
"totalSteps": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 0
|
|
34
|
+
},
|
|
35
|
+
"executableSteps": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0
|
|
38
|
+
},
|
|
39
|
+
"risk": {
|
|
40
|
+
"$ref": "#/$defs/riskSummary"
|
|
41
|
+
},
|
|
42
|
+
"steps": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "#/$defs/step"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"$defs": {
|
|
50
|
+
"riskSummary": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": ["safe", "guarded", "invasive"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"safe": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 0
|
|
58
|
+
},
|
|
59
|
+
"guarded": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"minimum": 0
|
|
62
|
+
},
|
|
63
|
+
"invasive": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 0
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"preview": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": ["title", "summary", "changes"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"title": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"summary": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"changes": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"rollback": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": ["available", "strategy"],
|
|
92
|
+
"properties": {
|
|
93
|
+
"available": {
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"strategy": {
|
|
97
|
+
"enum": ["snapshot", "idempotent", "manual", "none"]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"diffPreview": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["available", "format", "summary", "hunks"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"available": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"format": {
|
|
110
|
+
"enum": ["unified", "summary", "none"]
|
|
111
|
+
},
|
|
112
|
+
"summary": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"hunks": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"limitations": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"studioStatus": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["state", "reason"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"state": {
|
|
135
|
+
"enum": ["ready", "blocked", "review-required", "guidance-only"]
|
|
136
|
+
},
|
|
137
|
+
"reason": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"repairIntent": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": ["mode", "primaryAction", "requiresApproval"],
|
|
146
|
+
"properties": {
|
|
147
|
+
"mode": {
|
|
148
|
+
"enum": [
|
|
149
|
+
"none",
|
|
150
|
+
"run-command",
|
|
151
|
+
"edit-file",
|
|
152
|
+
"review-required",
|
|
153
|
+
"verify-before-fix",
|
|
154
|
+
"refresh-evidence",
|
|
155
|
+
"manual-guidance"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"primaryAction": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"requiresApproval": {
|
|
162
|
+
"type": "boolean"
|
|
163
|
+
},
|
|
164
|
+
"confidence": {
|
|
165
|
+
"enum": ["high", "medium", "low"]
|
|
166
|
+
},
|
|
167
|
+
"notes": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"repairOperation": {
|
|
176
|
+
"oneOf": [
|
|
177
|
+
{
|
|
178
|
+
"type": "object",
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"required": ["type", "path", "content", "overwrite"],
|
|
181
|
+
"properties": {
|
|
182
|
+
"type": {
|
|
183
|
+
"const": "file-create"
|
|
184
|
+
},
|
|
185
|
+
"path": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"content": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"overwrite": {
|
|
192
|
+
"const": false
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"type": "object",
|
|
198
|
+
"additionalProperties": false,
|
|
199
|
+
"required": ["type", "path", "lines", "ensureNewline"],
|
|
200
|
+
"properties": {
|
|
201
|
+
"type": {
|
|
202
|
+
"const": "file-append"
|
|
203
|
+
},
|
|
204
|
+
"path": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"lines": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"ensureNewline": {
|
|
214
|
+
"type": "boolean"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"required": ["type", "sourcePath", "path", "overwrite"],
|
|
222
|
+
"properties": {
|
|
223
|
+
"type": {
|
|
224
|
+
"const": "file-copy"
|
|
225
|
+
},
|
|
226
|
+
"sourcePath": {
|
|
227
|
+
"type": "string"
|
|
228
|
+
},
|
|
229
|
+
"path": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
"overwrite": {
|
|
233
|
+
"const": false
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"required": ["type", "path", "scriptName", "scriptValue"],
|
|
241
|
+
"properties": {
|
|
242
|
+
"type": {
|
|
243
|
+
"const": "package-json-script"
|
|
244
|
+
},
|
|
245
|
+
"path": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"scriptName": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"scriptValue": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "object",
|
|
258
|
+
"additionalProperties": false,
|
|
259
|
+
"required": ["type", "path", "edits"],
|
|
260
|
+
"properties": {
|
|
261
|
+
"type": {
|
|
262
|
+
"const": "json-edit"
|
|
263
|
+
},
|
|
264
|
+
"path": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"edits": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"required": ["pointer", "value"],
|
|
273
|
+
"properties": {
|
|
274
|
+
"pointer": {
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
"value": {
|
|
278
|
+
"type": ["string", "number", "boolean", "null"]
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "object",
|
|
287
|
+
"additionalProperties": false,
|
|
288
|
+
"required": ["type", "path", "keys"],
|
|
289
|
+
"properties": {
|
|
290
|
+
"type": {
|
|
291
|
+
"const": "env-key-add"
|
|
292
|
+
},
|
|
293
|
+
"path": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"keys": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"required": ["name", "value"],
|
|
302
|
+
"properties": {
|
|
303
|
+
"name": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
"value": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"comment": {
|
|
310
|
+
"type": "string"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "object",
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"required": ["type", "path", "target", "command", "phony"],
|
|
321
|
+
"properties": {
|
|
322
|
+
"type": {
|
|
323
|
+
"const": "makefile-target"
|
|
324
|
+
},
|
|
325
|
+
"path": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
"target": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
331
|
+
"command": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"phony": {
|
|
335
|
+
"type": "boolean"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
"step": {
|
|
342
|
+
"type": "object",
|
|
343
|
+
"additionalProperties": false,
|
|
344
|
+
"required": [
|
|
345
|
+
"id",
|
|
346
|
+
"phase",
|
|
347
|
+
"order",
|
|
348
|
+
"dependsOn",
|
|
349
|
+
"projectName",
|
|
350
|
+
"projectPath",
|
|
351
|
+
"originalCommand",
|
|
352
|
+
"kind",
|
|
353
|
+
"risk",
|
|
354
|
+
"executable",
|
|
355
|
+
"files",
|
|
356
|
+
"preview",
|
|
357
|
+
"diffPreview",
|
|
358
|
+
"refreshCommands",
|
|
359
|
+
"rollback",
|
|
360
|
+
"studioStatus",
|
|
361
|
+
"executableInCurrentEnvironment"
|
|
362
|
+
],
|
|
363
|
+
"properties": {
|
|
364
|
+
"id": {
|
|
365
|
+
"type": "string"
|
|
366
|
+
},
|
|
367
|
+
"phase": {
|
|
368
|
+
"enum": [
|
|
369
|
+
"dependency-baseline",
|
|
370
|
+
"local-environment",
|
|
371
|
+
"source-hygiene",
|
|
372
|
+
"command-contract",
|
|
373
|
+
"runtime-governance",
|
|
374
|
+
"manual-review",
|
|
375
|
+
"generic-execution"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"order": {
|
|
379
|
+
"type": "integer",
|
|
380
|
+
"minimum": 1
|
|
381
|
+
},
|
|
382
|
+
"dependsOn": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"projectName": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"projectPath": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"originalCommand": {
|
|
395
|
+
"type": "string"
|
|
396
|
+
},
|
|
397
|
+
"kind": {
|
|
398
|
+
"enum": [
|
|
399
|
+
"env-copy",
|
|
400
|
+
"package-json-script",
|
|
401
|
+
"file-create",
|
|
402
|
+
"file-append",
|
|
403
|
+
"json-edit",
|
|
404
|
+
"env-key-add",
|
|
405
|
+
"makefile-target",
|
|
406
|
+
"rapidkit-init",
|
|
407
|
+
"go-mod-tidy",
|
|
408
|
+
"dependency-sync",
|
|
409
|
+
"manual-url",
|
|
410
|
+
"shell"
|
|
411
|
+
]
|
|
412
|
+
},
|
|
413
|
+
"risk": {
|
|
414
|
+
"enum": ["safe", "guarded", "invasive"]
|
|
415
|
+
},
|
|
416
|
+
"executable": {
|
|
417
|
+
"type": "boolean"
|
|
418
|
+
},
|
|
419
|
+
"reason": {
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
"issueId": {
|
|
423
|
+
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
"issueClass": {
|
|
426
|
+
"enum": [
|
|
427
|
+
"dependency",
|
|
428
|
+
"environment",
|
|
429
|
+
"security",
|
|
430
|
+
"test",
|
|
431
|
+
"quality",
|
|
432
|
+
"container",
|
|
433
|
+
"deployment",
|
|
434
|
+
"runtime",
|
|
435
|
+
"workspace-contract",
|
|
436
|
+
"source-tree",
|
|
437
|
+
"framework",
|
|
438
|
+
"configuration",
|
|
439
|
+
"custom",
|
|
440
|
+
"unknown"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
"operationalImpact": {
|
|
444
|
+
"enum": [
|
|
445
|
+
"none",
|
|
446
|
+
"developer-friction",
|
|
447
|
+
"ci-risk",
|
|
448
|
+
"release-risk",
|
|
449
|
+
"security-risk",
|
|
450
|
+
"runtime-risk",
|
|
451
|
+
"customer-risk"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"repairIntent": {
|
|
455
|
+
"$ref": "#/$defs/repairIntent"
|
|
456
|
+
},
|
|
457
|
+
"files": {
|
|
458
|
+
"type": "array",
|
|
459
|
+
"items": {
|
|
460
|
+
"type": "string"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"operation": {
|
|
464
|
+
"$ref": "#/$defs/repairOperation"
|
|
465
|
+
},
|
|
466
|
+
"preview": {
|
|
467
|
+
"$ref": "#/$defs/preview"
|
|
468
|
+
},
|
|
469
|
+
"diffPreview": {
|
|
470
|
+
"$ref": "#/$defs/diffPreview"
|
|
471
|
+
},
|
|
472
|
+
"verifyCommand": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"refreshCommands": {
|
|
476
|
+
"type": "array",
|
|
477
|
+
"items": {
|
|
478
|
+
"type": "string"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"rollback": {
|
|
482
|
+
"$ref": "#/$defs/rollback"
|
|
483
|
+
},
|
|
484
|
+
"studioStatus": {
|
|
485
|
+
"$ref": "#/$defs/studioStatus"
|
|
486
|
+
},
|
|
487
|
+
"executableInCurrentEnvironment": {
|
|
488
|
+
"type": "boolean"
|
|
489
|
+
},
|
|
490
|
+
"blockedReason": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|