@quickchatai/pi-quickreview 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +23 -0
- package/README.md +75 -2
- package/assets/agents/pass-abstraction.md +64 -0
- package/assets/agents/pass-ask-human.md +134 -0
- package/assets/agents/pass-backcompat.md +67 -0
- package/assets/agents/pass-baseline.md +61 -0
- package/assets/agents/pass-behaviour-delta.md +64 -0
- package/assets/agents/pass-bounds.md +36 -0
- package/assets/agents/pass-claims.md +31 -0
- package/assets/agents/pass-concurrency.md +168 -0
- package/assets/agents/pass-consistency.md +57 -0
- package/assets/agents/pass-contracts.md +30 -0
- package/assets/agents/pass-data-safety.md +54 -0
- package/assets/agents/pass-deferred.md +35 -0
- package/assets/agents/pass-delivery.md +37 -0
- package/assets/agents/pass-duplication.md +60 -0
- package/assets/agents/pass-intent.md +63 -0
- package/assets/agents/pass-lint-conformance.md +46 -0
- package/assets/agents/pass-maintainability.md +67 -0
- package/assets/agents/pass-placement.md +68 -0
- package/assets/agents/pass-prod-risk.md +24 -0
- package/assets/agents/pass-rollout.md +32 -0
- package/assets/agents/pass-roundtrip.md +46 -0
- package/assets/agents/pass-security.md +31 -0
- package/assets/agents/pass-simplicity.md +68 -0
- package/assets/agents/pass-statelessness.md +27 -0
- package/assets/agents/pass-style.md +37 -0
- package/assets/agents/pass-sweep.md +57 -0
- package/assets/agents/pass-tests.md +58 -0
- package/assets/agents/pass-ui.md +23 -0
- package/assets/agents/pass-validate.md +50 -0
- package/assets/agents/pass-widened.md +46 -0
- package/assets/agents/scan/pass-scan.md +86 -0
- package/assets/config.example.toml +1067 -0
- package/assets/deploy/reviewer/AGENTS.override.md +12 -0
- package/assets/profiles/default/README.md +21 -0
- package/assets/profiles/default/addenda/.gitkeep +0 -0
- package/assets/profiles/default/profile.toml +17 -0
- package/assets/profiles/example-django/README.md +21 -0
- package/assets/profiles/example-django/addenda/10-migration-discipline.md +13 -0
- package/assets/profiles/example-django/addenda/20-new-column-nullability.md +12 -0
- package/assets/profiles/example-django/addenda/30-test-doctrine.md +12 -0
- package/assets/profiles/example-django/addenda/40-orm-usage.md +19 -0
- package/assets/profiles/example-django/addenda/50-declared-shape.md +10 -0
- package/assets/profiles/example-django/addenda/60-config-placement.md +14 -0
- package/assets/profiles/example-django/heuristics.toml +24 -0
- package/assets/profiles/example-django/profile.toml +9 -0
- package/assets/profiles/fast/README.md +24 -0
- package/assets/profiles/fast/profile.toml +59 -0
- package/assets/profiles/minimal/README.md +17 -0
- package/assets/profiles/minimal/addenda/.gitkeep +0 -0
- package/assets/profiles/minimal/profile.toml +8 -0
- package/assets/profiles/snappy/README.md +24 -0
- package/assets/profiles/snappy/addenda/10-race-as-question.md +6 -0
- package/assets/profiles/snappy/profile.toml +46 -0
- package/assets/prompts/companion-day-open.md +46 -0
- package/assets/prompts/companion-first-run.md +104 -0
- package/assets/prompts/companion.md +821 -0
- package/assets/prompts/conversation-system.md +117 -0
- package/assets/prompts/eod-sweep.md +120 -0
- package/assets/prompts/onboarding.md +74 -0
- package/assets/prompts/pass-common.md +52 -0
- package/assets/prompts/pass-quality-common.md +22 -0
- package/assets/prompts/round-first.md +874 -0
- package/assets/prompts/round-follow-up.md +991 -0
- package/assets/prompts/round-re-review.md +889 -0
- package/assets/prompts/round-recheck.md +196 -0
- package/assets/prompts/round-staleness.md +856 -0
- package/assets/schemas/review-result.v1.json +391 -0
- package/assets/schemas/scan-result.v1.json +421 -0
- package/assets/schemas/version.v1.json +57 -0
- package/assets/seed-manifest.json +19 -0
- package/assets/seeds/agents/pass-baseline.md +61 -0
- package/assets/seeds/agents/pass-contracts.md +30 -0
- package/assets/seeds/agents/pass-data-safety.md +54 -0
- package/assets/seeds/agents/pass-delivery.md +37 -0
- package/assets/seeds/agents/pass-prod-risk.md +24 -0
- package/assets/seeds/agents/pass-security.md +31 -0
- package/assets/seeds/agents/pass-statelessness.md +27 -0
- package/assets/seeds/agents/pass-ui.md +23 -0
- package/assets/seeds/agents/pass-validate.md +50 -0
- package/assets/seeds/prompts/conversation-system.md +117 -0
- package/assets/seeds/prompts/eod-sweep.md +120 -0
- package/assets/seeds/prompts/pass-common.md +52 -0
- package/dist/extensions/bash-guard.d.ts +467 -0
- package/dist/extensions/bash-guard.d.ts.map +1 -0
- package/dist/extensions/bash-guard.js +3058 -0
- package/dist/extensions/bash-guard.js.map +1 -0
- package/dist/extensions/finding-clusters.d.ts +33 -0
- package/dist/extensions/finding-clusters.d.ts.map +1 -0
- package/dist/extensions/finding-clusters.js +218 -0
- package/dist/extensions/finding-clusters.js.map +1 -0
- package/dist/extensions/ledger-pin.d.ts +76 -0
- package/dist/extensions/ledger-pin.d.ts.map +1 -0
- package/dist/extensions/ledger-pin.js +331 -0
- package/dist/extensions/ledger-pin.js.map +1 -0
- package/dist/extensions/lens.d.ts +43 -0
- package/dist/extensions/lens.d.ts.map +1 -0
- package/dist/extensions/lens.js +150 -0
- package/dist/extensions/lens.js.map +1 -0
- package/dist/extensions/pi-tool.d.ts +22 -0
- package/dist/extensions/pi-tool.d.ts.map +1 -0
- package/dist/extensions/pi-tool.js +20 -0
- package/dist/extensions/pi-tool.js.map +1 -0
- package/dist/extensions/quickreview.d.ts +21 -0
- package/dist/extensions/quickreview.d.ts.map +1 -0
- package/dist/extensions/quickreview.js +132 -0
- package/dist/extensions/quickreview.js.map +1 -0
- package/dist/src/anchors.d.ts +54 -0
- package/dist/src/anchors.d.ts.map +1 -0
- package/dist/src/anchors.js +127 -0
- package/dist/src/anchors.js.map +1 -0
- package/dist/src/assetroot.d.ts +16 -0
- package/dist/src/assetroot.d.ts.map +1 -0
- package/dist/src/assetroot.js +77 -0
- package/dist/src/assetroot.js.map +1 -0
- package/dist/src/authwatch.d.ts +61 -0
- package/dist/src/authwatch.d.ts.map +1 -0
- package/dist/src/authwatch.js +210 -0
- package/dist/src/authwatch.js.map +1 -0
- package/dist/src/budget.d.ts +15 -0
- package/dist/src/budget.d.ts.map +1 -0
- package/dist/src/budget.js +32 -0
- package/dist/src/budget.js.map +1 -0
- package/dist/src/casebudget.d.ts +3 -0
- package/dist/src/casebudget.d.ts.map +1 -0
- package/dist/src/casebudget.js +3 -0
- package/dist/src/casebudget.js.map +1 -0
- package/dist/src/cigate.d.ts +116 -0
- package/dist/src/cigate.d.ts.map +1 -0
- package/dist/src/cigate.js +176 -0
- package/dist/src/cigate.js.map +1 -0
- package/dist/src/codespan.d.ts +46 -0
- package/dist/src/codespan.d.ts.map +1 -0
- package/dist/src/codespan.js +75 -0
- package/dist/src/codespan.js.map +1 -0
- package/dist/src/contextpack.d.ts +56 -0
- package/dist/src/contextpack.d.ts.map +1 -0
- package/dist/src/contextpack.js +195 -0
- package/dist/src/contextpack.js.map +1 -0
- package/dist/src/contract.d.ts +8 -0
- package/dist/src/contract.d.ts.map +1 -0
- package/dist/src/contract.js +21 -0
- package/dist/src/contract.js.map +1 -0
- package/dist/src/coverage.d.ts +32 -0
- package/dist/src/coverage.d.ts.map +1 -0
- package/dist/src/coverage.js +85 -0
- package/dist/src/coverage.js.map +1 -0
- package/dist/src/datafence.d.ts +19 -0
- package/dist/src/datafence.d.ts.map +1 -0
- package/dist/src/datafence.js +60 -0
- package/dist/src/datafence.js.map +1 -0
- package/dist/src/dedup.d.ts +65 -0
- package/dist/src/dedup.d.ts.map +1 -0
- package/dist/src/dedup.js +459 -0
- package/dist/src/dedup.js.map +1 -0
- package/dist/src/depsources.d.ts +304 -0
- package/dist/src/depsources.d.ts.map +1 -0
- package/dist/src/depsources.js +3367 -0
- package/dist/src/depsources.js.map +1 -0
- package/dist/src/diffinput.d.ts +10 -0
- package/dist/src/diffinput.d.ts.map +1 -0
- package/dist/src/diffinput.js +172 -0
- package/dist/src/diffinput.js.map +1 -0
- package/dist/src/doubtwords.d.ts +10 -0
- package/dist/src/doubtwords.d.ts.map +1 -0
- package/dist/src/doubtwords.js +13 -0
- package/dist/src/doubtwords.js.map +1 -0
- package/dist/src/ecosystem.d.ts +148 -0
- package/dist/src/ecosystem.d.ts.map +1 -0
- package/dist/src/ecosystem.js +338 -0
- package/dist/src/ecosystem.js.map +1 -0
- package/dist/src/engine/agentdir.d.ts +5 -0
- package/dist/src/engine/agentdir.d.ts.map +1 -0
- package/dist/src/engine/agentdir.js +21 -0
- package/dist/src/engine/agentdir.js.map +1 -0
- package/dist/src/engine/auth.d.ts +214 -0
- package/dist/src/engine/auth.d.ts.map +1 -0
- package/dist/src/engine/auth.js +374 -0
- package/dist/src/engine/auth.js.map +1 -0
- package/dist/src/engine/budget.d.ts +60 -0
- package/dist/src/engine/budget.d.ts.map +1 -0
- package/dist/src/engine/budget.js +113 -0
- package/dist/src/engine/budget.js.map +1 -0
- package/dist/src/engine/capfd.d.ts +6 -0
- package/dist/src/engine/capfd.d.ts.map +1 -0
- package/dist/src/engine/capfd.js +21 -0
- package/dist/src/engine/capfd.js.map +1 -0
- package/dist/src/engine/caseout.d.ts +66 -0
- package/dist/src/engine/caseout.d.ts.map +1 -0
- package/dist/src/engine/caseout.js +107 -0
- package/dist/src/engine/caseout.js.map +1 -0
- package/dist/src/engine/context.d.ts +57 -0
- package/dist/src/engine/context.d.ts.map +1 -0
- package/dist/src/engine/context.js +212 -0
- package/dist/src/engine/context.js.map +1 -0
- package/dist/src/engine/envmap.d.ts +13 -0
- package/dist/src/engine/envmap.d.ts.map +1 -0
- package/dist/src/engine/envmap.js +372 -0
- package/dist/src/engine/envmap.js.map +1 -0
- package/dist/src/engine/extfiles.d.ts +7 -0
- package/dist/src/engine/extfiles.d.ts.map +1 -0
- package/dist/src/engine/extfiles.js +23 -0
- package/dist/src/engine/extfiles.js.map +1 -0
- package/dist/src/engine/keyroute.d.ts +21 -0
- package/dist/src/engine/keyroute.d.ts.map +1 -0
- package/dist/src/engine/keyroute.js +58 -0
- package/dist/src/engine/keyroute.js.map +1 -0
- package/dist/src/engine/lens/cache-group.d.ts +20 -0
- package/dist/src/engine/lens/cache-group.d.ts.map +1 -0
- package/dist/src/engine/lens/cache-group.js +31 -0
- package/dist/src/engine/lens/cache-group.js.map +1 -0
- package/dist/src/engine/lens/cache-run.d.ts +65 -0
- package/dist/src/engine/lens/cache-run.d.ts.map +1 -0
- package/dist/src/engine/lens/cache-run.js +159 -0
- package/dist/src/engine/lens/cache-run.js.map +1 -0
- package/dist/src/engine/lens/deadline.d.ts +54 -0
- package/dist/src/engine/lens/deadline.d.ts.map +1 -0
- package/dist/src/engine/lens/deadline.js +111 -0
- package/dist/src/engine/lens/deadline.js.map +1 -0
- package/dist/src/engine/lens/engine-tools.d.ts +13 -0
- package/dist/src/engine/lens/engine-tools.d.ts.map +1 -0
- package/dist/src/engine/lens/engine-tools.js +37 -0
- package/dist/src/engine/lens/engine-tools.js.map +1 -0
- package/dist/src/engine/lens/env.d.ts +23 -0
- package/dist/src/engine/lens/env.d.ts.map +1 -0
- package/dist/src/engine/lens/env.js +42 -0
- package/dist/src/engine/lens/env.js.map +1 -0
- package/dist/src/engine/lens/launch-plan.d.ts +63 -0
- package/dist/src/engine/lens/launch-plan.d.ts.map +1 -0
- package/dist/src/engine/lens/launch-plan.js +203 -0
- package/dist/src/engine/lens/launch-plan.js.map +1 -0
- package/dist/src/engine/lens/leaf-cache.d.ts +22 -0
- package/dist/src/engine/lens/leaf-cache.d.ts.map +1 -0
- package/dist/src/engine/lens/leaf-cache.js +115 -0
- package/dist/src/engine/lens/leaf-cache.js.map +1 -0
- package/dist/src/engine/lens/permits.d.ts +14 -0
- package/dist/src/engine/lens/permits.d.ts.map +1 -0
- package/dist/src/engine/lens/permits.js +18 -0
- package/dist/src/engine/lens/permits.js.map +1 -0
- package/dist/src/engine/lens/registry.d.ts +55 -0
- package/dist/src/engine/lens/registry.d.ts.map +1 -0
- package/dist/src/engine/lens/registry.js +140 -0
- package/dist/src/engine/lens/registry.js.map +1 -0
- package/dist/src/engine/lens/round-lens.d.ts +16 -0
- package/dist/src/engine/lens/round-lens.d.ts.map +1 -0
- package/dist/src/engine/lens/round-lens.js +46 -0
- package/dist/src/engine/lens/round-lens.js.map +1 -0
- package/dist/src/engine/lens/runlens.d.ts +103 -0
- package/dist/src/engine/lens/runlens.d.ts.map +1 -0
- package/dist/src/engine/lens/runlens.js +538 -0
- package/dist/src/engine/lens/runlens.js.map +1 -0
- package/dist/src/engine/lens/section.d.ts +19 -0
- package/dist/src/engine/lens/section.d.ts.map +1 -0
- package/dist/src/engine/lens/section.js +40 -0
- package/dist/src/engine/lens/section.js.map +1 -0
- package/dist/src/engine/lens/semaphore.d.ts +13 -0
- package/dist/src/engine/lens/semaphore.d.ts.map +1 -0
- package/dist/src/engine/lens/semaphore.js +44 -0
- package/dist/src/engine/lens/semaphore.js.map +1 -0
- package/dist/src/engine/lens/tool.d.ts +34 -0
- package/dist/src/engine/lens/tool.d.ts.map +1 -0
- package/dist/src/engine/lens/tool.js +345 -0
- package/dist/src/engine/lens/tool.js.map +1 -0
- package/dist/src/engine/lens/wave.d.ts +63 -0
- package/dist/src/engine/lens/wave.d.ts.map +1 -0
- package/dist/src/engine/lens/wave.js +95 -0
- package/dist/src/engine/lens/wave.js.map +1 -0
- package/dist/src/engine/livesessions.d.ts +21 -0
- package/dist/src/engine/livesessions.d.ts.map +1 -0
- package/dist/src/engine/livesessions.js +57 -0
- package/dist/src/engine/livesessions.js.map +1 -0
- package/dist/src/engine/livewire.d.ts +18 -0
- package/dist/src/engine/livewire.d.ts.map +1 -0
- package/dist/src/engine/livewire.js +31 -0
- package/dist/src/engine/livewire.js.map +1 -0
- package/dist/src/engine/openable.d.ts +37 -0
- package/dist/src/engine/openable.d.ts.map +1 -0
- package/dist/src/engine/openable.js +120 -0
- package/dist/src/engine/openable.js.map +1 -0
- package/dist/src/engine/pisdk.d.ts +226 -0
- package/dist/src/engine/pisdk.d.ts.map +1 -0
- package/dist/src/engine/pisdk.js +552 -0
- package/dist/src/engine/pisdk.js.map +1 -0
- package/dist/src/engine/port.d.ts +144 -0
- package/dist/src/engine/port.d.ts.map +1 -0
- package/dist/src/engine/port.js +16 -0
- package/dist/src/engine/port.js.map +1 -0
- package/dist/src/engine/prompts.d.ts +159 -0
- package/dist/src/engine/prompts.d.ts.map +1 -0
- package/dist/src/engine/prompts.js +339 -0
- package/dist/src/engine/prompts.js.map +1 -0
- package/dist/src/engine/render.d.ts +10 -0
- package/dist/src/engine/render.d.ts.map +1 -0
- package/dist/src/engine/render.js +23 -0
- package/dist/src/engine/render.js.map +1 -0
- package/dist/src/engine/reviewruntime.d.ts +13 -0
- package/dist/src/engine/reviewruntime.d.ts.map +1 -0
- package/dist/src/engine/reviewruntime.js +35 -0
- package/dist/src/engine/reviewruntime.js.map +1 -0
- package/dist/src/engine/reviewsdk.d.ts +75 -0
- package/dist/src/engine/reviewsdk.d.ts.map +1 -0
- package/dist/src/engine/reviewsdk.js +180 -0
- package/dist/src/engine/reviewsdk.js.map +1 -0
- package/dist/src/engine/round.d.ts +166 -0
- package/dist/src/engine/round.d.ts.map +1 -0
- package/dist/src/engine/round.js +543 -0
- package/dist/src/engine/round.js.map +1 -0
- package/dist/src/engine/roundagents.d.ts +17 -0
- package/dist/src/engine/roundagents.d.ts.map +1 -0
- package/dist/src/engine/roundagents.js +49 -0
- package/dist/src/engine/roundagents.js.map +1 -0
- package/dist/src/engine/roundevents.d.ts +110 -0
- package/dist/src/engine/roundevents.d.ts.map +1 -0
- package/dist/src/engine/roundevents.js +276 -0
- package/dist/src/engine/roundevents.js.map +1 -0
- package/dist/src/engine/roundsdk.d.ts +33 -0
- package/dist/src/engine/roundsdk.d.ts.map +1 -0
- package/dist/src/engine/roundsdk.js +76 -0
- package/dist/src/engine/roundsdk.js.map +1 -0
- package/dist/src/engine/sdkruntime.d.ts +23 -0
- package/dist/src/engine/sdkruntime.d.ts.map +1 -0
- package/dist/src/engine/sdkruntime.js +340 -0
- package/dist/src/engine/sdkruntime.js.map +1 -0
- package/dist/src/engine/select.d.ts +16 -0
- package/dist/src/engine/select.d.ts.map +1 -0
- package/dist/src/engine/select.js +32 -0
- package/dist/src/engine/select.js.map +1 -0
- package/dist/src/engine/sessionwrap.d.ts +4 -0
- package/dist/src/engine/sessionwrap.d.ts.map +1 -0
- package/dist/src/engine/sessionwrap.js +31 -0
- package/dist/src/engine/sessionwrap.js.map +1 -0
- package/dist/src/engine/toolfence.d.ts +90 -0
- package/dist/src/engine/toolfence.d.ts.map +1 -0
- package/dist/src/engine/toolfence.js +378 -0
- package/dist/src/engine/toolfence.js.map +1 -0
- package/dist/src/engine/tooluid.d.ts +128 -0
- package/dist/src/engine/tooluid.d.ts.map +1 -0
- package/dist/src/engine/tooluid.js +401 -0
- package/dist/src/engine/tooluid.js.map +1 -0
- package/dist/src/envstrip.d.ts +10 -0
- package/dist/src/envstrip.d.ts.map +1 -0
- package/dist/src/envstrip.js +15 -0
- package/dist/src/envstrip.js.map +1 -0
- package/dist/src/escalationprompt.d.ts +22 -0
- package/dist/src/escalationprompt.d.ts.map +1 -0
- package/dist/src/escalationprompt.js +54 -0
- package/dist/src/escalationprompt.js.map +1 -0
- package/dist/src/execfn.d.ts +29 -0
- package/dist/src/execfn.d.ts.map +1 -0
- package/dist/src/execfn.js +55 -0
- package/dist/src/execfn.js.map +1 -0
- package/dist/src/finding-chain.d.ts +40 -0
- package/dist/src/finding-chain.d.ts.map +1 -0
- package/dist/src/finding-chain.js +76 -0
- package/dist/src/finding-chain.js.map +1 -0
- package/dist/src/finding-row.d.ts +24 -0
- package/dist/src/finding-row.d.ts.map +1 -0
- package/dist/src/finding-row.js +26 -0
- package/dist/src/finding-row.js.map +1 -0
- package/dist/src/findingkey.d.ts +99 -0
- package/dist/src/findingkey.d.ts.map +1 -0
- package/dist/src/findingkey.js +210 -0
- package/dist/src/findingkey.js.map +1 -0
- package/dist/src/findingsrecord.d.ts +175 -0
- package/dist/src/findingsrecord.d.ts.map +1 -0
- package/dist/src/findingsrecord.js +410 -0
- package/dist/src/findingsrecord.js.map +1 -0
- package/dist/src/followup-mode.d.ts +4 -0
- package/dist/src/followup-mode.d.ts.map +1 -0
- package/dist/src/followup-mode.js +6 -0
- package/dist/src/followup-mode.js.map +1 -0
- package/dist/src/gate.d.ts +199 -0
- package/dist/src/gate.d.ts.map +1 -0
- package/dist/src/gate.js +315 -0
- package/dist/src/gate.js.map +1 -0
- package/dist/src/ghcred.d.ts +58 -0
- package/dist/src/ghcred.d.ts.map +1 -0
- package/dist/src/ghcred.js +139 -0
- package/dist/src/ghcred.js.map +1 -0
- package/dist/src/githubAuth.d.ts +32 -0
- package/dist/src/githubAuth.d.ts.map +1 -0
- package/dist/src/githubAuth.js +116 -0
- package/dist/src/githubAuth.js.map +1 -0
- package/dist/src/githubcore.d.ts +20 -0
- package/dist/src/githubcore.d.ts.map +1 -0
- package/dist/src/githubcore.js +20 -0
- package/dist/src/githubcore.js.map +1 -0
- package/dist/src/glob.d.ts +11 -0
- package/dist/src/glob.d.ts.map +1 -0
- package/dist/src/glob.js +69 -0
- package/dist/src/glob.js.map +1 -0
- package/dist/src/guards.d.ts +93 -0
- package/dist/src/guards.d.ts.map +1 -0
- package/dist/src/guards.js +306 -0
- package/dist/src/guards.js.map +1 -0
- package/dist/src/heartbeat.d.ts +29 -0
- package/dist/src/heartbeat.d.ts.map +1 -0
- package/dist/src/heartbeat.js +87 -0
- package/dist/src/heartbeat.js.map +1 -0
- package/dist/src/heuristics.d.ts +247 -0
- package/dist/src/heuristics.d.ts.map +1 -0
- package/dist/src/heuristics.js +927 -0
- package/dist/src/heuristics.js.map +1 -0
- package/dist/src/homes.d.ts +181 -0
- package/dist/src/homes.d.ts.map +1 -0
- package/dist/src/homes.js +242 -0
- package/dist/src/homes.js.map +1 -0
- package/dist/src/hunkheader.d.ts +11 -0
- package/dist/src/hunkheader.d.ts.map +1 -0
- package/dist/src/hunkheader.js +18 -0
- package/dist/src/hunkheader.js.map +1 -0
- package/dist/src/include.d.ts +435 -0
- package/dist/src/include.d.ts.map +1 -0
- package/dist/src/include.js +1692 -0
- package/dist/src/include.js.map +1 -0
- package/dist/src/launchvocab.d.ts +36 -0
- package/dist/src/launchvocab.d.ts.map +1 -0
- package/dist/src/launchvocab.js +59 -0
- package/dist/src/launchvocab.js.map +1 -0
- package/dist/src/ledgercarry.d.ts +24 -0
- package/dist/src/ledgercarry.d.ts.map +1 -0
- package/dist/src/ledgercarry.js +109 -0
- package/dist/src/ledgercarry.js.map +1 -0
- package/dist/src/lensids.d.ts +7 -0
- package/dist/src/lensids.d.ts.map +1 -0
- package/dist/src/lensids.js +53 -0
- package/dist/src/lensids.js.map +1 -0
- package/dist/src/lensplanning.d.ts +8 -0
- package/dist/src/lensplanning.d.ts.map +1 -0
- package/dist/src/lensplanning.js +126 -0
- package/dist/src/lensplanning.js.map +1 -0
- package/dist/src/lensresult.d.ts +94 -0
- package/dist/src/lensresult.d.ts.map +1 -0
- package/dist/src/lensresult.js +162 -0
- package/dist/src/lensresult.js.map +1 -0
- package/dist/src/lenstuning.d.ts +97 -0
- package/dist/src/lenstuning.d.ts.map +1 -0
- package/dist/src/lenstuning.js +326 -0
- package/dist/src/lenstuning.js.map +1 -0
- package/dist/src/lintconfig.d.ts +31 -0
- package/dist/src/lintconfig.d.ts.map +1 -0
- package/dist/src/lintconfig.js +543 -0
- package/dist/src/lintconfig.js.map +1 -0
- package/dist/src/live/events.d.ts +188 -0
- package/dist/src/live/events.d.ts.map +1 -0
- package/dist/src/live/events.js +136 -0
- package/dist/src/live/events.js.map +1 -0
- package/dist/src/live/writer.d.ts +54 -0
- package/dist/src/live/writer.d.ts.map +1 -0
- package/dist/src/live/writer.js +516 -0
- package/dist/src/live/writer.js.map +1 -0
- package/dist/src/localreview.d.ts +128 -0
- package/dist/src/localreview.d.ts.map +1 -0
- package/dist/src/localreview.js +426 -0
- package/dist/src/localreview.js.map +1 -0
- package/dist/src/loosenedtests.d.ts +13 -0
- package/dist/src/loosenedtests.d.ts.map +1 -0
- package/dist/src/loosenedtests.js +188 -0
- package/dist/src/loosenedtests.js.map +1 -0
- package/dist/src/memoryport.d.ts +264 -0
- package/dist/src/memoryport.d.ts.map +1 -0
- package/dist/src/memoryport.js +445 -0
- package/dist/src/memoryport.js.map +1 -0
- package/dist/src/migrations.d.ts +106 -0
- package/dist/src/migrations.d.ts.map +1 -0
- package/dist/src/migrations.js +373 -0
- package/dist/src/migrations.js.map +1 -0
- package/dist/src/oneshot.d.ts +12 -0
- package/dist/src/oneshot.d.ts.map +1 -0
- package/dist/src/oneshot.js +8 -0
- package/dist/src/oneshot.js.map +1 -0
- package/dist/src/packing.d.ts +11 -0
- package/dist/src/packing.d.ts.map +1 -0
- package/dist/src/packing.js +31 -0
- package/dist/src/packing.js.map +1 -0
- package/dist/src/passes.d.ts +16 -0
- package/dist/src/passes.d.ts.map +1 -0
- package/dist/src/passes.js +104 -0
- package/dist/src/passes.js.map +1 -0
- package/dist/src/passtasks.d.ts +68 -0
- package/dist/src/passtasks.d.ts.map +1 -0
- package/dist/src/passtasks.js +360 -0
- package/dist/src/passtasks.js.map +1 -0
- package/dist/src/pathinside.d.ts +5 -0
- package/dist/src/pathinside.d.ts.map +1 -0
- package/dist/src/pathinside.js +9 -0
- package/dist/src/pathinside.js.map +1 -0
- package/dist/src/pibuiltins.d.ts +36 -0
- package/dist/src/pibuiltins.d.ts.map +1 -0
- package/dist/src/pibuiltins.js +83 -0
- package/dist/src/pibuiltins.js.map +1 -0
- package/dist/src/plankey.d.ts +4 -0
- package/dist/src/plankey.d.ts.map +1 -0
- package/dist/src/plankey.js +10 -0
- package/dist/src/plankey.js.map +1 -0
- package/dist/src/planner.d.ts +375 -0
- package/dist/src/planner.d.ts.map +1 -0
- package/dist/src/planner.js +722 -0
- package/dist/src/planner.js.map +1 -0
- package/dist/src/plugin/args.d.ts +19 -0
- package/dist/src/plugin/args.d.ts.map +1 -0
- package/dist/src/plugin/args.js +107 -0
- package/dist/src/plugin/args.js.map +1 -0
- package/dist/src/plugin/index.d.ts +3 -0
- package/dist/src/plugin/index.d.ts.map +1 -0
- package/dist/src/plugin/index.js +14 -0
- package/dist/src/plugin/index.js.map +1 -0
- package/dist/src/plugin/login.d.ts +39 -0
- package/dist/src/plugin/login.d.ts.map +1 -0
- package/dist/src/plugin/login.js +73 -0
- package/dist/src/plugin/login.js.map +1 -0
- package/dist/src/plugin/review.d.ts +27 -0
- package/dist/src/plugin/review.d.ts.map +1 -0
- package/dist/src/plugin/review.js +298 -0
- package/dist/src/plugin/review.js.map +1 -0
- package/dist/src/plugin/runner.d.ts +6 -0
- package/dist/src/plugin/runner.d.ts.map +1 -0
- package/dist/src/plugin/runner.js +65 -0
- package/dist/src/plugin/runner.js.map +1 -0
- package/dist/src/plugin/scan.d.ts +79 -0
- package/dist/src/plugin/scan.d.ts.map +1 -0
- package/dist/src/plugin/scan.js +348 -0
- package/dist/src/plugin/scan.js.map +1 -0
- package/dist/src/plugin/session.d.ts +56 -0
- package/dist/src/plugin/session.d.ts.map +1 -0
- package/dist/src/plugin/session.js +2 -0
- package/dist/src/plugin/session.js.map +1 -0
- package/dist/src/plugin/setup.d.ts +19 -0
- package/dist/src/plugin/setup.d.ts.map +1 -0
- package/dist/src/plugin/setup.js +142 -0
- package/dist/src/plugin/setup.js.map +1 -0
- package/dist/src/plugin/versiongate.d.ts +26 -0
- package/dist/src/plugin/versiongate.d.ts.map +1 -0
- package/dist/src/plugin/versiongate.js +83 -0
- package/dist/src/plugin/versiongate.js.map +1 -0
- package/dist/src/postingkey.d.ts +8 -0
- package/dist/src/postingkey.d.ts.map +1 -0
- package/dist/src/postingkey.js +25 -0
- package/dist/src/postingkey.js.map +1 -0
- package/dist/src/postingpolicy.d.ts +108 -0
- package/dist/src/postingpolicy.d.ts.map +1 -0
- package/dist/src/postingpolicy.js +341 -0
- package/dist/src/postingpolicy.js.map +1 -0
- package/dist/src/pr-identity.d.ts +3 -0
- package/dist/src/pr-identity.d.ts.map +1 -0
- package/dist/src/pr-identity.js +9 -0
- package/dist/src/pr-identity.js.map +1 -0
- package/dist/src/prdelta.d.ts +181 -0
- package/dist/src/prdelta.d.ts.map +1 -0
- package/dist/src/prdelta.js +501 -0
- package/dist/src/prdelta.js.map +1 -0
- package/dist/src/pricing.d.ts +94 -0
- package/dist/src/pricing.d.ts.map +1 -0
- package/dist/src/pricing.js +209 -0
- package/dist/src/pricing.js.map +1 -0
- package/dist/src/priorfindings.d.ts +167 -0
- package/dist/src/priorfindings.d.ts.map +1 -0
- package/dist/src/priorfindings.js +445 -0
- package/dist/src/priorfindings.js.map +1 -0
- package/dist/src/priortasks.d.ts +31 -0
- package/dist/src/priortasks.d.ts.map +1 -0
- package/dist/src/priortasks.js +119 -0
- package/dist/src/priortasks.js.map +1 -0
- package/dist/src/profilelookup.d.ts +59 -0
- package/dist/src/profilelookup.d.ts.map +1 -0
- package/dist/src/profilelookup.js +98 -0
- package/dist/src/profilelookup.js.map +1 -0
- package/dist/src/profileoverrides.d.ts +91 -0
- package/dist/src/profileoverrides.d.ts.map +1 -0
- package/dist/src/profileoverrides.js +313 -0
- package/dist/src/profileoverrides.js.map +1 -0
- package/dist/src/profiles.d.ts +144 -0
- package/dist/src/profiles.d.ts.map +1 -0
- package/dist/src/profiles.js +604 -0
- package/dist/src/profiles.js.map +1 -0
- package/dist/src/promptdoc.d.ts +3 -0
- package/dist/src/promptdoc.d.ts.map +1 -0
- package/dist/src/promptdoc.js +18 -0
- package/dist/src/promptdoc.js.map +1 -0
- package/dist/src/prtarget.d.ts +70 -0
- package/dist/src/prtarget.d.ts.map +1 -0
- package/dist/src/prtarget.js +181 -0
- package/dist/src/prtarget.js.map +1 -0
- package/dist/src/recheckorder.d.ts +32 -0
- package/dist/src/recheckorder.d.ts.map +1 -0
- package/dist/src/recheckorder.js +5 -0
- package/dist/src/recheckorder.js.map +1 -0
- package/dist/src/reviewapi.d.ts +207 -0
- package/dist/src/reviewapi.d.ts.map +1 -0
- package/dist/src/reviewapi.js +939 -0
- package/dist/src/reviewapi.js.map +1 -0
- package/dist/src/reviewbotfindings.d.ts +33 -0
- package/dist/src/reviewbotfindings.d.ts.map +1 -0
- package/dist/src/reviewbotfindings.js +80 -0
- package/dist/src/reviewbotfindings.js.map +1 -0
- package/dist/src/reviewconfig.d.ts +741 -0
- package/dist/src/reviewconfig.d.ts.map +1 -0
- package/dist/src/reviewconfig.js +797 -0
- package/dist/src/reviewconfig.js.map +1 -0
- package/dist/src/reviewdelta.d.ts +51 -0
- package/dist/src/reviewdelta.d.ts.map +1 -0
- package/dist/src/reviewdelta.js +119 -0
- package/dist/src/reviewdelta.js.map +1 -0
- package/dist/src/reviewdest.d.ts +86 -0
- package/dist/src/reviewdest.d.ts.map +1 -0
- package/dist/src/reviewdest.js +142 -0
- package/dist/src/reviewdest.js.map +1 -0
- package/dist/src/reviewerstub.d.ts +12 -0
- package/dist/src/reviewerstub.d.ts.map +1 -0
- package/dist/src/reviewerstub.js +28 -0
- package/dist/src/reviewerstub.js.map +1 -0
- package/dist/src/reviewhost.d.ts +58 -0
- package/dist/src/reviewhost.d.ts.map +1 -0
- package/dist/src/reviewhost.js +135 -0
- package/dist/src/reviewhost.js.map +1 -0
- package/dist/src/reviewpost.d.ts +79 -0
- package/dist/src/reviewpost.d.ts.map +1 -0
- package/dist/src/reviewpost.js +233 -0
- package/dist/src/reviewpost.js.map +1 -0
- package/dist/src/reviewrender.d.ts +154 -0
- package/dist/src/reviewrender.d.ts.map +1 -0
- package/dist/src/reviewrender.js +480 -0
- package/dist/src/reviewrender.js.map +1 -0
- package/dist/src/reviewstate.d.ts +62 -0
- package/dist/src/reviewstate.d.ts.map +1 -0
- package/dist/src/reviewstate.js +167 -0
- package/dist/src/reviewstate.js.map +1 -0
- package/dist/src/reviewstore.d.ts +17 -0
- package/dist/src/reviewstore.d.ts.map +1 -0
- package/dist/src/reviewstore.js +105 -0
- package/dist/src/reviewstore.js.map +1 -0
- package/dist/src/round-progress.d.ts +120 -0
- package/dist/src/round-progress.d.ts.map +1 -0
- package/dist/src/round-progress.js +172 -0
- package/dist/src/round-progress.js.map +1 -0
- package/dist/src/round-stage-deadlines.d.ts +12 -0
- package/dist/src/round-stage-deadlines.d.ts.map +1 -0
- package/dist/src/round-stage-deadlines.js +10 -0
- package/dist/src/round-stage-deadlines.js.map +1 -0
- package/dist/src/session-command.d.ts +19 -0
- package/dist/src/session-command.d.ts.map +1 -0
- package/dist/src/session-command.js +20 -0
- package/dist/src/session-command.js.map +1 -0
- package/dist/src/settledread.d.ts +61 -0
- package/dist/src/settledread.d.ts.map +1 -0
- package/dist/src/settledread.js +135 -0
- package/dist/src/settledread.js.map +1 -0
- package/dist/src/severity.d.ts +167 -0
- package/dist/src/severity.d.ts.map +1 -0
- package/dist/src/severity.js +364 -0
- package/dist/src/severity.js.map +1 -0
- package/dist/src/severityrank.d.ts +8 -0
- package/dist/src/severityrank.d.ts.map +1 -0
- package/dist/src/severityrank.js +16 -0
- package/dist/src/severityrank.js.map +1 -0
- package/dist/src/standing-review.d.ts +45 -0
- package/dist/src/standing-review.d.ts.map +1 -0
- package/dist/src/standing-review.js +43 -0
- package/dist/src/standing-review.js.map +1 -0
- package/dist/src/storerows.d.ts +225 -0
- package/dist/src/storerows.d.ts.map +1 -0
- package/dist/src/storerows.js +7 -0
- package/dist/src/storerows.js.map +1 -0
- package/dist/src/styleguide.d.ts +25 -0
- package/dist/src/styleguide.d.ts.map +1 -0
- package/dist/src/styleguide.js +272 -0
- package/dist/src/styleguide.js.map +1 -0
- package/dist/src/sweepstatus.d.ts +42 -0
- package/dist/src/sweepstatus.d.ts.map +1 -0
- package/dist/src/sweepstatus.js +97 -0
- package/dist/src/sweepstatus.js.map +1 -0
- package/dist/src/templates.d.ts +243 -0
- package/dist/src/templates.d.ts.map +1 -0
- package/dist/src/templates.js +847 -0
- package/dist/src/templates.js.map +1 -0
- package/dist/src/types.d.ts +639 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +90 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/unifieddiff.d.ts +22 -0
- package/dist/src/unifieddiff.d.ts.map +1 -0
- package/dist/src/unifieddiff.js +176 -0
- package/dist/src/unifieddiff.js.map +1 -0
- package/dist/src/yieldloop.d.ts +2 -0
- package/dist/src/yieldloop.d.ts.map +1 -0
- package/dist/src/yieldloop.js +14 -0
- package/dist/src/yieldloop.js.map +1 -0
- package/package.json +60 -4
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { splitModelSpec, type ScanDepth, type NitPolicy, type MemoryDelivery } from "./reviewconfig.js";
|
|
2
|
+
import type { PassTier } from "./types.js";
|
|
3
|
+
import type { EcosystemName } from "./ecosystem.js";
|
|
4
|
+
import type { LensTuningMap } from "./lenstuning.js";
|
|
5
|
+
/** The `{{name}}` grammar the agent build and the prompt renderer
|
|
6
|
+
* (packages/pi-plugin/src/templates.ts) share: bare word, no `:` — include directives
|
|
7
|
+
* (`{{include:path}}`) never match. */
|
|
8
|
+
export declare const VARIABLE_RE: RegExp;
|
|
9
|
+
/** Substitute every `{{name}}` in `text` from `vars` — the strict core of
|
|
10
|
+
* `expandVariables` and the renderer's `render`, each throwing its own error
|
|
11
|
+
* on `unknown`. A name `vars` does not itself hold is unknown, so an
|
|
12
|
+
* inherited property (`{{constructor}}`) never substitutes function text. */
|
|
13
|
+
export declare function substituteVariables(text: string, vars: Readonly<Record<string, string>>): {
|
|
14
|
+
out: string;
|
|
15
|
+
unknown: string[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The neutral fallback values: empty config values degrade to role wording,
|
|
19
|
+
* never to a hardcoded personal name.
|
|
20
|
+
*/
|
|
21
|
+
export declare const NEUTRAL_IDENTITY_VARS: Readonly<Record<string, string>>;
|
|
22
|
+
/** The identity variable map from config ([owner] + [github]).
|
|
23
|
+
* Structural and tolerant of partial configs (hand-rolled test configs omit
|
|
24
|
+
* whole sections): every missing or empty value degrades to role wording. */
|
|
25
|
+
export declare function identityVars(cfg: {
|
|
26
|
+
owner?: {
|
|
27
|
+
name?: string;
|
|
28
|
+
};
|
|
29
|
+
github?: {
|
|
30
|
+
repo?: string;
|
|
31
|
+
bot_login?: string;
|
|
32
|
+
};
|
|
33
|
+
}): Record<string, string>;
|
|
34
|
+
/**
|
|
35
|
+
* Expand `{{name}}` variables in `text`. An unknown name throws — the build
|
|
36
|
+
* must fail loudly rather than ship a literal `{{…}}` to a session.
|
|
37
|
+
*/
|
|
38
|
+
export declare function expandVariables(text: string, vars: Readonly<Record<string, string>>): string;
|
|
39
|
+
export interface IncludeOptions {
|
|
40
|
+
/** Sandbox root every include path is resolved against. */
|
|
41
|
+
root: string;
|
|
42
|
+
/** Injected for tests; defaults to the real fs. */
|
|
43
|
+
readFile?: (path: string) => string;
|
|
44
|
+
/** Max nesting depth — a runaway include chain fails loudly. */
|
|
45
|
+
maxDepth?: number;
|
|
46
|
+
}
|
|
47
|
+
/** Expand every `{{include:…}}` directive in `text`, recursively. */
|
|
48
|
+
export declare function expandIncludes(text: string, opts: IncludeOptions): string;
|
|
49
|
+
export interface AgentDoc {
|
|
50
|
+
/** Raw frontmatter block *without* the `---` fences (may be ""). */
|
|
51
|
+
frontmatter: string;
|
|
52
|
+
/** Everything after the closing fence. */
|
|
53
|
+
body: string;
|
|
54
|
+
/** True when the source actually carried a frontmatter block. */
|
|
55
|
+
hasFrontmatter: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare function splitFrontmatter(text: string): AgentDoc;
|
|
58
|
+
export declare function joinFrontmatter(doc: AgentDoc): string;
|
|
59
|
+
/** Read the `name:` field of an agent's frontmatter (falls back to null). */
|
|
60
|
+
export declare function frontmatterName(frontmatter: string): string | null;
|
|
61
|
+
/** Rewrite the `model:` frontmatter field. Adds it when absent. */
|
|
62
|
+
export declare function applyModelOverride(frontmatter: string, model: string): string;
|
|
63
|
+
/** Rewrite the `name:` frontmatter field. Adds it when absent. */
|
|
64
|
+
export declare function applyNameOverride(frontmatter: string, name: string): string;
|
|
65
|
+
/** Rewrite the `thinking:` frontmatter field. Adds it when absent. */
|
|
66
|
+
export declare function applyThinkingOverride(frontmatter: string, thinking: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* Strip agent-spawning tools from a built variant's `tools:` list.
|
|
69
|
+
*
|
|
70
|
+
* The seeds under `agents/` are canonical (AGENTS.md invariant 3) and list only
|
|
71
|
+
* read-only tools — this is the enforcement that keeps that true no
|
|
72
|
+
* matter what a future seed says, applied to the files agent discovery
|
|
73
|
+
* actually reads. A `tools:` line that names nothing else is dropped entirely
|
|
74
|
+
* rather than left empty (an empty list is not the same statement as no list).
|
|
75
|
+
*/
|
|
76
|
+
export declare function stripAgentSpawnTools(frontmatter: string): string;
|
|
77
|
+
/**
|
|
78
|
+
* The memory tools a lens pass would hold if its leaf loaded the memory
|
|
79
|
+
* extension — exactly two, both read-only. No leaf does today
|
|
80
|
+
* (`LENS_LEAVES_LOAD_MEMORY` below), so no build grants them by default.
|
|
81
|
+
*
|
|
82
|
+
* A pass is a blank-slate evaluator of a diff; being able to look something up
|
|
83
|
+
* ("was this settled before?", "what does the reviewer's memory say about this
|
|
84
|
+
* subsystem?") would be a deliberate, narrow widening of that slate. Writing is
|
|
85
|
+
* not: everything durable a review produces is authored by the PR's one main
|
|
86
|
+
* session and the EOD curator, so a leaf that could write would be a second
|
|
87
|
+
* author of the reviewer's memory with none of the accounting.
|
|
88
|
+
*
|
|
89
|
+
* The frontmatter `tools:` line becomes the leaf session's tool allowlist
|
|
90
|
+
* (runLens hands it to PiHost.makeSession), so it decides which memory tools a
|
|
91
|
+
* leaf could ever activate; pi ignores an allowlisted name nothing registers.
|
|
92
|
+
* The inner layer is the vendored fork's own PATCH 2, which withholds
|
|
93
|
+
* `viking_write` in any leaf process regardless of what the frontmatter says.
|
|
94
|
+
*/
|
|
95
|
+
export declare const LEAF_MEMORY_TOOLS: readonly string[];
|
|
96
|
+
/**
|
|
97
|
+
* Whether a lens leaf session loads the OpenViking memory extension. It does
|
|
98
|
+
* not, on any route: runLens (packages/pi-plugin/src/engine/lens/runlens.ts) gives a leaf the
|
|
99
|
+
* bash guard and, in a cache group, the leaf cache — nothing else — and that
|
|
100
|
+
* runner hosts every lens the built agents feed (a worker round, a debug round,
|
|
101
|
+
* the `qcr review` route, the bench). The memory extension goes only to a PR's
|
|
102
|
+
* main and answer sessions (src/engine/botsdk.ts). So a build grants a leaf no
|
|
103
|
+
* memory tool and no rule describing one unless its caller says the leaf has
|
|
104
|
+
* them (`BuildAgentsOptions.memory`). tests/lens-runner.test.ts holds this to
|
|
105
|
+
* the runner: every tool a default-built lens names exists in its session.
|
|
106
|
+
* Wire the extension into the leaves and this flips with it, in one change.
|
|
107
|
+
*/
|
|
108
|
+
export declare const LENS_LEAVES_LOAD_MEMORY = false;
|
|
109
|
+
/** Drop `NOT_PI_TOOLS` from a built variant's `tools:` line. A line left
|
|
110
|
+
* as it was when it names none of them. */
|
|
111
|
+
export declare function dropNonPiTools(frontmatter: string): string;
|
|
112
|
+
/**
|
|
113
|
+
* Put exactly `tools` — `LEAF_MEMORY_TOOLS` by default, none for a leaf
|
|
114
|
+
* without memory — on a built variant's `tools:` line.
|
|
115
|
+
*
|
|
116
|
+
* Any other `viking_*` tool a seed might name is dropped first, so a future
|
|
117
|
+
* seed carrying `viking_write` cannot smuggle a write surface into a leaf —
|
|
118
|
+
* same enforcement stance as `stripAgentSpawnTools`, applied to the files
|
|
119
|
+
* agent discovery actually reads.
|
|
120
|
+
*
|
|
121
|
+
* A pass with no `tools:` line is left alone. An absent list means "whatever
|
|
122
|
+
* the harness gives you" while a present one is an allowlist, so adding the
|
|
123
|
+
* line would silently narrow that pass to two tools — a much bigger change
|
|
124
|
+
* than the one being made here. (Every seeded pass carries a tools line.)
|
|
125
|
+
*/
|
|
126
|
+
export declare function applyMemoryTools(frontmatter: string, tools?: readonly string[]): string;
|
|
127
|
+
/** Split a "provider/model:thinking" spec into its model and thinking halves
|
|
128
|
+
* (config.ts owns the parse). Only a recognized thinking level after the last
|
|
129
|
+
* colon is treated as a suffix. The built `model:` field keeps the whole spec
|
|
130
|
+
* (pi's --model accepts the suffix); the split feeds the `thinking:` field and
|
|
131
|
+
* the BuiltAgent record. */
|
|
132
|
+
export { splitModelSpec };
|
|
133
|
+
/** All pass tiers, ascending. */
|
|
134
|
+
export declare const PASS_TIERS: readonly PassTier[];
|
|
135
|
+
/** The single pass that consumes findings instead of producing them. */
|
|
136
|
+
export declare const VALIDATE_PASS = "pass-validate";
|
|
137
|
+
/** Scan stage 1's lens (agents/scan/pass-scan.md) — built only into the
|
|
138
|
+
* companion's scan build. */
|
|
139
|
+
export declare const SCAN_PASS = "pass-scan";
|
|
140
|
+
/** No path predicate: added mid-round by the session, or planned by its
|
|
141
|
+
* content trigger when the diff touches synchronisation or the PR text says
|
|
142
|
+
* race/lock/thread-safe (heuristics.ts SUBLENS_TRIGGERS; the
|
|
143
|
+
* `concurrency-planned` addendum below). */
|
|
144
|
+
export declare const CONCURRENCY_PASS = "pass-concurrency";
|
|
145
|
+
/** Addable only: the ask-your-human lens. Same reason as
|
|
146
|
+
* pass-concurrency and a stronger one — no path predicate finds "code whose
|
|
147
|
+
* intent is not written down anywhere", and the deciding fact (is the answer
|
|
148
|
+
* in the repo at all?) is only visible after the diff has been read. */
|
|
149
|
+
export declare const ASK_HUMAN_PASS = "pass-ask-human";
|
|
150
|
+
/**
|
|
151
|
+
* Who an addendum binds:
|
|
152
|
+
* - `"all"` — every built pass, `pass-validate` included.
|
|
153
|
+
* - `"lenses"` — every pass that PRODUCES findings, i.e. all but
|
|
154
|
+
* `pass-validate`. New lenses are covered automatically;
|
|
155
|
+
* the validator gets its own entry with its own wording.
|
|
156
|
+
* - a list — exactly the named passes (lens-specific rules).
|
|
157
|
+
*/
|
|
158
|
+
export type PassAddendumScope = "all" | "lenses" | readonly string[];
|
|
159
|
+
export interface PassAddendum {
|
|
160
|
+
/** Stable id — what tests and commit messages refer to. */
|
|
161
|
+
id: string;
|
|
162
|
+
scope: PassAddendumScope;
|
|
163
|
+
/** Rendered verbatim into the built body, in registry order. */
|
|
164
|
+
text: string;
|
|
165
|
+
/**
|
|
166
|
+
* Composed only when the build's ecosystem is this one. Absent ⇒ every
|
|
167
|
+
* ecosystem. The gate keeps the entry at its registry position, so a
|
|
168
|
+
* Django build composes the same bytes with or without the gate, and a
|
|
169
|
+
* `none` build carries no framework rule and no claim about a pre-check that
|
|
170
|
+
* never runs.
|
|
171
|
+
*/
|
|
172
|
+
ecosystem?: EcosystemName;
|
|
173
|
+
/**
|
|
174
|
+
* Composed only in a build of this mode. Absent ⇒ every build.
|
|
175
|
+
* `"scan"` entries redefine what a PR build takes for granted (a diff, a
|
|
176
|
+
* changed-line anchor), so they reach the companion's scan agent build and
|
|
177
|
+
* never a PR round's — the daemon's build is a `"pr"` build, always.
|
|
178
|
+
*/
|
|
179
|
+
mode?: BuildMode;
|
|
180
|
+
/**
|
|
181
|
+
* Composed only in a scan build of this depth (`[scan] depth`). Absent ⇒
|
|
182
|
+
* every depth. Only a `mode: "scan"` entry carries one; a PR build is
|
|
183
|
+
* always `"standard"`, so a `"deep"` entry never reaches it.
|
|
184
|
+
*/
|
|
185
|
+
depth?: ScanDepth;
|
|
186
|
+
}
|
|
187
|
+
/** What an agent build is for: a PR round (the daemon, the bench,
|
|
188
|
+
* the replay — the default) or the companion's whole-repo scan. */
|
|
189
|
+
export type BuildMode = "pr" | "scan";
|
|
190
|
+
/** Does `addendum` compose into a build for `ecosystem`? */
|
|
191
|
+
export declare function addendumInEcosystem(addendum: PassAddendum, ecosystem: EcosystemName): boolean;
|
|
192
|
+
/** Does `addendum` compose into a build of `mode`? */
|
|
193
|
+
export declare function addendumInMode(addendum: PassAddendum, mode: BuildMode): boolean;
|
|
194
|
+
/** Does `addendum` compose into a build of `depth`? */
|
|
195
|
+
export declare function addendumInDepth(addendum: PassAddendum, depth: ScanDepth): boolean;
|
|
196
|
+
/** Does `scope` bind `pass`? */
|
|
197
|
+
export declare function addendumApplies(scope: PassAddendumScope, pass: string): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* The "Allowed commands: …" clause of the execution policy, rendered from the
|
|
200
|
+
* bash guard's own allowlist. The two halves of the no-exec policy are the
|
|
201
|
+
* prompt (what a pass is told it may run) and `packages/pi-plugin/extensions/bash-guard.ts` (what
|
|
202
|
+
* `checkBashCommand` lets through); deriving one from the other keeps the
|
|
203
|
+
* prompt from advertising a command the guard refuses, which costs a turn and
|
|
204
|
+
* reads to the model as a malfunction. `gh` is named last and qualified,
|
|
205
|
+
* because the guard admits only its read verbs.
|
|
206
|
+
*/
|
|
207
|
+
export declare const ALLOWED_COMMANDS_CLAUSE: string;
|
|
208
|
+
/** The execution-policy + leaf rules — the registry's first entry; only its
|
|
209
|
+
* allowlist clause is derived. */
|
|
210
|
+
export declare const EXECUTION_POLICY_ADDENDUM: string;
|
|
211
|
+
/** Addenda that exist only when the config asks for them — composed after the
|
|
212
|
+
* registry by both agent builds (src/wire.ts, src/bench/runner.ts). */
|
|
213
|
+
export declare function configAddenda(review: {
|
|
214
|
+
nits?: NitPolicy;
|
|
215
|
+
validate_demote?: boolean;
|
|
216
|
+
validate_consequence_rule?: boolean;
|
|
217
|
+
dedup_merge?: boolean;
|
|
218
|
+
validate_compact?: boolean;
|
|
219
|
+
}): PassAddendum[];
|
|
220
|
+
export declare const LESSON_VALIDATE_ADDENDUM_ID = "lesson-validate";
|
|
221
|
+
/** The id of the same-day `[feedback]` validator addendum
|
|
222
|
+
* (`feedbackDayAddendum`, src/feedback.ts), composed beside the lesson one —
|
|
223
|
+
* reserved against profile packs by the same name (packages/pi-plugin/src/profiles.ts). */
|
|
224
|
+
export declare const FEEDBACK_DAY_ADDENDUM_ID = "feedback-day-validate";
|
|
225
|
+
/** The one downgrade word a dont-raise lesson licenses (packages/pi-plugin/src/findingsrecord.ts
|
|
226
|
+
* DOWNGRADE_WORDS). */
|
|
227
|
+
export declare const LESSON_SHAPE_WORD = "lesson-shape";
|
|
228
|
+
export declare const LESSON_VALIDATE_ADDENDUM: string;
|
|
229
|
+
/**
|
|
230
|
+
* The lesson addenda: the validator's `lesson-validate`,
|
|
231
|
+
* composed only when `[memory] delivery = "on"` and the operator's kill
|
|
232
|
+
* switch is on. Anything else — `shadow`, `off`, the kill switch off, the
|
|
233
|
+
* bench (which never calls this) — is no addendum at all, so the build is
|
|
234
|
+
* byte-identical.
|
|
235
|
+
*/
|
|
236
|
+
export declare function lessonAddenda(opts: {
|
|
237
|
+
delivery: MemoryDelivery;
|
|
238
|
+
lessonsOff: boolean;
|
|
239
|
+
}): PassAddendum[];
|
|
240
|
+
/**
|
|
241
|
+
* The lesson addenda for the production agents build (wire.ts), from
|
|
242
|
+
* `[memory] delivery` and the operator's kill switch as the ledger holds it
|
|
243
|
+
* now (src/lessonledger.ts `lessonsOff`) — so `qcr lessons off` takes the
|
|
244
|
+
* validator's lesson authority away at the rebuild it triggers. No ledger yet,
|
|
245
|
+
* or one that cannot be read, reads as the switch on: the authority alone
|
|
246
|
+
* changes nothing without a round's `Lessons file:` line, and a ledger that
|
|
247
|
+
* cannot be read selects nothing for any round.
|
|
248
|
+
*/
|
|
249
|
+
export declare function lessonAddendaFor(delivery: MemoryDelivery, killSwitch: {
|
|
250
|
+
lessonsOff(): boolean;
|
|
251
|
+
} | null | undefined): PassAddendum[];
|
|
252
|
+
/** Composed only where the leaves hold the memory tools (BuildAgentsOptions.memory). */
|
|
253
|
+
export declare const MEMORY_ADDENDUM_ID = "memory-read-only";
|
|
254
|
+
export declare const CONSISTENCY_IDENTIFIERS_ADDENDUM: string;
|
|
255
|
+
export declare const VALIDATE_EXTERNAL_SEMANTICS_ADDENDUM = "\n## External and documented semantics (sandbox rule)\nFor a candidate resting on what a library, tool, service or platform does:\n\n1. **Read the dependency sources first** \u2014 the *Third-party sources* block's package at the PR's locked version, citing `path:line` \u2014 and the repository's own usage (call sites, wrappers, tests, docs). What you read settles it: `refuted`, or it survives.\n2. **Documented core semantics and published standards are evidence, not assumptions**: the language, its runtime and standard library; SQL and the database engine in use (constraints, isolation, locking, bind-parameter and identifier limits); the datastore's commands and type errors; HTTP and other protocols; the operating system and process model; an RFC, a file-format or codec specification, a published grammar. Name the behaviour and where it is specified, and keep the candidate's severity and reachability.\n3. **Behaviour specific to one third-party tool that its sources and documentation do not settle**, when the mechanism IN THIS CODE is real, is a question, never a doubt: demote it to `P3` with the downgrade word `external-assumption`, its text naming the assumption (\"if `<tool>` treats `<input>` as `<X>`, then `<consequence>`\"); its reachability stays how often the path runs.\n4. **A missing source lowers `confidence`, never `reachability`** \u2014 reachability is how often the path runs. `unverifiable` is only for a mechanism you could not establish IN THIS CODE.\n\nNone of this lifts a candidate whose in-repo mechanism is wrong or that is below the bar; a claim one read of the repository could settle is still yours to settle.\n";
|
|
256
|
+
export declare const VALIDATE_INTERFACE_CONTRACT_ADDENDUM: string;
|
|
257
|
+
export declare const VALIDATE_MASKED_DEFECT_ADDENDUM: string;
|
|
258
|
+
export declare const TESTS_LOOSENED_IS_BEHAVIOUR_ADDENDUM: string;
|
|
259
|
+
export declare const TESTS_CANNOT_OBSERVE_ADDENDUM: string;
|
|
260
|
+
export declare const TESTS_CANNOT_OBSERVE_VALIDATE_ADDENDUM: string;
|
|
261
|
+
export declare const CONCURRENCY_DUPLICATE_INIT_ADDENDUM: string;
|
|
262
|
+
export declare const WRITE_PREDICATE_SCOPE_ADDENDUM: string;
|
|
263
|
+
export declare const PERSISTENCE_BYPASSES_CALLBACKS_ADDENDUM: string;
|
|
264
|
+
export declare const REORDERED_STATEMENTS_ADDENDUM: string;
|
|
265
|
+
export declare const ANCHOR_AT_CAUSE_ADDENDUM: string;
|
|
266
|
+
export declare const VALIDATE_ANCHOR_AT_CAUSE_ADDENDUM: string;
|
|
267
|
+
export declare const LINE_LOCAL_SLIPS_ADDENDUM: string;
|
|
268
|
+
export declare const EXHAUST_THE_SITE_ADDENDUM = "\n## Exhaust the site before you move on (sandbox rule)\nWhen you CONFIRM a defect's mechanism, check before moving on: its **siblings** \u2014 the other overrides, fields, keys, branches, enum arms, registry entries or parallel methods the PR touches the same way, and the other readers of a shared value, callers of a shared helper or copies of a shared pattern; its **twin** \u2014 add/remove, setter/getter, the error path beside the success path, setup/cleanup, encode/decode; **every consequence** of an early return, a reorder, a bypass or a swallowed error (a refresh not fired, an event not sent, a counter not updated, a resource not freed); and the **other calls** in the same loop or chain that can fail. A site or consequence that needs its OWN fix is its own finding with its `path:line`; sites one fix covers are one finding with every site listed. Stay inside what this PR changed or newly exposes.\n";
|
|
269
|
+
export declare const SWEEP_MECHANICAL_CHECKLIST_ADDENDUM: string;
|
|
270
|
+
export declare const SWEEP_DOCS_AND_MOVES_ADDENDUM: string;
|
|
271
|
+
export declare const REMOVED_RULE_OTHER_CONSUMERS_ADDENDUM: string;
|
|
272
|
+
export declare const CONTRACT_VALUES_RENUMBERED_ADDENDUM: string;
|
|
273
|
+
export declare const CONCURRENCY_PLANNED_ADDENDUM: string;
|
|
274
|
+
export declare const CONCURRENCY_SCAN_ADDENDUM: string;
|
|
275
|
+
export declare const SCAN_MODE_ANCHOR_ADDENDUM: string;
|
|
276
|
+
export declare const SCAN_DELIVERY_ADDENDUM: string;
|
|
277
|
+
/** Suggestions a deep scan's stage 1 may make per case (the cheap pass's
|
|
278
|
+
* own cap is five): enough for every focus file of a full case to be named. */
|
|
279
|
+
export declare const SCAN_DEEP_MAX_SUGGESTIONS = 20;
|
|
280
|
+
export declare const SCAN_DEEP_SUGGEST_ADDENDUM: string;
|
|
281
|
+
export declare const SCAN_DEEP_DIG_ADDENDUM: string;
|
|
282
|
+
export declare const SCAN_DEEP_RECALL_ADDENDUM: string;
|
|
283
|
+
export declare const SCAN_DEEP_CONSISTENCY_ADDENDUM: string;
|
|
284
|
+
export declare const SCAN_DEEP_DUPLICATION_ADDENDUM: string;
|
|
285
|
+
export declare const SCAN_DEEP_MAINTAINABILITY_ADDENDUM: string;
|
|
286
|
+
export declare const SCAN_PRECISION_LENSES: readonly ["pass-scan", "pass-contracts", "pass-data-safety", "pass-security", "pass-concurrency"];
|
|
287
|
+
export interface ScanFalsePositiveClass {
|
|
288
|
+
slug: string;
|
|
289
|
+
name: string;
|
|
290
|
+
text: string;
|
|
291
|
+
}
|
|
292
|
+
export declare const SCAN_FALSE_POSITIVE_CLASSES: readonly ScanFalsePositiveClass[];
|
|
293
|
+
export declare const SCAN_PRECISION_ADDENDUM: string;
|
|
294
|
+
export declare const SCAN_SKEPTIC_ADDENDUM: string;
|
|
295
|
+
export declare const NO_BUDGET_ADDENDUM: string;
|
|
296
|
+
export declare const REPEATED_COPY_ADDENDUM: string;
|
|
297
|
+
export declare const REPEATED_COPY_VALIDATE_ADDENDUM: string;
|
|
298
|
+
export declare const REGRESSION_TEST_ASK_ADDENDUM: string;
|
|
299
|
+
export declare const REGRESSION_TEST_ASK_VALIDATE_ADDENDUM: string;
|
|
300
|
+
/**
|
|
301
|
+
* The composed addendum set, in composition order.
|
|
302
|
+
*
|
|
303
|
+
* Order is the declaration order below and nothing else — deterministic by
|
|
304
|
+
* construction, so a rebuild of an unchanged tree produces byte-identical
|
|
305
|
+
* bodies. Execution policy stays first (the most operational rule).
|
|
306
|
+
*/
|
|
307
|
+
export declare const PASS_ADDENDA: readonly PassAddendum[];
|
|
308
|
+
/** The addenda binding `pass`, in composition order. `ecosystem` defaults to
|
|
309
|
+
* Django, as everywhere on the ecosystem seam; `depth` to `"standard"`, which
|
|
310
|
+
* is every PR build's. */
|
|
311
|
+
export declare function addendaForPass(pass: string, registry?: readonly PassAddendum[], ecosystem?: EcosystemName, mode?: BuildMode, depth?: ScanDepth): PassAddendum[];
|
|
312
|
+
/** The text appended to `pass`'s BUILT body (never to its seed). */
|
|
313
|
+
export declare function composeAddendum(pass: string, registry?: readonly PassAddendum[], ecosystem?: EcosystemName, mode?: BuildMode, depth?: ScanDepth): string;
|
|
314
|
+
export interface BuildAgentsOptions {
|
|
315
|
+
/** Sandbox root for include resolution. Defaults to `srcDir`'s parent. */
|
|
316
|
+
root?: string;
|
|
317
|
+
/** config.models.tiers — PassTier → model spec ("provider/model:thinking"). */
|
|
318
|
+
tiers?: Record<PassTier, string>;
|
|
319
|
+
/** config.models.risk_passes — build only the sol-high variant. */
|
|
320
|
+
riskPasses?: string[];
|
|
321
|
+
/** config.models.validate_tier — pass-validate's lowest built tier: the
|
|
322
|
+
* validator is built at it and every tier above (`tiersForPass`). */
|
|
323
|
+
validateTier?: PassTier;
|
|
324
|
+
/** Addendum registry to compose from — injected for tests; defaults to
|
|
325
|
+
* `PASS_ADDENDA`. Composition order is the registry's own order. */
|
|
326
|
+
addenda?: readonly PassAddendum[];
|
|
327
|
+
/** The profile's ecosystem — decides which ecosystem-gated
|
|
328
|
+
* addenda compose. Defaults to Django;
|
|
329
|
+
* wire.ts and the bench always pass the profile's selection. */
|
|
330
|
+
ecosystem?: EcosystemName;
|
|
331
|
+
/** Per-VARIANT model-spec overrides, keyed by variant name
|
|
332
|
+
* (`<pass>--<tier>`) — wins over the tier's spec; same splitting rules. */
|
|
333
|
+
models?: Record<string, string>;
|
|
334
|
+
/** Identity variable map — `identityVars(cfg)` in production
|
|
335
|
+
* (threaded from wire.ts). Defaults to the neutral role wording so a
|
|
336
|
+
* config-less build never ships a literal `{{…}}`. */
|
|
337
|
+
vars?: Readonly<Record<string, string>>;
|
|
338
|
+
/** What the build is for. `"pr"` (the default) is every PR
|
|
339
|
+
* round's build. `"scan"` is the companion's: it composes the `mode: "scan"`
|
|
340
|
+
* addenda (the scan-mode anchor rule), builds `extraSrcDirs` beside
|
|
341
|
+
* `srcDir`, and gives every variant exactly `SCAN_LEAF_TOOLS` — a scan leaf
|
|
342
|
+
* runs with no extensions, so no bash guard stands between it and a shell,
|
|
343
|
+
* and none of the memory tools exists in it. */
|
|
344
|
+
mode?: BuildMode;
|
|
345
|
+
/** A scan build's depth (`[scan] depth`): a `"deep"` build also composes
|
|
346
|
+
* the `depth: "deep"` addenda. Default `"standard"`; a `"pr"` build is
|
|
347
|
+
* always `"standard"`, whatever this says. */
|
|
348
|
+
scanDepth?: ScanDepth;
|
|
349
|
+
/** A `"pr"` build whose leaves the companion's case runner runs (the
|
|
350
|
+
* profile replay): composed exactly as a PR round's build — no
|
|
351
|
+
* scan-mode addendum — but every variant's tools are `SCAN_LEAF_TOOLS`,
|
|
352
|
+
* for the scan build's reason: such a leaf loads no extensions, so no bash
|
|
353
|
+
* guard stands between it and a shell, and no memory tool exists in it.
|
|
354
|
+
* Implied by `mode: "scan"`. */
|
|
355
|
+
readOnlyLeaves?: boolean;
|
|
356
|
+
/** Whether the leaves run with the memory extension (the two read-only
|
|
357
|
+
* memory tools and their rule). Default `LENS_LEAVES_LOAD_MEMORY` — false:
|
|
358
|
+
* no route's lens leaf loads it, so the tools and the rule would describe
|
|
359
|
+
* nothing. Never for a scan or `readOnlyLeaves` build, whatever this says.
|
|
360
|
+
* The bench passes `false` explicitly. */
|
|
361
|
+
memory?: boolean;
|
|
362
|
+
/** More source directories of `pass-*.md` agents, built exactly like
|
|
363
|
+
* `srcDir`'s — the scan build's `agents/scan/` (`pass-scan`), which no PR
|
|
364
|
+
* build ever reads. A name in two directories is refused. */
|
|
365
|
+
extraSrcDirs?: string[];
|
|
366
|
+
/** Narrow a pass's fan-out to these tiers (intersected with
|
|
367
|
+
* `tiersForPass`), keyed by pass name. The scan build's `pass-scan` runs at
|
|
368
|
+
* `[scan] tier` alone, so that is the only variant it builds. A pass not
|
|
369
|
+
* named keeps every tier `tiersForPass` gives it. */
|
|
370
|
+
onlyTiers?: Readonly<Record<string, readonly PassTier[]>>;
|
|
371
|
+
readFile?: (path: string) => string;
|
|
372
|
+
}
|
|
373
|
+
/** The tools a scan leaf holds: read-only, pi's own names, the
|
|
374
|
+
* same set the companion's other read-only leaves carry. No `bash` — the
|
|
375
|
+
* bash guard is an extension and a scan leaf loads none — and no memory. */
|
|
376
|
+
export declare const SCAN_LEAF_TOOLS: readonly string[];
|
|
377
|
+
/** Put exactly `SCAN_LEAF_TOOLS` on a variant's `tools:` line, adding the
|
|
378
|
+
* line when absent (a scan leaf's allowlist is never "whatever the harness
|
|
379
|
+
* gives you"). */
|
|
380
|
+
export declare function applyScanLeafTools(frontmatter: string): string;
|
|
381
|
+
export interface BuiltAgent {
|
|
382
|
+
/** Variant agent name: `<pass>--<tier>`. */
|
|
383
|
+
name: string;
|
|
384
|
+
/** The seeded pass this variant was built from. */
|
|
385
|
+
pass: string;
|
|
386
|
+
tier: PassTier;
|
|
387
|
+
source: string;
|
|
388
|
+
output: string;
|
|
389
|
+
/** Model id with the thinking suffix split off (the frontmatter's `model:`
|
|
390
|
+
* carries the whole spec). */
|
|
391
|
+
model: string | null;
|
|
392
|
+
/** Thinking level written to frontmatter, when the spec carried one. */
|
|
393
|
+
thinking: string | null;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* `[models.pass_tiers]` as the per-VARIANT model map `buildAgents` takes
|
|
397
|
+
* (`BuildAgentsOptions.models`): every variant of a pinned pass carries its
|
|
398
|
+
* pinned tier's spec, so whichever variant name a session calls, the lens runs
|
|
399
|
+
* at that tier. Dispatch plans the pinned tier by name too (buildPassPlan).
|
|
400
|
+
* `overrides` is the per-variant map the rest of the config already asks for
|
|
401
|
+
* (the profile's per-lens `effort`): it is kept, and a pinned pass
|
|
402
|
+
* takes ITS pinned tier's entry from it when there is one — a pin moves the
|
|
403
|
+
* tier, the profile still sets the effort. Empty pins ⇒ `overrides` unchanged.
|
|
404
|
+
* `lenses` is the profile's tuning: its `min_tier` floors a pin exactly as
|
|
405
|
+
* dispatch's plan floors it (`flooredTier`), so the variant the plan names
|
|
406
|
+
* runs at the tier the plan records, never at the pin below the floor.
|
|
407
|
+
*/
|
|
408
|
+
export declare function passTierModels(passTiers: Readonly<Record<string, PassTier>> | undefined, tiers: Readonly<Record<PassTier, string>>, overrides?: Readonly<Record<string, string>>, passModels?: Readonly<Record<string, string>>,
|
|
409
|
+
/** Variants a pin leaves at their OWN tier's spec (`sweepLightVariants`). */
|
|
410
|
+
unpinned?: readonly string[], lenses?: LensTuningMap): Record<string, string>;
|
|
411
|
+
/** The pass-sweep variant `[review] sweep_light_tier` plans
|
|
412
|
+
* light rows at — exempt from the sweep's tier pin, so that variant runs at
|
|
413
|
+
* its own tier's spec. The light tier is floored by the profile's sweep
|
|
414
|
+
* `min_tier` as dispatch floors it, so the exempt variant is the one the plan
|
|
415
|
+
* names. Empty when the lever is off. */
|
|
416
|
+
export declare function sweepLightVariants(review: {
|
|
417
|
+
sweep_light_tier?: "" | PassTier;
|
|
418
|
+
}, lenses?: LensTuningMap): string[];
|
|
419
|
+
/** The tiers a given pass fans out into.
|
|
420
|
+
*
|
|
421
|
+
* `validateTier` is the validator's configured tier. Dispatch never raises
|
|
422
|
+
* it to the round's highest lens, but a profile's `min_tier` for
|
|
423
|
+
* `pass-validate` can floor it upward, so every tier at or above it
|
|
424
|
+
* keeps a built variant on disk — a floored plan row never names an agent the
|
|
425
|
+
* subagent tool cannot find. */
|
|
426
|
+
export declare function tiersForPass(pass: string, riskPasses: string[], validateTier: PassTier): PassTier[];
|
|
427
|
+
/**
|
|
428
|
+
* Preprocess every `agents/pass-*.md` in `srcDir` into per-tier variant files
|
|
429
|
+
* `<pass>--<tier>.md` in `outDir` — the directory the native subagent
|
|
430
|
+
* extension discovers through its "user" scope (the container
|
|
431
|
+
* entrypoints symlink ~/.pi/agent/agents at outDir, so the built passes are
|
|
432
|
+
* exactly what a session's `subagent` tool can name).
|
|
433
|
+
*/
|
|
434
|
+
export declare function buildAgents(srcDir: string, outDir: string, opts?: BuildAgentsOptions): BuiltAgent[];
|
|
435
|
+
//# sourceMappingURL=include.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../src/include.ts"],"names":[],"mappings":"AA+BA,OAAO,EAEL,cAAc,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBA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