SlashCommandDispatch extension
Slash-command dispatch on AgentCli.
- on
Properties
- powerAssertionsForTesting → PowerAssertionController?
-
Available on AgentCli, provided by the SlashCommandDispatch extension
The session's sleep-prevention controller (issues #325/#326) — null when no runner was injected. Exposed so wiring tests can assert the acquire/release lifecycle without spawning a real helper.no setter - quotaService → ProviderQuotaService
-
Available on AgentCli, provided by the SlashCommandDispatch extension
The session's quota service, built on first use — no IO at rest: the adapters resolve credentials lazily and fetch only when a surface peeks or refreshes. Tests inject the http client through AgentCliConfig.quotaHttpClient; production shares the keep-alive provider client.no setter
Methods
-
acquirePowerAssertions(
) → Future< void> -
Available on AgentCli, provided by the SlashCommandDispatch extension
Session-open hook for the sleep-prevention assertion (#326): acquires only in the explicitpower.hold: sessionmode — the DEFAULT is per-run (see runPowerAssertionsStarted), so an idle agent never pins the machine awake. No-op without an injected runner (tests, web). -
attachProviderQueueQuotaFeed(
) → Future< void> -
Available on AgentCli, provided by the SlashCommandDispatch extension
Rebinds a boot-built queue runtime with the live quota feed (issue #823): the boot constructs the runtime before the CLI — and therefore before the service — exists. No-op without a queue, so legacy boots stay byte-identical. -
handleLineForTest(
String line) → Future< void> -
Available on AgentCli, provided by the SlashCommandDispatch extension
Dispatches one input line through the normal pipeline. Editor-flow unit tests drive slash commands through this instead of spawning a full AgentCli.run loop. -
releasePowerAssertions(
) → Future< void> -
Available on AgentCli, provided by the SlashCommandDispatch extension
Releases the sleep-prevention assertion (idempotent, warn-not-crash) — both modes: the per-run mode's safety net for an exit mid-run, the session mode's regular release. -
runPowerAssertionsSettled(
) → Future< void> -
Available on AgentCli, provided by the SlashCommandDispatch extension
Run-settle hook (#326): the per-run hold releases once the run has fully settled (post-run compaction included). -
runPowerAssertionsStarted(
) → void -
Available on AgentCli, provided by the SlashCommandDispatch extension
Run-start hook (#326): the per-run hold acquires here, fire-and- forget — sleep prevention must never delay the first streamed byte.