@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
package/dist/core/git.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
function runGit(args, options = {}, binary = false) {
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
const child = spawn("git", ["-c", "core.quotepath=false", ...args], {
|
|
5
|
+
cwd: options.cwd ?? process.cwd(),
|
|
6
|
+
env: { ...process.env, ...options.env },
|
|
7
|
+
shell: false,
|
|
8
|
+
windowsHide: true,
|
|
9
|
+
});
|
|
10
|
+
const stdout = [];
|
|
11
|
+
const stderr = [];
|
|
12
|
+
child.stdout.on("data", (chunk) => stdout.push(chunk));
|
|
13
|
+
child.stderr.on("data", (chunk) => stderr.push(chunk));
|
|
14
|
+
child.on("error", reject);
|
|
15
|
+
child.on("close", (code) => {
|
|
16
|
+
const output = Buffer.concat(stdout);
|
|
17
|
+
if (code === 0) {
|
|
18
|
+
resolve(output);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const message = Buffer.concat(stderr).toString("utf8").trim();
|
|
22
|
+
const error = new Error(message || `git exited with code ${String(code)}`);
|
|
23
|
+
error.code = code;
|
|
24
|
+
error.stdout = binary ? output : output.toString("utf8");
|
|
25
|
+
reject(error);
|
|
26
|
+
});
|
|
27
|
+
if (options.input !== undefined)
|
|
28
|
+
child.stdin.end(options.input);
|
|
29
|
+
else
|
|
30
|
+
child.stdin.end();
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export async function git(args, options = {}) {
|
|
34
|
+
if (!Array.isArray(args))
|
|
35
|
+
throw new TypeError("git arguments must be an array");
|
|
36
|
+
return (await runGit(args, options, false)).toString("utf8");
|
|
37
|
+
}
|
|
38
|
+
function portablePath(value) {
|
|
39
|
+
return value.replaceAll("\\", "/").replace(/^\.\/+/, "");
|
|
40
|
+
}
|
|
41
|
+
function batchName(ref, filename) {
|
|
42
|
+
if (!ref || filename.startsWith("/") || filename.split("/").includes("..")) {
|
|
43
|
+
throw new Error(`invalid git batch path: ${filename}`);
|
|
44
|
+
}
|
|
45
|
+
return `${ref}:${portablePath(filename)}`;
|
|
46
|
+
}
|
|
47
|
+
export async function catFileBatch(ref, paths, options = {}) {
|
|
48
|
+
if (paths.length === 0)
|
|
49
|
+
return new Map();
|
|
50
|
+
const requests = paths.map((filename) => batchName(ref, filename));
|
|
51
|
+
const data = await runGit(["cat-file", "--batch"], { ...options, input: `${requests.join("\n")}\n` }, true);
|
|
52
|
+
const result = new Map();
|
|
53
|
+
let offset = 0;
|
|
54
|
+
for (let index = 0; index < paths.length; index += 1) {
|
|
55
|
+
const newline = data.indexOf(10, offset);
|
|
56
|
+
if (newline < 0)
|
|
57
|
+
throw new Error("incomplete git cat-file response");
|
|
58
|
+
const header = data.subarray(offset, newline).toString("utf8");
|
|
59
|
+
offset = newline + 1;
|
|
60
|
+
if (header.endsWith(" missing")) {
|
|
61
|
+
throw new Error(`git object is missing: ${requests[index]}`);
|
|
62
|
+
}
|
|
63
|
+
const match = /^(?:[0-9a-f]+) ([^ ]+) (\d+)$/.exec(header);
|
|
64
|
+
if (!match)
|
|
65
|
+
throw new Error(`invalid git cat-file header: ${header}`);
|
|
66
|
+
const sizeText = match[2];
|
|
67
|
+
if (sizeText === undefined)
|
|
68
|
+
throw new Error(`invalid git cat-file size: ${header}`);
|
|
69
|
+
const size = Number.parseInt(sizeText, 10);
|
|
70
|
+
const end = offset + size;
|
|
71
|
+
if (end > data.length || data[end] !== 10)
|
|
72
|
+
throw new Error(`incomplete git blob: ${requests[index]}`);
|
|
73
|
+
const filename = paths[index];
|
|
74
|
+
if (filename === undefined)
|
|
75
|
+
throw new Error("git batch path list changed");
|
|
76
|
+
result.set(filename, Buffer.from(data.subarray(offset, end)));
|
|
77
|
+
offset = end + 1;
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
export async function lastChangedMap(paths, options = {}) {
|
|
82
|
+
if (paths.length === 0)
|
|
83
|
+
return new Map();
|
|
84
|
+
const portable = paths.map(portablePath);
|
|
85
|
+
const data = await runGit(["log", "--format=%x1e%H", "--name-only", "--no-renames", "-z", "--", ...portable], options, true);
|
|
86
|
+
const wanted = new Set(portable);
|
|
87
|
+
const result = new Map();
|
|
88
|
+
let commit;
|
|
89
|
+
for (const token of data.toString("utf8").split("\0")) {
|
|
90
|
+
const clean = token.replace(/^[\r\n]+/, "");
|
|
91
|
+
if (clean.startsWith("\u001e")) {
|
|
92
|
+
const candidate = clean.slice(1);
|
|
93
|
+
if (/^[0-9a-f]{40,64}$/.test(candidate))
|
|
94
|
+
commit = candidate;
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (commit && wanted.has(clean) && !result.has(clean))
|
|
98
|
+
result.set(clean, commit);
|
|
99
|
+
}
|
|
100
|
+
return new Map(paths.flatMap((original) => {
|
|
101
|
+
const changed = result.get(portablePath(original));
|
|
102
|
+
return changed === undefined ? [] : [[original, changed]];
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
function refIsValid(ref) {
|
|
106
|
+
return ref.startsWith("refs/") && !ref.endsWith("/") && !ref.includes("..") && !ref.includes(" ");
|
|
107
|
+
}
|
|
108
|
+
function parentDirectory(filename) {
|
|
109
|
+
const slash = filename.lastIndexOf("/");
|
|
110
|
+
return slash < 0 ? "" : filename.slice(0, slash);
|
|
111
|
+
}
|
|
112
|
+
function baseName(filename) {
|
|
113
|
+
const slash = filename.lastIndexOf("/");
|
|
114
|
+
return slash < 0 ? filename : filename.slice(slash + 1);
|
|
115
|
+
}
|
|
116
|
+
async function makeTree(directory, entries, options) {
|
|
117
|
+
const children = new Map();
|
|
118
|
+
const prefix = directory === "" ? "" : `${directory}/`;
|
|
119
|
+
for (const [filename, entry] of entries) {
|
|
120
|
+
if (!filename.startsWith(prefix))
|
|
121
|
+
continue;
|
|
122
|
+
const remainder = filename.slice(prefix.length);
|
|
123
|
+
if (!remainder)
|
|
124
|
+
continue;
|
|
125
|
+
const slash = remainder.indexOf("/");
|
|
126
|
+
const name = slash < 0 ? remainder : remainder.slice(0, slash);
|
|
127
|
+
if (slash < 0)
|
|
128
|
+
children.set(name, { entry, directory: false });
|
|
129
|
+
else if (!children.has(name))
|
|
130
|
+
children.set(name, { directory: true });
|
|
131
|
+
}
|
|
132
|
+
const lines = [];
|
|
133
|
+
for (const [name, child] of [...children].sort(([left], [right]) => Buffer.compare(Buffer.from(left), Buffer.from(right)))) {
|
|
134
|
+
let mode;
|
|
135
|
+
let type;
|
|
136
|
+
let oid;
|
|
137
|
+
if (child.directory) {
|
|
138
|
+
mode = "040000";
|
|
139
|
+
type = "tree";
|
|
140
|
+
oid = await makeTree(directory === "" ? name : `${directory}/${name}`, entries, options);
|
|
141
|
+
}
|
|
142
|
+
else if (child.entry) {
|
|
143
|
+
({ mode, type, oid } = child.entry);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
throw new Error(`missing tree entry: ${name}`);
|
|
147
|
+
}
|
|
148
|
+
lines.push(Buffer.from(`${mode} ${type} ${oid}\t${name}\0`, "utf8"));
|
|
149
|
+
}
|
|
150
|
+
const output = await runGit(["mktree", "-z"], { ...options, input: Buffer.concat(lines) });
|
|
151
|
+
return output.toString("utf8").trim();
|
|
152
|
+
}
|
|
153
|
+
function commitEnvironment(now) {
|
|
154
|
+
const env = {
|
|
155
|
+
GIT_AUTHOR_NAME: "Tenet",
|
|
156
|
+
GIT_AUTHOR_EMAIL: "tenet@localhost",
|
|
157
|
+
GIT_COMMITTER_NAME: "Tenet",
|
|
158
|
+
GIT_COMMITTER_EMAIL: "tenet@localhost",
|
|
159
|
+
};
|
|
160
|
+
if (now) {
|
|
161
|
+
const date = now.toISOString();
|
|
162
|
+
env.GIT_AUTHOR_DATE = date;
|
|
163
|
+
env.GIT_COMMITTER_DATE = date;
|
|
164
|
+
}
|
|
165
|
+
return env;
|
|
166
|
+
}
|
|
167
|
+
export async function writeRefFiles(ref, files, message, options = {}) {
|
|
168
|
+
if (!refIsValid(ref))
|
|
169
|
+
throw new Error(`invalid git ref: ${ref}`);
|
|
170
|
+
const { now, ...gitOptions } = options;
|
|
171
|
+
let parent;
|
|
172
|
+
let oldRef;
|
|
173
|
+
const entries = new Map();
|
|
174
|
+
try {
|
|
175
|
+
parent = (await git(["rev-parse", "--verify", ref], gitOptions)).trim();
|
|
176
|
+
oldRef = parent;
|
|
177
|
+
}
|
|
178
|
+
catch {
|
|
179
|
+
try {
|
|
180
|
+
parent = (await git(["rev-parse", "--verify", "HEAD"], gitOptions)).trim();
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
parent = undefined;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (parent) {
|
|
187
|
+
const treeList = await runGit(["ls-tree", "-r", "-z", parent], gitOptions, true);
|
|
188
|
+
for (const item of treeList.toString("utf8").split("\0")) {
|
|
189
|
+
if (!item)
|
|
190
|
+
continue;
|
|
191
|
+
const match = /^(\d+) (blob|commit) ([0-9a-f]+)\t(.+)$/.exec(item);
|
|
192
|
+
if (!match)
|
|
193
|
+
throw new Error(`invalid git tree entry: ${item}`);
|
|
194
|
+
const [, mode, type, oid, filename] = match;
|
|
195
|
+
if (mode && (type === "blob" || type === "commit") && oid && filename) {
|
|
196
|
+
entries.set(portablePath(filename), { mode, type, oid });
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
for (const [rawPath, contents] of Object.entries(files)) {
|
|
201
|
+
const filename = portablePath(rawPath);
|
|
202
|
+
if (!filename || filename.startsWith("/") || filename.split("/").includes("..")) {
|
|
203
|
+
throw new Error(`invalid ref path: ${rawPath}`);
|
|
204
|
+
}
|
|
205
|
+
if (parentDirectory(filename).split("/").includes("..") || !baseName(filename)) {
|
|
206
|
+
throw new Error(`invalid ref path: ${rawPath}`);
|
|
207
|
+
}
|
|
208
|
+
const oid = (await runGit(["hash-object", "-w", "--stdin"], { ...gitOptions, input: contents }, true))
|
|
209
|
+
.toString("utf8")
|
|
210
|
+
.trim();
|
|
211
|
+
entries.set(filename, { mode: "100644", type: "blob", oid });
|
|
212
|
+
}
|
|
213
|
+
const rootTree = await makeTree("", entries, gitOptions);
|
|
214
|
+
const commitArgs = ["commit-tree", rootTree, "-F", "-"];
|
|
215
|
+
if (parent)
|
|
216
|
+
commitArgs.push("-p", parent);
|
|
217
|
+
const commit = (await runGit(commitArgs, { ...gitOptions, env: commitEnvironment(now), input: message }, true))
|
|
218
|
+
.toString("utf8")
|
|
219
|
+
.trim();
|
|
220
|
+
await git(["update-ref", ref, commit, ...(oldRef ? [oldRef] : [])], gitOptions);
|
|
221
|
+
return commit;
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=git.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/core/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAQ3C,SAAS,MAAM,CAAC,IAAc,EAAE,UAAsB,EAAE,EAAE,MAAM,GAAG,KAAK;IACtE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,GAAG,IAAI,CAAC,EAAE;YAClE,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;YACjC,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE;YACvC,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;QACH,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE,CA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C,EAAE,EAAE,GAAG,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,CACzF;aACE,QAAQ,CAAC,MAAM,CAAC;aAChB,IAAI,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IACxD,IAAI,MAAM;QAAE,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,CACb,MAAM,MAAM,CACV,UAAU,EACV,EAAE,GAAG,UAAU,EAAE,GAAG,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAC9D,IAAI,CACL,CACF;SACE,QAAQ,CAAC,MAAM,CAAC;SAChB,IAAI,EAAE,CAAC;IACV,MAAM,GAAG,CAAC,CAAC,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IAChF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Clock } from "./clock.js";
|
|
2
|
+
export declare function sha256(value: string | NodeJS.ArrayBufferView): string;
|
|
3
|
+
export declare function sha256Text(value: NodeJS.ArrayBufferView): string;
|
|
4
|
+
export declare function jcs(value: unknown): string;
|
|
5
|
+
export declare function ulid(now: Clock | Date | number | string): string;
|
|
6
|
+
export declare function alias(value: string, occupied?: Iterable<string> | ((candidate: string) => boolean)): string;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
2
|
+
import { clockNow } from "./clock.js";
|
|
3
|
+
const crockford = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
4
|
+
const encoder = new TextEncoder();
|
|
5
|
+
let previousTimestamp = -1;
|
|
6
|
+
let previousRandomness = 0n;
|
|
7
|
+
export function sha256(value) {
|
|
8
|
+
return createHash("sha256")
|
|
9
|
+
.update(typeof value === "string" ? encoder.encode(value.replaceAll("\r\n", "\n")) : value)
|
|
10
|
+
.digest("hex");
|
|
11
|
+
}
|
|
12
|
+
export function sha256Text(value) {
|
|
13
|
+
return sha256(Buffer.from(value.buffer, value.byteOffset, value.byteLength).toString("utf8")
|
|
14
|
+
.replaceAll("\r\n", "\n")
|
|
15
|
+
.replaceAll("\r", "\n"));
|
|
16
|
+
}
|
|
17
|
+
function encodeBase32(value, length) {
|
|
18
|
+
let output = "";
|
|
19
|
+
let remaining = value;
|
|
20
|
+
for (let index = 0; index < length; index += 1) {
|
|
21
|
+
output = crockford[Number(remaining & 31n)] + output;
|
|
22
|
+
remaining >>= 5n;
|
|
23
|
+
}
|
|
24
|
+
return output;
|
|
25
|
+
}
|
|
26
|
+
function encodeBytesBase32(bytes) {
|
|
27
|
+
let bits = 0;
|
|
28
|
+
let buffer = 0;
|
|
29
|
+
let output = "";
|
|
30
|
+
for (const byte of bytes) {
|
|
31
|
+
buffer = (buffer << 8) | byte;
|
|
32
|
+
bits += 8;
|
|
33
|
+
while (bits >= 5) {
|
|
34
|
+
bits -= 5;
|
|
35
|
+
output += crockford[(buffer >>> bits) & 31] ?? "";
|
|
36
|
+
buffer &= 2 ** bits - 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (bits > 0)
|
|
40
|
+
output += crockford[(buffer << (5 - bits)) & 31] ?? "";
|
|
41
|
+
return output;
|
|
42
|
+
}
|
|
43
|
+
function canonicalString(value) {
|
|
44
|
+
for (const character of value) {
|
|
45
|
+
// The string iterator keeps each valid surrogate pair together.
|
|
46
|
+
const code = character.charCodeAt(0);
|
|
47
|
+
if (character.length === 1 && code >= 0xd800 && code <= 0xdfff) {
|
|
48
|
+
throw Object.assign(new TypeError("RFC 8785 does not allow unpaired surrogates"), {
|
|
49
|
+
code: "TN-SCHEMA",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return JSON.stringify(value);
|
|
54
|
+
}
|
|
55
|
+
function canonicalize(value, active) {
|
|
56
|
+
if (value === null || typeof value === "boolean")
|
|
57
|
+
return JSON.stringify(value);
|
|
58
|
+
if (typeof value === "number") {
|
|
59
|
+
if (!Number.isFinite(value))
|
|
60
|
+
throw new TypeError("RFC 8785 does not allow non-finite numbers");
|
|
61
|
+
return JSON.stringify(value);
|
|
62
|
+
}
|
|
63
|
+
if (typeof value === "string")
|
|
64
|
+
return canonicalString(value);
|
|
65
|
+
if (typeof value !== "object")
|
|
66
|
+
throw new TypeError(`RFC 8785 does not allow ${String(value)}`);
|
|
67
|
+
if (active.has(value))
|
|
68
|
+
throw new TypeError("RFC 8785 does not allow cycles");
|
|
69
|
+
active.add(value);
|
|
70
|
+
try {
|
|
71
|
+
if (Array.isArray(value)) {
|
|
72
|
+
const items = [];
|
|
73
|
+
for (let index = 0; index < value.length; index += 1)
|
|
74
|
+
items.push(canonicalize(value[index], active));
|
|
75
|
+
return `[${items.join(",")}]`;
|
|
76
|
+
}
|
|
77
|
+
if (value instanceof Date || ArrayBuffer.isView(value) || value instanceof ArrayBuffer) {
|
|
78
|
+
throw new TypeError("RFC 8785 only allows JSON values");
|
|
79
|
+
}
|
|
80
|
+
const record = value;
|
|
81
|
+
const keys = Object.keys(record).sort();
|
|
82
|
+
return `{${keys.map((key) => `${canonicalString(key)}:${canonicalize(record[key], active)}`).join(",")}}`;
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
active.delete(value);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export function jcs(value) {
|
|
89
|
+
return canonicalize(value, new WeakSet());
|
|
90
|
+
}
|
|
91
|
+
export function ulid(now) {
|
|
92
|
+
const time = clockNow(now).getTime();
|
|
93
|
+
if (!Number.isSafeInteger(time) || time < 0 || time >= 2 ** 48) {
|
|
94
|
+
throw new RangeError("ULID time must be an unsigned 48-bit millisecond value");
|
|
95
|
+
}
|
|
96
|
+
if (time === previousTimestamp) {
|
|
97
|
+
previousRandomness += 1n;
|
|
98
|
+
if (previousRandomness >= 1n << 80n)
|
|
99
|
+
throw new RangeError("ULID randomness overflow within one millisecond");
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
const random = randomBytes(10);
|
|
103
|
+
previousTimestamp = time;
|
|
104
|
+
previousRandomness = BigInt(`0x${random.toString("hex")}`);
|
|
105
|
+
}
|
|
106
|
+
return encodeBase32(BigInt(time), 10) + encodeBase32(previousRandomness, 16);
|
|
107
|
+
}
|
|
108
|
+
export function alias(value, occupied) {
|
|
109
|
+
const digest = createHash("sha256").update(value, "utf8").digest();
|
|
110
|
+
const encoded = encodeBytesBase32(digest);
|
|
111
|
+
let length = 6;
|
|
112
|
+
let candidate = encoded.slice(0, length);
|
|
113
|
+
const used = typeof occupied === "function" ? undefined : new Set(occupied);
|
|
114
|
+
const exists = typeof occupied === "function" ? occupied : (item) => used?.has(item) ?? false;
|
|
115
|
+
while (exists(candidate)) {
|
|
116
|
+
length += 1;
|
|
117
|
+
if (length > encoded.length)
|
|
118
|
+
throw new RangeError("no unique alias is available");
|
|
119
|
+
candidate = encoded.slice(0, length);
|
|
120
|
+
}
|
|
121
|
+
return candidate;
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.js","sourceRoot":"","sources":["../../src/core/hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAA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,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,KAAK,CACnB,KAAa,EACb,QAA8D;IAE9D,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;IACnE,MAAM,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC;IACtG,OAAO,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,CAAC,CAAC;QACZ,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM;YAAE,MAAM,IAAI,UAAU,CAAC,8BAA8B,CAAC,CAAC;QAClF,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
export type DiagnosticText = {
|
|
2
|
+
message: string;
|
|
3
|
+
fix: string;
|
|
4
|
+
};
|
|
5
|
+
export type MessageVars = Readonly<Record<string, string | number>>;
|
|
6
|
+
export declare const messageTemplates: {
|
|
7
|
+
readonly "TN-ACC-DUP-ID": {
|
|
8
|
+
readonly message: "Duplicate acceptance item ID {id}.";
|
|
9
|
+
readonly fix: "Renumber or remove the repeated {id} item.";
|
|
10
|
+
};
|
|
11
|
+
readonly "TN-ACC-MISSING-ID": {
|
|
12
|
+
readonly message: "Acceptance item needs an ID.";
|
|
13
|
+
readonly fix: "Prefix the item with [AB-<n>].";
|
|
14
|
+
};
|
|
15
|
+
readonly "TN-ACC-UNPASSED": {
|
|
16
|
+
readonly message: "Acceptance items not passing: {ids}.";
|
|
17
|
+
readonly fix: "Add passing tests tagged with [AB-n] or fix failing tests for {ids}.";
|
|
18
|
+
};
|
|
19
|
+
readonly "TN-BLESS-INFERRED": {
|
|
20
|
+
readonly message: "Section {slug} still contains inferred statements ({ids}).";
|
|
21
|
+
readonly fix: "Edit or adopt {ids}, then run `tenet bless`.";
|
|
22
|
+
};
|
|
23
|
+
readonly "TN-BLESS-NO-TTY": {
|
|
24
|
+
readonly message: "Interactive terminal required to bless specifications.";
|
|
25
|
+
readonly fix: "Run `tenet bless` in an interactive terminal session.";
|
|
26
|
+
};
|
|
27
|
+
readonly "TN-BLESS-OPEN-CONFLICT": {
|
|
28
|
+
readonly message: "Section {slug} has unresolved conflicts or open questions ({ids}).";
|
|
29
|
+
readonly fix: "Resolve {ids} in Conflicts or Open questions, then run `tenet bless`.";
|
|
30
|
+
};
|
|
31
|
+
readonly "TN-BUDGET": {
|
|
32
|
+
readonly message: "File {path} is over its token budget ({tokens} > {limit} tokens).";
|
|
33
|
+
readonly fix: "Trim {path} or run `tenet split` to extract a section into a part.";
|
|
34
|
+
};
|
|
35
|
+
readonly "TN-BUDGET-WARN": {
|
|
36
|
+
readonly message: "File {path} is at or over 90% of its token budget ({tokens} / {limit} tokens).";
|
|
37
|
+
readonly fix: "Trim {path} or run `tenet split` to extract a section into a part.";
|
|
38
|
+
};
|
|
39
|
+
readonly "TN-CITE-FILE": {
|
|
40
|
+
readonly message: "Cited file {path} was not found.";
|
|
41
|
+
readonly fix: "Update the citation path or restore {path}.";
|
|
42
|
+
};
|
|
43
|
+
readonly "TN-CITE-HEADING": {
|
|
44
|
+
readonly message: "Cited heading #{slug} was not found in {path}.";
|
|
45
|
+
readonly fix: "Update the doc: citation to an existing heading slug in {path}.";
|
|
46
|
+
};
|
|
47
|
+
readonly "TN-CITE-RANGE": {
|
|
48
|
+
readonly message: "Citation {cite} has an invalid line range or format.";
|
|
49
|
+
readonly fix: "Fix {cite} to use a valid path:line or path:start-end within file length.";
|
|
50
|
+
};
|
|
51
|
+
readonly "TN-CITE-TEST": {
|
|
52
|
+
readonly message: "Cited test {name} was not found in {file}.";
|
|
53
|
+
readonly fix: "Update the test: citation to match a declared test in {file}.";
|
|
54
|
+
};
|
|
55
|
+
readonly "TN-ENV-GIT": {
|
|
56
|
+
readonly message: "Git {found} is below required version 2.40.";
|
|
57
|
+
readonly fix: "Install Git 2.40 or newer and retry.";
|
|
58
|
+
};
|
|
59
|
+
readonly "TN-ENV-NO-COMMIT": {
|
|
60
|
+
readonly message: "Repository has no commits yet.";
|
|
61
|
+
readonly fix: "Make a first commit, then run `tenet onboard`.";
|
|
62
|
+
};
|
|
63
|
+
readonly "TN-ENV-NODE": {
|
|
64
|
+
readonly message: "Node.js {found} is below required version 22.";
|
|
65
|
+
readonly fix: "Install Node.js 22 LTS or newer and retry.";
|
|
66
|
+
};
|
|
67
|
+
readonly "TN-ENV-NOT-GIT": {
|
|
68
|
+
readonly message: "Directory {path} is not a Git repository.";
|
|
69
|
+
readonly fix: "Run `git init` or run from inside a Git repository.";
|
|
70
|
+
};
|
|
71
|
+
readonly "TN-ENV-REGISTRY": {
|
|
72
|
+
readonly message: "Could not reach the npm registry to verify {package}@{version} ({detail}).";
|
|
73
|
+
readonly fix: "Check your network or proxy, or run `tenet {command} --offline` to record local package integrity.";
|
|
74
|
+
};
|
|
75
|
+
readonly "TN-ENV-OFFLINE": {
|
|
76
|
+
readonly message: "Command `tenet {command}` requires network access, which is disabled by `--offline`.";
|
|
77
|
+
readonly fix: "Re-run `tenet {command}` without `--offline`.";
|
|
78
|
+
};
|
|
79
|
+
readonly "TN-EV-DUP": {
|
|
80
|
+
readonly message: "Duplicate event ID {id} has conflicting content.";
|
|
81
|
+
readonly fix: "Keep one canonical event for {id} and remove the conflicting entry.";
|
|
82
|
+
};
|
|
83
|
+
readonly "TN-EV-ORPHAN": {
|
|
84
|
+
readonly message: "Event {id} references unknown predecessor {prev}.";
|
|
85
|
+
readonly fix: "Include or fetch event {prev} before reducing work item events.";
|
|
86
|
+
};
|
|
87
|
+
readonly "TN-GATE-*": {
|
|
88
|
+
readonly message: "Gate blocked or held by rule {rule}: {reason}.";
|
|
89
|
+
readonly fix: "Resolve {reason} and re-run the gate check.";
|
|
90
|
+
};
|
|
91
|
+
readonly "TN-GATE-APPROVE-NOT-EVIDENCE": {
|
|
92
|
+
readonly message: "Approval cannot satisfy evidence claim {claim}.";
|
|
93
|
+
readonly fix: "Supply required verification evidence for {claim} or request a time-boxed waiver via `tenet decide`.";
|
|
94
|
+
};
|
|
95
|
+
readonly "TN-GATE-CLAIM": {
|
|
96
|
+
readonly message: "Claim {claim} is {state}.";
|
|
97
|
+
readonly fix: "Satisfy {claim}, wait for CI verification, or request a waiver via `tenet decide`.";
|
|
98
|
+
};
|
|
99
|
+
readonly "TN-GATE-CONFLICT": {
|
|
100
|
+
readonly message: "Work item has unresolved event conflicts ({ids}).";
|
|
101
|
+
readonly fix: "Run `tenet resolve` on {ids} before advancing.";
|
|
102
|
+
};
|
|
103
|
+
readonly "TN-GATE-FROZEN": {
|
|
104
|
+
readonly message: "Work item is frozen.";
|
|
105
|
+
readonly fix: "Wait for the Owner to unfreeze the work item before advancing.";
|
|
106
|
+
};
|
|
107
|
+
readonly "TN-GATE-REVIEW": {
|
|
108
|
+
readonly message: "Review is incomplete or requires adjudication ({reason}).";
|
|
109
|
+
readonly fix: "Resolve review findings or record a decision via `tenet decide`.";
|
|
110
|
+
};
|
|
111
|
+
readonly "TN-GATE-STOP": {
|
|
112
|
+
readonly message: "Stop threshold reached: {reason}.";
|
|
113
|
+
readonly fix: "Write an escalation report and run `tenet escalate`.";
|
|
114
|
+
};
|
|
115
|
+
readonly "TN-GATE-TRUST": {
|
|
116
|
+
readonly message: "Protected trust-surface claim {claim} is not satisfied.";
|
|
117
|
+
readonly fix: "Open a change-policy decision request via `tenet decide`.";
|
|
118
|
+
};
|
|
119
|
+
readonly "TN-GATE-UNKNOWN": {
|
|
120
|
+
readonly message: "Policy applicability is unknown because {missing} is missing.";
|
|
121
|
+
readonly fix: "Define {missing} in tenet.yaml or CODEOWNERS and re-run.";
|
|
122
|
+
};
|
|
123
|
+
readonly "TN-INIT-EXISTS": {
|
|
124
|
+
readonly message: "File {path} already exists with different content.";
|
|
125
|
+
readonly fix: "Review {path} or rerun `tenet init --force` to overwrite managed blocks.";
|
|
126
|
+
};
|
|
127
|
+
readonly "TN-INTERNAL": {
|
|
128
|
+
readonly message: "Internal failure: {detail}.";
|
|
129
|
+
readonly fix: "Report this defect with the command and error details.";
|
|
130
|
+
};
|
|
131
|
+
readonly "TN-KIT-EDITED": {
|
|
132
|
+
readonly message: "Vendored kit digest differs from tenet.lock ({actual} != {expected}).";
|
|
133
|
+
readonly fix: "Restore .tenet/kit or run `tenet upgrade` to update tenet.lock.";
|
|
134
|
+
};
|
|
135
|
+
readonly "TN-KIT-INVALID": {
|
|
136
|
+
readonly message: "Kit at {path} is invalid: {detail}.";
|
|
137
|
+
readonly fix: "Restore {path} to regular kit files or run `tenet upgrade`.";
|
|
138
|
+
};
|
|
139
|
+
readonly "TN-KIT-MISSING": {
|
|
140
|
+
readonly message: "Kit directory {path} was not found.";
|
|
141
|
+
readonly fix: "Reinstall @vedprakash-m/tenet or fix kit_path in tenet.yaml.";
|
|
142
|
+
};
|
|
143
|
+
readonly "TN-LOCK-INVALID": {
|
|
144
|
+
readonly message: "Lock file tenet.lock is invalid: {detail}.";
|
|
145
|
+
readonly fix: "Fix tenet.lock or run `tenet init` to regenerate it.";
|
|
146
|
+
};
|
|
147
|
+
readonly "TN-LOCK-MISMATCH": {
|
|
148
|
+
readonly message: "Installed package {installed} differs from tenet.lock ({locked}).";
|
|
149
|
+
readonly fix: "Run `tenet upgrade` or reinstall @vedprakash-m/tenet@{locked}.";
|
|
150
|
+
};
|
|
151
|
+
readonly "TN-LOCK-MISSING": {
|
|
152
|
+
readonly message: "Lock file tenet.lock was not found.";
|
|
153
|
+
readonly fix: "Run `tenet init` to create and pin tenet.lock.";
|
|
154
|
+
};
|
|
155
|
+
readonly "TN-PATH-ESCAPE": {
|
|
156
|
+
readonly message: "Path {path} resolves outside the repository root.";
|
|
157
|
+
readonly fix: "Use a relative path inside the repository without symlink escapes.";
|
|
158
|
+
};
|
|
159
|
+
readonly "TN-POLICY-ALPHA0-CAP": {
|
|
160
|
+
readonly message: "The {rule} rule is capped at advise in alpha.0.";
|
|
161
|
+
readonly fix: "The configured mode will take effect when rule modes are available.";
|
|
162
|
+
};
|
|
163
|
+
readonly "TN-POLICY-BRANCH": {
|
|
164
|
+
readonly message: "Branch modifies protected policy file tenet.yaml.";
|
|
165
|
+
readonly fix: "Revert tenet.yaml on this branch or move policy changes to a separate change.";
|
|
166
|
+
};
|
|
167
|
+
readonly "TN-POLICY-INCOMPATIBLE": {
|
|
168
|
+
readonly message: "Claim requirements for {claim} have no compatible intersection.";
|
|
169
|
+
readonly fix: "Align conflicting claim methods or pass rules across policy layers.";
|
|
170
|
+
};
|
|
171
|
+
readonly "TN-POLICY-LEVEL-UNAVAILABLE": {
|
|
172
|
+
readonly message: "Policy level {level} is not yet available; running as observe.";
|
|
173
|
+
readonly fix: "Set an available level in tenet.yaml or wait for support for {level}.";
|
|
174
|
+
};
|
|
175
|
+
readonly "TN-POLICY-LOOSEN": {
|
|
176
|
+
readonly message: "Policy layer {layer} attempts to loosen {name}.";
|
|
177
|
+
readonly fix: "Remove the loosening override from {layer} so later layers only tighten.";
|
|
178
|
+
};
|
|
179
|
+
readonly "TN-POLICY-MISSING": {
|
|
180
|
+
readonly message: "Policy file tenet.yaml was not found.";
|
|
181
|
+
readonly fix: "Run `tenet init` to create tenet.yaml.";
|
|
182
|
+
};
|
|
183
|
+
readonly "TN-POLICY-RULE": {
|
|
184
|
+
readonly message: "Unknown policy rule or setting {name} in tenet.yaml.";
|
|
185
|
+
readonly fix: "Remove or fix {name} in tenet.yaml against the active pack.";
|
|
186
|
+
};
|
|
187
|
+
readonly "TN-POLICY-SCHEMA": {
|
|
188
|
+
readonly message: "tenet.yaml does not match the alpha.0 schema: {detail}.";
|
|
189
|
+
readonly fix: "Fix tenet.yaml or remove fields that are not available in alpha.0.";
|
|
190
|
+
};
|
|
191
|
+
readonly "TN-PROTECTED": {
|
|
192
|
+
readonly message: "Change modifies protected path {path}.";
|
|
193
|
+
readonly fix: "Revert edits to {path} or open a change-policy decision request via `tenet decide`.";
|
|
194
|
+
};
|
|
195
|
+
readonly "TN-RECORD-BUNDLE": {
|
|
196
|
+
readonly message: "Recorded CI bundle {run_id} failed verification: {reason}.";
|
|
197
|
+
readonly fix: "Re-run the CI verification workflow and check bundle integrity.";
|
|
198
|
+
};
|
|
199
|
+
readonly "TN-REPORT-MALFORMED": {
|
|
200
|
+
readonly message: "Test report {path} is not valid {kind} input.";
|
|
201
|
+
readonly fix: "Fix the {kind} report format, XML entity rules, or size/case limits for {path}.";
|
|
202
|
+
};
|
|
203
|
+
readonly "TN-REPORT-MISSING": {
|
|
204
|
+
readonly message: "Test report {path} was not found.";
|
|
205
|
+
readonly fix: "Run tests to generate {path}, or provide an existing report path.";
|
|
206
|
+
};
|
|
207
|
+
readonly "TN-SCHEMA": {
|
|
208
|
+
readonly message: "File {path} failed {schema} schema validation at {pointer}.";
|
|
209
|
+
readonly fix: "Update {path} at {pointer} to match the {schema} schema.";
|
|
210
|
+
};
|
|
211
|
+
readonly "TN-SPEC-BLESSED-COPY": {
|
|
212
|
+
readonly message: "Blessed copy for section {slug} is missing or changed on disk.";
|
|
213
|
+
readonly fix: "Run `tenet bless` to restore or re-bless section {slug}.";
|
|
214
|
+
};
|
|
215
|
+
readonly "TN-SPEC-DUP-ID": {
|
|
216
|
+
readonly message: "Duplicate specification ID {id}.";
|
|
217
|
+
readonly fix: "Run `tenet fix` to assign a new ID, or remove the duplicate {id}.";
|
|
218
|
+
};
|
|
219
|
+
readonly "TN-SPEC-DUP-SECTION": {
|
|
220
|
+
readonly message: "Duplicate section slug {slug}.";
|
|
221
|
+
readonly fix: "Rename or merge the repeated {slug} heading.";
|
|
222
|
+
};
|
|
223
|
+
readonly "TN-SPEC-MISSING-ID": {
|
|
224
|
+
readonly message: "Specification line needs an ID.";
|
|
225
|
+
readonly fix: "Run `tenet fix` or prefix the line with an unused ID.";
|
|
226
|
+
};
|
|
227
|
+
readonly "TN-SPEC-NO-FRONT": {
|
|
228
|
+
readonly message: "Specification file has no valid YAML front matter.";
|
|
229
|
+
readonly fix: "Add YAML front matter (`---`) with `tenet` and `sections`, or run `tenet fix`.";
|
|
230
|
+
};
|
|
231
|
+
readonly "TN-SPEC-REQ-META": {
|
|
232
|
+
readonly message: "Requirement metadata is malformed: check closing braces, allowed keys, and origin.";
|
|
233
|
+
readonly fix: "Fix the `{…}` metadata block with allowed keys and valid origin.";
|
|
234
|
+
};
|
|
235
|
+
readonly "TN-SPEC-UNCOVERED-VISION": {
|
|
236
|
+
readonly message: "Blessed vision item {id} is not served by a blessed requirement or listed under ## Not yet in scope.";
|
|
237
|
+
readonly fix: "Add serves: {id} to a blessed requirement or list {id} under a blessed ## Not yet in scope section.";
|
|
238
|
+
};
|
|
239
|
+
readonly "TN-SUBJ-DIRTY": {
|
|
240
|
+
readonly message: "Working tree has uncommitted changes.";
|
|
241
|
+
readonly fix: "Commit or stash local changes before running `tenet {command}`.";
|
|
242
|
+
};
|
|
243
|
+
readonly "TN-USAGE-*": {
|
|
244
|
+
readonly message: "Invalid usage for `tenet {command}`: {detail}.";
|
|
245
|
+
readonly fix: "Run `tenet {command} --help` for valid arguments and flags.";
|
|
246
|
+
};
|
|
247
|
+
readonly "TN-USAGE-BUDGET": {
|
|
248
|
+
readonly message: "Context token budget {budget} must be a positive integer.";
|
|
249
|
+
readonly fix: "Pass a positive integer to `--budget-tokens` or `budget_tokens`.";
|
|
250
|
+
};
|
|
251
|
+
readonly "TN-USAGE-REF": {
|
|
252
|
+
readonly message: "The git ref is invalid.";
|
|
253
|
+
readonly fix: "Pass a repository ref.";
|
|
254
|
+
};
|
|
255
|
+
readonly "TN-WEAK-*": {
|
|
256
|
+
readonly message: "Possible test weakening ({finding}) in {file}: {names}.";
|
|
257
|
+
readonly fix: "Restore removed tests or remove skip markers in {file}, or ask for a waiver.";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
export declare function messageTemplate(code: string): Readonly<DiagnosticText> | undefined;
|
|
261
|
+
export declare function message(code: string, vars?: MessageVars): DiagnosticText;
|
|
262
|
+
export declare const onboardText: {
|
|
263
|
+
readonly description: "Inspect your project and prepare a specification drafting assignment.";
|
|
264
|
+
readonly read: "Will read: code, configuration, tests, docs, CI, owners";
|
|
265
|
+
readonly skip: "Will skip: .env*, credentials, vendored, generated, excluded, binary, and oversized files";
|
|
266
|
+
readonly drafting: "Drafting sends project content to your agent and its model provider.";
|
|
267
|
+
readonly readCounts: (revision: string, read: number, skipped: number) => string;
|
|
268
|
+
readonly firstFindings: (findings: string) => string;
|
|
269
|
+
readonly assignment: "Drafting assignment: .tenet/onboard/assignment.json";
|
|
270
|
+
readonly deadPath: (file: string, target: string) => string;
|
|
271
|
+
readonly skippedTests: (count: number, file: string) => string;
|
|
272
|
+
readonly ownersUnmatched: (pattern: string) => string;
|
|
273
|
+
readonly noTestReport: "No machine-readable test report configured";
|
|
274
|
+
readonly invalidLayout: "choose one-file or separate for --layout";
|
|
275
|
+
readonly unexpectedPositionals: "unexpected positional arguments";
|
|
276
|
+
};
|