@devtrack-solution/codesdd 1.2.3 → 1.2.4

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 (213) hide show
  1. package/.sdd/skills/curated/devtrack-api/SKILL.md +98 -12
  2. package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +10 -0
  3. package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +10 -0
  4. package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +10 -0
  5. package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +10 -0
  6. package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +10 -0
  7. package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +5 -3
  8. package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +12 -0
  9. package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +61 -5
  10. package/.sdd/skills/curated/devtrack-api/references/consumer-sync-policy.md +15 -3
  11. package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +1951 -0
  12. package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +16 -14
  13. package/.sdd/skills/curated/devtrack-api/references/field-validation-protocol.md +40 -0
  14. package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +19 -2
  15. package/.sdd/skills/curated/devtrack-api/references/generated-artifact-invalidation.md +97 -0
  16. package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +30 -1
  17. package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +42 -0
  18. package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +22 -1
  19. package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +9 -7
  20. package/README.md +280 -29
  21. package/dist/applications/sdd/index.d.ts +16 -0
  22. package/dist/applications/sdd/index.js +16 -0
  23. package/dist/cli/program.js +180 -11
  24. package/dist/commands/config.js +197 -10
  25. package/dist/commands/sdd/execution.js +408 -16
  26. package/dist/commands/sdd/plugin.js +5 -0
  27. package/dist/commands/sdd/shared.d.ts +1 -0
  28. package/dist/commands/sdd/shared.js +10 -0
  29. package/dist/commands/sdd.js +157 -7
  30. package/dist/core/cli/command-matrix.d.ts +18 -0
  31. package/dist/core/cli/command-matrix.js +157 -0
  32. package/dist/core/cli-command-quality.js +11 -0
  33. package/dist/core/completions/command-registry.js +45 -0
  34. package/dist/core/config-schema.d.ts +31 -1
  35. package/dist/core/config-schema.js +79 -5
  36. package/dist/core/config.d.ts +1 -0
  37. package/dist/core/config.js +11 -0
  38. package/dist/core/global-config.d.ts +29 -0
  39. package/dist/core/init.d.ts +2 -2
  40. package/dist/core/init.js +13 -14
  41. package/dist/core/sdd/agent-binding.d.ts +19 -19
  42. package/dist/core/sdd/agent-runtime-contract.d.ts +204 -0
  43. package/dist/core/sdd/agent-runtime-contract.js +200 -0
  44. package/dist/core/sdd/allocator-recovery.d.ts +14 -0
  45. package/dist/core/sdd/allocator-recovery.js +30 -0
  46. package/dist/core/sdd/allocator-security.d.ts +18 -0
  47. package/dist/core/sdd/allocator-security.js +36 -0
  48. package/dist/core/sdd/api-foundation-baseline.d.ts +111 -0
  49. package/dist/core/sdd/api-foundation-baseline.js +151 -0
  50. package/dist/core/sdd/api-foundation-parity.d.ts +114 -0
  51. package/dist/core/sdd/api-foundation-parity.js +131 -0
  52. package/dist/core/sdd/api-profile-catalog.d.ts +36 -0
  53. package/dist/core/sdd/api-profile-catalog.js +132 -0
  54. package/dist/core/sdd/api-profile-dry-run-projection.d.ts +93 -0
  55. package/dist/core/sdd/api-profile-dry-run-projection.js +370 -0
  56. package/dist/core/sdd/api-profile-recipes.d.ts +82 -0
  57. package/dist/core/sdd/api-profile-recipes.js +484 -0
  58. package/dist/core/sdd/artifact-id-allocator.d.ts +368 -0
  59. package/dist/core/sdd/artifact-id-allocator.js +510 -0
  60. package/dist/core/sdd/check.d.ts +52 -1
  61. package/dist/core/sdd/check.js +326 -11
  62. package/dist/core/sdd/coordination/coordination-adapters.d.ts +15 -8
  63. package/dist/core/sdd/coordination/coordination-adapters.js +43 -15
  64. package/dist/core/sdd/coordination/index.d.ts +1 -0
  65. package/dist/core/sdd/coordination/index.js +1 -0
  66. package/dist/core/sdd/coordination/redis-runtime.d.ts +131 -0
  67. package/dist/core/sdd/coordination/redis-runtime.js +698 -0
  68. package/dist/core/sdd/deepagent-contracts.d.ts +99 -5
  69. package/dist/core/sdd/deepagent-contracts.js +62 -0
  70. package/dist/core/sdd/deepagents/reversa-subagents.d.ts +3 -3
  71. package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
  72. package/dist/core/sdd/default-bootstrap-files.js +14 -10
  73. package/dist/core/sdd/default-skills.js +115 -9
  74. package/dist/core/sdd/devtrack-api-appliance.d.ts +42 -1
  75. package/dist/core/sdd/devtrack-api-appliance.js +159 -32
  76. package/dist/core/sdd/devtrack-api-architecture.d.ts +16 -0
  77. package/dist/core/sdd/devtrack-api-architecture.js +86 -0
  78. package/dist/core/sdd/docs-sync.js +24 -18
  79. package/dist/core/sdd/domain/capability-diff.d.ts +63 -0
  80. package/dist/core/sdd/domain/capability-diff.js +200 -0
  81. package/dist/core/sdd/domain/change-safety-guardrails.d.ts +74 -0
  82. package/dist/core/sdd/domain/change-safety-guardrails.js +333 -0
  83. package/dist/core/sdd/domain/semantic-intent-classifier.d.ts +29 -0
  84. package/dist/core/sdd/domain/semantic-intent-classifier.js +117 -0
  85. package/dist/core/sdd/enterprise-mutating-command-gate.d.ts +27 -0
  86. package/dist/core/sdd/enterprise-mutating-command-gate.js +104 -0
  87. package/dist/core/sdd/enterprise-provenance-gates.d.ts +20 -0
  88. package/dist/core/sdd/enterprise-provenance-gates.js +63 -0
  89. package/dist/core/sdd/enterprise-provisioning-policy.d.ts +26 -0
  90. package/dist/core/sdd/enterprise-provisioning-policy.js +104 -0
  91. package/dist/core/sdd/foundation-artifact-map-validator.d.ts +16 -0
  92. package/dist/core/sdd/foundation-artifact-map-validator.js +71 -0
  93. package/dist/core/sdd/foundation-layer-manifest.d.ts +24 -0
  94. package/dist/core/sdd/foundation-layer-manifest.js +117 -0
  95. package/dist/core/sdd/governance-schemas.d.ts +2 -2
  96. package/dist/core/sdd/governance-schemas.js +11 -2
  97. package/dist/core/sdd/intent-guard.d.ts +22 -0
  98. package/dist/core/sdd/intent-guard.js +67 -0
  99. package/dist/core/sdd/json-schema.js +13 -1
  100. package/dist/core/sdd/legacy-operations.js +169 -5
  101. package/dist/core/sdd/migrate-workspace.js +39 -0
  102. package/dist/core/sdd/package-security-gates.d.ts +21 -0
  103. package/dist/core/sdd/package-security-gates.js +121 -0
  104. package/dist/core/sdd/package-structure-gate.d.ts +85 -3
  105. package/dist/core/sdd/package-structure-gate.js +384 -11
  106. package/dist/core/sdd/parallel-feat-automation.d.ts +185 -7
  107. package/dist/core/sdd/parallel-feat-automation.js +212 -0
  108. package/dist/core/sdd/plugin-broker.d.ts +223 -4
  109. package/dist/core/sdd/plugin-broker.js +10 -0
  110. package/dist/core/sdd/plugin-cli.d.ts +30 -0
  111. package/dist/core/sdd/plugin-cli.js +70 -3
  112. package/dist/core/sdd/plugin-evidence.d.ts +73 -0
  113. package/dist/core/sdd/plugin-manifest.d.ts +69 -1
  114. package/dist/core/sdd/plugin-manifest.js +10 -0
  115. package/dist/core/sdd/plugin-policy-pack.d.ts +1 -1
  116. package/dist/core/sdd/plugin-policy.js +6 -1
  117. package/dist/core/sdd/plugin-registry.d.ts +138 -2
  118. package/dist/core/sdd/plugin-sdk-contract.d.ts +363 -0
  119. package/dist/core/sdd/plugin-sdk-contract.js +268 -0
  120. package/dist/core/sdd/plugin-skill-binding.d.ts +1 -1
  121. package/dist/core/sdd/quality-validation.d.ts +89 -16
  122. package/dist/core/sdd/release-readiness.d.ts +68 -0
  123. package/dist/core/sdd/release-readiness.js +767 -0
  124. package/dist/core/sdd/reversa-architecture-extractor.d.ts +13 -0
  125. package/dist/core/sdd/reversa-architecture-extractor.js +89 -0
  126. package/dist/core/sdd/reversa-artifact-writer.d.ts +18 -0
  127. package/dist/core/sdd/reversa-artifact-writer.js +40 -0
  128. package/dist/core/sdd/reversa-command-policy.d.ts +136 -0
  129. package/dist/core/sdd/reversa-command-policy.js +361 -0
  130. package/dist/core/sdd/reversa-data-extractor.d.ts +11 -0
  131. package/dist/core/sdd/reversa-data-extractor.js +73 -0
  132. package/dist/core/sdd/reversa-equivalence.d.ts +20 -0
  133. package/dist/core/sdd/reversa-equivalence.js +34 -0
  134. package/dist/core/sdd/reversa-evidence.d.ts +298 -0
  135. package/dist/core/sdd/reversa-evidence.js +118 -0
  136. package/dist/core/sdd/reversa-reconstruction.d.ts +29 -0
  137. package/dist/core/sdd/reversa-reconstruction.js +32 -0
  138. package/dist/core/sdd/reversa-rules-extractor.d.ts +12 -0
  139. package/dist/core/sdd/reversa-rules-extractor.js +86 -0
  140. package/dist/core/sdd/reversa-source-safety.d.ts +19 -0
  141. package/dist/core/sdd/reversa-source-safety.js +105 -0
  142. package/dist/core/sdd/reversa-surface-scout.d.ts +13 -0
  143. package/dist/core/sdd/reversa-surface-scout.js +85 -0
  144. package/dist/core/sdd/reversa-ux-mapper.d.ts +11 -0
  145. package/dist/core/sdd/reversa-ux-mapper.js +73 -0
  146. package/dist/core/sdd/runtime-boundary-contract.d.ts +45 -0
  147. package/dist/core/sdd/runtime-boundary-contract.js +90 -0
  148. package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +150 -0
  149. package/dist/core/sdd/sdk-agent-plugin-quality-gates.js +258 -0
  150. package/dist/core/sdd/services/agent-run.service.d.ts +38 -6
  151. package/dist/core/sdd/services/agent-run.service.js +73 -1
  152. package/dist/core/sdd/services/archive-quality-coherence.service.d.ts +17 -0
  153. package/dist/core/sdd/services/archive-quality-coherence.service.js +141 -0
  154. package/dist/core/sdd/services/capability-diff.service.d.ts +18 -0
  155. package/dist/core/sdd/services/capability-diff.service.js +26 -0
  156. package/dist/core/sdd/services/change-safety-preflight.service.d.ts +17 -0
  157. package/dist/core/sdd/services/change-safety-preflight.service.js +17 -0
  158. package/dist/core/sdd/services/context.service.d.ts +43 -340
  159. package/dist/core/sdd/services/context.service.js +323 -9
  160. package/dist/core/sdd/services/decide.service.js +1 -1
  161. package/dist/core/sdd/services/finalize.service.d.ts +27 -0
  162. package/dist/core/sdd/services/finalize.service.js +226 -18
  163. package/dist/core/sdd/services/frontend-impact.service.d.ts +1 -1
  164. package/dist/core/sdd/services/historical-quality-regression.service.d.ts +35 -0
  165. package/dist/core/sdd/services/historical-quality-regression.service.js +228 -0
  166. package/dist/core/sdd/services/ingest-deposito.service.js +1 -1
  167. package/dist/core/sdd/services/planning-execution-coherence.service.d.ts +45 -0
  168. package/dist/core/sdd/services/planning-execution-coherence.service.js +225 -0
  169. package/dist/core/sdd/services/semantic-intent-classifier.service.d.ts +6 -0
  170. package/dist/core/sdd/services/semantic-intent-classifier.service.js +7 -0
  171. package/dist/core/sdd/state.d.ts +1 -0
  172. package/dist/core/sdd/state.js +266 -34
  173. package/dist/core/sdd/store/sdd-stores.js +2 -2
  174. package/dist/core/sdd/structural-health.d.ts +13 -13
  175. package/dist/core/sdd/types.d.ts +30 -15
  176. package/dist/core/sdd/types.js +4 -0
  177. package/dist/core/sdd/views.js +17 -0
  178. package/dist/core/sdd/workspace-schemas.d.ts +428 -7
  179. package/dist/core/sdd/workspace-schemas.js +223 -70
  180. package/dist/core/shared/skill-generation.d.ts +2 -0
  181. package/dist/core/shared/skill-generation.js +19 -2
  182. package/dist/core/shared/tool-detection.d.ts +19 -0
  183. package/dist/core/shared/tool-detection.js +89 -0
  184. package/dist/domains/sdd/index.d.ts +6 -0
  185. package/dist/domains/sdd/index.js +6 -0
  186. package/dist/infrastructures/sdd/index.d.ts +7 -0
  187. package/dist/infrastructures/sdd/index.js +6 -0
  188. package/dist/presentations/cli/sdd/index.d.ts +3 -0
  189. package/dist/presentations/cli/sdd/index.js +3 -0
  190. package/dist/shared/sdd/index.d.ts +3 -0
  191. package/dist/shared/sdd/index.js +2 -0
  192. package/package.json +14 -10
  193. package/schemas/sdd/2-plan.schema.json +207 -2
  194. package/schemas/sdd/5-quality.schema.json +324 -25
  195. package/schemas/sdd/agent-runtime-command-plan.schema.json +212 -0
  196. package/schemas/sdd/agent-runtime-opencode-run-evidence.schema.json +270 -0
  197. package/schemas/sdd/codesdd-plugin.schema.json +171 -0
  198. package/schemas/sdd/deepagent-run-request.schema.json +316 -0
  199. package/schemas/sdd/parallel-feat-automation-plan.schema.json +89 -0
  200. package/schemas/sdd/parallel-feat-scheduler-request.schema.json +116 -0
  201. package/schemas/sdd/parallel-feat-scheduler-result.schema.json +404 -0
  202. package/schemas/sdd/plugin-artifact-manifest.schema.json +109 -0
  203. package/schemas/sdd/plugin-artifact-map.schema.json +223 -0
  204. package/schemas/sdd/plugin-evidence-manifest.schema.json +109 -0
  205. package/schemas/sdd/plugin-language-runtime.schema.json +103 -0
  206. package/schemas/sdd/plugin-package-governance.schema.json +74 -0
  207. package/schemas/sdd/plugin-registry.schema.json +171 -0
  208. package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +109 -0
  209. package/schemas/sdd/quality-evidence-bundle.schema.json +109 -0
  210. package/schemas/sdd/reversa-evidence-bundle.schema.json +466 -0
  211. package/schemas/sdd/sdk-agent-plugin-quality-gate-input.schema.json +168 -0
  212. package/schemas/sdd/sdk-agent-plugin-quality-gate-report.schema.json +160 -0
  213. package/schemas/sdd/workspace-catalog.schema.json +5298 -1409
@@ -0,0 +1,223 @@
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
+ "sdk_package": {
10
+ "default": "@devtrack-solution/codesdd-plugin-sdk",
11
+ "type": "string",
12
+ "const": "@devtrack-solution/codesdd-plugin-sdk"
13
+ },
14
+ "feature_ref": {
15
+ "type": "string",
16
+ "pattern": "^FEAT-\\d{4}$"
17
+ },
18
+ "operation_id": {
19
+ "type": "string",
20
+ "pattern": "^[a-z0-9][a-z0-9-]*$"
21
+ },
22
+ "plugin_ref": {
23
+ "type": "object",
24
+ "properties": {
25
+ "id": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "version": {
30
+ "type": "string",
31
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$"
32
+ }
33
+ },
34
+ "required": [
35
+ "id",
36
+ "version"
37
+ ],
38
+ "additionalProperties": false
39
+ },
40
+ "generated_at": {
41
+ "type": "string",
42
+ "format": "date-time",
43
+ "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))$"
44
+ },
45
+ "artifacts": {
46
+ "default": [],
47
+ "type": "array",
48
+ "items": {
49
+ "type": "object",
50
+ "properties": {
51
+ "path": {
52
+ "type": "string",
53
+ "pattern": "^(?!\\/)(?![A-Za-z]:[\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$)).+$"
54
+ },
55
+ "operation": {
56
+ "type": "string",
57
+ "enum": [
58
+ "planned",
59
+ "created",
60
+ "modified",
61
+ "deleted",
62
+ "unchanged",
63
+ "validated"
64
+ ]
65
+ },
66
+ "artifact_kind": {
67
+ "type": "string",
68
+ "enum": [
69
+ "source",
70
+ "test",
71
+ "documentation",
72
+ "configuration",
73
+ "schema",
74
+ "evidence",
75
+ "migration",
76
+ "asset",
77
+ "package-metadata"
78
+ ]
79
+ },
80
+ "role": {
81
+ "type": "string",
82
+ "enum": [
83
+ "interface",
84
+ "type",
85
+ "implementation",
86
+ "abstraction",
87
+ "business-object",
88
+ "value-object",
89
+ "entity",
90
+ "repository-port",
91
+ "use-case",
92
+ "service",
93
+ "handler",
94
+ "adapter",
95
+ "mapper",
96
+ "module",
97
+ "controller",
98
+ "dto",
99
+ "validator",
100
+ "policy",
101
+ "manifest",
102
+ "fixture",
103
+ "test",
104
+ "documentation",
105
+ "evidence"
106
+ ]
107
+ },
108
+ "layer": {
109
+ "type": "string",
110
+ "enum": [
111
+ "root",
112
+ "domain",
113
+ "application",
114
+ "infrastructure",
115
+ "presentation",
116
+ "shared",
117
+ "tests",
118
+ "docs",
119
+ "sdd",
120
+ "config",
121
+ "assets"
122
+ ]
123
+ },
124
+ "content_type": {
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "reason": {
129
+ "type": "string",
130
+ "minLength": 1
131
+ },
132
+ "language": {
133
+ "type": "string",
134
+ "enum": [
135
+ "typescript",
136
+ "javascript",
137
+ "python",
138
+ "java",
139
+ "go",
140
+ "rust",
141
+ "csharp",
142
+ "php",
143
+ "ruby",
144
+ "shell",
145
+ "other"
146
+ ]
147
+ },
148
+ "context": {
149
+ "type": "string",
150
+ "minLength": 1
151
+ },
152
+ "implementation": {
153
+ "default": "manual",
154
+ "type": "string",
155
+ "enum": [
156
+ "concrete",
157
+ "abstract",
158
+ "contract",
159
+ "generated",
160
+ "manual"
161
+ ]
162
+ },
163
+ "decision_refs": {
164
+ "default": [],
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string",
168
+ "pattern": "^(?:ADR|DEB|EPIC|FEAT|INS)-\\d{4}$"
169
+ }
170
+ },
171
+ "source_refs": {
172
+ "default": [],
173
+ "type": "array",
174
+ "items": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ }
178
+ },
179
+ "tags": {
180
+ "default": [],
181
+ "type": "array",
182
+ "items": {
183
+ "type": "string",
184
+ "minLength": 1
185
+ }
186
+ },
187
+ "metadata": {
188
+ "default": {},
189
+ "type": "object",
190
+ "propertyNames": {
191
+ "type": "string"
192
+ },
193
+ "additionalProperties": {}
194
+ }
195
+ },
196
+ "required": [
197
+ "path",
198
+ "operation",
199
+ "artifact_kind",
200
+ "role",
201
+ "layer",
202
+ "content_type",
203
+ "reason",
204
+ "implementation",
205
+ "decision_refs",
206
+ "source_refs",
207
+ "tags",
208
+ "metadata"
209
+ ],
210
+ "additionalProperties": false
211
+ }
212
+ }
213
+ },
214
+ "required": [
215
+ "schema_version",
216
+ "sdk_package",
217
+ "generated_at",
218
+ "artifacts"
219
+ ],
220
+ "additionalProperties": false,
221
+ "title": "CodeSDD Plugin SDK Artifact Map",
222
+ "description": "Typed file map for plugin-planned artifacts with layer, role, kind, operation, decision refs, and source refs."
223
+ }
@@ -133,6 +133,115 @@
133
133
  },
134
134
  "content_type": {
135
135
  "type": "string"
136
+ },
137
+ "artifact_kind": {
138
+ "type": "string",
139
+ "enum": [
140
+ "source",
141
+ "test",
142
+ "documentation",
143
+ "configuration",
144
+ "schema",
145
+ "evidence",
146
+ "migration",
147
+ "asset",
148
+ "package-metadata"
149
+ ]
150
+ },
151
+ "role": {
152
+ "type": "string",
153
+ "enum": [
154
+ "interface",
155
+ "type",
156
+ "implementation",
157
+ "abstraction",
158
+ "business-object",
159
+ "value-object",
160
+ "entity",
161
+ "repository-port",
162
+ "use-case",
163
+ "service",
164
+ "handler",
165
+ "adapter",
166
+ "mapper",
167
+ "module",
168
+ "controller",
169
+ "dto",
170
+ "validator",
171
+ "policy",
172
+ "manifest",
173
+ "fixture",
174
+ "test",
175
+ "documentation",
176
+ "evidence"
177
+ ]
178
+ },
179
+ "layer": {
180
+ "type": "string",
181
+ "enum": [
182
+ "root",
183
+ "domain",
184
+ "application",
185
+ "infrastructure",
186
+ "presentation",
187
+ "shared",
188
+ "tests",
189
+ "docs",
190
+ "sdd",
191
+ "config",
192
+ "assets"
193
+ ]
194
+ },
195
+ "language": {
196
+ "type": "string",
197
+ "enum": [
198
+ "typescript",
199
+ "javascript",
200
+ "python",
201
+ "java",
202
+ "go",
203
+ "rust",
204
+ "csharp",
205
+ "php",
206
+ "ruby",
207
+ "shell",
208
+ "other"
209
+ ]
210
+ },
211
+ "context": {
212
+ "type": "string",
213
+ "minLength": 1
214
+ },
215
+ "implementation": {
216
+ "type": "string",
217
+ "enum": [
218
+ "concrete",
219
+ "abstract",
220
+ "contract",
221
+ "generated",
222
+ "manual"
223
+ ]
224
+ },
225
+ "decision_refs": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string",
229
+ "pattern": "^(?:ADR|DEB|EPIC|FEAT|INS)-\\d{4}$"
230
+ }
231
+ },
232
+ "source_refs": {
233
+ "type": "array",
234
+ "items": {
235
+ "type": "string",
236
+ "minLength": 1
237
+ }
238
+ },
239
+ "tags": {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "string",
243
+ "minLength": 1
244
+ }
136
245
  }
137
246
  },
138
247
  "required": [
@@ -0,0 +1,103 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "language": {
6
+ "type": "string",
7
+ "enum": [
8
+ "typescript",
9
+ "javascript",
10
+ "python",
11
+ "java",
12
+ "go",
13
+ "rust",
14
+ "csharp",
15
+ "php",
16
+ "ruby",
17
+ "shell",
18
+ "other"
19
+ ]
20
+ },
21
+ "runtime": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "bridge": {
26
+ "type": "string",
27
+ "enum": [
28
+ "node-library",
29
+ "stdio-json",
30
+ "process-cli",
31
+ "http-local",
32
+ "container",
33
+ "wasm"
34
+ ]
35
+ },
36
+ "input_transport": {
37
+ "type": "string",
38
+ "enum": [
39
+ "sdk-call",
40
+ "stdin-json",
41
+ "stdout-json",
42
+ "file-envelope",
43
+ "http-json"
44
+ ]
45
+ },
46
+ "output_transport": {
47
+ "type": "string",
48
+ "enum": [
49
+ "sdk-call",
50
+ "stdin-json",
51
+ "stdout-json",
52
+ "file-envelope",
53
+ "http-json"
54
+ ]
55
+ },
56
+ "command": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "args": {
61
+ "default": [],
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "package_manager": {
68
+ "type": "string",
69
+ "minLength": 1
70
+ },
71
+ "min_versions": {
72
+ "default": {},
73
+ "type": "object",
74
+ "propertyNames": {
75
+ "type": "string"
76
+ },
77
+ "additionalProperties": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "env_allowlist": {
82
+ "default": [],
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string",
86
+ "pattern": "^[A-Z_][A-Z0-9_]*$"
87
+ }
88
+ }
89
+ },
90
+ "required": [
91
+ "language",
92
+ "runtime",
93
+ "bridge",
94
+ "input_transport",
95
+ "output_transport",
96
+ "args",
97
+ "min_versions",
98
+ "env_allowlist"
99
+ ],
100
+ "additionalProperties": false,
101
+ "title": "CodeSDD Plugin SDK Language Runtime",
102
+ "description": "Language-agnostic runtime bridge contract for TypeScript, JavaScript, Python, Java, Go, Rust, C#, shell, and custom plugin implementations."
103
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "package_name": {
6
+ "type": "string",
7
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-[a-z0-9][a-z0-9-]*$"
8
+ },
9
+ "sdk_package": {
10
+ "default": "@devtrack-solution/codesdd-plugin-sdk",
11
+ "type": "string",
12
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-sdk$"
13
+ },
14
+ "sdk_version": {
15
+ "default": "*",
16
+ "type": "string",
17
+ "pattern": "^(?:[~^]?\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?|[<>]=?\\d+\\.\\d+\\.\\d+(?:\\s+<\\d+\\.\\d+\\.\\d+)?|\\*)$"
18
+ },
19
+ "package_kind": {
20
+ "type": "string",
21
+ "enum": [
22
+ "frontend",
23
+ "backend",
24
+ "full-stack",
25
+ "generator",
26
+ "validator",
27
+ "evidence",
28
+ "agent-adapter",
29
+ "policy-pack"
30
+ ]
31
+ },
32
+ "versioning": {
33
+ "default": "semver",
34
+ "type": "string",
35
+ "const": "semver"
36
+ },
37
+ "registry": {
38
+ "default": "workspace",
39
+ "type": "string",
40
+ "enum": [
41
+ "workspace",
42
+ "npm",
43
+ "private-npm",
44
+ "artifact-registry",
45
+ "custom"
46
+ ]
47
+ },
48
+ "keywords": {
49
+ "default": [],
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ }
55
+ },
56
+ "internal_package": {
57
+ "default": false,
58
+ "type": "boolean"
59
+ }
60
+ },
61
+ "required": [
62
+ "package_name",
63
+ "sdk_package",
64
+ "sdk_version",
65
+ "package_kind",
66
+ "versioning",
67
+ "registry",
68
+ "keywords",
69
+ "internal_package"
70
+ ],
71
+ "additionalProperties": false,
72
+ "title": "CodeSDD Plugin SDK Package Governance",
73
+ "description": "Package naming, versioning, registry, and keyword contract for @devtrack-solution/codesdd-plugin-sdk plugin packages."
74
+ }
@@ -96,6 +96,177 @@
96
96
  ],
97
97
  "additionalProperties": false
98
98
  },
99
+ "package_governance": {
100
+ "type": "object",
101
+ "properties": {
102
+ "package_name": {
103
+ "type": "string",
104
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-[a-z0-9][a-z0-9-]*$"
105
+ },
106
+ "sdk_package": {
107
+ "default": "@devtrack-solution/codesdd-plugin-sdk",
108
+ "type": "string",
109
+ "pattern": "^@devtrack-solution\\/codesdd-plugin-sdk$"
110
+ },
111
+ "sdk_version": {
112
+ "default": "*",
113
+ "type": "string",
114
+ "pattern": "^(?:[~^]?\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?|[<>]=?\\d+\\.\\d+\\.\\d+(?:\\s+<\\d+\\.\\d+\\.\\d+)?|\\*)$"
115
+ },
116
+ "package_kind": {
117
+ "type": "string",
118
+ "enum": [
119
+ "frontend",
120
+ "backend",
121
+ "full-stack",
122
+ "generator",
123
+ "validator",
124
+ "evidence",
125
+ "agent-adapter",
126
+ "policy-pack"
127
+ ]
128
+ },
129
+ "versioning": {
130
+ "default": "semver",
131
+ "type": "string",
132
+ "const": "semver"
133
+ },
134
+ "registry": {
135
+ "default": "workspace",
136
+ "type": "string",
137
+ "enum": [
138
+ "workspace",
139
+ "npm",
140
+ "private-npm",
141
+ "artifact-registry",
142
+ "custom"
143
+ ]
144
+ },
145
+ "keywords": {
146
+ "default": [],
147
+ "type": "array",
148
+ "items": {
149
+ "type": "string",
150
+ "minLength": 1
151
+ }
152
+ },
153
+ "internal_package": {
154
+ "default": false,
155
+ "type": "boolean"
156
+ }
157
+ },
158
+ "required": [
159
+ "package_name",
160
+ "sdk_package",
161
+ "sdk_version",
162
+ "package_kind",
163
+ "versioning",
164
+ "registry",
165
+ "keywords",
166
+ "internal_package"
167
+ ],
168
+ "additionalProperties": false
169
+ },
170
+ "language_runtime": {
171
+ "type": "object",
172
+ "properties": {
173
+ "language": {
174
+ "type": "string",
175
+ "enum": [
176
+ "typescript",
177
+ "javascript",
178
+ "python",
179
+ "java",
180
+ "go",
181
+ "rust",
182
+ "csharp",
183
+ "php",
184
+ "ruby",
185
+ "shell",
186
+ "other"
187
+ ]
188
+ },
189
+ "runtime": {
190
+ "type": "string",
191
+ "minLength": 1
192
+ },
193
+ "bridge": {
194
+ "type": "string",
195
+ "enum": [
196
+ "node-library",
197
+ "stdio-json",
198
+ "process-cli",
199
+ "http-local",
200
+ "container",
201
+ "wasm"
202
+ ]
203
+ },
204
+ "input_transport": {
205
+ "type": "string",
206
+ "enum": [
207
+ "sdk-call",
208
+ "stdin-json",
209
+ "stdout-json",
210
+ "file-envelope",
211
+ "http-json"
212
+ ]
213
+ },
214
+ "output_transport": {
215
+ "type": "string",
216
+ "enum": [
217
+ "sdk-call",
218
+ "stdin-json",
219
+ "stdout-json",
220
+ "file-envelope",
221
+ "http-json"
222
+ ]
223
+ },
224
+ "command": {
225
+ "type": "string",
226
+ "minLength": 1
227
+ },
228
+ "args": {
229
+ "default": [],
230
+ "type": "array",
231
+ "items": {
232
+ "type": "string"
233
+ }
234
+ },
235
+ "package_manager": {
236
+ "type": "string",
237
+ "minLength": 1
238
+ },
239
+ "min_versions": {
240
+ "default": {},
241
+ "type": "object",
242
+ "propertyNames": {
243
+ "type": "string"
244
+ },
245
+ "additionalProperties": {
246
+ "type": "string"
247
+ }
248
+ },
249
+ "env_allowlist": {
250
+ "default": [],
251
+ "type": "array",
252
+ "items": {
253
+ "type": "string",
254
+ "pattern": "^[A-Z_][A-Z0-9_]*$"
255
+ }
256
+ }
257
+ },
258
+ "required": [
259
+ "language",
260
+ "runtime",
261
+ "bridge",
262
+ "input_transport",
263
+ "output_transport",
264
+ "args",
265
+ "min_versions",
266
+ "env_allowlist"
267
+ ],
268
+ "additionalProperties": false
269
+ },
99
270
  "capabilities": {
100
271
  "minItems": 1,
101
272
  "type": "array",