@devtrack-solution/codesdd 1.2.3 → 1.2.4-rc3

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 (139) hide show
  1. package/.sdd/skills/curated/devtrack-api/SKILL.md +12 -5
  2. package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +8 -0
  3. package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +8 -0
  4. package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +8 -0
  5. package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +8 -0
  6. package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +8 -0
  7. package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +4 -2
  8. package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +10 -0
  9. package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +2 -2
  10. package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +55 -0
  11. package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +13 -13
  12. package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +2 -3
  13. package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +1 -1
  14. package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +41 -0
  15. package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +7 -9
  16. package/README.md +159 -5
  17. package/dist/applications/sdd/index.d.ts +16 -0
  18. package/dist/applications/sdd/index.js +16 -0
  19. package/dist/commands/config.js +171 -10
  20. package/dist/commands/sdd/execution.js +345 -15
  21. package/dist/commands/sdd/plugin.js +5 -0
  22. package/dist/commands/sdd/shared.d.ts +1 -0
  23. package/dist/commands/sdd/shared.js +10 -0
  24. package/dist/commands/sdd.js +38 -3
  25. package/dist/core/cli/command-matrix.js +9 -0
  26. package/dist/core/cli-command-quality.js +9 -0
  27. package/dist/core/completions/command-registry.js +45 -0
  28. package/dist/core/config-schema.d.ts +18 -1
  29. package/dist/core/config-schema.js +48 -5
  30. package/dist/core/global-config.d.ts +16 -0
  31. package/dist/core/sdd/agent-binding.d.ts +10 -10
  32. package/dist/core/sdd/agent-runtime-contract.d.ts +204 -0
  33. package/dist/core/sdd/agent-runtime-contract.js +200 -0
  34. package/dist/core/sdd/check.d.ts +2 -0
  35. package/dist/core/sdd/check.js +40 -2
  36. package/dist/core/sdd/coordination/coordination-adapters.d.ts +15 -8
  37. package/dist/core/sdd/coordination/coordination-adapters.js +43 -15
  38. package/dist/core/sdd/coordination/index.d.ts +1 -0
  39. package/dist/core/sdd/coordination/index.js +1 -0
  40. package/dist/core/sdd/coordination/redis-runtime.d.ts +131 -0
  41. package/dist/core/sdd/coordination/redis-runtime.js +698 -0
  42. package/dist/core/sdd/deepagent-contracts.d.ts +98 -4
  43. package/dist/core/sdd/deepagent-contracts.js +62 -0
  44. package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
  45. package/dist/core/sdd/default-bootstrap-files.js +14 -8
  46. package/dist/core/sdd/default-skills.js +108 -4
  47. package/dist/core/sdd/devtrack-api-appliance.d.ts +8 -1
  48. package/dist/core/sdd/devtrack-api-appliance.js +46 -23
  49. package/dist/core/sdd/docs-sync.js +21 -15
  50. package/dist/core/sdd/domain/capability-diff.d.ts +63 -0
  51. package/dist/core/sdd/domain/capability-diff.js +200 -0
  52. package/dist/core/sdd/domain/change-safety-guardrails.d.ts +74 -0
  53. package/dist/core/sdd/domain/change-safety-guardrails.js +333 -0
  54. package/dist/core/sdd/domain/semantic-intent-classifier.d.ts +29 -0
  55. package/dist/core/sdd/domain/semantic-intent-classifier.js +117 -0
  56. package/dist/core/sdd/foundation-artifact-map-validator.d.ts +16 -0
  57. package/dist/core/sdd/foundation-artifact-map-validator.js +71 -0
  58. package/dist/core/sdd/foundation-layer-manifest.d.ts +24 -0
  59. package/dist/core/sdd/foundation-layer-manifest.js +117 -0
  60. package/dist/core/sdd/intent-guard.d.ts +22 -0
  61. package/dist/core/sdd/intent-guard.js +67 -0
  62. package/dist/core/sdd/json-schema.js +9 -1
  63. package/dist/core/sdd/legacy-operations.js +76 -1
  64. package/dist/core/sdd/migrate-workspace.js +39 -0
  65. package/dist/core/sdd/package-security-gates.d.ts +21 -0
  66. package/dist/core/sdd/package-security-gates.js +119 -0
  67. package/dist/core/sdd/package-structure-gate.js +3 -8
  68. package/dist/core/sdd/parallel-feat-automation.d.ts +181 -3
  69. package/dist/core/sdd/parallel-feat-automation.js +212 -0
  70. package/dist/core/sdd/plugin-broker.d.ts +223 -4
  71. package/dist/core/sdd/plugin-broker.js +10 -0
  72. package/dist/core/sdd/plugin-cli.d.ts +30 -0
  73. package/dist/core/sdd/plugin-cli.js +70 -3
  74. package/dist/core/sdd/plugin-evidence.d.ts +73 -0
  75. package/dist/core/sdd/plugin-manifest.d.ts +69 -1
  76. package/dist/core/sdd/plugin-manifest.js +10 -0
  77. package/dist/core/sdd/plugin-policy-pack.d.ts +1 -1
  78. package/dist/core/sdd/plugin-registry.d.ts +141 -5
  79. package/dist/core/sdd/plugin-sdk-contract.d.ts +363 -0
  80. package/dist/core/sdd/plugin-sdk-contract.js +268 -0
  81. package/dist/core/sdd/plugin-skill-binding.d.ts +1 -1
  82. package/dist/core/sdd/quality-validation.d.ts +84 -11
  83. package/dist/core/sdd/release-readiness.d.ts +19 -0
  84. package/dist/core/sdd/release-readiness.js +472 -0
  85. package/dist/core/sdd/runtime-boundary-contract.d.ts +45 -0
  86. package/dist/core/sdd/runtime-boundary-contract.js +90 -0
  87. package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +150 -0
  88. package/dist/core/sdd/sdk-agent-plugin-quality-gates.js +258 -0
  89. package/dist/core/sdd/services/agent-run.service.d.ts +38 -6
  90. package/dist/core/sdd/services/agent-run.service.js +73 -1
  91. package/dist/core/sdd/services/capability-diff.service.d.ts +18 -0
  92. package/dist/core/sdd/services/capability-diff.service.js +26 -0
  93. package/dist/core/sdd/services/change-safety-preflight.service.d.ts +17 -0
  94. package/dist/core/sdd/services/change-safety-preflight.service.js +17 -0
  95. package/dist/core/sdd/services/context.service.d.ts +43 -340
  96. package/dist/core/sdd/services/context.service.js +323 -9
  97. package/dist/core/sdd/services/finalize.service.d.ts +25 -0
  98. package/dist/core/sdd/services/finalize.service.js +178 -16
  99. package/dist/core/sdd/services/frontend-impact.service.d.ts +1 -1
  100. package/dist/core/sdd/services/semantic-intent-classifier.service.d.ts +6 -0
  101. package/dist/core/sdd/services/semantic-intent-classifier.service.js +7 -0
  102. package/dist/core/sdd/state.d.ts +1 -0
  103. package/dist/core/sdd/state.js +251 -29
  104. package/dist/core/sdd/store/sdd-stores.js +2 -2
  105. package/dist/core/sdd/structural-health.d.ts +13 -13
  106. package/dist/core/sdd/types.d.ts +27 -12
  107. package/dist/core/sdd/types.js +4 -0
  108. package/dist/core/sdd/views.js +17 -0
  109. package/dist/core/sdd/workspace-schemas.d.ts +387 -7
  110. package/dist/core/sdd/workspace-schemas.js +196 -64
  111. package/dist/domains/sdd/index.d.ts +6 -0
  112. package/dist/domains/sdd/index.js +6 -0
  113. package/dist/infrastructures/sdd/index.d.ts +7 -0
  114. package/dist/infrastructures/sdd/index.js +6 -0
  115. package/dist/presentations/cli/sdd/index.d.ts +3 -0
  116. package/dist/presentations/cli/sdd/index.js +3 -0
  117. package/dist/shared/sdd/index.d.ts +3 -0
  118. package/dist/shared/sdd/index.js +2 -0
  119. package/package.json +9 -6
  120. package/schemas/sdd/2-plan.schema.json +207 -2
  121. package/schemas/sdd/5-quality.schema.json +281 -25
  122. package/schemas/sdd/agent-runtime-command-plan.schema.json +212 -0
  123. package/schemas/sdd/agent-runtime-opencode-run-evidence.schema.json +270 -0
  124. package/schemas/sdd/codesdd-plugin.schema.json +171 -0
  125. package/schemas/sdd/deepagent-run-request.schema.json +316 -0
  126. package/schemas/sdd/parallel-feat-automation-plan.schema.json +89 -0
  127. package/schemas/sdd/parallel-feat-scheduler-request.schema.json +116 -0
  128. package/schemas/sdd/parallel-feat-scheduler-result.schema.json +404 -0
  129. package/schemas/sdd/plugin-artifact-manifest.schema.json +109 -0
  130. package/schemas/sdd/plugin-artifact-map.schema.json +223 -0
  131. package/schemas/sdd/plugin-evidence-manifest.schema.json +109 -0
  132. package/schemas/sdd/plugin-language-runtime.schema.json +103 -0
  133. package/schemas/sdd/plugin-package-governance.schema.json +74 -0
  134. package/schemas/sdd/plugin-registry.schema.json +171 -0
  135. package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +109 -0
  136. package/schemas/sdd/quality-evidence-bundle.schema.json +109 -0
  137. package/schemas/sdd/sdk-agent-plugin-quality-gate-input.schema.json +168 -0
  138. package/schemas/sdd/sdk-agent-plugin-quality-gate-report.schema.json +160 -0
  139. package/schemas/sdd/workspace-catalog.schema.json +3776 -398
@@ -0,0 +1,270 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schema_version": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "contract": {
10
+ "type": "string",
11
+ "const": "agent-runtime-v2/opencode-run"
12
+ },
13
+ "provider": {
14
+ "type": "string",
15
+ "const": "opencode"
16
+ },
17
+ "feature_ref": {
18
+ "type": "string",
19
+ "pattern": "^FEAT-\\d{4}$"
20
+ },
21
+ "run_id": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "created_at": {
26
+ "type": "string",
27
+ "format": "date-time",
28
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
29
+ },
30
+ "mode": {
31
+ "type": "string",
32
+ "enum": [
33
+ "read-only",
34
+ "plan",
35
+ "validate",
36
+ "apply-sandbox",
37
+ "apply-approved"
38
+ ]
39
+ },
40
+ "status": {
41
+ "type": "string",
42
+ "enum": [
43
+ "planned",
44
+ "skipped",
45
+ "blocked",
46
+ "running",
47
+ "completed",
48
+ "failed"
49
+ ]
50
+ },
51
+ "command": {
52
+ "type": "object",
53
+ "properties": {
54
+ "executable": {
55
+ "type": "string",
56
+ "const": "opencode"
57
+ },
58
+ "args": {
59
+ "default": [],
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "stdin": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "required": [
70
+ "executable",
71
+ "args"
72
+ ],
73
+ "additionalProperties": false
74
+ },
75
+ "command_plan_ref": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "cwd": {
80
+ "default": ".",
81
+ "type": "string",
82
+ "minLength": 1
83
+ },
84
+ "exit_code": {
85
+ "default": null,
86
+ "anyOf": [
87
+ {
88
+ "type": "integer",
89
+ "minimum": -9007199254740991,
90
+ "maximum": 9007199254740991
91
+ },
92
+ {
93
+ "type": "null"
94
+ }
95
+ ]
96
+ },
97
+ "started_at": {
98
+ "type": "string",
99
+ "format": "date-time",
100
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
101
+ },
102
+ "completed_at": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
106
+ },
107
+ "duration_ms": {
108
+ "type": "integer",
109
+ "minimum": 0,
110
+ "maximum": 9007199254740991
111
+ },
112
+ "structured_output": {
113
+ "default": {},
114
+ "type": "object",
115
+ "propertyNames": {
116
+ "type": "string"
117
+ },
118
+ "additionalProperties": {}
119
+ },
120
+ "stdout_excerpt": {
121
+ "type": "string",
122
+ "maxLength": 8000
123
+ },
124
+ "stderr_excerpt": {
125
+ "type": "string",
126
+ "maxLength": 8000
127
+ },
128
+ "artifacts": {
129
+ "default": [],
130
+ "type": "array",
131
+ "items": {
132
+ "type": "object",
133
+ "properties": {
134
+ "kind": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "ref": {
139
+ "type": "string",
140
+ "minLength": 1
141
+ },
142
+ "path": {
143
+ "type": "string",
144
+ "minLength": 1
145
+ },
146
+ "sha256": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ }
150
+ },
151
+ "required": [
152
+ "kind",
153
+ "ref"
154
+ ],
155
+ "additionalProperties": false
156
+ }
157
+ },
158
+ "validations": {
159
+ "default": [],
160
+ "type": "array",
161
+ "items": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ }
165
+ },
166
+ "redactions": {
167
+ "default": [],
168
+ "type": "array",
169
+ "items": {
170
+ "type": "string",
171
+ "minLength": 1
172
+ }
173
+ },
174
+ "risks": {
175
+ "default": [],
176
+ "type": "array",
177
+ "items": {
178
+ "type": "object",
179
+ "properties": {
180
+ "id": {
181
+ "type": "string",
182
+ "minLength": 1
183
+ },
184
+ "severity": {
185
+ "type": "string",
186
+ "enum": [
187
+ "low",
188
+ "medium",
189
+ "high",
190
+ "critical"
191
+ ]
192
+ },
193
+ "summary": {
194
+ "type": "string",
195
+ "minLength": 1
196
+ },
197
+ "mitigation": {
198
+ "type": "string",
199
+ "minLength": 1
200
+ }
201
+ },
202
+ "required": [
203
+ "id",
204
+ "severity",
205
+ "summary"
206
+ ],
207
+ "additionalProperties": false
208
+ }
209
+ },
210
+ "policy": {
211
+ "type": "object",
212
+ "properties": {
213
+ "direct_state_write_allowed": {
214
+ "type": "boolean",
215
+ "const": false
216
+ },
217
+ "requires_codesdd_finalize": {
218
+ "type": "boolean",
219
+ "const": true
220
+ },
221
+ "raw_secret_output_allowed": {
222
+ "type": "boolean",
223
+ "const": false
224
+ },
225
+ "transcript_storage": {
226
+ "default": "redacted-excerpts-only",
227
+ "type": "string",
228
+ "enum": [
229
+ "forbidden",
230
+ "redacted-excerpts-only"
231
+ ]
232
+ }
233
+ },
234
+ "required": [
235
+ "direct_state_write_allowed",
236
+ "requires_codesdd_finalize",
237
+ "raw_secret_output_allowed",
238
+ "transcript_storage"
239
+ ],
240
+ "additionalProperties": false
241
+ },
242
+ "finalize_intent": {
243
+ "default": false,
244
+ "type": "boolean"
245
+ }
246
+ },
247
+ "required": [
248
+ "schema_version",
249
+ "contract",
250
+ "provider",
251
+ "feature_ref",
252
+ "run_id",
253
+ "created_at",
254
+ "mode",
255
+ "status",
256
+ "command",
257
+ "cwd",
258
+ "exit_code",
259
+ "structured_output",
260
+ "artifacts",
261
+ "validations",
262
+ "redactions",
263
+ "risks",
264
+ "policy",
265
+ "finalize_intent"
266
+ ],
267
+ "additionalProperties": false,
268
+ "title": "CodeSDD Agent Runtime OpenCode Run Evidence",
269
+ "description": "Machine-readable OpenCode run evidence with redacted excerpts, artifacts, validations, and finalize policy."
270
+ }
@@ -78,6 +78,177 @@
78
78
  ],
79
79
  "additionalProperties": false
80
80
  },
81
+ "package_governance": {
82
+ "type": "object",
83
+ "properties": {
84
+ "package_name": {
85
+ "type": "string",
86
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-[a-z0-9][a-z0-9-]*$"
87
+ },
88
+ "sdk_package": {
89
+ "default": "@devtrack-solution/codesdd-plugin-sdk",
90
+ "type": "string",
91
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-sdk$"
92
+ },
93
+ "sdk_version": {
94
+ "default": "*",
95
+ "type": "string",
96
+ "pattern": "^(?:[~^]?\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?|[<>]=?\\d+\\.\\d+\\.\\d+(?:\\s+<\\d+\\.\\d+\\.\\d+)?|\\*)$"
97
+ },
98
+ "package_kind": {
99
+ "type": "string",
100
+ "enum": [
101
+ "frontend",
102
+ "backend",
103
+ "full-stack",
104
+ "generator",
105
+ "validator",
106
+ "evidence",
107
+ "agent-adapter",
108
+ "policy-pack"
109
+ ]
110
+ },
111
+ "versioning": {
112
+ "default": "semver",
113
+ "type": "string",
114
+ "const": "semver"
115
+ },
116
+ "registry": {
117
+ "default": "workspace",
118
+ "type": "string",
119
+ "enum": [
120
+ "workspace",
121
+ "npm",
122
+ "private-npm",
123
+ "artifact-registry",
124
+ "custom"
125
+ ]
126
+ },
127
+ "keywords": {
128
+ "default": [],
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ }
134
+ },
135
+ "internal_package": {
136
+ "default": false,
137
+ "type": "boolean"
138
+ }
139
+ },
140
+ "required": [
141
+ "package_name",
142
+ "sdk_package",
143
+ "sdk_version",
144
+ "package_kind",
145
+ "versioning",
146
+ "registry",
147
+ "keywords",
148
+ "internal_package"
149
+ ],
150
+ "additionalProperties": false
151
+ },
152
+ "language_runtime": {
153
+ "type": "object",
154
+ "properties": {
155
+ "language": {
156
+ "type": "string",
157
+ "enum": [
158
+ "typescript",
159
+ "javascript",
160
+ "python",
161
+ "java",
162
+ "go",
163
+ "rust",
164
+ "csharp",
165
+ "php",
166
+ "ruby",
167
+ "shell",
168
+ "other"
169
+ ]
170
+ },
171
+ "runtime": {
172
+ "type": "string",
173
+ "minLength": 1
174
+ },
175
+ "bridge": {
176
+ "type": "string",
177
+ "enum": [
178
+ "node-library",
179
+ "stdio-json",
180
+ "process-cli",
181
+ "http-local",
182
+ "container",
183
+ "wasm"
184
+ ]
185
+ },
186
+ "input_transport": {
187
+ "type": "string",
188
+ "enum": [
189
+ "sdk-call",
190
+ "stdin-json",
191
+ "stdout-json",
192
+ "file-envelope",
193
+ "http-json"
194
+ ]
195
+ },
196
+ "output_transport": {
197
+ "type": "string",
198
+ "enum": [
199
+ "sdk-call",
200
+ "stdin-json",
201
+ "stdout-json",
202
+ "file-envelope",
203
+ "http-json"
204
+ ]
205
+ },
206
+ "command": {
207
+ "type": "string",
208
+ "minLength": 1
209
+ },
210
+ "args": {
211
+ "default": [],
212
+ "type": "array",
213
+ "items": {
214
+ "type": "string"
215
+ }
216
+ },
217
+ "package_manager": {
218
+ "type": "string",
219
+ "minLength": 1
220
+ },
221
+ "min_versions": {
222
+ "default": {},
223
+ "type": "object",
224
+ "propertyNames": {
225
+ "type": "string"
226
+ },
227
+ "additionalProperties": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "env_allowlist": {
232
+ "default": [],
233
+ "type": "array",
234
+ "items": {
235
+ "type": "string",
236
+ "pattern": "^[A-Z_][A-Z0-9_]*$"
237
+ }
238
+ }
239
+ },
240
+ "required": [
241
+ "language",
242
+ "runtime",
243
+ "bridge",
244
+ "input_transport",
245
+ "output_transport",
246
+ "args",
247
+ "min_versions",
248
+ "env_allowlist"
249
+ ],
250
+ "additionalProperties": false
251
+ },
81
252
  "capabilities": {
82
253
  "minItems": 1,
83
254
  "type": "array",