@codyswann/lisa 7.1.5 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +30520 -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 +5 -5
- 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,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ownership proof for legacy Codex hook links: decides whether a symlink in a
|
|
3
|
+
* host's `.codex/` points at a shipped Lisa source (in this checkout, its
|
|
4
|
+
* compiled twin, or an installed `@codyswann/lisa` package) rather than at a
|
|
5
|
+
* host path that merely shares a suffix.
|
|
6
|
+
* @module codex/hooks-source-links
|
|
7
|
+
*/
|
|
8
|
+
import * as fse from "fs-extra";
|
|
9
|
+
import { lstat, readFile, readlink } from "node:fs/promises";
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
/**
|
|
12
|
+
* Admit links to known Lisa sources, not host paths with similar suffixes.
|
|
13
|
+
* Canonical installed-package paths also recover genuinely dangling links.
|
|
14
|
+
* @param destination Host script path.
|
|
15
|
+
* @param source Exact shipped source.
|
|
16
|
+
* @param lisaDir Verified Lisa package root.
|
|
17
|
+
* @param destDir Host root.
|
|
18
|
+
* @returns Whether the catalog owns this legacy representation.
|
|
19
|
+
*/
|
|
20
|
+
export async function isManagedSourceLink(destination, source, lisaDir, destDir) {
|
|
21
|
+
const stat = await lstat(destination).catch(() => undefined);
|
|
22
|
+
if (!stat?.isSymbolicLink())
|
|
23
|
+
return false;
|
|
24
|
+
const target = path.resolve(path.dirname(destination), await readlink(destination));
|
|
25
|
+
const relative = path.relative(lisaDir, source);
|
|
26
|
+
if (target === path.resolve(source))
|
|
27
|
+
return true;
|
|
28
|
+
if (relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative))
|
|
29
|
+
return false;
|
|
30
|
+
const variants = sourceLocationVariants(relative);
|
|
31
|
+
if (variants.some(file => target === path.resolve(lisaDir, file)))
|
|
32
|
+
return true;
|
|
33
|
+
const installedRoot = path.join(destDir, "node_modules/@codyswann/lisa");
|
|
34
|
+
return isLisaPackageTarget(target, variants, installedRoot);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Source and compiled trees contain the same legacy bundled scripts.
|
|
38
|
+
* @param relative Source path within the verified Lisa package.
|
|
39
|
+
* @returns Exact supported source locations within that package.
|
|
40
|
+
*/
|
|
41
|
+
function sourceLocationVariants(relative) {
|
|
42
|
+
const tree = ["src", "dist"].find(directory => relative.startsWith(path.join(directory, "codex", "scripts") + path.sep));
|
|
43
|
+
return tree === undefined
|
|
44
|
+
? [relative]
|
|
45
|
+
: [
|
|
46
|
+
relative,
|
|
47
|
+
path.join(tree === "src" ? "dist" : "src", "codex", "scripts", path.basename(relative)),
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Verify old package/store roots rather than relying on their directory layout.
|
|
52
|
+
* @param target Resolved legacy link target.
|
|
53
|
+
* @param variants Exact supported paths within a Lisa package.
|
|
54
|
+
* @param installedRoot Canonical host package path, including dangling installs.
|
|
55
|
+
* @returns Whether positive package identity owns this expected source path.
|
|
56
|
+
*/
|
|
57
|
+
async function isLisaPackageTarget(target, variants, installedRoot) {
|
|
58
|
+
const roots = variants
|
|
59
|
+
.filter(file => target.endsWith(path.sep + file))
|
|
60
|
+
.map(file => target.slice(0, -(file.length + 1)));
|
|
61
|
+
const verified = await Promise.all(roots.map(async (root) => {
|
|
62
|
+
if (root === path.resolve(installedRoot) && !(await fse.pathExists(root)))
|
|
63
|
+
return true;
|
|
64
|
+
const metadata = await readFile(path.join(root, "package.json"), "utf8")
|
|
65
|
+
.then(raw => JSON.parse(raw))
|
|
66
|
+
.catch(() => undefined);
|
|
67
|
+
return (typeof metadata === "object" &&
|
|
68
|
+
metadata !== null &&
|
|
69
|
+
"name" in metadata &&
|
|
70
|
+
metadata.name === "@codyswann/lisa");
|
|
71
|
+
}));
|
|
72
|
+
return verified.some(Boolean);
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=hooks-source-links.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-source-links.js","sourceRoot":"","sources":["../../src/codex/hooks-source-links.ts"],"names":[],"mappings":"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"}
|
|
@@ -37,7 +37,7 @@ if ! command -v jq >/dev/null 2>&1; then
|
|
|
37
37
|
fi
|
|
38
38
|
|
|
39
39
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
40
|
-
# shellcheck source
|
|
40
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
41
41
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
42
42
|
|
|
43
43
|
# A missing extractor means no path can be resolved: permit, for the same
|
|
@@ -59,7 +59,7 @@ fi
|
|
|
59
59
|
# there is no `cd` here — the Claude copy needs one because a PreToolUse hook
|
|
60
60
|
# there establishes none.
|
|
61
61
|
# ---------------------------------------------------------------------------
|
|
62
|
-
# shellcheck source
|
|
62
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
63
63
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
64
64
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks pre-tool migration-provenance)"; then
|
|
65
65
|
LISA_GATE_STATUS=0
|
|
@@ -54,7 +54,7 @@ MSG
|
|
|
54
54
|
fi
|
|
55
55
|
|
|
56
56
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
57
|
-
# shellcheck source
|
|
57
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
58
58
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
59
59
|
|
|
60
60
|
# Comment-syntax-only match: // or /* opener, optional whitespace, directive.
|
|
@@ -99,7 +99,7 @@ MSG
|
|
|
99
99
|
# ONE PROPERTY, so there is no all-or-nothing question here: this hook proves
|
|
100
100
|
# `suppression-residue` and nothing else.
|
|
101
101
|
# ---------------------------------------------------------------------------
|
|
102
|
-
# shellcheck source
|
|
102
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
103
103
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
104
104
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks pre-tool suppression-residue)"; then
|
|
105
105
|
# FAIL CLOSED on a missing extractor. Without it the path list is EMPTY, the
|
|
@@ -205,7 +205,7 @@ read_before() {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
# The edit object $1: tool_input itself for Edit, edits[$1] for MultiEdit.
|
|
208
|
-
EDIT_AT=
|
|
208
|
+
EDIT_AT=".tool_input | (if (.edits // null) != null then .edits[\$i] else . end)"
|
|
209
209
|
|
|
210
210
|
# One string field ($2) of edit $1, empty when absent.
|
|
211
211
|
edit_field() {
|
|
@@ -13,7 +13,7 @@ JSON_INPUT="$(cat)"
|
|
|
13
13
|
command -v jq >/dev/null 2>&1 || exit 0
|
|
14
14
|
|
|
15
15
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
16
|
-
# shellcheck source
|
|
16
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
17
17
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
18
18
|
|
|
19
19
|
# ---------------------------------------------------------------------------
|
|
@@ -29,7 +29,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
29
29
|
# that proves more than one stands down only when EVERY one is declared, or it
|
|
30
30
|
# would silently stop proving the others.
|
|
31
31
|
# ---------------------------------------------------------------------------
|
|
32
|
-
# shellcheck source
|
|
32
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
33
33
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
34
34
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks post-tool format-conformance)"; then
|
|
35
35
|
LISA_GATE_STATUS=0
|
|
@@ -12,7 +12,7 @@ JSON_INPUT="$(cat)"
|
|
|
12
12
|
command -v jq >/dev/null 2>&1 || exit 0
|
|
13
13
|
|
|
14
14
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
15
|
-
# shellcheck source
|
|
15
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
16
16
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
17
17
|
|
|
18
18
|
# ---------------------------------------------------------------------------
|
|
@@ -28,7 +28,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
28
28
|
# that proves more than one stands down only when EVERY one is declared, or it
|
|
29
29
|
# would silently stop proving the others.
|
|
30
30
|
# ---------------------------------------------------------------------------
|
|
31
|
-
# shellcheck source
|
|
31
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
32
32
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
33
33
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks post-tool code-style)"; then
|
|
34
34
|
LISA_GATE_STATUS=0
|
|
@@ -93,9 +93,9 @@ lisa_edit_gate_tasks() {
|
|
|
93
93
|
# not.
|
|
94
94
|
LISA_GATE_IDS="$*"
|
|
95
95
|
export LISA_GATE_IDS
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
# The filter is read from a quoted heredoc so its JavaScript reaches node
|
|
97
|
+
# byte for byte: no shell expansion applies to it.
|
|
98
|
+
_lisa_filter="$(cat <<'LISA_EDIT_GATE_FILTER'
|
|
99
99
|
let raw = "";
|
|
100
100
|
process.stdin.on("data", chunk => { raw += chunk }).on("end", () => {
|
|
101
101
|
let resolved;
|
|
@@ -113,18 +113,22 @@ process.stdin.on("data", chunk => { raw += chunk }).on("end", () => {
|
|
|
113
113
|
if (commands.length === 0) process.exit(1);
|
|
114
114
|
process.stdout.write(commands.join("\n"));
|
|
115
115
|
});
|
|
116
|
-
|
|
116
|
+
LISA_EDIT_GATE_FILTER
|
|
117
|
+
)"
|
|
118
|
+
_lisa_out="$(
|
|
119
|
+
node "$_lisa_registry" list \
|
|
120
|
+
--moment="$_lisa_moment" --json 2>/dev/null | node -e "$_lisa_filter"
|
|
117
121
|
)" || {
|
|
118
|
-
unset _lisa_moment _lisa_registry _lisa_out
|
|
122
|
+
unset _lisa_moment _lisa_registry _lisa_filter _lisa_out
|
|
119
123
|
return 1
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
[ -n "$_lisa_out" ] || {
|
|
123
|
-
unset _lisa_moment _lisa_registry _lisa_out
|
|
127
|
+
unset _lisa_moment _lisa_registry _lisa_filter _lisa_out
|
|
124
128
|
return 1
|
|
125
129
|
}
|
|
126
130
|
printf '%s' "$_lisa_out"
|
|
127
|
-
unset _lisa_moment _lisa_registry _lisa_out
|
|
131
|
+
unset _lisa_moment _lisa_registry _lisa_filter _lisa_out
|
|
128
132
|
return 0
|
|
129
133
|
}
|
|
130
134
|
|
|
@@ -138,15 +142,15 @@ lisa_edit_gate_run() {
|
|
|
138
142
|
shift
|
|
139
143
|
LISA_EDITED_FILE="$_lisa_file"
|
|
140
144
|
export LISA_EDITED_FILE
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
#
|
|
146
|
-
|
|
147
|
-
$
|
|
145
|
+
# Each line is split into words by `read -a`, never by an unquoted
|
|
146
|
+
# expansion: the resolver validated every word as plain, and reading them
|
|
147
|
+
# into an array keeps them from being glob-expanded as well.
|
|
148
|
+
printf '%s\n' "$*" | while read -r -a _lisa_words; do
|
|
149
|
+
[ "${#_lisa_words[@]}" -gt 0 ] || continue
|
|
150
|
+
echo "Running declared gate task: ${_lisa_words[*]}"
|
|
151
|
+
"${_lisa_words[@]}" || exit 2
|
|
148
152
|
done
|
|
149
153
|
_lisa_status=$?
|
|
150
|
-
unset _lisa_file
|
|
154
|
+
unset _lisa_file _lisa_words
|
|
151
155
|
return $_lisa_status
|
|
152
156
|
}
|
|
@@ -13,7 +13,7 @@ JSON_INPUT="$(cat)"
|
|
|
13
13
|
command -v jq >/dev/null 2>&1 || exit 0
|
|
14
14
|
|
|
15
15
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
16
|
-
# shellcheck source
|
|
16
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
17
17
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
18
18
|
|
|
19
19
|
# ---------------------------------------------------------------------------
|
|
@@ -29,7 +29,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
29
29
|
# that proves more than one stands down only when EVERY one is declared, or it
|
|
30
30
|
# would silently stop proving the others.
|
|
31
31
|
# ---------------------------------------------------------------------------
|
|
32
|
-
# shellcheck source
|
|
32
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
33
33
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
34
34
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks post-tool code-style format-conformance)"; then
|
|
35
35
|
LISA_GATE_STATUS=0
|
|
@@ -13,7 +13,7 @@ JSON_INPUT="$(cat)"
|
|
|
13
13
|
command -v jq >/dev/null 2>&1 || exit 0
|
|
14
14
|
|
|
15
15
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
16
|
-
# shellcheck source
|
|
16
|
+
# shellcheck source=_extract-edit-paths.sh
|
|
17
17
|
. "${SCRIPT_DIR}/_extract-edit-paths.sh"
|
|
18
18
|
|
|
19
19
|
# ---------------------------------------------------------------------------
|
|
@@ -29,7 +29,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
29
29
|
# that proves more than one stands down only when EVERY one is declared, or it
|
|
30
30
|
# would silently stop proving the others.
|
|
31
31
|
# ---------------------------------------------------------------------------
|
|
32
|
-
# shellcheck source
|
|
32
|
+
# shellcheck source=lisa-edit-gate.sh
|
|
33
33
|
. "${SCRIPT_DIR}/lisa-edit-gate.sh"
|
|
34
34
|
if LISA_GATE_COMMANDS="$(lisa_edit_gate_tasks post-tool structural-rules)"; then
|
|
35
35
|
LISA_GATE_STATUS=0
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which population of tests a coverage run is measuring.
|
|
3
|
-
*
|
|
4
|
-
* `test:cov` and `test:cov:unit` run the same instrumentation over the same
|
|
5
|
-
* source, and differ only in which tests are DISCOVERED — the unit script
|
|
6
|
-
* excludes the integration tree. Nothing excludes the source that those
|
|
7
|
-
* integration tests were the only cover for, so the denominator is unchanged
|
|
8
|
-
* while the numerator shrinks, and the two runs report different percentages
|
|
9
|
-
* about identical code.
|
|
10
|
-
*
|
|
11
|
-
* Both were then checked against one `global` threshold block. The defect that
|
|
12
|
-
* causes is not a wrong number, it is a missing lever: a project whose unit run
|
|
13
|
-
* legitimately cannot reach the full-suite floor could only lower the one block,
|
|
14
|
-
* which lowered the floor its CI `test:cov` run answers to as well. Making a
|
|
15
|
-
* push stop failing on unchanged code meant weakening the gate everywhere.
|
|
16
|
-
*
|
|
17
|
-
* This is the marker that lets the threshold factories tell the two runs apart.
|
|
18
|
-
* It is set by the pinned `test:cov:unit` script, and it is what the push hook
|
|
19
|
-
* looks for before selecting that script — a unit run with no marker has no
|
|
20
|
-
* floor of its own, so the honest command for that project is still `test:cov`,
|
|
21
|
-
* whose floor was written for what it actually runs.
|
|
22
|
-
* @module configs/coverage-scope
|
|
23
|
-
*/
|
|
24
1
|
/** The variable the unit-scoped coverage script sets. */
|
|
25
2
|
export declare const COVERAGE_SCOPE_ENV = "LISA_COVERAGE_SCOPE";
|
|
26
3
|
/** The one scope value that changes which threshold block is enforced. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage-scope.d.ts","sourceRoot":"","sources":["../../src/configs/coverage-scope.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coverage-scope.d.ts","sourceRoot":"","sources":["../../src/configs/coverage-scope.ts"],"names":[],"mappings":"AAyBA,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAExD,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,QAAO,OACsB,CAAC"}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* whose floor was written for what it actually runs.
|
|
22
22
|
* @module configs/coverage-scope
|
|
23
23
|
*/
|
|
24
|
+
import { readEnv } from "../utils/process-environment.js";
|
|
24
25
|
/** The variable the unit-scoped coverage script sets. */
|
|
25
26
|
export const COVERAGE_SCOPE_ENV = "LISA_COVERAGE_SCOPE";
|
|
26
27
|
/** The one scope value that changes which threshold block is enforced. */
|
|
@@ -35,7 +36,5 @@ export const UNIT_COVERAGE_SCOPE = "unit";
|
|
|
35
36
|
* hands that to every typo.
|
|
36
37
|
* @returns True when the unit scope is in force.
|
|
37
38
|
*/
|
|
38
|
-
export const isUnitCoverageScope = () =>
|
|
39
|
-
// eslint-disable-next-line no-restricted-syntax -- a test-runner config factory loads before any config service and the scope arrives only as an env var
|
|
40
|
-
process.env[COVERAGE_SCOPE_ENV]?.trim() === UNIT_COVERAGE_SCOPE;
|
|
39
|
+
export const isUnitCoverageScope = () => readEnv(COVERAGE_SCOPE_ENV)?.trim() === UNIT_COVERAGE_SCOPE;
|
|
41
40
|
//# sourceMappingURL=coverage-scope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage-scope.js","sourceRoot":"","sources":["../../src/configs/coverage-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"coverage-scope.js","sourceRoot":"","sources":["../../src/configs/coverage-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAE1D,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAExD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAY,EAAE,CAC/C,OAAO,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,mBAAmB,CAAC"}
|
|
@@ -16,6 +16,7 @@ import prettier from "eslint-plugin-prettier/recommended";
|
|
|
16
16
|
import sonarjs from "eslint-plugin-sonarjs";
|
|
17
17
|
import globals from "globals";
|
|
18
18
|
import tseslint from "typescript-eslint";
|
|
19
|
+
import { getSharedRules } from "./shared-rules.js";
|
|
19
20
|
/**
|
|
20
21
|
* Default ignore patterns used when not specified in project config.
|
|
21
22
|
* Projects can override via eslint.ignore.config.json.
|
|
@@ -36,118 +37,6 @@ export declare const defaultThresholds: {
|
|
|
36
37
|
* @returns {Array} Array of ESLint flat config objects
|
|
37
38
|
*/
|
|
38
39
|
export declare const getBaseConfigs: () => Linter.Config[];
|
|
39
|
-
/**
|
|
40
|
-
* Shared rules that apply to all TypeScript projects.
|
|
41
|
-
* These are rules that should be identical across typescript, expo, nestjs, etc.
|
|
42
|
-
* @param {object} thresholds - Threshold values for configurable rules
|
|
43
|
-
* @param {number} thresholds.cognitiveComplexity - Max cognitive complexity
|
|
44
|
-
* @param {number} thresholds.maxLines - Max lines per file
|
|
45
|
-
* @param {number} thresholds.maxLinesPerFunction - Max lines per function
|
|
46
|
-
* @returns {object} Rules configuration object
|
|
47
|
-
*/
|
|
48
|
-
export declare const getSharedRules: (thresholds: typeof defaultThresholds) => {
|
|
49
|
-
"prettier/prettier": string;
|
|
50
|
-
"no-restricted-imports": (string | {
|
|
51
|
-
patterns: string[];
|
|
52
|
-
})[];
|
|
53
|
-
"max-lines": (string | {
|
|
54
|
-
max: number;
|
|
55
|
-
skipBlankLines: boolean;
|
|
56
|
-
skipComments: boolean;
|
|
57
|
-
})[];
|
|
58
|
-
"max-lines-per-function": (string | {
|
|
59
|
-
max: number;
|
|
60
|
-
skipBlankLines: boolean;
|
|
61
|
-
skipComments: boolean;
|
|
62
|
-
})[];
|
|
63
|
-
"sonarjs/cognitive-complexity": (string | number)[];
|
|
64
|
-
"sonarjs/no-identical-functions": string;
|
|
65
|
-
"sonarjs/no-duplicate-string": string;
|
|
66
|
-
"sonarjs/no-nested-functions": string;
|
|
67
|
-
"sonarjs/no-nested-template-literals": string;
|
|
68
|
-
"sonarjs/prefer-immediate-return": string;
|
|
69
|
-
"sonarjs/prefer-single-boolean-return": string;
|
|
70
|
-
"sonarjs/no-collapsible-if": string;
|
|
71
|
-
"sonarjs/pseudo-random": string;
|
|
72
|
-
"sonarjs/no-clear-text-protocols": string;
|
|
73
|
-
"sonarjs/prefer-read-only-props": string;
|
|
74
|
-
"sonarjs/no-empty-test-file": string;
|
|
75
|
-
"sonarjs/no-nested-conditional": string;
|
|
76
|
-
"sonarjs/no-commented-code": string;
|
|
77
|
-
"sonarjs/no-ignored-exceptions": string;
|
|
78
|
-
"sonarjs/todo-tag": string;
|
|
79
|
-
"sonarjs/deprecation": string;
|
|
80
|
-
"sonarjs/aws-restricted-ip-admin-access": string;
|
|
81
|
-
"sonarjs/no-hardcoded-ip": string;
|
|
82
|
-
"sonarjs/different-types-comparison": string;
|
|
83
|
-
"sonarjs/no-unused-vars": string;
|
|
84
|
-
"@eslint-community/eslint-comments/require-description": string;
|
|
85
|
-
"@eslint-community/eslint-comments/disable-enable-pair": string;
|
|
86
|
-
"@eslint-community/eslint-comments/no-unlimited-disable": string;
|
|
87
|
-
"no-extra-boolean-cast": string;
|
|
88
|
-
"prefer-const": string;
|
|
89
|
-
"no-param-reassign": string;
|
|
90
|
-
"no-var": string;
|
|
91
|
-
"brace-style": string;
|
|
92
|
-
"prefer-template": string;
|
|
93
|
-
radix: string;
|
|
94
|
-
"space-before-blocks": string;
|
|
95
|
-
"no-unused-vars": string;
|
|
96
|
-
"@typescript-eslint/no-explicit-any": string;
|
|
97
|
-
"@typescript-eslint/no-unused-vars": (string | {
|
|
98
|
-
argsIgnorePattern: string;
|
|
99
|
-
varsIgnorePattern: string;
|
|
100
|
-
caughtErrorsIgnorePattern: string;
|
|
101
|
-
destructuredArrayIgnorePattern: string;
|
|
102
|
-
ignoreRestSiblings: boolean;
|
|
103
|
-
})[];
|
|
104
|
-
"@typescript-eslint/no-require-imports": string;
|
|
105
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": string;
|
|
106
|
-
"@typescript-eslint/ban-ts-comment": string;
|
|
107
|
-
"@typescript-eslint/prefer-as-const": string;
|
|
108
|
-
"@typescript-eslint/no-empty-object-type": string;
|
|
109
|
-
"@typescript-eslint/no-unused-expressions": string;
|
|
110
|
-
"@typescript-eslint/no-unsafe-function-type": string;
|
|
111
|
-
"functional/no-mixed-types": string;
|
|
112
|
-
"functional/functional-parameters": string;
|
|
113
|
-
"functional/prefer-immutable-types": string;
|
|
114
|
-
"functional/no-expression-statements": string;
|
|
115
|
-
"functional/no-conditional-statements": string;
|
|
116
|
-
"functional/prefer-property-signatures": string;
|
|
117
|
-
"functional/no-return-void": string;
|
|
118
|
-
"functional/no-throw-statements": string;
|
|
119
|
-
"functional/prefer-readonly-type": string;
|
|
120
|
-
"functional/prefer-tacit": string;
|
|
121
|
-
"functional/readonly-type": string;
|
|
122
|
-
"functional/type-declaration-immutability": string;
|
|
123
|
-
"functional/immutable-data": string;
|
|
124
|
-
"functional/no-let": string;
|
|
125
|
-
"jsdoc/require-jsdoc": (string | {
|
|
126
|
-
require: {
|
|
127
|
-
FunctionDeclaration: boolean;
|
|
128
|
-
MethodDefinition: boolean;
|
|
129
|
-
ClassDeclaration: boolean;
|
|
130
|
-
ArrowFunctionExpression: boolean;
|
|
131
|
-
FunctionExpression: boolean;
|
|
132
|
-
};
|
|
133
|
-
contexts: string[];
|
|
134
|
-
})[];
|
|
135
|
-
"jsdoc/require-description": string;
|
|
136
|
-
"jsdoc/require-param": string;
|
|
137
|
-
"jsdoc/require-returns": string;
|
|
138
|
-
"jsdoc/require-param-description": string;
|
|
139
|
-
"jsdoc/require-returns-description": string;
|
|
140
|
-
"jsdoc/require-property-description": string;
|
|
141
|
-
"jsdoc/check-tag-names": (string | {
|
|
142
|
-
definedTags: string[];
|
|
143
|
-
})[];
|
|
144
|
-
"jsdoc/no-types": string;
|
|
145
|
-
"jsdoc/require-param-type": string;
|
|
146
|
-
"jsdoc/require-returns-type": string;
|
|
147
|
-
"jsdoc/require-property-type": string;
|
|
148
|
-
"jsdoc/require-throws-type": string;
|
|
149
|
-
"jsdoc/require-yields-type": string;
|
|
150
|
-
};
|
|
151
40
|
/**
|
|
152
41
|
* Base language options for all files.
|
|
153
42
|
* @returns {object} Language options configuration
|
|
@@ -1546,5 +1435,5 @@ export declare const getTsTestFilesOverride: (filePatterns?: string[]) => {
|
|
|
1546
1435
|
"max-lines-per-function": string;
|
|
1547
1436
|
};
|
|
1548
1437
|
};
|
|
1549
|
-
export { eslintComments, functional, globals, js, jsdoc, prettier, sonarjs, tseslint, };
|
|
1438
|
+
export { eslintComments, getSharedRules, functional, globals, js, jsdoc, prettier, sonarjs, tseslint, };
|
|
1550
1439
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/eslint/base.ts"],"names":[],"mappings":"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"}
|