@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,159 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agent-ix.dev/quire/schemas/output/properties-v1.schema.json",
|
|
4
|
-
"title": "quire properties --json payload (v1)",
|
|
5
|
-
"description": "The FR-052 per-criterion property-shape classification as emitted on stdout by `quire properties --json`. The envelope is assembled by `quire-cli`; every field inside a criterion comes from `AcClassification`, which this crate owns — so the contract is published here, in one place, and both sides conform to it rather than to each other. Hand-authored (`schemars` is banned, FR-003-AC-4). FR-008-AC-5 bans a version key in the payload, so the version lives in the `$id` and the filename.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"required": ["documents"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"documents": {
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": { "$ref": "#/$defs/Document" }
|
|
13
|
-
},
|
|
14
|
-
"engine": {
|
|
15
|
-
"$ref": "#/$defs/EngineProvenance"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"$defs": {
|
|
19
|
-
"EngineProvenance": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"additionalProperties": false,
|
|
22
|
-
"required": ["cli", "engine", "capabilities"],
|
|
23
|
-
"description": "Which instrument produced this payload (agent-ix/quire-cli#68, CR-104). Identical in shape and meaning to the definition in `coverage-v1.schema.json`; both are hand-authored per FR-055-CON-1, so the duplication is two artifacts stating one contract rather than one deriving from the other. NOT the contract version — that stays in the `$id` and the filename (FR-055-CON-2). This is provenance of the MEASUREMENT.",
|
|
24
|
-
"properties": {
|
|
25
|
-
"cli": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "The `quire-cli` crate version."
|
|
28
|
-
},
|
|
29
|
-
"engine": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "The resolved `quire-rs` version actually linked, read from the `?tag=` / `?rev=` / `?branch=` locator of the consuming crate's lockfile entry, or the commit sha where the locator is absent — not that entry's `version` field, which for a git dependency is the dependency's own stale manifest constant. A `-<n>-g<sha>` suffix, a bare rev, or a branch name is carried VERBATIM and never rounded to the nearest tag."
|
|
32
|
-
},
|
|
33
|
-
"capabilities": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"uniqueItems": true,
|
|
36
|
-
"description": "What this build can emit, as tokens. Deliberately open, and deliberately not version arithmetic.",
|
|
37
|
-
"items": { "type": "string" }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"Document": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"additionalProperties": false,
|
|
44
|
-
"required": ["document", "archetype", "criteria"],
|
|
45
|
-
"properties": {
|
|
46
|
-
"document": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "The input label as the caller named it — a path, a glob expansion, or `-` for stdin."
|
|
49
|
-
},
|
|
50
|
-
"archetype": { "type": "string" },
|
|
51
|
-
"criteria": {
|
|
52
|
-
"type": "array",
|
|
53
|
-
"description": "Empty for a non-binding archetype (US, IT, …), which is data rather than an error.",
|
|
54
|
-
"items": { "$ref": "#/$defs/Criterion" }
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"Criterion": {
|
|
59
|
-
"type": "object",
|
|
60
|
-
"additionalProperties": false,
|
|
61
|
-
"required": [
|
|
62
|
-
"row_id",
|
|
63
|
-
"statement",
|
|
64
|
-
"line",
|
|
65
|
-
"shape",
|
|
66
|
-
"property",
|
|
67
|
-
"extractable",
|
|
68
|
-
"extraction",
|
|
69
|
-
"domain",
|
|
70
|
-
"precondition",
|
|
71
|
-
"oracle",
|
|
72
|
-
"signals",
|
|
73
|
-
"obligation"
|
|
74
|
-
],
|
|
75
|
-
"properties": {
|
|
76
|
-
"row_id": {
|
|
77
|
-
"type": ["string", "null"],
|
|
78
|
-
"description": "The criterion's own id. Null when the binding form carries none; a downstream generator cannot emit a tracking tag without it."
|
|
79
|
-
},
|
|
80
|
-
"statement": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"description": "The UNTRUNCATED statement. Every span offset indexes this field."
|
|
83
|
-
},
|
|
84
|
-
"line": { "type": ["integer", "null"], "minimum": 1 },
|
|
85
|
-
"shape": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"description": "The FR-047 shape axis.",
|
|
88
|
-
"enum": ["assertion", "obligation", "given-when-then", "unstructured"]
|
|
89
|
-
},
|
|
90
|
-
"property": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"description": "The FR-052 property-shape axis. Closed in the engine by FR-052-CON-3: a shape with no downstream generator silently drops criteria, so extension happens by declaring idiom phrases, never by adding a shape.",
|
|
93
|
-
"enum": [
|
|
94
|
-
"round-trip",
|
|
95
|
-
"idempotence",
|
|
96
|
-
"ordering",
|
|
97
|
-
"invariant",
|
|
98
|
-
"error-case",
|
|
99
|
-
"lifecycle",
|
|
100
|
-
"concurrency",
|
|
101
|
-
"universal",
|
|
102
|
-
"example",
|
|
103
|
-
"unclassified"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"extractable": { "type": "boolean" },
|
|
107
|
-
"extraction": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"description": "CR-033: what a generator may do with this criterion. Derived from `property` and `extractable` alone.",
|
|
110
|
-
"enum": ["extractable", "candidate", "not-extractable"]
|
|
111
|
-
},
|
|
112
|
-
"domain": { "$ref": "#/$defs/SpanOrNull" },
|
|
113
|
-
"precondition": { "$ref": "#/$defs/SpanOrNull" },
|
|
114
|
-
"oracle": { "$ref": "#/$defs/SpanOrNull" },
|
|
115
|
-
"signals": {
|
|
116
|
-
"type": "array",
|
|
117
|
-
"items": { "type": "string" },
|
|
118
|
-
"description": "Stable ids of the signals that fired, in evaluation order. There is no confidence float — a float is unreviewable and invites threshold tuning; this trail is what makes every record re-derivable from its own output."
|
|
119
|
-
},
|
|
120
|
-
"obligation": {
|
|
121
|
-
"description": "FR-053. Null for a module declaring no `obligations:` source. Carries no id, statement or document: the criterion record and its enclosing document object already have all three.",
|
|
122
|
-
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/CriterionObligation" }]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"SpanOrNull": {
|
|
127
|
-
"description": "A span carries both byte offsets and its own text: offsets so a consumer can assert the decomposition partitions the statement, text because handing a UTF-16 consumer raw UTF-8 byte offsets is a defect generator.",
|
|
128
|
-
"oneOf": [
|
|
129
|
-
{ "type": "null" },
|
|
130
|
-
{
|
|
131
|
-
"type": "object",
|
|
132
|
-
"additionalProperties": false,
|
|
133
|
-
"required": ["start", "end", "text"],
|
|
134
|
-
"properties": {
|
|
135
|
-
"start": { "type": "integer", "minimum": 0 },
|
|
136
|
-
"end": { "type": "integer", "minimum": 0 },
|
|
137
|
-
"text": { "type": "string" }
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
"CriterionObligation": {
|
|
143
|
-
"type": "object",
|
|
144
|
-
"additionalProperties": false,
|
|
145
|
-
"required": ["source", "statement_hash", "method", "criticality"],
|
|
146
|
-
"properties": {
|
|
147
|
-
"source": { "type": "string" },
|
|
148
|
-
"statement_hash": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
149
|
-
"method": { "type": ["string", "null"] },
|
|
150
|
-
"parameters": {
|
|
151
|
-
"type": "object",
|
|
152
|
-
"additionalProperties": { "type": "string" },
|
|
153
|
-
"description": "Omitted entirely when the source declares no parameters or every declared cell is empty."
|
|
154
|
-
},
|
|
155
|
-
"criticality": { "type": ["string", "null"] }
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
package/dist/store--2sAv12X.js
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { existsSync as e, mkdirSync as t, readFileSync as n, readdirSync as r, rmSync as i, writeFileSync as a } from "node:fs";
|
|
2
|
-
import { dirname as o, join as s } from "node:path";
|
|
3
|
-
//#region src/evidence/types.ts
|
|
4
|
-
var c = "runs", l = "scans", u = "mock-inspections", d = "mutation-score";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/evidence/store.ts
|
|
7
|
-
function f(e) {
|
|
8
|
-
return s(e, "spec", "evidence");
|
|
9
|
-
}
|
|
10
|
-
function p(e) {
|
|
11
|
-
return s(f(e), "bindings.json");
|
|
12
|
-
}
|
|
13
|
-
function m(e) {
|
|
14
|
-
return s(f(e), "baseline.json");
|
|
15
|
-
}
|
|
16
|
-
function h(e, t, n) {
|
|
17
|
-
return s(f(e), c, t, `${v(n)}.json`);
|
|
18
|
-
}
|
|
19
|
-
function g(e, t, n) {
|
|
20
|
-
return s(f(e), l, t, `${v(n)}.json`);
|
|
21
|
-
}
|
|
22
|
-
function _(e, t, n) {
|
|
23
|
-
return s(f(e), u, t, `${v(n)}.json`);
|
|
24
|
-
}
|
|
25
|
-
function v(e) {
|
|
26
|
-
return e.slice(0, 12);
|
|
27
|
-
}
|
|
28
|
-
function y(e) {
|
|
29
|
-
return `${JSON.stringify(b(e), null, 2)}\n`;
|
|
30
|
-
}
|
|
31
|
-
function b(e) {
|
|
32
|
-
if (Array.isArray(e)) return e.map(b);
|
|
33
|
-
if (typeof e != "object" || !e) return e;
|
|
34
|
-
let t = {};
|
|
35
|
-
for (let n of Object.keys(e).sort()) t[n] = b(e[n]);
|
|
36
|
-
return t;
|
|
37
|
-
}
|
|
38
|
-
function x(e, n) {
|
|
39
|
-
t(o(e), { recursive: !0 }), a(e, y(n), "utf8");
|
|
40
|
-
}
|
|
41
|
-
var S = class extends Error {
|
|
42
|
-
path;
|
|
43
|
-
cause;
|
|
44
|
-
constructor(e, t) {
|
|
45
|
-
let n = t instanceof Error ? t.message : String(t);
|
|
46
|
-
super(`${e} exists but is not readable JSON: ${n}. A merge conflict in a checked-in store file is the usual cause — resolve it, or delete the file to start from an empty store.`), this.path = e, this.cause = t, this.name = "StoreReadError";
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
function C(t) {
|
|
50
|
-
if (!e(t)) return null;
|
|
51
|
-
try {
|
|
52
|
-
return JSON.parse(n(t, "utf8"));
|
|
53
|
-
} catch (e) {
|
|
54
|
-
throw new S(t, e);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function w(e, t) {
|
|
58
|
-
try {
|
|
59
|
-
return C(e);
|
|
60
|
-
} catch (n) {
|
|
61
|
-
if (n instanceof S) return t.push(e), null;
|
|
62
|
-
throw n;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function T(e, t) {
|
|
66
|
-
let n = h(e, t.suite, t.commit);
|
|
67
|
-
return x(n, {
|
|
68
|
-
...t,
|
|
69
|
-
schemaVersion: 1
|
|
70
|
-
}), n;
|
|
71
|
-
}
|
|
72
|
-
function E(e, t) {
|
|
73
|
-
let n = g(e, t.suite, t.commit);
|
|
74
|
-
return x(n, {
|
|
75
|
-
...t,
|
|
76
|
-
schemaVersion: 1
|
|
77
|
-
}), n;
|
|
78
|
-
}
|
|
79
|
-
function D(e, t) {
|
|
80
|
-
let n = _(e, t.suite, t.commit);
|
|
81
|
-
return x(n, {
|
|
82
|
-
...t,
|
|
83
|
-
schemaVersion: 1
|
|
84
|
-
}), n;
|
|
85
|
-
}
|
|
86
|
-
function O(e, t, n) {
|
|
87
|
-
return C(_(e, t, n));
|
|
88
|
-
}
|
|
89
|
-
function k(t, n) {
|
|
90
|
-
let i = s(f(t), l, n);
|
|
91
|
-
return e(i) ? r(i).filter((e) => e.endsWith(".json")).sort() : [];
|
|
92
|
-
}
|
|
93
|
-
function A(e, t, n = []) {
|
|
94
|
-
return k(e, t).map((r) => w(g(e, t, r.replace(/\.json$/, "")), n)).filter((e) => e !== null).sort((e, t) => R(e.timestamp, t.timestamp) || R(e.commit, t.commit));
|
|
95
|
-
}
|
|
96
|
-
function j(e, t, n = []) {
|
|
97
|
-
return A(e, t, n).at(-1) ?? null;
|
|
98
|
-
}
|
|
99
|
-
function M(e) {
|
|
100
|
-
return e.rulesEvaluated === void 0 ? null : e.rulesEvaluated === 0;
|
|
101
|
-
}
|
|
102
|
-
function N(t, n) {
|
|
103
|
-
let i = s(f(t), c, n);
|
|
104
|
-
return e(i) ? r(i).filter((e) => e.endsWith(".json")).sort() : [];
|
|
105
|
-
}
|
|
106
|
-
function P(e, t, n = []) {
|
|
107
|
-
return N(e, t).map((r) => w(h(e, t, r.replace(/\.json$/, "")), n)).filter((e) => e !== null).sort((e, t) => R(e.timestamp, t.timestamp) || R(e.commit, t.commit));
|
|
108
|
-
}
|
|
109
|
-
function F(e, t, n = []) {
|
|
110
|
-
return P(e, t, n).at(-1) ?? null;
|
|
111
|
-
}
|
|
112
|
-
function I(e) {
|
|
113
|
-
return z(e).map((t) => F(e, t)).filter((e) => e !== null);
|
|
114
|
-
}
|
|
115
|
-
function L(e) {
|
|
116
|
-
return z(e).map((t) => j(e, t)).filter((e) => e !== null);
|
|
117
|
-
}
|
|
118
|
-
function R(e, t) {
|
|
119
|
-
return e === t ? 0 : e < t ? -1 : 1;
|
|
120
|
-
}
|
|
121
|
-
function z(t) {
|
|
122
|
-
let n = /* @__PURE__ */ new Set();
|
|
123
|
-
for (let i of [
|
|
124
|
-
c,
|
|
125
|
-
l,
|
|
126
|
-
u
|
|
127
|
-
]) {
|
|
128
|
-
let a = s(f(t), i);
|
|
129
|
-
if (e(a)) for (let e of r(a, { withFileTypes: !0 })) e.isDirectory() && n.add(e.name);
|
|
130
|
-
}
|
|
131
|
-
return [...n].sort();
|
|
132
|
-
}
|
|
133
|
-
function B(e) {
|
|
134
|
-
return C(p(e)) ?? {
|
|
135
|
-
schemaVersion: 1,
|
|
136
|
-
bindings: []
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function V(e, t) {
|
|
140
|
-
let n = [...t.bindings].sort(G);
|
|
141
|
-
x(p(e), {
|
|
142
|
-
schemaVersion: 1,
|
|
143
|
-
bindings: n
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
function H(e) {
|
|
147
|
-
return C(m(e));
|
|
148
|
-
}
|
|
149
|
-
function U(e, t) {
|
|
150
|
-
x(m(e), {
|
|
151
|
-
schemaVersion: 1,
|
|
152
|
-
commit: t.commit,
|
|
153
|
-
accepted: [...t.accepted].sort(R)
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function W(e, t = !1) {
|
|
157
|
-
let n = new Set(B(e).bindings.map((e) => `${e.suite}/${v(e.commit)}.json`)), r = [];
|
|
158
|
-
for (let a of z(e)) {
|
|
159
|
-
let o = N(e, a), u = /* @__PURE__ */ new Set(), d = F(e, a);
|
|
160
|
-
d && u.add(`${v(d.commit)}.json`);
|
|
161
|
-
for (let l of o) {
|
|
162
|
-
if (u.has(l) || n.has(`${a}/${l}`)) continue;
|
|
163
|
-
let o = s(f(e), c, a, l);
|
|
164
|
-
r.push(o), t || i(o);
|
|
165
|
-
}
|
|
166
|
-
let p = k(e, a), m = /* @__PURE__ */ new Set(), h = j(e, a);
|
|
167
|
-
h && m.add(`${v(h.commit)}.json`);
|
|
168
|
-
for (let o of p) {
|
|
169
|
-
if (m.has(o) || n.has(`${a}/${o}`)) continue;
|
|
170
|
-
let c = s(f(e), l, a, o);
|
|
171
|
-
r.push(c), t || i(c);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return r.sort();
|
|
175
|
-
}
|
|
176
|
-
function G(e, t) {
|
|
177
|
-
return e.obligation === t.obligation ? e.suite === t.suite ? 0 : e.suite < t.suite ? -1 : 1 : e.obligation < t.obligation ? -1 : 1;
|
|
178
|
-
}
|
|
179
|
-
function K(e, t) {
|
|
180
|
-
let n = e.findIndex((e) => e.obligation === t.obligation && e.suite === t.suite);
|
|
181
|
-
if (n === -1) return {
|
|
182
|
-
bindings: [...e, { ...t }],
|
|
183
|
-
created: !0,
|
|
184
|
-
suspect: !1
|
|
185
|
-
};
|
|
186
|
-
let r = e[n], i = r.statementHashAtBinding !== t.statementHashAtBinding, a = {
|
|
187
|
-
...r,
|
|
188
|
-
commit: t.commit,
|
|
189
|
-
symbols: t.symbols
|
|
190
|
-
}, o = [...e];
|
|
191
|
-
return o[n] = a, {
|
|
192
|
-
bindings: o,
|
|
193
|
-
created: !1,
|
|
194
|
-
suspect: i
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
function q(e, t, n, r, i, a, o) {
|
|
198
|
-
let s = e.map((e, t) => [e, t]).filter(([e]) => e.obligation === t && (!o || e.suite === o));
|
|
199
|
-
if (s.length === 0) return {
|
|
200
|
-
bindings: e,
|
|
201
|
-
found: !1
|
|
202
|
-
};
|
|
203
|
-
let c = [...e];
|
|
204
|
-
for (let [e, t] of s) c[t] = {
|
|
205
|
-
...e,
|
|
206
|
-
statementHashAtBinding: n,
|
|
207
|
-
affirmations: [...e.affirmations ?? [], {
|
|
208
|
-
who: r,
|
|
209
|
-
commit: i,
|
|
210
|
-
note: a
|
|
211
|
-
}]
|
|
212
|
-
};
|
|
213
|
-
return {
|
|
214
|
-
bindings: c,
|
|
215
|
-
found: !0
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
//#endregion
|
|
219
|
-
export { V as _, W as a, E as b, j as c, H as d, B as f, U as g, f as h, y as i, L as l, M as m, m as n, F as o, O as p, K as r, I as s, q as t, z as u, D as v, d as x, T as y };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface EmptyGateFinding {
|
|
2
|
-
kind: "gate-that-gates-nothing";
|
|
3
|
-
obligation: string;
|
|
4
|
-
path: string;
|
|
5
|
-
line: number;
|
|
6
|
-
wiredBy: string;
|
|
7
|
-
summary: string;
|
|
8
|
-
subject: string;
|
|
9
|
-
changeTarget: string;
|
|
10
|
-
remedy: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Find a declared, wired shell gate that counts forbidden matches but never
|
|
14
|
-
* asserts the count. The three-way join is deliberate: script text alone
|
|
15
|
-
* cannot distinguish a gate from a report (agent-ix/quoin#224).
|
|
16
|
-
*/
|
|
17
|
-
export declare function inspectEmptyGates(repo: string): EmptyGateFinding[];
|
|
18
|
-
//# sourceMappingURL=gates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../src/validators/gates.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,yBAAyB,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,EAAE,CA4ClE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/version-Dg0e6CZU.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath as e } from "node:url";
|
|
2
|
-
import { readFileSync as t } from "node:fs";
|
|
3
|
-
import { dirname as n, join as r } from "node:path";
|
|
4
|
-
//#region src/version.ts
|
|
5
|
-
function i() {
|
|
6
|
-
let i = n(n(e(import.meta.url))), a = JSON.parse(t(r(i, "package.json"), "utf8"));
|
|
7
|
-
if (typeof a.version != "string") throw Error("package.json version is missing");
|
|
8
|
-
return a.version;
|
|
9
|
-
}
|
|
10
|
-
function a(e) {
|
|
11
|
-
return e || i();
|
|
12
|
-
}
|
|
13
|
-
function o() {
|
|
14
|
-
return a("0.22.5");
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { a as n, o as t };
|
package/dist/version.d.ts
DELETED
package/dist/version.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAsBA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED,wBAAgB,cAAc,IAAI,MAAM,CAMvC"}
|
package/dist/write-DElwS9xc.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { i as e } from "./base-CqKNs2Kd.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "./config-schema-Dp-vlxuR.js";
|
|
3
|
-
import { ConfigService as i } from "@agent-ix/ix-cli-core";
|
|
4
|
-
import { existsSync as a, readFileSync as o, statSync as s } from "node:fs";
|
|
5
|
-
import { join as c, resolve as l } from "node:path";
|
|
6
|
-
//#region src/org.ts
|
|
7
|
-
var u = "could not determine the authoring organization: no --org flag, no QUOIN_ORG, no stored config, and no [remote \"origin\"] in .git/config. Pass --org <name>, or store one with `quoin config set org <name>`.";
|
|
8
|
-
function d(e, t = {}) {
|
|
9
|
-
let n = t.flag?.trim();
|
|
10
|
-
if (n) return {
|
|
11
|
-
org: n,
|
|
12
|
-
source: "flag"
|
|
13
|
-
};
|
|
14
|
-
if (t.env) {
|
|
15
|
-
let e = t.env.QUOIN_ORG?.trim();
|
|
16
|
-
if (e) return {
|
|
17
|
-
org: e,
|
|
18
|
-
source: "env"
|
|
19
|
-
};
|
|
20
|
-
} else {
|
|
21
|
-
let e = f(t);
|
|
22
|
-
if (e) return {
|
|
23
|
-
org: e,
|
|
24
|
-
source: process.env.QUOIN_ORG?.trim() === e ? "env" : "config"
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
let r = p(e);
|
|
28
|
-
return r ? {
|
|
29
|
-
org: r,
|
|
30
|
-
source: "git"
|
|
31
|
-
} : { source: "none" };
|
|
32
|
-
}
|
|
33
|
-
function f(e) {
|
|
34
|
-
return i.forPlugin(t, n, {
|
|
35
|
-
envBindings: r,
|
|
36
|
-
...e.projectConfigRoot ? { projectConfigRoot: e.projectConfigRoot } : {},
|
|
37
|
-
...e.projectConfigEnabled === void 0 ? {} : { projectConfigEnabled: e.projectConfigEnabled }
|
|
38
|
-
}).get().org?.trim();
|
|
39
|
-
}
|
|
40
|
-
function p(e) {
|
|
41
|
-
let t = m(e);
|
|
42
|
-
if (t) try {
|
|
43
|
-
return h(o(c(t, "config"), "utf8"));
|
|
44
|
-
} catch {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function m(e) {
|
|
49
|
-
let t = c(e, ".git"), n;
|
|
50
|
-
try {
|
|
51
|
-
n = s(t);
|
|
52
|
-
} catch {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (n.isDirectory()) return t;
|
|
56
|
-
try {
|
|
57
|
-
let n = o(t, "utf8").match(/^gitdir:\s*(.+)$/m)?.[1];
|
|
58
|
-
if (!n) return;
|
|
59
|
-
let r = l(e, n.trim());
|
|
60
|
-
try {
|
|
61
|
-
let e = o(c(r, "commondir"), "utf8").trim();
|
|
62
|
-
return l(r, e);
|
|
63
|
-
} catch {
|
|
64
|
-
return r;
|
|
65
|
-
}
|
|
66
|
-
} catch {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function h(e) {
|
|
71
|
-
let t = !1;
|
|
72
|
-
for (let n of e.split("\n")) {
|
|
73
|
-
let e = n.trim();
|
|
74
|
-
if (e.startsWith("[")) {
|
|
75
|
-
t = e.replaceAll(/\s/g, "").toLowerCase().startsWith("[remote") && e.replaceAll(/\s/g, "").slice(7) === "\"origin\"]";
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
if (!t || !e.startsWith("url")) continue;
|
|
79
|
-
let r = e.slice(3).trimStart();
|
|
80
|
-
if (r.startsWith("=")) return g(r.slice(1).trim());
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function g(e) {
|
|
84
|
-
let t, n = /^[A-Za-z][A-Za-z0-9+.-]*:\/\//.exec(e);
|
|
85
|
-
if (n) {
|
|
86
|
-
if (e.slice(0, n[0].length - 3).toLowerCase() === "file") return;
|
|
87
|
-
let r = e.slice(n[0].length).indexOf("/");
|
|
88
|
-
if (r === -1) return;
|
|
89
|
-
t = e.slice(n[0].length + r + 1);
|
|
90
|
-
} else if (!e.startsWith("/") && !e.startsWith(".") && !e.startsWith("~")) {
|
|
91
|
-
let n = e.indexOf(":");
|
|
92
|
-
if (n === -1) return;
|
|
93
|
-
t = e.slice(n + 1);
|
|
94
|
-
} else return;
|
|
95
|
-
let r = t.replace(/\/+$/, "").split("/").filter(Boolean);
|
|
96
|
-
if (!(r.length < 2)) return r[r.length - 2];
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/write.ts
|
|
100
|
-
var _ = {
|
|
101
|
-
flag: "--org",
|
|
102
|
-
env: "QUOIN_ORG",
|
|
103
|
-
config: "stored config",
|
|
104
|
-
git: "git remote",
|
|
105
|
-
none: "nothing"
|
|
106
|
-
};
|
|
107
|
-
function v(e) {
|
|
108
|
-
return (Array.isArray(e) ? e : e ? [e] : []).flatMap((e) => e.split(",")).map((e) => e.trim()).filter(Boolean);
|
|
109
|
-
}
|
|
110
|
-
function y(t, n, r, i = {}) {
|
|
111
|
-
if (r.length === 0) throw Error("write requires --types <type[,type...]>");
|
|
112
|
-
let o = l(n);
|
|
113
|
-
if (!a(o) || !s(o).isDirectory()) throw Error(`write repo_dir is not a directory: ${n}`);
|
|
114
|
-
let c = r.map((n) => {
|
|
115
|
-
let r = e(t, n);
|
|
116
|
-
if (!r) throw Error(`catalog type not found: ${n}\nAvailable types: ${t.entries.map((e) => e.name).sort((e, t) => e.localeCompare(t)).join(", ")}`);
|
|
117
|
-
return x(r);
|
|
118
|
-
}), { org: u, source: f } = d(o, { flag: i.org });
|
|
119
|
-
return {
|
|
120
|
-
repoRoot: o,
|
|
121
|
-
...u ? { org: u } : {},
|
|
122
|
-
orgSource: f,
|
|
123
|
-
types: c,
|
|
124
|
-
validation: {
|
|
125
|
-
command: `quire validate --scope ${S(o)} "spec/**/*.md"`,
|
|
126
|
-
scope: o,
|
|
127
|
-
globs: ["spec/**/*.md"]
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function b(e) {
|
|
132
|
-
let t = [
|
|
133
|
-
"quoin write",
|
|
134
|
-
"",
|
|
135
|
-
`Repo: ${e.repoRoot}`,
|
|
136
|
-
e.org ? `Org: ${e.org} (from ${_[e.orgSource]})` : `Org: unresolved — ${u}`,
|
|
137
|
-
"",
|
|
138
|
-
"Authoring contracts:"
|
|
139
|
-
];
|
|
140
|
-
for (let n of e.types) t.push(`- ${n.name} (${n.kind})`), t.push(` module: ${n.moduleName}`), t.push(` module_root: ${n.moduleRoot}`), n.skeletonPath && t.push(` skeleton: ${n.skeletonPath}`), n.schemaPath && t.push(` schema: ${n.schemaPath}`), !n.skeletonPath && !n.schemaPath && t.push(" contract: manifest only");
|
|
141
|
-
return t.push(""), t.push("Author files directly in the repo, then validate changed spec files."), t.push(`Validate scope: ${e.validation.scope}`), t.push(`Validate command: ${e.validation.command}`), t.join("\n");
|
|
142
|
-
}
|
|
143
|
-
function x(e) {
|
|
144
|
-
return {
|
|
145
|
-
name: e.name,
|
|
146
|
-
kind: e.kind,
|
|
147
|
-
moduleName: e.moduleName,
|
|
148
|
-
moduleRoot: e.moduleRoot,
|
|
149
|
-
...e.schemaPath ? { schemaPath: e.schemaPath } : {},
|
|
150
|
-
...e.skeletonPath ? { skeletonPath: e.skeletonPath } : {}
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function S(e) {
|
|
154
|
-
return /^[A-Za-z0-9_./:-]+$/.test(e) ? e : `'${e.replaceAll("'", "'\\''")}'`;
|
|
155
|
-
}
|
|
156
|
-
//#endregion
|
|
157
|
-
export { h as a, u as i, b as n, d as o, v as r, y as t };
|
package/dist/write.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SpecCatalog } from './catalog.js';
|
|
2
|
-
import { OrgSource } from './org.js';
|
|
3
|
-
export interface AuthoringContract {
|
|
4
|
-
name: string;
|
|
5
|
-
kind: "artifact" | "object";
|
|
6
|
-
moduleName: string;
|
|
7
|
-
moduleRoot: string;
|
|
8
|
-
schemaPath?: string;
|
|
9
|
-
skeletonPath?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface AuthoringPack {
|
|
12
|
-
repoRoot: string;
|
|
13
|
-
/** Authoring organization, absent when no source yielded one (FR-025). */
|
|
14
|
-
org?: string;
|
|
15
|
-
orgSource: OrgSource;
|
|
16
|
-
types: AuthoringContract[];
|
|
17
|
-
validation: {
|
|
18
|
-
command: string;
|
|
19
|
-
scope: string;
|
|
20
|
-
globs: string[];
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare function parseTypeList(value: string | string[] | undefined): string[];
|
|
24
|
-
export declare function createAuthoringPack(catalog: SpecCatalog, repoDir: string, typeNames: string[], options?: {
|
|
25
|
-
org?: string;
|
|
26
|
-
}): AuthoringPack;
|
|
27
|
-
export declare function formatAuthoringPack(pack: AuthoringPack): string;
|
|
28
|
-
//# sourceMappingURL=write.d.ts.map
|
package/dist/write.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../src/write.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0B,KAAK,SAAS,EAAc,MAAM,UAAU,CAAC;AAW9E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;CACH;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAM5E;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7B,aAAa,CAmCf;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CA4B/D"}
|