@devtrack-solution/codesdd 1.2.2 → 1.2.3
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/api-clean-flask-langgraph/SKILL.md +17 -17
- package/.sdd/skills/curated/devtrack-api/SKILL.md +160 -28
- package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +1 -1
- package/.sdd/skills/curated/devtrack-api/references/architecture-governance.md +8 -7
- package/.sdd/skills/curated/devtrack-api/references/consumer-sync-policy.md +93 -0
- package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +317 -0
- package/.sdd/skills/curated/devtrack-api/references/field-validation-protocol.md +95 -0
- package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +295 -0
- package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +4 -4
- package/.sdd/skills/curated/devtrack-api/references/imports-lint.md +4 -0
- package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +2 -2
- package/LICENSE +1 -1
- package/README.md +243 -51
- package/bin/codesdd.js +3 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +11 -558
- package/dist/cli/program.d.ts +14 -0
- package/dist/cli/program.js +645 -0
- package/dist/commands/change.js +5 -5
- package/dist/commands/completion.d.ts +1 -1
- package/dist/commands/completion.js +9 -2
- package/dist/commands/config.js +159 -20
- package/dist/commands/feedback.js +1 -1
- package/dist/commands/schema.d.ts +63 -0
- package/dist/commands/schema.js +12 -12
- package/dist/commands/sdd/backlog.d.ts +3 -0
- package/dist/commands/sdd/backlog.js +54 -0
- package/dist/commands/sdd/execution.js +147 -16
- package/dist/commands/sdd/plugin.d.ts +3 -0
- package/dist/commands/sdd/plugin.js +153 -0
- package/dist/commands/sdd/shared.js +2 -23
- package/dist/commands/sdd/skills.js +7 -0
- package/dist/commands/sdd.js +69 -12
- package/dist/commands/spec.js +9 -9
- package/dist/commands/validate.js +6 -6
- package/dist/commands/workflow/instructions.js +6 -6
- package/dist/commands/workflow/new-change.js +3 -3
- package/dist/commands/workflow/shared.d.ts +1 -1
- package/dist/commands/workflow/shared.js +4 -4
- package/dist/core/archive.js +15 -5
- package/dist/core/artifact-graph/instruction-loader.d.ts +1 -1
- package/dist/core/artifact-graph/instruction-loader.js +3 -3
- package/dist/core/artifact-graph/resolver.d.ts +4 -4
- package/dist/core/artifact-graph/resolver.js +6 -6
- package/dist/core/branding.js +3 -3
- package/dist/core/cli/command-matrix.js +10 -1
- package/dist/core/cli-command-quality.d.ts +27 -0
- package/dist/core/cli-command-quality.js +171 -0
- package/dist/core/command-generation/adapters/costrict.d.ts +1 -1
- package/dist/core/command-generation/adapters/costrict.js +2 -2
- package/dist/core/command-generation/types.d.ts +1 -1
- package/dist/core/completions/command-registry.d.ts +1 -1
- package/dist/core/completions/command-registry.js +155 -12
- package/dist/core/completions/completion-provider.d.ts +14 -1
- package/dist/core/completions/completion-provider.js +29 -1
- package/dist/core/completions/generators/bash-generator.d.ts +1 -1
- package/dist/core/completions/generators/bash-generator.js +20 -12
- package/dist/core/completions/generators/fish-generator.d.ts +9 -1
- package/dist/core/completions/generators/fish-generator.js +39 -25
- package/dist/core/completions/generators/powershell-generator.d.ts +1 -1
- package/dist/core/completions/generators/powershell-generator.js +21 -11
- package/dist/core/completions/generators/zsh-generator.d.ts +3 -6
- package/dist/core/completions/generators/zsh-generator.js +21 -42
- package/dist/core/completions/installers/bash-installer.js +6 -6
- package/dist/core/completions/installers/fish-installer.js +1 -1
- package/dist/core/completions/installers/powershell-installer.js +14 -14
- package/dist/core/completions/installers/zsh-installer.d.ts +7 -1
- package/dist/core/completions/installers/zsh-installer.js +36 -8
- package/dist/core/completions/templates/bash-templates.d.ts +1 -1
- package/dist/core/completions/templates/bash-templates.js +12 -6
- package/dist/core/completions/templates/fish-templates.d.ts +2 -2
- package/dist/core/completions/templates/fish-templates.js +20 -9
- package/dist/core/completions/templates/powershell-templates.d.ts +1 -1
- package/dist/core/completions/templates/powershell-templates.js +13 -4
- package/dist/core/completions/templates/zsh-templates.d.ts +1 -1
- package/dist/core/completions/templates/zsh-templates.js +18 -9
- package/dist/core/config-schema.d.ts +3 -1
- package/dist/core/config-schema.js +26 -1
- package/dist/core/config.d.ts +3 -3
- package/dist/core/config.js +4 -4
- package/dist/core/global-config.d.ts +41 -12
- package/dist/core/global-config.js +344 -27
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +2 -2
- package/dist/core/init.d.ts +6 -1
- package/dist/core/init.js +99 -77
- package/dist/core/legacy-cleanup.d.ts +17 -17
- package/dist/core/legacy-cleanup.js +96 -79
- package/dist/core/list.js +18 -4
- package/dist/core/migration.d.ts +3 -1
- package/dist/core/migration.js +7 -8
- package/dist/core/parsers/change-parser.js +1 -1
- package/dist/core/parsers/markdown-parser.js +2 -2
- package/dist/core/profile-sync-drift.d.ts +1 -1
- package/dist/core/profile-sync-drift.js +13 -13
- package/dist/core/project-config.d.ts +4 -4
- package/dist/core/project-config.js +11 -11
- package/dist/core/schemas/change.schema.d.ts +1 -1
- package/dist/core/schemas/change.schema.js +1 -1
- package/dist/core/schemas/spec.schema.d.ts +1 -1
- package/dist/core/schemas/spec.schema.js +1 -1
- package/dist/core/sdd/adr.js +23 -1
- package/dist/core/sdd/agent-binding.d.ts +346 -0
- package/dist/core/sdd/agent-binding.js +343 -0
- package/dist/core/sdd/backlog-cli.d.ts +16 -0
- package/dist/core/sdd/backlog-cli.js +146 -0
- package/dist/core/sdd/backlog-conflict-policy.d.ts +58 -0
- package/dist/core/sdd/backlog-conflict-policy.js +230 -0
- package/dist/core/sdd/backlog-projection.d.ts +8 -0
- package/dist/core/sdd/backlog-projection.js +89 -0
- package/dist/core/sdd/backlog-provider-contract.d.ts +252 -0
- package/dist/core/sdd/backlog-provider-contract.js +158 -0
- package/dist/core/sdd/bootstrap.js +2 -2
- package/dist/core/sdd/check.d.ts +42 -0
- package/dist/core/sdd/check.js +22 -22
- package/dist/core/sdd/contract.d.ts +13 -0
- package/dist/core/sdd/contract.js +36 -0
- package/dist/core/sdd/coordination/coordination-adapters.d.ts +38 -0
- package/dist/core/sdd/coordination/coordination-adapters.js +139 -1
- package/dist/core/sdd/deepagent-contracts.d.ts +276 -0
- package/dist/core/sdd/deepagent-contracts.js +173 -0
- package/dist/core/sdd/deepagents/adr-governor.d.ts +2 -0
- package/dist/core/sdd/deepagents/adr-governor.js +30 -0
- package/dist/core/sdd/deepagents/backend.d.ts +63 -0
- package/dist/core/sdd/deepagents/backend.js +174 -0
- package/dist/core/sdd/deepagents/codesdd-tools.d.ts +39 -0
- package/dist/core/sdd/deepagents/codesdd-tools.js +83 -0
- package/dist/core/sdd/deepagents/evidence-mapper.d.ts +86 -0
- package/dist/core/sdd/deepagents/evidence-mapper.js +178 -0
- package/dist/core/sdd/deepagents/model-provider.d.ts +53 -0
- package/dist/core/sdd/deepagents/model-provider.js +379 -0
- package/dist/core/sdd/deepagents/policy-enforcement.d.ts +30 -0
- package/dist/core/sdd/deepagents/policy-enforcement.js +90 -0
- package/dist/core/sdd/deepagents/policy.d.ts +75 -0
- package/dist/core/sdd/deepagents/policy.js +358 -0
- package/dist/core/sdd/deepagents/quality-witness.d.ts +3 -0
- package/dist/core/sdd/deepagents/quality-witness.js +77 -0
- package/dist/core/sdd/deepagents/reversa-subagents.d.ts +75 -0
- package/dist/core/sdd/deepagents/reversa-subagents.js +182 -0
- package/dist/core/sdd/deepagents/runtime-factory.d.ts +90 -0
- package/dist/core/sdd/deepagents/runtime-factory.js +231 -0
- package/dist/core/sdd/deepagents/runtime-loader.d.ts +16 -0
- package/dist/core/sdd/deepagents/runtime-loader.js +65 -0
- package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
- package/dist/core/sdd/default-bootstrap-files.js +36 -2
- package/dist/core/sdd/default-skills.d.ts +30 -0
- package/dist/core/sdd/default-skills.js +181 -5
- package/dist/core/sdd/devtrack-api-appliance.d.ts +84 -0
- package/dist/core/sdd/devtrack-api-appliance.js +257 -0
- package/dist/core/sdd/devtrack-api-architecture.d.ts +31 -0
- package/dist/core/sdd/devtrack-api-architecture.js +608 -0
- package/dist/core/sdd/devtrack-api-import-boundary.d.ts +19 -0
- package/dist/core/sdd/devtrack-api-import-boundary.js +32 -0
- package/dist/core/sdd/diagnose.d.ts +59 -0
- package/dist/core/sdd/diagnose.js +37 -37
- package/dist/core/sdd/docs-sync.js +33 -5
- package/dist/core/sdd/domain/post-active-validation.d.ts +7 -0
- package/dist/core/sdd/domain/post-active-validation.js +61 -0
- package/dist/core/sdd/domain/transition-engine.js +1 -0
- package/dist/core/sdd/entity-reference.d.ts +5 -0
- package/dist/core/sdd/entity-reference.js +22 -0
- package/dist/core/sdd/governance-backfill.d.ts +31 -0
- package/dist/core/sdd/governance-backfill.js +359 -0
- package/dist/core/sdd/governance-parser.d.ts +21 -0
- package/dist/core/sdd/governance-parser.js +91 -0
- package/dist/core/sdd/governance-schemas.d.ts +245 -0
- package/dist/core/sdd/governance-schemas.js +143 -0
- package/dist/core/sdd/{import-openspec.d.ts → import-legacy-spec.d.ts} +7 -7
- package/dist/core/sdd/{import-openspec.js → import-legacy-spec.js} +21 -29
- package/dist/core/sdd/init.d.ts +3 -0
- package/dist/core/sdd/init.js +6 -3
- package/dist/core/sdd/json-schema.js +100 -6
- package/dist/core/sdd/knowledge-graph.d.ts +45 -0
- package/dist/core/sdd/knowledge-graph.js +288 -0
- package/dist/core/sdd/legacy-operations.js +431 -43
- package/dist/core/sdd/lenses.d.ts +1 -0
- package/dist/core/sdd/lenses.js +29 -1
- package/dist/core/sdd/migrate-workspace.js +56 -2
- package/dist/core/sdd/migrate.d.ts +1 -1
- package/dist/core/sdd/migrate.js +36 -2
- package/dist/core/sdd/package-structure-gate.d.ts +83 -0
- package/dist/core/sdd/package-structure-gate.js +362 -0
- package/dist/core/sdd/parallel-feat-automation.d.ts +152 -0
- package/dist/core/sdd/parallel-feat-automation.js +212 -0
- package/dist/core/sdd/plugin-broker.d.ts +558 -0
- package/dist/core/sdd/plugin-broker.js +482 -0
- package/dist/core/sdd/plugin-certification.d.ts +79 -0
- package/dist/core/sdd/plugin-certification.js +453 -0
- package/dist/core/sdd/plugin-cli.d.ts +109 -0
- package/dist/core/sdd/plugin-cli.js +198 -0
- package/dist/core/sdd/plugin-evidence.d.ts +275 -0
- package/dist/core/sdd/plugin-evidence.js +307 -0
- package/dist/core/sdd/plugin-manifest.d.ts +164 -0
- package/dist/core/sdd/plugin-manifest.js +215 -0
- package/dist/core/sdd/plugin-policy-pack.d.ts +88 -0
- package/dist/core/sdd/plugin-policy-pack.js +236 -0
- package/dist/core/sdd/plugin-policy.d.ts +68 -0
- package/dist/core/sdd/plugin-policy.js +212 -0
- package/dist/core/sdd/plugin-registry.d.ts +311 -0
- package/dist/core/sdd/plugin-registry.js +138 -0
- package/dist/core/sdd/plugin-skill-binding.d.ts +151 -0
- package/dist/core/sdd/plugin-skill-binding.js +339 -0
- package/dist/core/sdd/quality-artifact-manifest-validator.d.ts +28 -0
- package/dist/core/sdd/quality-artifact-manifest-validator.js +167 -0
- package/dist/core/sdd/quality-evidence-renderer.d.ts +65 -0
- package/dist/core/sdd/quality-evidence-renderer.js +218 -0
- package/dist/core/sdd/quality-scenario-runner.d.ts +42 -0
- package/dist/core/sdd/quality-scenario-runner.js +613 -0
- package/dist/core/sdd/quality-validation.d.ts +547 -0
- package/dist/core/sdd/quality-validation.js +239 -0
- package/dist/core/sdd/resolve-project-root.d.ts +2 -2
- package/dist/core/sdd/resolve-project-root.js +11 -5
- package/dist/core/sdd/sanitize.d.ts +30 -1
- package/dist/core/sdd/sanitize.js +23 -23
- package/dist/core/sdd/services/agent-run.service.d.ts +65 -0
- package/dist/core/sdd/services/agent-run.service.js +189 -0
- package/dist/core/sdd/services/breakdown.service.js +2 -1
- package/dist/core/sdd/services/context.service.js +18 -16
- package/dist/core/sdd/services/debate.service.js +15 -2
- package/dist/core/sdd/services/feature-lint.service.d.ts +22 -0
- package/dist/core/sdd/services/feature-lint.service.js +105 -5
- package/dist/core/sdd/services/finalize.service.d.ts +80 -0
- package/dist/core/sdd/services/finalize.service.js +323 -24
- package/dist/core/sdd/services/frontend-gap.service.js +22 -7
- package/dist/core/sdd/services/governance-control-plane-runtime-adapters.d.ts +17 -0
- package/dist/core/sdd/services/governance-control-plane-runtime-adapters.js +38 -0
- package/dist/core/sdd/services/governance-control-plane.service.d.ts +66 -0
- package/dist/core/sdd/services/governance-control-plane.service.js +134 -0
- package/dist/core/sdd/services/ingest-deposito.service.js +1 -1
- package/dist/core/sdd/services/legacy-capability.service.d.ts +10 -7
- package/dist/core/sdd/services/legacy-capability.service.js +38 -21
- package/dist/core/sdd/services/mcp-runtime.service.d.ts +123 -8
- package/dist/core/sdd/services/mcp-runtime.service.js +1085 -33
- package/dist/core/sdd/services/onboard.service.js +2 -1
- package/dist/core/sdd/services/rebuild.service.js +6 -1
- package/dist/core/sdd/services/skills-sync.service.d.ts +17 -5
- package/dist/core/sdd/services/skills-sync.service.js +55 -2
- package/dist/core/sdd/services/start.service.js +6 -4
- package/dist/core/sdd/skill-bundles-curation-schema.d.ts +66 -0
- package/dist/core/sdd/skill-bundles-curation-schema.js +52 -0
- package/dist/core/sdd/skill-evidence.d.ts +19 -0
- package/dist/core/sdd/skill-evidence.js +38 -0
- package/dist/core/sdd/skill-policy-pool.d.ts +46 -0
- package/dist/core/sdd/skill-policy-pool.js +185 -0
- package/dist/core/sdd/state.d.ts +22 -0
- package/dist/core/sdd/state.js +66 -41
- package/dist/core/sdd/structural-health.d.ts +42 -42
- package/dist/core/sdd/types.d.ts +33 -7
- package/dist/core/sdd/types.js +17 -0
- package/dist/core/sdd/upgrade-to-codesdd.d.ts +45 -0
- package/dist/core/sdd/upgrade-to-codesdd.js +179 -0
- package/dist/core/sdd/workspace-schemas.d.ts +285 -14
- package/dist/core/sdd/workspace-schemas.js +148 -0
- package/dist/core/sdd/write-manifest.js +22 -4
- package/dist/core/shared/skill-generation.d.ts +1 -1
- package/dist/core/shared/skill-generation.js +15 -15
- package/dist/core/shared/tool-detection.d.ts +3 -3
- package/dist/core/shared/tool-detection.js +14 -14
- package/dist/core/specs-apply.js +6 -6
- package/dist/core/templates/index.d.ts +1 -1
- package/dist/core/templates/index.js +1 -1
- package/dist/core/templates/workflows/apply-change.js +14 -14
- package/dist/core/templates/workflows/archive-change.js +32 -32
- package/dist/core/templates/workflows/bulk-archive-change.js +25 -25
- package/dist/core/templates/workflows/continue-change.js +12 -12
- package/dist/core/templates/workflows/explore.js +29 -29
- package/dist/core/templates/workflows/feedback.js +6 -6
- package/dist/core/templates/workflows/ff-change.js +24 -24
- package/dist/core/templates/workflows/new-change.js +20 -20
- package/dist/core/templates/workflows/onboard.js +33 -33
- package/dist/core/templates/workflows/propose.js +23 -23
- package/dist/core/templates/workflows/sdd.js +8 -8
- package/dist/core/templates/workflows/sync-specs.js +19 -19
- package/dist/core/templates/workflows/verify-change.js +17 -17
- package/dist/core/update.d.ts +2 -2
- package/dist/core/update.js +16 -15
- package/dist/core/validation/constants.d.ts +1 -1
- package/dist/core/validation/constants.js +1 -1
- package/dist/core/view.js +11 -11
- package/dist/telemetry/config.d.ts +2 -1
- package/dist/telemetry/config.js +17 -8
- package/dist/telemetry/index.d.ts +10 -2
- package/dist/telemetry/index.js +40 -7
- package/dist/ui/ascii-patterns.d.ts +2 -2
- package/dist/ui/ascii-patterns.js +2 -2
- package/dist/ui/welcome-screen.js +2 -2
- package/dist/utils/change-metadata.d.ts +4 -4
- package/dist/utils/change-metadata.js +6 -6
- package/dist/utils/change-utils.d.ts +3 -3
- package/dist/utils/change-utils.js +5 -5
- package/dist/utils/file-system.js +1 -1
- package/dist/utils/interactive.js +1 -1
- package/dist/utils/item-discovery.js +4 -4
- package/dist/utils/legacy-spec-compat.d.ts +2 -0
- package/dist/utils/legacy-spec-compat.js +2 -0
- package/dist/utils/shell-detection.d.ts +1 -0
- package/dist/utils/shell-detection.js +16 -0
- package/package.json +27 -17
- package/schemas/sdd/1-spec.schema.json +1 -1
- package/schemas/sdd/2-plan.schema.json +73 -1
- package/schemas/sdd/3-tasks.schema.json +73 -1
- package/schemas/sdd/4-changelog.schema.json +1 -1
- package/schemas/sdd/5-quality.schema.json +442 -2
- package/schemas/sdd/adr.schema.json +148 -0
- package/schemas/sdd/agent-binding-adapter.schema.json +210 -0
- package/schemas/sdd/agent-binding-resolution.schema.json +338 -0
- package/schemas/sdd/backlog-projection-plan.schema.json +180 -0
- package/schemas/sdd/backlog-provider-contract.schema.json +260 -0
- package/schemas/sdd/codesdd-plugin.schema.json +474 -0
- package/schemas/sdd/debate.schema.json +244 -0
- package/schemas/sdd/deepagent-decision-evidence.schema.json +58 -0
- package/schemas/sdd/deepagent-env-contract.schema.json +143 -0
- package/schemas/sdd/deepagent-quality-evidence.schema.json +108 -0
- package/schemas/sdd/deepagent-run-evidence.schema.json +192 -0
- package/schemas/sdd/deepagent-run-plan.schema.json +197 -0
- package/schemas/sdd/deepagent-run-request.schema.json +321 -0
- package/schemas/sdd/deepagent-subagent-evidence.schema.json +110 -0
- package/schemas/sdd/deepagent-tool-call-evidence.schema.json +78 -0
- package/schemas/sdd/discarded.schema.json +127 -0
- package/schemas/sdd/epic.schema.json +147 -0
- package/schemas/sdd/insight.schema.json +136 -0
- package/schemas/sdd/parallel-feat-automation-plan.schema.json +215 -0
- package/schemas/sdd/parallel-feat-automation-request.schema.json +109 -0
- package/schemas/sdd/plugin-artifact-manifest.schema.json +150 -0
- package/schemas/sdd/plugin-compliance-index.schema.json +136 -0
- package/schemas/sdd/plugin-dry-run-plan.schema.json +260 -0
- package/schemas/sdd/plugin-evidence-manifest.schema.json +569 -0
- package/schemas/sdd/plugin-policy-evaluation.schema.json +92 -0
- package/schemas/sdd/plugin-policy-pack-evaluation.schema.json +94 -0
- package/schemas/sdd/plugin-policy-pack.schema.json +196 -0
- package/schemas/sdd/plugin-registry.schema.json +558 -0
- package/schemas/sdd/plugin-rollback-manifest.schema.json +87 -0
- package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +845 -0
- package/schemas/sdd/plugin-skill-binding-resolution.schema.json +305 -0
- package/schemas/sdd/plugin-skill-binding.schema.json +88 -0
- package/schemas/sdd/plugin-validation-manifest.schema.json +123 -0
- package/schemas/sdd/quality-architecture-schema.schema.json +216 -0
- package/schemas/sdd/quality-evidence-bundle.schema.json +1228 -0
- package/schemas/sdd/quality-run.schema.json +197 -0
- package/schemas/sdd/quality-scenario.schema.json +252 -0
- package/schemas/sdd/workspace-catalog.schema.json +9841 -22
- package/schemas/spec-driven/schema.yaml +4 -4
- package/schemas/spec-driven/templates/proposal.md +1 -1
- package/dist/utils/openspec-compat.d.ts +0 -2
- package/dist/utils/openspec-compat.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'fs';
|
|
2
2
|
import { parse as parseYaml } from 'yaml';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
4
|
+
import { resolveLegacySpecSubpath } from './sdd/services/legacy-capability.service.js';
|
|
5
5
|
/**
|
|
6
6
|
* Zod schema for project configuration.
|
|
7
7
|
*
|
|
@@ -11,9 +11,9 @@ import { resolveOpenSpecSubpath } from './sdd/services/legacy-capability.service
|
|
|
11
11
|
* 3. Runtime validation - uses safeParse() for resilient field-by-field validation
|
|
12
12
|
*
|
|
13
13
|
* Why Zod over manual validation:
|
|
14
|
-
* - Helps understand
|
|
14
|
+
* - Helps understand CodeSDD's data interfaces at a glance
|
|
15
15
|
* - Single source of truth for type and validation
|
|
16
|
-
* - Consistent with other
|
|
16
|
+
* - Consistent with other CodeSDD schemas
|
|
17
17
|
*/
|
|
18
18
|
export const ProjectConfigSchema = z.object({
|
|
19
19
|
// Required: which schema to use (e.g., "spec-driven", or project-local schema name)
|
|
@@ -37,7 +37,7 @@ export const ProjectConfigSchema = z.object({
|
|
|
37
37
|
});
|
|
38
38
|
const MAX_CONTEXT_SIZE = 50 * 1024; // 50KB hard limit
|
|
39
39
|
/**
|
|
40
|
-
* Read and parse
|
|
40
|
+
* Read and parse legacy-spec/config.yaml from project root.
|
|
41
41
|
* Uses resilient parsing - validates each field independently using Zod safeParse.
|
|
42
42
|
* Returns null if file doesn't exist.
|
|
43
43
|
* Returns partial config if some fields are invalid (with warnings).
|
|
@@ -52,14 +52,14 @@ const MAX_CONTEXT_SIZE = 50 * 1024; // 50KB hard limit
|
|
|
52
52
|
* invalidation logic) for negligible benefit. Direct reads also ensure config
|
|
53
53
|
* changes are reflected immediately without stale cache issues.
|
|
54
54
|
*
|
|
55
|
-
* @param projectRoot - The root directory of the project (where `
|
|
55
|
+
* @param projectRoot - The root directory of the project (where `legacy-spec/` lives)
|
|
56
56
|
* @returns Parsed config or null if file doesn't exist
|
|
57
57
|
*/
|
|
58
58
|
export function readProjectConfig(projectRoot) {
|
|
59
59
|
// Try both .yaml and .yml, prefer .yaml
|
|
60
|
-
let configPath =
|
|
60
|
+
let configPath = resolveLegacySpecSubpath(projectRoot, 'config.yaml');
|
|
61
61
|
if (!existsSync(configPath)) {
|
|
62
|
-
configPath =
|
|
62
|
+
configPath = resolveLegacySpecSubpath(projectRoot, 'config.yml');
|
|
63
63
|
if (!existsSync(configPath)) {
|
|
64
64
|
return null; // No config is OK
|
|
65
65
|
}
|
|
@@ -68,7 +68,7 @@ export function readProjectConfig(projectRoot) {
|
|
|
68
68
|
const content = readFileSync(configPath, 'utf-8');
|
|
69
69
|
const raw = parseYaml(content);
|
|
70
70
|
if (!raw || typeof raw !== 'object') {
|
|
71
|
-
console.warn(`
|
|
71
|
+
console.warn(`legacy-spec/config.yaml is not a valid YAML object`);
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
74
|
const config = {};
|
|
@@ -135,7 +135,7 @@ export function readProjectConfig(projectRoot) {
|
|
|
135
135
|
return Object.keys(config).length > 0 ? config : null;
|
|
136
136
|
}
|
|
137
137
|
catch (error) {
|
|
138
|
-
console.warn(`Failed to parse
|
|
138
|
+
console.warn(`Failed to parse legacy-spec/config.yaml:`, error);
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -198,7 +198,7 @@ export function suggestSchemas(invalidSchemaName, availableSchemas) {
|
|
|
198
198
|
.slice(0, 3);
|
|
199
199
|
const builtIn = availableSchemas.filter((s) => s.isBuiltIn).map((s) => s.name);
|
|
200
200
|
const projectLocal = availableSchemas.filter((s) => !s.isBuiltIn).map((s) => s.name);
|
|
201
|
-
let message = `Schema '${invalidSchemaName}' not found in
|
|
201
|
+
let message = `Schema '${invalidSchemaName}' not found in legacy-spec/config.yaml\n\n`;
|
|
202
202
|
if (suggestions.length > 0) {
|
|
203
203
|
message += `Did you mean one of these?\n`;
|
|
204
204
|
suggestions.forEach((s) => {
|
|
@@ -217,7 +217,7 @@ export function suggestSchemas(invalidSchemaName, availableSchemas) {
|
|
|
217
217
|
else {
|
|
218
218
|
message += ` Project-local: (none found)\n`;
|
|
219
219
|
}
|
|
220
|
-
message += `\nFix: Edit
|
|
220
|
+
message += `\nFix: Edit legacy-spec/config.yaml and change 'schema: ${invalidSchemaName}' to a valid schema name`;
|
|
221
221
|
return message;
|
|
222
222
|
}
|
|
223
223
|
//# sourceMappingURL=project-config.js.map
|
|
@@ -63,7 +63,7 @@ export declare const ChangeSchema: z.ZodObject<{
|
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
64
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
65
65
|
version: z.ZodDefault<z.ZodString>;
|
|
66
|
-
format: z.ZodLiteral<"
|
|
66
|
+
format: z.ZodLiteral<"codesdd-change">;
|
|
67
67
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, z.core.$strip>>;
|
|
69
69
|
}, z.core.$strip>;
|
|
@@ -24,7 +24,7 @@ export const ChangeSchema = z.object({
|
|
|
24
24
|
.max(MAX_DELTAS_PER_CHANGE, VALIDATION_MESSAGES.CHANGE_TOO_MANY_DELTAS),
|
|
25
25
|
metadata: z.object({
|
|
26
26
|
version: z.string().default('1.0.0'),
|
|
27
|
-
format: z.literal('
|
|
27
|
+
format: z.literal('codesdd-change'),
|
|
28
28
|
sourcePath: z.string().optional(),
|
|
29
29
|
}).optional(),
|
|
30
30
|
});
|
|
@@ -10,7 +10,7 @@ export declare const SpecSchema: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
11
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
version: z.ZodDefault<z.ZodString>;
|
|
13
|
-
format: z.ZodLiteral<"
|
|
13
|
+
format: z.ZodLiteral<"codesdd">;
|
|
14
14
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
}, z.core.$strip>;
|
|
@@ -8,7 +8,7 @@ export const SpecSchema = z.object({
|
|
|
8
8
|
.min(1, VALIDATION_MESSAGES.SPEC_NO_REQUIREMENTS),
|
|
9
9
|
metadata: z.object({
|
|
10
10
|
version: z.string().default('1.0.0'),
|
|
11
|
-
format: z.literal('
|
|
11
|
+
format: z.literal('codesdd'),
|
|
12
12
|
sourcePath: z.string().optional(),
|
|
13
13
|
}).optional(),
|
|
14
14
|
});
|
package/dist/core/sdd/adr.js
CHANGED
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
import * as yaml from 'yaml';
|
|
1
2
|
export function adrFileName(featureId) {
|
|
2
3
|
return `ADR-${featureId}.md`;
|
|
3
4
|
}
|
|
4
5
|
export function generateAdrTemplate(feature, createdAtIso) {
|
|
5
6
|
const refs = [feature.id, feature.origin_ref].filter(Boolean);
|
|
6
7
|
const refsText = refs.length > 0 ? refs.join(', ') : '-';
|
|
7
|
-
|
|
8
|
+
const frontmatter = yaml
|
|
9
|
+
.stringify({
|
|
10
|
+
schema_version: 1,
|
|
11
|
+
artifact_type: 'ADR',
|
|
12
|
+
id: `ADR-${feature.id}`,
|
|
13
|
+
feature_id: feature.id,
|
|
14
|
+
title: `ADR ${feature.id}: ${feature.title}`,
|
|
15
|
+
status: feature.status,
|
|
16
|
+
origin: { type: 'feature', ref: feature.id },
|
|
17
|
+
related_ids: refs,
|
|
18
|
+
created_at: createdAtIso,
|
|
19
|
+
updated_at: createdAtIso,
|
|
20
|
+
decision_status: feature.status === 'DONE' ? 'ACCEPTED' : 'PROPOSED',
|
|
21
|
+
supersedes: [],
|
|
22
|
+
superseded_by: [],
|
|
23
|
+
references: refs,
|
|
24
|
+
})
|
|
25
|
+
.trim();
|
|
26
|
+
return `---
|
|
27
|
+
${frontmatter}
|
|
28
|
+
---
|
|
29
|
+
# ADR ${feature.id}: ${feature.title}
|
|
8
30
|
|
|
9
31
|
## Context
|
|
10
32
|
Describe the context that motivated this architecture decision, including constraints and trade-offs.
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const agentProviderSchema: z.ZodEnum<{
|
|
3
|
+
codex: "codex";
|
|
4
|
+
opencode: "opencode";
|
|
5
|
+
deepagents: "deepagents";
|
|
6
|
+
fake: "fake";
|
|
7
|
+
"claude-code": "claude-code";
|
|
8
|
+
cloudcode: "cloudcode";
|
|
9
|
+
}>;
|
|
10
|
+
declare const agentTaskKindSchema: z.ZodEnum<{
|
|
11
|
+
validation: "validation";
|
|
12
|
+
planning: "planning";
|
|
13
|
+
"reverse-engineering": "reverse-engineering";
|
|
14
|
+
implementation: "implementation";
|
|
15
|
+
review: "review";
|
|
16
|
+
"plugin-execution": "plugin-execution";
|
|
17
|
+
"adr-governance": "adr-governance";
|
|
18
|
+
"quality-witness": "quality-witness";
|
|
19
|
+
"documentation-sync": "documentation-sync";
|
|
20
|
+
}>;
|
|
21
|
+
declare const trustTierSchema: z.ZodEnum<{
|
|
22
|
+
experimental: "experimental";
|
|
23
|
+
blocked: "blocked";
|
|
24
|
+
"local-dev": "local-dev";
|
|
25
|
+
"enterprise-approved": "enterprise-approved";
|
|
26
|
+
}>;
|
|
27
|
+
declare const riskTierSchema: z.ZodEnum<{
|
|
28
|
+
low: "low";
|
|
29
|
+
medium: "medium";
|
|
30
|
+
high: "high";
|
|
31
|
+
critical: "critical";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const agentBindingCapabilitySchema: z.ZodObject<{
|
|
34
|
+
task_kind: z.ZodEnum<{
|
|
35
|
+
validation: "validation";
|
|
36
|
+
planning: "planning";
|
|
37
|
+
"reverse-engineering": "reverse-engineering";
|
|
38
|
+
implementation: "implementation";
|
|
39
|
+
review: "review";
|
|
40
|
+
"plugin-execution": "plugin-execution";
|
|
41
|
+
"adr-governance": "adr-governance";
|
|
42
|
+
"quality-witness": "quality-witness";
|
|
43
|
+
"documentation-sync": "documentation-sync";
|
|
44
|
+
}>;
|
|
45
|
+
description: z.ZodString;
|
|
46
|
+
read_only: z.ZodBoolean;
|
|
47
|
+
edits: z.ZodBoolean;
|
|
48
|
+
background: z.ZodBoolean;
|
|
49
|
+
worktree_isolation: z.ZodBoolean;
|
|
50
|
+
mcp: z.ZodBoolean;
|
|
51
|
+
skills: z.ZodBoolean;
|
|
52
|
+
structured_evidence: z.ZodBoolean;
|
|
53
|
+
risk_tier: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
low: "low";
|
|
55
|
+
medium: "medium";
|
|
56
|
+
high: "high";
|
|
57
|
+
critical: "critical";
|
|
58
|
+
}>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const agentBindingAdapterSchema: z.ZodObject<{
|
|
61
|
+
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
provider: z.ZodEnum<{
|
|
64
|
+
codex: "codex";
|
|
65
|
+
opencode: "opencode";
|
|
66
|
+
deepagents: "deepagents";
|
|
67
|
+
fake: "fake";
|
|
68
|
+
"claude-code": "claude-code";
|
|
69
|
+
cloudcode: "cloudcode";
|
|
70
|
+
}>;
|
|
71
|
+
label: z.ZodString;
|
|
72
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
experimental: "experimental";
|
|
74
|
+
disabled: "disabled";
|
|
75
|
+
active: "active";
|
|
76
|
+
}>>;
|
|
77
|
+
execution: z.ZodObject<{
|
|
78
|
+
mode: z.ZodEnum<{
|
|
79
|
+
"local-cli": "local-cli";
|
|
80
|
+
cloud: "cloud";
|
|
81
|
+
"test-double": "test-double";
|
|
82
|
+
}>;
|
|
83
|
+
command: z.ZodOptional<z.ZodString>;
|
|
84
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
85
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
86
|
+
disabled: "disabled";
|
|
87
|
+
restricted: "restricted";
|
|
88
|
+
enabled: "enabled";
|
|
89
|
+
}>>;
|
|
90
|
+
evidence_contract: z.ZodDefault<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
93
|
+
task_kind: z.ZodEnum<{
|
|
94
|
+
validation: "validation";
|
|
95
|
+
planning: "planning";
|
|
96
|
+
"reverse-engineering": "reverse-engineering";
|
|
97
|
+
implementation: "implementation";
|
|
98
|
+
review: "review";
|
|
99
|
+
"plugin-execution": "plugin-execution";
|
|
100
|
+
"adr-governance": "adr-governance";
|
|
101
|
+
"quality-witness": "quality-witness";
|
|
102
|
+
"documentation-sync": "documentation-sync";
|
|
103
|
+
}>;
|
|
104
|
+
description: z.ZodString;
|
|
105
|
+
read_only: z.ZodBoolean;
|
|
106
|
+
edits: z.ZodBoolean;
|
|
107
|
+
background: z.ZodBoolean;
|
|
108
|
+
worktree_isolation: z.ZodBoolean;
|
|
109
|
+
mcp: z.ZodBoolean;
|
|
110
|
+
skills: z.ZodBoolean;
|
|
111
|
+
structured_evidence: z.ZodBoolean;
|
|
112
|
+
risk_tier: z.ZodDefault<z.ZodEnum<{
|
|
113
|
+
low: "low";
|
|
114
|
+
medium: "medium";
|
|
115
|
+
high: "high";
|
|
116
|
+
critical: "critical";
|
|
117
|
+
}>>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
governance: z.ZodObject<{
|
|
120
|
+
owner: z.ZodString;
|
|
121
|
+
trust_tier: z.ZodEnum<{
|
|
122
|
+
experimental: "experimental";
|
|
123
|
+
blocked: "blocked";
|
|
124
|
+
"local-dev": "local-dev";
|
|
125
|
+
"enterprise-approved": "enterprise-approved";
|
|
126
|
+
}>;
|
|
127
|
+
approval: z.ZodDefault<z.ZodEnum<{
|
|
128
|
+
none: "none";
|
|
129
|
+
maintainer: "maintainer";
|
|
130
|
+
security: "security";
|
|
131
|
+
"architecture-board": "architecture-board";
|
|
132
|
+
}>>;
|
|
133
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export declare const agentBindingResolutionRequestSchema: z.ZodObject<{
|
|
137
|
+
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
138
|
+
feature_ref: z.ZodString;
|
|
139
|
+
task_kind: z.ZodEnum<{
|
|
140
|
+
validation: "validation";
|
|
141
|
+
planning: "planning";
|
|
142
|
+
"reverse-engineering": "reverse-engineering";
|
|
143
|
+
implementation: "implementation";
|
|
144
|
+
review: "review";
|
|
145
|
+
"plugin-execution": "plugin-execution";
|
|
146
|
+
"adr-governance": "adr-governance";
|
|
147
|
+
"quality-witness": "quality-witness";
|
|
148
|
+
"documentation-sync": "documentation-sync";
|
|
149
|
+
}>;
|
|
150
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
codex: "codex";
|
|
152
|
+
opencode: "opencode";
|
|
153
|
+
deepagents: "deepagents";
|
|
154
|
+
fake: "fake";
|
|
155
|
+
"claude-code": "claude-code";
|
|
156
|
+
cloudcode: "cloudcode";
|
|
157
|
+
}>>;
|
|
158
|
+
allowed_providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
159
|
+
codex: "codex";
|
|
160
|
+
opencode: "opencode";
|
|
161
|
+
deepagents: "deepagents";
|
|
162
|
+
fake: "fake";
|
|
163
|
+
"claude-code": "claude-code";
|
|
164
|
+
cloudcode: "cloudcode";
|
|
165
|
+
}>>>;
|
|
166
|
+
statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
167
|
+
experimental: "experimental";
|
|
168
|
+
disabled: "disabled";
|
|
169
|
+
active: "active";
|
|
170
|
+
}>>>;
|
|
171
|
+
trust_tiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
172
|
+
experimental: "experimental";
|
|
173
|
+
blocked: "blocked";
|
|
174
|
+
"local-dev": "local-dev";
|
|
175
|
+
"enterprise-approved": "enterprise-approved";
|
|
176
|
+
}>>>;
|
|
177
|
+
require_edits: z.ZodDefault<z.ZodBoolean>;
|
|
178
|
+
require_background: z.ZodDefault<z.ZodBoolean>;
|
|
179
|
+
require_worktree_isolation: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
require_mcp: z.ZodDefault<z.ZodBoolean>;
|
|
181
|
+
require_skills: z.ZodDefault<z.ZodBoolean>;
|
|
182
|
+
require_structured_evidence: z.ZodDefault<z.ZodBoolean>;
|
|
183
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export declare const agentBindingCandidateSchema: z.ZodObject<{
|
|
186
|
+
adapter_ref: z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
provider: z.ZodEnum<{
|
|
189
|
+
codex: "codex";
|
|
190
|
+
opencode: "opencode";
|
|
191
|
+
deepagents: "deepagents";
|
|
192
|
+
fake: "fake";
|
|
193
|
+
"claude-code": "claude-code";
|
|
194
|
+
cloudcode: "cloudcode";
|
|
195
|
+
}>;
|
|
196
|
+
label: z.ZodString;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
task_kind: z.ZodEnum<{
|
|
199
|
+
validation: "validation";
|
|
200
|
+
planning: "planning";
|
|
201
|
+
"reverse-engineering": "reverse-engineering";
|
|
202
|
+
implementation: "implementation";
|
|
203
|
+
review: "review";
|
|
204
|
+
"plugin-execution": "plugin-execution";
|
|
205
|
+
"adr-governance": "adr-governance";
|
|
206
|
+
"quality-witness": "quality-witness";
|
|
207
|
+
"documentation-sync": "documentation-sync";
|
|
208
|
+
}>;
|
|
209
|
+
rank: z.ZodNumber;
|
|
210
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export declare const agentBindingResolutionSchema: z.ZodObject<{
|
|
213
|
+
schema_version: z.ZodLiteral<1>;
|
|
214
|
+
created_at: z.ZodString;
|
|
215
|
+
status: z.ZodEnum<{
|
|
216
|
+
resolved: "resolved";
|
|
217
|
+
fallback: "fallback";
|
|
218
|
+
}>;
|
|
219
|
+
request: z.ZodObject<{
|
|
220
|
+
schema_version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
221
|
+
feature_ref: z.ZodString;
|
|
222
|
+
task_kind: z.ZodEnum<{
|
|
223
|
+
validation: "validation";
|
|
224
|
+
planning: "planning";
|
|
225
|
+
"reverse-engineering": "reverse-engineering";
|
|
226
|
+
implementation: "implementation";
|
|
227
|
+
review: "review";
|
|
228
|
+
"plugin-execution": "plugin-execution";
|
|
229
|
+
"adr-governance": "adr-governance";
|
|
230
|
+
"quality-witness": "quality-witness";
|
|
231
|
+
"documentation-sync": "documentation-sync";
|
|
232
|
+
}>;
|
|
233
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
codex: "codex";
|
|
235
|
+
opencode: "opencode";
|
|
236
|
+
deepagents: "deepagents";
|
|
237
|
+
fake: "fake";
|
|
238
|
+
"claude-code": "claude-code";
|
|
239
|
+
cloudcode: "cloudcode";
|
|
240
|
+
}>>;
|
|
241
|
+
allowed_providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
242
|
+
codex: "codex";
|
|
243
|
+
opencode: "opencode";
|
|
244
|
+
deepagents: "deepagents";
|
|
245
|
+
fake: "fake";
|
|
246
|
+
"claude-code": "claude-code";
|
|
247
|
+
cloudcode: "cloudcode";
|
|
248
|
+
}>>>;
|
|
249
|
+
statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
250
|
+
experimental: "experimental";
|
|
251
|
+
disabled: "disabled";
|
|
252
|
+
active: "active";
|
|
253
|
+
}>>>;
|
|
254
|
+
trust_tiers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
255
|
+
experimental: "experimental";
|
|
256
|
+
blocked: "blocked";
|
|
257
|
+
"local-dev": "local-dev";
|
|
258
|
+
"enterprise-approved": "enterprise-approved";
|
|
259
|
+
}>>>;
|
|
260
|
+
require_edits: z.ZodDefault<z.ZodBoolean>;
|
|
261
|
+
require_background: z.ZodDefault<z.ZodBoolean>;
|
|
262
|
+
require_worktree_isolation: z.ZodDefault<z.ZodBoolean>;
|
|
263
|
+
require_mcp: z.ZodDefault<z.ZodBoolean>;
|
|
264
|
+
require_skills: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
require_structured_evidence: z.ZodDefault<z.ZodBoolean>;
|
|
266
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
selected: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
adapter_ref: z.ZodObject<{
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
provider: z.ZodEnum<{
|
|
272
|
+
codex: "codex";
|
|
273
|
+
opencode: "opencode";
|
|
274
|
+
deepagents: "deepagents";
|
|
275
|
+
fake: "fake";
|
|
276
|
+
"claude-code": "claude-code";
|
|
277
|
+
cloudcode: "cloudcode";
|
|
278
|
+
}>;
|
|
279
|
+
label: z.ZodString;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
task_kind: z.ZodEnum<{
|
|
282
|
+
validation: "validation";
|
|
283
|
+
planning: "planning";
|
|
284
|
+
"reverse-engineering": "reverse-engineering";
|
|
285
|
+
implementation: "implementation";
|
|
286
|
+
review: "review";
|
|
287
|
+
"plugin-execution": "plugin-execution";
|
|
288
|
+
"adr-governance": "adr-governance";
|
|
289
|
+
"quality-witness": "quality-witness";
|
|
290
|
+
"documentation-sync": "documentation-sync";
|
|
291
|
+
}>;
|
|
292
|
+
rank: z.ZodNumber;
|
|
293
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
295
|
+
candidates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
296
|
+
adapter_ref: z.ZodObject<{
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
provider: z.ZodEnum<{
|
|
299
|
+
codex: "codex";
|
|
300
|
+
opencode: "opencode";
|
|
301
|
+
deepagents: "deepagents";
|
|
302
|
+
fake: "fake";
|
|
303
|
+
"claude-code": "claude-code";
|
|
304
|
+
cloudcode: "cloudcode";
|
|
305
|
+
}>;
|
|
306
|
+
label: z.ZodString;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
task_kind: z.ZodEnum<{
|
|
309
|
+
validation: "validation";
|
|
310
|
+
planning: "planning";
|
|
311
|
+
"reverse-engineering": "reverse-engineering";
|
|
312
|
+
implementation: "implementation";
|
|
313
|
+
review: "review";
|
|
314
|
+
"plugin-execution": "plugin-execution";
|
|
315
|
+
"adr-governance": "adr-governance";
|
|
316
|
+
"quality-witness": "quality-witness";
|
|
317
|
+
"documentation-sync": "documentation-sync";
|
|
318
|
+
}>;
|
|
319
|
+
rank: z.ZodNumber;
|
|
320
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
321
|
+
}, z.core.$strip>>>;
|
|
322
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
323
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
strategy: z.ZodEnum<{
|
|
325
|
+
"manual-agent-selection": "manual-agent-selection";
|
|
326
|
+
"local-human-execution": "local-human-execution";
|
|
327
|
+
"no-compatible-agent": "no-compatible-agent";
|
|
328
|
+
}>;
|
|
329
|
+
message: z.ZodString;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
export type AgentProvider = z.infer<typeof agentProviderSchema>;
|
|
333
|
+
export type AgentTaskKind = z.infer<typeof agentTaskKindSchema>;
|
|
334
|
+
export type AgentTrustTier = z.infer<typeof trustTierSchema>;
|
|
335
|
+
export type AgentRiskTier = z.infer<typeof riskTierSchema>;
|
|
336
|
+
export type AgentBindingCapability = z.infer<typeof agentBindingCapabilitySchema>;
|
|
337
|
+
export type AgentBindingAdapter = z.infer<typeof agentBindingAdapterSchema>;
|
|
338
|
+
export type AgentBindingAdapterInput = z.input<typeof agentBindingAdapterSchema>;
|
|
339
|
+
export type AgentBindingResolutionRequest = z.infer<typeof agentBindingResolutionRequestSchema>;
|
|
340
|
+
export type AgentBindingResolutionRequestInput = z.input<typeof agentBindingResolutionRequestSchema>;
|
|
341
|
+
export type AgentBindingCandidate = z.infer<typeof agentBindingCandidateSchema>;
|
|
342
|
+
export type AgentBindingResolution = z.infer<typeof agentBindingResolutionSchema>;
|
|
343
|
+
export declare function builtInAgentBindingAdapters(): AgentBindingAdapter[];
|
|
344
|
+
export declare function resolveAgentBindingAdapter(adapters: AgentBindingAdapterInput[], request: AgentBindingResolutionRequestInput): AgentBindingResolution;
|
|
345
|
+
export {};
|
|
346
|
+
//# sourceMappingURL=agent-binding.d.ts.map
|