@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
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { buildDevTrackApiScaffoldDryRunPlan, } from './devtrack-api-appliance.js';
|
|
3
|
+
import { FeatureLintService } from './services/feature-lint.service.js';
|
|
4
|
+
import { buildPluginRuntimeInvocationPlan, pluginRuntimeInvocationRequestSchema, } from './plugin-broker.js';
|
|
5
|
+
import { loadPluginManifest } from './plugin-manifest.js';
|
|
6
|
+
import { createPluginRegistryState } from './plugin-registry.js';
|
|
7
|
+
export async function inspectPluginManifestFromFile(manifestPath) {
|
|
8
|
+
const manifest = await loadPluginManifest(manifestPath);
|
|
9
|
+
return buildInspectResult(manifest, manifestPath);
|
|
10
|
+
}
|
|
11
|
+
export async function planPluginInvocationFromFile(manifestPath, options) {
|
|
12
|
+
const manifest = await loadPluginManifest(manifestPath);
|
|
13
|
+
const createdAt = options.created_at ?? new Date().toISOString();
|
|
14
|
+
const registry = createPluginRegistryState([
|
|
15
|
+
{
|
|
16
|
+
manifest,
|
|
17
|
+
source: {
|
|
18
|
+
type: 'workspace',
|
|
19
|
+
uri: normalizeManifestPath(manifestPath),
|
|
20
|
+
checksum: manifest.supply_chain.checksum,
|
|
21
|
+
},
|
|
22
|
+
registered_at: createdAt,
|
|
23
|
+
},
|
|
24
|
+
], createdAt);
|
|
25
|
+
const request = pluginRuntimeInvocationRequestSchema.parse({
|
|
26
|
+
feature_ref: options.feature_ref,
|
|
27
|
+
capability: options.capability,
|
|
28
|
+
inputs: options.inputs ?? {},
|
|
29
|
+
skill_ref: options.skill_ref,
|
|
30
|
+
technology: options.technology,
|
|
31
|
+
requested_write_scope: options.requested_write_scope ?? [],
|
|
32
|
+
require_apply: options.mode === 'apply',
|
|
33
|
+
created_at: createdAt,
|
|
34
|
+
mode: options.mode ?? 'dry-run',
|
|
35
|
+
operation_id: options.operation_id,
|
|
36
|
+
approval_grants: options.approval_grants ?? [],
|
|
37
|
+
source_checksum: options.source_checksum,
|
|
38
|
+
planned_writes: options.planned_writes ?? [],
|
|
39
|
+
requested_env: options.requested_env ?? [],
|
|
40
|
+
network_domains: options.network_domains ?? [],
|
|
41
|
+
process_spawn_requested: options.process_spawn_requested ?? false,
|
|
42
|
+
});
|
|
43
|
+
const plan = buildPluginRuntimeInvocationPlan(registry, request);
|
|
44
|
+
return {
|
|
45
|
+
schema_version: 1,
|
|
46
|
+
manifest_path: normalizeManifestPath(manifestPath),
|
|
47
|
+
plan,
|
|
48
|
+
workcell_runner: buildWorkcellRunner(manifest, plan),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export async function planDevTrackApiScaffoldDryRunFromFile(manifestPath, options) {
|
|
52
|
+
const foundationLintGate = await evaluateFoundationScaffoldGate(options.feature_ref);
|
|
53
|
+
if (foundationLintGate.blocked) {
|
|
54
|
+
return {
|
|
55
|
+
schema_version: 1,
|
|
56
|
+
manifest_path: normalizeManifestPath(manifestPath),
|
|
57
|
+
plan: {
|
|
58
|
+
schema_version: 1,
|
|
59
|
+
status: 'blocked',
|
|
60
|
+
created_at: options.created_at ?? new Date().toISOString(),
|
|
61
|
+
operation_id: options.operation_id,
|
|
62
|
+
project_name: options.project_name,
|
|
63
|
+
package_name: options.package_name ?? options.project_name,
|
|
64
|
+
artifacts: [],
|
|
65
|
+
issues: foundationLintGate.issues,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const manifest = await loadPluginManifest(manifestPath);
|
|
70
|
+
return {
|
|
71
|
+
schema_version: 1,
|
|
72
|
+
manifest_path: normalizeManifestPath(manifestPath),
|
|
73
|
+
plan: buildDevTrackApiScaffoldDryRunPlan(manifest, options),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
async function evaluateFoundationScaffoldGate(featureRef) {
|
|
77
|
+
if (!/^FEAT-\d{4}$/u.test(featureRef)) {
|
|
78
|
+
return { blocked: false, issues: [] };
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
const report = await new FeatureLintService().execute(process.cwd(), featureRef);
|
|
82
|
+
const foundationErrors = report.findings
|
|
83
|
+
.filter((finding) => finding.severity === 'error' && finding.code.startsWith('foundation_'))
|
|
84
|
+
.map((finding) => `${finding.code}: ${finding.message}`);
|
|
85
|
+
return {
|
|
86
|
+
blocked: foundationErrors.length > 0,
|
|
87
|
+
issues: foundationErrors,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return { blocked: false, issues: [] };
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function buildInspectResult(manifest, manifestPath) {
|
|
95
|
+
return {
|
|
96
|
+
schema_version: 1,
|
|
97
|
+
manifest_path: normalizeManifestPath(manifestPath),
|
|
98
|
+
plugin_ref: {
|
|
99
|
+
id: manifest.id,
|
|
100
|
+
version: manifest.version,
|
|
101
|
+
},
|
|
102
|
+
contract_version: manifest.contract_version,
|
|
103
|
+
technology: manifest.technology,
|
|
104
|
+
capabilities: manifest.capabilities.map((capability) => ({
|
|
105
|
+
name: capability.name,
|
|
106
|
+
supports_dry_run: capability.supports_dry_run,
|
|
107
|
+
supports_apply: capability.supports_apply,
|
|
108
|
+
supports_rollback: capability.supports_rollback,
|
|
109
|
+
write_scope: capability.write_scope,
|
|
110
|
+
approval: capability.approval,
|
|
111
|
+
risk_tier: capability.risk_tier,
|
|
112
|
+
})),
|
|
113
|
+
execution: {
|
|
114
|
+
command: manifest.execution.command,
|
|
115
|
+
args: manifest.execution.args,
|
|
116
|
+
timeout_seconds: manifest.execution.timeout_seconds,
|
|
117
|
+
network: manifest.execution.network,
|
|
118
|
+
process_spawn: manifest.execution.process_spawn,
|
|
119
|
+
},
|
|
120
|
+
governance: {
|
|
121
|
+
owner: manifest.governance.owner,
|
|
122
|
+
trust_tier: manifest.governance.trust_tier,
|
|
123
|
+
risk_tier: manifest.governance.risk_tier,
|
|
124
|
+
policy_packs: manifest.governance.policy_packs,
|
|
125
|
+
},
|
|
126
|
+
validation: manifest.validation,
|
|
127
|
+
compression: manifest.compression,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function buildWorkcellRunner(manifest, plan) {
|
|
131
|
+
const capability = manifest.capabilities.find((entry) => entry.name === plan.request.capability);
|
|
132
|
+
const envelope = plan.envelope;
|
|
133
|
+
const executable = envelope?.command.executable ?? manifest.execution.command;
|
|
134
|
+
const args = envelope?.command.args ?? manifest.execution.args;
|
|
135
|
+
const workingDirectory = envelope?.command.working_directory ?? manifest.execution.working_directory;
|
|
136
|
+
const commandExcluded = isCompressionExcluded(executable, manifest.compression.exclude_commands);
|
|
137
|
+
const compressionEnabled = manifest.compression.enabled && manifest.compression.engine !== 'none';
|
|
138
|
+
const compressionApplied = compressionEnabled && !commandExcluded;
|
|
139
|
+
const wrappedCommand = compressionApplied
|
|
140
|
+
? {
|
|
141
|
+
executable: 'codesdd-compress',
|
|
142
|
+
args: [
|
|
143
|
+
'--engine',
|
|
144
|
+
manifest.compression.engine,
|
|
145
|
+
'--tee',
|
|
146
|
+
manifest.compression.tee,
|
|
147
|
+
'--max-output-tokens',
|
|
148
|
+
String(manifest.compression.max_output_tokens),
|
|
149
|
+
'--',
|
|
150
|
+
executable,
|
|
151
|
+
...args,
|
|
152
|
+
],
|
|
153
|
+
}
|
|
154
|
+
: null;
|
|
155
|
+
return {
|
|
156
|
+
schema_version: 1,
|
|
157
|
+
status: plan.status,
|
|
158
|
+
parameterization: {
|
|
159
|
+
owner: 'llm',
|
|
160
|
+
source: 'runtime-plan-request',
|
|
161
|
+
feature_ref: plan.request.feature_ref,
|
|
162
|
+
capability: plan.request.capability,
|
|
163
|
+
},
|
|
164
|
+
execution: {
|
|
165
|
+
owner: 'plugin-cli',
|
|
166
|
+
mode: plan.request.mode,
|
|
167
|
+
command: {
|
|
168
|
+
executable,
|
|
169
|
+
args,
|
|
170
|
+
working_directory: workingDirectory,
|
|
171
|
+
},
|
|
172
|
+
compression: {
|
|
173
|
+
mode: manifest.compression.mode,
|
|
174
|
+
enabled: compressionEnabled,
|
|
175
|
+
engine: manifest.compression.engine,
|
|
176
|
+
tee: manifest.compression.tee,
|
|
177
|
+
max_output_tokens: manifest.compression.max_output_tokens,
|
|
178
|
+
exclude_commands: manifest.compression.exclude_commands,
|
|
179
|
+
applied: compressionApplied,
|
|
180
|
+
wrapped_command: wrappedCommand,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
evidence: {
|
|
184
|
+
required: envelope?.evidence_requirements ?? [],
|
|
185
|
+
},
|
|
186
|
+
rollback: {
|
|
187
|
+
supported: capability?.supports_rollback ?? false,
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function isCompressionExcluded(executable, excludes) {
|
|
192
|
+
const baseName = path.basename(executable);
|
|
193
|
+
return excludes.some((entry) => entry === executable || entry === baseName);
|
|
194
|
+
}
|
|
195
|
+
function normalizeManifestPath(manifestPath) {
|
|
196
|
+
return path.normalize(manifestPath);
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=plugin-cli.js.map
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type PluginArtifactManifest } from './plugin-broker.js';
|
|
3
|
+
import { type PluginManifest } from './plugin-manifest.js';
|
|
4
|
+
import { type PluginPolicyEvaluation } from './plugin-policy.js';
|
|
5
|
+
import { type PluginPolicyPackEvaluation } from './plugin-policy-pack.js';
|
|
6
|
+
export declare const pluginValidationEvidenceSchema: z.ZodObject<{
|
|
7
|
+
command: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<{
|
|
9
|
+
failed: "failed";
|
|
10
|
+
pending: "pending";
|
|
11
|
+
passed: "passed";
|
|
12
|
+
skipped: "skipped";
|
|
13
|
+
}>;
|
|
14
|
+
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
15
|
+
coverage: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
statements: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
branches: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
functions: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const pluginValidationManifestSchema: z.ZodObject<{
|
|
23
|
+
schema_version: z.ZodLiteral<1>;
|
|
24
|
+
operation_id: z.ZodString;
|
|
25
|
+
generated_at: z.ZodString;
|
|
26
|
+
feature_ref: z.ZodString;
|
|
27
|
+
plugin_ref: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
version: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
capability: z.ZodString;
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
partial: "partial";
|
|
34
|
+
failed: "failed";
|
|
35
|
+
pending: "pending";
|
|
36
|
+
passed: "passed";
|
|
37
|
+
}>;
|
|
38
|
+
validations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
39
|
+
command: z.ZodString;
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
failed: "failed";
|
|
42
|
+
pending: "pending";
|
|
43
|
+
passed: "passed";
|
|
44
|
+
skipped: "skipped";
|
|
45
|
+
}>;
|
|
46
|
+
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
47
|
+
coverage: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
statements: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
branches: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
functions: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const pluginEvidenceManifestSchema: z.ZodObject<{
|
|
56
|
+
schema_version: z.ZodLiteral<1>;
|
|
57
|
+
operation_id: z.ZodString;
|
|
58
|
+
generated_at: z.ZodString;
|
|
59
|
+
feature_ref: z.ZodString;
|
|
60
|
+
plugin_ref: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
version: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
capability: z.ZodString;
|
|
65
|
+
artifact_manifest: z.ZodObject<{
|
|
66
|
+
schema_version: z.ZodLiteral<1>;
|
|
67
|
+
operation_id: z.ZodString;
|
|
68
|
+
generated_at: z.ZodString;
|
|
69
|
+
feature_ref: z.ZodString;
|
|
70
|
+
plugin_ref: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
version: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
capability: z.ZodString;
|
|
75
|
+
mode: z.ZodEnum<{
|
|
76
|
+
apply: "apply";
|
|
77
|
+
"dry-run": "dry-run";
|
|
78
|
+
rollback: "rollback";
|
|
79
|
+
}>;
|
|
80
|
+
status: z.ZodEnum<{
|
|
81
|
+
planned: "planned";
|
|
82
|
+
applied: "applied";
|
|
83
|
+
rolled_back: "rolled_back";
|
|
84
|
+
failed: "failed";
|
|
85
|
+
}>;
|
|
86
|
+
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
87
|
+
path: z.ZodString;
|
|
88
|
+
operation: z.ZodEnum<{
|
|
89
|
+
created: "created";
|
|
90
|
+
planned: "planned";
|
|
91
|
+
modified: "modified";
|
|
92
|
+
deleted: "deleted";
|
|
93
|
+
unchanged: "unchanged";
|
|
94
|
+
validated: "validated";
|
|
95
|
+
}>;
|
|
96
|
+
reason: z.ZodString;
|
|
97
|
+
checksum_before: z.ZodOptional<z.ZodString>;
|
|
98
|
+
checksum_after: z.ZodOptional<z.ZodString>;
|
|
99
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
101
|
+
validation_evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
102
|
+
command: z.ZodString;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
failed: "failed";
|
|
105
|
+
pending: "pending";
|
|
106
|
+
passed: "passed";
|
|
107
|
+
skipped: "skipped";
|
|
108
|
+
}>;
|
|
109
|
+
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
validation_manifest: z.ZodObject<{
|
|
113
|
+
schema_version: z.ZodLiteral<1>;
|
|
114
|
+
operation_id: z.ZodString;
|
|
115
|
+
generated_at: z.ZodString;
|
|
116
|
+
feature_ref: z.ZodString;
|
|
117
|
+
plugin_ref: z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
version: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
capability: z.ZodString;
|
|
122
|
+
status: z.ZodEnum<{
|
|
123
|
+
partial: "partial";
|
|
124
|
+
failed: "failed";
|
|
125
|
+
pending: "pending";
|
|
126
|
+
passed: "passed";
|
|
127
|
+
}>;
|
|
128
|
+
validations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
129
|
+
command: z.ZodString;
|
|
130
|
+
status: z.ZodEnum<{
|
|
131
|
+
failed: "failed";
|
|
132
|
+
pending: "pending";
|
|
133
|
+
passed: "passed";
|
|
134
|
+
skipped: "skipped";
|
|
135
|
+
}>;
|
|
136
|
+
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
137
|
+
coverage: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
statements: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
branches: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
functions: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
policy_evaluation: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
schema_version: z.ZodLiteral<1>;
|
|
147
|
+
plugin_ref: z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
version: z.ZodString;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
capability: z.ZodString;
|
|
152
|
+
mode: z.ZodEnum<{
|
|
153
|
+
apply: "apply";
|
|
154
|
+
"dry-run": "dry-run";
|
|
155
|
+
rollback: "rollback";
|
|
156
|
+
}>;
|
|
157
|
+
decision: z.ZodEnum<{
|
|
158
|
+
deny: "deny";
|
|
159
|
+
warn: "warn";
|
|
160
|
+
allow: "allow";
|
|
161
|
+
}>;
|
|
162
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
163
|
+
code: z.ZodString;
|
|
164
|
+
severity: z.ZodEnum<{
|
|
165
|
+
deny: "deny";
|
|
166
|
+
warn: "warn";
|
|
167
|
+
}>;
|
|
168
|
+
message: z.ZodString;
|
|
169
|
+
path: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
policy_pack_evaluation: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
schema_version: z.ZodLiteral<1>;
|
|
174
|
+
plugin_ref: z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
version: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
decision: z.ZodEnum<{
|
|
179
|
+
deny: "deny";
|
|
180
|
+
warn: "warn";
|
|
181
|
+
allow: "allow";
|
|
182
|
+
}>;
|
|
183
|
+
declared_policy_packs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
184
|
+
applied_policy_packs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
185
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
186
|
+
code: z.ZodString;
|
|
187
|
+
severity: z.ZodEnum<{
|
|
188
|
+
deny: "deny";
|
|
189
|
+
warn: "warn";
|
|
190
|
+
}>;
|
|
191
|
+
message: z.ZodString;
|
|
192
|
+
policy_pack: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
traceability_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
196
|
+
quality_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
197
|
+
residual_risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
198
|
+
code: z.ZodString;
|
|
199
|
+
severity: z.ZodEnum<{
|
|
200
|
+
low: "low";
|
|
201
|
+
medium: "medium";
|
|
202
|
+
high: "high";
|
|
203
|
+
critical: "critical";
|
|
204
|
+
}>;
|
|
205
|
+
description: z.ZodString;
|
|
206
|
+
mitigation: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export declare const pluginComplianceCriterionSchema: z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
label: z.ZodString;
|
|
213
|
+
status: z.ZodEnum<{
|
|
214
|
+
pass: "pass";
|
|
215
|
+
fail: "fail";
|
|
216
|
+
warn: "warn";
|
|
217
|
+
}>;
|
|
218
|
+
score: z.ZodNumber;
|
|
219
|
+
max_score: z.ZodNumber;
|
|
220
|
+
evidence: z.ZodString;
|
|
221
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export declare const pluginComplianceIndexSchema: z.ZodObject<{
|
|
224
|
+
schema_version: z.ZodLiteral<1>;
|
|
225
|
+
generated_at: z.ZodString;
|
|
226
|
+
feature_ref: z.ZodString;
|
|
227
|
+
operation_id: z.ZodString;
|
|
228
|
+
plugin_ref: z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
version: z.ZodString;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
capability: z.ZodString;
|
|
233
|
+
score: z.ZodNumber;
|
|
234
|
+
decision: z.ZodEnum<{
|
|
235
|
+
warning: "warning";
|
|
236
|
+
compliant: "compliant";
|
|
237
|
+
"non-compliant": "non-compliant";
|
|
238
|
+
}>;
|
|
239
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
label: z.ZodString;
|
|
242
|
+
status: z.ZodEnum<{
|
|
243
|
+
pass: "pass";
|
|
244
|
+
fail: "fail";
|
|
245
|
+
warn: "warn";
|
|
246
|
+
}>;
|
|
247
|
+
score: z.ZodNumber;
|
|
248
|
+
max_score: z.ZodNumber;
|
|
249
|
+
evidence: z.ZodString;
|
|
250
|
+
issues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
evidence_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export type PluginValidationManifest = z.infer<typeof pluginValidationManifestSchema>;
|
|
255
|
+
export type PluginEvidenceManifest = z.infer<typeof pluginEvidenceManifestSchema>;
|
|
256
|
+
export type PluginComplianceCriterion = z.infer<typeof pluginComplianceCriterionSchema>;
|
|
257
|
+
export type PluginComplianceIndex = z.infer<typeof pluginComplianceIndexSchema>;
|
|
258
|
+
export interface BuildPluginEvidenceManifestInput {
|
|
259
|
+
artifact_manifest: PluginArtifactManifest;
|
|
260
|
+
validation_manifest?: PluginValidationManifest;
|
|
261
|
+
policy_evaluation?: PluginPolicyEvaluation;
|
|
262
|
+
policy_pack_evaluation?: PluginPolicyPackEvaluation;
|
|
263
|
+
traceability_refs?: string[];
|
|
264
|
+
quality_refs?: string[];
|
|
265
|
+
residual_risks?: PluginEvidenceManifest['residual_risks'];
|
|
266
|
+
metadata?: Record<string, unknown>;
|
|
267
|
+
}
|
|
268
|
+
export interface BuildPluginComplianceIndexInput {
|
|
269
|
+
manifest: PluginManifest;
|
|
270
|
+
evidence_manifest: PluginEvidenceManifest;
|
|
271
|
+
generated_at?: string;
|
|
272
|
+
}
|
|
273
|
+
export declare function buildPluginEvidenceManifest(input: BuildPluginEvidenceManifestInput): PluginEvidenceManifest;
|
|
274
|
+
export declare function buildPluginComplianceIndex(input: BuildPluginComplianceIndexInput): PluginComplianceIndex;
|
|
275
|
+
//# sourceMappingURL=plugin-evidence.d.ts.map
|