@aragon-agent/cli 0.6.47 → 0.6.48
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/CHANGELOG.md +13 -0
- package/README.md +27 -6
- package/dist/agent/coalesce.d.ts +1 -1
- package/dist/agent/controller.d.ts +21 -21
- package/dist/agent/controller.js +13 -13
- package/dist/agent/conversation-reset.d.ts +1 -1
- package/dist/agent/governance-wiring.d.ts +6 -6
- package/dist/agent/governance-wiring.js +4 -4
- package/dist/agent/headless.d.ts +5 -5
- package/dist/agent/headless.js +4 -4
- package/dist/agent/job-notices.d.ts +1 -1
- package/dist/agent/job-notices.js +1 -1
- package/dist/agent/kit-apply.d.ts +3 -3
- package/dist/agent/kit-apply.js +3 -3
- package/dist/agent/model-profile-settings.d.ts +2 -2
- package/dist/agent/model-profile-settings.js +6 -6
- package/dist/agent/prompt-options.d.ts +1 -1
- package/dist/agent/system-prompt.d.ts +1 -1
- package/dist/{ui → app}/App.d.ts +9 -9
- package/dist/{ui → app}/App.js +79 -79
- package/dist/{ui → app}/use-startup-notices.d.ts +1 -1
- package/dist/{ui → app}/use-startup-notices.js +2 -2
- package/dist/cli.js +29 -29
- package/dist/commands/agents-command.js +1 -1
- package/dist/commands/builtins.js +9 -9
- package/dist/commands/governance-command.js +2 -2
- package/dist/commands/governance-runs-table.js +1 -1
- package/dist/commands/kit-command.js +1 -1
- package/dist/commands/perf.d.ts +3 -3
- package/dist/commands/perf.js +1 -1
- package/dist/commands/registry.d.ts +8 -8
- package/dist/commands/skills.js +2 -2
- package/dist/commands/team-command.js +1 -1
- package/dist/compaction/archive.d.ts +1 -1
- package/dist/compaction/archive.js +1 -1
- package/dist/compaction/child.d.ts +3 -3
- package/dist/compaction/child.js +4 -4
- package/dist/compaction/command.js +5 -5
- package/dist/compaction/compactor.d.ts +6 -6
- package/dist/compaction/compactor.js +6 -6
- package/dist/compaction/context-command.js +1 -1
- package/dist/compaction/digest.js +1 -1
- package/dist/compaction/memory-input.js +1 -1
- package/dist/compaction/memory-validation.js +1 -1
- package/dist/compaction/memory.js +1 -1
- package/dist/compaction/summarize-call.js +1 -1
- package/dist/compaction/summary-prompt.js +1 -1
- package/dist/compaction/tail-budget.js +2 -2
- package/dist/compaction/wiring.d.ts +5 -5
- package/dist/compaction/wiring.js +2 -2
- package/dist/config/cli-commands.d.ts +1 -1
- package/dist/config/cli-commands.js +3 -3
- package/dist/config/env.d.ts +1 -1
- package/dist/config/env.js +4 -4
- package/dist/config/load.d.ts +2 -2
- package/dist/config/load.js +6 -6
- package/dist/config/migrate-state-out-of-config.js +1 -1
- package/dist/config/model-profile-store.d.ts +4 -54
- package/dist/config/model-profile-store.js +3 -3
- package/dist/config/prompt-history.js +1 -1
- package/dist/config/store.d.ts +2 -2
- package/dist/config/store.js +3 -3
- package/dist/diagnostics/doctor.js +4 -4
- package/dist/exec/bridge/decisions.d.ts +1 -1
- package/dist/exec/bridge/human-answers.d.ts +1 -1
- package/dist/exec/bridge/human-answers.js +1 -1
- package/dist/exec/bridge/protocol.d.ts +1 -1
- package/dist/exec/bridge/server.js +1 -1
- package/dist/exec/events.d.ts +2 -2
- package/dist/exec/index.d.ts +1 -1
- package/dist/exec/index.js +1 -1
- package/dist/exec/permission.js +1 -1
- package/dist/exec/runner.d.ts +3 -3
- package/dist/exec/runner.js +2 -2
- package/dist/exec/threads/runtime.js +1 -1
- package/dist/fast/digest.d.ts +1 -1
- package/dist/fast/digest.js +1 -1
- package/dist/fast/frames.d.ts +1 -1
- package/dist/fast/frames.js +1 -1
- package/dist/fast/prompt.d.ts +1 -1
- package/dist/fast/prompt.js +1 -1
- package/dist/fast/review-call.js +1 -1
- package/dist/fast/reviewer.d.ts +3 -3
- package/dist/fast/reviewer.js +1 -1
- package/dist/fast/summary-call.d.ts +3 -3
- package/dist/fast/summary-call.js +2 -2
- package/dist/fast/summary-prompt.d.ts +1 -1
- package/dist/fast/summary-prompt.js +1 -1
- package/dist/fast/wiring.d.ts +4 -4
- package/dist/fast/wiring.js +1 -1
- package/dist/governance/card-normalize.d.ts +1 -1
- package/dist/governance/copy.d.ts +1 -1
- package/dist/governance/copy.js +2 -2
- package/dist/governance/engine/artifact-persist.d.ts +1 -1
- package/dist/governance/engine/budget.d.ts +1 -1
- package/dist/governance/engine/budget.js +1 -1
- package/dist/governance/engine/cards.d.ts +1 -1
- package/dist/governance/engine/digest.js +1 -1
- package/dist/governance/engine/engine-core.d.ts +5 -5
- package/dist/governance/engine/engine-core.js +1 -1
- package/dist/governance/engine/engine.d.ts +1 -1
- package/dist/governance/engine/engine.js +1 -1
- package/dist/governance/engine/estimate.d.ts +1 -1
- package/dist/governance/engine/estimate.js +1 -1
- package/dist/governance/engine/inspector.js +2 -2
- package/dist/governance/engine/integration.d.ts +1 -1
- package/dist/governance/engine/lifecycle.d.ts +1 -1
- package/dist/governance/engine/lifecycle.js +1 -1
- package/dist/governance/engine/phase-members.d.ts +1 -1
- package/dist/governance/engine/phase-planner.d.ts +1 -1
- package/dist/governance/engine/phase-planner.js +1 -1
- package/dist/governance/engine/rebuild.d.ts +1 -1
- package/dist/governance/engine/report.d.ts +1 -1
- package/dist/governance/engine/report.js +1 -1
- package/dist/governance/engine/run-digest.d.ts +1 -1
- package/dist/governance/engine/spec-builder.d.ts +2 -2
- package/dist/governance/engine/spec-builder.js +2 -2
- package/dist/governance/engine/stage-runner.js +2 -2
- package/dist/governance/engine/start-input.d.ts +1 -1
- package/dist/governance/engine/start-input.js +1 -1
- package/dist/governance/engine/state-machine.d.ts +1 -1
- package/dist/governance/engine/state-machine.js +3 -3
- package/dist/governance/engine/submission-queries.d.ts +1 -1
- package/dist/governance/engine/submission-render.d.ts +1 -1
- package/dist/governance/engine/submissions.d.ts +1 -1
- package/dist/governance/engine/submissions.js +1 -1
- package/dist/governance/engine/visibility.d.ts +1 -1
- package/dist/governance/engine/visibility.js +1 -1
- package/dist/governance/posture-transition.d.ts +2 -2
- package/dist/governance/posture-transition.js +1 -1
- package/dist/governance/profiles.d.ts +1 -1
- package/dist/governance/prompts/orchestrator-block.d.ts +2 -2
- package/dist/governance/prompts/orchestrator-block.js +2 -2
- package/dist/governance/prompts/plan-addendum.d.ts +1 -1
- package/dist/governance/prompts/plan-addendum.js +1 -1
- package/dist/governance/prompts/role-blocks.d.ts +2 -2
- package/dist/governance/prompts/role-blocks.js +1 -1
- package/dist/governance/report-reader.js +1 -1
- package/dist/governance/roles.d.ts +1 -1
- package/dist/governance/rules/claims.d.ts +1 -1
- package/dist/governance/rules/claims.js +1 -1
- package/dist/governance/rules/elimination.d.ts +1 -1
- package/dist/governance/rules/elimination.js +1 -1
- package/dist/governance/rules/failure-analysis.d.ts +2 -2
- package/dist/governance/rules/failure-analysis.js +1 -1
- package/dist/governance/rules/ledger-replay.d.ts +1 -1
- package/dist/governance/rules/ledger-state.d.ts +1 -1
- package/dist/governance/rules/ledger-state.js +1 -1
- package/dist/governance/rules/ledger.d.ts +2 -2
- package/dist/governance/rules/ledger.js +2 -2
- package/dist/governance/rules/rca.d.ts +1 -1
- package/dist/governance/rules/rca.js +1 -1
- package/dist/governance/rules/settlement.d.ts +2 -2
- package/dist/governance/rules/settlement.js +2 -2
- package/dist/governance/rules/suspicion.d.ts +1 -1
- package/dist/governance/store/artifacts.d.ts +1 -1
- package/dist/governance/store/artifacts.js +1 -1
- package/dist/governance/store/events-log.d.ts +1 -1
- package/dist/governance/store/run-store.d.ts +1 -1
- package/dist/governance/store/run-store.js +1 -1
- package/dist/governance/store/scoreboard-export.d.ts +1 -1
- package/dist/governance/tools/child-tools.d.ts +1 -1
- package/dist/governance/tools/guard.d.ts +1 -1
- package/dist/governance/tools/guard.js +1 -1
- package/dist/governance/tools/inspector-tools.d.ts +2 -2
- package/dist/governance/tools/inspector-tools.js +2 -2
- package/dist/governance/tools/lead-tools.d.ts +1 -1
- package/dist/governance/tools/lead-tools.js +1 -1
- package/dist/governance/tools/normalize-util.js +1 -1
- package/dist/governance/tools/scan-incomplete.js +1 -1
- package/dist/governance/tools/shared-tools.d.ts +1 -1
- package/dist/governance/tools/shared-tools.js +1 -1
- package/dist/governance/tools/submit-normalizers.d.ts +1 -1
- package/dist/governance/tools/submit-normalizers.js +1 -1
- package/dist/governance/tools/submit-tools.d.ts +1 -1
- package/dist/logging/cli-commands.js +1 -1
- package/dist/logging/install.d.ts +1 -1
- package/dist/logging/install.js +3 -3
- package/dist/logging/logger.d.ts +2 -2
- package/dist/logging/logger.js +31 -2
- package/dist/proc/kill-tree.js +1 -1
- package/dist/proc/log-mirror.js +1 -1
- package/dist/proc/log-ring.js +2 -2
- package/dist/proc/notices.d.ts +1 -1
- package/dist/proc/notices.js +2 -2
- package/dist/proc/prompt.d.ts +1 -1
- package/dist/proc/prompt.js +1 -1
- package/dist/proc/readiness.js +1 -1
- package/dist/proc/supervisor.d.ts +1 -1
- package/dist/proc/supervisor.js +3 -3
- package/dist/proc/wait.d.ts +1 -1
- package/dist/proc/wait.js +1 -1
- package/dist/prompts/command.d.ts +1 -1
- package/dist/prompts/command.js +1 -1
- package/dist/prompts/normalize.d.ts +1 -1
- package/dist/prompts/normalize.js +1 -1
- package/dist/prompts/resolve.d.ts +1 -1
- package/dist/prompts/store.d.ts +2 -12
- package/dist/prompts/store.js +6 -60
- package/dist/session/checkpoint.d.ts +2 -2
- package/dist/session/clear-archive.d.ts +2 -2
- package/dist/session/persist.d.ts +2 -2
- package/dist/session/persist.js +1 -1
- package/dist/session/startup-session.d.ts +2 -2
- package/dist/session/validate-session.js +3 -3
- package/dist/skills/service.d.ts +2 -2
- package/dist/team/bus.d.ts +1 -1
- package/dist/team/bus.js +1 -1
- package/dist/team/child-reviewer.d.ts +2 -2
- package/dist/team/child-reviewer.js +1 -1
- package/dist/team/comm-tools.js +1 -1
- package/dist/team/dispatch-gate.js +1 -1
- package/dist/team/forced-dispatch.js +1 -1
- package/dist/team/forced-mode.d.ts +1 -1
- package/dist/team/forced-prompt.d.ts +1 -1
- package/dist/team/forced-prompt.js +1 -1
- package/dist/team/normalize.d.ts +1 -1
- package/dist/team/normalize.js +1 -1
- package/dist/team/overseer.d.ts +3 -3
- package/dist/team/overseer.js +3 -3
- package/dist/team/prompt.d.ts +1 -1
- package/dist/team/prompt.js +1 -1
- package/dist/team/report.d.ts +2 -2
- package/dist/team/report.js +2 -2
- package/dist/team/retry.d.ts +1 -1
- package/dist/team/retry.js +1 -1
- package/dist/team/runtime.d.ts +4 -4
- package/dist/team/runtime.js +2 -2
- package/dist/team/settled.d.ts +2 -2
- package/dist/team/subagent.d.ts +4 -4
- package/dist/team/subagent.js +5 -5
- package/dist/team/task-tool.d.ts +1 -1
- package/dist/team/task-tool.js +1 -1
- package/dist/todo/normalize.d.ts +1 -1
- package/dist/todo/normalize.js +1 -1
- package/dist/todo/prompt.d.ts +1 -1
- package/dist/todo/prompt.js +1 -1
- package/dist/todo/store.d.ts +1 -1
- package/dist/todo/store.js +2 -2
- package/dist/todo/todo-tool.d.ts +1 -1
- package/dist/todo/todo-tool.js +2 -2
- package/dist/tools/bash-tool.d.ts +1 -1
- package/dist/tools/bash-tool.js +2 -2
- package/dist/tools/diff.d.ts +1 -1
- package/dist/tools/diff.js +1 -1
- package/dist/tools/file-change-store.d.ts +1 -1
- package/dist/tools/fs-tools.d.ts +2 -2
- package/dist/tools/fs-tools.js +1 -1
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js +1 -1
- package/dist/tools/job-tools.d.ts +2 -2
- package/dist/tools/job-tools.js +4 -4
- package/dist/tools/plan-tools.d.ts +1 -1
- package/dist/tools/plan-tools.js +1 -1
- package/dist/tools/proc-tools.d.ts +1 -1
- package/dist/tools/proc-tools.js +2 -2
- package/dist/update/classify-failure.d.ts +1 -1
- package/dist/update/install-lock.js +1 -1
- package/dist/update/install-source.d.ts +1 -1
- package/dist/update/installer.js +2 -2
- package/dist/update/npm-view.d.ts +1 -1
- package/dist/update/npm-view.js +1 -1
- package/dist/update/registry.d.ts +1 -1
- package/dist/update/registry.js +1 -1
- package/dist/update/service.d.ts +2 -2
- package/dist/update/service.js +2 -2
- package/package.json +7 -7
- package/dist/agent/agent-mode.d.ts +0 -108
- package/dist/agent/agent-mode.js +0 -121
- package/dist/agent/entry-limits.d.ts +0 -65
- package/dist/agent/entry-limits.js +0 -133
- package/dist/agent/governance-view.d.ts +0 -40
- package/dist/agent/governance-view.js +0 -40
- package/dist/agent/invocation-card.d.ts +0 -77
- package/dist/agent/invocation-card.js +0 -169
- package/dist/agent/model-probe-limits.d.ts +0 -39
- package/dist/agent/model-probe-limits.js +0 -25
- package/dist/agent/model-probe.d.ts +0 -104
- package/dist/agent/model-probe.js +0 -391
- package/dist/agent/queued-messages.d.ts +0 -23
- package/dist/agent/queued-messages.js +0 -49
- package/dist/agent/reducer.d.ts +0 -857
- package/dist/agent/reducer.js +0 -1646
- package/dist/agent/retry-view.d.ts +0 -68
- package/dist/agent/retry-view.js +0 -95
- package/dist/agent/usage.d.ts +0 -47
- package/dist/agent/usage.js +0 -84
- package/dist/compaction/limits.d.ts +0 -61
- package/dist/compaction/limits.js +0 -64
- package/dist/compaction/meter.d.ts +0 -276
- package/dist/compaction/meter.js +0 -512
- package/dist/compaction/pressure.d.ts +0 -163
- package/dist/compaction/pressure.js +0 -199
- package/dist/compaction/reason-text.d.ts +0 -36
- package/dist/compaction/reason-text.js +0 -78
- package/dist/compaction/types.d.ts +0 -360
- package/dist/compaction/types.js +0 -22
- package/dist/config/governance-config.d.ts +0 -125
- package/dist/config/governance-config.js +0 -164
- package/dist/config/kit-resolution.d.ts +0 -93
- package/dist/config/kit-resolution.js +0 -226
- package/dist/config/model-kits.d.ts +0 -225
- package/dist/config/model-kits.js +0 -302
- package/dist/config/model-profile-resolution.d.ts +0 -28
- package/dist/config/model-profile-resolution.js +0 -88
- package/dist/config/model-profiles.d.ts +0 -103
- package/dist/config/model-profiles.js +0 -188
- package/dist/config/schema.d.ts +0 -1645
- package/dist/config/schema.js +0 -1383
- package/dist/fast/limits.d.ts +0 -152
- package/dist/fast/limits.js +0 -152
- package/dist/fast/resolve.d.ts +0 -44
- package/dist/fast/resolve.js +0 -107
- package/dist/fast/task-summary-types.d.ts +0 -66
- package/dist/fast/task-summary-types.js +0 -17
- package/dist/fast/types.d.ts +0 -141
- package/dist/fast/types.js +0 -14
- package/dist/governance/governed-dispatch.d.ts +0 -19
- package/dist/governance/governed-dispatch.js +0 -17
- package/dist/governance/limits.d.ts +0 -107
- package/dist/governance/limits.js +0 -131
- package/dist/governance/posture.d.ts +0 -35
- package/dist/governance/posture.js +0 -59
- package/dist/governance/rules/events-table.d.ts +0 -46
- package/dist/governance/rules/events-table.js +0 -94
- package/dist/governance/types.d.ts +0 -661
- package/dist/governance/types.js +0 -27
- package/dist/input/control-sequences.d.ts +0 -71
- package/dist/input/control-sequences.js +0 -222
- package/dist/input/csiu-keys.d.ts +0 -66
- package/dist/input/csiu-keys.js +0 -181
- package/dist/input/cursor-report.d.ts +0 -61
- package/dist/input/cursor-report.js +0 -97
- package/dist/input/enter-sequences.d.ts +0 -64
- package/dist/input/enter-sequences.js +0 -153
- package/dist/input/interrupt-gesture.d.ts +0 -18
- package/dist/input/interrupt-gesture.js +0 -19
- package/dist/input/keyboard-enhancement.d.ts +0 -42
- package/dist/input/keyboard-enhancement.js +0 -65
- package/dist/input/keymap.d.ts +0 -20
- package/dist/input/keymap.js +0 -99
- package/dist/input/limits.d.ts +0 -118
- package/dist/input/limits.js +0 -109
- package/dist/input/mouse-events.d.ts +0 -87
- package/dist/input/mouse-events.js +0 -212
- package/dist/input/paste-parse.d.ts +0 -83
- package/dist/input/paste-parse.js +0 -107
- package/dist/input/pointer-router.d.ts +0 -11
- package/dist/input/pointer-router.js +0 -14
- package/dist/input/stdin-filter.d.ts +0 -112
- package/dist/input/stdin-filter.js +0 -657
- package/dist/input/win32-input-mode.d.ts +0 -61
- package/dist/input/win32-input-mode.js +0 -269
- package/dist/logging/levels.d.ts +0 -40
- package/dist/logging/levels.js +0 -59
- package/dist/logging/secret-registry.d.ts +0 -32
- package/dist/logging/secret-registry.js +0 -73
- package/dist/proc/limits.d.ts +0 -214
- package/dist/proc/limits.js +0 -221
- package/dist/proc/progress.d.ts +0 -47
- package/dist/proc/progress.js +0 -163
- package/dist/proc/types.d.ts +0 -269
- package/dist/proc/types.js +0 -15
- package/dist/proc/wait-view.d.ts +0 -65
- package/dist/proc/wait-view.js +0 -66
- package/dist/prompts/copy.d.ts +0 -89
- package/dist/prompts/copy.js +0 -131
- package/dist/prompts/fill.d.ts +0 -51
- package/dist/prompts/fill.js +0 -46
- package/dist/prompts/limits.d.ts +0 -53
- package/dist/prompts/limits.js +0 -53
- package/dist/prompts/search.d.ts +0 -58
- package/dist/prompts/search.js +0 -146
- package/dist/prompts/types.d.ts +0 -204
- package/dist/prompts/types.js +0 -13
- package/dist/team/activity.d.ts +0 -67
- package/dist/team/activity.js +0 -130
- package/dist/team/limits.d.ts +0 -308
- package/dist/team/limits.js +0 -330
- package/dist/team/model.d.ts +0 -104
- package/dist/team/model.js +0 -150
- package/dist/team/panel-rows.d.ts +0 -48
- package/dist/team/panel-rows.js +0 -75
- package/dist/team/timeline.d.ts +0 -74
- package/dist/team/timeline.js +0 -101
- package/dist/team/types.d.ts +0 -354
- package/dist/team/types.js +0 -13
- package/dist/todo/acceptance.d.ts +0 -120
- package/dist/todo/acceptance.js +0 -399
- package/dist/todo/follow-through.d.ts +0 -138
- package/dist/todo/follow-through.js +0 -248
- package/dist/todo/limits.d.ts +0 -152
- package/dist/todo/limits.js +0 -152
- package/dist/todo/panel-rows.d.ts +0 -45
- package/dist/todo/panel-rows.js +0 -70
- package/dist/todo/plan-sections.d.ts +0 -60
- package/dist/todo/plan-sections.js +0 -108
- package/dist/todo/row-window.d.ts +0 -51
- package/dist/todo/row-window.js +0 -107
- package/dist/todo/types.d.ts +0 -124
- package/dist/todo/types.js +0 -12
- package/dist/tools/human-input.d.ts +0 -212
- package/dist/tools/human-input.js +0 -265
- package/dist/tools/patch.d.ts +0 -115
- package/dist/tools/patch.js +0 -453
- package/dist/tools/terminal-output.d.ts +0 -115
- package/dist/tools/terminal-output.js +0 -201
- package/dist/tools/tool-output-store.d.ts +0 -68
- package/dist/tools/tool-output-store.js +0 -102
- package/dist/ui/ActivityLine.d.ts +0 -26
- package/dist/ui/ActivityLine.js +0 -51
- package/dist/ui/AutocompletePopup.d.ts +0 -23
- package/dist/ui/AutocompletePopup.js +0 -17
- package/dist/ui/BottomStatusRow.d.ts +0 -10
- package/dist/ui/BottomStatusRow.js +0 -9
- package/dist/ui/Composer.d.ts +0 -115
- package/dist/ui/Composer.js +0 -64
- package/dist/ui/GovernancePanel.d.ts +0 -50
- package/dist/ui/GovernancePanel.js +0 -77
- package/dist/ui/GovernanceRun.d.ts +0 -18
- package/dist/ui/GovernanceRun.js +0 -11
- package/dist/ui/Header.d.ts +0 -48
- package/dist/ui/Header.js +0 -27
- package/dist/ui/Logo.d.ts +0 -32
- package/dist/ui/Logo.js +0 -65
- package/dist/ui/Markdown.d.ts +0 -29
- package/dist/ui/Markdown.js +0 -116
- package/dist/ui/PromptCaret.d.ts +0 -11
- package/dist/ui/PromptCaret.js +0 -31
- package/dist/ui/PromptInput.d.ts +0 -192
- package/dist/ui/PromptInput.js +0 -689
- package/dist/ui/QueuePanel.d.ts +0 -8
- package/dist/ui/QueuePanel.js +0 -9
- package/dist/ui/QueueStatusRow.d.ts +0 -24
- package/dist/ui/QueueStatusRow.js +0 -51
- package/dist/ui/ScrollbackShell.d.ts +0 -132
- package/dist/ui/ScrollbackShell.js +0 -26
- package/dist/ui/SessionOpener.d.ts +0 -30
- package/dist/ui/SessionOpener.js +0 -12
- package/dist/ui/StatusBar.d.ts +0 -130
- package/dist/ui/StatusBar.js +0 -61
- package/dist/ui/TeamPanel.d.ts +0 -76
- package/dist/ui/TeamPanel.js +0 -103
- package/dist/ui/ToastStack.d.ts +0 -8
- package/dist/ui/ToastStack.js +0 -31
- package/dist/ui/TodoPanel.d.ts +0 -52
- package/dist/ui/TodoPanel.js +0 -214
- package/dist/ui/Transcript.d.ts +0 -105
- package/dist/ui/Transcript.js +0 -258
- package/dist/ui/UpdateLine.d.ts +0 -44
- package/dist/ui/UpdateLine.js +0 -129
- package/dist/ui/activity-phrases.d.ts +0 -33
- package/dist/ui/activity-phrases.js +0 -50
- package/dist/ui/capabilities.d.ts +0 -27
- package/dist/ui/capabilities.js +0 -65
- package/dist/ui/clipboard-task.d.ts +0 -29
- package/dist/ui/clipboard-task.js +0 -66
- package/dist/ui/clipboard.d.ts +0 -31
- package/dist/ui/clipboard.js +0 -157
- package/dist/ui/color-runtime.d.ts +0 -5
- package/dist/ui/color-runtime.js +0 -29
- package/dist/ui/composer-input.d.ts +0 -38
- package/dist/ui/composer-input.js +0 -79
- package/dist/ui/composer-limits.d.ts +0 -30
- package/dist/ui/composer-limits.js +0 -45
- package/dist/ui/composer-rows.d.ts +0 -73
- package/dist/ui/composer-rows.js +0 -129
- package/dist/ui/console-bridge.d.ts +0 -19
- package/dist/ui/console-bridge.js +0 -52
- package/dist/ui/density.d.ts +0 -26
- package/dist/ui/density.js +0 -34
- package/dist/ui/display-tab.d.ts +0 -51
- package/dist/ui/display-tab.js +0 -82
- package/dist/ui/editor-navigation.d.ts +0 -55
- package/dist/ui/editor-navigation.js +0 -96
- package/dist/ui/editor-reducer.d.ts +0 -108
- package/dist/ui/editor-reducer.js +0 -187
- package/dist/ui/enter-frames.d.ts +0 -47
- package/dist/ui/enter-frames.js +0 -117
- package/dist/ui/entries/AssistantEntry.d.ts +0 -37
- package/dist/ui/entries/AssistantEntry.js +0 -43
- package/dist/ui/entries/CompactionCard.d.ts +0 -88
- package/dist/ui/entries/CompactionCard.js +0 -222
- package/dist/ui/entries/DiffView.d.ts +0 -61
- package/dist/ui/entries/DiffView.js +0 -103
- package/dist/ui/entries/EntryFrame.d.ts +0 -23
- package/dist/ui/entries/EntryFrame.js +0 -6
- package/dist/ui/entries/FastCard.d.ts +0 -53
- package/dist/ui/entries/FastCard.js +0 -105
- package/dist/ui/entries/GovernanceCard.d.ts +0 -30
- package/dist/ui/entries/GovernanceCard.js +0 -32
- package/dist/ui/entries/InvocationCard.d.ts +0 -20
- package/dist/ui/entries/InvocationCard.js +0 -32
- package/dist/ui/entries/QueuedEntry.d.ts +0 -27
- package/dist/ui/entries/QueuedEntry.js +0 -33
- package/dist/ui/entries/RetryCard.d.ts +0 -56
- package/dist/ui/entries/RetryCard.js +0 -60
- package/dist/ui/entries/ServiceCard.d.ts +0 -82
- package/dist/ui/entries/ServiceCard.js +0 -151
- package/dist/ui/entries/TeamCard.d.ts +0 -55
- package/dist/ui/entries/TeamCard.js +0 -94
- package/dist/ui/entries/TodoCard.d.ts +0 -54
- package/dist/ui/entries/TodoCard.js +0 -98
- package/dist/ui/entries/ToolCard.d.ts +0 -81
- package/dist/ui/entries/ToolCard.js +0 -169
- package/dist/ui/entries/ToolPreview.d.ts +0 -59
- package/dist/ui/entries/ToolPreview.js +0 -208
- package/dist/ui/entries/UserEntry.d.ts +0 -36
- package/dist/ui/entries/UserEntry.js +0 -57
- package/dist/ui/entries/WaitCard.d.ts +0 -37
- package/dist/ui/entries/WaitCard.js +0 -92
- package/dist/ui/exit-snapshot.d.ts +0 -43
- package/dist/ui/exit-snapshot.js +0 -26
- package/dist/ui/frame-differ.d.ts +0 -166
- package/dist/ui/frame-differ.js +0 -354
- package/dist/ui/frame-observer.d.ts +0 -17
- package/dist/ui/frame-observer.js +0 -94
- package/dist/ui/frame-parser.d.ts +0 -7
- package/dist/ui/frame-parser.js +0 -18
- package/dist/ui/gauge.d.ts +0 -39
- package/dist/ui/gauge.js +0 -55
- package/dist/ui/glyphs.d.ts +0 -178
- package/dist/ui/glyphs.js +0 -165
- package/dist/ui/governance-copy.d.ts +0 -69
- package/dist/ui/governance-copy.js +0 -104
- package/dist/ui/governance-status.d.ts +0 -145
- package/dist/ui/governance-status.js +0 -326
- package/dist/ui/gradient.d.ts +0 -11
- package/dist/ui/gradient.js +0 -50
- package/dist/ui/ink-runtime.d.ts +0 -4
- package/dist/ui/ink-runtime.js +0 -51
- package/dist/ui/interaction-copy.d.ts +0 -84
- package/dist/ui/interaction-copy.js +0 -41
- package/dist/ui/interaction-hints.d.ts +0 -44
- package/dist/ui/interaction-hints.js +0 -97
- package/dist/ui/layout/AppShell.d.ts +0 -17
- package/dist/ui/layout/AppShell.js +0 -6
- package/dist/ui/layout/Gutter.d.ts +0 -67
- package/dist/ui/layout/Gutter.js +0 -42
- package/dist/ui/layout/MeasuredEntry.d.ts +0 -21
- package/dist/ui/layout/MeasuredEntry.js +0 -30
- package/dist/ui/layout/OverlayFrame.d.ts +0 -73
- package/dist/ui/layout/OverlayFrame.js +0 -110
- package/dist/ui/layout/ScrollIndicator.d.ts +0 -32
- package/dist/ui/layout/ScrollIndicator.js +0 -22
- package/dist/ui/layout/ScrollViewport.d.ts +0 -40
- package/dist/ui/layout/ScrollViewport.js +0 -222
- package/dist/ui/layout/agents-board.d.ts +0 -102
- package/dist/ui/layout/agents-board.js +0 -389
- package/dist/ui/layout/autocomplete.d.ts +0 -18
- package/dist/ui/layout/autocomplete.js +0 -26
- package/dist/ui/layout/budget.d.ts +0 -43
- package/dist/ui/layout/budget.js +0 -52
- package/dist/ui/layout/cells.d.ts +0 -61
- package/dist/ui/layout/cells.js +0 -156
- package/dist/ui/layout/document-layout.d.ts +0 -13
- package/dist/ui/layout/document-layout.js +0 -10
- package/dist/ui/layout/follow-state.d.ts +0 -138
- package/dist/ui/layout/follow-state.js +0 -148
- package/dist/ui/layout/frame.d.ts +0 -36
- package/dist/ui/layout/frame.js +0 -39
- package/dist/ui/layout/governance-board.d.ts +0 -121
- package/dist/ui/layout/governance-board.js +0 -382
- package/dist/ui/layout/governance-card.d.ts +0 -53
- package/dist/ui/layout/governance-card.js +0 -134
- package/dist/ui/layout/governance-chip.d.ts +0 -38
- package/dist/ui/layout/governance-chip.js +0 -64
- package/dist/ui/layout/governance-panel.d.ts +0 -85
- package/dist/ui/layout/governance-panel.js +0 -358
- package/dist/ui/layout/governance-roster.d.ts +0 -65
- package/dist/ui/layout/governance-roster.js +0 -275
- package/dist/ui/layout/header-hints.d.ts +0 -90
- package/dist/ui/layout/header-hints.js +0 -110
- package/dist/ui/layout/header-left.d.ts +0 -115
- package/dist/ui/layout/header-left.js +0 -206
- package/dist/ui/layout/invocation-card.d.ts +0 -41
- package/dist/ui/layout/invocation-card.js +0 -91
- package/dist/ui/layout/kit-chip.d.ts +0 -50
- package/dist/ui/layout/kit-chip.js +0 -81
- package/dist/ui/layout/overlay-window.d.ts +0 -43
- package/dist/ui/layout/overlay-window.js +0 -51
- package/dist/ui/layout/queue-layout.d.ts +0 -19
- package/dist/ui/layout/queue-layout.js +0 -26
- package/dist/ui/layout/rail.d.ts +0 -7
- package/dist/ui/layout/rail.js +0 -16
- package/dist/ui/layout/scroll-indicator.d.ts +0 -27
- package/dist/ui/layout/scroll-indicator.js +0 -36
- package/dist/ui/layout/scroll.d.ts +0 -37
- package/dist/ui/layout/scroll.js +0 -99
- package/dist/ui/layout/scrollbar-geometry.d.ts +0 -17
- package/dist/ui/layout/scrollbar-geometry.js +0 -13
- package/dist/ui/layout/session-chip.d.ts +0 -52
- package/dist/ui/layout/session-chip.js +0 -64
- package/dist/ui/layout/shortcut-panel-layout.d.ts +0 -191
- package/dist/ui/layout/shortcut-panel-layout.js +0 -321
- package/dist/ui/layout/status-detail-layout.d.ts +0 -9
- package/dist/ui/layout/status-detail-layout.js +0 -79
- package/dist/ui/layout/status-layout.d.ts +0 -140
- package/dist/ui/layout/status-layout.js +0 -262
- package/dist/ui/layout/task-summary-cell.d.ts +0 -61
- package/dist/ui/layout/task-summary-cell.js +0 -65
- package/dist/ui/layout/team-panel.d.ts +0 -18
- package/dist/ui/layout/team-panel.js +0 -25
- package/dist/ui/layout/team-row.d.ts +0 -139
- package/dist/ui/layout/team-row.js +0 -246
- package/dist/ui/layout/todo-layout.d.ts +0 -62
- package/dist/ui/layout/todo-layout.js +0 -102
- package/dist/ui/layout/useTerminalSize.d.ts +0 -13
- package/dist/ui/layout/useTerminalSize.js +0 -50
- package/dist/ui/layout/viewport-geometry.d.ts +0 -29
- package/dist/ui/layout/viewport-geometry.js +0 -28
- package/dist/ui/layout/virtual-window.d.ts +0 -112
- package/dist/ui/layout/virtual-window.js +0 -494
- package/dist/ui/layout/wait-bar.d.ts +0 -34
- package/dist/ui/layout/wait-bar.js +0 -48
- package/dist/ui/layout/wrap-rows.d.ts +0 -26
- package/dist/ui/layout/wrap-rows.js +0 -88
- package/dist/ui/live-clamp.d.ts +0 -14
- package/dist/ui/live-clamp.js +0 -46
- package/dist/ui/markdown-blocks.d.ts +0 -107
- package/dist/ui/markdown-blocks.js +0 -240
- package/dist/ui/overlays/AgentsBoardOverlay.d.ts +0 -57
- package/dist/ui/overlays/AgentsBoardOverlay.js +0 -183
- package/dist/ui/overlays/ConfirmDialog.d.ts +0 -31
- package/dist/ui/overlays/ConfirmDialog.js +0 -44
- package/dist/ui/overlays/GovernanceBoardOverlay.d.ts +0 -41
- package/dist/ui/overlays/GovernanceBoardOverlay.js +0 -76
- package/dist/ui/overlays/GovernanceSettingsPage.d.ts +0 -48
- package/dist/ui/overlays/GovernanceSettingsPage.js +0 -93
- package/dist/ui/overlays/HelpOverlay.d.ts +0 -29
- package/dist/ui/overlays/HelpOverlay.js +0 -232
- package/dist/ui/overlays/KitEditor.d.ts +0 -23
- package/dist/ui/overlays/KitEditor.js +0 -101
- package/dist/ui/overlays/KitManager.d.ts +0 -23
- package/dist/ui/overlays/KitManager.js +0 -104
- package/dist/ui/overlays/KitPicker.d.ts +0 -49
- package/dist/ui/overlays/KitPicker.js +0 -58
- package/dist/ui/overlays/ModelDiscoveryList.d.ts +0 -23
- package/dist/ui/overlays/ModelDiscoveryList.js +0 -161
- package/dist/ui/overlays/ModelPicker.d.ts +0 -26
- package/dist/ui/overlays/ModelPicker.js +0 -63
- package/dist/ui/overlays/ModelProfileEditor.d.ts +0 -29
- package/dist/ui/overlays/ModelProfileEditor.js +0 -168
- package/dist/ui/overlays/ModelProfilePicker.d.ts +0 -48
- package/dist/ui/overlays/ModelProfilePicker.js +0 -231
- package/dist/ui/overlays/PlanReviewOverlay.d.ts +0 -51
- package/dist/ui/overlays/PlanReviewOverlay.js +0 -132
- package/dist/ui/overlays/PromptEditorPage.d.ts +0 -48
- package/dist/ui/overlays/PromptEditorPage.js +0 -227
- package/dist/ui/overlays/PromptLibraryOverlay.d.ts +0 -37
- package/dist/ui/overlays/PromptLibraryOverlay.js +0 -191
- package/dist/ui/overlays/PromptPicker.d.ts +0 -36
- package/dist/ui/overlays/PromptPicker.js +0 -129
- package/dist/ui/overlays/PromptTextArea.d.ts +0 -86
- package/dist/ui/overlays/PromptTextArea.js +0 -141
- package/dist/ui/overlays/QuestionOverlay.d.ts +0 -39
- package/dist/ui/overlays/QuestionOverlay.js +0 -258
- package/dist/ui/overlays/QueueOverlay.d.ts +0 -22
- package/dist/ui/overlays/QueueOverlay.js +0 -79
- package/dist/ui/overlays/SettingsScreen.d.ts +0 -228
- package/dist/ui/overlays/SettingsScreen.js +0 -1037
- package/dist/ui/overlays/ShortcutPanel.d.ts +0 -39
- package/dist/ui/overlays/ShortcutPanel.js +0 -106
- package/dist/ui/overlays/TeamFanoutPage.d.ts +0 -51
- package/dist/ui/overlays/TeamFanoutPage.js +0 -90
- package/dist/ui/overlays/governance-settings.d.ts +0 -79
- package/dist/ui/overlays/governance-settings.js +0 -140
- package/dist/ui/overlays/kit-picker-state.d.ts +0 -87
- package/dist/ui/overlays/kit-picker-state.js +0 -136
- package/dist/ui/overlays/kit-settings-state.d.ts +0 -129
- package/dist/ui/overlays/kit-settings-state.js +0 -268
- package/dist/ui/overlays/model-probe-view.d.ts +0 -128
- package/dist/ui/overlays/model-probe-view.js +0 -225
- package/dist/ui/overlays/model-profile-state.d.ts +0 -177
- package/dist/ui/overlays/model-profile-state.js +0 -301
- package/dist/ui/overlays/prompt-library-state.d.ts +0 -162
- package/dist/ui/overlays/prompt-library-state.js +0 -335
- package/dist/ui/overlays/prompt-picker-state.d.ts +0 -71
- package/dist/ui/overlays/prompt-picker-state.js +0 -98
- package/dist/ui/overlays/team-fanout-state.d.ts +0 -106
- package/dist/ui/overlays/team-fanout-state.js +0 -155
- package/dist/ui/overlays/use-model-probe.d.ts +0 -30
- package/dist/ui/overlays/use-model-probe.js +0 -109
- package/dist/ui/palettes.d.ts +0 -112
- package/dist/ui/palettes.js +0 -130
- package/dist/ui/paste-frames.d.ts +0 -91
- package/dist/ui/paste-frames.js +0 -117
- package/dist/ui/paste-tokens.d.ts +0 -90
- package/dist/ui/paste-tokens.js +0 -147
- package/dist/ui/render-cache.d.ts +0 -81
- package/dist/ui/render-cache.js +0 -196
- package/dist/ui/render-governor.d.ts +0 -54
- package/dist/ui/render-governor.js +0 -78
- package/dist/ui/run-metrics.d.ts +0 -23
- package/dist/ui/run-metrics.js +0 -27
- package/dist/ui/run-status-row.d.ts +0 -63
- package/dist/ui/run-status-row.js +0 -54
- package/dist/ui/screen.d.ts +0 -107
- package/dist/ui/screen.js +0 -234
- package/dist/ui/scrollback/LiveTail.d.ts +0 -115
- package/dist/ui/scrollback/LiveTail.js +0 -48
- package/dist/ui/scrollback/band.d.ts +0 -114
- package/dist/ui/scrollback/band.js +0 -143
- package/dist/ui/scrollback/budget.d.ts +0 -90
- package/dist/ui/scrollback/budget.js +0 -100
- package/dist/ui/scrollback/canvas.d.ts +0 -100
- package/dist/ui/scrollback/canvas.js +0 -114
- package/dist/ui/scrollback/cursor-probe.d.ts +0 -71
- package/dist/ui/scrollback/cursor-probe.js +0 -133
- package/dist/ui/scrollback/drain.d.ts +0 -32
- package/dist/ui/scrollback/drain.js +0 -64
- package/dist/ui/scrollback/exit-summary.d.ts +0 -23
- package/dist/ui/scrollback/exit-summary.js +0 -25
- package/dist/ui/scrollback/limits.d.ts +0 -98
- package/dist/ui/scrollback/limits.js +0 -98
- package/dist/ui/scrollback/live-preview.d.ts +0 -34
- package/dist/ui/scrollback/live-preview.js +0 -130
- package/dist/ui/scrollback/overflow-print.d.ts +0 -108
- package/dist/ui/scrollback/overflow-print.js +0 -120
- package/dist/ui/scrollback/renderer.d.ts +0 -48
- package/dist/ui/scrollback/renderer.js +0 -186
- package/dist/ui/scrollback/scrollback-writer.d.ts +0 -174
- package/dist/ui/scrollback/scrollback-writer.js +0 -648
- package/dist/ui/scrollback/settled-boundary.d.ts +0 -42
- package/dist/ui/scrollback/settled-boundary.js +0 -109
- package/dist/ui/scrollback/tail-anchor.d.ts +0 -71
- package/dist/ui/scrollback/tail-anchor.js +0 -79
- package/dist/ui/scrollback/tail-window.d.ts +0 -73
- package/dist/ui/scrollback/tail-window.js +0 -89
- package/dist/ui/scrollback/use-scrollback-view.d.ts +0 -139
- package/dist/ui/scrollback/use-scrollback-view.js +0 -601
- package/dist/ui/scrollback/writer-shapes.d.ts +0 -127
- package/dist/ui/scrollback/writer-shapes.js +0 -159
- package/dist/ui/scrollbar-controller.d.ts +0 -30
- package/dist/ui/scrollbar-controller.js +0 -124
- package/dist/ui/selection/highlight.d.ts +0 -39
- package/dist/ui/selection/highlight.js +0 -64
- package/dist/ui/selection/screen-mirror.d.ts +0 -24
- package/dist/ui/selection/screen-mirror.js +0 -35
- package/dist/ui/selection/selection-controller.d.ts +0 -104
- package/dist/ui/selection/selection-controller.js +0 -372
- package/dist/ui/selection/selection.d.ts +0 -90
- package/dist/ui/selection/selection.js +0 -223
- package/dist/ui/shortcuts.d.ts +0 -81
- package/dist/ui/shortcuts.js +0 -221
- package/dist/ui/status-feedback.d.ts +0 -35
- package/dist/ui/status-feedback.js +0 -38
- package/dist/ui/stdout-frame-writer.d.ts +0 -74
- package/dist/ui/stdout-frame-writer.js +0 -155
- package/dist/ui/team-status.d.ts +0 -166
- package/dist/ui/team-status.js +0 -252
- package/dist/ui/terminal-plan.d.ts +0 -52
- package/dist/ui/terminal-plan.js +0 -49
- package/dist/ui/theme.d.ts +0 -96
- package/dist/ui/theme.js +0 -130
- package/dist/ui/transcript-text.d.ts +0 -41
- package/dist/ui/transcript-text.js +0 -282
- package/dist/ui/use-height-store.d.ts +0 -31
- package/dist/ui/use-height-store.js +0 -76
- package/dist/ui/use-render-governor.d.ts +0 -39
- package/dist/ui/use-render-governor.js +0 -57
- package/dist/ui/use-wheel-routing.d.ts +0 -57
- package/dist/ui/use-wheel-routing.js +0 -152
- package/dist/ui/win-vt-force.d.ts +0 -136
- package/dist/ui/win-vt-force.js +0 -237
- package/dist/ui/win-vt-input.d.ts +0 -57
- package/dist/ui/win-vt-input.js +0 -62
- package/dist/update/limits.d.ts +0 -111
- package/dist/update/limits.js +0 -111
- package/dist/update/semver.d.ts +0 -89
- package/dist/update/semver.js +0 -295
- package/dist/update/types.d.ts +0 -169
- package/dist/update/types.js +0 -68
- /package/dist/{ui → app}/session-bridge.d.ts +0 -0
- /package/dist/{ui → app}/session-bridge.js +0 -0
package/dist/fast/limits.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAST_LIMITS — the single authority on every bound the fast tier enforces
|
|
3
|
-
* (fast-model-tier §5.5).
|
|
4
|
-
*
|
|
5
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope
|
|
6
|
-
* (`glyphs.test.ts`), so no literal in this tree may hold a non-ASCII byte. The
|
|
7
|
-
* regex there is a hardcoded directory list, which is why adding this tree and
|
|
8
|
-
* adding `fast` to that list are the SAME change (C-4 / AC-27) - a scanner that
|
|
9
|
-
* silently stops scanning is worse than no scanner.
|
|
10
|
-
*
|
|
11
|
-
* TWO KINDS OF NUMBER, AND THEY ARE NOT INTERCHANGEABLE - the distinction
|
|
12
|
-
* `TEAM_LIMITS` and `TODO_LIMITS` both state:
|
|
13
|
-
*
|
|
14
|
-
* - The entries below are STRUCTURAL. They describe what a review call, a
|
|
15
|
-
* digest and a card can physically carry. A user has no business tuning them.
|
|
16
|
-
* - The ten `fast.*` keys in `config/schema.ts` are POLICY: which model, how
|
|
17
|
-
* often, how long a critique may be. Those are clamped, persisted and
|
|
18
|
-
* user-facing.
|
|
19
|
-
*
|
|
20
|
-
* `reviewMaxChars` therefore lives in the CONFIG and not here: it is the one
|
|
21
|
-
* number whose right value depends on how much of their own context the user is
|
|
22
|
-
* willing to spend on advice. `reviewOutputTokens` stays here because 512 tokens
|
|
23
|
-
* is a bound on a protocol, not a preference.
|
|
24
|
-
*/
|
|
25
|
-
export declare const FAST_LIMITS: {
|
|
26
|
-
/**
|
|
27
|
-
* The flat input cost of one review (D-6 / R-2).
|
|
28
|
-
*
|
|
29
|
-
* THIS NUMBER IS THE WHOLE ECONOMIC ARGUMENT. The reviewer builds its own
|
|
30
|
-
* bounded frame ring and never reads `agent.state.messages`, which after four
|
|
31
|
-
* 60 KB file reads carries 240 KB of file bodies; shipping that to the "cheap"
|
|
32
|
-
* model would make a review cost MORE than the turn it is reviewing.
|
|
33
|
-
*/
|
|
34
|
-
readonly digestMaxChars: 4000;
|
|
35
|
-
/** The user's request for the run, clamped. Without it the reviewer is asked
|
|
36
|
-
* whether work is on track without being told what the track is. */
|
|
37
|
-
readonly goalChars: 500;
|
|
38
|
-
/** Per-frame assistant-text tail. Rolling, clipped on every append. */
|
|
39
|
-
readonly turnTailChars: 600;
|
|
40
|
-
/** Per picked tool argument. Mirrors `TEAM_LIMITS.activityArgChars`. */
|
|
41
|
-
readonly toolArgChars: 120;
|
|
42
|
-
/** Frames kept per run. `>=` the max of `reviewContextTurns`, with slack. */
|
|
43
|
-
readonly maxFramesRetained: 12;
|
|
44
|
-
/** Hard cap on the review's own output. */
|
|
45
|
-
readonly reviewOutputTokens: 512;
|
|
46
|
-
/**
|
|
47
|
-
* Wall-clock budget for ONE review call INCLUDING RETRIES (D-H11).
|
|
48
|
-
*
|
|
49
|
-
* THE BUDGET HAS TWO TERMS AND ONLY ONE OF THEM SHRANK. Round 1 set 30 s as
|
|
50
|
-
* IF-3's fallback: `ProviderRegistry.complete()` routed through a retrying
|
|
51
|
-
* `stream()` with `maxRetries: 10`, so the budget covered
|
|
52
|
-
* `attempts x (call + backoff)`. Round 2 gives the reviewer its own
|
|
53
|
-
* `maxRetries: 1` registry (`wiring.ts`), which collapses that term to about
|
|
54
|
-
* one call plus a one-second backoff - but it does nothing at all to the
|
|
55
|
-
* other term, THE FAST MODEL'S OWN GENERATION LATENCY. The review asks for up
|
|
56
|
-
* to `reviewOutputTokens` from a `digestMaxChars` prompt, and the tier is by
|
|
57
|
-
* construction pointed at the cheapest endpoint the user has: the population
|
|
58
|
-
* where a 15-25 s completion is ordinary rather than pathological.
|
|
59
|
-
*
|
|
60
|
-
* SO THIS IS 20 000 AND NOT 12 000. A timeout IS a strike (see `runReview`),
|
|
61
|
-
* and `maxConsecutiveFailures` is 3, so a 12 s bound would convert "slow but
|
|
62
|
-
* healthy provider" into a tier that self-disables for the session and
|
|
63
|
-
* reports itself as MISCONFIGURED - the one register D-24 reserves for faults
|
|
64
|
-
* that never self-heal, spent on one that does. 20 s keeps a margin over a
|
|
65
|
-
* slow completion and still cuts a stuck review's occupancy of the
|
|
66
|
-
* single-flight slot by a third. Lower it only with a measured p99, which
|
|
67
|
-
* `manual-test.md` row 6 exists to produce.
|
|
68
|
-
*/
|
|
69
|
-
readonly reviewTimeoutMs: 20000;
|
|
70
|
-
/** Reviews STARTED per run. A 40-turn run at cadence 5 would otherwise buy 8
|
|
71
|
-
* critiques the lead increasingly ignores. */
|
|
72
|
-
readonly maxReviewsPerRun: 6;
|
|
73
|
-
/** Consecutive NON-TRANSIENT failures before the reviewer self-disables. */
|
|
74
|
-
readonly maxConsecutiveFailures: 3;
|
|
75
|
-
/**
|
|
76
|
-
* A critique waiting for its injection window goes stale (RV-12).
|
|
77
|
-
*
|
|
78
|
-
* The window is not guaranteed to be prompt: one `task` dispatch is a single
|
|
79
|
-
* tool call that can run for as long as its children need, so a critique triggered
|
|
80
|
-
* just before one arrives at the far side describing a state five children
|
|
81
|
-
* have since rewritten. Advice that is merely late is worse than no advice,
|
|
82
|
-
* because the lead cannot tell that it is late.
|
|
83
|
-
*/
|
|
84
|
-
readonly pendingMaxAgeMs: 120000;
|
|
85
|
-
/** ... or is overtaken by the run itself, in turns. */
|
|
86
|
-
readonly pendingMaxTurnsBehind: 2;
|
|
87
|
-
/** Rows the transcript card renders before eliding. */
|
|
88
|
-
readonly cardTextRows: 4;
|
|
89
|
-
/** Below this many columns the status chip drops (D-20's treatment, not
|
|
90
|
-
* `agentMode`'s - the guaranteed reporting surface is `/fast status`). */
|
|
91
|
-
readonly statusCompactCols: 100;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Bumped whenever the wording of `<fast_tier>` or the review system prompt
|
|
95
|
-
* changes, so a behaviour report can be tied to a block revision with one grep -
|
|
96
|
-
* exactly what `TEAM_BLOCK_VERSION` and `TODO_BLOCK_VERSION` are for.
|
|
97
|
-
*/
|
|
98
|
-
export declare const FAST_BLOCK_VERSION = "v2-2026-10";
|
|
99
|
-
/**
|
|
100
|
-
* The bounds one task-summary label may consume
|
|
101
|
-
* (tui-shortcut-drawer-and-task-summary D-11).
|
|
102
|
-
*
|
|
103
|
-
* STRUCTURAL, NOT POLICY, for the reason this file's header records: these say
|
|
104
|
-
* what a one-line header label can PHYSICALLY carry, not what the user prefers.
|
|
105
|
-
* The two user switches (`taskSummary.enabled` / `.fallback`) live in
|
|
106
|
-
* `config/schema.ts` and are not interchangeable with these.
|
|
107
|
-
*
|
|
108
|
-
* THE THREE CAPS HAVE THREE DIFFERENT JOBS, and v1 left that implicit (P1-8):
|
|
109
|
-
*
|
|
110
|
-
* - GENERATION (the system prompt in `summary-prompt.ts`): at most 6 words in
|
|
111
|
-
* space-separated languages, at most 12 characters in CJK. The normal path is
|
|
112
|
-
* constrained by this and by nothing else.
|
|
113
|
-
* - NORMALISATION (`normalizeTaskSummary`): `summaryMaxWords` and
|
|
114
|
-
* `cjkMaxGraphemes` are applied first, then `summaryMaxChars` catches the one
|
|
115
|
-
* case those two cannot - a long run with no whitespace. That order is
|
|
116
|
-
* asserted by `task-summary-normalize.test.ts`.
|
|
117
|
-
* - RENDERING: `maxCells` is the hard ceiling on the header cell. The header
|
|
118
|
-
* fits within whatever width is left; the drawer WRAPS instead of cutting.
|
|
119
|
-
*/
|
|
120
|
-
export declare const TASK_SUMMARY_LIMITS: {
|
|
121
|
-
/** Hard cap on the call's own output. A label is not a paragraph. */
|
|
122
|
-
readonly outputTokens: 64;
|
|
123
|
-
/**
|
|
124
|
-
* Wall-clock budget for ONE summary call, INCLUDING the fast registry's single
|
|
125
|
-
* retry. Short on purpose: the label is decoration on the header row, and a
|
|
126
|
-
* user waiting for the first token must never wait on it - the call is fired
|
|
127
|
-
* after `prompt()` has been started and nothing awaits it (AC-13).
|
|
128
|
-
*/
|
|
129
|
-
readonly timeoutMs: 8000;
|
|
130
|
-
/** How much of the user's message is sent. Long prompts are summarised from the head. */
|
|
131
|
-
readonly anchorMaxChars: 2000;
|
|
132
|
-
/** Storage ceiling. Only ever reached by a model that ignored the prompt rules. */
|
|
133
|
-
readonly summaryMaxChars: 60;
|
|
134
|
-
/** Space-separated languages: the label is at most this many words. */
|
|
135
|
-
readonly summaryMaxWords: 8;
|
|
136
|
-
/** CJK: the label is at most this many grapheme clusters. */
|
|
137
|
-
readonly cjkMaxGraphemes: 12;
|
|
138
|
-
/**
|
|
139
|
-
* The header cell's hard ceiling in terminal COLUMNS (not characters).
|
|
140
|
-
*
|
|
141
|
-
* Shared by `ui/layout/header-left.ts` and the drawer so the two cannot
|
|
142
|
-
* disagree about how wide a label is allowed to be. v1 referenced this
|
|
143
|
-
* constant without defining it (P1-8).
|
|
144
|
-
*/
|
|
145
|
-
readonly maxCells: 28;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Bumped whenever the task-summary system prompt's wording changes, so a
|
|
149
|
-
* behaviour report can be tied to a revision with one grep - the same purpose
|
|
150
|
-
* `FAST_BLOCK_VERSION` serves for the review prompt.
|
|
151
|
-
*/
|
|
152
|
-
export declare const TASK_SUMMARY_PROMPT_VERSION = "v1-2026-10";
|
package/dist/fast/limits.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAST_LIMITS — the single authority on every bound the fast tier enforces
|
|
3
|
-
* (fast-model-tier §5.5).
|
|
4
|
-
*
|
|
5
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope
|
|
6
|
-
* (`glyphs.test.ts`), so no literal in this tree may hold a non-ASCII byte. The
|
|
7
|
-
* regex there is a hardcoded directory list, which is why adding this tree and
|
|
8
|
-
* adding `fast` to that list are the SAME change (C-4 / AC-27) - a scanner that
|
|
9
|
-
* silently stops scanning is worse than no scanner.
|
|
10
|
-
*
|
|
11
|
-
* TWO KINDS OF NUMBER, AND THEY ARE NOT INTERCHANGEABLE - the distinction
|
|
12
|
-
* `TEAM_LIMITS` and `TODO_LIMITS` both state:
|
|
13
|
-
*
|
|
14
|
-
* - The entries below are STRUCTURAL. They describe what a review call, a
|
|
15
|
-
* digest and a card can physically carry. A user has no business tuning them.
|
|
16
|
-
* - The ten `fast.*` keys in `config/schema.ts` are POLICY: which model, how
|
|
17
|
-
* often, how long a critique may be. Those are clamped, persisted and
|
|
18
|
-
* user-facing.
|
|
19
|
-
*
|
|
20
|
-
* `reviewMaxChars` therefore lives in the CONFIG and not here: it is the one
|
|
21
|
-
* number whose right value depends on how much of their own context the user is
|
|
22
|
-
* willing to spend on advice. `reviewOutputTokens` stays here because 512 tokens
|
|
23
|
-
* is a bound on a protocol, not a preference.
|
|
24
|
-
*/
|
|
25
|
-
export const FAST_LIMITS = {
|
|
26
|
-
/**
|
|
27
|
-
* The flat input cost of one review (D-6 / R-2).
|
|
28
|
-
*
|
|
29
|
-
* THIS NUMBER IS THE WHOLE ECONOMIC ARGUMENT. The reviewer builds its own
|
|
30
|
-
* bounded frame ring and never reads `agent.state.messages`, which after four
|
|
31
|
-
* 60 KB file reads carries 240 KB of file bodies; shipping that to the "cheap"
|
|
32
|
-
* model would make a review cost MORE than the turn it is reviewing.
|
|
33
|
-
*/
|
|
34
|
-
digestMaxChars: 4_000,
|
|
35
|
-
/** The user's request for the run, clamped. Without it the reviewer is asked
|
|
36
|
-
* whether work is on track without being told what the track is. */
|
|
37
|
-
goalChars: 500,
|
|
38
|
-
/** Per-frame assistant-text tail. Rolling, clipped on every append. */
|
|
39
|
-
turnTailChars: 600,
|
|
40
|
-
/** Per picked tool argument. Mirrors `TEAM_LIMITS.activityArgChars`. */
|
|
41
|
-
toolArgChars: 120,
|
|
42
|
-
/** Frames kept per run. `>=` the max of `reviewContextTurns`, with slack. */
|
|
43
|
-
maxFramesRetained: 12,
|
|
44
|
-
/** Hard cap on the review's own output. */
|
|
45
|
-
reviewOutputTokens: 512,
|
|
46
|
-
/**
|
|
47
|
-
* Wall-clock budget for ONE review call INCLUDING RETRIES (D-H11).
|
|
48
|
-
*
|
|
49
|
-
* THE BUDGET HAS TWO TERMS AND ONLY ONE OF THEM SHRANK. Round 1 set 30 s as
|
|
50
|
-
* IF-3's fallback: `ProviderRegistry.complete()` routed through a retrying
|
|
51
|
-
* `stream()` with `maxRetries: 10`, so the budget covered
|
|
52
|
-
* `attempts x (call + backoff)`. Round 2 gives the reviewer its own
|
|
53
|
-
* `maxRetries: 1` registry (`wiring.ts`), which collapses that term to about
|
|
54
|
-
* one call plus a one-second backoff - but it does nothing at all to the
|
|
55
|
-
* other term, THE FAST MODEL'S OWN GENERATION LATENCY. The review asks for up
|
|
56
|
-
* to `reviewOutputTokens` from a `digestMaxChars` prompt, and the tier is by
|
|
57
|
-
* construction pointed at the cheapest endpoint the user has: the population
|
|
58
|
-
* where a 15-25 s completion is ordinary rather than pathological.
|
|
59
|
-
*
|
|
60
|
-
* SO THIS IS 20 000 AND NOT 12 000. A timeout IS a strike (see `runReview`),
|
|
61
|
-
* and `maxConsecutiveFailures` is 3, so a 12 s bound would convert "slow but
|
|
62
|
-
* healthy provider" into a tier that self-disables for the session and
|
|
63
|
-
* reports itself as MISCONFIGURED - the one register D-24 reserves for faults
|
|
64
|
-
* that never self-heal, spent on one that does. 20 s keeps a margin over a
|
|
65
|
-
* slow completion and still cuts a stuck review's occupancy of the
|
|
66
|
-
* single-flight slot by a third. Lower it only with a measured p99, which
|
|
67
|
-
* `manual-test.md` row 6 exists to produce.
|
|
68
|
-
*/
|
|
69
|
-
reviewTimeoutMs: 20_000,
|
|
70
|
-
/** Reviews STARTED per run. A 40-turn run at cadence 5 would otherwise buy 8
|
|
71
|
-
* critiques the lead increasingly ignores. */
|
|
72
|
-
maxReviewsPerRun: 6,
|
|
73
|
-
/** Consecutive NON-TRANSIENT failures before the reviewer self-disables. */
|
|
74
|
-
maxConsecutiveFailures: 3,
|
|
75
|
-
/**
|
|
76
|
-
* A critique waiting for its injection window goes stale (RV-12).
|
|
77
|
-
*
|
|
78
|
-
* The window is not guaranteed to be prompt: one `task` dispatch is a single
|
|
79
|
-
* tool call that can run for as long as its children need, so a critique triggered
|
|
80
|
-
* just before one arrives at the far side describing a state five children
|
|
81
|
-
* have since rewritten. Advice that is merely late is worse than no advice,
|
|
82
|
-
* because the lead cannot tell that it is late.
|
|
83
|
-
*/
|
|
84
|
-
pendingMaxAgeMs: 120_000,
|
|
85
|
-
/** ... or is overtaken by the run itself, in turns. */
|
|
86
|
-
pendingMaxTurnsBehind: 2,
|
|
87
|
-
/** Rows the transcript card renders before eliding. */
|
|
88
|
-
cardTextRows: 4,
|
|
89
|
-
/** Below this many columns the status chip drops (D-20's treatment, not
|
|
90
|
-
* `agentMode`'s - the guaranteed reporting surface is `/fast status`). */
|
|
91
|
-
statusCompactCols: 100,
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Bumped whenever the wording of `<fast_tier>` or the review system prompt
|
|
95
|
-
* changes, so a behaviour report can be tied to a block revision with one grep -
|
|
96
|
-
* exactly what `TEAM_BLOCK_VERSION` and `TODO_BLOCK_VERSION` are for.
|
|
97
|
-
*/
|
|
98
|
-
export const FAST_BLOCK_VERSION = 'v2-2026-10';
|
|
99
|
-
/**
|
|
100
|
-
* The bounds one task-summary label may consume
|
|
101
|
-
* (tui-shortcut-drawer-and-task-summary D-11).
|
|
102
|
-
*
|
|
103
|
-
* STRUCTURAL, NOT POLICY, for the reason this file's header records: these say
|
|
104
|
-
* what a one-line header label can PHYSICALLY carry, not what the user prefers.
|
|
105
|
-
* The two user switches (`taskSummary.enabled` / `.fallback`) live in
|
|
106
|
-
* `config/schema.ts` and are not interchangeable with these.
|
|
107
|
-
*
|
|
108
|
-
* THE THREE CAPS HAVE THREE DIFFERENT JOBS, and v1 left that implicit (P1-8):
|
|
109
|
-
*
|
|
110
|
-
* - GENERATION (the system prompt in `summary-prompt.ts`): at most 6 words in
|
|
111
|
-
* space-separated languages, at most 12 characters in CJK. The normal path is
|
|
112
|
-
* constrained by this and by nothing else.
|
|
113
|
-
* - NORMALISATION (`normalizeTaskSummary`): `summaryMaxWords` and
|
|
114
|
-
* `cjkMaxGraphemes` are applied first, then `summaryMaxChars` catches the one
|
|
115
|
-
* case those two cannot - a long run with no whitespace. That order is
|
|
116
|
-
* asserted by `task-summary-normalize.test.ts`.
|
|
117
|
-
* - RENDERING: `maxCells` is the hard ceiling on the header cell. The header
|
|
118
|
-
* fits within whatever width is left; the drawer WRAPS instead of cutting.
|
|
119
|
-
*/
|
|
120
|
-
export const TASK_SUMMARY_LIMITS = {
|
|
121
|
-
/** Hard cap on the call's own output. A label is not a paragraph. */
|
|
122
|
-
outputTokens: 64,
|
|
123
|
-
/**
|
|
124
|
-
* Wall-clock budget for ONE summary call, INCLUDING the fast registry's single
|
|
125
|
-
* retry. Short on purpose: the label is decoration on the header row, and a
|
|
126
|
-
* user waiting for the first token must never wait on it - the call is fired
|
|
127
|
-
* after `prompt()` has been started and nothing awaits it (AC-13).
|
|
128
|
-
*/
|
|
129
|
-
timeoutMs: 8_000,
|
|
130
|
-
/** How much of the user's message is sent. Long prompts are summarised from the head. */
|
|
131
|
-
anchorMaxChars: 2_000,
|
|
132
|
-
/** Storage ceiling. Only ever reached by a model that ignored the prompt rules. */
|
|
133
|
-
summaryMaxChars: 60,
|
|
134
|
-
/** Space-separated languages: the label is at most this many words. */
|
|
135
|
-
summaryMaxWords: 8,
|
|
136
|
-
/** CJK: the label is at most this many grapheme clusters. */
|
|
137
|
-
cjkMaxGraphemes: 12,
|
|
138
|
-
/**
|
|
139
|
-
* The header cell's hard ceiling in terminal COLUMNS (not characters).
|
|
140
|
-
*
|
|
141
|
-
* Shared by `ui/layout/header-left.ts` and the drawer so the two cannot
|
|
142
|
-
* disagree about how wide a label is allowed to be. v1 referenced this
|
|
143
|
-
* constant without defining it (P1-8).
|
|
144
|
-
*/
|
|
145
|
-
maxCells: 28,
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Bumped whenever the task-summary system prompt's wording changes, so a
|
|
149
|
-
* behaviour report can be tied to a revision with one grep - the same purpose
|
|
150
|
-
* `FAST_BLOCK_VERSION` serves for the review prompt.
|
|
151
|
-
*/
|
|
152
|
-
export const TASK_SUMMARY_PROMPT_VERSION = 'v1-2026-10';
|
package/dist/fast/resolve.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `resolveFastTier` — THE single authority on whether a fast tier exists and
|
|
3
|
-
* what it points at (fast-model-tier §3.2).
|
|
4
|
-
*
|
|
5
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope.
|
|
6
|
-
*
|
|
7
|
-
* EVERY CONSUMER READS THE TIER THROUGH THIS FUNCTION AND NOWHERE ELSE - the
|
|
8
|
-
* controller, the subagent factory, the reviewer, `/fast`, the settings screen
|
|
9
|
-
* and the status bar. Four call sites recomputing "is fast usable?" from raw
|
|
10
|
-
* config keys is exactly how a UI ends up showing a chip for a tier that refuses
|
|
11
|
-
* every call.
|
|
12
|
-
*
|
|
13
|
-
* IT IS ALSO RE-RUN ON EVERY CONFIG MUTATION, NOT ONCE (rule 8 / RV-3). Rules 2
|
|
14
|
-
* and 6 make `fast.provider: ''` and `fast.baseUrl: ''` INHERIT from
|
|
15
|
-
* `config.provider` / `config.baseUrl`, and rule 5 reads `apiKeys`. All of those
|
|
16
|
-
* are live: `/model`, `/provider`, the settings screen's save, `/reload` and a
|
|
17
|
-
* one-shot key edit each rewrite one of them mid-session. A tier resolved once
|
|
18
|
-
* at construction is a tier that can be describing a provider the session no
|
|
19
|
-
* longer uses.
|
|
20
|
-
*/
|
|
21
|
-
import type { ModelRole } from '../config/model-profiles.js';
|
|
22
|
-
import { type CliConfig } from '../config/schema.js';
|
|
23
|
-
import type { FastTier } from './types.js';
|
|
24
|
-
/**
|
|
25
|
-
* Resolve the fast tier from the CURRENT config.
|
|
26
|
-
*
|
|
27
|
-
* @param config The live effective config. Read fresh; never snapshot it.
|
|
28
|
-
* @param hasKey `AgentController.hasApiKey`, which already resolves the
|
|
29
|
-
* config-file key, the provider environment variable and the one-shot
|
|
30
|
-
* `--api-key` override. Injected rather than reimplemented, because a second
|
|
31
|
-
* key resolver is a second answer to "why does it say no key?".
|
|
32
|
-
*/
|
|
33
|
-
export declare function resolveFastTier(config: CliConfig, hasKey: (providerId: string, role?: ModelRole) => boolean): FastTier;
|
|
34
|
-
/**
|
|
35
|
-
* The one-line notice for a tier the user switched on that cannot resolve, or
|
|
36
|
-
* `null` when there is nothing worth saying.
|
|
37
|
-
*
|
|
38
|
-
* `disabled` returns `null` - the tier being off because the user left it off is
|
|
39
|
-
* not news. The other three are CONFIGURATION MISTAKES that are otherwise
|
|
40
|
-
* completely invisible: nothing else in the session would ever mention them.
|
|
41
|
-
*/
|
|
42
|
-
export declare function describeFastTierProblem(tier: FastTier, provider: string): string | null;
|
|
43
|
-
/** The provider a tier resolution was about, for the notice above. */
|
|
44
|
-
export declare function fastProviderOf(config: CliConfig): string;
|
package/dist/fast/resolve.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `resolveFastTier` — THE single authority on whether a fast tier exists and
|
|
3
|
-
* what it points at (fast-model-tier §3.2).
|
|
4
|
-
*
|
|
5
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope.
|
|
6
|
-
*
|
|
7
|
-
* EVERY CONSUMER READS THE TIER THROUGH THIS FUNCTION AND NOWHERE ELSE - the
|
|
8
|
-
* controller, the subagent factory, the reviewer, `/fast`, the settings screen
|
|
9
|
-
* and the status bar. Four call sites recomputing "is fast usable?" from raw
|
|
10
|
-
* config keys is exactly how a UI ends up showing a chip for a tier that refuses
|
|
11
|
-
* every call.
|
|
12
|
-
*
|
|
13
|
-
* IT IS ALSO RE-RUN ON EVERY CONFIG MUTATION, NOT ONCE (rule 8 / RV-3). Rules 2
|
|
14
|
-
* and 6 make `fast.provider: ''` and `fast.baseUrl: ''` INHERIT from
|
|
15
|
-
* `config.provider` / `config.baseUrl`, and rule 5 reads `apiKeys`. All of those
|
|
16
|
-
* are live: `/model`, `/provider`, the settings screen's save, `/reload` and a
|
|
17
|
-
* one-shot key edit each rewrite one of them mid-session. A tier resolved once
|
|
18
|
-
* at construction is a tier that can be describing a provider the session no
|
|
19
|
-
* longer uses.
|
|
20
|
-
*/
|
|
21
|
-
import { isAdapterProvider } from '../config/schema.js';
|
|
22
|
-
/**
|
|
23
|
-
* Resolve the fast tier from the CURRENT config.
|
|
24
|
-
*
|
|
25
|
-
* @param config The live effective config. Read fresh; never snapshot it.
|
|
26
|
-
* @param hasKey `AgentController.hasApiKey`, which already resolves the
|
|
27
|
-
* config-file key, the provider environment variable and the one-shot
|
|
28
|
-
* `--api-key` override. Injected rather than reimplemented, because a second
|
|
29
|
-
* key resolver is a second answer to "why does it say no key?".
|
|
30
|
-
*/
|
|
31
|
-
export function resolveFastTier(config, hasKey) {
|
|
32
|
-
const fast = config.fast;
|
|
33
|
-
// 1. The switch.
|
|
34
|
-
if (!fast || fast.enabled !== true)
|
|
35
|
-
return { ok: false, reason: 'disabled' };
|
|
36
|
-
// 2. An empty provider INHERITS the main one. This is what makes `fast.model`
|
|
37
|
-
// alone a complete configuration for the overwhelmingly common case ("same
|
|
38
|
-
// vendor, cheaper model").
|
|
39
|
-
const provider = fast.provider.trim().length > 0 ? fast.provider.trim() : config.provider;
|
|
40
|
-
// 3. An empty model is NOT CONFIGURED, and deliberately does not inherit
|
|
41
|
-
// (D-4). Silently falling back to the main model would make R-e - opting in
|
|
42
|
-
// to fast == main, which is legal - indistinguishable from a typo.
|
|
43
|
-
const modelId = fast.model.trim();
|
|
44
|
-
if (modelId.length === 0)
|
|
45
|
-
return { ok: false, reason: 'no_model' };
|
|
46
|
-
// 4 / 5. Both are reported separately because they send the user to two
|
|
47
|
-
// different settings.
|
|
48
|
-
if (!isAdapterProvider(provider))
|
|
49
|
-
return { ok: false, reason: 'no_adapter' };
|
|
50
|
-
if (!hasKey(provider, 'fast'))
|
|
51
|
-
return { ok: false, reason: 'no_key' };
|
|
52
|
-
// 6. A fast tier on the SAME provider inherits the session's base URL: a user
|
|
53
|
-
// pointing the CLI at a gateway means both models, not one. A fast tier on
|
|
54
|
-
// a DIFFERENT provider does not, because that base URL belongs to another
|
|
55
|
-
// API and would be an immediate 404.
|
|
56
|
-
const explicitBaseUrl = fast.baseUrl.trim();
|
|
57
|
-
const baseUrl = explicitBaseUrl.length > 0
|
|
58
|
-
? explicitBaseUrl
|
|
59
|
-
: config.modelProfiles?.fastId && !config.modelProfileState?.fast.invalid
|
|
60
|
-
? undefined
|
|
61
|
-
: provider === config.provider
|
|
62
|
-
? config.baseUrl
|
|
63
|
-
: undefined;
|
|
64
|
-
const ref = {
|
|
65
|
-
providerId: provider,
|
|
66
|
-
modelId,
|
|
67
|
-
...(baseUrl ? { baseUrl } : {}),
|
|
68
|
-
};
|
|
69
|
-
return {
|
|
70
|
-
ok: true,
|
|
71
|
-
ref,
|
|
72
|
-
thinkingLevel: fast.thinkingLevel,
|
|
73
|
-
// 7. DISPLAY ONLY, and no branch anywhere may read it (R-13). "The two tiers
|
|
74
|
-
// resolve to the same model, so skip the work" is the tempting
|
|
75
|
-
// optimization that silently turns R-e into a no-op: the user is allowed
|
|
76
|
-
// to choose it, and the cost of the review is real either way.
|
|
77
|
-
sameAsMain: provider === config.provider && modelId === config.model,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* The one-line notice for a tier the user switched on that cannot resolve, or
|
|
82
|
-
* `null` when there is nothing worth saying.
|
|
83
|
-
*
|
|
84
|
-
* `disabled` returns `null` - the tier being off because the user left it off is
|
|
85
|
-
* not news. The other three are CONFIGURATION MISTAKES that are otherwise
|
|
86
|
-
* completely invisible: nothing else in the session would ever mention them.
|
|
87
|
-
*/
|
|
88
|
-
export function describeFastTierProblem(tier, provider) {
|
|
89
|
-
if (tier.ok)
|
|
90
|
-
return null;
|
|
91
|
-
switch (tier.reason) {
|
|
92
|
-
case 'no_model':
|
|
93
|
-
return 'fast.enabled is on but fast.model is empty - the fast tier is off. ' +
|
|
94
|
-
'Set it with /fast model <id>.';
|
|
95
|
-
case 'no_adapter':
|
|
96
|
-
return `Provider "${provider}" has no adapter - the fast tier is off.`;
|
|
97
|
-
case 'no_key':
|
|
98
|
-
return `No API key for ${provider} - the fast tier is off.`;
|
|
99
|
-
default:
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/** The provider a tier resolution was about, for the notice above. */
|
|
104
|
-
export function fastProviderOf(config) {
|
|
105
|
-
const explicit = config.fast?.provider.trim() ?? '';
|
|
106
|
-
return explicit.length > 0 ? explicit : config.provider;
|
|
107
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The task-summary types (tui-shortcut-drawer-and-task-summary §6.1).
|
|
3
|
-
*
|
|
4
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope.
|
|
5
|
-
*
|
|
6
|
-
* WHY THIS FILE EXISTS AT ALL (v2 P1-3). `fast/summary-call.ts` and
|
|
7
|
-
* `fast/summary-prompt.ts` produce and consume these shapes, and the header cell,
|
|
8
|
-
* the reducer and the controller only display them. Declaring them in
|
|
9
|
-
* `agent/controller.ts` - the v1 plan - would make `fast/` import `agent/` while
|
|
10
|
-
* `agent/` imports `fast/`, and `.claude-index/config.md` already records one
|
|
11
|
-
* real cycle in this package (`agent <-> compaction`). One more is not a style
|
|
12
|
-
* question: a cycle makes the import graph unusable for ordering, and it is
|
|
13
|
-
* exactly what `shortcut-table.test.ts` scans for. So the types live DOWN here,
|
|
14
|
-
* in the lowest layer that needs them, and `agent/**` reaches them with
|
|
15
|
-
* `import type` only.
|
|
16
|
-
*/
|
|
17
|
-
/** How the label was produced. `fallback` is the user's own words, never a guess. */
|
|
18
|
-
export type TaskSummaryTone = 'model' | 'fallback';
|
|
19
|
-
/**
|
|
20
|
-
* The dominant character class of a string, by letter majority.
|
|
21
|
-
*
|
|
22
|
-
* A NAMED UNION rather than the free-form `Script` v1 mentioned (and never
|
|
23
|
-
* defined, P1-8). Only three answers are actionable: the label must be CJK, must
|
|
24
|
-
* be Latin, or is neither (a prompt in Cyrillic, or only punctuation).
|
|
25
|
-
*/
|
|
26
|
-
export type TaskSummarySpan = 'cjk' | 'latin' | 'other';
|
|
27
|
-
/**
|
|
28
|
-
* Why a label is what it is.
|
|
29
|
-
*
|
|
30
|
-
* THE FIRST NINE VALUES ALL MEAN "the model did not give us a label" and every
|
|
31
|
-
* one of them converges on the SAME deterministic floor (D-9); they are kept
|
|
32
|
-
* apart only so the drawer and `/task` can say which one happened. `empty` is
|
|
33
|
-
* the tenth and means there was no floor to show either (fallback disabled).
|
|
34
|
-
*/
|
|
35
|
-
export type TaskSummaryReason = 'tier-off' | 'no-model' | 'no-adapter' | 'no-key' | 'timeout' | 'aborted' | 'error' | 'bad-output' | 'language-mismatch' | 'empty';
|
|
36
|
-
/**
|
|
37
|
-
* The one task label a session has, as the header and the drawer read it.
|
|
38
|
-
*
|
|
39
|
-
* A PURE VIEW: it is never persisted, never enters the conversation history and
|
|
40
|
-
* never touches `config.json` (§0-2). Everything a surface needs to explain the
|
|
41
|
-
* label without a second lookup is on this record.
|
|
42
|
-
*/
|
|
43
|
-
export interface TaskSummaryView {
|
|
44
|
-
/** Normalised, width-safe, at most `TASK_SUMMARY_LIMITS.maxCells` columns. */
|
|
45
|
-
text: string;
|
|
46
|
-
tone: TaskSummaryTone;
|
|
47
|
-
/** `null` exactly when `tone === 'model'`. */
|
|
48
|
-
reason: TaskSummaryReason | null;
|
|
49
|
-
/** The anchor's dominant script, so the drawer can disclose a mismatch. */
|
|
50
|
-
script: TaskSummarySpan;
|
|
51
|
-
/** Epoch ms of the attempt. The drawer renders `12s ago` from it, no clock of its own. */
|
|
52
|
-
at: number;
|
|
53
|
-
/** `provider:model` that produced it; `''` for a fallback. */
|
|
54
|
-
by: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* What one attempt produced.
|
|
58
|
-
*
|
|
59
|
-
* `view: null` happens in exactly one case: the call failed AND
|
|
60
|
-
* `taskSummary.fallback` is false. That is a deliberate "show nothing" rather
|
|
61
|
-
* than an empty string, because an empty header cell would read as a broken
|
|
62
|
-
* feature (D-9).
|
|
63
|
-
*/
|
|
64
|
-
export interface TaskSummaryOutcome {
|
|
65
|
-
view: TaskSummaryView | null;
|
|
66
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The task-summary types (tui-shortcut-drawer-and-task-summary §6.1).
|
|
3
|
-
*
|
|
4
|
-
* ASCII ONLY: `src/fast/**` is inside the glyph scanner's scope.
|
|
5
|
-
*
|
|
6
|
-
* WHY THIS FILE EXISTS AT ALL (v2 P1-3). `fast/summary-call.ts` and
|
|
7
|
-
* `fast/summary-prompt.ts` produce and consume these shapes, and the header cell,
|
|
8
|
-
* the reducer and the controller only display them. Declaring them in
|
|
9
|
-
* `agent/controller.ts` - the v1 plan - would make `fast/` import `agent/` while
|
|
10
|
-
* `agent/` imports `fast/`, and `.claude-index/config.md` already records one
|
|
11
|
-
* real cycle in this package (`agent <-> compaction`). One more is not a style
|
|
12
|
-
* question: a cycle makes the import graph unusable for ordering, and it is
|
|
13
|
-
* exactly what `shortcut-table.test.ts` scans for. So the types live DOWN here,
|
|
14
|
-
* in the lowest layer that needs them, and `agent/**` reaches them with
|
|
15
|
-
* `import type` only.
|
|
16
|
-
*/
|
|
17
|
-
export {};
|