@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.
- package/.sdd/skills/curated/devtrack-api/SKILL.md +98 -12
- package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +5 -3
- package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +12 -0
- package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +61 -5
- package/.sdd/skills/curated/devtrack-api/references/consumer-sync-policy.md +15 -3
- package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +1951 -0
- package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +16 -14
- package/.sdd/skills/curated/devtrack-api/references/field-validation-protocol.md +40 -0
- package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +19 -2
- package/.sdd/skills/curated/devtrack-api/references/generated-artifact-invalidation.md +97 -0
- package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +30 -1
- package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +42 -0
- package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +22 -1
- package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +9 -7
- package/README.md +280 -29
- package/dist/applications/sdd/index.d.ts +16 -0
- package/dist/applications/sdd/index.js +16 -0
- package/dist/cli/program.js +180 -11
- package/dist/commands/config.js +197 -10
- package/dist/commands/sdd/execution.js +408 -16
- package/dist/commands/sdd/plugin.js +5 -0
- package/dist/commands/sdd/shared.d.ts +1 -0
- package/dist/commands/sdd/shared.js +10 -0
- package/dist/commands/sdd.js +157 -7
- package/dist/core/cli/command-matrix.d.ts +18 -0
- package/dist/core/cli/command-matrix.js +157 -0
- package/dist/core/cli-command-quality.js +11 -0
- package/dist/core/completions/command-registry.js +45 -0
- package/dist/core/config-schema.d.ts +31 -1
- package/dist/core/config-schema.js +79 -5
- package/dist/core/config.d.ts +1 -0
- package/dist/core/config.js +11 -0
- package/dist/core/global-config.d.ts +29 -0
- package/dist/core/init.d.ts +2 -2
- package/dist/core/init.js +13 -14
- package/dist/core/sdd/agent-binding.d.ts +19 -19
- package/dist/core/sdd/agent-runtime-contract.d.ts +204 -0
- package/dist/core/sdd/agent-runtime-contract.js +200 -0
- package/dist/core/sdd/allocator-recovery.d.ts +14 -0
- package/dist/core/sdd/allocator-recovery.js +30 -0
- package/dist/core/sdd/allocator-security.d.ts +18 -0
- package/dist/core/sdd/allocator-security.js +36 -0
- package/dist/core/sdd/api-foundation-baseline.d.ts +111 -0
- package/dist/core/sdd/api-foundation-baseline.js +151 -0
- package/dist/core/sdd/api-foundation-parity.d.ts +114 -0
- package/dist/core/sdd/api-foundation-parity.js +131 -0
- package/dist/core/sdd/api-profile-catalog.d.ts +36 -0
- package/dist/core/sdd/api-profile-catalog.js +132 -0
- package/dist/core/sdd/api-profile-dry-run-projection.d.ts +93 -0
- package/dist/core/sdd/api-profile-dry-run-projection.js +370 -0
- package/dist/core/sdd/api-profile-recipes.d.ts +82 -0
- package/dist/core/sdd/api-profile-recipes.js +484 -0
- package/dist/core/sdd/artifact-id-allocator.d.ts +368 -0
- package/dist/core/sdd/artifact-id-allocator.js +510 -0
- package/dist/core/sdd/check.d.ts +52 -1
- package/dist/core/sdd/check.js +326 -11
- package/dist/core/sdd/coordination/coordination-adapters.d.ts +15 -8
- package/dist/core/sdd/coordination/coordination-adapters.js +43 -15
- package/dist/core/sdd/coordination/index.d.ts +1 -0
- package/dist/core/sdd/coordination/index.js +1 -0
- package/dist/core/sdd/coordination/redis-runtime.d.ts +131 -0
- package/dist/core/sdd/coordination/redis-runtime.js +698 -0
- package/dist/core/sdd/deepagent-contracts.d.ts +99 -5
- package/dist/core/sdd/deepagent-contracts.js +62 -0
- package/dist/core/sdd/deepagents/reversa-subagents.d.ts +3 -3
- package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
- package/dist/core/sdd/default-bootstrap-files.js +14 -10
- package/dist/core/sdd/default-skills.js +115 -9
- package/dist/core/sdd/devtrack-api-appliance.d.ts +42 -1
- package/dist/core/sdd/devtrack-api-appliance.js +159 -32
- package/dist/core/sdd/devtrack-api-architecture.d.ts +16 -0
- package/dist/core/sdd/devtrack-api-architecture.js +86 -0
- package/dist/core/sdd/docs-sync.js +24 -18
- package/dist/core/sdd/domain/capability-diff.d.ts +63 -0
- package/dist/core/sdd/domain/capability-diff.js +200 -0
- package/dist/core/sdd/domain/change-safety-guardrails.d.ts +74 -0
- package/dist/core/sdd/domain/change-safety-guardrails.js +333 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.d.ts +29 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.js +117 -0
- package/dist/core/sdd/enterprise-mutating-command-gate.d.ts +27 -0
- package/dist/core/sdd/enterprise-mutating-command-gate.js +104 -0
- package/dist/core/sdd/enterprise-provenance-gates.d.ts +20 -0
- package/dist/core/sdd/enterprise-provenance-gates.js +63 -0
- package/dist/core/sdd/enterprise-provisioning-policy.d.ts +26 -0
- package/dist/core/sdd/enterprise-provisioning-policy.js +104 -0
- package/dist/core/sdd/foundation-artifact-map-validator.d.ts +16 -0
- package/dist/core/sdd/foundation-artifact-map-validator.js +71 -0
- package/dist/core/sdd/foundation-layer-manifest.d.ts +24 -0
- package/dist/core/sdd/foundation-layer-manifest.js +117 -0
- package/dist/core/sdd/governance-schemas.d.ts +2 -2
- package/dist/core/sdd/governance-schemas.js +11 -2
- package/dist/core/sdd/intent-guard.d.ts +22 -0
- package/dist/core/sdd/intent-guard.js +67 -0
- package/dist/core/sdd/json-schema.js +13 -1
- package/dist/core/sdd/legacy-operations.js +169 -5
- package/dist/core/sdd/migrate-workspace.js +39 -0
- package/dist/core/sdd/package-security-gates.d.ts +21 -0
- package/dist/core/sdd/package-security-gates.js +121 -0
- package/dist/core/sdd/package-structure-gate.d.ts +85 -3
- package/dist/core/sdd/package-structure-gate.js +384 -11
- package/dist/core/sdd/parallel-feat-automation.d.ts +185 -7
- package/dist/core/sdd/parallel-feat-automation.js +212 -0
- package/dist/core/sdd/plugin-broker.d.ts +223 -4
- package/dist/core/sdd/plugin-broker.js +10 -0
- package/dist/core/sdd/plugin-cli.d.ts +30 -0
- package/dist/core/sdd/plugin-cli.js +70 -3
- package/dist/core/sdd/plugin-evidence.d.ts +73 -0
- package/dist/core/sdd/plugin-manifest.d.ts +69 -1
- package/dist/core/sdd/plugin-manifest.js +10 -0
- package/dist/core/sdd/plugin-policy-pack.d.ts +1 -1
- package/dist/core/sdd/plugin-policy.js +6 -1
- package/dist/core/sdd/plugin-registry.d.ts +138 -2
- package/dist/core/sdd/plugin-sdk-contract.d.ts +363 -0
- package/dist/core/sdd/plugin-sdk-contract.js +268 -0
- package/dist/core/sdd/plugin-skill-binding.d.ts +1 -1
- package/dist/core/sdd/quality-validation.d.ts +89 -16
- package/dist/core/sdd/release-readiness.d.ts +68 -0
- package/dist/core/sdd/release-readiness.js +767 -0
- package/dist/core/sdd/reversa-architecture-extractor.d.ts +13 -0
- package/dist/core/sdd/reversa-architecture-extractor.js +89 -0
- package/dist/core/sdd/reversa-artifact-writer.d.ts +18 -0
- package/dist/core/sdd/reversa-artifact-writer.js +40 -0
- package/dist/core/sdd/reversa-command-policy.d.ts +136 -0
- package/dist/core/sdd/reversa-command-policy.js +361 -0
- package/dist/core/sdd/reversa-data-extractor.d.ts +11 -0
- package/dist/core/sdd/reversa-data-extractor.js +73 -0
- package/dist/core/sdd/reversa-equivalence.d.ts +20 -0
- package/dist/core/sdd/reversa-equivalence.js +34 -0
- package/dist/core/sdd/reversa-evidence.d.ts +298 -0
- package/dist/core/sdd/reversa-evidence.js +118 -0
- package/dist/core/sdd/reversa-reconstruction.d.ts +29 -0
- package/dist/core/sdd/reversa-reconstruction.js +32 -0
- package/dist/core/sdd/reversa-rules-extractor.d.ts +12 -0
- package/dist/core/sdd/reversa-rules-extractor.js +86 -0
- package/dist/core/sdd/reversa-source-safety.d.ts +19 -0
- package/dist/core/sdd/reversa-source-safety.js +105 -0
- package/dist/core/sdd/reversa-surface-scout.d.ts +13 -0
- package/dist/core/sdd/reversa-surface-scout.js +85 -0
- package/dist/core/sdd/reversa-ux-mapper.d.ts +11 -0
- package/dist/core/sdd/reversa-ux-mapper.js +73 -0
- package/dist/core/sdd/runtime-boundary-contract.d.ts +45 -0
- package/dist/core/sdd/runtime-boundary-contract.js +90 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +150 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.js +258 -0
- package/dist/core/sdd/services/agent-run.service.d.ts +38 -6
- package/dist/core/sdd/services/agent-run.service.js +73 -1
- package/dist/core/sdd/services/archive-quality-coherence.service.d.ts +17 -0
- package/dist/core/sdd/services/archive-quality-coherence.service.js +141 -0
- package/dist/core/sdd/services/capability-diff.service.d.ts +18 -0
- package/dist/core/sdd/services/capability-diff.service.js +26 -0
- package/dist/core/sdd/services/change-safety-preflight.service.d.ts +17 -0
- package/dist/core/sdd/services/change-safety-preflight.service.js +17 -0
- package/dist/core/sdd/services/context.service.d.ts +43 -340
- package/dist/core/sdd/services/context.service.js +323 -9
- package/dist/core/sdd/services/decide.service.js +1 -1
- package/dist/core/sdd/services/finalize.service.d.ts +27 -0
- package/dist/core/sdd/services/finalize.service.js +226 -18
- package/dist/core/sdd/services/frontend-impact.service.d.ts +1 -1
- package/dist/core/sdd/services/historical-quality-regression.service.d.ts +35 -0
- package/dist/core/sdd/services/historical-quality-regression.service.js +228 -0
- package/dist/core/sdd/services/ingest-deposito.service.js +1 -1
- package/dist/core/sdd/services/planning-execution-coherence.service.d.ts +45 -0
- package/dist/core/sdd/services/planning-execution-coherence.service.js +225 -0
- package/dist/core/sdd/services/semantic-intent-classifier.service.d.ts +6 -0
- package/dist/core/sdd/services/semantic-intent-classifier.service.js +7 -0
- package/dist/core/sdd/state.d.ts +1 -0
- package/dist/core/sdd/state.js +266 -34
- package/dist/core/sdd/store/sdd-stores.js +2 -2
- package/dist/core/sdd/structural-health.d.ts +13 -13
- package/dist/core/sdd/types.d.ts +30 -15
- package/dist/core/sdd/types.js +4 -0
- package/dist/core/sdd/views.js +17 -0
- package/dist/core/sdd/workspace-schemas.d.ts +428 -7
- package/dist/core/sdd/workspace-schemas.js +223 -70
- package/dist/core/shared/skill-generation.d.ts +2 -0
- package/dist/core/shared/skill-generation.js +19 -2
- package/dist/core/shared/tool-detection.d.ts +19 -0
- package/dist/core/shared/tool-detection.js +89 -0
- package/dist/domains/sdd/index.d.ts +6 -0
- package/dist/domains/sdd/index.js +6 -0
- package/dist/infrastructures/sdd/index.d.ts +7 -0
- package/dist/infrastructures/sdd/index.js +6 -0
- package/dist/presentations/cli/sdd/index.d.ts +3 -0
- package/dist/presentations/cli/sdd/index.js +3 -0
- package/dist/shared/sdd/index.d.ts +3 -0
- package/dist/shared/sdd/index.js +2 -0
- package/package.json +14 -10
- package/schemas/sdd/2-plan.schema.json +207 -2
- package/schemas/sdd/5-quality.schema.json +324 -25
- package/schemas/sdd/agent-runtime-command-plan.schema.json +212 -0
- package/schemas/sdd/agent-runtime-opencode-run-evidence.schema.json +270 -0
- package/schemas/sdd/codesdd-plugin.schema.json +171 -0
- package/schemas/sdd/deepagent-run-request.schema.json +316 -0
- package/schemas/sdd/parallel-feat-automation-plan.schema.json +89 -0
- package/schemas/sdd/parallel-feat-scheduler-request.schema.json +116 -0
- package/schemas/sdd/parallel-feat-scheduler-result.schema.json +404 -0
- package/schemas/sdd/plugin-artifact-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-artifact-map.schema.json +223 -0
- package/schemas/sdd/plugin-evidence-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-language-runtime.schema.json +103 -0
- package/schemas/sdd/plugin-package-governance.schema.json +74 -0
- package/schemas/sdd/plugin-registry.schema.json +171 -0
- package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +109 -0
- package/schemas/sdd/quality-evidence-bundle.schema.json +109 -0
- package/schemas/sdd/reversa-evidence-bundle.schema.json +466 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-input.schema.json +168 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-report.schema.json +160 -0
- package/schemas/sdd/workspace-catalog.schema.json +5298 -1409
|
@@ -191,7 +191,12 @@ function isProtectedStatePath(value) {
|
|
|
191
191
|
}
|
|
192
192
|
function isSecretPath(value) {
|
|
193
193
|
const lowerValue = value.toLowerCase();
|
|
194
|
-
return lowerValue.split(/[\\/]+/).some((segment) =>
|
|
194
|
+
return lowerValue.split(/[\\/]+/).some((segment) => {
|
|
195
|
+
if (segment === '.env.example') {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
return SECRET_PATH_SEGMENTS.some((token) => segment.includes(token));
|
|
199
|
+
});
|
|
195
200
|
}
|
|
196
201
|
function deny(code, message, issuePath) {
|
|
197
202
|
return {
|
|
@@ -27,6 +27,74 @@ export declare const pluginRegistryEntrySchema: z.ZodObject<{
|
|
|
27
27
|
package_manager: z.ZodOptional<z.ZodString>;
|
|
28
28
|
min_versions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
+
package_governance: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
package_name: z.ZodString;
|
|
32
|
+
sdk_package: z.ZodDefault<z.ZodString>;
|
|
33
|
+
sdk_version: z.ZodDefault<z.ZodString>;
|
|
34
|
+
package_kind: z.ZodEnum<{
|
|
35
|
+
frontend: "frontend";
|
|
36
|
+
backend: "backend";
|
|
37
|
+
"full-stack": "full-stack";
|
|
38
|
+
generator: "generator";
|
|
39
|
+
validator: "validator";
|
|
40
|
+
evidence: "evidence";
|
|
41
|
+
"agent-adapter": "agent-adapter";
|
|
42
|
+
"policy-pack": "policy-pack";
|
|
43
|
+
}>;
|
|
44
|
+
versioning: z.ZodDefault<z.ZodLiteral<"semver">>;
|
|
45
|
+
registry: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
custom: "custom";
|
|
47
|
+
workspace: "workspace";
|
|
48
|
+
npm: "npm";
|
|
49
|
+
"private-npm": "private-npm";
|
|
50
|
+
"artifact-registry": "artifact-registry";
|
|
51
|
+
}>>;
|
|
52
|
+
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
|
+
internal_package: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
language_runtime: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
language: z.ZodEnum<{
|
|
57
|
+
shell: "shell";
|
|
58
|
+
other: "other";
|
|
59
|
+
typescript: "typescript";
|
|
60
|
+
javascript: "javascript";
|
|
61
|
+
python: "python";
|
|
62
|
+
java: "java";
|
|
63
|
+
go: "go";
|
|
64
|
+
rust: "rust";
|
|
65
|
+
csharp: "csharp";
|
|
66
|
+
php: "php";
|
|
67
|
+
ruby: "ruby";
|
|
68
|
+
}>;
|
|
69
|
+
runtime: z.ZodString;
|
|
70
|
+
bridge: z.ZodEnum<{
|
|
71
|
+
"node-library": "node-library";
|
|
72
|
+
"stdio-json": "stdio-json";
|
|
73
|
+
"process-cli": "process-cli";
|
|
74
|
+
"http-local": "http-local";
|
|
75
|
+
container: "container";
|
|
76
|
+
wasm: "wasm";
|
|
77
|
+
}>;
|
|
78
|
+
input_transport: z.ZodEnum<{
|
|
79
|
+
"sdk-call": "sdk-call";
|
|
80
|
+
"stdin-json": "stdin-json";
|
|
81
|
+
"stdout-json": "stdout-json";
|
|
82
|
+
"file-envelope": "file-envelope";
|
|
83
|
+
"http-json": "http-json";
|
|
84
|
+
}>;
|
|
85
|
+
output_transport: z.ZodEnum<{
|
|
86
|
+
"sdk-call": "sdk-call";
|
|
87
|
+
"stdin-json": "stdin-json";
|
|
88
|
+
"stdout-json": "stdout-json";
|
|
89
|
+
"file-envelope": "file-envelope";
|
|
90
|
+
"http-json": "http-json";
|
|
91
|
+
}>;
|
|
92
|
+
command: z.ZodOptional<z.ZodString>;
|
|
93
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
94
|
+
package_manager: z.ZodOptional<z.ZodString>;
|
|
95
|
+
min_versions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
96
|
+
env_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
30
98
|
capabilities: z.ZodArray<z.ZodObject<{
|
|
31
99
|
name: z.ZodString;
|
|
32
100
|
description: z.ZodString;
|
|
@@ -58,8 +126,8 @@ export declare const pluginRegistryEntrySchema: z.ZodObject<{
|
|
|
58
126
|
env_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
59
127
|
network: z.ZodDefault<z.ZodEnum<{
|
|
60
128
|
disabled: "disabled";
|
|
61
|
-
restricted: "restricted";
|
|
62
129
|
enabled: "enabled";
|
|
130
|
+
restricted: "restricted";
|
|
63
131
|
}>>;
|
|
64
132
|
process_spawn: z.ZodDefault<z.ZodEnum<{
|
|
65
133
|
forbidden: "forbidden";
|
|
@@ -160,6 +228,74 @@ export declare const pluginRegistryStateSchema: z.ZodObject<{
|
|
|
160
228
|
package_manager: z.ZodOptional<z.ZodString>;
|
|
161
229
|
min_versions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
162
230
|
}, z.core.$strip>;
|
|
231
|
+
package_governance: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
package_name: z.ZodString;
|
|
233
|
+
sdk_package: z.ZodDefault<z.ZodString>;
|
|
234
|
+
sdk_version: z.ZodDefault<z.ZodString>;
|
|
235
|
+
package_kind: z.ZodEnum<{
|
|
236
|
+
frontend: "frontend";
|
|
237
|
+
backend: "backend";
|
|
238
|
+
"full-stack": "full-stack";
|
|
239
|
+
generator: "generator";
|
|
240
|
+
validator: "validator";
|
|
241
|
+
evidence: "evidence";
|
|
242
|
+
"agent-adapter": "agent-adapter";
|
|
243
|
+
"policy-pack": "policy-pack";
|
|
244
|
+
}>;
|
|
245
|
+
versioning: z.ZodDefault<z.ZodLiteral<"semver">>;
|
|
246
|
+
registry: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
custom: "custom";
|
|
248
|
+
workspace: "workspace";
|
|
249
|
+
npm: "npm";
|
|
250
|
+
"private-npm": "private-npm";
|
|
251
|
+
"artifact-registry": "artifact-registry";
|
|
252
|
+
}>>;
|
|
253
|
+
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
254
|
+
internal_package: z.ZodDefault<z.ZodBoolean>;
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
language_runtime: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
language: z.ZodEnum<{
|
|
258
|
+
shell: "shell";
|
|
259
|
+
other: "other";
|
|
260
|
+
typescript: "typescript";
|
|
261
|
+
javascript: "javascript";
|
|
262
|
+
python: "python";
|
|
263
|
+
java: "java";
|
|
264
|
+
go: "go";
|
|
265
|
+
rust: "rust";
|
|
266
|
+
csharp: "csharp";
|
|
267
|
+
php: "php";
|
|
268
|
+
ruby: "ruby";
|
|
269
|
+
}>;
|
|
270
|
+
runtime: z.ZodString;
|
|
271
|
+
bridge: z.ZodEnum<{
|
|
272
|
+
"node-library": "node-library";
|
|
273
|
+
"stdio-json": "stdio-json";
|
|
274
|
+
"process-cli": "process-cli";
|
|
275
|
+
"http-local": "http-local";
|
|
276
|
+
container: "container";
|
|
277
|
+
wasm: "wasm";
|
|
278
|
+
}>;
|
|
279
|
+
input_transport: z.ZodEnum<{
|
|
280
|
+
"sdk-call": "sdk-call";
|
|
281
|
+
"stdin-json": "stdin-json";
|
|
282
|
+
"stdout-json": "stdout-json";
|
|
283
|
+
"file-envelope": "file-envelope";
|
|
284
|
+
"http-json": "http-json";
|
|
285
|
+
}>;
|
|
286
|
+
output_transport: z.ZodEnum<{
|
|
287
|
+
"sdk-call": "sdk-call";
|
|
288
|
+
"stdin-json": "stdin-json";
|
|
289
|
+
"stdout-json": "stdout-json";
|
|
290
|
+
"file-envelope": "file-envelope";
|
|
291
|
+
"http-json": "http-json";
|
|
292
|
+
}>;
|
|
293
|
+
command: z.ZodOptional<z.ZodString>;
|
|
294
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
295
|
+
package_manager: z.ZodOptional<z.ZodString>;
|
|
296
|
+
min_versions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
297
|
+
env_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
163
299
|
capabilities: z.ZodArray<z.ZodObject<{
|
|
164
300
|
name: z.ZodString;
|
|
165
301
|
description: z.ZodString;
|
|
@@ -191,8 +327,8 @@ export declare const pluginRegistryStateSchema: z.ZodObject<{
|
|
|
191
327
|
env_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
192
328
|
network: z.ZodDefault<z.ZodEnum<{
|
|
193
329
|
disabled: "disabled";
|
|
194
|
-
restricted: "restricted";
|
|
195
330
|
enabled: "enabled";
|
|
331
|
+
restricted: "restricted";
|
|
196
332
|
}>>;
|
|
197
333
|
process_spawn: z.ZodDefault<z.ZodEnum<{
|
|
198
334
|
forbidden: "forbidden";
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CODESDD_PLUGIN_SDK_PACKAGE_NAME = "@devtrack-solution/codesdd-plugin-sdk";
|
|
3
|
+
export declare const CODESDD_PLUGIN_PACKAGE_PREFIX = "@devtrack-solution/codesdd-plugin-";
|
|
4
|
+
export declare const pluginRuntimeLanguageSchema: z.ZodEnum<{
|
|
5
|
+
shell: "shell";
|
|
6
|
+
other: "other";
|
|
7
|
+
typescript: "typescript";
|
|
8
|
+
javascript: "javascript";
|
|
9
|
+
python: "python";
|
|
10
|
+
java: "java";
|
|
11
|
+
go: "go";
|
|
12
|
+
rust: "rust";
|
|
13
|
+
csharp: "csharp";
|
|
14
|
+
php: "php";
|
|
15
|
+
ruby: "ruby";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const pluginRuntimeBridgeSchema: z.ZodEnum<{
|
|
18
|
+
"node-library": "node-library";
|
|
19
|
+
"stdio-json": "stdio-json";
|
|
20
|
+
"process-cli": "process-cli";
|
|
21
|
+
"http-local": "http-local";
|
|
22
|
+
container: "container";
|
|
23
|
+
wasm: "wasm";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const pluginRuntimeTransportSchema: z.ZodEnum<{
|
|
26
|
+
"sdk-call": "sdk-call";
|
|
27
|
+
"stdin-json": "stdin-json";
|
|
28
|
+
"stdout-json": "stdout-json";
|
|
29
|
+
"file-envelope": "file-envelope";
|
|
30
|
+
"http-json": "http-json";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const pluginPackageKindSchema: z.ZodEnum<{
|
|
33
|
+
frontend: "frontend";
|
|
34
|
+
backend: "backend";
|
|
35
|
+
"full-stack": "full-stack";
|
|
36
|
+
generator: "generator";
|
|
37
|
+
validator: "validator";
|
|
38
|
+
evidence: "evidence";
|
|
39
|
+
"agent-adapter": "agent-adapter";
|
|
40
|
+
"policy-pack": "policy-pack";
|
|
41
|
+
}>;
|
|
42
|
+
export declare const pluginPackageGovernanceSchema: z.ZodObject<{
|
|
43
|
+
package_name: z.ZodString;
|
|
44
|
+
sdk_package: z.ZodDefault<z.ZodString>;
|
|
45
|
+
sdk_version: z.ZodDefault<z.ZodString>;
|
|
46
|
+
package_kind: z.ZodEnum<{
|
|
47
|
+
frontend: "frontend";
|
|
48
|
+
backend: "backend";
|
|
49
|
+
"full-stack": "full-stack";
|
|
50
|
+
generator: "generator";
|
|
51
|
+
validator: "validator";
|
|
52
|
+
evidence: "evidence";
|
|
53
|
+
"agent-adapter": "agent-adapter";
|
|
54
|
+
"policy-pack": "policy-pack";
|
|
55
|
+
}>;
|
|
56
|
+
versioning: z.ZodDefault<z.ZodLiteral<"semver">>;
|
|
57
|
+
registry: z.ZodDefault<z.ZodEnum<{
|
|
58
|
+
custom: "custom";
|
|
59
|
+
workspace: "workspace";
|
|
60
|
+
npm: "npm";
|
|
61
|
+
"private-npm": "private-npm";
|
|
62
|
+
"artifact-registry": "artifact-registry";
|
|
63
|
+
}>>;
|
|
64
|
+
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
65
|
+
internal_package: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const pluginLanguageRuntimeSchema: z.ZodObject<{
|
|
68
|
+
language: z.ZodEnum<{
|
|
69
|
+
shell: "shell";
|
|
70
|
+
other: "other";
|
|
71
|
+
typescript: "typescript";
|
|
72
|
+
javascript: "javascript";
|
|
73
|
+
python: "python";
|
|
74
|
+
java: "java";
|
|
75
|
+
go: "go";
|
|
76
|
+
rust: "rust";
|
|
77
|
+
csharp: "csharp";
|
|
78
|
+
php: "php";
|
|
79
|
+
ruby: "ruby";
|
|
80
|
+
}>;
|
|
81
|
+
runtime: z.ZodString;
|
|
82
|
+
bridge: z.ZodEnum<{
|
|
83
|
+
"node-library": "node-library";
|
|
84
|
+
"stdio-json": "stdio-json";
|
|
85
|
+
"process-cli": "process-cli";
|
|
86
|
+
"http-local": "http-local";
|
|
87
|
+
container: "container";
|
|
88
|
+
wasm: "wasm";
|
|
89
|
+
}>;
|
|
90
|
+
input_transport: z.ZodEnum<{
|
|
91
|
+
"sdk-call": "sdk-call";
|
|
92
|
+
"stdin-json": "stdin-json";
|
|
93
|
+
"stdout-json": "stdout-json";
|
|
94
|
+
"file-envelope": "file-envelope";
|
|
95
|
+
"http-json": "http-json";
|
|
96
|
+
}>;
|
|
97
|
+
output_transport: z.ZodEnum<{
|
|
98
|
+
"sdk-call": "sdk-call";
|
|
99
|
+
"stdin-json": "stdin-json";
|
|
100
|
+
"stdout-json": "stdout-json";
|
|
101
|
+
"file-envelope": "file-envelope";
|
|
102
|
+
"http-json": "http-json";
|
|
103
|
+
}>;
|
|
104
|
+
command: z.ZodOptional<z.ZodString>;
|
|
105
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
106
|
+
package_manager: z.ZodOptional<z.ZodString>;
|
|
107
|
+
min_versions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
108
|
+
env_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export declare const pluginArtifactLayerSchema: z.ZodEnum<{
|
|
111
|
+
sdd: "sdd";
|
|
112
|
+
config: "config";
|
|
113
|
+
domain: "domain";
|
|
114
|
+
docs: "docs";
|
|
115
|
+
root: "root";
|
|
116
|
+
application: "application";
|
|
117
|
+
infrastructure: "infrastructure";
|
|
118
|
+
presentation: "presentation";
|
|
119
|
+
shared: "shared";
|
|
120
|
+
tests: "tests";
|
|
121
|
+
assets: "assets";
|
|
122
|
+
}>;
|
|
123
|
+
export declare const pluginArtifactKindSchema: z.ZodEnum<{
|
|
124
|
+
documentation: "documentation";
|
|
125
|
+
schema: "schema";
|
|
126
|
+
configuration: "configuration";
|
|
127
|
+
source: "source";
|
|
128
|
+
migration: "migration";
|
|
129
|
+
evidence: "evidence";
|
|
130
|
+
test: "test";
|
|
131
|
+
asset: "asset";
|
|
132
|
+
"package-metadata": "package-metadata";
|
|
133
|
+
}>;
|
|
134
|
+
export declare const pluginArtifactRoleSchema: z.ZodEnum<{
|
|
135
|
+
documentation: "documentation";
|
|
136
|
+
type: "type";
|
|
137
|
+
validator: "validator";
|
|
138
|
+
evidence: "evidence";
|
|
139
|
+
test: "test";
|
|
140
|
+
interface: "interface";
|
|
141
|
+
implementation: "implementation";
|
|
142
|
+
abstraction: "abstraction";
|
|
143
|
+
"business-object": "business-object";
|
|
144
|
+
"value-object": "value-object";
|
|
145
|
+
entity: "entity";
|
|
146
|
+
"repository-port": "repository-port";
|
|
147
|
+
"use-case": "use-case";
|
|
148
|
+
service: "service";
|
|
149
|
+
handler: "handler";
|
|
150
|
+
adapter: "adapter";
|
|
151
|
+
mapper: "mapper";
|
|
152
|
+
module: "module";
|
|
153
|
+
controller: "controller";
|
|
154
|
+
dto: "dto";
|
|
155
|
+
policy: "policy";
|
|
156
|
+
manifest: "manifest";
|
|
157
|
+
fixture: "fixture";
|
|
158
|
+
}>;
|
|
159
|
+
export declare const pluginArtifactOperationSchema: z.ZodEnum<{
|
|
160
|
+
created: "created";
|
|
161
|
+
planned: "planned";
|
|
162
|
+
modified: "modified";
|
|
163
|
+
deleted: "deleted";
|
|
164
|
+
unchanged: "unchanged";
|
|
165
|
+
validated: "validated";
|
|
166
|
+
}>;
|
|
167
|
+
export declare const pluginArtifactMapEntrySchema: z.ZodObject<{
|
|
168
|
+
path: z.ZodString;
|
|
169
|
+
operation: z.ZodEnum<{
|
|
170
|
+
created: "created";
|
|
171
|
+
planned: "planned";
|
|
172
|
+
modified: "modified";
|
|
173
|
+
deleted: "deleted";
|
|
174
|
+
unchanged: "unchanged";
|
|
175
|
+
validated: "validated";
|
|
176
|
+
}>;
|
|
177
|
+
artifact_kind: z.ZodEnum<{
|
|
178
|
+
documentation: "documentation";
|
|
179
|
+
schema: "schema";
|
|
180
|
+
configuration: "configuration";
|
|
181
|
+
source: "source";
|
|
182
|
+
migration: "migration";
|
|
183
|
+
evidence: "evidence";
|
|
184
|
+
test: "test";
|
|
185
|
+
asset: "asset";
|
|
186
|
+
"package-metadata": "package-metadata";
|
|
187
|
+
}>;
|
|
188
|
+
role: z.ZodEnum<{
|
|
189
|
+
documentation: "documentation";
|
|
190
|
+
type: "type";
|
|
191
|
+
validator: "validator";
|
|
192
|
+
evidence: "evidence";
|
|
193
|
+
test: "test";
|
|
194
|
+
interface: "interface";
|
|
195
|
+
implementation: "implementation";
|
|
196
|
+
abstraction: "abstraction";
|
|
197
|
+
"business-object": "business-object";
|
|
198
|
+
"value-object": "value-object";
|
|
199
|
+
entity: "entity";
|
|
200
|
+
"repository-port": "repository-port";
|
|
201
|
+
"use-case": "use-case";
|
|
202
|
+
service: "service";
|
|
203
|
+
handler: "handler";
|
|
204
|
+
adapter: "adapter";
|
|
205
|
+
mapper: "mapper";
|
|
206
|
+
module: "module";
|
|
207
|
+
controller: "controller";
|
|
208
|
+
dto: "dto";
|
|
209
|
+
policy: "policy";
|
|
210
|
+
manifest: "manifest";
|
|
211
|
+
fixture: "fixture";
|
|
212
|
+
}>;
|
|
213
|
+
layer: z.ZodEnum<{
|
|
214
|
+
sdd: "sdd";
|
|
215
|
+
config: "config";
|
|
216
|
+
domain: "domain";
|
|
217
|
+
docs: "docs";
|
|
218
|
+
root: "root";
|
|
219
|
+
application: "application";
|
|
220
|
+
infrastructure: "infrastructure";
|
|
221
|
+
presentation: "presentation";
|
|
222
|
+
shared: "shared";
|
|
223
|
+
tests: "tests";
|
|
224
|
+
assets: "assets";
|
|
225
|
+
}>;
|
|
226
|
+
content_type: z.ZodString;
|
|
227
|
+
reason: z.ZodString;
|
|
228
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
shell: "shell";
|
|
230
|
+
other: "other";
|
|
231
|
+
typescript: "typescript";
|
|
232
|
+
javascript: "javascript";
|
|
233
|
+
python: "python";
|
|
234
|
+
java: "java";
|
|
235
|
+
go: "go";
|
|
236
|
+
rust: "rust";
|
|
237
|
+
csharp: "csharp";
|
|
238
|
+
php: "php";
|
|
239
|
+
ruby: "ruby";
|
|
240
|
+
}>>;
|
|
241
|
+
context: z.ZodOptional<z.ZodString>;
|
|
242
|
+
implementation: z.ZodDefault<z.ZodEnum<{
|
|
243
|
+
contract: "contract";
|
|
244
|
+
manual: "manual";
|
|
245
|
+
concrete: "concrete";
|
|
246
|
+
abstract: "abstract";
|
|
247
|
+
generated: "generated";
|
|
248
|
+
}>>;
|
|
249
|
+
decision_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
250
|
+
source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
251
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
252
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export declare const pluginArtifactMapSchema: z.ZodObject<{
|
|
255
|
+
schema_version: z.ZodLiteral<1>;
|
|
256
|
+
sdk_package: z.ZodDefault<z.ZodLiteral<"@devtrack-solution/codesdd-plugin-sdk">>;
|
|
257
|
+
feature_ref: z.ZodOptional<z.ZodString>;
|
|
258
|
+
operation_id: z.ZodOptional<z.ZodString>;
|
|
259
|
+
plugin_ref: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
version: z.ZodString;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
generated_at: z.ZodString;
|
|
264
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
265
|
+
path: z.ZodString;
|
|
266
|
+
operation: z.ZodEnum<{
|
|
267
|
+
created: "created";
|
|
268
|
+
planned: "planned";
|
|
269
|
+
modified: "modified";
|
|
270
|
+
deleted: "deleted";
|
|
271
|
+
unchanged: "unchanged";
|
|
272
|
+
validated: "validated";
|
|
273
|
+
}>;
|
|
274
|
+
artifact_kind: z.ZodEnum<{
|
|
275
|
+
documentation: "documentation";
|
|
276
|
+
schema: "schema";
|
|
277
|
+
configuration: "configuration";
|
|
278
|
+
source: "source";
|
|
279
|
+
migration: "migration";
|
|
280
|
+
evidence: "evidence";
|
|
281
|
+
test: "test";
|
|
282
|
+
asset: "asset";
|
|
283
|
+
"package-metadata": "package-metadata";
|
|
284
|
+
}>;
|
|
285
|
+
role: z.ZodEnum<{
|
|
286
|
+
documentation: "documentation";
|
|
287
|
+
type: "type";
|
|
288
|
+
validator: "validator";
|
|
289
|
+
evidence: "evidence";
|
|
290
|
+
test: "test";
|
|
291
|
+
interface: "interface";
|
|
292
|
+
implementation: "implementation";
|
|
293
|
+
abstraction: "abstraction";
|
|
294
|
+
"business-object": "business-object";
|
|
295
|
+
"value-object": "value-object";
|
|
296
|
+
entity: "entity";
|
|
297
|
+
"repository-port": "repository-port";
|
|
298
|
+
"use-case": "use-case";
|
|
299
|
+
service: "service";
|
|
300
|
+
handler: "handler";
|
|
301
|
+
adapter: "adapter";
|
|
302
|
+
mapper: "mapper";
|
|
303
|
+
module: "module";
|
|
304
|
+
controller: "controller";
|
|
305
|
+
dto: "dto";
|
|
306
|
+
policy: "policy";
|
|
307
|
+
manifest: "manifest";
|
|
308
|
+
fixture: "fixture";
|
|
309
|
+
}>;
|
|
310
|
+
layer: z.ZodEnum<{
|
|
311
|
+
sdd: "sdd";
|
|
312
|
+
config: "config";
|
|
313
|
+
domain: "domain";
|
|
314
|
+
docs: "docs";
|
|
315
|
+
root: "root";
|
|
316
|
+
application: "application";
|
|
317
|
+
infrastructure: "infrastructure";
|
|
318
|
+
presentation: "presentation";
|
|
319
|
+
shared: "shared";
|
|
320
|
+
tests: "tests";
|
|
321
|
+
assets: "assets";
|
|
322
|
+
}>;
|
|
323
|
+
content_type: z.ZodString;
|
|
324
|
+
reason: z.ZodString;
|
|
325
|
+
language: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
shell: "shell";
|
|
327
|
+
other: "other";
|
|
328
|
+
typescript: "typescript";
|
|
329
|
+
javascript: "javascript";
|
|
330
|
+
python: "python";
|
|
331
|
+
java: "java";
|
|
332
|
+
go: "go";
|
|
333
|
+
rust: "rust";
|
|
334
|
+
csharp: "csharp";
|
|
335
|
+
php: "php";
|
|
336
|
+
ruby: "ruby";
|
|
337
|
+
}>>;
|
|
338
|
+
context: z.ZodOptional<z.ZodString>;
|
|
339
|
+
implementation: z.ZodDefault<z.ZodEnum<{
|
|
340
|
+
contract: "contract";
|
|
341
|
+
manual: "manual";
|
|
342
|
+
concrete: "concrete";
|
|
343
|
+
abstract: "abstract";
|
|
344
|
+
generated: "generated";
|
|
345
|
+
}>>;
|
|
346
|
+
decision_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
347
|
+
source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
348
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
349
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
350
|
+
}, z.core.$strip>>>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
export type PluginPackageGovernance = z.infer<typeof pluginPackageGovernanceSchema>;
|
|
353
|
+
export type PluginLanguageRuntime = z.infer<typeof pluginLanguageRuntimeSchema>;
|
|
354
|
+
export type PluginArtifactKind = z.infer<typeof pluginArtifactKindSchema>;
|
|
355
|
+
export type PluginArtifactRole = z.infer<typeof pluginArtifactRoleSchema>;
|
|
356
|
+
export type PluginArtifactLayer = z.infer<typeof pluginArtifactLayerSchema>;
|
|
357
|
+
export type PluginArtifactMapEntry = z.infer<typeof pluginArtifactMapEntrySchema>;
|
|
358
|
+
export type PluginArtifactMap = z.infer<typeof pluginArtifactMapSchema>;
|
|
359
|
+
export declare function buildPluginPackageName(pluginId: string): string;
|
|
360
|
+
export declare function validatePluginPackageGovernance(value: unknown, sourceLabel?: string): PluginPackageGovernance;
|
|
361
|
+
export declare function validatePluginArtifactMap(value: unknown, sourceLabel?: string): PluginArtifactMap;
|
|
362
|
+
export declare function buildPluginSdkJsonSchemas(): Record<string, unknown>;
|
|
363
|
+
//# sourceMappingURL=plugin-sdk-contract.d.ts.map
|