@vedprakash-m/tenet 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +104 -2
- package/dist/cli.d.ts +53 -0
- package/dist/cli.js +389 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/bless.d.ts +2 -0
- package/dist/commands/bless.js +27 -0
- package/dist/commands/bless.js.map +1 -0
- package/dist/commands/board.d.ts +32 -0
- package/dist/commands/board.js +31 -0
- package/dist/commands/board.js.map +1 -0
- package/dist/commands/check.d.ts +2 -0
- package/dist/commands/check.js +35 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/context.d.ts +45 -0
- package/dist/commands/context.js +49 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.js +47 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/fix.d.ts +2 -0
- package/dist/commands/fix.js +25 -0
- package/dist/commands/fix.js.map +1 -0
- package/dist/commands/index.d.ts +12 -0
- package/dist/commands/index.js +13 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/init.js +215 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/onboard.d.ts +45 -0
- package/dist/commands/onboard.js +66 -0
- package/dist/commands/onboard.js.map +1 -0
- package/dist/commands/remove.d.ts +8 -0
- package/dist/commands/remove.js +56 -0
- package/dist/commands/remove.js.map +1 -0
- package/dist/commands/split.d.ts +2 -0
- package/dist/commands/split.js +20 -0
- package/dist/commands/split.js.map +1 -0
- package/dist/commands/upgrade.d.ts +8 -0
- package/dist/commands/upgrade.js +69 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/verify.d.ts +33 -0
- package/dist/commands/verify.js +147 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/context/index.d.ts +61 -0
- package/dist/context/index.js +401 -0
- package/dist/context/index.js.map +1 -0
- package/dist/core/clock.d.ts +3 -0
- package/dist/core/clock.js +16 -0
- package/dist/core/clock.js.map +1 -0
- package/dist/core/commands.d.ts +38 -0
- package/dist/core/commands.js +2 -0
- package/dist/core/commands.js.map +1 -0
- package/dist/core/fs.d.ts +7 -0
- package/dist/core/fs.js +97 -0
- package/dist/core/fs.js.map +1 -0
- package/dist/core/git.d.ts +11 -0
- package/dist/core/git.js +223 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/hash.d.ts +6 -0
- package/dist/core/hash.js +123 -0
- package/dist/core/hash.js.map +1 -0
- package/dist/core/messages.d.ts +276 -0
- package/dist/core/messages.js +289 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/output.d.ts +22 -0
- package/dist/core/output.js +78 -0
- package/dist/core/output.js.map +1 -0
- package/dist/core/schema.d.ts +14 -0
- package/dist/core/schema.js +138 -0
- package/dist/core/schema.js.map +1 -0
- package/dist/core/yaml.d.ts +1 -0
- package/dist/core/yaml.js +16 -0
- package/dist/core/yaml.js.map +1 -0
- package/dist/install/doctor.d.ts +3 -0
- package/dist/install/doctor.js +365 -0
- package/dist/install/doctor.js.map +1 -0
- package/dist/install/environment.d.ts +4 -0
- package/dist/install/environment.js +47 -0
- package/dist/install/environment.js.map +1 -0
- package/dist/install/hosts.d.ts +5 -0
- package/dist/install/hosts.js +105 -0
- package/dist/install/hosts.js.map +1 -0
- package/dist/install/init.d.ts +2 -0
- package/dist/install/init.js +80 -0
- package/dist/install/init.js.map +1 -0
- package/dist/install/integrity.d.ts +24 -0
- package/dist/install/integrity.js +200 -0
- package/dist/install/integrity.js.map +1 -0
- package/dist/install/manifest.d.ts +27 -0
- package/dist/install/manifest.js +276 -0
- package/dist/install/manifest.js.map +1 -0
- package/dist/install/preflight.d.ts +3 -0
- package/dist/install/preflight.js +558 -0
- package/dist/install/preflight.js.map +1 -0
- package/dist/install/remove.d.ts +2 -0
- package/dist/install/remove.js +668 -0
- package/dist/install/remove.js.map +1 -0
- package/dist/install/types.d.ts +303 -0
- package/dist/install/types.js +2 -0
- package/dist/install/types.js.map +1 -0
- package/dist/install/upgrade.d.ts +2 -0
- package/dist/install/upgrade.js +307 -0
- package/dist/install/upgrade.js.map +1 -0
- package/dist/install/writes.d.ts +15 -0
- package/dist/install/writes.js +1200 -0
- package/dist/install/writes.js.map +1 -0
- package/dist/mcp/index.d.ts +13 -0
- package/dist/mcp/index.js +437 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/onboard/assignment.d.ts +22 -0
- package/dist/onboard/assignment.js +102 -0
- package/dist/onboard/assignment.js.map +1 -0
- package/dist/onboard/bless.d.ts +104 -0
- package/dist/onboard/bless.js +729 -0
- package/dist/onboard/bless.js.map +1 -0
- package/dist/onboard/card.d.ts +31 -0
- package/dist/onboard/card.js +175 -0
- package/dist/onboard/card.js.map +1 -0
- package/dist/onboard/findings.d.ts +3 -0
- package/dist/onboard/findings.js +185 -0
- package/dist/onboard/findings.js.map +1 -0
- package/dist/onboard/inventory.d.ts +21 -0
- package/dist/onboard/inventory.js +302 -0
- package/dist/onboard/inventory.js.map +1 -0
- package/dist/onboard/preflight.d.ts +32 -0
- package/dist/onboard/preflight.js +156 -0
- package/dist/onboard/preflight.js.map +1 -0
- package/dist/onboard/refresh.d.ts +28 -0
- package/dist/onboard/refresh.js +65 -0
- package/dist/onboard/refresh.js.map +1 -0
- package/dist/policy/errors.d.ts +12 -0
- package/dist/policy/errors.js +25 -0
- package/dist/policy/errors.js.map +1 -0
- package/dist/policy/index.d.ts +4 -0
- package/dist/policy/index.js +4 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/kit.d.ts +12 -0
- package/dist/policy/kit.js +162 -0
- package/dist/policy/kit.js.map +1 -0
- package/dist/policy/load.d.ts +15 -0
- package/dist/policy/load.js +415 -0
- package/dist/policy/load.js.map +1 -0
- package/dist/policy/selectors.d.ts +2 -0
- package/dist/policy/selectors.js +43 -0
- package/dist/policy/selectors.js.map +1 -0
- package/dist/policy/types.d.ts +40 -0
- package/dist/policy/types.js +2 -0
- package/dist/policy/types.js.map +1 -0
- package/dist/reports/acceptance.d.ts +2 -0
- package/dist/reports/acceptance.js +79 -0
- package/dist/reports/acceptance.js.map +1 -0
- package/dist/reports/declared.d.ts +6 -0
- package/dist/reports/declared.js +114 -0
- package/dist/reports/declared.js.map +1 -0
- package/dist/reports/errors.d.ts +8 -0
- package/dist/reports/errors.js +12 -0
- package/dist/reports/errors.js.map +1 -0
- package/dist/reports/index.d.ts +8 -0
- package/dist/reports/index.js +8 -0
- package/dist/reports/index.js.map +1 -0
- package/dist/reports/items.d.ts +6 -0
- package/dist/reports/items.js +85 -0
- package/dist/reports/items.js.map +1 -0
- package/dist/reports/read-types.d.ts +7 -0
- package/dist/reports/read-types.js +2 -0
- package/dist/reports/read-types.js.map +1 -0
- package/dist/reports/read.d.ts +3 -0
- package/dist/reports/read.js +96 -0
- package/dist/reports/read.js.map +1 -0
- package/dist/reports/registry.d.ts +32 -0
- package/dist/reports/registry.js +372 -0
- package/dist/reports/registry.js.map +1 -0
- package/dist/reports/scan.d.ts +23 -0
- package/dist/reports/scan.js +406 -0
- package/dist/reports/scan.js.map +1 -0
- package/dist/reports/tags.d.ts +4 -0
- package/dist/reports/tags.js +53 -0
- package/dist/reports/tags.js.map +1 -0
- package/dist/reports/types.d.ts +90 -0
- package/dist/reports/types.js +2 -0
- package/dist/reports/types.js.map +1 -0
- package/dist/reports/weakening.d.ts +5 -0
- package/dist/reports/weakening.js +260 -0
- package/dist/reports/weakening.js.map +1 -0
- package/dist/sdk.d.ts +8 -0
- package/dist/sdk.js +8 -0
- package/dist/sdk.js.map +1 -0
- package/dist/specs/anchors.d.ts +44 -0
- package/dist/specs/anchors.js +171 -0
- package/dist/specs/anchors.js.map +1 -0
- package/dist/specs/check.d.ts +19 -0
- package/dist/specs/check.js +656 -0
- package/dist/specs/check.js.map +1 -0
- package/dist/specs/citations.d.ts +5 -0
- package/dist/specs/citations.js +65 -0
- package/dist/specs/citations.js.map +1 -0
- package/dist/specs/deltas.d.ts +10 -0
- package/dist/specs/deltas.js +110 -0
- package/dist/specs/deltas.js.map +1 -0
- package/dist/specs/fix.d.ts +11 -0
- package/dist/specs/fix.js +583 -0
- package/dist/specs/fix.js.map +1 -0
- package/dist/specs/flags.d.ts +25 -0
- package/dist/specs/flags.js +100 -0
- package/dist/specs/flags.js.map +1 -0
- package/dist/specs/ladder.d.ts +13 -0
- package/dist/specs/ladder.js +105 -0
- package/dist/specs/ladder.js.map +1 -0
- package/dist/specs/parse.d.ts +58 -0
- package/dist/specs/parse.js +565 -0
- package/dist/specs/parse.js.map +1 -0
- package/dist/specs/sections.d.ts +2 -0
- package/dist/specs/sections.js +36 -0
- package/dist/specs/sections.js.map +1 -0
- package/dist/specs/split.d.ts +8 -0
- package/dist/specs/split.js +264 -0
- package/dist/specs/split.js.map +1 -0
- package/dist/specs/touched.d.ts +11 -0
- package/dist/specs/touched.js +376 -0
- package/dist/specs/touched.js.map +1 -0
- package/dist/types/generated.d.ts +547 -0
- package/dist/types/generated.js +4 -0
- package/dist/types/generated.js.map +1 -0
- package/dist/verify/bundle.d.ts +104 -0
- package/dist/verify/bundle.js +212 -0
- package/dist/verify/bundle.js.map +1 -0
- package/dist/verify/card.d.ts +7 -0
- package/dist/verify/card.js +105 -0
- package/dist/verify/card.js.map +1 -0
- package/dist/verify/forge.d.ts +56 -0
- package/dist/verify/forge.js +173 -0
- package/dist/verify/forge.js.map +1 -0
- package/dist/verify/record.d.ts +63 -0
- package/dist/verify/record.js +539 -0
- package/dist/verify/record.js.map +1 -0
- package/dist/verify/records.d.ts +33 -0
- package/dist/verify/records.js +107 -0
- package/dist/verify/records.js.map +1 -0
- package/dist/verify/run-checks.d.ts +22 -0
- package/dist/verify/run-checks.js +149 -0
- package/dist/verify/run-checks.js.map +1 -0
- package/dist/views/specs-board.d.ts +43 -0
- package/dist/views/specs-board.js +427 -0
- package/dist/views/specs-board.js.map +1 -0
- package/kit/CHANGELOG.md +42 -0
- package/kit/README.md +18 -0
- package/kit/TENET.md +83 -0
- package/kit/agents/drafter.md +78 -0
- package/kit/agents/spec-reviewer.md +75 -0
- package/kit/defaults/tenet.yaml +25 -0
- package/kit/hooks/pre-commit +7 -0
- package/kit/packs/minimal/pack.yaml +54 -0
- package/kit/practices/default.md +6 -0
- package/kit/schemas/agent-card.json +280 -0
- package/kit/schemas/assignment.json +128 -0
- package/kit/schemas/board.json +563 -0
- package/kit/schemas/bundle.json +148 -0
- package/kit/schemas/finding.json +59 -0
- package/kit/schemas/interview.json +48 -0
- package/kit/schemas/inventory.json +409 -0
- package/kit/schemas/lock.json +37 -0
- package/kit/schemas/manifest-local.json +31 -0
- package/kit/schemas/manifest.json +109 -0
- package/kit/schemas/pack.json +190 -0
- package/kit/schemas/packet.json +94 -0
- package/kit/schemas/proof-card.json +526 -0
- package/kit/schemas/results/bless.json +14 -0
- package/kit/schemas/results/board.json +169 -0
- package/kit/schemas/results/check.json +42 -0
- package/kit/schemas/results/context.json +169 -0
- package/kit/schemas/results/doctor.json +22 -0
- package/kit/schemas/results/fix.json +33 -0
- package/kit/schemas/results/init.json +102 -0
- package/kit/schemas/results/mcp.json +173 -0
- package/kit/schemas/results/onboard.json +72 -0
- package/kit/schemas/results/remove.json +34 -0
- package/kit/schemas/results/split.json +21 -0
- package/kit/schemas/results/upgrade.json +23 -0
- package/kit/schemas/results/verify.json +34 -0
- package/kit/schemas/spec-front-matter.json +218 -0
- package/kit/schemas/tenet-yaml.json +356 -0
- package/kit/schemas/test-report.json +77 -0
- package/kit/skills/draft-specs/SKILL.md +38 -0
- package/kit/skills/review-with-findings/SKILL.md +21 -0
- package/kit/skills/work-a-change/SKILL.md +30 -0
- package/kit/templates/agents-block.md +47 -0
- package/kit/templates/design.md +43 -0
- package/kit/templates/escalation.md +34 -0
- package/kit/templates/experience.md +33 -0
- package/kit/templates/intent.md +56 -0
- package/kit/templates/plan.md +35 -0
- package/kit/templates/pull-request.md +25 -0
- package/kit/templates/requirements.md +43 -0
- package/kit/templates/vision.md +69 -0
- package/kit/workflows/existing-ci-step.yml +83 -0
- package/kit/workflows/tenet-tests.yml +88 -0
- package/kit/workflows/tenet.yml +87 -0
- package/package.json +67 -4
- package/pkg/conformance/alg-02/README.md +18 -0
- package/pkg/conformance/alg-02/n01-duplicate-slug/expected.json +5 -0
- package/pkg/conformance/alg-02/n01-duplicate-slug/input.json +5 -0
- package/pkg/conformance/alg-02/n02-ambiguous-rename/expected.json +12 -0
- package/pkg/conformance/alg-02/n02-ambiguous-rename/input.json +20 -0
- package/pkg/conformance/alg-02/n03-missing-front/expected.json +12 -0
- package/pkg/conformance/alg-02/n03-missing-front/input.json +5 -0
- package/pkg/conformance/alg-02/n04-invalid-origin/expected.json +4 -0
- package/pkg/conformance/alg-02/n04-invalid-origin/input.json +9 -0
- package/pkg/conformance/alg-02/p01-leading-preamble/expected.json +15 -0
- package/pkg/conformance/alg-02/p01-leading-preamble/input.json +5 -0
- package/pkg/conformance/alg-02/p02-four-backtick-fence/expected.json +11 -0
- package/pkg/conformance/alg-02/p02-four-backtick-fence/input.json +5 -0
- package/pkg/conformance/alg-02/p03-unicode-and-empty-slug/expected.json +14 -0
- package/pkg/conformance/alg-02/p03-unicode-and-empty-slug/input.json +5 -0
- package/pkg/conformance/alg-02/p04-normalized-bodies/expected.json +6 -0
- package/pkg/conformance/alg-02/p04-normalized-bodies/input.json +7 -0
- package/pkg/conformance/alg-02/p05-rename-digest/expected.json +10 -0
- package/pkg/conformance/alg-02/p05-rename-digest/input.json +16 -0
- package/pkg/conformance/alg-02/p06-requirement-prefix/expected.json +14 -0
- package/pkg/conformance/alg-02/p06-requirement-prefix/input.json +7 -0
- package/pkg/conformance/alg-03/README.md +20 -0
- package/pkg/conformance/alg-03/n01-ambiguous-relocation/expected.json +3 -0
- package/pkg/conformance/alg-03/n01-ambiguous-relocation/input.json +8 -0
- package/pkg/conformance/alg-03/n02-missing-source/expected.json +5 -0
- package/pkg/conformance/alg-03/n02-missing-source/input.json +12 -0
- package/pkg/conformance/alg-03/n03-edited-intent/expected.json +5 -0
- package/pkg/conformance/alg-03/n03-edited-intent/input.json +14 -0
- package/pkg/conformance/alg-03/n04-unblessed-stale-metadata/expected.json +3 -0
- package/pkg/conformance/alg-03/n04-unblessed-stale-metadata/input.json +12 -0
- package/pkg/conformance/alg-03/n05-ambiguous-moved-anchor/expected.json +5 -0
- package/pkg/conformance/alg-03/n05-ambiguous-moved-anchor/input.json +14 -0
- package/pkg/conformance/alg-03/p01-path-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p01-path-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p02-peer-test-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p02-peer-test-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p03-doc-anchor/expected.json +8 -0
- package/pkg/conformance/alg-03/p03-doc-anchor/input.json +15 -0
- package/pkg/conformance/alg-03/p04-unique-relocation/expected.json +4 -0
- package/pkg/conformance/alg-03/p04-unique-relocation/input.json +8 -0
- package/pkg/conformance/alg-03/p05-clean-moved-anchor/expected.json +3 -0
- package/pkg/conformance/alg-03/p05-clean-moved-anchor/input.json +14 -0
- package/pkg/conformance/alg-03/p06-owner-precedence/expected.json +5 -0
- package/pkg/conformance/alg-03/p06-owner-precedence/input.json +7 -0
- package/pkg/conformance/alg-03/p07-owner-last-match/expected.json +6 -0
- package/pkg/conformance/alg-03/p07-owner-last-match/input.json +6 -0
- package/pkg/conformance/alg-04/README.md +19 -0
- package/pkg/conformance/alg-04/n01-missing-file/expected.json +10 -0
- package/pkg/conformance/alg-04/n01-missing-file/input.json +6 -0
- package/pkg/conformance/alg-04/n02-backward-range/expected.json +10 -0
- package/pkg/conformance/alg-04/n02-backward-range/input.json +8 -0
- package/pkg/conformance/alg-04/n03-missing-heading/expected.json +10 -0
- package/pkg/conformance/alg-04/n03-missing-heading/input.json +8 -0
- package/pkg/conformance/alg-04/n04-reversed-test-segments/expected.json +10 -0
- package/pkg/conformance/alg-04/n04-reversed-test-segments/input.json +8 -0
- package/pkg/conformance/alg-04/n05-out-of-range/expected.json +10 -0
- package/pkg/conformance/alg-04/n05-out-of-range/input.json +8 -0
- package/pkg/conformance/alg-04/p01-single-line/expected.json +3 -0
- package/pkg/conformance/alg-04/p01-single-line/input.json +8 -0
- package/pkg/conformance/alg-04/p02-full-range/expected.json +3 -0
- package/pkg/conformance/alg-04/p02-full-range/input.json +8 -0
- package/pkg/conformance/alg-04/p03-doc-heading/expected.json +3 -0
- package/pkg/conformance/alg-04/p03-doc-heading/input.json +8 -0
- package/pkg/conformance/alg-04/p04-nested-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p04-nested-test/input.json +8 -0
- package/pkg/conformance/alg-04/p05-python-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p05-python-test/input.json +8 -0
- package/pkg/conformance/alg-04/p06-go-test/expected.json +3 -0
- package/pkg/conformance/alg-04/p06-go-test/input.json +8 -0
- package/pkg/conformance/alg-08/cases.json +263 -0
- package/pkg/conformance/alg-09/cases.json +95 -0
- package/pkg/conformance/alg-10/README.md +24 -0
- package/pkg/conformance/alg-10/n01-no-blessed-material/expected.json +7 -0
- package/pkg/conformance/alg-10/n01-no-blessed-material/input.json +23 -0
- package/pkg/conformance/alg-10/n02-rejected-section/expected.json +7 -0
- package/pkg/conformance/alg-10/n02-rejected-section/input.json +24 -0
- package/pkg/conformance/alg-10/n03-broken-blessed-copy/expected.json +7 -0
- package/pkg/conformance/alg-10/n03-broken-blessed-copy/input.json +27 -0
- package/pkg/conformance/alg-10/n04-local-omitted/expected.json +12 -0
- package/pkg/conformance/alg-10/n04-local-omitted/input.json +27 -0
- package/pkg/conformance/alg-10/n05-over-budget-explicit-id/expected.json +10 -0
- package/pkg/conformance/alg-10/n05-over-budget-explicit-id/input.json +26 -0
- package/pkg/conformance/alg-10/n06-unknown-method/expected.json +11 -0
- package/pkg/conformance/alg-10/n06-unknown-method/input.json +32 -0
- package/pkg/conformance/alg-10/p01-path-admitted/expected.json +14 -0
- package/pkg/conformance/alg-10/p01-path-admitted/input.json +26 -0
- package/pkg/conformance/alg-10/p02-retry-once-source-changed/expected.json +15 -0
- package/pkg/conformance/alg-10/p02-retry-once-source-changed/input.json +26 -0
- package/pkg/conformance/alg-10/p03-id-and-path-deduplicate/expected.json +13 -0
- package/pkg/conformance/alg-10/p03-id-and-path-deduplicate/input.json +30 -0
- package/pkg/conformance/alg-10/p04-include-draft-with-blessing/expected.json +17 -0
- package/pkg/conformance/alg-10/p04-include-draft-with-blessing/input.json +27 -0
- package/pkg/conformance/alg-10/p05-no-inputs-global-and-index/expected.json +16 -0
- package/pkg/conformance/alg-10/p05-no-inputs-global-and-index/input.json +21 -0
- package/pkg/conformance/alg-10/p06-checked-policy-rule/expected.json +20 -0
- package/pkg/conformance/alg-10/p06-checked-policy-rule/input.json +26 -0
- package/pkg/conformance/alg-10/p07-mcp-session/expected.json +60 -0
- package/pkg/conformance/alg-10/p07-mcp-session/input.json +65 -0
- package/pkg/conformance/alg-10/p08-applies-to-prose/expected.json +12 -0
- package/pkg/conformance/alg-10/p08-applies-to-prose/input.json +25 -0
- package/pkg/conformance/alg-10/p09-global-beyond-reserve/expected.json +14 -0
- package/pkg/conformance/alg-10/p09-global-beyond-reserve/input.json +27 -0
- package/pkg/conformance/alg-10/p10-query-case-insensitive/expected.json +11 -0
- package/pkg/conformance/alg-10/p10-query-case-insensitive/input.json +23 -0
- package/pkg/conformance/alg-11/README.md +29 -0
- package/pkg/conformance/alg-11/n01-no-commits-refused/expected.json +11 -0
- package/pkg/conformance/alg-11/n01-no-commits-refused/input.json +13 -0
- package/pkg/conformance/alg-11/n02-secrets-and-env-skipped/expected.json +153 -0
- package/pkg/conformance/alg-11/n02-secrets-and-env-skipped/input.json +20 -0
- package/pkg/conformance/alg-11/n03-generated-vendored-and-tests-excluded-from-size/expected.json +171 -0
- package/pkg/conformance/alg-11/n03-generated-vendored-and-tests-excluded-from-size/input.json +22 -0
- package/pkg/conformance/alg-11/n04-binary-oversize-and-onboard-exclude-skipped/expected.json +137 -0
- package/pkg/conformance/alg-11/n04-binary-oversize-and-onboard-exclude-skipped/input.json +20 -0
- package/pkg/conformance/alg-11/n05-uncommitted-worktree-source-ignored/expected.json +124 -0
- package/pkg/conformance/alg-11/n05-uncommitted-worktree-source-ignored/input.json +17 -0
- package/pkg/conformance/alg-11/p01-small-one-file-service/expected.json +145 -0
- package/pkg/conformance/alg-11/p01-small-one-file-service/input.json +18 -0
- package/pkg/conformance/alg-11/p02-four-codeowners-areas-separate/expected.json +255 -0
- package/pkg/conformance/alg-11/p02-four-codeowners-areas-separate/input.json +17 -0
- package/pkg/conformance/alg-11/p03-twenty-thousand-lines-separate/expected.json +169 -0
- package/pkg/conformance/alg-11/p03-twenty-thousand-lines-separate/input.json +14 -0
- package/pkg/conformance/alg-11/p04-merge-small-unit-into-neighbor/expected.json +186 -0
- package/pkg/conformance/alg-11/p04-merge-small-unit-into-neighbor/input.json +15 -0
- package/pkg/conformance/alg-11/p05-layout-override/expected.json +128 -0
- package/pkg/conformance/alg-11/p05-layout-override/input.json +14 -0
- package/pkg/conformance/alg-11/p06-cli-kind-and-instruction-files/expected.json +154 -0
- package/pkg/conformance/alg-11/p06-cli-kind-and-instruction-files/input.json +18 -0
- package/pkg/conformance/alg-11/p07-local-test-report-in-observations/expected.json +131 -0
- package/pkg/conformance/alg-11/p07-local-test-report-in-observations/input.json +17 -0
- package/pkg/conformance/alg-11/p08-first-findings-all-four-kinds/expected.json +207 -0
- package/pkg/conformance/alg-11/p08-first-findings-all-four-kinds/input.json +20 -0
- package/pkg/conformance/alg-14/README.md +21 -0
- package/pkg/conformance/alg-14/n01-draft-implements/expected.json +3 -0
- package/pkg/conformance/alg-14/n01-draft-implements/input.json +12 -0
- package/pkg/conformance/alg-14/n02-outside-replacement/expected.json +8 -0
- package/pkg/conformance/alg-14/n02-outside-replacement/input.json +12 -0
- package/pkg/conformance/alg-14/n03-insertion-at-end/expected.json +8 -0
- package/pkg/conformance/alg-14/n03-insertion-at-end/input.json +12 -0
- package/pkg/conformance/alg-14/n04-same-owner-different-rule/expected.json +3 -0
- package/pkg/conformance/alg-14/n04-same-owner-different-rule/input.json +16 -0
- package/pkg/conformance/alg-14/n05-missing-implements/expected.json +3 -0
- package/pkg/conformance/alg-14/n05-missing-implements/input.json +12 -0
- package/pkg/conformance/alg-14/p01-implements-first/expected.json +8 -0
- package/pkg/conformance/alg-14/p01-implements-first/input.json +14 -0
- package/pkg/conformance/alg-14/p02-overlapping-replacement/expected.json +8 -0
- package/pkg/conformance/alg-14/p02-overlapping-replacement/input.json +12 -0
- package/pkg/conformance/alg-14/p03-interior-insertion/expected.json +8 -0
- package/pkg/conformance/alg-14/p03-interior-insertion/input.json +12 -0
- package/pkg/conformance/alg-14/p04-text-changed/expected.json +8 -0
- package/pkg/conformance/alg-14/p04-text-changed/input.json +10 -0
- package/pkg/conformance/alg-14/p05-same-folder/expected.json +8 -0
- package/pkg/conformance/alg-14/p05-same-folder/input.json +14 -0
- package/pkg/conformance/alg-14/p06-codeowners-priority/expected.json +8 -0
- package/pkg/conformance/alg-14/p06-codeowners-priority/input.json +18 -0
- package/pkg/conformance/alg-14/p07-same-area-cap/expected.json +44 -0
- package/pkg/conformance/alg-14/p07-same-area-cap/input.json +14 -0
- package/pkg/conformance/alg-14/p08-deleted-document/expected.json +8 -0
- package/pkg/conformance/alg-14/p08-deleted-document/input.json +13 -0
- package/pkg/conformance/board/README.md +19 -0
- package/pkg/conformance/board/n01-no-specifications/expected.json +8 -0
- package/pkg/conformance/board/n01-no-specifications/expected.md +1 -0
- package/pkg/conformance/board/n01-no-specifications/input.json +19 -0
- package/pkg/conformance/board/n02-broken-citation/expected.json +14 -0
- package/pkg/conformance/board/n02-broken-citation/expected.md +1 -0
- package/pkg/conformance/board/n02-broken-citation/input.json +24 -0
- package/pkg/conformance/board/n03-untested-requirement/expected.json +12 -0
- package/pkg/conformance/board/n03-untested-requirement/expected.md +1 -0
- package/pkg/conformance/board/n03-untested-requirement/input.json +23 -0
- package/pkg/conformance/board/n04-over-budget/expected.json +14 -0
- package/pkg/conformance/board/n04-over-budget/expected.md +1 -0
- package/pkg/conformance/board/n04-over-budget/input.json +20 -0
- package/pkg/conformance/board/p01-fresh-draft/expected.json +22 -0
- package/pkg/conformance/board/p01-fresh-draft/expected.md +2 -0
- package/pkg/conformance/board/p01-fresh-draft/input.json +20 -0
- package/pkg/conformance/board/p02-half-blessed/expected.json +34 -0
- package/pkg/conformance/board/p02-half-blessed/expected.md +3 -0
- package/pkg/conformance/board/p02-half-blessed/input.json +25 -0
- package/pkg/conformance/board/p03-sources-changed/expected.json +18 -0
- package/pkg/conformance/board/p03-sources-changed/expected.md +2 -0
- package/pkg/conformance/board/p03-sources-changed/input.json +24 -0
- package/pkg/conformance/board/p04-clean-all/expected.json +17 -0
- package/pkg/conformance/board/p04-clean-all/expected.md +1 -0
- package/pkg/conformance/board/p04-clean-all/input.json +25 -0
- package/pkg/conformance/board/p05-clean-default/expected.json +7 -0
- package/pkg/conformance/board/p05-clean-default/expected.md +1 -0
- package/pkg/conformance/board/p05-clean-default/input.json +25 -0
- package/pkg/conformance/board/p06-edited-only/expected.json +18 -0
- package/pkg/conformance/board/p06-edited-only/expected.md +2 -0
- package/pkg/conformance/board/p06-edited-only/input.json +23 -0
- package/pkg/conformance/board/p07-ux-part-2/expected.json +47 -0
- package/pkg/conformance/board/p07-ux-part-2/expected.md +7 -0
- package/pkg/conformance/board/p07-ux-part-2/input.json +26 -0
- package/pkg/conformance/card/README.md +34 -0
- package/pkg/conformance/card/n01-no-acceptance-block/expected.json +62 -0
- package/pkg/conformance/card/n01-no-acceptance-block/expected.md +7 -0
- package/pkg/conformance/card/n01-no-acceptance-block/input.json +94 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/expected.json +64 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/expected.md +8 -0
- package/pkg/conformance/card/n02-malformed-acceptance-block/input.json +99 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/expected.json +85 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/expected.md +9 -0
- package/pkg/conformance/card/n03-report-missing-not-checked/input.json +97 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/expected.json +84 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/expected.md +8 -0
- package/pkg/conformance/card/n04-nonzero-exit-after-passing-report/input.json +99 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/expected.json +83 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/expected.md +8 -0
- package/pkg/conformance/card/n05-bundle-refused-and-records-not-kept/input.json +98 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/expected.json +93 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/expected.md +9 -0
- package/pkg/conformance/card/n06-policy-load-failure-fallback/input.json +105 -0
- package/pkg/conformance/card/p01-clean-pass-success/expected.json +93 -0
- package/pkg/conformance/card/p01-clean-pass-success/expected.md +8 -0
- package/pkg/conformance/card/p01-clean-pass-success/input.json +101 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/expected.json +62 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/expected.md +5 -0
- package/pkg/conformance/card/p02-no-blessed-intent-badge/input.json +92 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/expected.json +93 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/expected.md +8 -0
- package/pkg/conformance/card/p03-matrix-shards-and-retry-merge/input.json +137 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/expected.json +122 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/expected.md +11 -0
- package/pkg/conformance/card/p04-blessings-changed-and-requirement-deltas/input.json +102 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.json +88 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/expected.md +8 -0
- package/pkg/conformance/card/p05-workflow-and-protected-surfaces-would-block/input.json +101 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/expected.json +99 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/expected.md +8 -0
- package/pkg/conformance/card/p06-test-weakening-would-block/input.json +101 -0
- package/pkg/conformance/card/p07-only-skipped-cases/expected.json +80 -0
- package/pkg/conformance/card/p07-only-skipped-cases/expected.md +7 -0
- package/pkg/conformance/card/p07-only-skipped-cases/input.json +99 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/expected.json +80 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/expected.md +7 -0
- package/pkg/conformance/card/p08-coverage-not-confirmed/input.json +99 -0
- package/pkg/conformance/check/README.md +26 -0
- package/pkg/conformance/check/n01-missing-citation-file/expected.json +15 -0
- package/pkg/conformance/check/n01-missing-citation-file/input.json +25 -0
- package/pkg/conformance/check/n02-citation-out-of-range/expected.json +15 -0
- package/pkg/conformance/check/n02-citation-out-of-range/input.json +26 -0
- package/pkg/conformance/check/n03-missing-citation-heading/expected.json +15 -0
- package/pkg/conformance/check/n03-missing-citation-heading/input.json +26 -0
- package/pkg/conformance/check/n04-missing-citation-test/expected.json +15 -0
- package/pkg/conformance/check/n04-missing-citation-test/input.json +26 -0
- package/pkg/conformance/check/n05-changed-blessed-copy/expected.json +12 -0
- package/pkg/conformance/check/n05-changed-blessed-copy/input.json +29 -0
- package/pkg/conformance/check/n06-missing-blessed-copy/expected.json +12 -0
- package/pkg/conformance/check/n06-missing-blessed-copy/input.json +27 -0
- package/pkg/conformance/check/n07-two-blessed-ids/expected.json +12 -0
- package/pkg/conformance/check/n07-two-blessed-ids/input.json +32 -0
- package/pkg/conformance/check/n08-uncovered-vision/expected.json +8 -0
- package/pkg/conformance/check/n08-uncovered-vision/input.json +27 -0
- package/pkg/conformance/check/n09-ci-budget-crossing/expected.json +13 -0
- package/pkg/conformance/check/n09-ci-budget-crossing/input.json +47 -0
- package/pkg/conformance/check/n10-kit-edited/expected.json +12 -0
- package/pkg/conformance/check/n10-kit-edited/input.json +31 -0
- package/pkg/conformance/check/n11-lock-version-mismatch/expected.json +13 -0
- package/pkg/conformance/check/n11-lock-version-mismatch/input.json +31 -0
- package/pkg/conformance/check/n12-local-budget-warning/expected.json +10 -0
- package/pkg/conformance/check/n12-local-budget-warning/input.json +29 -0
- package/pkg/conformance/check/p01-covered-vision/expected.json +6 -0
- package/pkg/conformance/check/p01-covered-vision/input.json +29 -0
- package/pkg/conformance/check/p02-path-citation/expected.json +6 -0
- package/pkg/conformance/check/p02-path-citation/input.json +26 -0
- package/pkg/conformance/check/p03-doc-and-test-citations/expected.json +6 -0
- package/pkg/conformance/check/p03-doc-and-test-citations/input.json +27 -0
- package/pkg/conformance/check/p04-valid-blessed-copy/expected.json +6 -0
- package/pkg/conformance/check/p04-valid-blessed-copy/input.json +30 -0
- package/pkg/conformance/check/p05-unique-across-documents/expected.json +6 -0
- package/pkg/conformance/check/p05-unique-across-documents/input.json +32 -0
- package/pkg/conformance/check/p06-matching-lock-and-kit/expected.json +6 -0
- package/pkg/conformance/check/p06-matching-lock-and-kit/input.json +31 -0
- package/pkg/conformance/install/.gitattributes +1 -0
- package/pkg/conformance/install/README.md +40 -0
- package/pkg/conformance/install/environment.json +29 -0
- package/pkg/conformance/install/n01-git-executable-missing/args.json +17 -0
- package/pkg/conformance/install/n01-git-executable-missing/before/README.md +1 -0
- package/pkg/conformance/install/n02-not-a-git-repository/args.json +15 -0
- package/pkg/conformance/install/n02-not-a-git-repository/before/README.md +1 -0
- package/pkg/conformance/install/n02-not-a-git-repository/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/args.json +14 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/.tenet/manifest.json +12 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/README.md +1 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/before/tenet.yaml +1 -0
- package/pkg/conformance/install/n03-remove-recorded-parent-path/expected/01-remove/result.json +4 -0
- package/pkg/conformance/install/n04-init-symlink-outside/args.json +22 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/package-lock.json +15 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/package.json +11 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n04-init-symlink-outside/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n04-init-symlink-outside/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/args.json +12 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/.github/workflows/tenet.yml +3 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/package-lock.json +15 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/package.json +11 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n05-conflicting-created-workflow/expected/01-init/result.json +4 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/args.json +27 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/AGENTS.md +1 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/package-lock.json +15 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/package.json +11 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n06-interrupted-plan-drift/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/args.json +11 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/before/README.md +1 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/before/tenet.yaml +2 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/expected/01-doctor/tree/README.md +1 -0
- package/pkg/conformance/install/n07-doctor-missing-lock/expected/01-doctor/tree/tenet.yaml +2 -0
- package/pkg/conformance/install/n08-preflight-declined/args.json +14 -0
- package/pkg/conformance/install/n08-preflight-declined/before/AGENTS.md +1 -0
- package/pkg/conformance/install/n08-preflight-declined/before/package-lock.json +15 -0
- package/pkg/conformance/install/n08-preflight-declined/before/package.json +11 -0
- package/pkg/conformance/install/n08-preflight-declined/before/src/retry.ts +1 -0
- package/pkg/conformance/install/n08-preflight-declined/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/AGENTS.md +1 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/package-lock.json +15 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/package.json +11 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/n08-preflight-declined/expected/01-init/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p01-empty/args.json +15 -0
- package/pkg/conformance/install/p01-empty/before/.gitkeep +0 -0
- package/pkg/conformance/install/p02-node-vitest/args.json +12 -0
- package/pkg/conformance/install/p02-node-vitest/before/.nvmrc +1 -0
- package/pkg/conformance/install/p02-node-vitest/before/package-lock.json +15 -0
- package/pkg/conformance/install/p02-node-vitest/before/package.json +11 -0
- package/pkg/conformance/install/p02-node-vitest/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p02-node-vitest/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p03-node-existing-ci/args.json +12 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/.github/workflows/ci.yml +10 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/package-lock.json +15 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/package.json +11 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p03-node-existing-ci/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p04-node-matrix/args.json +12 -0
- package/pkg/conformance/install/p04-node-matrix/before/.github/workflows/ci.yml +13 -0
- package/pkg/conformance/install/p04-node-matrix/before/package-lock.json +15 -0
- package/pkg/conformance/install/p04-node-matrix/before/package.json +11 -0
- package/pkg/conformance/install/p04-node-matrix/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p04-node-matrix/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p05-python-pytest/args.json +12 -0
- package/pkg/conformance/install/p05-python-pytest/before/.python-version +1 -0
- package/pkg/conformance/install/p05-python-pytest/before/requirements.txt +1 -0
- package/pkg/conformance/install/p05-python-pytest/before/tests/test_retry.py +2 -0
- package/pkg/conformance/install/p06-go/args.json +12 -0
- package/pkg/conformance/install/p06-go/before/go.mod +3 -0
- package/pkg/conformance/install/p06-go/before/retry_test.go +5 -0
- package/pkg/conformance/install/p07-existing-agents-md/args.json +12 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/AGENTS.md +7 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/package-lock.json +15 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/package.json +11 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p07-existing-agents-md/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p08-existing-mcp/args.json +12 -0
- package/pkg/conformance/install/p08-existing-mcp/before/.mcp.json +18 -0
- package/pkg/conformance/install/p08-existing-mcp/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p08-existing-mcp/before/package-lock.json +15 -0
- package/pkg/conformance/install/p08-existing-mcp/before/package.json +11 -0
- package/pkg/conformance/install/p08-existing-mcp/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p08-existing-mcp/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/args.json +33 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.gitattributes +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.github/pull_request_template.md +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/.mcp.json +18 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/AGENTS.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/CLAUDE.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/package-lock.json +15 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/package.json +11 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/tenet/intent.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.gitattributes +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.github/pull_request_template.md +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/.mcp.json +18 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/AGENTS.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/CLAUDE.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/package-lock.json +15 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/package.json +11 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/tenet/intent.md +3 -0
- package/pkg/conformance/install/p09-init-repeat-upgrade-remove/expected/04-remove/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/args.json +24 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/.mcp.json +18 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/package-lock.json +15 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/package.json +11 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/tenet/intent.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/.mcp.json +16 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/CLAUDE.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/package-lock.json +15 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/package.json +11 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/src/retry.ts +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/tenet/intent.md +1 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/tenet.yaml +2 -0
- package/pkg/conformance/install/p10-remove-keeps-user-edits/expected/02-remove/tree/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/args.json +24 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/.mcp.json +18 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/package-lock.json +15 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/package.json +11 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p11-interrupted-install-resumes/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p12-windows-local-host/args.json +26 -0
- package/pkg/conformance/install/p12-windows-local-host/before/.vscode/mcp.json +10 -0
- package/pkg/conformance/install/p12-windows-local-host/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p12-windows-local-host/before/package-lock.json +15 -0
- package/pkg/conformance/install/p12-windows-local-host/before/package.json +11 -0
- package/pkg/conformance/install/p12-windows-local-host/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p12-windows-local-host/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/args.json +12 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/.github/workflows/ci.yml +16 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/package-lock.json +15 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/package.json +11 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p13-existing-ci-with-services/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p14-reusable-workflow/args.json +12 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/.github/workflows/ci.yml +5 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/.github/workflows/reusable.yml +10 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/package-lock.json +15 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/package.json +11 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p14-reusable-workflow/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p15-non-github-forge/args.json +15 -0
- package/pkg/conformance/install/p15-non-github-forge/before/package-lock.json +15 -0
- package/pkg/conformance/install/p15-non-github-forge/before/package.json +11 -0
- package/pkg/conformance/install/p15-non-github-forge/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p15-non-github-forge/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/args.json +20 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/package-lock.json +15 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/package.json +11 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p16-vendor-fresh-clone/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/args.json +24 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/.cursor/mcp.json +10 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/.mcp.json +18 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/CLAUDE.md +1 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/package-lock.json +15 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/package.json +11 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p17-upgrade-pins-and-policy/before/test/retry.test.ts +3 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/args.json +15 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/.github/workflows/ci.yml +9 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/package-lock.json +15 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/package.json +11 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/src/retry.ts +1 -0
- package/pkg/conformance/install/p18-accepted-reporter-edit/before/test/retry.test.ts +3 -0
- package/pkg/conformance/scenarios/README.md +34 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/blessed/tenet__intent.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +10 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/expected/04-card.md +9 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/expected/04-verify.json +92 -0
- package/pkg/conformance/scenarios/s01-tagged-test-never-ran/steps.json +88 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/src/retry.ts +6 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/blessed/tenet__intent.md/requirements.md +2 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +15 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet/intent.md +8 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/04-card.md +9 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/04-verify.json +92 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/05-card.md +10 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/expected/05-verify.json +107 -0
- package/pkg/conformance/scenarios/s02-implements-changed-same-commit/steps.json +101 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/before/tenet.yaml +24 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/expected/01-gate-fixture.json +48 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/expected/02-check.json +106 -0
- package/pkg/conformance/scenarios/s03-advisory-and-enforced-failure/steps.json +79 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__specs__prd.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/02-board.json +72 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/03-context.json +46 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/04-mcp.json +71 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/05-bless.json +13 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/expected/06-context-sdk.json +38 -0
- package/pkg/conformance/scenarios/s04-reject-edit-to-blessed-section/steps.json +98 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/src/checkout/pay.ts +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__specs__prd.md/requirements.md +3 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +5 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/prd.md +9 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/01-context-tight.json +54 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/02-mcp.json +79 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/03-context-explicit.json +52 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/expected/04-context-zero.json +17 -0
- package/pkg/conformance/scenarios/s05-global-rule-budget-pressure/steps.json +79 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/CODEOWNERS +2 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/api/handler.ts +2007 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/billing/charge.ts +2007 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/src/shared/http.ts +3 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/blessed/tenet__intent.md/requirements.md +2 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +11 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet/intent.md +8 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/01-onboard-initial.json +240 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/05-onboard-refresh.json +252 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/06-card.md +8 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/expected/06-verify.json +77 -0
- package/pkg/conformance/scenarios/s06-change-to-shared-helper/steps.json +122 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/.mcp.json +10 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/AGENTS.md +3 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/package.json +11 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/src/index.ts +1 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/before/test/index.test.ts +2 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/01-interrupted-init.json +4 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/02-init-resume.json +75 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/03-doctor.json +40 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/expected/04-remove.json +44 -0
- package/pkg/conformance/scenarios/s07-install-interrupted-part-way/steps.json +56 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__specs__prd.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__specs__prd.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/02-context-clean.json +38 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/04-context-drift.json +40 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/05-bless.json +13 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/expected/05-log-entry.json +15 -0
- package/pkg/conformance/scenarios/s08-blessing-fresh-clone-squash-merge/steps.json +80 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__specs__prd.md/checkout-retries.md +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__specs__prd.md/checkout-retries.md.anchors.json +5 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__vision.md/vision.md +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/blessed/tenet__vision.md/vision.md.anchors.json +1 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/plan.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/prd.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/tech-spec.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/specs/ux-spec.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet/vision.md +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/02-fix.json +34 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/03-check.json +14 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/04-board.json +56 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/expected/05-context.json +38 -0
- package/pkg/conformance/scenarios/s09-renamed-heading/steps.json +58 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/kit/TENET.md +3 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/blessed/tenet__intent.md/requirements.md +1 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/blessed/tenet__intent.md/requirements.md.anchors.json +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet/intent.md +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet.lock +7 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/before/tenet.yaml +20 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/04-card.md +8 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/04-verify.json +77 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/expected/05-verify-closed.json +6 -0
- package/pkg/conformance/scenarios/s10-pr-closed-without-merging/steps.json +108 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/README.md +3 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/package.json +8 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/src/retry.ts +3 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/before/test/retry.test.ts +2 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/01-init.json +75 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/02-onboard-inventory.json +141 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-card.md +7 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/06-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/07-bless.json +13 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/expected/08-remove.json +57 -0
- package/pkg/conformance/scenarios/s11-readme-walkthrough/steps.json +93 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/.claude/settings.json +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/.github/workflows/ci.yml +8 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/CODEOWNERS +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/README.md +3 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/adr/0001-retries.md +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/adr/0002-timeouts.md +1 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/docs/architecture.md +3 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/package.json +11 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/src/retry.ts +6 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/before/test/checkout.retry.test.ts +4 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/01-init.json +103 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/02-onboard-inventory.json +233 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-card.md +9 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/06-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/07-bless.json +13 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/expected/08-board.json +34 -0
- package/pkg/conformance/scenarios/s12-ux-walkthrough-existing/steps.json +98 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/before/.gitkeep +0 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/01-init.json +82 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/04-onboard-inventory.json +188 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-card.md +12 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/05-onboard-card.json +10 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/expected/06-bless.json +13 -0
- package/pkg/conformance/scenarios/s13-ux-walkthrough-new/steps.json +76 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/install/init.ts"],"names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CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC;IACH,OAAO,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { PreflightOptions } from "./types.js";
|
|
2
|
+
export type ReleaseIntegrity = {
|
|
3
|
+
package: string;
|
|
4
|
+
version: string;
|
|
5
|
+
integrity: string;
|
|
6
|
+
warning?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function installedPackageVersion(): Promise<string>;
|
|
9
|
+
export declare function installedLocalIntegrity(): Promise<string>;
|
|
10
|
+
type NpmViewResult = {
|
|
11
|
+
status: number | null;
|
|
12
|
+
stdout: string;
|
|
13
|
+
stderr: string;
|
|
14
|
+
};
|
|
15
|
+
type NpmViewRunner = (args: string[], options: {
|
|
16
|
+
cwd: string;
|
|
17
|
+
}) => Promise<NpmViewResult>;
|
|
18
|
+
export declare function localIntegrityWarning(packageName: string, version: string): string;
|
|
19
|
+
type IntegrityDependencies = {
|
|
20
|
+
registry?: (packageName: string, version: string) => Promise<string | null>;
|
|
21
|
+
npmView?: NpmViewRunner;
|
|
22
|
+
};
|
|
23
|
+
export declare function releaseIntegrity(options: PreflightOptions, dependencies?: IntegrityDependencies, command?: "init" | "upgrade"): Promise<ReleaseIntegrity>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { readFile, readdir } from "node:fs/promises";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import { message } from "../core/messages.js";
|
|
7
|
+
import { fail } from "../core/output.js";
|
|
8
|
+
const integrityPattern = /^sha512-[A-Za-z0-9+/]{86}==$/;
|
|
9
|
+
function invalid(detail) {
|
|
10
|
+
const words = message("TN-LOCK-INVALID", { detail });
|
|
11
|
+
const finding = { ...fail("TN-LOCK-INVALID", words.message, words.fix), file: "tenet.lock" };
|
|
12
|
+
throw Object.assign(new Error(words.message), {
|
|
13
|
+
code: "TN-LOCK-INVALID",
|
|
14
|
+
finding,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function registryUnavailable(packageName, version, detail, command) {
|
|
18
|
+
const words = message("TN-ENV-REGISTRY", {
|
|
19
|
+
package: packageName,
|
|
20
|
+
version,
|
|
21
|
+
detail,
|
|
22
|
+
command,
|
|
23
|
+
});
|
|
24
|
+
const finding = fail("TN-ENV-REGISTRY", words.message, words.fix);
|
|
25
|
+
throw Object.assign(new Error(words.message), {
|
|
26
|
+
code: "TN-ENV-REGISTRY",
|
|
27
|
+
finding,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function validateIntegrity(value, source) {
|
|
31
|
+
if (typeof value !== "string" || !integrityPattern.test(value)) {
|
|
32
|
+
invalid(`${source} did not supply a valid sha512 integrity value.`);
|
|
33
|
+
}
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
async function installedPackage() {
|
|
37
|
+
const root = path.resolve(fileURLToPath(new URL("../../", import.meta.url)));
|
|
38
|
+
const source = path.join(root, "package.json");
|
|
39
|
+
let value;
|
|
40
|
+
try {
|
|
41
|
+
value = JSON.parse(await readFile(source, "utf8"));
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
invalid(`The installed package metadata at ${source} could not be read: ${error.message}`);
|
|
45
|
+
}
|
|
46
|
+
if (typeof value.name !== "string" || !value.name || typeof value.version !== "string" || !value.version) {
|
|
47
|
+
invalid(`The installed package metadata at ${source} is missing a package name or version.`);
|
|
48
|
+
}
|
|
49
|
+
return { package: value.name, version: value.version, root };
|
|
50
|
+
}
|
|
51
|
+
export async function installedPackageVersion() {
|
|
52
|
+
return (await installedPackage()).version;
|
|
53
|
+
}
|
|
54
|
+
async function listFiles(root, relative = "") {
|
|
55
|
+
const directory = path.join(root, ...relative.split("/").filter(Boolean));
|
|
56
|
+
const entries = await readdir(directory, { withFileTypes: true }).catch((error) => {
|
|
57
|
+
if (error.code === "ENOENT")
|
|
58
|
+
return [];
|
|
59
|
+
throw error;
|
|
60
|
+
});
|
|
61
|
+
const files = [];
|
|
62
|
+
for (const entry of entries.sort((left, right) => left.name < right.name ? -1 : left.name > right.name ? 1 : 0)) {
|
|
63
|
+
const item = relative ? `${relative}/${entry.name}` : entry.name;
|
|
64
|
+
if (entry.isDirectory())
|
|
65
|
+
files.push(...await listFiles(root, item));
|
|
66
|
+
else if (entry.isFile())
|
|
67
|
+
files.push(item);
|
|
68
|
+
}
|
|
69
|
+
return files;
|
|
70
|
+
}
|
|
71
|
+
async function localIntegrity(root) {
|
|
72
|
+
const files = new Set(["package.json", "LICENSE", "README.md"]);
|
|
73
|
+
for (const directory of ["dist", "kit", "pkg/migrations", "pkg/conformance", "pkg/hosts"]) {
|
|
74
|
+
for (const item of await listFiles(root, directory))
|
|
75
|
+
files.add(item);
|
|
76
|
+
}
|
|
77
|
+
const hash = createHash("sha512");
|
|
78
|
+
for (const relative of [...files].sort()) {
|
|
79
|
+
let bytes;
|
|
80
|
+
try {
|
|
81
|
+
bytes = await readFile(path.join(root, ...relative.split("/")));
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
if (error.code === "ENOENT")
|
|
85
|
+
continue;
|
|
86
|
+
throw error;
|
|
87
|
+
}
|
|
88
|
+
hash.update(relative);
|
|
89
|
+
hash.update("\0");
|
|
90
|
+
hash.update(bytes);
|
|
91
|
+
}
|
|
92
|
+
return `sha512-${hash.digest("base64")}`;
|
|
93
|
+
}
|
|
94
|
+
export async function installedLocalIntegrity() {
|
|
95
|
+
const installed = await installedPackage();
|
|
96
|
+
return localIntegrity(installed.root);
|
|
97
|
+
}
|
|
98
|
+
async function runNpmView(args, options) {
|
|
99
|
+
const executable = process.platform === "win32" ? "npm.cmd" : "npm";
|
|
100
|
+
const child = spawn(executable, args, {
|
|
101
|
+
cwd: options.cwd,
|
|
102
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
103
|
+
windowsHide: true,
|
|
104
|
+
shell: process.platform === "win32",
|
|
105
|
+
});
|
|
106
|
+
let stdout = "";
|
|
107
|
+
let stderr = "";
|
|
108
|
+
child.stdout.setEncoding("utf8").on("data", (chunk) => { stdout += chunk; });
|
|
109
|
+
child.stderr.setEncoding("utf8").on("data", (chunk) => { stderr += chunk; });
|
|
110
|
+
const status = await new Promise((resolve, reject) => {
|
|
111
|
+
child.on("error", reject);
|
|
112
|
+
child.on("close", resolve);
|
|
113
|
+
});
|
|
114
|
+
return { status, stdout, stderr };
|
|
115
|
+
}
|
|
116
|
+
async function registryIntegrity(packageName, version, cwd, run = runNpmView, command = "init") {
|
|
117
|
+
const args = [
|
|
118
|
+
"view",
|
|
119
|
+
`${packageName}@${version}`,
|
|
120
|
+
"dist.integrity",
|
|
121
|
+
"--json",
|
|
122
|
+
"--registry=https://registry.npmjs.org/",
|
|
123
|
+
];
|
|
124
|
+
const { status, stdout, stderr } = await run(args, { cwd });
|
|
125
|
+
if (status !== 0) {
|
|
126
|
+
if (/E404|404 Not Found|is not in this registry|No match found/i.test(`${stdout}\n${stderr}`))
|
|
127
|
+
return null;
|
|
128
|
+
registryUnavailable(packageName, version, stderr.trim() || `npm exited ${String(status)}`, command);
|
|
129
|
+
}
|
|
130
|
+
let value;
|
|
131
|
+
try {
|
|
132
|
+
value = JSON.parse(stdout);
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
invalid(`The registry response for ${packageName}@${version} was not valid JSON.`);
|
|
136
|
+
}
|
|
137
|
+
return validateIntegrity(value, `The registry response for ${packageName}@${version}`);
|
|
138
|
+
}
|
|
139
|
+
export function localIntegrityWarning(packageName, version) {
|
|
140
|
+
return `${packageName}@${version} is not on the registry, so Tenet used local package integrity. ` +
|
|
141
|
+
"CI workflows cannot verify it until the package is published and re-pinned with `tenet upgrade`.";
|
|
142
|
+
}
|
|
143
|
+
export async function releaseIntegrity(options, dependencies = {}, command = "init") {
|
|
144
|
+
const installed = await installedPackage();
|
|
145
|
+
const environment = options.environment ?? {};
|
|
146
|
+
const packageName = environment.registry?.package ?? installed.package;
|
|
147
|
+
const version = environment.installedVersion ?? installed.version;
|
|
148
|
+
const configured = environment.registry?.releases?.[version]?.integrity;
|
|
149
|
+
const override = process.env.TENET_INSTALL_INTEGRITY;
|
|
150
|
+
if (configured !== undefined) {
|
|
151
|
+
return {
|
|
152
|
+
package: packageName,
|
|
153
|
+
version,
|
|
154
|
+
integrity: validateIntegrity(configured, `Configured registry metadata for ${packageName}@${version}`),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
if (override !== undefined) {
|
|
158
|
+
return {
|
|
159
|
+
package: packageName,
|
|
160
|
+
version,
|
|
161
|
+
integrity: validateIntegrity(override, `TENET_INSTALL_INTEGRITY for ${packageName}@${version}`),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
const local = options.offline === true || version === "0.0.0";
|
|
165
|
+
let registry = null;
|
|
166
|
+
if (!local) {
|
|
167
|
+
const injected = process.env.TENET_TEST_REGISTRY_INTEGRITY;
|
|
168
|
+
const injectedError = process.env.TENET_TEST_REGISTRY_ERROR;
|
|
169
|
+
let supplied;
|
|
170
|
+
try {
|
|
171
|
+
if (injectedError !== undefined)
|
|
172
|
+
throw new Error(injectedError);
|
|
173
|
+
supplied = injected === "not-found"
|
|
174
|
+
? null
|
|
175
|
+
: injected !== undefined
|
|
176
|
+
? injected
|
|
177
|
+
: dependencies.registry
|
|
178
|
+
? await dependencies.registry(packageName, version)
|
|
179
|
+
: await registryIntegrity(packageName, version, installed.root, dependencies.npmView, command);
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
if (["TN-LOCK-INVALID", "TN-ENV-REGISTRY"].includes(error.code ?? "")) {
|
|
183
|
+
throw error;
|
|
184
|
+
}
|
|
185
|
+
registryUnavailable(packageName, version, error.message, command);
|
|
186
|
+
}
|
|
187
|
+
registry = supplied === null
|
|
188
|
+
? null
|
|
189
|
+
: validateIntegrity(supplied, "Injected registry metadata");
|
|
190
|
+
}
|
|
191
|
+
if (registry)
|
|
192
|
+
return { package: packageName, version, integrity: registry };
|
|
193
|
+
return {
|
|
194
|
+
package: packageName,
|
|
195
|
+
version,
|
|
196
|
+
integrity: await localIntegrity(installed.root),
|
|
197
|
+
warning: localIntegrityWarning(packageName, version),
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=integrity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrity.js","sourceRoot":"","sources":["../../src/install/integrity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAGzC,MAAM,gBAAgB,GAAG,8BAA8B,CAAC;AASxD,SAAS,OAAO,CAAC,MAAc;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IAC7F,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;QAC5C,IAAI,EAAE,iBAAiB;QACvB,OAAO;KACR,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB,CAC1B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J,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { InitPlan, InstallManifest, LocalManifest, PendingManifest, PendingWrite } from "./types.js";
|
|
2
|
+
export declare function sha256Bytes(value: string | NodeJS.ArrayBufferView): string;
|
|
3
|
+
export declare function sortedText(left: string, right: string): number;
|
|
4
|
+
export declare function jsonFile(value: unknown): string;
|
|
5
|
+
export declare function decodeJson(value: string): Record<string, unknown>;
|
|
6
|
+
export declare function pointerParts(pointer: string): string[];
|
|
7
|
+
export declare function pointerValue(root: Record<string, unknown>, pointer: string): unknown;
|
|
8
|
+
export declare function setPointer(root: Record<string, unknown>, pointer: string, value: unknown): void;
|
|
9
|
+
export declare function setJsonPointerBytes(source: string, pointer: string, value: unknown): string;
|
|
10
|
+
export declare function deleteJsonPointerBytes(source: string, pointer: string): string;
|
|
11
|
+
export declare function blockMarker(kind: "markdown" | "yaml", version: string): string;
|
|
12
|
+
export declare function blockRange(source: string, kind: "markdown" | "yaml"): {
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
block: string;
|
|
16
|
+
} | null;
|
|
17
|
+
export declare function blockSeparator(source: string, boundary?: number): "" | "\n" | "\r\n";
|
|
18
|
+
export declare function replaceBlock(source: string, kind: "markdown" | "yaml", replacement: string): {
|
|
19
|
+
content: string;
|
|
20
|
+
previous: string | null;
|
|
21
|
+
prefixSep: "" | "\n" | "\r\n";
|
|
22
|
+
};
|
|
23
|
+
export declare function manifestJson(manifest: InstallManifest): string;
|
|
24
|
+
export declare function pendingJson(pending: PendingManifest): string;
|
|
25
|
+
export declare function localManifestJson(manifest: LocalManifest): string;
|
|
26
|
+
export declare function planFromManifest(manifest: InstallManifest, fallback: InitPlan): InitPlan;
|
|
27
|
+
export declare function pendingFromWriteSet(version: string, writes: PendingWrite[], manifest: InstallManifest): PendingManifest;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
export function sha256Bytes(value) {
|
|
3
|
+
return createHash("sha256")
|
|
4
|
+
.update(typeof value === "string" ? Buffer.from(value, "utf8") : value)
|
|
5
|
+
.digest("hex");
|
|
6
|
+
}
|
|
7
|
+
export function sortedText(left, right) {
|
|
8
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
9
|
+
}
|
|
10
|
+
export function jsonFile(value) {
|
|
11
|
+
return `${JSON.stringify(value, null, 2)}\n`;
|
|
12
|
+
}
|
|
13
|
+
export function decodeJson(value) {
|
|
14
|
+
const parsed = JSON.parse(value);
|
|
15
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
16
|
+
throw new SyntaxError("Expected a JSON object.");
|
|
17
|
+
}
|
|
18
|
+
return parsed;
|
|
19
|
+
}
|
|
20
|
+
export function pointerParts(pointer) {
|
|
21
|
+
if (!pointer.startsWith("/"))
|
|
22
|
+
throw new SyntaxError(`Invalid JSON pointer: ${pointer}`);
|
|
23
|
+
return pointer.slice(1).split("/").map((part) => part.replaceAll("~1", "/").replaceAll("~0", "~"));
|
|
24
|
+
}
|
|
25
|
+
export function pointerValue(root, pointer) {
|
|
26
|
+
let current = root;
|
|
27
|
+
for (const part of pointerParts(pointer)) {
|
|
28
|
+
if (!current || typeof current !== "object" || Array.isArray(current))
|
|
29
|
+
return undefined;
|
|
30
|
+
current = current[part];
|
|
31
|
+
}
|
|
32
|
+
return current;
|
|
33
|
+
}
|
|
34
|
+
export function setPointer(root, pointer, value) {
|
|
35
|
+
const parts = pointerParts(pointer);
|
|
36
|
+
if (parts.length === 0)
|
|
37
|
+
throw new SyntaxError(`Invalid JSON pointer: ${pointer}`);
|
|
38
|
+
let current = root;
|
|
39
|
+
for (const part of parts.slice(0, -1)) {
|
|
40
|
+
const next = current[part];
|
|
41
|
+
if (!next || typeof next !== "object" || Array.isArray(next)) {
|
|
42
|
+
current[part] = {};
|
|
43
|
+
}
|
|
44
|
+
current = current[part];
|
|
45
|
+
}
|
|
46
|
+
current[parts.at(-1) ?? ""] = value;
|
|
47
|
+
}
|
|
48
|
+
function jsonSpans(source) {
|
|
49
|
+
let offset = 0;
|
|
50
|
+
const skip = () => {
|
|
51
|
+
while (/\s/.test(source[offset] ?? ""))
|
|
52
|
+
offset += 1;
|
|
53
|
+
};
|
|
54
|
+
const string = () => {
|
|
55
|
+
const start = offset;
|
|
56
|
+
if (source[offset] !== "\"")
|
|
57
|
+
throw new SyntaxError("Expected a JSON string.");
|
|
58
|
+
offset += 1;
|
|
59
|
+
while (offset < source.length) {
|
|
60
|
+
const character = source[offset];
|
|
61
|
+
offset += 1;
|
|
62
|
+
if (character === "\\") {
|
|
63
|
+
offset += 1;
|
|
64
|
+
}
|
|
65
|
+
else if (character === "\"") {
|
|
66
|
+
return start;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
throw new SyntaxError("Unterminated JSON string.");
|
|
70
|
+
};
|
|
71
|
+
const value = () => {
|
|
72
|
+
skip();
|
|
73
|
+
const start = offset;
|
|
74
|
+
if (source[offset] === "{") {
|
|
75
|
+
const members = new Map();
|
|
76
|
+
offset += 1;
|
|
77
|
+
skip();
|
|
78
|
+
if (source[offset] !== "}") {
|
|
79
|
+
for (;;) {
|
|
80
|
+
skip();
|
|
81
|
+
const keyStart = string();
|
|
82
|
+
const key = JSON.parse(source.slice(keyStart, offset));
|
|
83
|
+
skip();
|
|
84
|
+
if (source[offset] !== ":")
|
|
85
|
+
throw new SyntaxError("Expected a JSON colon.");
|
|
86
|
+
offset += 1;
|
|
87
|
+
const member = value();
|
|
88
|
+
members.set(key, { start: keyStart, end: member.end, value: member });
|
|
89
|
+
skip();
|
|
90
|
+
if (source[offset] !== ",")
|
|
91
|
+
break;
|
|
92
|
+
offset += 1;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (source[offset] !== "}")
|
|
96
|
+
throw new SyntaxError("Expected a JSON object end.");
|
|
97
|
+
offset += 1;
|
|
98
|
+
return { start, end: offset, members };
|
|
99
|
+
}
|
|
100
|
+
if (source[offset] === "[") {
|
|
101
|
+
offset += 1;
|
|
102
|
+
skip();
|
|
103
|
+
if (source[offset] !== "]") {
|
|
104
|
+
for (;;) {
|
|
105
|
+
value();
|
|
106
|
+
skip();
|
|
107
|
+
if (source[offset] !== ",")
|
|
108
|
+
break;
|
|
109
|
+
offset += 1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (source[offset] !== "]")
|
|
113
|
+
throw new SyntaxError("Expected a JSON array end.");
|
|
114
|
+
offset += 1;
|
|
115
|
+
return { start, end: offset };
|
|
116
|
+
}
|
|
117
|
+
if (source[offset] === "\"") {
|
|
118
|
+
string();
|
|
119
|
+
return { start, end: offset };
|
|
120
|
+
}
|
|
121
|
+
while (offset < source.length && !/[\s,\]}]/.test(source[offset] ?? ""))
|
|
122
|
+
offset += 1;
|
|
123
|
+
if (offset === start)
|
|
124
|
+
throw new SyntaxError("Expected a JSON value.");
|
|
125
|
+
return { start, end: offset };
|
|
126
|
+
};
|
|
127
|
+
const root = value();
|
|
128
|
+
skip();
|
|
129
|
+
if (offset !== source.length)
|
|
130
|
+
throw new SyntaxError("Unexpected bytes after JSON value.");
|
|
131
|
+
return root;
|
|
132
|
+
}
|
|
133
|
+
function updateJsonSpan(source, span, parts, value) {
|
|
134
|
+
if (!span.members)
|
|
135
|
+
throw new SyntaxError("A JSON pointer parent is not an object.");
|
|
136
|
+
const key = parts[0] ?? "";
|
|
137
|
+
const member = span.members.get(key);
|
|
138
|
+
if (member) {
|
|
139
|
+
if (parts.length === 1) {
|
|
140
|
+
return `${source.slice(0, member.value.start)}${JSON.stringify(value)}${source.slice(member.value.end)}`;
|
|
141
|
+
}
|
|
142
|
+
const updated = updateJsonSpan(source, member.value, parts.slice(1), value);
|
|
143
|
+
return updated;
|
|
144
|
+
}
|
|
145
|
+
let nested = value;
|
|
146
|
+
for (const part of parts.slice(1).reverse())
|
|
147
|
+
nested = { [part]: nested };
|
|
148
|
+
const close = span.end - 1;
|
|
149
|
+
const interior = source.slice(span.start + 1, close);
|
|
150
|
+
const trailingLength = interior.match(/\s*$/)?.[0].length ?? 0;
|
|
151
|
+
const insertion = close - trailingLength;
|
|
152
|
+
const newline = source.includes("\r\n") ? "\r\n" : "\n";
|
|
153
|
+
const closeLine = source.lastIndexOf("\n", close) + 1;
|
|
154
|
+
const closeIndent = source.slice(closeLine, close).match(/^\s*/)?.[0] ?? "";
|
|
155
|
+
const indent = `${closeIndent} `;
|
|
156
|
+
const separator = span.members.size > 0 ? "," : "";
|
|
157
|
+
const addition = `${separator}${newline}${indent}${JSON.stringify(key)}: ${JSON.stringify(nested)}`;
|
|
158
|
+
return `${source.slice(0, insertion)}${addition}${source.slice(insertion)}`;
|
|
159
|
+
}
|
|
160
|
+
export function setJsonPointerBytes(source, pointer, value) {
|
|
161
|
+
const parts = pointerParts(pointer);
|
|
162
|
+
return updateJsonSpan(source, jsonSpans(source), parts, value);
|
|
163
|
+
}
|
|
164
|
+
function removeJsonSpan(source, span, parts) {
|
|
165
|
+
if (!span.members)
|
|
166
|
+
throw new SyntaxError("A JSON pointer parent is not an object.");
|
|
167
|
+
const key = parts[0] ?? "";
|
|
168
|
+
const member = span.members.get(key);
|
|
169
|
+
if (!member)
|
|
170
|
+
return source;
|
|
171
|
+
if (parts.length > 1)
|
|
172
|
+
return removeJsonSpan(source, member.value, parts.slice(1));
|
|
173
|
+
const entries = [...span.members.entries()];
|
|
174
|
+
const index = entries.findIndex(([name]) => name === key);
|
|
175
|
+
const previous = entries[index - 1]?.[1];
|
|
176
|
+
const next = entries[index + 1]?.[1];
|
|
177
|
+
let from = member.start;
|
|
178
|
+
let through = member.end;
|
|
179
|
+
if (previous) {
|
|
180
|
+
const comma = source.lastIndexOf(",", member.start);
|
|
181
|
+
if (comma >= previous.end)
|
|
182
|
+
from = comma;
|
|
183
|
+
}
|
|
184
|
+
else if (next) {
|
|
185
|
+
const comma = source.indexOf(",", member.end);
|
|
186
|
+
if (comma >= 0 && comma < next.start)
|
|
187
|
+
through = comma + 1;
|
|
188
|
+
}
|
|
189
|
+
return `${source.slice(0, from)}${source.slice(through)}`;
|
|
190
|
+
}
|
|
191
|
+
export function deleteJsonPointerBytes(source, pointer) {
|
|
192
|
+
return removeJsonSpan(source, jsonSpans(source), pointerParts(pointer));
|
|
193
|
+
}
|
|
194
|
+
export function blockMarker(kind, version) {
|
|
195
|
+
return kind === "markdown"
|
|
196
|
+
? `<!-- tenet:begin v${version} -->`
|
|
197
|
+
: `# tenet:begin v${version}`;
|
|
198
|
+
}
|
|
199
|
+
export function blockRange(source, kind) {
|
|
200
|
+
const expression = kind === "markdown"
|
|
201
|
+
? /<!-- tenet:begin v[^\r\n]* -->[\s\S]*?<!-- tenet:end -->/g
|
|
202
|
+
: /# tenet:begin v[^\r\n]*[\s\S]*?# tenet:end/g;
|
|
203
|
+
const match = expression.exec(source);
|
|
204
|
+
if (!match || match.index < 0)
|
|
205
|
+
return null;
|
|
206
|
+
return { start: match.index, end: match.index + match[0].length, block: match[0] };
|
|
207
|
+
}
|
|
208
|
+
export function blockSeparator(source, boundary = source.length) {
|
|
209
|
+
if (boundary === 0 || source.slice(0, boundary).endsWith("\n"))
|
|
210
|
+
return "";
|
|
211
|
+
return /(?:\r\n)/.test(source.slice(0, boundary)) ? "\r\n" : "\n";
|
|
212
|
+
}
|
|
213
|
+
export function replaceBlock(source, kind, replacement) {
|
|
214
|
+
const managed = replacement.replace(/\n+$/, "");
|
|
215
|
+
const range = blockRange(source, kind);
|
|
216
|
+
if (range) {
|
|
217
|
+
const suffix = source.slice(range.end);
|
|
218
|
+
return {
|
|
219
|
+
content: `${source.slice(0, range.start)}${managed}${suffix || "\n"}`,
|
|
220
|
+
previous: range.block,
|
|
221
|
+
prefixSep: "",
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
const separator = blockSeparator(source);
|
|
225
|
+
return {
|
|
226
|
+
content: `${source}${separator}${managed}\n`,
|
|
227
|
+
previous: null,
|
|
228
|
+
prefixSep: separator,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
export function manifestJson(manifest) {
|
|
232
|
+
return jsonFile({
|
|
233
|
+
schema_version: manifest.schema_version,
|
|
234
|
+
version: manifest.version,
|
|
235
|
+
...(manifest["x-created-directories"]
|
|
236
|
+
? { "x-created-directories": [...manifest["x-created-directories"]].sort(sortedText) }
|
|
237
|
+
: {}),
|
|
238
|
+
created: manifest.created
|
|
239
|
+
.map(({ path: itemPath, sha256 }) => ({ path: itemPath, sha256 }))
|
|
240
|
+
.sort((left, right) => sortedText(left.path, right.path)),
|
|
241
|
+
blocks: manifest.blocks
|
|
242
|
+
.map((block) => ({ ...block }))
|
|
243
|
+
.sort((left, right) => sortedText(left.path, right.path)),
|
|
244
|
+
keys: manifest.keys.map((key) => ({ ...key }))
|
|
245
|
+
.sort((left, right) => sortedText(left.path, right.path) || sortedText(left.pointer, right.pointer)),
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
export function pendingJson(pending) {
|
|
249
|
+
return `${JSON.stringify(pending, null, 2)}\n`;
|
|
250
|
+
}
|
|
251
|
+
export function localManifestJson(manifest) {
|
|
252
|
+
return jsonFile({
|
|
253
|
+
schema_version: manifest.schema_version,
|
|
254
|
+
profile_roots: Object.fromEntries(Object.entries(manifest.profile_roots).sort(([left], [right]) => sortedText(left, right))),
|
|
255
|
+
keys: manifest.keys
|
|
256
|
+
.map((key) => ({ ...key }))
|
|
257
|
+
.sort((left, right) => sortedText(left.host, right.host) ||
|
|
258
|
+
sortedText(left.path, right.path) ||
|
|
259
|
+
sortedText(left.pointer, right.pointer)),
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
export function planFromManifest(manifest, fallback) {
|
|
263
|
+
return {
|
|
264
|
+
created: manifest.created.map((item) => item.path).concat(".tenet/manifest.json").sort(sortedText),
|
|
265
|
+
blocks: manifest.blocks.map(({ path: itemPath, kind }) => ({ path: itemPath, kind })),
|
|
266
|
+
keys: manifest.keys.map(({ path: itemPath, pointer }) => ({ path: itemPath, pointer })),
|
|
267
|
+
local_keys: fallback.local_keys,
|
|
268
|
+
hosts: fallback.hosts,
|
|
269
|
+
ci_mode: fallback.ci_mode,
|
|
270
|
+
ci_reason: fallback.ci_reason,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
export function pendingFromWriteSet(version, writes, manifest) {
|
|
274
|
+
return { schema_version: 1, version, writes, manifest };
|
|
275
|
+
}
|
|
276
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/install/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAUzC,MAAM,UAAU,WAAW,CAAC,KAAsC;IAChE,OAAO,UAAU,CAAC,QAAQ,CAAC;SACxB,MAAM,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;SACtE,MAAM,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,KAAa;IACpD,OAAO,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAA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