@agent-ix/quoin 0.22.5 → 0.24.1
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/README.md +8 -258
- package/bin/launcher.js +138 -0
- package/package.json +22 -119
- package/.agents/plugins/marketplace.json +0 -14
- package/.claude-plugin/marketplace.json +0 -16
- package/.claude-plugin/plugin.json +0 -8
- package/.codex-plugin/plugin.json +0 -27
- package/.github/plugin/marketplace.json +0 -16
- package/bin/quoin.js +0 -21
- package/default-modules.yaml +0 -107
- package/dist/advisor/advise.d.ts +0 -199
- package/dist/advisor/advise.d.ts.map +0 -1
- package/dist/advisor/index.d.ts +0 -10
- package/dist/advisor/index.d.ts.map +0 -1
- package/dist/advisor/methods.d.ts +0 -60
- package/dist/advisor/methods.d.ts.map +0 -1
- package/dist/advisor-BkgwDKvQ.js +0 -63
- package/dist/assurance/graph.d.ts +0 -87
- package/dist/assurance/graph.d.ts.map +0 -1
- package/dist/assurance/index.d.ts +0 -9
- package/dist/assurance/index.d.ts.map +0 -1
- package/dist/assurance/render.d.ts +0 -3
- package/dist/assurance/render.d.ts.map +0 -1
- package/dist/auditor/audit.d.ts +0 -146
- package/dist/auditor/audit.d.ts.map +0 -1
- package/dist/auditor/combinatorial.d.ts +0 -53
- package/dist/auditor/combinatorial.d.ts.map +0 -1
- package/dist/auditor/index.d.ts +0 -9
- package/dist/auditor/index.d.ts.map +0 -1
- package/dist/auditor-C3bSmPD_.js +0 -340
- package/dist/base-CqKNs2Kd.js +0 -137
- package/dist/base.d.ts +0 -23
- package/dist/base.d.ts.map +0 -1
- package/dist/catalog.d.ts +0 -33
- package/dist/catalog.d.ts.map +0 -1
- package/dist/cli.d.ts +0 -61
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -34
- package/dist/commands/advise.d.ts +0 -16
- package/dist/commands/advise.d.ts.map +0 -1
- package/dist/commands/advise.js +0 -234
- package/dist/commands/assurance.d.ts +0 -14
- package/dist/commands/assurance.d.ts.map +0 -1
- package/dist/commands/assurance.js +0 -204
- package/dist/commands/catalog/index.d.ts +0 -2
- package/dist/commands/catalog/index.d.ts.map +0 -1
- package/dist/commands/catalog/index.js +0 -2
- package/dist/commands/catalog/list.d.ts +0 -11
- package/dist/commands/catalog/list.d.ts.map +0 -1
- package/dist/commands/catalog/list.js +0 -22
- package/dist/commands/catalog/methods.d.ts +0 -12
- package/dist/commands/catalog/methods.d.ts.map +0 -1
- package/dist/commands/catalog/methods.js +0 -43
- package/dist/commands/catalog/show.d.ts +0 -13
- package/dist/commands/catalog/show.d.ts.map +0 -1
- package/dist/commands/catalog/show.js +0 -25
- package/dist/commands/catalog/validate.d.ts +0 -10
- package/dist/commands/catalog/validate.d.ts.map +0 -1
- package/dist/commands/catalog/validate.js +0 -27
- package/dist/commands/completeness.d.ts +0 -16
- package/dist/commands/completeness.d.ts.map +0 -1
- package/dist/commands/completeness.js +0 -49
- package/dist/commands/config/doctor.d.ts +0 -7
- package/dist/commands/config/doctor.d.ts.map +0 -1
- package/dist/commands/config/doctor.js +0 -15
- package/dist/commands/config/edit.d.ts +0 -7
- package/dist/commands/config/edit.d.ts.map +0 -1
- package/dist/commands/config/edit.js +0 -13
- package/dist/commands/config/get.d.ts +0 -11
- package/dist/commands/config/get.d.ts.map +0 -1
- package/dist/commands/config/get.js +0 -20
- package/dist/commands/config/index.d.ts +0 -2
- package/dist/commands/config/index.d.ts.map +0 -1
- package/dist/commands/config/index.js +0 -2
- package/dist/commands/config/set.d.ts +0 -12
- package/dist/commands/config/set.d.ts.map +0 -1
- package/dist/commands/config/set.js +0 -26
- package/dist/commands/evidence/affirm.d.ts +0 -17
- package/dist/commands/evidence/affirm.d.ts.map +0 -1
- package/dist/commands/evidence/affirm.js +0 -65
- package/dist/commands/evidence/audit.d.ts +0 -34
- package/dist/commands/evidence/audit.d.ts.map +0 -1
- package/dist/commands/evidence/audit.js +0 -107
- package/dist/commands/evidence/baseline.d.ts +0 -14
- package/dist/commands/evidence/baseline.d.ts.map +0 -1
- package/dist/commands/evidence/baseline.js +0 -89
- package/dist/commands/evidence/gc.d.ts +0 -13
- package/dist/commands/evidence/gc.d.ts.map +0 -1
- package/dist/commands/evidence/gc.js +0 -35
- package/dist/commands/evidence/index.d.ts +0 -8
- package/dist/commands/evidence/index.d.ts.map +0 -1
- package/dist/commands/evidence/index.js +0 -18
- package/dist/commands/evidence/inspect-mocks.d.ts +0 -16
- package/dist/commands/evidence/inspect-mocks.d.ts.map +0 -1
- package/dist/commands/evidence/inspect-mocks.js +0 -49
- package/dist/commands/evidence/record.d.ts +0 -22
- package/dist/commands/evidence/record.d.ts.map +0 -1
- package/dist/commands/evidence/record.js +0 -140
- package/dist/commands/matrix.d.ts +0 -14
- package/dist/commands/matrix.d.ts.map +0 -1
- package/dist/commands/matrix.js +0 -15
- package/dist/commands/measurement/index.d.ts +0 -7
- package/dist/commands/measurement/index.d.ts.map +0 -1
- package/dist/commands/measurement/index.js +0 -11
- package/dist/commands/measurement/record.d.ts +0 -10
- package/dist/commands/measurement/record.d.ts.map +0 -1
- package/dist/commands/measurement/record.js +0 -35
- package/dist/commands/module/ensure-defaults.d.ts +0 -8
- package/dist/commands/module/ensure-defaults.d.ts.map +0 -1
- package/dist/commands/module/ensure-defaults.js +0 -17
- package/dist/commands/module/index.d.ts +0 -2
- package/dist/commands/module/index.d.ts.map +0 -1
- package/dist/commands/module/index.js +0 -2
- package/dist/commands/module/install.d.ts +0 -11
- package/dist/commands/module/install.d.ts.map +0 -1
- package/dist/commands/module/install.js +0 -22
- package/dist/commands/module/list.d.ts +0 -8
- package/dist/commands/module/list.d.ts.map +0 -1
- package/dist/commands/module/list.js +0 -13
- package/dist/commands/module/remove.d.ts +0 -10
- package/dist/commands/module/remove.d.ts.map +0 -1
- package/dist/commands/module/remove.js +0 -16
- package/dist/commands/plugin/deprecation.d.ts +0 -10
- package/dist/commands/plugin/deprecation.d.ts.map +0 -1
- package/dist/commands/plugin/ensure-defaults.d.ts +0 -8
- package/dist/commands/plugin/ensure-defaults.d.ts.map +0 -1
- package/dist/commands/plugin/ensure-defaults.js +0 -12
- package/dist/commands/plugin/index.d.ts +0 -2
- package/dist/commands/plugin/index.d.ts.map +0 -1
- package/dist/commands/plugin/index.js +0 -2
- package/dist/commands/plugin/install.d.ts +0 -8
- package/dist/commands/plugin/install.d.ts.map +0 -1
- package/dist/commands/plugin/install.js +0 -12
- package/dist/commands/plugin/list.d.ts +0 -8
- package/dist/commands/plugin/list.d.ts.map +0 -1
- package/dist/commands/plugin/list.js +0 -12
- package/dist/commands/plugin/remove.d.ts +0 -8
- package/dist/commands/plugin/remove.d.ts.map +0 -1
- package/dist/commands/plugin/remove.js +0 -12
- package/dist/commands/report.d.ts +0 -15
- package/dist/commands/report.d.ts.map +0 -1
- package/dist/commands/report.js +0 -70
- package/dist/commands/review.d.ts +0 -14
- package/dist/commands/review.d.ts.map +0 -1
- package/dist/commands/review.js +0 -15
- package/dist/commands/to-plan.d.ts +0 -14
- package/dist/commands/to-plan.d.ts.map +0 -1
- package/dist/commands/to-plan.js +0 -15
- package/dist/commands/update.d.ts +0 -13
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -34
- package/dist/commands/validate.d.ts +0 -13
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -123
- package/dist/commands/write.d.ts +0 -16
- package/dist/commands/write.d.ts.map +0 -1
- package/dist/commands/write.js +0 -33
- package/dist/completeness/assess.d.ts +0 -82
- package/dist/completeness/assess.d.ts.map +0 -1
- package/dist/completeness/bundle.d.ts +0 -52
- package/dist/completeness/bundle.d.ts.map +0 -1
- package/dist/completeness/declarations.d.ts +0 -46
- package/dist/completeness/declarations.d.ts.map +0 -1
- package/dist/completeness/index.d.ts +0 -11
- package/dist/completeness/index.d.ts.map +0 -1
- package/dist/completeness/run.d.ts +0 -35
- package/dist/completeness/run.d.ts.map +0 -1
- package/dist/completeness-DamWradt.js +0 -228
- package/dist/config-schema-Dp-vlxuR.js +0 -13
- package/dist/config-schema.d.ts +0 -52
- package/dist/config-schema.d.ts.map +0 -1
- package/dist/deprecation-fRxUHoxv.js +0 -4
- package/dist/evidence/adapters/agent-eval.d.ts +0 -26
- package/dist/evidence/adapters/agent-eval.d.ts.map +0 -1
- package/dist/evidence/adapters/audit-script.d.ts +0 -25
- package/dist/evidence/adapters/audit-script.d.ts.map +0 -1
- package/dist/evidence/adapters/cargo-mutants.d.ts +0 -3
- package/dist/evidence/adapters/cargo-mutants.d.ts.map +0 -1
- package/dist/evidence/adapters/junit.d.ts +0 -17
- package/dist/evidence/adapters/junit.d.ts.map +0 -1
- package/dist/evidence/adapters/registry.d.ts +0 -63
- package/dist/evidence/adapters/registry.d.ts.map +0 -1
- package/dist/evidence/adapters/sarif.d.ts +0 -35
- package/dist/evidence/adapters/sarif.d.ts.map +0 -1
- package/dist/evidence/adapters/sbom.d.ts +0 -35
- package/dist/evidence/adapters/sbom.d.ts.map +0 -1
- package/dist/evidence/adapters/types.d.ts +0 -55
- package/dist/evidence/adapters/types.d.ts.map +0 -1
- package/dist/evidence/index.d.ts +0 -24
- package/dist/evidence/index.d.ts.map +0 -1
- package/dist/evidence/mock-inspection.d.ts +0 -16
- package/dist/evidence/mock-inspection.d.ts.map +0 -1
- package/dist/evidence/record.d.ts +0 -58
- package/dist/evidence/record.d.ts.map +0 -1
- package/dist/evidence/store.d.ts +0 -215
- package/dist/evidence/store.d.ts.map +0 -1
- package/dist/evidence/types.d.ts +0 -281
- package/dist/evidence/types.d.ts.map +0 -1
- package/dist/evidence-DD0CHzJ0.js +0 -533
- package/dist/flow-command-BfFNY0Rv.js +0 -88
- package/dist/flow-command.d.ts +0 -25
- package/dist/flow-command.d.ts.map +0 -1
- package/dist/flows.d.ts +0 -7
- package/dist/flows.d.ts.map +0 -1
- package/dist/hooks/command-not-found.d.ts +0 -23
- package/dist/hooks/command-not-found.d.ts.map +0 -1
- package/dist/hooks/command-not-found.js +0 -8
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10
- package/dist/measurement/compare.d.ts +0 -4
- package/dist/measurement/compare.d.ts.map +0 -1
- package/dist/measurement/index.d.ts +0 -9
- package/dist/measurement/index.d.ts.map +0 -1
- package/dist/measurement/plans.d.ts +0 -4
- package/dist/measurement/plans.d.ts.map +0 -1
- package/dist/measurement/portfolio.d.ts +0 -48
- package/dist/measurement/portfolio.d.ts.map +0 -1
- package/dist/measurement/profiles.d.ts +0 -9
- package/dist/measurement/profiles.d.ts.map +0 -1
- package/dist/measurement/report.d.ts +0 -44
- package/dist/measurement/report.d.ts.map +0 -1
- package/dist/measurement/store.d.ts +0 -7
- package/dist/measurement/store.d.ts.map +0 -1
- package/dist/measurement/types.d.ts +0 -83
- package/dist/measurement/types.d.ts.map +0 -1
- package/dist/measurement/validate.d.ts +0 -9
- package/dist/measurement/validate.d.ts.map +0 -1
- package/dist/measurement-CzB74Q07.js +0 -595
- package/dist/modules-ez9httBA.js +0 -23
- package/dist/modules.d.ts +0 -10
- package/dist/modules.d.ts.map +0 -1
- package/dist/org.d.ts +0 -61
- package/dist/org.d.ts.map +0 -1
- package/dist/plugins-C-ta0llj.js +0 -77
- package/dist/plugins.d.ts +0 -13
- package/dist/plugins.d.ts.map +0 -1
- package/dist/quire/contract.d.ts +0 -87
- package/dist/quire/contract.d.ts.map +0 -1
- package/dist/quire/exec.d.ts +0 -66
- package/dist/quire/exec.d.ts.map +0 -1
- package/dist/quire/index.d.ts +0 -12
- package/dist/quire/index.d.ts.map +0 -1
- package/dist/quire/types.d.ts +0 -415
- package/dist/quire/types.d.ts.map +0 -1
- package/dist/quire/validate.d.ts +0 -34
- package/dist/quire/validate.d.ts.map +0 -1
- package/dist/quire-D8tCpgyA.js +0 -4961
- package/dist/schemas/coverage-v1.schema.json +0 -1111
- package/dist/schemas/properties-v1.schema.json +0 -159
- package/dist/store--2sAv12X.js +0 -219
- package/dist/validators/gates.d.ts +0 -18
- package/dist/validators/gates.d.ts.map +0 -1
- package/dist/validators/index.d.ts +0 -2
- package/dist/validators/index.d.ts.map +0 -1
- package/dist/version-Dg0e6CZU.js +0 -17
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/write-DElwS9xc.js +0 -157
- package/dist/write.d.ts +0 -28
- package/dist/write.d.ts.map +0 -1
- package/skills/assurance-status-report/SKILL.md +0 -135
- package/skills/assurance-status-report/references/report-contract.md +0 -110
- package/skills/gap-analysis/SKILL.md +0 -111
- package/skills/gap-analysis/references/step-1-target-selection.md +0 -53
- package/skills/gap-analysis/references/step-2-plan-completion.md +0 -49
- package/skills/gap-analysis/references/step-3-matrix-verification.md +0 -147
- package/skills/gap-analysis/references/step-4-underspecified-code.md +0 -63
- package/skills/gap-analysis/references/step-5-semantic-review.md +0 -51
- package/skills/gap-analysis/references/step-6-specreview-artifact.md +0 -107
- package/skills/spec-app-review/SKILL.md +0 -51
- package/skills/spec-app-review/references/checklist.md +0 -197
- package/skills/spec-architecture-evaluation/SKILL.md +0 -30
- package/skills/spec-correctness/SKILL.md +0 -96
- package/skills/spec-correctness/assets/strategy-table.md +0 -101
- package/skills/spec-correctness/assets/templates/fast-check.ts.md +0 -169
- package/skills/spec-correctness/assets/templates/hypothesis.py.md +0 -156
- package/skills/spec-correctness/assets/templates/proptest.rs.md +0 -147
- package/skills/spec-correctness/references/step-0-scope-and-harness.md +0 -94
- package/skills/spec-correctness/references/step-1-census.md +0 -53
- package/skills/spec-correctness/references/step-2-clause-grounding.md +0 -159
- package/skills/spec-correctness/references/step-3-strategy-selection.md +0 -85
- package/skills/spec-correctness/references/step-4-generate-tests.md +0 -117
- package/skills/spec-correctness/references/step-5-second-pass.md +0 -81
- package/skills/spec-correctness/references/step-6-review-artifact.md +0 -134
- package/skills/spec-correctness/references/step-7-report-and-handoff.md +0 -102
- package/skills/spec-dependency-analysis/SKILL.md +0 -90
- package/skills/spec-ears-analysis/SKILL.md +0 -102
- package/skills/spec-evidence-analysis/SKILL.md +0 -156
- package/skills/spec-failure-domain-analysis/SKILL.md +0 -59
- package/skills/spec-fuzz/SKILL.md +0 -132
- package/skills/spec-fuzz/assets/templates/atheris.py.md +0 -74
- package/skills/spec-fuzz/assets/templates/cargo-fuzz.rs.md +0 -83
- package/skills/spec-fuzz/assets/templates/fast-check.ts.md +0 -76
- package/skills/spec-fuzz/references/step-0-scope-and-harness.md +0 -51
- package/skills/spec-fuzz/references/step-1-select-obligations.md +0 -47
- package/skills/spec-fuzz/references/step-2-ground-entry-point.md +0 -55
- package/skills/spec-fuzz/references/step-3-emit-targets.md +0 -65
- package/skills/spec-fuzz/references/step-4-report.md +0 -56
- package/skills/spec-ideation/SKILL.md +0 -46
- package/skills/spec-integrity-analysis/SKILL.md +0 -62
- package/skills/spec-matrix/SKILL.md +0 -186
- package/skills/spec-matrix/assets/test-cases/TC-001.md +0 -35
- package/skills/spec-matrix/assets/test-cases/TC-002.md +0 -37
- package/skills/spec-matrix/assets/test-cases/TC-006.md +0 -50
- package/skills/spec-matrix/assets/test-matrix-example.md +0 -104
- package/skills/spec-matrix/assets/test-matrix-template.md +0 -123
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-matrix/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +0 -35
- package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +0 -1
- package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +0 -30
- package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +0 -82
- package/skills/spec-object-review/SKILL.md +0 -125
- package/skills/spec-object-review/references/object-type-guide.md +0 -118
- package/skills/spec-review/SKILL.md +0 -92
- package/skills/spec-review/references/checklist.md +0 -50
- package/skills/spec-review/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-review/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-review/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-review/workflow-assets/skills/review/SKILL.md +0 -96
- package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +0 -61
- package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +0 -68
- package/skills/spec-risk-complexity-analysis/SKILL.md +0 -92
- package/skills/spec-scope-boundary-analysis/SKILL.md +0 -101
- package/skills/spec-security-analysis/SKILL.md +0 -84
- package/skills/spec-security-analysis/assets/security-analysis-example.md +0 -89
- package/skills/spec-security-analysis/assets/security-analysis-template.md +0 -73
- package/skills/spec-security-analysis/references/component-type-mapping.md +0 -161
- package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +0 -58
- package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +0 -84
- package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +0 -83
- package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +0 -62
- package/skills/spec-security-analysis/references/gdpr/index.md +0 -54
- package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +0 -64
- package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +0 -30
- package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +0 -35
- package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +0 -66
- package/skills/spec-security-analysis/references/iso27001/index.md +0 -43
- package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +0 -57
- package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +0 -49
- package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +0 -36
- package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +0 -44
- package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +0 -50
- package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +0 -53
- package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +0 -52
- package/skills/spec-security-analysis/references/nist-800-53/index.md +0 -58
- package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +0 -33
- package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +0 -33
- package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +0 -32
- package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +0 -35
- package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +0 -36
- package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +0 -35
- package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +0 -39
- package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +0 -37
- package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +0 -37
- package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +0 -34
- package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +0 -32
- package/skills/spec-security-analysis/references/owasp-asvs/index.md +0 -59
- package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +0 -31
- package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +0 -27
- package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +0 -29
- package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +0 -27
- package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +0 -28
- package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +0 -45
- package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +0 -42
- package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +0 -32
- package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +0 -34
- package/skills/spec-security-analysis/references/soc2/index.md +0 -46
- package/skills/spec-security-analysis/references/standards-index.md +0 -46
- package/skills/spec-to-plan/SKILL.md +0 -88
- package/skills/spec-to-plan/references/step-0-plan-selection.md +0 -121
- package/skills/spec-to-plan/references/step-1-analysis.md +0 -88
- package/skills/spec-to-plan/references/step-2-test-plan.md +0 -43
- package/skills/spec-to-plan/references/step-3-execution-plan.md +0 -218
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +0 -146
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +0 -1
- package/skills/spec-to-plan/workflow-assets/dist/index.js +0 -7525
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +0 -6
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +0 -1
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +0 -35
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +0 -1
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +0 -44
- package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +0 -85
- package/skills/specify/SKILL.md +0 -154
- package/skills/specify/assets/app-spec-template.md +0 -143
- package/skills/specify/assets/spec-template.md +0 -299
- package/skills/specify/references/integration-tests.md +0 -72
- package/skills/specify/references/us-to-fr.md +0 -40
- package/skills/specify/references/writing-good-requirements.md +0 -61
|
@@ -1,533 +0,0 @@
|
|
|
1
|
-
import { _ as e, f as t, p as n, r, u as i, x as a, y as o } from "./store--2sAv12X.js";
|
|
2
|
-
import { readFileSync as s, readdirSync as c } from "node:fs";
|
|
3
|
-
import { extname as l, join as u, relative as d } from "node:path";
|
|
4
|
-
//#region src/evidence/record.ts
|
|
5
|
-
function f(n) {
|
|
6
|
-
let i = o(n.repo, {
|
|
7
|
-
schemaVersion: 1,
|
|
8
|
-
suite: n.suite,
|
|
9
|
-
commit: n.commit,
|
|
10
|
-
tool: n.tool,
|
|
11
|
-
evidenceKind: n.evidenceKind,
|
|
12
|
-
timestamp: n.timestamp,
|
|
13
|
-
entries: n.entries
|
|
14
|
-
}), a = new Map(n.obligations.map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
|
|
15
|
-
for (let e of n.obligations) for (let t of e.target_ids ?? []) a.has(t) || s.set(t, [...s.get(t) ?? [], e]);
|
|
16
|
-
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
|
|
17
|
-
for (let e of n.entries) for (let t of e.traceIds ?? []) {
|
|
18
|
-
let n = a.has(t) ? [a.get(t)] : s.get(t) ?? [];
|
|
19
|
-
if (n.length === 0) {
|
|
20
|
-
l.add(t);
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
if (e.outcome === "pass") for (let t of n) {
|
|
24
|
-
let n = c.get(t.id) ?? [];
|
|
25
|
-
n.push(e.symbol), c.set(t.id, n);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
let u = t(n.repo).bindings, d = [], f = [];
|
|
29
|
-
for (let [e, t] of [...c].sort(([e], [t]) => e === t ? 0 : e < t ? -1 : 1)) {
|
|
30
|
-
let i = a.get(e);
|
|
31
|
-
if (!i) continue;
|
|
32
|
-
let o = r(u, {
|
|
33
|
-
obligation: e,
|
|
34
|
-
statementHashAtBinding: i.statement_hash,
|
|
35
|
-
suite: n.suite,
|
|
36
|
-
commit: n.commit,
|
|
37
|
-
symbols: [...t].sort()
|
|
38
|
-
});
|
|
39
|
-
u = o.bindings, o.created && d.push(e), o.suspect && f.push(e);
|
|
40
|
-
}
|
|
41
|
-
return e(n.repo, { bindings: u }), {
|
|
42
|
-
runPath: i,
|
|
43
|
-
bound: d.sort(),
|
|
44
|
-
suspect: f.sort(),
|
|
45
|
-
unmatched: [...l].sort()
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function p(e) {
|
|
49
|
-
return e.obligations ?? [];
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/evidence/adapters/types.ts
|
|
53
|
-
var m = class extends Error {
|
|
54
|
-
adapter;
|
|
55
|
-
constructor(e, t) {
|
|
56
|
-
super(`${e}: ${t}`), this.adapter = e, this.name = "AdapterError";
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/evidence/adapters/cargo-mutants.ts
|
|
61
|
-
function h(e) {
|
|
62
|
-
let t = e.file?.trim(), n = e.function?.function_name?.trim();
|
|
63
|
-
if (t !== void 0 && t !== "" && n !== void 0 && n !== "") return `${t}::${n}`;
|
|
64
|
-
}
|
|
65
|
-
var g = {
|
|
66
|
-
name: "cargo-mutants",
|
|
67
|
-
summary: "cargo-mutants outcomes.json — mutation score per mutated function.",
|
|
68
|
-
tools: ["cargo-mutants", "cargo mutants"],
|
|
69
|
-
parse(e) {
|
|
70
|
-
let t;
|
|
71
|
-
try {
|
|
72
|
-
t = JSON.parse(e);
|
|
73
|
-
} catch (e) {
|
|
74
|
-
throw new m("cargo-mutants", `input is not JSON: ${e.message}`);
|
|
75
|
-
}
|
|
76
|
-
if (!Array.isArray(t.outcomes)) throw new m("cargo-mutants", "no `outcomes` array — expected the contents of mutants.out/outcomes.json");
|
|
77
|
-
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
78
|
-
for (let e of t.outcomes) {
|
|
79
|
-
if (e.scenario === "Baseline" || typeof e.scenario != "object") continue;
|
|
80
|
-
let t = e.scenario.Mutant;
|
|
81
|
-
if (t === void 0) continue;
|
|
82
|
-
let i = h(t);
|
|
83
|
-
i !== void 0 && (e.summary === "CaughtMutant" ? n.set(i, (n.get(i) ?? 0) + 1) : (e.summary === "MissedMutant" || e.summary === "Timeout") && r.set(i, (r.get(i) ?? 0) + 1));
|
|
84
|
-
}
|
|
85
|
-
let i = [.../* @__PURE__ */ new Set([...n.keys(), ...r.keys()])].sort();
|
|
86
|
-
if (i.length === 0) throw new m("cargo-mutants", "no viable mutants in the report — nothing was measured");
|
|
87
|
-
return { entries: i.map((e) => {
|
|
88
|
-
let t = n.get(e) ?? 0, i = r.get(e) ?? 0, o = t + i;
|
|
89
|
-
return {
|
|
90
|
-
symbol: e,
|
|
91
|
-
outcome: i === 0 ? "pass" : "fail",
|
|
92
|
-
score: t / o,
|
|
93
|
-
metric: a
|
|
94
|
-
};
|
|
95
|
-
}) };
|
|
96
|
-
}
|
|
97
|
-
}, _ = /<testcase\b([^>]*?)(\/>|>([\s\S]*?)<\/testcase\s*>)/g, v = /([\w:.-]+)\s*=\s*"([^"]*)"/g;
|
|
98
|
-
function y(e) {
|
|
99
|
-
let t = /* @__PURE__ */ new Map();
|
|
100
|
-
for (let n of e.matchAll(v)) t.set(n[1], ee(n[2]));
|
|
101
|
-
return t;
|
|
102
|
-
}
|
|
103
|
-
function ee(e) {
|
|
104
|
-
return e.replaceAll("<", "<").replaceAll(">", ">").replaceAll(""", "\"").replaceAll("'", "'").replaceAll("&", "&");
|
|
105
|
-
}
|
|
106
|
-
function b(e, t) {
|
|
107
|
-
let n = e.trim(), r = t.trim();
|
|
108
|
-
return n === "" ? r : r === "" ? n : n === r ? r : n.endsWith(`::${r}`) || n.endsWith(`.${r}`) ? n.replaceAll(".", "::") : `${n.replaceAll(".", "::")}::${r}`;
|
|
109
|
-
}
|
|
110
|
-
var x = /<property\b([^>]*)\/?>/g;
|
|
111
|
-
function S(e) {
|
|
112
|
-
let t = [];
|
|
113
|
-
for (let n of e.matchAll(x)) {
|
|
114
|
-
let e = y(n[1]), r = e.get("name"), i = e.get("value");
|
|
115
|
-
if (r !== void 0 && i !== void 0 && (r === "trace" || r === "traceIds" || r === "trace_ids")) for (let e of i.split(/[,\s]+/)) e !== "" && t.push(e);
|
|
116
|
-
}
|
|
117
|
-
return t.length > 0 ? t : void 0;
|
|
118
|
-
}
|
|
119
|
-
function C(e) {
|
|
120
|
-
return /<error\b/.test(e) ? "error" : /<failure\b/.test(e) ? "fail" : /<skipped\b/.test(e) ? "skip" : "pass";
|
|
121
|
-
}
|
|
122
|
-
var w = {
|
|
123
|
-
name: "junit",
|
|
124
|
-
summary: "JUnit XML (<testsuite>/<testcase>), as emitted by most runners.",
|
|
125
|
-
tools: [
|
|
126
|
-
"junit",
|
|
127
|
-
"pytest",
|
|
128
|
-
"jest",
|
|
129
|
-
"vitest",
|
|
130
|
-
"gotestsum",
|
|
131
|
-
"surefire"
|
|
132
|
-
],
|
|
133
|
-
parse(e) {
|
|
134
|
-
let t = [];
|
|
135
|
-
for (let n of e.matchAll(_)) {
|
|
136
|
-
let e = y(n[1]), r = n[3] ?? "", i = b(e.get("classname") ?? "", e.get("name") ?? "");
|
|
137
|
-
if (i === "") continue;
|
|
138
|
-
let a = S(r);
|
|
139
|
-
t.push({
|
|
140
|
-
symbol: i,
|
|
141
|
-
outcome: C(r),
|
|
142
|
-
...a === void 0 ? {} : { traceIds: a }
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
if (t.length === 0) throw new m("junit", "no <testcase> elements found — is this JUnit XML?");
|
|
146
|
-
return { entries: t };
|
|
147
|
-
}
|
|
148
|
-
}, T = /^([A-Za-z0-9._-]+):\s*(OK|FAIL)\b\s*(?:[—-]\s*)?(.*)$/, E = /\(([^)]*)\)[.\s]*$/, D = /\b((?:FR|NFR|StR|US)-\d+-AC-\d+|TC-\d+)\b/g;
|
|
149
|
-
function O(e) {
|
|
150
|
-
let t = E.exec(e);
|
|
151
|
-
if (!t) return;
|
|
152
|
-
let n = [...t[1].matchAll(D)].map((e) => e[1]);
|
|
153
|
-
return n.length > 0 ? n : void 0;
|
|
154
|
-
}
|
|
155
|
-
function k(e) {
|
|
156
|
-
let t = [], n = 0;
|
|
157
|
-
for (let r of e.split("\n")) {
|
|
158
|
-
let e = T.exec(r.trim());
|
|
159
|
-
if (!e) continue;
|
|
160
|
-
let [, i, a, o] = e;
|
|
161
|
-
if (n += 1, a === "OK") continue;
|
|
162
|
-
let s = o.trim(), c = O(s);
|
|
163
|
-
t.push({
|
|
164
|
-
ruleId: i,
|
|
165
|
-
severity: "violation",
|
|
166
|
-
...s === "" ? {} : { message: s },
|
|
167
|
-
...c === void 0 ? {} : { traceIds: c }
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
if (n === 0) throw new m("audit-script", "no `<name>: OK` or `<name>: FAIL` line found — is this audit-script output?");
|
|
171
|
-
return {
|
|
172
|
-
findings: t,
|
|
173
|
-
tool: "audit-script",
|
|
174
|
-
rulesEvaluated: n
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/evidence/adapters/agent-eval.ts
|
|
179
|
-
function A(e) {
|
|
180
|
-
let t;
|
|
181
|
-
try {
|
|
182
|
-
t = JSON.parse(e);
|
|
183
|
-
} catch (e) {
|
|
184
|
-
throw new m("agent-eval", `not JSON: ${e instanceof Error ? e.message : String(e)}`);
|
|
185
|
-
}
|
|
186
|
-
let n = t;
|
|
187
|
-
if (!n || typeof n != "object" || !Array.isArray(n.results)) throw new m("agent-eval", "expected a cli-agent-evals report with a \"results\" array");
|
|
188
|
-
let r = [];
|
|
189
|
-
for (let e of n.results) {
|
|
190
|
-
let t = typeof e.id == "string" ? e.id : null;
|
|
191
|
-
t && r.push({
|
|
192
|
-
symbol: t,
|
|
193
|
-
outcome: e.ok === !0 ? "pass" : "fail",
|
|
194
|
-
traceIds: [t],
|
|
195
|
-
...j(e)
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
if (r.length === 0) throw new m("agent-eval", "no scenario results in the report — did the suite run?");
|
|
199
|
-
return { entries: r };
|
|
200
|
-
}
|
|
201
|
-
function j(e) {
|
|
202
|
-
let t = e.passRate;
|
|
203
|
-
if (typeof t != "string") return {};
|
|
204
|
-
let [n, r] = t.split("/").map(Number);
|
|
205
|
-
return !Number.isFinite(n) || !Number.isFinite(r) || r === 0 ? {} : { score: n / r };
|
|
206
|
-
}
|
|
207
|
-
var M = {
|
|
208
|
-
name: "agent-eval",
|
|
209
|
-
summary: "cli-agent-evals report JSON — one entry per scenario, keyed on the scenario id.",
|
|
210
|
-
tools: [
|
|
211
|
-
"cli-agent-evals",
|
|
212
|
-
"agent-evals",
|
|
213
|
-
"agent-pty"
|
|
214
|
-
],
|
|
215
|
-
parse: A
|
|
216
|
-
};
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/evidence/adapters/sbom.ts
|
|
219
|
-
function N(e) {
|
|
220
|
-
let t;
|
|
221
|
-
try {
|
|
222
|
-
t = JSON.parse(e);
|
|
223
|
-
} catch (e) {
|
|
224
|
-
throw new m("sbom", `not JSON: ${e instanceof Error ? e.message : String(e)}. CycloneDX and SPDX both have JSON serialisations; the tag-value SPDX form is not read here.`);
|
|
225
|
-
}
|
|
226
|
-
if (!t || typeof t != "object") throw new m("sbom", "expected a JSON object");
|
|
227
|
-
let n = t;
|
|
228
|
-
return { entries: P(n) ?? F(n) ?? te(n) };
|
|
229
|
-
}
|
|
230
|
-
function P(e) {
|
|
231
|
-
return String(e.bomFormat ?? "") === "CycloneDX" ? (Array.isArray(e.components) ? e.components : []).map((e) => {
|
|
232
|
-
let t = e, n = typeof t.purl == "string" ? t.purl : null, r = typeof t.name == "string" ? t.name : null;
|
|
233
|
-
if (!n && !r) return null;
|
|
234
|
-
let i = typeof t.version == "string" ? t.version : null;
|
|
235
|
-
return {
|
|
236
|
-
symbol: n ?? (i ? `${r}@${i}` : r),
|
|
237
|
-
outcome: "pass"
|
|
238
|
-
};
|
|
239
|
-
}).filter((e) => e !== null) : null;
|
|
240
|
-
}
|
|
241
|
-
function F(e) {
|
|
242
|
-
return typeof e.spdxVersion == "string" ? (Array.isArray(e.packages) ? e.packages : []).map((e) => {
|
|
243
|
-
let t = e, n = (Array.isArray(t.externalRefs) ? t.externalRefs : []).map((e) => e).find((e) => String(e.referenceType ?? "") === "purl"), r = n && typeof n.referenceLocator == "string" ? n.referenceLocator : null, i = typeof t.name == "string" ? t.name : null;
|
|
244
|
-
if (!r && !i) return null;
|
|
245
|
-
let a = typeof t.versionInfo == "string" ? t.versionInfo : null;
|
|
246
|
-
return {
|
|
247
|
-
symbol: r ?? (a ? `${i}@${a}` : i),
|
|
248
|
-
outcome: "pass"
|
|
249
|
-
};
|
|
250
|
-
}).filter((e) => e !== null) : null;
|
|
251
|
-
}
|
|
252
|
-
function te(e) {
|
|
253
|
-
throw new m("sbom", `neither a CycloneDX (\`bomFormat\`) nor an SPDX (\`spdxVersion\`) document — top-level keys: ${Object.keys(e).slice(0, 6).join(", ") || "(none)"}`);
|
|
254
|
-
}
|
|
255
|
-
var I = {
|
|
256
|
-
name: "sbom",
|
|
257
|
-
summary: "CycloneDX or SPDX JSON — one entry per component, so an empty inventory reads as vacuous.",
|
|
258
|
-
tools: [
|
|
259
|
-
"cyclonedx",
|
|
260
|
-
"spdx",
|
|
261
|
-
"syft",
|
|
262
|
-
"cdxgen",
|
|
263
|
-
"cargo-cyclonedx"
|
|
264
|
-
],
|
|
265
|
-
parse: N
|
|
266
|
-
};
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/evidence/adapters/sarif.ts
|
|
269
|
-
function L(e) {
|
|
270
|
-
let t;
|
|
271
|
-
try {
|
|
272
|
-
t = JSON.parse(e);
|
|
273
|
-
} catch (e) {
|
|
274
|
-
throw new m("sarif", `input is not JSON: ${e.message}`);
|
|
275
|
-
}
|
|
276
|
-
if (!Array.isArray(t.runs)) throw new m("sarif", "no `runs` array — expected a SARIF 2.1.0 log");
|
|
277
|
-
if (t.runs.length === 0) throw new m("sarif", "`runs` is empty — a log with no run proves no scan executed");
|
|
278
|
-
let n = [], r = [], i;
|
|
279
|
-
for (let e of t.runs) {
|
|
280
|
-
let t = e.tool?.driver;
|
|
281
|
-
t?.name !== void 0 && t.name !== "" && r.push(t.version === void 0 ? t.name : `${t.name} ${t.version}`), Array.isArray(t?.rules) && (i = (i ?? 0) + t.rules.length);
|
|
282
|
-
for (let t of e.results ?? []) {
|
|
283
|
-
let e = t.ruleId ?? t.rule?.id;
|
|
284
|
-
if (e === void 0 || e === "") continue;
|
|
285
|
-
let r = t.locations?.[0]?.physicalLocation;
|
|
286
|
-
n.push({
|
|
287
|
-
ruleId: e,
|
|
288
|
-
...t.level === void 0 ? {} : { severity: t.level },
|
|
289
|
-
...t.message?.text === void 0 ? {} : { message: t.message.text },
|
|
290
|
-
...r?.artifactLocation?.uri === void 0 ? {} : { path: r.artifactLocation.uri },
|
|
291
|
-
...r?.region?.startLine === void 0 ? {} : { line: r.region.startLine }
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return {
|
|
296
|
-
findings: n,
|
|
297
|
-
...r.length === 0 ? {} : { tool: r.join(", ") },
|
|
298
|
-
...i === void 0 ? {} : { rulesEvaluated: i }
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
function R(e) {
|
|
302
|
-
let t;
|
|
303
|
-
try {
|
|
304
|
-
t = JSON.parse(e);
|
|
305
|
-
} catch (e) {
|
|
306
|
-
throw new m("cargo-audit", `input is not JSON: ${e.message}`);
|
|
307
|
-
}
|
|
308
|
-
if (t.vulnerabilities === void 0) throw new m("cargo-audit", "no `vulnerabilities` object — expected `cargo audit --json` output");
|
|
309
|
-
let n = [], r = (e, t) => {
|
|
310
|
-
let r = e.advisory?.id;
|
|
311
|
-
if (r === void 0 || r === "") return;
|
|
312
|
-
let i = e.package;
|
|
313
|
-
n.push({
|
|
314
|
-
ruleId: r,
|
|
315
|
-
severity: t,
|
|
316
|
-
...e.advisory?.title === void 0 ? {} : { message: e.advisory.title },
|
|
317
|
-
...i?.name === void 0 ? {} : { path: i.version === void 0 ? i.name : `${i.name}@${i.version}` }
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
for (let e of t.vulnerabilities.list ?? []) r(e, "vulnerability");
|
|
321
|
-
for (let [e, n] of Object.entries(t.warnings ?? {})) for (let t of n) r(t, e);
|
|
322
|
-
let i = t.database?.["advisory-count"];
|
|
323
|
-
return {
|
|
324
|
-
findings: n,
|
|
325
|
-
tool: "cargo-audit",
|
|
326
|
-
...i === void 0 ? {} : { rulesEvaluated: i }
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
//#endregion
|
|
330
|
-
//#region src/evidence/adapters/registry.ts
|
|
331
|
-
var z = {
|
|
332
|
-
name: "entries",
|
|
333
|
-
summary: "Normalized {\"entries\": [{symbol, outcome, traceIds?}]} — the default.",
|
|
334
|
-
tools: [],
|
|
335
|
-
parse(e) {
|
|
336
|
-
let t;
|
|
337
|
-
try {
|
|
338
|
-
t = JSON.parse(e);
|
|
339
|
-
} catch (e) {
|
|
340
|
-
throw new m("entries", `input is not JSON: ${e.message}`);
|
|
341
|
-
}
|
|
342
|
-
if (!Array.isArray(t.entries)) throw new m("entries", "expected JSON of the form {\"entries\": [{symbol, outcome, traceIds?}]}");
|
|
343
|
-
return { entries: t.entries };
|
|
344
|
-
}
|
|
345
|
-
}, B = [
|
|
346
|
-
z,
|
|
347
|
-
w,
|
|
348
|
-
g,
|
|
349
|
-
I,
|
|
350
|
-
M
|
|
351
|
-
], V = [
|
|
352
|
-
{
|
|
353
|
-
name: "sarif",
|
|
354
|
-
summary: "SARIF 2.1.0 — semgrep --sarif, CodeQL, ESLint, ZAP via converter.",
|
|
355
|
-
tools: [
|
|
356
|
-
"sarif",
|
|
357
|
-
"semgrep",
|
|
358
|
-
"codeql"
|
|
359
|
-
],
|
|
360
|
-
parse: L
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
name: "audit-script",
|
|
364
|
-
summary: "Architecture-conformance audit scripts: '<name>: OK' / '<name>: FAIL — … (AC-ID)'.",
|
|
365
|
-
tools: [
|
|
366
|
-
"audit-script",
|
|
367
|
-
"make ci",
|
|
368
|
-
"audit-static",
|
|
369
|
-
"import-linter",
|
|
370
|
-
"dependency-cruiser"
|
|
371
|
-
],
|
|
372
|
-
parse: k
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
name: "cargo-audit",
|
|
376
|
-
summary: "cargo audit --json — RUSTSEC advisories and warning kinds.",
|
|
377
|
-
tools: [
|
|
378
|
-
"cargo-audit",
|
|
379
|
-
"cargo audit",
|
|
380
|
-
"cargo-deny",
|
|
381
|
-
"cargo deny"
|
|
382
|
-
],
|
|
383
|
-
parse: R
|
|
384
|
-
}
|
|
385
|
-
], H = [...B.map((e) => e.name), ...V.map((e) => e.name)];
|
|
386
|
-
function U(e) {
|
|
387
|
-
if (e.adapter !== void 0 && e.adapter !== "") return V.find((t) => t.name === e.adapter);
|
|
388
|
-
let t = (e.tool ?? "").toLowerCase();
|
|
389
|
-
if (t !== "") return V.find((e) => e.tools.some((e) => t.includes(e)));
|
|
390
|
-
}
|
|
391
|
-
function W(e) {
|
|
392
|
-
if (e.adapter !== void 0 && e.adapter !== "") {
|
|
393
|
-
let t = B.find((t) => t.name === e.adapter);
|
|
394
|
-
if (t === void 0) throw new m("adapter", `unknown adapter '${e.adapter}'. Available: ${H.join(", ")}`);
|
|
395
|
-
return t;
|
|
396
|
-
}
|
|
397
|
-
let t = (e.tool ?? "").toLowerCase();
|
|
398
|
-
if (t !== "") {
|
|
399
|
-
let e = B.find((e) => e.tools.some((e) => t.includes(e)));
|
|
400
|
-
if (e !== void 0) return e;
|
|
401
|
-
}
|
|
402
|
-
return z;
|
|
403
|
-
}
|
|
404
|
-
//#endregion
|
|
405
|
-
//#region src/evidence/mock-inspection.ts
|
|
406
|
-
var G = /* @__PURE__ */ new Set([
|
|
407
|
-
".rs",
|
|
408
|
-
".py",
|
|
409
|
-
".ts",
|
|
410
|
-
".tsx",
|
|
411
|
-
".js",
|
|
412
|
-
".jsx"
|
|
413
|
-
]), K = /* @__PURE__ */ new Set([
|
|
414
|
-
".git",
|
|
415
|
-
"dist",
|
|
416
|
-
"node_modules",
|
|
417
|
-
"spec",
|
|
418
|
-
"target",
|
|
419
|
-
"vendor"
|
|
420
|
-
]);
|
|
421
|
-
function q(e, t) {
|
|
422
|
-
if (!t) return {
|
|
423
|
-
injections: [],
|
|
424
|
-
suites: []
|
|
425
|
-
};
|
|
426
|
-
let r = i(e).map((r) => n(e, r, t)).filter((e) => e !== null && e.commit === t);
|
|
427
|
-
return {
|
|
428
|
-
suites: r.map((e) => e.suite).sort($),
|
|
429
|
-
injections: r.flatMap((e) => e.injections).sort((e, t) => $(e.suite, t.suite) || $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0))
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
function J(e, t) {
|
|
433
|
-
let n = [];
|
|
434
|
-
for (let r of Y(e)) {
|
|
435
|
-
let i = s(r, "utf8"), a = X(i, l(r));
|
|
436
|
-
if (a.length !== 0) for (let o of i.matchAll(/\b([A-Z][A-Za-z0-9_]*(?:(?:::|\.)[A-Za-z_][A-Za-z0-9_]*)+)\s*\(/g)) {
|
|
437
|
-
let s = o[1];
|
|
438
|
-
if (!re(s)) continue;
|
|
439
|
-
let c = Z(a, o.index ?? -1);
|
|
440
|
-
c && n.push({
|
|
441
|
-
suite: t,
|
|
442
|
-
symbol: c.symbol,
|
|
443
|
-
injects: [s],
|
|
444
|
-
path: d(e, r),
|
|
445
|
-
line: i.slice(0, o.index).split("\n").length
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
let r = /* @__PURE__ */ new Map();
|
|
450
|
-
for (let e of n) {
|
|
451
|
-
let t = `${e.path ?? ""}:${e.line ?? 0}:${e.symbol}`, n = r.get(t);
|
|
452
|
-
n ? n.injects = [.../* @__PURE__ */ new Set([...n.injects, ...e.injects])].sort() : r.set(t, {
|
|
453
|
-
...e,
|
|
454
|
-
injects: [...e.injects].sort()
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
return [...r.values()].sort((e, t) => $(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0) || $(e.symbol, t.symbol));
|
|
458
|
-
}
|
|
459
|
-
function Y(e) {
|
|
460
|
-
let t = [], n = (e) => {
|
|
461
|
-
for (let r of c(e, { withFileTypes: !0 })) {
|
|
462
|
-
if (r.isDirectory() && K.has(r.name)) continue;
|
|
463
|
-
let i = u(e, r.name);
|
|
464
|
-
r.isDirectory() ? n(i) : r.isFile() && G.has(l(i)) && t.push(i);
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
return n(e), t.sort($);
|
|
468
|
-
}
|
|
469
|
-
function X(e, t) {
|
|
470
|
-
let n = [], r = t === ".rs" ? [/#\s*\[\s*test\s*\][\s\S]{0,240}?\bfn\s+([A-Za-z_][A-Za-z0-9_]*)\s*\(/g] : t === ".py" ? [/(?:^|\n)\s*(?:async\s+)?def\s+(test_[A-Za-z0-9_]*)\s*\(/g] : [/\b(?:test|it)\s*\(\s*["'`]([^"'`]+)["'`]/g, /\b(?:async\s+)?function\s+(test[A-Za-z0-9_]*)\s*\(/g];
|
|
471
|
-
for (let i of r) for (let r of e.matchAll(i)) {
|
|
472
|
-
let i = r.index ?? 0, a = t === ".py" ? i + r[0].lastIndexOf(r[1]) : i, o = t === ".py" ? Q(e, a) : ne(e, a + r[0].length);
|
|
473
|
-
n.push({
|
|
474
|
-
at: a,
|
|
475
|
-
end: o,
|
|
476
|
-
symbol: r[1]
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
return n.sort((e, t) => e.at - t.at);
|
|
480
|
-
}
|
|
481
|
-
function Z(e, t) {
|
|
482
|
-
let n = null;
|
|
483
|
-
for (let r of e) {
|
|
484
|
-
if (r.at > t) break;
|
|
485
|
-
t <= r.end && (n = r);
|
|
486
|
-
}
|
|
487
|
-
return n;
|
|
488
|
-
}
|
|
489
|
-
function Q(e, t) {
|
|
490
|
-
let n = e.lastIndexOf("\n", t) + 1, r = /^\s*/.exec(e.slice(n))?.[0].length ?? 0, i = e.indexOf("\n", t);
|
|
491
|
-
if (i < 0) return e.length;
|
|
492
|
-
for (i += 1; i < e.length;) {
|
|
493
|
-
let t = e.indexOf("\n", i), n = t < 0 ? e.length : t, a = e.slice(i, n);
|
|
494
|
-
if (a.trim() && !a.trimStart().startsWith("#") && (/^\s*/.exec(a)?.[0].length ?? 0) <= r) return i - 1;
|
|
495
|
-
i = n + 1;
|
|
496
|
-
}
|
|
497
|
-
return e.length;
|
|
498
|
-
}
|
|
499
|
-
function ne(e, t) {
|
|
500
|
-
let n = e.indexOf("{", t);
|
|
501
|
-
if (n < 0 || n - t > 500) return t;
|
|
502
|
-
let r = 0, i = null, a = !1, o = !1, s = !1;
|
|
503
|
-
for (let t = n; t < e.length; t += 1) {
|
|
504
|
-
let n = e[t], c = e[t + 1] ?? "";
|
|
505
|
-
if (o) {
|
|
506
|
-
n === "\n" && (o = !1);
|
|
507
|
-
continue;
|
|
508
|
-
}
|
|
509
|
-
if (s) {
|
|
510
|
-
n === "*" && c === "/" && (s = !1, t += 1);
|
|
511
|
-
continue;
|
|
512
|
-
}
|
|
513
|
-
if (i) {
|
|
514
|
-
a ? a = !1 : n === "\\" ? a = !0 : n === i && (i = null);
|
|
515
|
-
continue;
|
|
516
|
-
}
|
|
517
|
-
if (n === "/" && c === "/") o = !0, t += 1;
|
|
518
|
-
else if (n === "/" && c === "*") s = !0, t += 1;
|
|
519
|
-
else if (n === "\"" || n === "'" || n === "`") i = n;
|
|
520
|
-
else if (n === "{") r += 1;
|
|
521
|
-
else if (n === "}" && --r === 0) return t;
|
|
522
|
-
}
|
|
523
|
-
return e.length;
|
|
524
|
-
}
|
|
525
|
-
function re(e) {
|
|
526
|
-
let t = e.split(/::|\./), n = t[0], r = t.at(-1) ?? "";
|
|
527
|
-
return /^(?:mock|fake|stub|spy)/i.test(n) || /^(?:allow|approve|approved|bypass|fake|mock|stub|succeed|success)$/i.test(r);
|
|
528
|
-
}
|
|
529
|
-
function $(e, t) {
|
|
530
|
-
return e === t ? 0 : e < t ? -1 : 1;
|
|
531
|
-
}
|
|
532
|
-
//#endregion
|
|
533
|
-
export { U as a, W as i, q as n, p as o, H as r, f as s, J as t };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { a as e, t } from "./base-CqKNs2Kd.js";
|
|
2
|
-
import { fileURLToPath as n } from "node:url";
|
|
3
|
-
import { existsSync as r } from "node:fs";
|
|
4
|
-
import { dirname as i, join as a, resolve as o } from "node:path";
|
|
5
|
-
import { homedir as s } from "node:os";
|
|
6
|
-
import { Flags as c } from "@oclif/core";
|
|
7
|
-
import { spawn as l } from "node:child_process";
|
|
8
|
-
//#region src/flows.ts
|
|
9
|
-
var u = {
|
|
10
|
-
review: {
|
|
11
|
-
packageSkill: "spec-review",
|
|
12
|
-
runtimeSkill: "review"
|
|
13
|
-
},
|
|
14
|
-
matrix: {
|
|
15
|
-
packageSkill: "spec-matrix",
|
|
16
|
-
runtimeSkill: "matrix"
|
|
17
|
-
},
|
|
18
|
-
"to-plan": {
|
|
19
|
-
packageSkill: "spec-to-plan",
|
|
20
|
-
runtimeSkill: "to-plan"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
async function d(t, n = {}) {
|
|
24
|
-
let r = f(t), i = e(), o = [
|
|
25
|
-
"run",
|
|
26
|
-
t,
|
|
27
|
-
"--path",
|
|
28
|
-
r,
|
|
29
|
-
"--config-root",
|
|
30
|
-
i,
|
|
31
|
-
"--state-dir",
|
|
32
|
-
a(i, "flows")
|
|
33
|
-
];
|
|
34
|
-
n.id && o.push("--id", n.id), n.json && o.push("--json");
|
|
35
|
-
for (let e of n.target ?? []) o.push("--target", e);
|
|
36
|
-
await m(o);
|
|
37
|
-
}
|
|
38
|
-
function f(e) {
|
|
39
|
-
let t = u[e];
|
|
40
|
-
if (!t) throw Error(`unknown spec flow ${e}`);
|
|
41
|
-
let n = [
|
|
42
|
-
process.env.IX_SPEC_WORKFLOWS_ROOT,
|
|
43
|
-
p(),
|
|
44
|
-
a(i(o(process.cwd())), "ix-spec-workflows"),
|
|
45
|
-
a(s(), ".ix", "plugins", "ix-spec-workflows")
|
|
46
|
-
].filter((e) => !!e);
|
|
47
|
-
for (let e of n) {
|
|
48
|
-
let n = a(e, t.packageSkill, "workflow-assets", "skills", t.runtimeSkill);
|
|
49
|
-
if (r(n)) return n;
|
|
50
|
-
}
|
|
51
|
-
throw Error(`could not find ix-spec workflow skill ${t.runtimeSkill}; set IX_SPEC_WORKFLOWS_ROOT`);
|
|
52
|
-
}
|
|
53
|
-
function p() {
|
|
54
|
-
return a(i(i(n(import.meta.url))), "skills");
|
|
55
|
-
}
|
|
56
|
-
async function m(e) {
|
|
57
|
-
await new Promise((t, n) => {
|
|
58
|
-
let r = l("ix-flow", e, { stdio: "inherit" });
|
|
59
|
-
r.on("error", n), r.on("close", (e) => {
|
|
60
|
-
if (e === 0) {
|
|
61
|
-
t();
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
process.exitCode = e ?? 1, t();
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/flow-command.ts
|
|
70
|
-
var h = class extends t {
|
|
71
|
-
static flowFlags = {
|
|
72
|
-
target: c.string({
|
|
73
|
-
description: "Spec target ref to feed the workflow (repeatable).",
|
|
74
|
-
multiple: !0
|
|
75
|
-
}),
|
|
76
|
-
json: c.boolean({ description: "Forward --json to ix-flow." }),
|
|
77
|
-
id: c.string({ description: "Explicit workflow run id." })
|
|
78
|
-
};
|
|
79
|
-
async launch(e) {
|
|
80
|
-
await d(this.flowName, {
|
|
81
|
-
json: e.json === !0,
|
|
82
|
-
...e.id ? { id: e.id } : {},
|
|
83
|
-
...e.target ? { target: e.target } : {}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
//#endregion
|
|
88
|
-
export { h as t };
|
package/dist/flow-command.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { QuoinCommand } from './base.js';
|
|
2
|
-
/**
|
|
3
|
-
* Base for the bundled spec-workflow launchers (`review`, `matrix`, `to-plan`).
|
|
4
|
-
*
|
|
5
|
-
* quoin creates the workflow run in ~/.ix/flows by spawning `ix-flow` (see
|
|
6
|
-
* {@link startSpecFlow}); ix-flow then inspects, resumes, advances phases, and
|
|
7
|
-
* acknowledges human gates. The subprocess delegation is unchanged from the
|
|
8
|
-
* legacy dispatcher — the launcher only translates flags into the ix-flow argv.
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class FlowCommand extends QuoinCommand {
|
|
11
|
-
/** Flags shared by every flow launcher; concrete commands reuse this set. */
|
|
12
|
-
static flowFlags: {
|
|
13
|
-
target: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
|
|
14
|
-
json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
|
|
15
|
-
id: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
|
|
16
|
-
};
|
|
17
|
-
/** ix-flow workflow name; equals the command id (review/matrix/to-plan). */
|
|
18
|
-
protected abstract readonly flowName: string;
|
|
19
|
-
protected launch(flags: {
|
|
20
|
-
target?: string[];
|
|
21
|
-
json?: boolean;
|
|
22
|
-
id?: string;
|
|
23
|
-
}): Promise<void>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=flow-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flow-command.d.ts","sourceRoot":"","sources":["../src/flow-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC;;;;;;;GAOG;AACH,8BAAsB,WAAY,SAAQ,YAAY;IACpD,6EAA6E;IAC7E,MAAM,CAAC,SAAS;;;;MAOd;IAEF,4EAA4E;IAC5E,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;cAE7B,MAAM,CAAC,KAAK,EAAE;QAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"}
|
package/dist/flows.d.ts
DELETED
package/dist/flows.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AAiBA,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GAC5D,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Hook } from '@oclif/core';
|
|
2
|
-
/**
|
|
3
|
-
* `command_not_found` hook — attach the root usage to an unknown command
|
|
4
|
-
* (FR-005-AC-1).
|
|
5
|
-
*
|
|
6
|
-
* The hand-rolled dispatcher FR-026 replaced printed usage on an unknown
|
|
7
|
-
* command. The oclif runner reports only `command <x> not found`, which names
|
|
8
|
-
* the mistake but not the remedy, leaving NFR-003 unmet on the one path a
|
|
9
|
-
* mistyping user is guaranteed to hit.
|
|
10
|
-
*
|
|
11
|
-
* This is oclif's own extension point for that: `Config.runCommand` invokes it
|
|
12
|
-
* when no command matches, and rethrows a hook failure in place of its default
|
|
13
|
-
* error. So the message is fixed where oclif expects it to be fixed — no error
|
|
14
|
-
* sniffing (the thrown `CLIError` carries no stable discriminator), and no
|
|
15
|
-
* bypassing `execute`, whose `flush()` the shipped bin needs so piped output is
|
|
16
|
-
* not truncated on exit.
|
|
17
|
-
*
|
|
18
|
-
* It fires on the library path too: `run(argv, config)` reaches the same
|
|
19
|
-
* `Config.runCommand`.
|
|
20
|
-
*/
|
|
21
|
-
declare const hook: Hook<"command_not_found">;
|
|
22
|
-
export default hook;
|
|
23
|
-
//# sourceMappingURL=command-not-found.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-not-found.d.ts","sourceRoot":"","sources":["../../src/hooks/command-not-found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAKnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { rootUsage as e } from "../cli.js";
|
|
2
|
-
import { Errors as t } from "@oclif/core";
|
|
3
|
-
//#region src/hooks/command-not-found.ts
|
|
4
|
-
var n = async function(n) {
|
|
5
|
-
throw new t.CLIError(`command ${n.id} not found\n\n${e(this.config)}`, { exit: 2 });
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { n as default };
|