@shrkcrft/inspector 0.1.0-alpha.2
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/acceptance-replay.d.ts +63 -0
- package/dist/acceptance-replay.d.ts.map +1 -0
- package/dist/acceptance-replay.js +240 -0
- package/dist/action-hint-diagnostics.d.ts +32 -0
- package/dist/action-hint-diagnostics.d.ts.map +1 -0
- package/dist/action-hint-diagnostics.js +133 -0
- package/dist/adoption-check.d.ts +28 -0
- package/dist/adoption-check.d.ts.map +1 -0
- package/dist/adoption-check.js +181 -0
- package/dist/adoption-checkpoint.d.ts +97 -0
- package/dist/adoption-checkpoint.d.ts.map +1 -0
- package/dist/adoption-checkpoint.js +209 -0
- package/dist/adoption-merge-preview.d.ts +28 -0
- package/dist/adoption-merge-preview.d.ts.map +1 -0
- package/dist/adoption-merge-preview.js +254 -0
- package/dist/adoption-report-renderer.d.ts +33 -0
- package/dist/adoption-report-renderer.d.ts.map +1 -0
- package/dist/adoption-report-renderer.js +257 -0
- package/dist/adoption-state.d.ts +100 -0
- package/dist/adoption-state.d.ts.map +1 -0
- package/dist/adoption-state.js +296 -0
- package/dist/adoption-three-way.d.ts +46 -0
- package/dist/adoption-three-way.d.ts.map +1 -0
- package/dist/adoption-three-way.js +181 -0
- package/dist/agent-brief.d.ts +77 -0
- package/dist/agent-brief.d.ts.map +1 -0
- package/dist/agent-brief.js +490 -0
- package/dist/agent-contract-gate.d.ts +108 -0
- package/dist/agent-contract-gate.d.ts.map +1 -0
- package/dist/agent-contract-gate.js +412 -0
- package/dist/agent-contract-templates.d.ts +63 -0
- package/dist/agent-contract-templates.d.ts.map +1 -0
- package/dist/agent-contract-templates.js +346 -0
- package/dist/agent-contract.d.ts +65 -0
- package/dist/agent-contract.d.ts.map +1 -0
- package/dist/agent-contract.js +555 -0
- package/dist/agent-handoff.d.ts +123 -0
- package/dist/agent-handoff.d.ts.map +1 -0
- package/dist/agent-handoff.js +470 -0
- package/dist/agent-instructions.d.ts +2 -0
- package/dist/agent-instructions.d.ts.map +1 -0
- package/dist/agent-instructions.js +21 -0
- package/dist/agent-orchestration.d.ts +61 -0
- package/dist/agent-orchestration.d.ts.map +1 -0
- package/dist/agent-orchestration.js +285 -0
- package/dist/agent-task-prep.d.ts +31 -0
- package/dist/agent-task-prep.d.ts.map +1 -0
- package/dist/agent-task-prep.js +73 -0
- package/dist/ai-readiness.d.ts +30 -0
- package/dist/ai-readiness.d.ts.map +1 -0
- package/dist/ai-readiness.js +279 -0
- package/dist/api-report.d.ts +51 -0
- package/dist/api-report.d.ts.map +1 -0
- package/dist/api-report.js +254 -0
- package/dist/apply-dispatch-trace.d.ts +93 -0
- package/dist/apply-dispatch-trace.d.ts.map +1 -0
- package/dist/apply-dispatch-trace.js +283 -0
- package/dist/apply-gate-result.d.ts +52 -0
- package/dist/apply-gate-result.d.ts.map +1 -0
- package/dist/apply-gate-result.js +44 -0
- package/dist/architecture-map.d.ts +118 -0
- package/dist/architecture-map.d.ts.map +1 -0
- package/dist/architecture-map.js +543 -0
- package/dist/area-explore.d.ts +75 -0
- package/dist/area-explore.d.ts.map +1 -0
- package/dist/area-explore.js +438 -0
- package/dist/area-map.d.ts +43 -0
- package/dist/area-map.d.ts.map +1 -0
- package/dist/area-map.js +197 -0
- package/dist/asset-provenance.d.ts +123 -0
- package/dist/asset-provenance.d.ts.map +1 -0
- package/dist/asset-provenance.js +209 -0
- package/dist/barrel-operations.d.ts +45 -0
- package/dist/barrel-operations.d.ts.map +1 -0
- package/dist/barrel-operations.js +159 -0
- package/dist/boundaries-changed-only.d.ts +62 -0
- package/dist/boundaries-changed-only.d.ts.map +1 -0
- package/dist/boundaries-changed-only.js +97 -0
- package/dist/boundary-suggestions.d.ts +20 -0
- package/dist/boundary-suggestions.d.ts.map +1 -0
- package/dist/boundary-suggestions.js +51 -0
- package/dist/bundle-diff.d.ts +98 -0
- package/dist/bundle-diff.d.ts.map +1 -0
- package/dist/bundle-diff.js +531 -0
- package/dist/bundle-replay.d.ts +68 -0
- package/dist/bundle-replay.d.ts.map +1 -0
- package/dist/bundle-replay.js +273 -0
- package/dist/bundle-validate-html.d.ts +11 -0
- package/dist/bundle-validate-html.d.ts.map +1 -0
- package/dist/bundle-validate-html.js +60 -0
- package/dist/change-intent.d.ts +36 -0
- package/dist/change-intent.d.ts.map +1 -0
- package/dist/change-intent.js +259 -0
- package/dist/changed-preflight.d.ts +59 -0
- package/dist/changed-preflight.d.ts.map +1 -0
- package/dist/changed-preflight.js +358 -0
- package/dist/changed-scope.d.ts +112 -0
- package/dist/changed-scope.d.ts.map +1 -0
- package/dist/changed-scope.js +172 -0
- package/dist/changes-summary.d.ts +87 -0
- package/dist/changes-summary.d.ts.map +1 -0
- package/dist/changes-summary.js +323 -0
- package/dist/check-result-v1.d.ts +90 -0
- package/dist/check-result-v1.d.ts.map +1 -0
- package/dist/check-result-v1.js +335 -0
- package/dist/ci-integrity-report.d.ts +38 -0
- package/dist/ci-integrity-report.d.ts.map +1 -0
- package/dist/ci-integrity-report.js +324 -0
- package/dist/ci-permissions-fix.d.ts +38 -0
- package/dist/ci-permissions-fix.d.ts.map +1 -0
- package/dist/ci-permissions-fix.js +201 -0
- package/dist/ci-permissions.d.ts +51 -0
- package/dist/ci-permissions.d.ts.map +1 -0
- package/dist/ci-permissions.js +431 -0
- package/dist/ci-predict.d.ts +42 -0
- package/dist/ci-predict.d.ts.map +1 -0
- package/dist/ci-predict.js +300 -0
- package/dist/ci-scaffold.d.ts +47 -0
- package/dist/ci-scaffold.d.ts.map +1 -0
- package/dist/ci-scaffold.js +638 -0
- package/dist/codemod-assist.d.ts +97 -0
- package/dist/codemod-assist.d.ts.map +1 -0
- package/dist/codemod-assist.js +261 -0
- package/dist/command-recommender.d.ts +25 -0
- package/dist/command-recommender.d.ts.map +1 -0
- package/dist/command-recommender.js +145 -0
- package/dist/command-suggester.d.ts +61 -0
- package/dist/command-suggester.d.ts.map +1 -0
- package/dist/command-suggester.js +159 -0
- package/dist/command-taxonomy.d.ts +38 -0
- package/dist/command-taxonomy.d.ts.map +1 -0
- package/dist/command-taxonomy.js +164 -0
- package/dist/compliance-evidence.d.ts +58 -0
- package/dist/compliance-evidence.d.ts.map +1 -0
- package/dist/compliance-evidence.js +260 -0
- package/dist/compliance-profiles.d.ts +42 -0
- package/dist/compliance-profiles.d.ts.map +1 -0
- package/dist/compliance-profiles.js +171 -0
- package/dist/construct-adoption-diff.d.ts +55 -0
- package/dist/construct-adoption-diff.d.ts.map +1 -0
- package/dist/construct-adoption-diff.js +331 -0
- package/dist/construct-adoption.d.ts +71 -0
- package/dist/construct-adoption.d.ts.map +1 -0
- package/dist/construct-adoption.js +331 -0
- package/dist/construct-inference.d.ts +44 -0
- package/dist/construct-inference.d.ts.map +1 -0
- package/dist/construct-inference.js +391 -0
- package/dist/construct-registry.d.ts +32 -0
- package/dist/construct-registry.d.ts.map +1 -0
- package/dist/construct-registry.js +198 -0
- package/dist/contract-file-rule.d.ts +37 -0
- package/dist/contract-file-rule.d.ts.map +1 -0
- package/dist/contract-file-rule.js +99 -0
- package/dist/contract-template-registry.d.ts +28 -0
- package/dist/contract-template-registry.d.ts.map +1 -0
- package/dist/contract-template-registry.js +161 -0
- package/dist/contradictions.d.ts +52 -0
- package/dist/contradictions.d.ts.map +1 -0
- package/dist/contradictions.js +391 -0
- package/dist/convention-registry.d.ts +44 -0
- package/dist/convention-registry.d.ts.map +1 -0
- package/dist/convention-registry.js +195 -0
- package/dist/coverage-report.d.ts +25 -0
- package/dist/coverage-report.d.ts.map +1 -0
- package/dist/coverage-report.js +190 -0
- package/dist/custom-checks.d.ts +146 -0
- package/dist/custom-checks.d.ts.map +1 -0
- package/dist/custom-checks.js +260 -0
- package/dist/dashboard/dashboard-data.d.ts +59 -0
- package/dist/dashboard/dashboard-data.d.ts.map +1 -0
- package/dist/dashboard/dashboard-data.js +653 -0
- package/dist/dashboard-export.d.ts +67 -0
- package/dist/dashboard-export.d.ts.map +1 -0
- package/dist/dashboard-export.js +203 -0
- package/dist/decision-records.d.ts +47 -0
- package/dist/decision-records.d.ts.map +1 -0
- package/dist/decision-records.js +255 -0
- package/dist/demo-package.d.ts +49 -0
- package/dist/demo-package.d.ts.map +1 -0
- package/dist/demo-package.js +305 -0
- package/dist/demo-script.d.ts +25 -0
- package/dist/demo-script.d.ts.map +1 -0
- package/dist/demo-script.js +198 -0
- package/dist/demo-workflow.d.ts +28 -0
- package/dist/demo-workflow.d.ts.map +1 -0
- package/dist/demo-workflow.js +178 -0
- package/dist/dev-cycle.d.ts +41 -0
- package/dist/dev-cycle.d.ts.map +1 -0
- package/dist/dev-cycle.js +94 -0
- package/dist/dev-session-html.d.ts +13 -0
- package/dist/dev-session-html.d.ts.map +1 -0
- package/dist/dev-session-html.js +223 -0
- package/dist/dev-session-report.d.ts +11 -0
- package/dist/dev-session-report.d.ts.map +1 -0
- package/dist/dev-session-report.js +206 -0
- package/dist/dev-session.d.ts +257 -0
- package/dist/dev-session.d.ts.map +1 -0
- package/dist/dev-session.js +568 -0
- package/dist/diagnostics-suggest.d.ts +17 -0
- package/dist/diagnostics-suggest.d.ts.map +1 -0
- package/dist/diagnostics-suggest.js +69 -0
- package/dist/docs-check.d.ts +40 -0
- package/dist/docs-check.d.ts.map +1 -0
- package/dist/docs-check.js +221 -0
- package/dist/doctor-acknowledgements.d.ts +69 -0
- package/dist/doctor-acknowledgements.d.ts.map +1 -0
- package/dist/doctor-acknowledgements.js +150 -0
- package/dist/doctor-result.d.ts +51 -0
- package/dist/doctor-result.d.ts.map +1 -0
- package/dist/doctor-result.js +7 -0
- package/dist/doctor-suppressions.d.ts +91 -0
- package/dist/doctor-suppressions.d.ts.map +1 -0
- package/dist/doctor-suppressions.js +238 -0
- package/dist/drift-baseline.d.ts +29 -0
- package/dist/drift-baseline.d.ts.map +1 -0
- package/dist/drift-baseline.js +80 -0
- package/dist/drift.d.ts +38 -0
- package/dist/drift.d.ts.map +1 -0
- package/dist/drift.js +107 -0
- package/dist/entrypoint-matrix.d.ts +61 -0
- package/dist/entrypoint-matrix.d.ts.map +1 -0
- package/dist/entrypoint-matrix.js +221 -0
- package/dist/examples-check.d.ts +36 -0
- package/dist/examples-check.d.ts.map +1 -0
- package/dist/examples-check.js +168 -0
- package/dist/execution-graph.d.ts +98 -0
- package/dist/execution-graph.d.ts.map +1 -0
- package/dist/execution-graph.js +484 -0
- package/dist/export-bundle.d.ts +10 -0
- package/dist/export-bundle.d.ts.map +1 -0
- package/dist/export-bundle.js +90 -0
- package/dist/failure-diagnostics.d.ts +63 -0
- package/dist/failure-diagnostics.d.ts.map +1 -0
- package/dist/failure-diagnostics.js +243 -0
- package/dist/feature-bundle.d.ts +111 -0
- package/dist/feature-bundle.d.ts.map +1 -0
- package/dist/feature-bundle.js +211 -0
- package/dist/feedback-actions-v2.d.ts +65 -0
- package/dist/feedback-actions-v2.d.ts.map +1 -0
- package/dist/feedback-actions-v2.js +183 -0
- package/dist/feedback-ingestion.d.ts +96 -0
- package/dist/feedback-ingestion.d.ts.map +1 -0
- package/dist/feedback-ingestion.js +400 -0
- package/dist/fix-preview.d.ts +82 -0
- package/dist/fix-preview.d.ts.map +1 -0
- package/dist/fix-preview.js +365 -0
- package/dist/fuzzy-impact.d.ts +50 -0
- package/dist/fuzzy-impact.d.ts.map +1 -0
- package/dist/fuzzy-impact.js +446 -0
- package/dist/generated-code.d.ts +97 -0
- package/dist/generated-code.d.ts.map +1 -0
- package/dist/generated-code.js +395 -0
- package/dist/git-helpers.d.ts +26 -0
- package/dist/git-helpers.d.ts.map +1 -0
- package/dist/git-helpers.js +110 -0
- package/dist/golden-output.d.ts +33 -0
- package/dist/golden-output.d.ts.map +1 -0
- package/dist/golden-output.js +92 -0
- package/dist/grounding/build-grounding.d.ts +53 -0
- package/dist/grounding/build-grounding.d.ts.map +1 -0
- package/dist/grounding/build-grounding.js +51 -0
- package/dist/grounding/nx-projects.d.ts +29 -0
- package/dist/grounding/nx-projects.d.ts.map +1 -0
- package/dist/grounding/nx-projects.js +109 -0
- package/dist/grounding/validate-extracted-plan.d.ts +20 -0
- package/dist/grounding/validate-extracted-plan.d.ts.map +1 -0
- package/dist/grounding/validate-extracted-plan.js +127 -0
- package/dist/healing-plan.d.ts +33 -0
- package/dist/healing-plan.d.ts.map +1 -0
- package/dist/healing-plan.js +346 -0
- package/dist/helper-registry.d.ts +90 -0
- package/dist/helper-registry.d.ts.map +1 -0
- package/dist/helper-registry.js +529 -0
- package/dist/impact-analysis.d.ts +150 -0
- package/dist/impact-analysis.d.ts.map +1 -0
- package/dist/impact-analysis.js +697 -0
- package/dist/impact-graph-render.d.ts +51 -0
- package/dist/impact-graph-render.d.ts.map +1 -0
- package/dist/impact-graph-render.js +139 -0
- package/dist/impact-graph.d.ts +17 -0
- package/dist/impact-graph.d.ts.map +1 -0
- package/dist/impact-graph.js +119 -0
- package/dist/impact-render.d.ts +22 -0
- package/dist/impact-render.d.ts.map +1 -0
- package/dist/impact-render.js +413 -0
- package/dist/import-graph-analysis.d.ts +28 -0
- package/dist/import-graph-analysis.d.ts.map +1 -0
- package/dist/import-graph-analysis.js +193 -0
- package/dist/import-hygiene.d.ts +93 -0
- package/dist/import-hygiene.d.ts.map +1 -0
- package/dist/import-hygiene.js +366 -0
- package/dist/index.d.ts +223 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +233 -0
- package/dist/ingest-adoption.d.ts +50 -0
- package/dist/ingest-adoption.d.ts.map +1 -0
- package/dist/ingest-adoption.js +183 -0
- package/dist/ingest-apply.d.ts +80 -0
- package/dist/ingest-apply.d.ts.map +1 -0
- package/dist/ingest-apply.js +227 -0
- package/dist/ingest-body-extractor.d.ts +28 -0
- package/dist/ingest-body-extractor.d.ts.map +1 -0
- package/dist/ingest-body-extractor.js +129 -0
- package/dist/ingest-drafts.d.ts +16 -0
- package/dist/ingest-drafts.d.ts.map +1 -0
- package/dist/ingest-drafts.js +482 -0
- package/dist/inspector-cache.d.ts +41 -0
- package/dist/inspector-cache.d.ts.map +1 -0
- package/dist/inspector-cache.js +104 -0
- package/dist/install-smoke.d.ts +44 -0
- package/dist/install-smoke.d.ts.map +1 -0
- package/dist/install-smoke.js +31 -0
- package/dist/knowledge-authoring.d.ts +151 -0
- package/dist/knowledge-authoring.d.ts.map +1 -0
- package/dist/knowledge-authoring.js +586 -0
- package/dist/knowledge-graph.d.ts +76 -0
- package/dist/knowledge-graph.d.ts.map +1 -0
- package/dist/knowledge-graph.js +336 -0
- package/dist/knowledge-lint.d.ts +97 -0
- package/dist/knowledge-lint.d.ts.map +1 -0
- package/dist/knowledge-lint.js +302 -0
- package/dist/knowledge-rename.d.ts +38 -0
- package/dist/knowledge-rename.d.ts.map +1 -0
- package/dist/knowledge-rename.js +88 -0
- package/dist/knowledge-stale.d.ts +124 -0
- package/dist/knowledge-stale.d.ts.map +1 -0
- package/dist/knowledge-stale.js +892 -0
- package/dist/languages/command-inference.d.ts +27 -0
- package/dist/languages/command-inference.d.ts.map +1 -0
- package/dist/languages/command-inference.js +214 -0
- package/dist/languages/dependency-scan.d.ts +33 -0
- package/dist/languages/dependency-scan.d.ts.map +1 -0
- package/dist/languages/dependency-scan.js +343 -0
- package/dist/languages/index.d.ts +14 -0
- package/dist/languages/index.d.ts.map +1 -0
- package/dist/languages/index.js +13 -0
- package/dist/languages/language-boundaries.d.ts +30 -0
- package/dist/languages/language-boundaries.d.ts.map +1 -0
- package/dist/languages/language-boundaries.js +176 -0
- package/dist/languages/language-cache.d.ts +54 -0
- package/dist/languages/language-cache.d.ts.map +1 -0
- package/dist/languages/language-cache.js +236 -0
- package/dist/languages/language-detection.d.ts +30 -0
- package/dist/languages/language-detection.d.ts.map +1 -0
- package/dist/languages/language-detection.js +584 -0
- package/dist/languages/language-id.d.ts +15 -0
- package/dist/languages/language-id.d.ts.map +1 -0
- package/dist/languages/language-id.js +15 -0
- package/dist/languages/language-runner.d.ts +90 -0
- package/dist/languages/language-runner.d.ts.map +1 -0
- package/dist/languages/language-runner.js +346 -0
- package/dist/languages/polyglot-boundary.d.ts +80 -0
- package/dist/languages/polyglot-boundary.d.ts.map +1 -0
- package/dist/languages/polyglot-boundary.js +373 -0
- package/dist/languages/polyglot-ci.d.ts +25 -0
- package/dist/languages/polyglot-ci.d.ts.map +1 -0
- package/dist/languages/polyglot-ci.js +278 -0
- package/dist/languages/test-impact.d.ts +19 -0
- package/dist/languages/test-impact.d.ts.map +1 -0
- package/dist/languages/test-impact.js +157 -0
- package/dist/loader-diagnostics.d.ts +40 -0
- package/dist/loader-diagnostics.d.ts.map +1 -0
- package/dist/loader-diagnostics.js +49 -0
- package/dist/memory-diff.d.ts +60 -0
- package/dist/memory-diff.d.ts.map +1 -0
- package/dist/memory-diff.js +302 -0
- package/dist/migration-profile-registry.d.ts +26 -0
- package/dist/migration-profile-registry.d.ts.map +1 -0
- package/dist/migration-profile-registry.js +135 -0
- package/dist/migration-readiness.d.ts +101 -0
- package/dist/migration-readiness.d.ts.map +1 -0
- package/dist/migration-readiness.js +253 -0
- package/dist/monorepo-onboarding.d.ts +51 -0
- package/dist/monorepo-onboarding.d.ts.map +1 -0
- package/dist/monorepo-onboarding.js +235 -0
- package/dist/onboarding-adoption-diff.d.ts +53 -0
- package/dist/onboarding-adoption-diff.d.ts.map +1 -0
- package/dist/onboarding-adoption-diff.js +285 -0
- package/dist/onboarding-adoption.d.ts +136 -0
- package/dist/onboarding-adoption.d.ts.map +1 -0
- package/dist/onboarding-adoption.js +702 -0
- package/dist/onboarding-agent-import.d.ts +40 -0
- package/dist/onboarding-agent-import.d.ts.map +1 -0
- package/dist/onboarding-agent-import.js +114 -0
- package/dist/onboarding-diff.d.ts +39 -0
- package/dist/onboarding-diff.d.ts.map +1 -0
- package/dist/onboarding-diff.js +240 -0
- package/dist/onboarding-drafts.d.ts +28 -0
- package/dist/onboarding-drafts.d.ts.map +1 -0
- package/dist/onboarding-drafts.js +234 -0
- package/dist/onboarding-report.d.ts +8 -0
- package/dist/onboarding-report.d.ts.map +1 -0
- package/dist/onboarding-report.js +239 -0
- package/dist/onboarding.d.ts +134 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/onboarding.js +729 -0
- package/dist/ownership.d.ts +38 -0
- package/dist/ownership.d.ts.map +1 -0
- package/dist/ownership.js +102 -0
- package/dist/pack-author-ux.d.ts +58 -0
- package/dist/pack-author-ux.d.ts.map +1 -0
- package/dist/pack-author-ux.js +219 -0
- package/dist/pack-author.d.ts +94 -0
- package/dist/pack-author.d.ts.map +1 -0
- package/dist/pack-author.js +208 -0
- package/dist/pack-compatibility.d.ts +21 -0
- package/dist/pack-compatibility.d.ts.map +1 -0
- package/dist/pack-compatibility.js +114 -0
- package/dist/pack-contributions-inventory.d.ts +121 -0
- package/dist/pack-contributions-inventory.d.ts.map +1 -0
- package/dist/pack-contributions-inventory.js +732 -0
- package/dist/pack-docs.d.ts +11 -0
- package/dist/pack-docs.d.ts.map +1 -0
- package/dist/pack-docs.js +101 -0
- package/dist/pack-doctor.d.ts +50 -0
- package/dist/pack-doctor.d.ts.map +1 -0
- package/dist/pack-doctor.js +302 -0
- package/dist/pack-helper-registry.d.ts +29 -0
- package/dist/pack-helper-registry.d.ts.map +1 -0
- package/dist/pack-helper-registry.js +144 -0
- package/dist/pack-pending.d.ts +68 -0
- package/dist/pack-pending.d.ts.map +1 -0
- package/dist/pack-pending.js +189 -0
- package/dist/pack-quality-score.d.ts +44 -0
- package/dist/pack-quality-score.d.ts.map +1 -0
- package/dist/pack-quality-score.js +155 -0
- package/dist/pack-release-check.d.ts +24 -0
- package/dist/pack-release-check.d.ts.map +1 -0
- package/dist/pack-release-check.js +258 -0
- package/dist/pack-signature-status.d.ts +72 -0
- package/dist/pack-signature-status.d.ts.map +1 -0
- package/dist/pack-signature-status.js +222 -0
- package/dist/pack-symbol-compat.d.ts +60 -0
- package/dist/pack-symbol-compat.d.ts.map +1 -0
- package/dist/pack-symbol-compat.js +371 -0
- package/dist/pack-test-runner.d.ts +59 -0
- package/dist/pack-test-runner.d.ts.map +1 -0
- package/dist/pack-test-runner.js +211 -0
- package/dist/pipeline-command-dictionary.d.ts +2 -0
- package/dist/pipeline-command-dictionary.d.ts.map +1 -0
- package/dist/pipeline-command-dictionary.js +20 -0
- package/dist/pipeline-lint.d.ts +30 -0
- package/dist/pipeline-lint.d.ts.map +1 -0
- package/dist/pipeline-lint.js +134 -0
- package/dist/plan-dependency-graph.d.ts +25 -0
- package/dist/plan-dependency-graph.d.ts.map +1 -0
- package/dist/plan-dependency-graph.js +195 -0
- package/dist/plan-review.d.ts +64 -0
- package/dist/plan-review.d.ts.map +1 -0
- package/dist/plan-review.js +242 -0
- package/dist/plan-simulation.d.ts +108 -0
- package/dist/plan-simulation.d.ts.map +1 -0
- package/dist/plan-simulation.js +767 -0
- package/dist/playbook-registry.d.ts +25 -0
- package/dist/playbook-registry.d.ts.map +1 -0
- package/dist/playbook-registry.js +148 -0
- package/dist/playbook-script.d.ts +60 -0
- package/dist/playbook-script.d.ts.map +1 -0
- package/dist/playbook-script.js +161 -0
- package/dist/plugin-lifecycle-profile-registry.d.ts +52 -0
- package/dist/plugin-lifecycle-profile-registry.d.ts.map +1 -0
- package/dist/plugin-lifecycle-profile-registry.js +202 -0
- package/dist/plugin-lifecycle.d.ts +132 -0
- package/dist/plugin-lifecycle.d.ts.map +1 -0
- package/dist/plugin-lifecycle.js +477 -0
- package/dist/policy-engine.d.ts +101 -0
- package/dist/policy-engine.d.ts.map +1 -0
- package/dist/policy-engine.js +321 -0
- package/dist/policy-override-audit.d.ts +18 -0
- package/dist/policy-override-audit.d.ts.map +1 -0
- package/dist/policy-override-audit.js +54 -0
- package/dist/policy-overrides.d.ts +35 -0
- package/dist/policy-overrides.d.ts.map +1 -0
- package/dist/policy-overrides.js +84 -0
- package/dist/policy-test.d.ts +83 -0
- package/dist/policy-test.d.ts.map +1 -0
- package/dist/policy-test.js +342 -0
- package/dist/pr-summary.d.ts +34 -0
- package/dist/pr-summary.d.ts.map +1 -0
- package/dist/pr-summary.js +220 -0
- package/dist/product-coherence.d.ts +21 -0
- package/dist/product-coherence.d.ts.map +1 -0
- package/dist/product-coherence.js +158 -0
- package/dist/profile-registry.d.ts +42 -0
- package/dist/profile-registry.d.ts.map +1 -0
- package/dist/profile-registry.js +104 -0
- package/dist/project-coupling-audit.d.ts +64 -0
- package/dist/project-coupling-audit.d.ts.map +1 -0
- package/dist/project-coupling-audit.js +282 -0
- package/dist/project-overview.d.ts +14 -0
- package/dist/project-overview.d.ts.map +1 -0
- package/dist/project-overview.js +27 -0
- package/dist/propose-knowledge.d.ts +64 -0
- package/dist/propose-knowledge.d.ts.map +1 -0
- package/dist/propose-knowledge.js +367 -0
- package/dist/quality-baseline.d.ts +123 -0
- package/dist/quality-baseline.d.ts.map +1 -0
- package/dist/quality-baseline.js +433 -0
- package/dist/quality-html.d.ts +7 -0
- package/dist/quality-html.d.ts.map +1 -0
- package/dist/quality-html.js +64 -0
- package/dist/quality-report.d.ts +49 -0
- package/dist/quality-report.d.ts.map +1 -0
- package/dist/quality-report.js +296 -0
- package/dist/query-resolver.d.ts +38 -0
- package/dist/query-resolver.d.ts.map +1 -0
- package/dist/query-resolver.js +163 -0
- package/dist/ranker-explainability.d.ts +91 -0
- package/dist/ranker-explainability.d.ts.map +1 -0
- package/dist/ranker-explainability.js +550 -0
- package/dist/reference-lookup.d.ts +8 -0
- package/dist/reference-lookup.d.ts.map +1 -0
- package/dist/reference-lookup.js +18 -0
- package/dist/registration-hint-registry.d.ts +55 -0
- package/dist/registration-hint-registry.d.ts.map +1 -0
- package/dist/registration-hint-registry.js +327 -0
- package/dist/registry-lifecycle.d.ts +47 -0
- package/dist/registry-lifecycle.d.ts.map +1 -0
- package/dist/registry-lifecycle.js +214 -0
- package/dist/release-readiness.d.ts +64 -0
- package/dist/release-readiness.d.ts.map +1 -0
- package/dist/release-readiness.js +456 -0
- package/dist/release-smoke.d.ts +138 -0
- package/dist/release-smoke.d.ts.map +1 -0
- package/dist/release-smoke.js +459 -0
- package/dist/release-train.d.ts +33 -0
- package/dist/release-train.d.ts.map +1 -0
- package/dist/release-train.js +104 -0
- package/dist/repo-memory.d.ts +95 -0
- package/dist/repo-memory.d.ts.map +1 -0
- package/dist/repo-memory.js +614 -0
- package/dist/report-site.d.ts +92 -0
- package/dist/report-site.d.ts.map +1 -0
- package/dist/report-site.js +658 -0
- package/dist/reposet.d.ts +56 -0
- package/dist/reposet.d.ts.map +1 -0
- package/dist/reposet.js +160 -0
- package/dist/repository-intelligence.d.ts +145 -0
- package/dist/repository-intelligence.d.ts.map +1 -0
- package/dist/repository-intelligence.js +729 -0
- package/dist/repository-knowledge-model.d.ts +218 -0
- package/dist/repository-knowledge-model.d.ts.map +1 -0
- package/dist/repository-knowledge-model.js +939 -0
- package/dist/repository-map.d.ts +72 -0
- package/dist/repository-map.d.ts.map +1 -0
- package/dist/repository-map.js +332 -0
- package/dist/repository-stats.d.ts +66 -0
- package/dist/repository-stats.d.ts.map +1 -0
- package/dist/repository-stats.js +329 -0
- package/dist/review-comment-renderer.d.ts +59 -0
- package/dist/review-comment-renderer.d.ts.map +1 -0
- package/dist/review-comment-renderer.js +181 -0
- package/dist/review-comment-v2.d.ts +9 -0
- package/dist/review-comment-v2.d.ts.map +1 -0
- package/dist/review-comment-v2.js +178 -0
- package/dist/review-html.d.ts +13 -0
- package/dist/review-html.d.ts.map +1 -0
- package/dist/review-html.js +79 -0
- package/dist/review-packet-v2.d.ts +29 -0
- package/dist/review-packet-v2.d.ts.map +1 -0
- package/dist/review-packet-v2.js +71 -0
- package/dist/review-packet-v3.d.ts +22 -0
- package/dist/review-packet-v3.d.ts.map +1 -0
- package/dist/review-packet-v3.js +181 -0
- package/dist/review-packet.d.ts +49 -0
- package/dist/review-packet.d.ts.map +1 -0
- package/dist/review-packet.js +129 -0
- package/dist/risk-signals.d.ts +28 -0
- package/dist/risk-signals.d.ts.map +1 -0
- package/dist/risk-signals.js +68 -0
- package/dist/role-views.d.ts +50 -0
- package/dist/role-views.d.ts.map +1 -0
- package/dist/role-views.js +334 -0
- package/dist/rounds.d.ts +52 -0
- package/dist/rounds.d.ts.map +1 -0
- package/dist/rounds.js +172 -0
- package/dist/rule-drift.d.ts +42 -0
- package/dist/rule-drift.d.ts.map +1 -0
- package/dist/rule-drift.js +148 -0
- package/dist/rule-quality.d.ts +73 -0
- package/dist/rule-quality.d.ts.map +1 -0
- package/dist/rule-quality.js +356 -0
- package/dist/rule-scaffold.d.ts +71 -0
- package/dist/rule-scaffold.d.ts.map +1 -0
- package/dist/rule-scaffold.js +258 -0
- package/dist/safety-audit-deep.d.ts +38 -0
- package/dist/safety-audit-deep.d.ts.map +1 -0
- package/dist/safety-audit-deep.js +162 -0
- package/dist/safety-audit.d.ts +91 -0
- package/dist/safety-audit.d.ts.map +1 -0
- package/dist/safety-audit.js +138 -0
- package/dist/safety-html.d.ts +7 -0
- package/dist/safety-html.d.ts.map +1 -0
- package/dist/safety-html.js +70 -0
- package/dist/scaffold-coverage.d.ts +46 -0
- package/dist/scaffold-coverage.d.ts.map +1 -0
- package/dist/scaffold-coverage.js +273 -0
- package/dist/scaffold-patterns.d.ts +38 -0
- package/dist/scaffold-patterns.d.ts.map +1 -0
- package/dist/scaffold-patterns.js +282 -0
- package/dist/schema-inventory.d.ts +55 -0
- package/dist/schema-inventory.d.ts.map +1 -0
- package/dist/schema-inventory.js +301 -0
- package/dist/search-index.d.ts +75 -0
- package/dist/search-index.d.ts.map +1 -0
- package/dist/search-index.js +531 -0
- package/dist/search-tuning-explain.d.ts +68 -0
- package/dist/search-tuning-explain.d.ts.map +1 -0
- package/dist/search-tuning-explain.js +207 -0
- package/dist/search-tuning-registry.d.ts +54 -0
- package/dist/search-tuning-registry.d.ts.map +1 -0
- package/dist/search-tuning-registry.js +303 -0
- package/dist/self-audit.d.ts +59 -0
- package/dist/self-audit.d.ts.map +1 -0
- package/dist/self-audit.js +192 -0
- package/dist/self-config-doctor-v2.d.ts +57 -0
- package/dist/self-config-doctor-v2.d.ts.map +1 -0
- package/dist/self-config-doctor-v2.js +653 -0
- package/dist/self-config-doctor.d.ts +47 -0
- package/dist/self-config-doctor.d.ts.map +1 -0
- package/dist/self-config-doctor.js +432 -0
- package/dist/sharkcraft-inspector.d.ts +73 -0
- package/dist/sharkcraft-inspector.d.ts.map +1 -0
- package/dist/sharkcraft-inspector.js +745 -0
- package/dist/spec/spec-cross-validate.d.ts +17 -0
- package/dist/spec/spec-cross-validate.d.ts.map +1 -0
- package/dist/spec/spec-cross-validate.js +53 -0
- package/dist/spec/spec-discovery.d.ts +27 -0
- package/dist/spec/spec-discovery.d.ts.map +1 -0
- package/dist/spec/spec-discovery.js +78 -0
- package/dist/spec/spec-review.d.ts +36 -0
- package/dist/spec/spec-review.d.ts.map +1 -0
- package/dist/spec/spec-review.js +37 -0
- package/dist/stability-map.d.ts +62 -0
- package/dist/stability-map.d.ts.map +1 -0
- package/dist/stability-map.js +404 -0
- package/dist/start-here.d.ts +49 -0
- package/dist/start-here.d.ts.map +1 -0
- package/dist/start-here.js +259 -0
- package/dist/surface-profile-detect.d.ts +42 -0
- package/dist/surface-profile-detect.d.ts.map +1 -0
- package/dist/surface-profile-detect.js +76 -0
- package/dist/symbol-index.d.ts +108 -0
- package/dist/symbol-index.d.ts.map +1 -0
- package/dist/symbol-index.js +483 -0
- package/dist/task-decompose.d.ts +38 -0
- package/dist/task-decompose.d.ts.map +1 -0
- package/dist/task-decompose.js +154 -0
- package/dist/task-packet.d.ts +104 -0
- package/dist/task-packet.d.ts.map +1 -0
- package/dist/task-packet.js +156 -0
- package/dist/task-ranker.d.ts +51 -0
- package/dist/task-ranker.d.ts.map +1 -0
- package/dist/task-ranker.js +410 -0
- package/dist/task-risk.d.ts +84 -0
- package/dist/task-risk.d.ts.map +1 -0
- package/dist/task-risk.js +731 -0
- package/dist/task-routing-hint-registry.d.ts +36 -0
- package/dist/task-routing-hint-registry.d.ts.map +1 -0
- package/dist/task-routing-hint-registry.js +186 -0
- package/dist/template-authoring.d.ts +113 -0
- package/dist/template-authoring.d.ts.map +1 -0
- package/dist/template-authoring.js +521 -0
- package/dist/template-body-inference-v2.d.ts +19 -0
- package/dist/template-body-inference-v2.d.ts.map +1 -0
- package/dist/template-body-inference-v2.js +468 -0
- package/dist/template-body-inference.d.ts +59 -0
- package/dist/template-body-inference.d.ts.map +1 -0
- package/dist/template-body-inference.js +277 -0
- package/dist/template-drift.d.ts +39 -0
- package/dist/template-drift.d.ts.map +1 -0
- package/dist/template-drift.js +353 -0
- package/dist/template-lint.d.ts +31 -0
- package/dist/template-lint.d.ts.map +1 -0
- package/dist/template-lint.js +113 -0
- package/dist/test-definitions.d.ts +41 -0
- package/dist/test-definitions.d.ts.map +1 -0
- package/dist/test-definitions.js +6 -0
- package/dist/test-impact.d.ts +30 -0
- package/dist/test-impact.d.ts.map +1 -0
- package/dist/test-impact.js +173 -0
- package/dist/test-runner.d.ts +87 -0
- package/dist/test-runner.d.ts.map +1 -0
- package/dist/test-runner.js +560 -0
- package/dist/uncertainty-report.d.ts +46 -0
- package/dist/uncertainty-report.d.ts.map +1 -0
- package/dist/uncertainty-report.js +108 -0
- package/dist/uncertainty.d.ts +38 -0
- package/dist/uncertainty.d.ts.map +1 -0
- package/dist/uncertainty.js +115 -0
- package/dist/universal-search.d.ts +64 -0
- package/dist/universal-search.d.ts.map +1 -0
- package/dist/universal-search.js +347 -0
- package/dist/upgrade-advisor.d.ts +22 -0
- package/dist/upgrade-advisor.d.ts.map +1 -0
- package/dist/upgrade-advisor.js +109 -0
- package/dist/why-file.d.ts +75 -0
- package/dist/why-file.d.ts.map +1 -0
- package/dist/why-file.js +202 -0
- package/dist/workflow-simulation.d.ts +46 -0
- package/dist/workflow-simulation.d.ts.map +1 -0
- package/dist/workflow-simulation.js +154 -0
- package/package.json +66 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent contract gates.
|
|
3
|
+
*
|
|
4
|
+
* The base agent contract is advisory. This module adds an opt-in
|
|
5
|
+
* gate system that turns a contract into pass/fail signals — and,
|
|
6
|
+
* optionally, a hard gate for `shrk apply --contract`.
|
|
7
|
+
*
|
|
8
|
+
* Read-only. No source writes from this module. Approval writing is a
|
|
9
|
+
* CLI-only explicit action handled by the command layer.
|
|
10
|
+
*/
|
|
11
|
+
import { createHash, createHmac } from 'node:crypto';
|
|
12
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
13
|
+
import { TaskRiskLevel } from "./task-risk.js";
|
|
14
|
+
import { simulatePlan } from "./plan-simulation.js";
|
|
15
|
+
import { matchContractFileRule, rulesFromLegacyStrings, } from "./contract-file-rule.js";
|
|
16
|
+
export const AGENT_CONTRACT_APPROVAL_SCHEMA = 'sharkcraft.agent-contract-approval/v1';
|
|
17
|
+
export const AGENT_CONTRACT_GATE_SCHEMA = 'sharkcraft.agent-contract-gate/v1';
|
|
18
|
+
export var ContractGateStatus;
|
|
19
|
+
(function (ContractGateStatus) {
|
|
20
|
+
ContractGateStatus["Pass"] = "pass";
|
|
21
|
+
ContractGateStatus["RequiresApproval"] = "requires-approval";
|
|
22
|
+
ContractGateStatus["Fail"] = "fail";
|
|
23
|
+
ContractGateStatus["Warn"] = "warn";
|
|
24
|
+
})(ContractGateStatus || (ContractGateStatus = {}));
|
|
25
|
+
export var ContractApprovalExpiryStatus;
|
|
26
|
+
(function (ContractApprovalExpiryStatus) {
|
|
27
|
+
ContractApprovalExpiryStatus["Valid"] = "valid";
|
|
28
|
+
ContractApprovalExpiryStatus["ExpiresSoon"] = "expires-soon";
|
|
29
|
+
ContractApprovalExpiryStatus["Expired"] = "expired";
|
|
30
|
+
ContractApprovalExpiryStatus["NoExpiry"] = "no-expiry";
|
|
31
|
+
ContractApprovalExpiryStatus["Absent"] = "absent";
|
|
32
|
+
})(ContractApprovalExpiryStatus || (ContractApprovalExpiryStatus = {}));
|
|
33
|
+
const APPROVAL_SECRET_ENV_DEFAULT = 'SHARKCRAFT_CONTRACT_SECRET';
|
|
34
|
+
function canonicalContractJson(contract) {
|
|
35
|
+
// Deterministic JSON for hashing — exclude `generatedAt` so hashes stay
|
|
36
|
+
// stable across re-builds of the same task.
|
|
37
|
+
const { generatedAt: _drop, ...rest } = contract;
|
|
38
|
+
void _drop;
|
|
39
|
+
return JSON.stringify(rest, Object.keys(rest).sort());
|
|
40
|
+
}
|
|
41
|
+
export function computeContractHash(contract) {
|
|
42
|
+
const h = createHash('sha256');
|
|
43
|
+
h.update(canonicalContractJson(contract));
|
|
44
|
+
return h.digest('hex');
|
|
45
|
+
}
|
|
46
|
+
function canonicalApprovalJson(a) {
|
|
47
|
+
const { signature: _drop, ...rest } = a;
|
|
48
|
+
void _drop;
|
|
49
|
+
return JSON.stringify(rest, Object.keys(rest).sort());
|
|
50
|
+
}
|
|
51
|
+
export function signApproval(a, secret) {
|
|
52
|
+
const hmac = createHmac('sha256', secret);
|
|
53
|
+
hmac.update(canonicalApprovalJson(a));
|
|
54
|
+
return {
|
|
55
|
+
...a,
|
|
56
|
+
signature: { algo: 'sha256', hmac: hmac.digest('hex'), signedAt: new Date().toISOString() },
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function verifyApproval(a, secret) {
|
|
60
|
+
if (!a.signature)
|
|
61
|
+
return { ok: false, message: 'No signature.' };
|
|
62
|
+
const hmac = createHmac('sha256', secret);
|
|
63
|
+
hmac.update(canonicalApprovalJson(a));
|
|
64
|
+
const expected = hmac.digest('hex');
|
|
65
|
+
if (expected !== a.signature.hmac)
|
|
66
|
+
return { ok: false, message: 'Signature mismatch.' };
|
|
67
|
+
return { ok: true, message: 'verified' };
|
|
68
|
+
}
|
|
69
|
+
export function buildApproval(input) {
|
|
70
|
+
const approval = {
|
|
71
|
+
schema: AGENT_CONTRACT_APPROVAL_SCHEMA,
|
|
72
|
+
contractHash: input.contractHash,
|
|
73
|
+
approvedBy: input.approvedBy,
|
|
74
|
+
reason: input.reason,
|
|
75
|
+
approvedAt: new Date().toISOString(),
|
|
76
|
+
approvedGates: input.approvedGates ? [...input.approvedGates] : [],
|
|
77
|
+
};
|
|
78
|
+
if (input.contractId !== undefined)
|
|
79
|
+
approval.contractId = input.contractId;
|
|
80
|
+
if (input.expiresAt !== undefined)
|
|
81
|
+
approval.expiresAt = input.expiresAt;
|
|
82
|
+
const secret = process.env[input.secretEnv ?? APPROVAL_SECRET_ENV_DEFAULT];
|
|
83
|
+
if (secret)
|
|
84
|
+
return signApproval(approval, secret);
|
|
85
|
+
return approval;
|
|
86
|
+
}
|
|
87
|
+
function readJson(file) {
|
|
88
|
+
return JSON.parse(readFileSync(file, 'utf8'));
|
|
89
|
+
}
|
|
90
|
+
function isExpired(a) {
|
|
91
|
+
if (!a.expiresAt)
|
|
92
|
+
return false;
|
|
93
|
+
const t = Date.parse(a.expiresAt);
|
|
94
|
+
if (Number.isNaN(t))
|
|
95
|
+
return false;
|
|
96
|
+
return t < Date.now();
|
|
97
|
+
}
|
|
98
|
+
const EXPIRES_SOON_WINDOW_MS = 4 * 60 * 60 * 1000; // 4 hours
|
|
99
|
+
/**
|
|
100
|
+
* Parse a relative expiry string like `1h`, `2d`, `30m`, `45s`, `1w` and return
|
|
101
|
+
* an absolute ISO timestamp from `from` (default now). Returns null when the
|
|
102
|
+
* input cannot be parsed.
|
|
103
|
+
*/
|
|
104
|
+
export function parseRelativeExpiry(input, from = new Date()) {
|
|
105
|
+
const m = /^([0-9]+)\s*(s|m|h|d|w)$/i.exec(input.trim());
|
|
106
|
+
if (!m)
|
|
107
|
+
return null;
|
|
108
|
+
const n = Number.parseInt(m[1], 10);
|
|
109
|
+
const unit = m[2].toLowerCase();
|
|
110
|
+
const ms = unit === 's' ? n * 1000 :
|
|
111
|
+
unit === 'm' ? n * 60 * 1000 :
|
|
112
|
+
unit === 'h' ? n * 60 * 60 * 1000 :
|
|
113
|
+
unit === 'd' ? n * 24 * 60 * 60 * 1000 :
|
|
114
|
+
unit === 'w' ? n * 7 * 24 * 60 * 60 * 1000 : 0;
|
|
115
|
+
if (ms <= 0)
|
|
116
|
+
return null;
|
|
117
|
+
return new Date(from.getTime() + ms).toISOString();
|
|
118
|
+
}
|
|
119
|
+
function classifyExpiry(contract, approval) {
|
|
120
|
+
if (!approval)
|
|
121
|
+
return { status: ContractApprovalExpiryStatus.Absent };
|
|
122
|
+
if (!approval.expiresAt) {
|
|
123
|
+
const risk = contract.taskRisk.riskLevel;
|
|
124
|
+
const out = { status: ContractApprovalExpiryStatus.NoExpiry };
|
|
125
|
+
if (risk === TaskRiskLevel.High || risk === TaskRiskLevel.Critical) {
|
|
126
|
+
out.noExpiryWarning =
|
|
127
|
+
`Approval has no --expires-in / --expires-at and task risk is ${risk}; long-lived approvals should be avoided.`;
|
|
128
|
+
}
|
|
129
|
+
return out;
|
|
130
|
+
}
|
|
131
|
+
const t = Date.parse(approval.expiresAt);
|
|
132
|
+
if (Number.isNaN(t)) {
|
|
133
|
+
return { status: ContractApprovalExpiryStatus.NoExpiry, expiresAt: approval.expiresAt };
|
|
134
|
+
}
|
|
135
|
+
const remaining = t - Date.now();
|
|
136
|
+
if (remaining < 0) {
|
|
137
|
+
return {
|
|
138
|
+
status: ContractApprovalExpiryStatus.Expired,
|
|
139
|
+
expiresInMs: remaining,
|
|
140
|
+
expiresAt: approval.expiresAt,
|
|
141
|
+
expiredAt: approval.expiresAt,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (remaining < EXPIRES_SOON_WINDOW_MS) {
|
|
145
|
+
return {
|
|
146
|
+
status: ContractApprovalExpiryStatus.ExpiresSoon,
|
|
147
|
+
expiresInMs: remaining,
|
|
148
|
+
expiresAt: approval.expiresAt,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
status: ContractApprovalExpiryStatus.Valid,
|
|
153
|
+
expiresInMs: remaining,
|
|
154
|
+
expiresAt: approval.expiresAt,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function classifyApproval(contract, a, secret) {
|
|
158
|
+
if (!a)
|
|
159
|
+
return { status: 'absent' };
|
|
160
|
+
const hash = computeContractHash(contract);
|
|
161
|
+
if (a.contractHash !== hash) {
|
|
162
|
+
return {
|
|
163
|
+
status: 'mismatched',
|
|
164
|
+
message: `Approval is for a different contract (expected hash ${hash.slice(0, 12)}…, got ${a.contractHash.slice(0, 12)}…).`,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
if (isExpired(a))
|
|
168
|
+
return { status: 'expired', message: `Approval expired at ${a.expiresAt}.` };
|
|
169
|
+
if (a.signature) {
|
|
170
|
+
if (!secret)
|
|
171
|
+
return { status: 'present', message: 'Signature present but no secret configured to verify.' };
|
|
172
|
+
const v = verifyApproval(a, secret);
|
|
173
|
+
return v.ok
|
|
174
|
+
? { status: 'verified', message: v.message }
|
|
175
|
+
: { status: 'invalid', message: v.message };
|
|
176
|
+
}
|
|
177
|
+
return { status: 'unsigned' };
|
|
178
|
+
}
|
|
179
|
+
function gate(id, description, status, detail) {
|
|
180
|
+
return detail === undefined ? { id, description, status } : { id, description, status, detail };
|
|
181
|
+
}
|
|
182
|
+
export async function checkAgentContract(inspection, contract, options = {}) {
|
|
183
|
+
const notes = [];
|
|
184
|
+
let planSimulation;
|
|
185
|
+
// Resolve approval if provided.
|
|
186
|
+
let approval;
|
|
187
|
+
if (options.approvalPath) {
|
|
188
|
+
if (!existsSync(options.approvalPath)) {
|
|
189
|
+
notes.push(`Approval file not found: ${options.approvalPath}`);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
try {
|
|
193
|
+
approval = readJson(options.approvalPath);
|
|
194
|
+
}
|
|
195
|
+
catch (e) {
|
|
196
|
+
notes.push(`Failed to parse approval: ${e.message}`);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const secret = process.env[options.secretEnv ?? APPROVAL_SECRET_ENV_DEFAULT];
|
|
201
|
+
const approvalClassification = classifyApproval(contract, approval, secret);
|
|
202
|
+
const approvalAccepted = approval !== undefined &&
|
|
203
|
+
(approvalClassification.status === 'unsigned' ||
|
|
204
|
+
approvalClassification.status === 'verified' ||
|
|
205
|
+
approvalClassification.status === 'present');
|
|
206
|
+
// Run plan simulation if a plan path was supplied.
|
|
207
|
+
if (options.planPath) {
|
|
208
|
+
try {
|
|
209
|
+
planSimulation = await simulatePlan(inspection, options.planPath, {
|
|
210
|
+
includeBoundaries: true,
|
|
211
|
+
includeImpact: true,
|
|
212
|
+
includeOwnership: true,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
catch (e) {
|
|
216
|
+
notes.push(`Plan simulation failed: ${e.message}`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if (contract.requiredPlanReviews.length > 0) {
|
|
220
|
+
notes.push('Contract requires plan review(s) but no --plan was supplied; gate `required-plan-review` cannot validate.');
|
|
221
|
+
}
|
|
222
|
+
const gates = [];
|
|
223
|
+
// Gate 1: human approval gates listed in the contract.
|
|
224
|
+
if (contract.humanApprovalGates.length === 0) {
|
|
225
|
+
gates.push(gate('human-approval', 'Human approval gate(s).', ContractGateStatus.Pass, 'No human approval required by this contract.'));
|
|
226
|
+
}
|
|
227
|
+
else if (approvalAccepted) {
|
|
228
|
+
gates.push(gate('human-approval', 'Human approval gate(s).', ContractGateStatus.Pass, `Approved by ${approval.approvedBy}.`));
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
gates.push(gate('human-approval', 'Human approval gate(s).', ContractGateStatus.RequiresApproval, contract.humanApprovalGates.join(' / ')));
|
|
232
|
+
}
|
|
233
|
+
// Gate 2: required plan reviews — must have plan supplied + simulation ready.
|
|
234
|
+
if (contract.requiredPlanReviews.length > 0) {
|
|
235
|
+
if (!planSimulation) {
|
|
236
|
+
gates.push(gate('required-plan-review', 'Required plan review.', ContractGateStatus.Fail, 'No --plan supplied or plan simulation failed.'));
|
|
237
|
+
}
|
|
238
|
+
else if (planSimulation.applyReadiness === 'blocked-conflicts' ||
|
|
239
|
+
planSimulation.applyReadiness === 'blocked-boundary' ||
|
|
240
|
+
planSimulation.applyReadiness === 'blocked-policy' ||
|
|
241
|
+
planSimulation.applyReadiness === 'blocked-signature' ||
|
|
242
|
+
planSimulation.applyReadiness === 'blocked-missing-review') {
|
|
243
|
+
gates.push(gate('required-plan-review', 'Required plan review.', ContractGateStatus.Fail, `Plan simulation: ${planSimulation.applyReadiness}.`));
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
gates.push(gate('required-plan-review', 'Required plan review.', planSimulation.applyReadiness === 'ready-with-review'
|
|
247
|
+
? ContractGateStatus.Warn
|
|
248
|
+
: ContractGateStatus.Pass, `Plan simulation: ${planSimulation.applyReadiness}.`));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
gates.push(gate('required-plan-review', 'Required plan review.', ContractGateStatus.Pass, 'Not required.'));
|
|
253
|
+
}
|
|
254
|
+
// Gate 3: forbidden files not touched.
|
|
255
|
+
// Prefer detailed rules. Fall back to legacy string[] (contains-match).
|
|
256
|
+
const detailedRules = contract.forbiddenFilesDetailed && contract.forbiddenFilesDetailed.length > 0
|
|
257
|
+
? contract.forbiddenFilesDetailed
|
|
258
|
+
: rulesFromLegacyStrings(contract.forbiddenFiles.map((s) => s.split(' ')[0].replace(/\*\*$/, '').replace(/\*$/, '')).filter((s) => s.length > 0));
|
|
259
|
+
if (detailedRules.length > 0 && planSimulation) {
|
|
260
|
+
const matches = [];
|
|
261
|
+
for (const f of planSimulation.files) {
|
|
262
|
+
for (const r of detailedRules) {
|
|
263
|
+
if (matchContractFileRule(r, f.relativePath))
|
|
264
|
+
matches.push({ file: f.relativePath, rule: r });
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (matches.length > 0) {
|
|
268
|
+
const summary = matches
|
|
269
|
+
.slice(0, 8)
|
|
270
|
+
.map((m) => `${m.file} (rule: ${m.rule.kind}=${m.rule.pattern})`)
|
|
271
|
+
.join(', ');
|
|
272
|
+
gates.push(gate('forbidden-files', 'Forbidden files not touched.', ContractGateStatus.Fail, `Plan touches: ${summary}${matches.length > 8 ? ` (+${matches.length - 8} more)` : ''}.`));
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
gates.push(gate('forbidden-files', 'Forbidden files not touched.', ContractGateStatus.Pass));
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
else if (detailedRules.length > 0) {
|
|
279
|
+
gates.push(gate('forbidden-files', 'Forbidden files not touched.', ContractGateStatus.Warn, 'No --plan supplied; cannot verify forbidden-file gate.'));
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
gates.push(gate('forbidden-files', 'Forbidden files not touched.', ContractGateStatus.Pass, 'None forbidden.'));
|
|
283
|
+
}
|
|
284
|
+
// Gate 4: required validations are listed (informational — runtime is the human's job).
|
|
285
|
+
gates.push(gate('required-validations', 'Required validations listed.', contract.requiredValidations.length > 0 ? ContractGateStatus.Pass : ContractGateStatus.Warn, contract.requiredValidations.length > 0
|
|
286
|
+
? `${contract.requiredValidations.length} validation(s) listed.`
|
|
287
|
+
: 'No validations listed.'));
|
|
288
|
+
// Gate 5: public-API review required.
|
|
289
|
+
const publicApi = contract.publicApiRisks.length > 0 || (planSimulation?.publicApiTouched ?? false);
|
|
290
|
+
if (publicApi) {
|
|
291
|
+
const reviewsHasApi = contract.requiredReviews.some((r) => r.toLowerCase().includes('api'));
|
|
292
|
+
if (reviewsHasApi) {
|
|
293
|
+
gates.push(gate('public-api-review', 'Public-API review required when API touched.', ContractGateStatus.Pass));
|
|
294
|
+
}
|
|
295
|
+
else if (approvalAccepted) {
|
|
296
|
+
gates.push(gate('public-api-review', 'Public-API review required.', ContractGateStatus.Pass, `Approved by ${approval.approvedBy}.`));
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
gates.push(gate('public-api-review', 'Public-API review required.', ContractGateStatus.RequiresApproval, 'Contract does not list an explicit API review.'));
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
gates.push(gate('public-api-review', 'Public-API review required when API touched.', ContractGateStatus.Pass, 'No public API touched.'));
|
|
304
|
+
}
|
|
305
|
+
// Gate 6: risk requires approval.
|
|
306
|
+
const highRisk = contract.taskRisk.riskLevel === TaskRiskLevel.High || contract.taskRisk.riskLevel === TaskRiskLevel.Critical;
|
|
307
|
+
if (highRisk || contract.taskRisk.humanApprovalRequired) {
|
|
308
|
+
if (approvalAccepted) {
|
|
309
|
+
gates.push(gate('risk-approval', 'High-risk approval.', ContractGateStatus.Pass, `Approved by ${approval.approvedBy}.`));
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
gates.push(gate('risk-approval', 'High-risk approval.', ContractGateStatus.RequiresApproval, `Risk: ${contract.taskRisk.riskLevel} (score ${contract.taskRisk.score}).`));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
gates.push(gate('risk-approval', 'High-risk approval.', ContractGateStatus.Pass, 'Not high-risk.'));
|
|
317
|
+
}
|
|
318
|
+
// Gate 7: memory adjustment elevates required approval if non-trivial.
|
|
319
|
+
if (contract.taskRisk.memory && contract.taskRisk.memory.score >= 4) {
|
|
320
|
+
if (approvalAccepted) {
|
|
321
|
+
gates.push(gate('memory-elevated-approval', 'Memory-elevated approval.', ContractGateStatus.Pass, `Approved by ${approval.approvedBy}.`));
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
gates.push(gate('memory-elevated-approval', 'Memory-elevated approval.', ContractGateStatus.RequiresApproval, `Memory adjustment +${contract.taskRisk.memory.score} suggests review.`));
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
else if (contract.taskRisk.memory && contract.taskRisk.memory.missing) {
|
|
328
|
+
gates.push(gate('memory-elevated-approval', 'Memory-elevated approval.', ContractGateStatus.Warn, 'Memory index missing.'));
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
gates.push(gate('memory-elevated-approval', 'Memory-elevated approval.', ContractGateStatus.Pass));
|
|
332
|
+
}
|
|
333
|
+
const blockingGates = gates.filter((g) => g.status === ContractGateStatus.Fail || g.status === ContractGateStatus.RequiresApproval).map((g) => g.id);
|
|
334
|
+
const warnGates = gates.filter((g) => g.status === ContractGateStatus.Warn).map((g) => g.id);
|
|
335
|
+
const pass = blockingGates.length === 0;
|
|
336
|
+
// Surface approval expiry detail + warn when a high/critical-risk
|
|
337
|
+
// approval has no expiry.
|
|
338
|
+
const approvalExpiry = classifyExpiry(contract, approval);
|
|
339
|
+
if (approvalExpiry.noExpiryWarning)
|
|
340
|
+
notes.push(approvalExpiry.noExpiryWarning);
|
|
341
|
+
if (approvalExpiry.status === ContractApprovalExpiryStatus.ExpiresSoon) {
|
|
342
|
+
notes.push(`Approval expires in ${Math.round((approvalExpiry.expiresInMs ?? 0) / 60000)} min — re-approve before then.`);
|
|
343
|
+
}
|
|
344
|
+
const result = {
|
|
345
|
+
schema: AGENT_CONTRACT_GATE_SCHEMA,
|
|
346
|
+
generatedAt: new Date().toISOString(),
|
|
347
|
+
contractHash: computeContractHash(contract),
|
|
348
|
+
task: contract.task,
|
|
349
|
+
role: contract.role,
|
|
350
|
+
mode: contract.mode,
|
|
351
|
+
gates,
|
|
352
|
+
approvalStatus: approvalClassification.status,
|
|
353
|
+
approvalExpiry,
|
|
354
|
+
pass,
|
|
355
|
+
blockingGates,
|
|
356
|
+
warnGates,
|
|
357
|
+
notes,
|
|
358
|
+
};
|
|
359
|
+
if (approval)
|
|
360
|
+
result.approval = approval;
|
|
361
|
+
if (approvalClassification.message)
|
|
362
|
+
result.approvalMessage = approvalClassification.message;
|
|
363
|
+
if (planSimulation)
|
|
364
|
+
result.planSimulation = planSimulation;
|
|
365
|
+
return result;
|
|
366
|
+
}
|
|
367
|
+
export function renderContractCheckText(r) {
|
|
368
|
+
let out = `=== Contract check ===\n`;
|
|
369
|
+
out += ` task ${r.task || '(empty)'}\n`;
|
|
370
|
+
out += ` role/mode ${r.role} / ${r.mode}\n`;
|
|
371
|
+
out += ` contract hash ${r.contractHash.slice(0, 12)}…\n`;
|
|
372
|
+
out += ` approval ${r.approvalStatus}${r.approvalMessage ? ' — ' + r.approvalMessage : ''}\n`;
|
|
373
|
+
out += ` overall ${r.pass ? 'PASS' : 'BLOCK'}\n\n`;
|
|
374
|
+
out += `Gates:\n`;
|
|
375
|
+
for (const g of r.gates) {
|
|
376
|
+
out += ` [${g.status.toUpperCase().padEnd(18)}] ${g.id.padEnd(28)} ${g.description}${g.detail ? ' — ' + g.detail : ''}\n`;
|
|
377
|
+
}
|
|
378
|
+
if (r.blockingGates.length > 0) {
|
|
379
|
+
out += `\nBlocking: ${r.blockingGates.join(', ')}\n`;
|
|
380
|
+
}
|
|
381
|
+
if (r.warnGates.length > 0)
|
|
382
|
+
out += `Warnings: ${r.warnGates.join(', ')}\n`;
|
|
383
|
+
if (r.notes.length > 0) {
|
|
384
|
+
out += `\nNotes:\n`;
|
|
385
|
+
for (const n of r.notes)
|
|
386
|
+
out += ` • ${n}\n`;
|
|
387
|
+
}
|
|
388
|
+
return out;
|
|
389
|
+
}
|
|
390
|
+
export function renderContractCheckMarkdown(r) {
|
|
391
|
+
let out = `# Contract check\n\n`;
|
|
392
|
+
out += `- **task**: ${r.task || '(empty)'}\n`;
|
|
393
|
+
out += `- **role / mode**: ${r.role} / ${r.mode}\n`;
|
|
394
|
+
out += `- **contract hash**: \`${r.contractHash.slice(0, 16)}…\`\n`;
|
|
395
|
+
out += `- **approval**: ${r.approvalStatus}${r.approvalMessage ? ' — ' + r.approvalMessage : ''}\n`;
|
|
396
|
+
out += `- **overall**: ${r.pass ? '✅ PASS' : '❌ BLOCK'}\n\n`;
|
|
397
|
+
out += `## Gates\n\n`;
|
|
398
|
+
out += `| Status | Gate | Description | Detail |\n| --- | --- | --- | --- |\n`;
|
|
399
|
+
for (const g of r.gates) {
|
|
400
|
+
out += `| ${g.status} | \`${g.id}\` | ${g.description} | ${g.detail ?? ''} |\n`;
|
|
401
|
+
}
|
|
402
|
+
if (r.blockingGates.length > 0)
|
|
403
|
+
out += `\n**Blocking**: ${r.blockingGates.join(', ')}\n`;
|
|
404
|
+
if (r.warnGates.length > 0)
|
|
405
|
+
out += `**Warnings**: ${r.warnGates.join(', ')}\n`;
|
|
406
|
+
if (r.notes.length > 0) {
|
|
407
|
+
out += `\n## Notes\n`;
|
|
408
|
+
for (const n of r.notes)
|
|
409
|
+
out += `- ${n}\n`;
|
|
410
|
+
}
|
|
411
|
+
return out;
|
|
412
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reusable agent-contract templates.
|
|
3
|
+
*
|
|
4
|
+
* `buildAgentContract` derives a contract from inspection + intent. Templates
|
|
5
|
+
* are reusable starting points that capture *intent classes* — "release task",
|
|
6
|
+
* "public-API change", "polyglot service change", etc. They are deterministic
|
|
7
|
+
* dictionaries; rendering merges them with the live contract output.
|
|
8
|
+
*/
|
|
9
|
+
import { type IContractFileRule } from './contract-file-rule.js';
|
|
10
|
+
import { RoleId } from './role-views.js';
|
|
11
|
+
import { AgentContractMode } from './agent-contract.js';
|
|
12
|
+
export declare const AGENT_CONTRACT_TEMPLATE_SCHEMA = "sharkcraft.agent-contract-template/v1";
|
|
13
|
+
export declare enum AgentContractTemplateMatch {
|
|
14
|
+
Exact = "exact",
|
|
15
|
+
Partial = "partial",
|
|
16
|
+
None = "none"
|
|
17
|
+
}
|
|
18
|
+
export interface IAgentContractTemplateAppliesWhen {
|
|
19
|
+
/** Lowercase substrings that should appear in the task. Any-of. */
|
|
20
|
+
taskKeywords?: readonly string[];
|
|
21
|
+
/** Intent kinds that should match (e.g. `release`, `migration`). */
|
|
22
|
+
intentKinds?: readonly string[];
|
|
23
|
+
/** Roles this template is intended for. */
|
|
24
|
+
roles?: readonly RoleId[];
|
|
25
|
+
}
|
|
26
|
+
export interface IAgentContractTemplate {
|
|
27
|
+
schema: typeof AGENT_CONTRACT_TEMPLATE_SCHEMA;
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
role: RoleId;
|
|
32
|
+
mode: AgentContractMode;
|
|
33
|
+
defaultForbiddenFilesDetailed: readonly IContractFileRule[];
|
|
34
|
+
defaultRequiredValidations: readonly string[];
|
|
35
|
+
defaultHumanApprovalGates: readonly string[];
|
|
36
|
+
defaultDefinitionOfDone: readonly string[];
|
|
37
|
+
defaultRollbackPlan: readonly string[];
|
|
38
|
+
appliesWhen: IAgentContractTemplateAppliesWhen;
|
|
39
|
+
}
|
|
40
|
+
export declare const AI_AGENT_SAFE_CHANGE_TEMPLATE: IAgentContractTemplate;
|
|
41
|
+
export declare const PUBLIC_API_CHANGE_TEMPLATE: IAgentContractTemplate;
|
|
42
|
+
export declare const RELEASE_TASK_TEMPLATE: IAgentContractTemplate;
|
|
43
|
+
export declare const MIGRATION_TASK_TEMPLATE: IAgentContractTemplate;
|
|
44
|
+
export declare const SECURITY_SENSITIVE_CHANGE_TEMPLATE: IAgentContractTemplate;
|
|
45
|
+
export declare const POLYGLOT_SERVICE_CHANGE_TEMPLATE: IAgentContractTemplate;
|
|
46
|
+
/**
|
|
47
|
+
* Project-specific contract templates
|
|
48
|
+
* now live in packs and are merged via `loadAllContractTemplates`. The
|
|
49
|
+
* engine ships only generic templates here.
|
|
50
|
+
*/
|
|
51
|
+
export declare const ALL_CONTRACT_TEMPLATES: readonly IAgentContractTemplate[];
|
|
52
|
+
export declare function listContractTemplates(): readonly IAgentContractTemplate[];
|
|
53
|
+
export declare function getContractTemplate(id: string): IAgentContractTemplate | null;
|
|
54
|
+
export interface IContractTemplateMatchResult {
|
|
55
|
+
template: IAgentContractTemplate;
|
|
56
|
+
match: AgentContractTemplateMatch;
|
|
57
|
+
reason: string;
|
|
58
|
+
}
|
|
59
|
+
/** Score each template against a task + optional role. Highest score wins. */
|
|
60
|
+
export declare function recommendContractTemplate(task: string, role?: RoleId, intentKind?: string): readonly IContractTemplateMatchResult[];
|
|
61
|
+
export declare function renderContractTemplateMarkdown(t: IAgentContractTemplate, task?: string): string;
|
|
62
|
+
export declare function renderContractTemplateText(t: IAgentContractTemplate, task?: string): string;
|
|
63
|
+
//# sourceMappingURL=agent-contract-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-contract-templates.d.ts","sourceRoot":"","sources":["../src/agent-contract-templates.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,8BAA8B,0CAA0C,CAAC;AAEtF,oBAAY,0BAA0B;IACpC,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,iCAAiC;IAChD,mEAAmE;IACnE,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,oEAAoE;IACpE,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,6BAA6B,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC5D,0BAA0B,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,yBAAyB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C,uBAAuB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,WAAW,EAAE,iCAAiC,CAAC;CAChD;AAcD,eAAO,MAAM,6BAA6B,EAAE,sBA0B1C,CAAC;AAEH,eAAO,MAAM,0BAA0B,EAAE,sBA2BvC,CAAC;AAEH,eAAO,MAAM,qBAAqB,EAAE,sBAkClC,CAAC;AAEH,eAAO,MAAM,uBAAuB,EAAE,sBA2BpC,CAAC;AAEH,eAAO,MAAM,kCAAkC,EAAE,sBAmC/C,CAAC;AAEH,eAAO,MAAM,gCAAgC,EAAE,sBAkC7C,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,sBAAsB,EAOnE,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,SAAS,sBAAsB,EAAE,CAEzE;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAE7E;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,EAAE,0BAA0B,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,8EAA8E;AAC9E,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,4BAA4B,EAAE,CA4BzC;AAED,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAiC/F;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAiC3F"}
|