@codyswann/lisa 7.1.4 → 8.0.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/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +0 -2
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +3 -6
- package/all/copy-overwrite/scripts/lisa-enforcement-fallback.sh +31 -32
- package/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +201 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -2
- package/dist/cli/admit-cmd.d.ts.map +1 -1
- package/dist/cli/admit-cmd.js +16 -10
- package/dist/cli/admit-cmd.js.map +1 -1
- package/dist/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +2 -2
- package/dist/cli/apply.js.map +1 -1
- package/dist/cli/check-cmd.d.ts.map +1 -1
- package/dist/cli/check-cmd.js +8 -4
- package/dist/cli/check-cmd.js.map +1 -1
- package/dist/cli/doctor-coderabbit.js +2 -2
- package/dist/cli/doctor-coderabbit.js.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts +5 -1
- package/dist/cli/doctor-readiness-supply-chain-python.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-supply-chain-python.js +44 -10
- package/dist/cli/doctor-readiness-supply-chain-python.js.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -2
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/cli/doctor-worker-journey.js +2 -2
- package/dist/cli/doctor-worker-journey.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +7 -4
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/file-upstream-cmd.d.ts.map +1 -1
- package/dist/cli/file-upstream-cmd.js +20 -25
- package/dist/cli/file-upstream-cmd.js.map +1 -1
- package/dist/cli/gh-cli.d.ts +2 -2
- package/dist/cli/gh-cli.d.ts.map +1 -1
- package/dist/cli/gh-cli.js +13 -6
- package/dist/cli/gh-cli.js.map +1 -1
- package/dist/cli/health-cmd.d.ts.map +1 -1
- package/dist/cli/health-cmd.js +7 -19
- package/dist/cli/health-cmd.js.map +1 -1
- package/dist/cli/lisa-test-run-jest-merge.js +5 -5
- package/dist/cli/lisa-test-run-jest-merge.js.map +1 -1
- package/dist/cli/lisa-test-run.js +8 -4
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/pr-landing.js +2 -2
- package/dist/cli/pr-landing.js.map +1 -1
- package/dist/cli/update-check.d.ts.map +1 -1
- package/dist/cli/update-check.js +7 -4
- package/dist/cli/update-check.js.map +1 -1
- package/dist/cli/update-cmd.d.ts.map +1 -1
- package/dist/cli/update-cmd.js +7 -4
- package/dist/cli/update-cmd.js.map +1 -1
- package/dist/cli/worktree-ownership.d.ts.map +1 -1
- package/dist/cli/worktree-ownership.js +3 -3
- package/dist/cli/worktree-ownership.js.map +1 -1
- package/dist/codex/hooks-catalog.d.ts +151 -0
- package/dist/codex/hooks-catalog.d.ts.map +1 -0
- package/dist/codex/hooks-catalog.js +315 -0
- package/dist/codex/hooks-catalog.js.map +1 -0
- package/dist/codex/hooks-compatibility.d.ts +14 -0
- package/dist/codex/hooks-compatibility.d.ts.map +1 -0
- package/dist/codex/hooks-compatibility.js +196 -0
- package/dist/codex/hooks-compatibility.js.map +1 -0
- package/dist/codex/hooks-installer.d.ts +2 -49
- package/dist/codex/hooks-installer.d.ts.map +1 -1
- package/dist/codex/hooks-installer.js +5 -546
- package/dist/codex/hooks-installer.js.map +1 -1
- package/dist/codex/hooks-source-links.d.ts +11 -0
- package/dist/codex/hooks-source-links.d.ts.map +1 -0
- package/dist/codex/hooks-source-links.js +74 -0
- package/dist/codex/hooks-source-links.js.map +1 -0
- package/dist/codex/scripts/block-migration-edits.sh +2 -2
- package/dist/codex/scripts/block-suppress-directives.sh +3 -3
- package/dist/codex/scripts/format-on-edit.sh +2 -2
- package/dist/codex/scripts/lint-on-edit.sh +2 -2
- package/dist/codex/scripts/lisa-edit-gate.sh +19 -15
- package/dist/codex/scripts/rubocop-on-edit.sh +2 -2
- package/dist/codex/scripts/sg-scan-on-edit.sh +2 -2
- package/dist/configs/coverage-scope.d.ts +0 -23
- package/dist/configs/coverage-scope.d.ts.map +1 -1
- package/dist/configs/coverage-scope.js +2 -3
- package/dist/configs/coverage-scope.js.map +1 -1
- package/dist/configs/eslint/base.d.ts +2 -113
- package/dist/configs/eslint/base.d.ts.map +1 -1
- package/dist/configs/eslint/base.js +2 -165
- package/dist/configs/eslint/base.js.map +1 -1
- package/dist/configs/eslint/cdk.d.ts.map +1 -1
- package/dist/configs/eslint/cdk.js +82 -66
- package/dist/configs/eslint/cdk.js.map +1 -1
- package/dist/configs/eslint/expo-overrides.d.ts +103 -0
- package/dist/configs/eslint/expo-overrides.d.ts.map +1 -0
- package/dist/configs/eslint/expo-overrides.js +187 -0
- package/dist/configs/eslint/expo-overrides.js.map +1 -0
- package/dist/configs/eslint/expo.d.ts +2 -7
- package/dist/configs/eslint/expo.d.ts.map +1 -1
- package/dist/configs/eslint/expo.js +186 -258
- package/dist/configs/eslint/expo.js.map +1 -1
- package/dist/configs/eslint/nestjs.d.ts.map +1 -1
- package/dist/configs/eslint/nestjs.js +86 -70
- package/dist/configs/eslint/nestjs.js.map +1 -1
- package/dist/configs/eslint/process-environment-bans.d.ts +41 -0
- package/dist/configs/eslint/process-environment-bans.d.ts.map +1 -0
- package/dist/configs/eslint/process-environment-bans.js +50 -0
- package/dist/configs/eslint/process-environment-bans.js.map +1 -0
- package/dist/configs/eslint/shared-rules.d.ts +130 -0
- package/dist/configs/eslint/shared-rules.d.ts.map +1 -0
- package/dist/configs/eslint/shared-rules.js +233 -0
- package/dist/configs/eslint/shared-rules.js.map +1 -0
- package/dist/configs/eslint/typescript.d.ts.map +1 -1
- package/dist/configs/eslint/typescript.js +2 -4
- package/dist/configs/eslint/typescript.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +2 -2
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +5 -5
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +3 -2
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.js +2 -2
- package/dist/configs/vitest/refusal-announcement.js.map +1 -1
- package/dist/core/admission-lock.js +2 -3
- package/dist/core/admission-lock.js.map +1 -1
- package/dist/core/admission-state.d.ts.map +1 -1
- package/dist/core/admission-state.js +11 -5
- package/dist/core/admission-state.js.map +1 -1
- package/dist/core/admission.d.ts.map +1 -1
- package/dist/core/admission.js +2 -2
- package/dist/core/admission.js.map +1 -1
- package/dist/core/bootstrap-environment.d.ts.map +1 -1
- package/dist/core/bootstrap-environment.js +8 -5
- package/dist/core/bootstrap-environment.js.map +1 -1
- package/dist/core/downstream-names.d.ts.map +1 -1
- package/dist/core/downstream-names.js +48 -47
- package/dist/core/downstream-names.js.map +1 -1
- package/dist/core/effectiveness-store.d.ts.map +1 -1
- package/dist/core/effectiveness-store.js +3 -5
- package/dist/core/effectiveness-store.js.map +1 -1
- package/dist/core/gate-declaration-drift.d.ts.map +1 -1
- package/dist/core/gate-declaration-drift.js +46 -27
- package/dist/core/gate-declaration-drift.js.map +1 -1
- package/dist/core/kane-cli-process.d.ts.map +1 -1
- package/dist/core/kane-cli-process.js +46 -33
- package/dist/core/kane-cli-process.js.map +1 -1
- package/dist/core/kane-cli.d.ts.map +1 -1
- package/dist/core/kane-cli.js +3 -4
- package/dist/core/kane-cli.js.map +1 -1
- package/dist/core/lisa-agent-emit-extra.d.ts +75 -0
- package/dist/core/lisa-agent-emit-extra.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit-extra.js +231 -0
- package/dist/core/lisa-agent-emit-extra.js.map +1 -0
- package/dist/core/lisa-agent-emit.d.ts +79 -0
- package/dist/core/lisa-agent-emit.d.ts.map +1 -0
- package/dist/core/lisa-agent-emit.js +224 -0
- package/dist/core/lisa-agent-emit.js.map +1 -0
- package/dist/core/lisa-deletions.d.ts +116 -0
- package/dist/core/lisa-deletions.d.ts.map +1 -0
- package/dist/core/lisa-deletions.js +316 -0
- package/dist/core/lisa-deletions.js.map +1 -0
- package/dist/core/lisa-file-results.d.ts +58 -0
- package/dist/core/lisa-file-results.d.ts.map +1 -0
- package/dist/core/lisa-file-results.js +173 -0
- package/dist/core/lisa-file-results.js.map +1 -0
- package/dist/core/lisa-maintenance.d.ts +139 -0
- package/dist/core/lisa-maintenance.d.ts.map +1 -0
- package/dist/core/lisa-maintenance.js +324 -0
- package/dist/core/lisa-maintenance.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts +7 -5
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -6036
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +6021 -0
- package/dist/core/lisa-plugin-sync.d.ts +96 -0
- package/dist/core/lisa-plugin-sync.d.ts.map +1 -0
- package/dist/core/lisa-plugin-sync.js +216 -0
- package/dist/core/lisa-plugin-sync.js.map +1 -0
- package/dist/core/lisa-plugins.d.ts +42 -0
- package/dist/core/lisa-plugins.d.ts.map +1 -0
- package/dist/core/lisa-plugins.js +155 -0
- package/dist/core/lisa-plugins.js.map +1 -0
- package/dist/core/lisa-state.d.ts +202 -0
- package/dist/core/lisa-state.d.ts.map +1 -0
- package/dist/core/lisa-state.js +205 -0
- package/dist/core/lisa-state.js.map +1 -0
- package/dist/core/lisa-summary-stats.d.ts +74 -0
- package/dist/core/lisa-summary-stats.d.ts.map +1 -0
- package/dist/core/lisa-summary-stats.js +189 -0
- package/dist/core/lisa-summary-stats.js.map +1 -0
- package/dist/core/lisa-summary.d.ts +34 -0
- package/dist/core/lisa-summary.d.ts.map +1 -0
- package/dist/core/lisa-summary.js +144 -0
- package/dist/core/lisa-summary.js.map +1 -0
- package/dist/core/lisa-templates.d.ts +98 -0
- package/dist/core/lisa-templates.d.ts.map +1 -0
- package/dist/core/lisa-templates.js +251 -0
- package/dist/core/lisa-templates.js.map +1 -0
- package/dist/core/lisa.d.ts +14 -903
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +30 -2275
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +117 -61
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/template-ownership.d.ts.map +1 -1
- package/dist/core/template-ownership.js +0 -1
- package/dist/core/template-ownership.js.map +1 -1
- package/dist/core/upstream-attribution-body.d.ts +4 -11
- package/dist/core/upstream-attribution-body.d.ts.map +1 -1
- package/dist/core/upstream-attribution-body.js +61 -373
- package/dist/core/upstream-attribution-body.js.map +1 -1
- package/dist/core/upstream-attribution-fields.d.ts +40 -0
- package/dist/core/upstream-attribution-fields.d.ts.map +1 -0
- package/dist/core/upstream-attribution-fields.js +167 -0
- package/dist/core/upstream-attribution-fields.js.map +1 -0
- package/dist/core/upstream-attribution-files.d.ts +15 -0
- package/dist/core/upstream-attribution-files.d.ts.map +1 -0
- package/dist/core/upstream-attribution-files.js +156 -0
- package/dist/core/upstream-attribution-files.js.map +1 -0
- package/dist/core/upstream-attribution-guards.d.ts +80 -0
- package/dist/core/upstream-attribution-guards.d.ts.map +1 -0
- package/dist/core/upstream-attribution-guards.js +284 -0
- package/dist/core/upstream-attribution-guards.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +67 -30420
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +30518 -0
- package/dist/health/agentic-contract.d.ts +94 -0
- package/dist/health/agentic-contract.d.ts.map +1 -0
- package/dist/health/agentic-contract.js +2 -0
- package/dist/health/agentic-contract.js.map +1 -0
- package/dist/health/agentic-evidence.d.ts +16 -0
- package/dist/health/agentic-evidence.d.ts.map +1 -0
- package/dist/health/agentic-evidence.js +213 -0
- package/dist/health/agentic-evidence.js.map +1 -0
- package/dist/health/agentic.d.ts +11 -74
- package/dist/health/agentic.d.ts.map +1 -1
- package/dist/health/agentic.js +42 -216
- package/dist/health/agentic.js.map +1 -1
- package/dist/health/deadline.d.ts +4 -1
- package/dist/health/deadline.d.ts.map +1 -1
- package/dist/health/deadline.js +4 -3
- package/dist/health/deadline.js.map +1 -1
- package/dist/health/deterministic-inputs.d.ts.map +1 -1
- package/dist/health/deterministic-inputs.js +3 -11
- package/dist/health/deterministic-inputs.js.map +1 -1
- package/dist/health/deterministic-probes.d.ts +52 -0
- package/dist/health/deterministic-probes.d.ts.map +1 -0
- package/dist/health/deterministic-probes.js +142 -0
- package/dist/health/deterministic-probes.js.map +1 -0
- package/dist/health/deterministic.d.ts +2 -25
- package/dist/health/deterministic.d.ts.map +1 -1
- package/dist/health/deterministic.js +14 -106
- package/dist/health/deterministic.js.map +1 -1
- package/dist/health/finding-utils.d.ts +4 -3
- package/dist/health/finding-utils.d.ts.map +1 -1
- package/dist/health/finding-utils.js +4 -4
- package/dist/health/finding-utils.js.map +1 -1
- package/dist/health/governance-probes.d.ts +29 -24
- package/dist/health/governance-probes.d.ts.map +1 -1
- package/dist/health/governance-probes.js +29 -25
- package/dist/health/governance-probes.js.map +1 -1
- package/dist/health/hook-inspection.d.ts +4 -3
- package/dist/health/hook-inspection.d.ts.map +1 -1
- package/dist/health/hook-inspection.js +17 -11
- package/dist/health/hook-inspection.js.map +1 -1
- package/dist/health/plugin-inspection.d.ts +6 -4
- package/dist/health/plugin-inspection.d.ts.map +1 -1
- package/dist/health/plugin-inspection.js +10 -9
- package/dist/health/plugin-inspection.js.map +1 -1
- package/dist/health/prepare.js +24 -8
- package/dist/health/prepare.js.map +1 -1
- package/dist/health/project-probes.d.ts +14 -7
- package/dist/health/project-probes.d.ts.map +1 -1
- package/dist/health/project-probes.js +14 -9
- package/dist/health/project-probes.js.map +1 -1
- package/dist/health/ruleset-compare.d.ts +30 -0
- package/dist/health/ruleset-compare.d.ts.map +1 -0
- package/dist/health/ruleset-compare.js +143 -0
- package/dist/health/ruleset-compare.js.map +1 -0
- package/dist/health/ruleset-config-checks.d.ts +66 -0
- package/dist/health/ruleset-config-checks.d.ts.map +1 -0
- package/dist/health/ruleset-config-checks.js +190 -0
- package/dist/health/ruleset-config-checks.js.map +1 -0
- package/dist/health/ruleset-expected.d.ts +39 -0
- package/dist/health/ruleset-expected.d.ts.map +1 -0
- package/dist/health/ruleset-expected.js +181 -0
- package/dist/health/ruleset-expected.js.map +1 -0
- package/dist/health/ruleset-gh.d.ts +85 -0
- package/dist/health/ruleset-gh.d.ts.map +1 -0
- package/dist/health/ruleset-gh.js +177 -0
- package/dist/health/ruleset-gh.js.map +1 -0
- package/dist/health/ruleset-inspection.d.ts +13 -117
- package/dist/health/ruleset-inspection.d.ts.map +1 -1
- package/dist/health/ruleset-inspection.js +8 -738
- package/dist/health/ruleset-inspection.js.map +1 -1
- package/dist/health/ruleset-normalize.d.ts +32 -0
- package/dist/health/ruleset-normalize.d.ts.map +1 -0
- package/dist/health/ruleset-normalize.js +160 -0
- package/dist/health/ruleset-normalize.js.map +1 -0
- package/dist/health/template-compose.d.ts +9 -0
- package/dist/health/template-compose.d.ts.map +1 -0
- package/dist/health/template-compose.js +105 -0
- package/dist/health/template-compose.js.map +1 -0
- package/dist/health/template-inspection.d.ts +5 -52
- package/dist/health/template-inspection.d.ts.map +1 -1
- package/dist/health/template-inspection.js +13 -435
- package/dist/health/template-inspection.js.map +1 -1
- package/dist/health/template-plan.d.ts +33 -0
- package/dist/health/template-plan.d.ts.map +1 -0
- package/dist/health/template-plan.js +154 -0
- package/dist/health/template-plan.js.map +1 -0
- package/dist/health/template-shape.d.ts +19 -0
- package/dist/health/template-shape.d.ts.map +1 -0
- package/dist/health/template-shape.js +122 -0
- package/dist/health/template-shape.js.map +1 -0
- package/dist/health/workflow-excerpt.d.ts +15 -0
- package/dist/health/workflow-excerpt.d.ts.map +1 -0
- package/dist/health/workflow-excerpt.js +88 -0
- package/dist/health/workflow-excerpt.js.map +1 -0
- package/dist/health/workflow-inputs-inspection.d.ts +16 -0
- package/dist/health/workflow-inputs-inspection.d.ts.map +1 -0
- package/dist/health/workflow-inputs-inspection.js +116 -0
- package/dist/health/workflow-inputs-inspection.js.map +1 -0
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +201 -20
- package/dist/standards/capture.d.ts.map +1 -1
- package/dist/standards/capture.js +73 -25
- package/dist/standards/capture.js.map +1 -1
- package/dist/standards/contract.d.ts.map +1 -1
- package/dist/standards/contract.js +26 -9
- package/dist/standards/contract.js.map +1 -1
- package/dist/standards/git-state.d.ts.map +1 -1
- package/dist/standards/git-state.js +2 -2
- package/dist/standards/git-state.js.map +1 -1
- package/dist/standards/registry-checks.d.ts +34 -0
- package/dist/standards/registry-checks.d.ts.map +1 -0
- package/dist/standards/registry-checks.js +137 -0
- package/dist/standards/registry-checks.js.map +1 -0
- package/dist/standards/registry.d.ts +3 -13
- package/dist/standards/registry.d.ts.map +1 -1
- package/dist/standards/registry.js +105 -194
- package/dist/standards/registry.js.map +1 -1
- package/dist/standards/storage.js +8 -10
- package/dist/standards/storage.js.map +1 -1
- package/dist/strategies/deduplicate-arrays.d.ts +18 -0
- package/dist/strategies/deduplicate-arrays.d.ts.map +1 -0
- package/dist/strategies/deduplicate-arrays.js +25 -0
- package/dist/strategies/deduplicate-arrays.js.map +1 -0
- package/dist/strategies/package-lisa-detect.d.ts +10 -0
- package/dist/strategies/package-lisa-detect.d.ts.map +1 -0
- package/dist/strategies/package-lisa-detect.js +178 -0
- package/dist/strategies/package-lisa-detect.js.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts +16 -0
- package/dist/strategies/package-lisa-direct-floors.d.ts.map +1 -0
- package/dist/strategies/package-lisa-direct-floors.js +37 -0
- package/dist/strategies/package-lisa-direct-floors.js.map +1 -0
- package/dist/strategies/package-lisa-host-pins.d.ts +43 -0
- package/dist/strategies/package-lisa-host-pins.d.ts.map +1 -0
- package/dist/strategies/package-lisa-host-pins.js +254 -0
- package/dist/strategies/package-lisa-host-pins.js.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts +59 -0
- package/dist/strategies/package-lisa-manifest-guards.d.ts.map +1 -0
- package/dist/strategies/package-lisa-manifest-guards.js +234 -0
- package/dist/strategies/package-lisa-manifest-guards.js.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts +34 -0
- package/dist/strategies/package-lisa-pin-alignment.d.ts.map +1 -0
- package/dist/strategies/package-lisa-pin-alignment.js +106 -0
- package/dist/strategies/package-lisa-pin-alignment.js.map +1 -0
- package/dist/strategies/package-lisa-script-notes.d.ts +19 -0
- package/dist/strategies/package-lisa-script-notes.d.ts.map +1 -0
- package/dist/strategies/package-lisa-script-notes.js +145 -0
- package/dist/strategies/package-lisa-script-notes.js.map +1 -0
- package/dist/strategies/package-lisa-template-apply.d.ts +53 -0
- package/dist/strategies/package-lisa-template-apply.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-apply.js +216 -0
- package/dist/strategies/package-lisa-template-apply.js.map +1 -0
- package/dist/strategies/package-lisa-template-merge.d.ts +42 -0
- package/dist/strategies/package-lisa-template-merge.d.ts.map +1 -0
- package/dist/strategies/package-lisa-template-merge.js +202 -0
- package/dist/strategies/package-lisa-template-merge.js.map +1 -0
- package/dist/strategies/package-lisa-types.d.ts +5 -0
- package/dist/strategies/package-lisa-types.d.ts.map +1 -1
- package/dist/strategies/package-lisa.d.ts +1 -195
- package/dist/strategies/package-lisa.d.ts.map +1 -1
- package/dist/strategies/package-lisa.js +27 -1333
- package/dist/strategies/package-lisa.js.map +1 -1
- package/dist/strategies/tagged-merge-sections.d.ts +68 -0
- package/dist/strategies/tagged-merge-sections.d.ts.map +1 -0
- package/dist/strategies/tagged-merge-sections.js +113 -0
- package/dist/strategies/tagged-merge-sections.js.map +1 -0
- package/dist/strategies/tagged-merge.d.ts +1 -90
- package/dist/strategies/tagged-merge.d.ts.map +1 -1
- package/dist/strategies/tagged-merge.js +19 -190
- package/dist/strategies/tagged-merge.js.map +1 -1
- package/dist/utils/bounded-stream.d.ts +30 -0
- package/dist/utils/bounded-stream.d.ts.map +1 -0
- package/dist/utils/bounded-stream.js +63 -0
- package/dist/utils/bounded-stream.js.map +1 -0
- package/dist/utils/fibonacci.d.ts +3 -3
- package/dist/utils/fibonacci.d.ts.map +1 -1
- package/dist/utils/fibonacci.js +48 -10
- package/dist/utils/fibonacci.js.map +1 -1
- package/dist/utils/memo.d.ts +25 -0
- package/dist/utils/memo.d.ts.map +1 -0
- package/dist/utils/memo.js +32 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/postinstall-trampoline.d.ts.map +1 -1
- package/dist/utils/postinstall-trampoline.js +3 -20
- package/dist/utils/postinstall-trampoline.js.map +1 -1
- package/dist/utils/process-environment.d.ts +42 -0
- package/dist/utils/process-environment.d.ts.map +1 -0
- package/dist/utils/process-environment.js +52 -0
- package/dist/utils/process-environment.js.map +1 -0
- package/dist/utils/resolve-executable.d.ts +89 -0
- package/dist/utils/resolve-executable.d.ts.map +1 -0
- package/dist/utils/resolve-executable.js +224 -0
- package/dist/utils/resolve-executable.js.map +1 -0
- package/dist/utils/shell-command-line.d.ts +9 -0
- package/dist/utils/shell-command-line.d.ts.map +1 -0
- package/dist/utils/shell-command-line.js +43 -0
- package/dist/utils/shell-command-line.js.map +1 -0
- package/dist/utils/usage-accounting-totals.d.ts +19 -0
- package/dist/utils/usage-accounting-totals.d.ts.map +1 -0
- package/dist/utils/usage-accounting-totals.js +145 -0
- package/dist/utils/usage-accounting-totals.js.map +1 -0
- package/dist/utils/usage-accounting.d.ts +2 -14
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +2 -169
- package/dist/utils/usage-accounting.js.map +1 -1
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-react-violations.test.js +213 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-valid.test.js +251 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order-violations.test.js +222 -0
- package/eslint-plugin-code-organization/__tests__/statement-order-tester.js +42 -0
- package/eslint-plugin-code-organization/rules/enforce-statement-order.js +6 -8
- package/expo/copy-overwrite/jest.setup.ts +11 -10
- package/expo/create-only/scripts/zap-baseline.sh +6 -18
- package/harper-fabric/create-only/scripts/zap-baseline.sh +7 -9
- package/nestjs/create-only/scripts/zap-baseline.sh +6 -7
- package/package.json +4 -4
- package/phaser/copy-overwrite/.husky/pre-push.verify +2 -0
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/lisa/hooks/track-plan-sessions.sh +7 -131
- package/plugins/lisa/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-copilot/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-copilot/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-cursor/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-cursor/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/lisa-devin/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/lisa-devin/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/.codex-plugin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-agy/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-copilot/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-cursor/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/lisa-expo-devin/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-copilot/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-cursor/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/lisa-harper-fabric-devin/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/.codex-plugin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-agy/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-copilot/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-copilot/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-cursor/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-cursor/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/hooks/block-migration-edits.sh +1 -1
- package/plugins/lisa-nestjs-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-nestjs-devin/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/lisa-nestjs-devin/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-copilot/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-cursor/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-rails-devin/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/lisa-rails-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-copilot/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-copilot/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-cursor/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-cursor/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/hooks/block-suppress-directives.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/format-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lint-on-edit.sh +2 -2
- package/plugins/lisa-typescript-devin/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/lisa-typescript-devin/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-managed-file-edits.sh +201 -20
- package/plugins/src/base/hooks/block-masked-exit-status.sh +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
- package/plugins/src/base/hooks/enforce-verification-gate.sh +1 -2
- package/plugins/src/base/hooks/ticket-sync-reminder.sh +2 -17
- package/plugins/src/base/hooks/track-plan-sessions.sh +7 -131
- package/plugins/src/base/scripts/remote-agent-aws-setup.sh +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +18 -5
- package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +19 -9
- package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +15 -4
- package/plugins/src/harper-fabric/hooks/block-generated-artifact-edits.sh +196 -11
- package/plugins/src/harper-fabric/hooks/enforce-config-extensions.sh +1 -1
- package/plugins/src/nestjs/hooks/block-migration-edits.sh +1 -1
- package/plugins/src/nestjs/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/nestjs/skills/nestjs-rules/SKILL.md +39 -26
- package/plugins/src/nestjs/skills/typeorm-patterns/references/observability-patterns.md +18 -58
- package/plugins/src/rails/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/rails/hooks/rubocop-on-edit.sh +2 -2
- package/plugins/src/rails/hooks/sg-scan-on-edit.sh +3 -3
- package/plugins/src/typescript/hooks/block-suppress-directives.sh +2 -2
- package/plugins/src/typescript/hooks/format-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lint-on-edit.sh +2 -2
- package/plugins/src/typescript/hooks/lisa-edit-gate.sh +19 -15
- package/plugins/src/typescript/hooks/sg-scan-on-edit.sh +3 -3
- package/scripts/build-plugins.sh +1 -1
- package/scripts/check-derived-artifacts.mjs +2 -2
- package/scripts/check-generated-artifact-merge-coverage.mjs +45 -4
- package/scripts/check-orphan-test-processes.mjs +0 -1
- package/scripts/check-self-dependency-pin.mjs +0 -2
- package/scripts/claude-remote-setup.sh +12 -7
- package/scripts/cleanup-amplify-branches.sh +0 -1
- package/scripts/generate-export-surface.mjs +131 -61
- package/scripts/generate-lisa-owned-hash-ledger.mjs +87 -102
- package/scripts/generate-upstream-evidence-manifest.mjs +56 -49
- package/scripts/github-status-check.sh +5 -25
- package/scripts/install-claude-plugins.sh +10 -8
- package/scripts/lib/merge-generated-json.mjs +274 -0
- package/scripts/lib/upstream-manifest-staleness.mjs +38 -34
- package/scripts/lib/upstream-public-commits.mjs +35 -18
- package/scripts/lisa-commit-and-pr-local.sh +1 -1
- package/scripts/lisa-enforcement-fallback.sh +31 -32
- package/scripts/lisa-github-environments.sh +5 -1
- package/scripts/lisa-github-repo-settings.sh +5 -1
- package/scripts/lisa-github-repo-setup.sh +1 -2
- package/scripts/lisa-github-rulesets.sh +8 -8
- package/scripts/lisa-remote-env/session-start.sh +18 -5
- package/scripts/lisa-rollback-release.mjs +0 -2
- package/scripts/lisa-update-local.sh +1 -1
- package/scripts/merge-generated-artifact.mjs +18 -6
- package/scripts/raise-self-dependency-pin.mjs +0 -2
- package/scripts/run-artifact-checks.mjs +1 -1
- package/scripts/verify-packed-learnings-contract.mjs +36 -3
- package/scripts/verify-self-pin-raise.mjs +0 -2
- package/typescript/copy-contents/.husky/commit-msg +8 -2
- package/typescript/copy-contents/.husky/post-checkout +2 -0
- package/typescript/copy-contents/.husky/post-merge +2 -0
- package/typescript/copy-contents/.husky/pre-commit +10 -3
- package/typescript/copy-contents/.husky/pre-push +29 -16
- package/typescript/copy-contents/.husky/prepare-commit-msg +2 -0
- package/typescript/create-only/.husky/pre-push.local +2 -0
- package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +0 -643
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Field validators for the public upstream-attribution projection.
|
|
3
|
+
*
|
|
4
|
+
* Each validator turns one untrusted field into a value the public renderer
|
|
5
|
+
* may print: an exact surface or evidence manifest member, a verified Lisa
|
|
6
|
+
* excerpt, a public-origin commit, or a re-hashed occurrence fingerprint.
|
|
7
|
+
* @module core/upstream-attribution-fields
|
|
8
|
+
*/
|
|
9
|
+
import { createHash } from "node:crypto";
|
|
10
|
+
import { EXCERPTS_FIELD, verifyExcerpt } from "./upstream-attribution-files.js";
|
|
11
|
+
import { assertDynamicTextSafe, assertTextControlsSafe, readValue, reject, requireAllowlistedRecord, requireAsciiString, requireDenseArray, } from "./upstream-attribution-guards.js";
|
|
12
|
+
import { UPSTREAM_EVIDENCE_MANIFEST, UPSTREAM_PUBLIC_COMMITS, UPSTREAM_SURFACE_MANIFEST, } from "./upstream-evidence-manifest.js";
|
|
13
|
+
const MAX_EXCERPT_BYTES = 16_384;
|
|
14
|
+
const MAX_AGGREGATE_EXCERPT_BYTES = 48_000;
|
|
15
|
+
const PACKAGE_PATH_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._/-]*$/;
|
|
16
|
+
const SURFACE_PATH_PATTERN = /^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*$/;
|
|
17
|
+
const SHA_PATTERN = /^[a-f0-9]{40}$/;
|
|
18
|
+
const FINGERPRINT_PATTERN = /^sll4-[a-f0-9]{12}$/;
|
|
19
|
+
const FINGERPRINT_FIELD = "occurrenceFingerprint";
|
|
20
|
+
const EXCERPT_FIELDS = Object.freeze(["file", "text"]);
|
|
21
|
+
/**
|
|
22
|
+
* Require the closed document kind.
|
|
23
|
+
* @param value - Untrusted `documentKind`
|
|
24
|
+
* @returns `issue` or `occurrence`
|
|
25
|
+
*/
|
|
26
|
+
export function requireDocumentKind(value) {
|
|
27
|
+
if (value !== "issue" && value !== "occurrence") {
|
|
28
|
+
return reject("documentKind", 'must be "issue" or "occurrence"');
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Require an exact member of the public Lisa surface manifest.
|
|
34
|
+
* @param value - Untrusted `lisaSurface`
|
|
35
|
+
* @returns The validated surface path
|
|
36
|
+
*/
|
|
37
|
+
export function requireLisaSurface(value) {
|
|
38
|
+
const surface = requireAsciiString(value, "lisaSurface", 200);
|
|
39
|
+
assertDynamicTextSafe(surface, "lisaSurface");
|
|
40
|
+
if (!isSafeSurfacePath(surface) ||
|
|
41
|
+
!Object.hasOwn(UPSTREAM_SURFACE_MANIFEST, surface)) {
|
|
42
|
+
return reject("lisaSurface", "must be an exact public Lisa surface manifest member");
|
|
43
|
+
}
|
|
44
|
+
return surface;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Require verified excerpts whose combined size stays within the public bound.
|
|
48
|
+
* @param value - Untrusted `lisaOwnedExcerpts`
|
|
49
|
+
* @returns The verified excerpts
|
|
50
|
+
*/
|
|
51
|
+
export function requireExcerpts(value) {
|
|
52
|
+
const excerpts = requireDenseArray(value, EXCERPTS_FIELD, false).map((entry, index) => requireExcerpt(entry, `${EXCERPTS_FIELD}[${index}]`));
|
|
53
|
+
const aggregateBytes = excerpts.reduce((total, excerpt) => total + Buffer.byteLength(excerpt.text, "utf8"), 0);
|
|
54
|
+
if (aggregateBytes > MAX_AGGREGATE_EXCERPT_BYTES) {
|
|
55
|
+
reject(EXCERPTS_FIELD, "exceeds the aggregate byte limit");
|
|
56
|
+
}
|
|
57
|
+
return excerpts;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Require one excerpt record and prove its text against the package file.
|
|
61
|
+
* @param entry - Untrusted excerpt record
|
|
62
|
+
* @param field - Indexed field name reported on rejection
|
|
63
|
+
* @returns The verified excerpt
|
|
64
|
+
*/
|
|
65
|
+
function requireExcerpt(entry, field) {
|
|
66
|
+
const record = requireAllowlistedRecord(entry, EXCERPT_FIELDS, field);
|
|
67
|
+
const file = requireManifestPath(readValue(record, "file"));
|
|
68
|
+
const text = requireExcerptText(readValue(record, "text"));
|
|
69
|
+
verifyExcerpt(file, text);
|
|
70
|
+
return { file, text };
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Require an exact member of the public evidence manifest.
|
|
74
|
+
* @param value - Untrusted excerpt `file`
|
|
75
|
+
* @returns The validated package-relative path
|
|
76
|
+
*/
|
|
77
|
+
function requireManifestPath(value) {
|
|
78
|
+
const member = requireAsciiString(value, EXCERPTS_FIELD, 500);
|
|
79
|
+
assertDynamicTextSafe(member, EXCERPTS_FIELD);
|
|
80
|
+
if (!isSafePackagePath(member) ||
|
|
81
|
+
!Object.hasOwn(UPSTREAM_EVIDENCE_MANIFEST, member)) {
|
|
82
|
+
return reject(EXCERPTS_FIELD, "file must be an exact public Lisa evidence manifest member");
|
|
83
|
+
}
|
|
84
|
+
return member;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Require bounded, valid, control-free excerpt text with no reserved marker.
|
|
88
|
+
* @param value - Untrusted excerpt `text`
|
|
89
|
+
* @returns The validated text
|
|
90
|
+
*/
|
|
91
|
+
function requireExcerptText(value) {
|
|
92
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
93
|
+
return reject(EXCERPTS_FIELD, "text must be a non-empty string");
|
|
94
|
+
}
|
|
95
|
+
const bytes = Buffer.byteLength(value, "utf8");
|
|
96
|
+
if (bytes > MAX_EXCERPT_BYTES) {
|
|
97
|
+
return reject(EXCERPTS_FIELD, "text exceeds the per-excerpt byte limit");
|
|
98
|
+
}
|
|
99
|
+
if (Buffer.from(value, "utf8").toString("utf8") !== value) {
|
|
100
|
+
return reject(EXCERPTS_FIELD, "text must be valid UTF-8");
|
|
101
|
+
}
|
|
102
|
+
assertTextControlsSafe(value, EXCERPTS_FIELD);
|
|
103
|
+
assertDynamicTextSafe(value, EXCERPTS_FIELD);
|
|
104
|
+
if (value.includes("[lisa-upstream-attribution")) {
|
|
105
|
+
return reject(EXCERPTS_FIELD, "text must not contain a reserved upstream attribution marker");
|
|
106
|
+
}
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Require full SHAs reachable from public origin refs.
|
|
111
|
+
* @param value - Untrusted `upstreamCommitRefs`
|
|
112
|
+
* @returns The validated commit SHAs
|
|
113
|
+
*/
|
|
114
|
+
export function requireCommitRefs(value) {
|
|
115
|
+
return requireDenseArray(value, "upstreamCommitRefs", false).map(entry => {
|
|
116
|
+
const sha = requireAsciiString(entry, "upstreamCommitRefs", 40);
|
|
117
|
+
assertDynamicTextSafe(sha, "upstreamCommitRefs");
|
|
118
|
+
if (!SHA_PATTERN.test(sha) ||
|
|
119
|
+
!Object.hasOwn(UPSTREAM_PUBLIC_COMMITS, sha)) {
|
|
120
|
+
return reject("upstreamCommitRefs", "must contain full SHAs reachable from public origin refs");
|
|
121
|
+
}
|
|
122
|
+
return sha;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Require a fingerprint exactly when the document is an occurrence, and
|
|
127
|
+
* re-hash it so the public comment never echoes the caller's value.
|
|
128
|
+
* @param value - Untrusted `occurrenceFingerprint`
|
|
129
|
+
* @param documentKind - Validated document kind
|
|
130
|
+
* @returns The derived public fingerprint, or undefined for an issue
|
|
131
|
+
*/
|
|
132
|
+
export function requireFingerprintPairing(value, documentKind) {
|
|
133
|
+
if (documentKind === "issue") {
|
|
134
|
+
return value === undefined
|
|
135
|
+
? undefined
|
|
136
|
+
: reject(FINGERPRINT_FIELD, "is valid only for occurrence events");
|
|
137
|
+
}
|
|
138
|
+
const fingerprint = requireAsciiString(value, FINGERPRINT_FIELD, 17);
|
|
139
|
+
assertDynamicTextSafe(fingerprint, FINGERPRINT_FIELD);
|
|
140
|
+
if (!FINGERPRINT_PATTERN.test(fingerprint)) {
|
|
141
|
+
return reject(FINGERPRINT_FIELD, "must be sll4- plus exactly 12 lowercase hex characters");
|
|
142
|
+
}
|
|
143
|
+
return `sll4-${createHash("sha256")
|
|
144
|
+
.update(fingerprint, "utf8")
|
|
145
|
+
.digest("hex")
|
|
146
|
+
.slice(0, 12)}`;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Check a package-relative path has no empty, `.` or `..` segments.
|
|
150
|
+
* @param value - Candidate path
|
|
151
|
+
* @returns True when the path is safe to join under the package root
|
|
152
|
+
*/
|
|
153
|
+
function isSafePackagePath(value) {
|
|
154
|
+
return (PACKAGE_PATH_PATTERN.test(value) &&
|
|
155
|
+
!value.includes("//") &&
|
|
156
|
+
value.split("/").every(segment => segment !== "." && segment !== ".."));
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Check a surface path has no `.` or `..` segments.
|
|
160
|
+
* @param value - Candidate surface path
|
|
161
|
+
* @returns True when the surface path is well formed
|
|
162
|
+
*/
|
|
163
|
+
function isSafeSurfacePath(value) {
|
|
164
|
+
return (SURFACE_PATH_PATTERN.test(value) &&
|
|
165
|
+
value.split("/").every(segment => segment !== "." && segment !== ".."));
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=upstream-attribution-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upstream-attribution-fields.js","sourceRoot":"","sources":["../../src/core/upstream-attribution-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE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C,QAAQ,CAAC,IAAI,CAAC;QACrB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,CAAC,CACvE,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,KAAa;IACtC,OAAO,CACL,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC;QAChC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,CAAC,CACvE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Field every excerpt failure is reported against. */
|
|
2
|
+
export declare const EXCERPTS_FIELD = "lisaOwnedExcerpts";
|
|
3
|
+
/**
|
|
4
|
+
* Refuse to run unless the manifests are present and frozen and the package
|
|
5
|
+
* root really is `@codyswann/lisa`.
|
|
6
|
+
* @throws {Error} When a manifest is empty or mutable, or the package identity is wrong
|
|
7
|
+
*/
|
|
8
|
+
export declare function assertRuntimeContract(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Prove an excerpt exists verbatim in its hash-pinned Lisa package file.
|
|
11
|
+
* @param file - Package-relative manifest member
|
|
12
|
+
* @param excerpt - Excerpt text that must appear in the file
|
|
13
|
+
*/
|
|
14
|
+
export declare function verifyExcerpt(file: string, excerpt: string): void;
|
|
15
|
+
//# sourceMappingURL=upstream-attribution-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upstream-attribution-files.d.ts","sourceRoot":"","sources":["../../src/core/upstream-attribution-files.ts"],"names":[],"mappings":"AAiCA,uDAAuD;AACvD,eAAO,MAAM,cAAc,sBAAsB,CAAC;AASlD;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CA4B5C;AAgBD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAoBjE"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package-file reads for the public upstream-attribution projection.
|
|
3
|
+
*
|
|
4
|
+
* Proves the projection runs inside a genuine Lisa package with frozen,
|
|
5
|
+
* non-empty evidence manifests, and that every excerpt exists verbatim in a
|
|
6
|
+
* regular, non-symlink Lisa file whose bytes match its pinned SHA-256. Reads
|
|
7
|
+
* are bounded, refuse to follow links, and detect a file changing mid-read.
|
|
8
|
+
* @module core/upstream-attribution-files
|
|
9
|
+
*/
|
|
10
|
+
import { createHash } from "node:crypto";
|
|
11
|
+
import { closeSync, constants, fstatSync, openSync, readSync, realpathSync, } from "node:fs";
|
|
12
|
+
import path from "node:path";
|
|
13
|
+
import { fileURLToPath } from "node:url";
|
|
14
|
+
import { isProxy } from "node:util/types";
|
|
15
|
+
import { assertTextControlsSafe, decodeUtf8, reject, } from "./upstream-attribution-guards.js";
|
|
16
|
+
import { UPSTREAM_EVIDENCE_MANIFEST, UPSTREAM_PUBLIC_COMMITS, UPSTREAM_SURFACE_MANIFEST, } from "./upstream-evidence-manifest.js";
|
|
17
|
+
/** Field every excerpt failure is reported against. */
|
|
18
|
+
export const EXCERPTS_FIELD = "lisaOwnedExcerpts";
|
|
19
|
+
const PACKAGE_ROOT = realpathSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../.."));
|
|
20
|
+
const MAX_SOURCE_BYTES = 1_000_000;
|
|
21
|
+
const MAX_PACKAGE_JSON_BYTES = 64_000;
|
|
22
|
+
const INVALID_PACKAGE_IDENTITY = "Invalid Lisa package identity";
|
|
23
|
+
/**
|
|
24
|
+
* Refuse to run unless the manifests are present and frozen and the package
|
|
25
|
+
* root really is `@codyswann/lisa`.
|
|
26
|
+
* @throws {Error} When a manifest is empty or mutable, or the package identity is wrong
|
|
27
|
+
*/
|
|
28
|
+
export function assertRuntimeContract() {
|
|
29
|
+
if (Object.keys(UPSTREAM_EVIDENCE_MANIFEST).length === 0 ||
|
|
30
|
+
Object.keys(UPSTREAM_SURFACE_MANIFEST).length === 0 ||
|
|
31
|
+
Object.keys(UPSTREAM_PUBLIC_COMMITS).length === 0 ||
|
|
32
|
+
!Object.isFrozen(UPSTREAM_EVIDENCE_MANIFEST) ||
|
|
33
|
+
!Object.isFrozen(UPSTREAM_SURFACE_MANIFEST) ||
|
|
34
|
+
!Object.isFrozen(UPSTREAM_PUBLIC_COMMITS)) {
|
|
35
|
+
throw new Error("Upstream evidence manifests are missing or mutable");
|
|
36
|
+
}
|
|
37
|
+
const packageJson = parsePackageIdentity(readBoundedRegularFile(path.join(PACKAGE_ROOT, "package.json"), MAX_PACKAGE_JSON_BYTES, "package identity"));
|
|
38
|
+
if (packageJson === null ||
|
|
39
|
+
typeof packageJson !== "object" ||
|
|
40
|
+
isProxy(packageJson) ||
|
|
41
|
+
Object.getPrototypeOf(packageJson) !== Object.prototype ||
|
|
42
|
+
Object.getOwnPropertyDescriptor(packageJson, "name")?.value !==
|
|
43
|
+
"@codyswann/lisa") {
|
|
44
|
+
throw new Error(INVALID_PACKAGE_IDENTITY);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Parse the package manifest bytes.
|
|
49
|
+
* @param packageBytes - Raw `package.json` bytes
|
|
50
|
+
* @returns The parsed JSON value
|
|
51
|
+
* @throws {Error} When the bytes are not valid UTF-8 JSON
|
|
52
|
+
*/
|
|
53
|
+
function parsePackageIdentity(packageBytes) {
|
|
54
|
+
try {
|
|
55
|
+
return JSON.parse(decodeUtf8(packageBytes, "package identity"));
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
throw new Error(INVALID_PACKAGE_IDENTITY);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Prove an excerpt exists verbatim in its hash-pinned Lisa package file.
|
|
63
|
+
* @param file - Package-relative manifest member
|
|
64
|
+
* @param excerpt - Excerpt text that must appear in the file
|
|
65
|
+
*/
|
|
66
|
+
export function verifyExcerpt(file, excerpt) {
|
|
67
|
+
const absolutePath = path.join(PACKAGE_ROOT, file);
|
|
68
|
+
if (realpathOrReject(absolutePath) !== absolutePath) {
|
|
69
|
+
reject(EXCERPTS_FIELD, "file must not be a symlink");
|
|
70
|
+
}
|
|
71
|
+
const bytes = readBoundedRegularFile(absolutePath, MAX_SOURCE_BYTES, EXCERPTS_FIELD);
|
|
72
|
+
const expectedHash = UPSTREAM_EVIDENCE_MANIFEST[file];
|
|
73
|
+
const actualHash = createHash("sha256").update(bytes).digest("hex");
|
|
74
|
+
if (expectedHash === undefined || actualHash !== expectedHash) {
|
|
75
|
+
reject(EXCERPTS_FIELD, "file failed its manifest hash check");
|
|
76
|
+
}
|
|
77
|
+
const contents = decodeUtf8(bytes, EXCERPTS_FIELD);
|
|
78
|
+
assertTextControlsSafe(contents, EXCERPTS_FIELD);
|
|
79
|
+
if (!contents.includes(excerpt)) {
|
|
80
|
+
reject(EXCERPTS_FIELD, "text is not present verbatim in its Lisa file");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Resolve a path's real location, rejecting a missing file.
|
|
85
|
+
* @param filePath - Absolute path inside the package
|
|
86
|
+
* @returns The fully resolved path
|
|
87
|
+
*/
|
|
88
|
+
function realpathOrReject(filePath) {
|
|
89
|
+
try {
|
|
90
|
+
return realpathSync(filePath);
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
return reject(EXCERPTS_FIELD, "file does not exist in this Lisa package");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Open a file read-only without following a final symlink or blocking.
|
|
98
|
+
* @param filePath - Absolute path to open
|
|
99
|
+
* @param field - Field name reported on rejection
|
|
100
|
+
* @returns The open file descriptor
|
|
101
|
+
*/
|
|
102
|
+
function openNoFollow(filePath, field) {
|
|
103
|
+
const noFollow = constants.O_NOFOLLOW ?? 0;
|
|
104
|
+
try {
|
|
105
|
+
return openSync(filePath, constants.O_RDONLY | constants.O_NONBLOCK | noFollow);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
return reject(field, "must be a readable non-symlink file");
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Read a regular file of bounded size, rejecting one that changes mid-read.
|
|
113
|
+
* @param filePath - Absolute path to read
|
|
114
|
+
* @param maxBytes - Largest accepted file size
|
|
115
|
+
* @param field - Field name reported on rejection
|
|
116
|
+
* @returns The file's bytes
|
|
117
|
+
*/
|
|
118
|
+
function readBoundedRegularFile(filePath, maxBytes, field) {
|
|
119
|
+
const descriptor = openNoFollow(filePath, field);
|
|
120
|
+
try {
|
|
121
|
+
const before = fstatSync(descriptor);
|
|
122
|
+
if (!before.isFile()) {
|
|
123
|
+
return reject(field, "must be a regular file");
|
|
124
|
+
}
|
|
125
|
+
if (before.size > maxBytes) {
|
|
126
|
+
return reject(field, "exceeds its source byte limit");
|
|
127
|
+
}
|
|
128
|
+
const bytes = Buffer.alloc(before.size);
|
|
129
|
+
const count = readFixedBytes(descriptor, bytes, 0);
|
|
130
|
+
const after = fstatSync(descriptor);
|
|
131
|
+
if (after.size !== before.size || count !== before.size) {
|
|
132
|
+
return reject(field, "changed while being read");
|
|
133
|
+
}
|
|
134
|
+
return bytes;
|
|
135
|
+
}
|
|
136
|
+
finally {
|
|
137
|
+
closeSync(descriptor);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Fill a buffer from a descriptor, stopping early at end of file.
|
|
142
|
+
* @param descriptor - Open file descriptor
|
|
143
|
+
* @param buffer - Buffer sized to the expected file length
|
|
144
|
+
* @param offset - Bytes already read
|
|
145
|
+
* @returns Total bytes read
|
|
146
|
+
*/
|
|
147
|
+
function readFixedBytes(descriptor, buffer, offset) {
|
|
148
|
+
if (offset >= buffer.length) {
|
|
149
|
+
return offset;
|
|
150
|
+
}
|
|
151
|
+
const count = readSync(descriptor, buffer, offset, buffer.length - offset, offset);
|
|
152
|
+
return count === 0
|
|
153
|
+
? offset
|
|
154
|
+
: readFixedBytes(descriptor, buffer, offset + count);
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=upstream-attribution-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upstream-attribution-files.js","sourceRoot":"","sources":["../../src/core/upstream-attribution-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,MAAM,GACP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,uDAAuD;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAElD,MAAM,YAAY,GAAG,YAAY,CAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CACpE,CAAC;AACF,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,sBAAsB,GAAG,MAAM,CAAC;AACtC,MAAM,wBAAwB,GAAG,+BAA+B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,qBAAqB;IACnC,IACE,MAAM,CAAC,IAAI,CAAC,0BAA0B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AChB,CAAC;IACD,MAAM,KAAK,GAAG,QAAQ,CACpB,UAAU,EACV,MAAM,EACN,MAAM,EACN,MAAM,CAAC,MAAM,GAAG,MAAM,EACtB,MAAM,CACP,CAAC;IACF,OAAO,KAAK,KAAK,CAAC;QAChB,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/** A field-named, value-sanitized public projection rejection. */
|
|
2
|
+
export declare class UpstreamAttributionRejection extends Error {
|
|
3
|
+
readonly field: string;
|
|
4
|
+
/**
|
|
5
|
+
* Name the rejected field without echoing its value.
|
|
6
|
+
* @param field - Name of the rejected input field
|
|
7
|
+
* @param detail - Value-free reason the field was rejected
|
|
8
|
+
*/
|
|
9
|
+
constructor(field: string, detail: string);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Throw the field-named rejection.
|
|
13
|
+
* @param field - Name of the rejected input field
|
|
14
|
+
* @param detail - Value-free reason the field was rejected
|
|
15
|
+
* @throws {UpstreamAttributionRejection} Always
|
|
16
|
+
*/
|
|
17
|
+
export declare function reject(field: string, detail: string): never;
|
|
18
|
+
/**
|
|
19
|
+
* Require a plain record carrying only allowlisted, accessor-free fields.
|
|
20
|
+
* @param value - Untrusted value
|
|
21
|
+
* @param allowed - Field names the record may carry
|
|
22
|
+
* @param field - Field name reported on rejection
|
|
23
|
+
* @returns The validated record
|
|
24
|
+
*/
|
|
25
|
+
export declare function requireAllowlistedRecord(value: unknown, allowed: readonly string[], field: string): Record<string, unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Read a required data property without invoking accessors.
|
|
28
|
+
* @param record - Validated record
|
|
29
|
+
* @param field - Field to read
|
|
30
|
+
* @returns The stored value
|
|
31
|
+
*/
|
|
32
|
+
export declare function readValue(record: Record<string, unknown>, field: string): unknown;
|
|
33
|
+
/**
|
|
34
|
+
* Read an optional data property without invoking accessors.
|
|
35
|
+
* @param record - Validated record
|
|
36
|
+
* @param field - Field to read
|
|
37
|
+
* @returns The stored value, or undefined when the field is absent
|
|
38
|
+
*/
|
|
39
|
+
export declare function readOptionalValue(record: Record<string, unknown>, field: string): unknown;
|
|
40
|
+
/**
|
|
41
|
+
* Require a plain, dense, accessor-free, bounded array and copy its items.
|
|
42
|
+
* @param value - Untrusted value
|
|
43
|
+
* @param field - Field name reported on rejection
|
|
44
|
+
* @param allowEmpty - Whether a zero-length array is acceptable
|
|
45
|
+
* @returns The array's items, read through their descriptors
|
|
46
|
+
*/
|
|
47
|
+
export declare function requireDenseArray(value: unknown, field: string, allowEmpty: boolean): readonly unknown[];
|
|
48
|
+
/**
|
|
49
|
+
* Require bounded, trimmed, printable ASCII text.
|
|
50
|
+
* @param value - Untrusted value
|
|
51
|
+
* @param field - Field name reported on rejection
|
|
52
|
+
* @param maxLength - Longest accepted string
|
|
53
|
+
* @returns The validated string
|
|
54
|
+
*/
|
|
55
|
+
export declare function requireAsciiString(value: unknown, field: string, maxLength: number): string;
|
|
56
|
+
/**
|
|
57
|
+
* Decode bytes as UTF-8, rejecting any sequence that does not round-trip.
|
|
58
|
+
* @param bytes - Raw file bytes
|
|
59
|
+
* @param field - Field name reported on rejection
|
|
60
|
+
* @returns The decoded text
|
|
61
|
+
*/
|
|
62
|
+
export declare function decodeUtf8(bytes: Buffer, field: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Reject C0/C1 controls (other than tab and newlines) and bidi overrides.
|
|
65
|
+
* @param value - Text to inspect
|
|
66
|
+
* @param field - Field name reported on rejection
|
|
67
|
+
*/
|
|
68
|
+
export declare function assertTextControlsSafe(value: string, field: string): void;
|
|
69
|
+
/**
|
|
70
|
+
* Reject a projected document that is too large or carries a denied shape.
|
|
71
|
+
* @param value - Projected public Markdown
|
|
72
|
+
*/
|
|
73
|
+
export declare function assertPublicTextSafe(value: string): void;
|
|
74
|
+
/**
|
|
75
|
+
* Reject one dynamic field value that carries a denied secret or PII shape.
|
|
76
|
+
* @param value - Field text to inspect
|
|
77
|
+
* @param field - Field name reported on rejection
|
|
78
|
+
*/
|
|
79
|
+
export declare function assertDynamicTextSafe(value: string, field: string): void;
|
|
80
|
+
//# sourceMappingURL=upstream-attribution-guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upstream-attribution-guards.d.ts","sourceRoot":"","sources":["../../src/core/upstream-attribution-guards.ts"],"names":[],"mappings":"AA+BA,kEAAkE;AAClE,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;gBACS,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAK1C;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAE3D;AA4DD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,KAAK,EAAE,MAAM,GACZ,OAAO,CAST;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,KAAK,EAAE,MAAM,GACZ,OAAO,CAST;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,GAClB,SAAS,OAAO,EAAE,CAsBpB;AAuDD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO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