@codyswann/lisa 7.1.5 → 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 -30435
- 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
|
@@ -184,6 +184,186 @@ if [ -f "$project_root/package.json" ] &&
|
|
|
184
184
|
exit 0
|
|
185
185
|
fi
|
|
186
186
|
|
|
187
|
+
# lisa_glob_ere <glob>
|
|
188
|
+
#
|
|
189
|
+
# Set `lisa_glob_ere_result` to an anchored ERE that matches exactly the
|
|
190
|
+
# strings the shell's `case` matches with <glob>, so
|
|
191
|
+
# `[[ $path =~ $lisa_glob_ere_result ]]` can stand in for an unquoted `case`
|
|
192
|
+
# pattern: `*` is any run of characters (slashes included), `?` is one
|
|
193
|
+
# character, `[...]` is a bracket expression (`!` or `^` negates it), a
|
|
194
|
+
# backslash makes the next character literal, and an unterminated `[` is a
|
|
195
|
+
# literal `[`. Every other character is literal, so an ERE metacharacter in a
|
|
196
|
+
# glob is matched as itself rather than obeyed. Returns 1, matching nothing, for a trailing backslash: it escapes
|
|
197
|
+
# nothing, and the shell's matcher then matches nothing either.
|
|
198
|
+
#
|
|
199
|
+
# A range compares code points, as bash 5 does by default (`globasciiranges`)
|
|
200
|
+
# and as minimatch does. Measured against bash 3.2's `case` in the C locale:
|
|
201
|
+
# no mismatch over 3,127 pattern/path pairs and over a second fuzz of 3,795.
|
|
202
|
+
# Two differences remain, both in a bracket. Under a UTF-8 locale bash 3.2
|
|
203
|
+
# orders a range by collation (`[]-a]`). And a bracket holding an unterminated
|
|
204
|
+
# `[.` or `[=`, or an unterminated `[:` after other members (`[a[:]`), is read
|
|
205
|
+
# by bash 3.2 with its earlier members dropped; this reads every member.
|
|
206
|
+
#
|
|
207
|
+
# No subshells: this runs on every agent edit, so each helper appends to a
|
|
208
|
+
# variable instead of printing.
|
|
209
|
+
lisa_glob_ere() {
|
|
210
|
+
local glob="$1" char
|
|
211
|
+
local -i i=0 n=${#1}
|
|
212
|
+
lisa_glob_ere_result=""
|
|
213
|
+
while [ "$i" -lt "$n" ]; do
|
|
214
|
+
char="${glob:i:1}"
|
|
215
|
+
case "$char" in
|
|
216
|
+
"*") lisa_glob_ere_result+=".*" ;;
|
|
217
|
+
"?") lisa_glob_ere_result+="." ;;
|
|
218
|
+
"\\")
|
|
219
|
+
[ "$((i + 1))" -lt "$n" ] || return 1
|
|
220
|
+
i+=1
|
|
221
|
+
lisa_glob_ere_literal "${glob:i:1}"
|
|
222
|
+
;;
|
|
223
|
+
"[")
|
|
224
|
+
if lisa_glob_bracket_end "$glob" "$i"; then
|
|
225
|
+
lisa_glob_bracket_ere "${glob:i+1:lisa_glob_close-i-1}"
|
|
226
|
+
i=$lisa_glob_close
|
|
227
|
+
else
|
|
228
|
+
lisa_glob_ere_literal "["
|
|
229
|
+
fi
|
|
230
|
+
;;
|
|
231
|
+
*) lisa_glob_ere_literal "$char" ;;
|
|
232
|
+
esac
|
|
233
|
+
i+=1
|
|
234
|
+
done
|
|
235
|
+
lisa_glob_ere_result="^${lisa_glob_ere_result}\$"
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
# lisa_glob_ere_literal <char>
|
|
239
|
+
#
|
|
240
|
+
# Append one character to `lisa_glob_ere_result`, written so an ERE matches
|
|
241
|
+
# it literally.
|
|
242
|
+
lisa_glob_ere_literal() {
|
|
243
|
+
case "$1" in
|
|
244
|
+
"^") lisa_glob_ere_result+="\\^" ;;
|
|
245
|
+
"\\") lisa_glob_ere_result+="[\\]" ;;
|
|
246
|
+
"[") lisa_glob_ere_result+="[[]" ;;
|
|
247
|
+
"." | "+" | "(" | ")" | "{" | "}" | "|" | "$" | "*" | "?") lisa_glob_ere_result+="[$1]" ;;
|
|
248
|
+
*) lisa_glob_ere_result+="$1" ;;
|
|
249
|
+
esac
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
# lisa_glob_bracket_end <glob> <open>
|
|
253
|
+
#
|
|
254
|
+
# Set `lisa_glob_close` to the index of the `]` closing the bracket opened
|
|
255
|
+
# at <open>, or return 1 when it is never closed. A `]` straight after the
|
|
256
|
+
# opening (or after its `!`/`^`) is a member, `[:name:]`, `[.x.]` and `[=x=]`
|
|
257
|
+
# are single members, and a backslash escapes the next character, as in the
|
|
258
|
+
# shell's own matcher.
|
|
259
|
+
lisa_glob_bracket_end() {
|
|
260
|
+
local glob="$1" rest name mark
|
|
261
|
+
local -i i=$(($2 + 1)) n=${#1} start
|
|
262
|
+
case "${glob:i:1}" in "!" | "^") i+=1 ;; esac
|
|
263
|
+
start=$i
|
|
264
|
+
while [ "$i" -lt "$n" ]; do
|
|
265
|
+
case "${glob:i:1}" in
|
|
266
|
+
"]")
|
|
267
|
+
if [ "$i" -gt "$start" ]; then
|
|
268
|
+
lisa_glob_close=$i
|
|
269
|
+
return 0
|
|
270
|
+
fi
|
|
271
|
+
;;
|
|
272
|
+
"\\") i+=1 ;;
|
|
273
|
+
"[")
|
|
274
|
+
mark="${glob:i+1:1}"
|
|
275
|
+
case "$mark" in
|
|
276
|
+
":" | "." | "=")
|
|
277
|
+
rest="${glob:i+2}"
|
|
278
|
+
case "$rest" in
|
|
279
|
+
*"$mark]"*)
|
|
280
|
+
name="${rest%%"$mark]"*}"
|
|
281
|
+
i+=$((${#name} + 3))
|
|
282
|
+
;;
|
|
283
|
+
esac
|
|
284
|
+
;;
|
|
285
|
+
esac
|
|
286
|
+
;;
|
|
287
|
+
esac
|
|
288
|
+
i+=1
|
|
289
|
+
done
|
|
290
|
+
return 1
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
# lisa_glob_bracket_ere <body>
|
|
294
|
+
#
|
|
295
|
+
# Append the ERE bracket expression for a glob bracket body to
|
|
296
|
+
# `lisa_glob_ere_result`. An escaped member loses its backslash, and a literal
|
|
297
|
+
# `]`, `^` or `-` is placed where an ERE bracket reads it literally: first, not
|
|
298
|
+
# first, and last. A `[:name:]`, `[.x.]` or `[=x=]` is copied whole; any other
|
|
299
|
+
# `[` is a literal member, placed after the others so it never opens a class
|
|
300
|
+
# the ERE would reject (`[[:]`). A `-` straight after a range is literal, as
|
|
301
|
+
# the shell reads `[a-c-e]`, rather than a second range the ERE would reject.
|
|
302
|
+
lisa_glob_bracket_ere() {
|
|
303
|
+
local body="$1" negate="" members="" close="" open="" caret="" dash=""
|
|
304
|
+
local char next rest
|
|
305
|
+
local -i i=0 n=${#1} after_range=0
|
|
306
|
+
case "${body:0:1}" in "!" | "^") negate="^" i=1 ;; esac
|
|
307
|
+
if [ "${body:i:1}" = "]" ]; then
|
|
308
|
+
close="]"
|
|
309
|
+
i+=1
|
|
310
|
+
fi
|
|
311
|
+
while [ "$i" -lt "$n" ]; do
|
|
312
|
+
char="${body:i:1}"
|
|
313
|
+
next="${body:i+1:1}"
|
|
314
|
+
if [ "$char" = "\\" ] && [ "$((i + 1))" -lt "$n" ]; then
|
|
315
|
+
i+=1
|
|
316
|
+
case "$next" in
|
|
317
|
+
"]") close="]" ;;
|
|
318
|
+
"^") caret="^" ;;
|
|
319
|
+
"-") dash="-" ;;
|
|
320
|
+
*) members+="$next" ;;
|
|
321
|
+
esac
|
|
322
|
+
after_range=0
|
|
323
|
+
elif [ "$char" = "^" ] && [ -z "$members$close" ]; then
|
|
324
|
+
caret="^"
|
|
325
|
+
after_range=0
|
|
326
|
+
elif [ "$char" = "[" ]; then
|
|
327
|
+
rest="${body:i+2}"
|
|
328
|
+
case "$next" in
|
|
329
|
+
":" | "." | "=")
|
|
330
|
+
case "$rest" in
|
|
331
|
+
*"$next]"*)
|
|
332
|
+
rest="${rest%%"$next]"*}"
|
|
333
|
+
members+="[${next}${rest}${next}]"
|
|
334
|
+
i+=$((${#rest} + 3))
|
|
335
|
+
;;
|
|
336
|
+
# An unterminated `[:` opens nothing, and the shell drops its
|
|
337
|
+
# `[`; any other unterminated opener leaves a literal `[`.
|
|
338
|
+
*) if [ "$next" != ":" ]; then open="["; fi ;;
|
|
339
|
+
esac
|
|
340
|
+
;;
|
|
341
|
+
*) open="[" ;;
|
|
342
|
+
esac
|
|
343
|
+
after_range=0
|
|
344
|
+
elif [ "$char" = "-" ] && [ "$after_range" -eq 1 ]; then
|
|
345
|
+
dash="-"
|
|
346
|
+
after_range=0
|
|
347
|
+
elif [ "$char" = "-" ] && [ -n "$members$close" ] && [ "$((i + 1))" -lt "$n" ]; then
|
|
348
|
+
members+="-${next}"
|
|
349
|
+
i+=1
|
|
350
|
+
after_range=1
|
|
351
|
+
elif [ "$char" = "-" ]; then
|
|
352
|
+
if [ -z "$members$close" ]; then members+="-"; else dash="-"; fi
|
|
353
|
+
after_range=0
|
|
354
|
+
else
|
|
355
|
+
members+="$char"
|
|
356
|
+
after_range=0
|
|
357
|
+
fi
|
|
358
|
+
i+=1
|
|
359
|
+
done
|
|
360
|
+
if [ -z "$close$members$open$dash" ]; then
|
|
361
|
+
members="$caret"
|
|
362
|
+
caret=""
|
|
363
|
+
fi
|
|
364
|
+
lisa_glob_ere_result+="[${negate}${close}${members}${open}${caret}${dash}]"
|
|
365
|
+
}
|
|
366
|
+
|
|
187
367
|
# Whether the project has claimed a path in `.lisaignore`.
|
|
188
368
|
#
|
|
189
369
|
# THIS IS THE OWNERSHIP QUESTION, and it decides whether blocking is right at
|
|
@@ -228,32 +408,26 @@ lisaignored() {
|
|
|
228
408
|
# `\!x` is a literal leading `!`, not a negation.
|
|
229
409
|
\\!*) pattern="${pattern#\\}" ;;
|
|
230
410
|
esac
|
|
231
|
-
local selected=1
|
|
411
|
+
local selected=1 pattern_ere=""
|
|
412
|
+
# A trailing backslash leaves no ERE, and such a pattern selects nothing.
|
|
413
|
+
if lisa_glob_ere "$pattern"; then pattern_ere="$lisa_glob_ere_result"; fi
|
|
232
414
|
case "$pattern" in
|
|
233
415
|
*/)
|
|
234
416
|
case "$rel" in "${pattern%/}"/* | "${pattern%/}") selected=0 ;; esac
|
|
235
417
|
;;
|
|
236
418
|
esac
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
# `disable=SC2254 -- <prose>`, the trailing words are read as more
|
|
243
|
-
# directive keys: the directive fails with SC1072/SC1073, shellcheck
|
|
244
|
-
# stops checking the rest of THIS FILE, and SC2254 is left unsuppressed
|
|
245
|
-
# as well. Measured with shellcheck 0.11.0. Do not rejoin these lines.
|
|
246
|
-
# shellcheck disable=SC2254
|
|
247
|
-
case "$rel" in $pattern) selected=0 ;; esac
|
|
419
|
+
# The pattern is a glob on purpose. It is matched through its ERE, which
|
|
420
|
+
# `lisa_glob_ere` builds to select exactly what an unquoted `case`
|
|
421
|
+
# pattern would, so no expansion is left unquoted.
|
|
422
|
+
if [ "$selected" -ne 0 ] && [ -n "$pattern_ere" ]; then
|
|
423
|
+
if [[ $rel =~ $pattern_ere ]]; then selected=0; fi
|
|
248
424
|
fi
|
|
249
|
-
if [ "$selected" -ne 0 ]; then
|
|
425
|
+
if [ "$selected" -ne 0 ] && [ -n "$pattern_ere" ]; then
|
|
250
426
|
case "$pattern" in
|
|
251
427
|
*/*) ;;
|
|
252
428
|
*)
|
|
253
|
-
# Ditto, matched against the basename
|
|
254
|
-
|
|
255
|
-
# shellcheck disable=SC2254
|
|
256
|
-
case "${rel##*/}" in $pattern) selected=0 ;; esac
|
|
429
|
+
# Ditto, matched against the basename.
|
|
430
|
+
if [[ ${rel##*/} =~ $pattern_ere ]]; then selected=0; fi
|
|
257
431
|
;;
|
|
258
432
|
esac
|
|
259
433
|
fi
|
|
@@ -436,9 +610,16 @@ generated_path() {
|
|
|
436
610
|
# which side it is on.
|
|
437
611
|
ledger_tracked() {
|
|
438
612
|
local rel="$1"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
613
|
+
# The ledger's data is JSON since CodySwannGT/lisa#4929; an older package
|
|
614
|
+
# still carries it inside the compiled module, so read whichever exists.
|
|
615
|
+
local ledger
|
|
616
|
+
for ledger in "$package_root/dist/core/lisa-owned-hash-ledger.json" \
|
|
617
|
+
"$package_root/dist/core/lisa-owned-hash-ledger.js"; do
|
|
618
|
+
[ -f "$ledger" ] || continue
|
|
619
|
+
grep -q "\"$rel\"" "$ledger" 2>/dev/null
|
|
620
|
+
return
|
|
621
|
+
done
|
|
622
|
+
return 1
|
|
442
623
|
}
|
|
443
624
|
|
|
444
625
|
refuse() {
|
|
@@ -37,7 +37,7 @@ allow() {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
deny() {
|
|
40
|
-
printf '%s\n'
|
|
40
|
+
printf '%s\n' "{\"decision\":\"deny\",\"reason\":\"This command bypasses Lisa pre-commit/pre-push quality gates (--no-verify or its short form -n, HUSKY=0, or core.hooksPath disabling). \`git commit -n\` and a cluster such as \`-nm \\\"msg\\\"\` skip pre-commit exactly as completely as the long flag. Fix the underlying issue (security audit, lint, typecheck, tests, formatting) instead. If a fix is genuinely impossible, make the risk-acceptance decision yourself: add a specific documented ignore with its reason and an expiry (under humanGate.mode strict, ask the user to make that decision instead); never bypass the hook.\"}"
|
|
41
41
|
exit 0
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -379,8 +379,7 @@ V2_VIOLATIONS=""
|
|
|
379
379
|
# exit becomes its own, named violation.
|
|
380
380
|
v2_evaluate_contract() {
|
|
381
381
|
local structural digests
|
|
382
|
-
structural=$(v2_contract_violations)
|
|
383
|
-
if [ "$?" -ne 0 ]; then
|
|
382
|
+
if ! structural=$(v2_contract_violations); then
|
|
384
383
|
V2_VIOLATIONS="the v2 claim/evidence structure could not be evaluated - \"claims\" and \"evidence\" must be arrays of objects and \"artifact\" an object. A verdict the gate cannot read is not a verdict with no violations"
|
|
385
384
|
return 0
|
|
386
385
|
fi
|
|
@@ -3,21 +3,6 @@
|
|
|
3
3
|
# Runs on TaskUpdate to remind about updating linked tickets
|
|
4
4
|
# Non-blocking (exit 0) - this is a reminder, not enforcement
|
|
5
5
|
|
|
6
|
-
# Temporarily
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
PLANS_DIR="${CLAUDE_PROJECT_DIR}/plans"
|
|
10
|
-
|
|
11
|
-
# Find the active plan file (most recently modified .md in plans/)
|
|
12
|
-
ACTIVE_PLAN=$(find "$PLANS_DIR" -maxdepth 1 -name "*.md" -type f 2>/dev/null | head -1)
|
|
13
|
-
|
|
14
|
-
if [ -z "$ACTIVE_PLAN" ]; then
|
|
15
|
-
exit 0
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
# Check if the plan contains a ticket URL (JIRA, Linear, GitHub Issues)
|
|
19
|
-
if grep -qiE "(https?://.*(atlassian|jira|linear|github\.com/.*/issues))" "$ACTIVE_PLAN" 2>/dev/null; then
|
|
20
|
-
echo "REMINDER: This plan is linked to a ticket. Consider running /jira:sync to update the ticket with current progress."
|
|
21
|
-
fi
|
|
22
|
-
|
|
6
|
+
# Temporarily disabled. The reminder that followed this exit never ran; it is in
|
|
7
|
+
# git history (74981f5be1) for whoever re-enables the hook.
|
|
23
8
|
exit 0
|
|
@@ -29,136 +29,12 @@ set -euo pipefail
|
|
|
29
29
|
|
|
30
30
|
INPUT=$(cat)
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Session ID is required
|
|
40
|
-
if [[ -z "$SESSION_ID" ]]; then
|
|
41
|
-
exit 0
|
|
42
|
-
fi
|
|
43
|
-
|
|
44
|
-
# Resolve plans directory from settings (default ./plans)
|
|
45
|
-
PLANS_DIR="./plans"
|
|
46
|
-
SETTINGS_FILE="${CLAUDE_PROJECT_DIR:-.}/.claude/settings.json"
|
|
47
|
-
if [[ -f "$SETTINGS_FILE" ]]; then
|
|
48
|
-
CONFIGURED_DIR=$(jq -r '.plansDirectory // empty' "$SETTINGS_FILE")
|
|
49
|
-
if [[ -n "$CONFIGURED_DIR" ]]; then
|
|
50
|
-
PLANS_DIR="$CONFIGURED_DIR"
|
|
51
|
-
fi
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
# Debug logging
|
|
55
|
-
DEBUG_LOG="$PLANS_DIR/.track-plan-debug.log"
|
|
56
|
-
|
|
57
|
-
log_debug() {
|
|
58
|
-
printf '[%s] [%s] [%s] %s\n' \
|
|
59
|
-
"$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
|
60
|
-
"$SESSION_ID" \
|
|
61
|
-
"$HOOK_EVENT" \
|
|
62
|
-
"$1" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
# Session-specific marker file for reliable active-plan detection
|
|
66
|
-
MARKER_FILE="$PLANS_DIR/.active-plan-${SESSION_ID}"
|
|
67
|
-
|
|
68
|
-
# Clean stale marker files older than 24h
|
|
69
|
-
find "$PLANS_DIR" -name ".active-plan-*" -mmin +1440 -delete 2>/dev/null || true
|
|
70
|
-
|
|
71
|
-
PLAN_FILE=""
|
|
72
|
-
RESOLUTION_METHOD=""
|
|
73
|
-
|
|
74
|
-
if [[ "$HOOK_EVENT" == "PostToolUse" ]]; then
|
|
75
|
-
# Trigger A: Plan file was written/edited
|
|
76
|
-
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty')
|
|
77
|
-
|
|
78
|
-
if [[ -z "$FILE_PATH" ]]; then
|
|
79
|
-
log_debug "PostToolUse: no file_path in tool_input, exiting"
|
|
80
|
-
exit 0
|
|
81
|
-
fi
|
|
82
|
-
|
|
83
|
-
# Resolve PLANS_DIR to absolute path for comparison
|
|
84
|
-
ABS_PLANS_DIR=$(cd "$PLANS_DIR" 2>/dev/null && pwd)
|
|
85
|
-
|
|
86
|
-
if [[ -z "$ABS_PLANS_DIR" ]]; then
|
|
87
|
-
log_debug "PostToolUse: could not resolve PLANS_DIR=$PLANS_DIR to absolute path, exiting"
|
|
88
|
-
exit 0
|
|
89
|
-
fi
|
|
90
|
-
|
|
91
|
-
# Check if the written file is in the plans directory
|
|
92
|
-
if [[ "$FILE_PATH" == "$ABS_PLANS_DIR"/* ]]; then
|
|
93
|
-
PLAN_FILE="$FILE_PATH"
|
|
94
|
-
RESOLUTION_METHOD="PostToolUse-direct"
|
|
95
|
-
log_debug "PostToolUse: matched plan file=$PLAN_FILE"
|
|
96
|
-
|
|
97
|
-
# Save marker so UserPromptSubmit can find this plan reliably
|
|
98
|
-
echo "$PLAN_FILE" > "$MARKER_FILE"
|
|
99
|
-
log_debug "PostToolUse: saved marker file=$MARKER_FILE"
|
|
100
|
-
else
|
|
101
|
-
log_debug "PostToolUse: file_path=$FILE_PATH not in plans dir=$ABS_PLANS_DIR, exiting"
|
|
102
|
-
exit 0
|
|
103
|
-
fi
|
|
104
|
-
|
|
105
|
-
elif [[ "$HOOK_EVENT" == "UserPromptSubmit" ]]; then
|
|
106
|
-
# Trigger B: Find the active plan file
|
|
107
|
-
# Priority 1: Session-specific marker file (reliable — set by PostToolUse when plan was written)
|
|
108
|
-
if [[ -f "$MARKER_FILE" ]]; then
|
|
109
|
-
PLAN_FILE=$(cat "$MARKER_FILE")
|
|
110
|
-
RESOLUTION_METHOD="marker-file"
|
|
111
|
-
log_debug "UserPromptSubmit: resolved via marker file=$PLAN_FILE"
|
|
112
|
-
else
|
|
113
|
-
# Priority 2: Most recently CREATED file (ls -tU on macOS sorts by birth time)
|
|
114
|
-
PLAN_FILE=$(ls -tU "$PLANS_DIR"/*.md 2>/dev/null | head -1)
|
|
115
|
-
RESOLUTION_METHOD="fallback-ls-tU"
|
|
116
|
-
log_debug "UserPromptSubmit: no marker file, fallback ls -tU resolved=$PLAN_FILE"
|
|
117
|
-
fi
|
|
118
|
-
|
|
119
|
-
if [[ -z "$PLAN_FILE" || ! -f "$PLAN_FILE" ]]; then
|
|
120
|
-
log_debug "UserPromptSubmit: no valid plan file found, exiting"
|
|
121
|
-
exit 0
|
|
122
|
-
fi
|
|
123
|
-
else
|
|
124
|
-
exit 0
|
|
125
|
-
fi
|
|
126
|
-
|
|
127
|
-
# Verify the plan file exists
|
|
128
|
-
if [[ ! -f "$PLAN_FILE" ]]; then
|
|
129
|
-
log_debug "plan file=$PLAN_FILE does not exist, exiting"
|
|
130
|
-
exit 0
|
|
131
|
-
fi
|
|
132
|
-
|
|
133
|
-
# Check if session ID already exists in the ## Sessions section (dedup)
|
|
134
|
-
# Only search within the Sessions section to avoid false positives from session IDs
|
|
135
|
-
# appearing in plan content (e.g., scratchpad paths contain session IDs)
|
|
136
|
-
if sed -n '/^## Sessions$/,$p' "$PLAN_FILE" 2>/dev/null | grep -qF "$SESSION_ID"; then
|
|
137
|
-
log_debug "dedup: session ID already in $PLAN_FILE sessions section (resolved via $RESOLUTION_METHOD), skipping write"
|
|
138
|
-
exit 0
|
|
139
|
-
fi
|
|
140
|
-
|
|
141
|
-
# Determine phase from permission_mode
|
|
142
|
-
PHASE=$( [[ "$PERMISSION_MODE" == "plan" ]] && echo "plan" || echo "implement" )
|
|
143
|
-
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
144
|
-
|
|
145
|
-
# Check if ## Sessions section exists
|
|
146
|
-
if grep -q "^## Sessions" "$PLAN_FILE" 2>/dev/null; then
|
|
147
|
-
# Append row to existing table
|
|
148
|
-
printf '| %s | %s | %s |\n' "$SESSION_ID" "$TIMESTAMP" "$PHASE" >> "$PLAN_FILE"
|
|
149
|
-
else
|
|
150
|
-
# Create ## Sessions section at end of file
|
|
151
|
-
{
|
|
152
|
-
echo ""
|
|
153
|
-
echo "## Sessions"
|
|
154
|
-
echo ""
|
|
155
|
-
echo "<!-- Auto-maintained by track-plan-sessions.sh -->"
|
|
156
|
-
echo "| Session ID | First Seen | Phase |"
|
|
157
|
-
echo "|------------|------------|-------|"
|
|
158
|
-
printf '| %s | %s | %s |\n' "$SESSION_ID" "$TIMESTAMP" "$PHASE"
|
|
159
|
-
} >> "$PLAN_FILE"
|
|
160
|
-
fi
|
|
161
|
-
|
|
162
|
-
log_debug "wrote session to $PLAN_FILE (resolved via $RESOLUTION_METHOD, phase=$PHASE)"
|
|
32
|
+
# Temporarily disabled. The hook still reads its event and parses the three
|
|
33
|
+
# fields it used, so a malformed event fails exactly as it did, and then exits.
|
|
34
|
+
# The tracking body that followed this exit never ran; it is in git history
|
|
35
|
+
# (74981f5be1) for whoever re-enables the hook.
|
|
36
|
+
printf '%s\n' "$INPUT" | jq -r '.session_id // empty' >/dev/null
|
|
37
|
+
printf '%s\n' "$INPUT" | jq -r '.permission_mode // "default"' >/dev/null
|
|
38
|
+
printf '%s\n' "$INPUT" | jq -r '.hook_event_name // empty' >/dev/null
|
|
163
39
|
|
|
164
40
|
exit 0
|
|
@@ -424,6 +424,7 @@ is_observer_stage() {
|
|
|
424
424
|
# is never claimed from either.
|
|
425
425
|
assert_observer_reads() {
|
|
426
426
|
local profile stage denied unreachable surface probe question output status
|
|
427
|
+
local probe_args
|
|
427
428
|
profile="$1"
|
|
428
429
|
stage="$2"
|
|
429
430
|
denied=""
|
|
@@ -431,8 +432,9 @@ assert_observer_reads() {
|
|
|
431
432
|
|
|
432
433
|
while IFS="$(printf '\t')" read -r surface probe question; do
|
|
433
434
|
[ -n "$surface" ] || continue
|
|
435
|
+
read -r -a probe_args <<<"$probe"
|
|
434
436
|
set +e
|
|
435
|
-
output="$(AWS_PAGER="" aws --profile "$profile" $
|
|
437
|
+
output="$(AWS_PAGER="" aws --profile "$profile" "${probe_args[@]}" 2>&1)"
|
|
436
438
|
status=$?
|
|
437
439
|
set -e
|
|
438
440
|
[ "$status" -eq 0 ] && continue
|
|
@@ -72,11 +72,24 @@ values_file="$(
|
|
|
72
72
|
# Match the managed block's AWS poison removal, then export the artifact's
|
|
73
73
|
# values only for this session-start process and its project-hook child.
|
|
74
74
|
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
# The authority process proved this exact path and its complete writer format:
|
|
76
|
+
# two comment lines, then one `export NAME='value'` line per variable, where a
|
|
77
|
+
# quote inside the value is written `'\''`. That format is read here as data
|
|
78
|
+
# rather than sourced as code, so no byte of the artifact is executed, and the
|
|
79
|
+
# result is exactly what sourcing it would export.
|
|
80
|
+
values_quote="'\\''"
|
|
81
|
+
values_apostrophe="'"
|
|
82
|
+
while IFS= read -r values_line; do
|
|
83
|
+
case "${values_line}" in
|
|
84
|
+
"#"*) continue ;;
|
|
85
|
+
esac
|
|
86
|
+
values_name="${values_line#export }"
|
|
87
|
+
values_name="${values_name%%=*}"
|
|
88
|
+
values_value="${values_line#export "${values_name}"="${values_apostrophe}"}"
|
|
89
|
+
values_value="${values_value%"${values_apostrophe}"}"
|
|
90
|
+
export "${values_name}=${values_value//"${values_quote}"/${values_apostrophe}}"
|
|
91
|
+
done <"${values_file}"
|
|
92
|
+
unset values_quote values_apostrophe values_line values_name values_value
|
|
80
93
|
|
|
81
94
|
# A project hook is part of the remote toolchain contract too. It covers tools
|
|
82
95
|
# that cannot be expressed by the pinned manifest, so skipping it on a cached
|
|
@@ -102,14 +102,22 @@ export class ReactNativeCanvas {
|
|
|
102
102
|
releasePointerCapture() {}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* three.js and R3F type their canvas as a DOM canvas; on native it is a
|
|
107
|
+
* react-native-wgpu canvas wrapped to the subset three.js actually calls.
|
|
108
|
+
* This is the one, named place that bridge is declared, instead of an
|
|
109
|
+
* error-suppression comment at every call site.
|
|
110
|
+
*/
|
|
111
|
+
export const toDomCanvas = (canvas: ReactNativeCanvas): HTMLCanvasElement =>
|
|
112
|
+
canvas as unknown as HTMLCanvasElement;
|
|
113
|
+
|
|
105
114
|
export const makeWebGPURenderer = (
|
|
106
115
|
context: GPUCanvasContext,
|
|
107
116
|
{ antialias = true }: { antialias?: boolean } = {}
|
|
108
117
|
) =>
|
|
109
118
|
new THREE.WebGPURenderer({
|
|
110
119
|
antialias,
|
|
111
|
-
|
|
112
|
-
canvas: new ReactNativeCanvas(context.canvas),
|
|
120
|
+
canvas: toDomCanvas(new ReactNativeCanvas(context.canvas)),
|
|
113
121
|
context,
|
|
114
122
|
});
|
|
115
123
|
```
|
|
@@ -133,6 +141,7 @@ import { Canvas, type CanvasRef } from "react-native-wgpu";
|
|
|
133
141
|
import {
|
|
134
142
|
makeWebGPURenderer,
|
|
135
143
|
ReactNativeCanvas,
|
|
144
|
+
toDomCanvas,
|
|
136
145
|
} from "@/lib/make-webgpu-renderer";
|
|
137
146
|
|
|
138
147
|
// Extend THREE namespace for R3F - add all components you use
|
|
@@ -178,8 +187,7 @@ export const FiberCanvas = ({
|
|
|
178
187
|
const context = canvasRef.current!.getContext("webgpu")!;
|
|
179
188
|
const renderer = makeWebGPURenderer(context);
|
|
180
189
|
|
|
181
|
-
|
|
182
|
-
const canvas = new ReactNativeCanvas(context.canvas) as HTMLCanvasElement;
|
|
190
|
+
const canvas = toDomCanvas(new ReactNativeCanvas(context.canvas));
|
|
183
191
|
canvas.width = canvas.clientWidth * PixelRatio.get();
|
|
184
192
|
canvas.height = canvas.clientHeight * PixelRatio.get();
|
|
185
193
|
const size = {
|
|
@@ -201,8 +209,9 @@ export const FiberCanvas = ({
|
|
|
201
209
|
frameloop: "always",
|
|
202
210
|
dpr: 1,
|
|
203
211
|
onCreated: async (state: RootState) => {
|
|
204
|
-
//
|
|
205
|
-
|
|
212
|
+
// R3F types state.gl as a WebGL renderer; `renderer` is the
|
|
213
|
+
// WebGPURenderer created above, typed with its init method.
|
|
214
|
+
await renderer.init();
|
|
206
215
|
const renderFrame = state.gl.render.bind(state.gl);
|
|
207
216
|
state.gl.render = (s: THREE.Scene, c: THREE.Camera) => {
|
|
208
217
|
renderFrame(s, c);
|
|
@@ -454,11 +463,12 @@ extend({
|
|
|
454
463
|
|
|
455
464
|
**Problem:** Type mismatches between three.js and R3F
|
|
456
465
|
|
|
457
|
-
**Solution:**
|
|
466
|
+
**Solution:** Keep the precise types instead of silencing the checker. Call WebGPU-only methods on the `WebGPURenderer` you created (R3F types `state.gl` as a WebGL renderer), and cross the native-canvas/DOM-canvas boundary through the single `toDomCanvas` adapter:
|
|
458
467
|
|
|
459
468
|
```tsx
|
|
460
|
-
|
|
461
|
-
|
|
469
|
+
const renderer = makeWebGPURenderer(context);
|
|
470
|
+
// ...
|
|
471
|
+
await renderer.init();
|
|
462
472
|
```
|
|
463
473
|
|
|
464
474
|
### 3. Blank Screen
|
|
@@ -256,16 +256,28 @@ import { useCssElement } from "react-native-css";
|
|
|
256
256
|
import React from "react";
|
|
257
257
|
import { StyleSheet } from "react-native";
|
|
258
258
|
import Animated from "react-native-reanimated";
|
|
259
|
-
import {
|
|
259
|
+
import {
|
|
260
|
+
Image as RNImage,
|
|
261
|
+
type ImageContentFit,
|
|
262
|
+
type ImageContentPosition,
|
|
263
|
+
type ImageStyle,
|
|
264
|
+
} from "expo-image";
|
|
260
265
|
|
|
261
266
|
const AnimatedExpoImage = Animated.createAnimatedComponent(RNImage);
|
|
262
267
|
|
|
263
268
|
export type ImageProps = React.ComponentProps<typeof Image>;
|
|
264
269
|
|
|
270
|
+
/** CSS image properties react-native-css emits that expo-image takes as props. */
|
|
271
|
+
interface CssImageStyle {
|
|
272
|
+
objectFit?: ImageContentFit;
|
|
273
|
+
objectPosition?: ImageContentPosition;
|
|
274
|
+
}
|
|
275
|
+
|
|
265
276
|
function CSSImage(props: React.ComponentProps<typeof AnimatedExpoImage>) {
|
|
266
|
-
//
|
|
267
|
-
const
|
|
277
|
+
// Remap objectFit/objectPosition styles to the contentFit/contentPosition props.
|
|
278
|
+
const flattened: ImageStyle & CssImageStyle =
|
|
268
279
|
StyleSheet.flatten(props.style) || {};
|
|
280
|
+
const { objectFit, objectPosition, ...style } = flattened;
|
|
269
281
|
|
|
270
282
|
return (
|
|
271
283
|
<AnimatedExpoImage
|
|
@@ -275,7 +287,6 @@ function CSSImage(props: React.ComponentProps<typeof AnimatedExpoImage>) {
|
|
|
275
287
|
source={
|
|
276
288
|
typeof props.source === "string" ? { uri: props.source } : props.source
|
|
277
289
|
}
|
|
278
|
-
// @ts-expect-error: Style is remapped above
|
|
279
290
|
style={style}
|
|
280
291
|
/>
|
|
281
292
|
);
|