dispach 0.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/README.md +596 -0
- package/dist/App-dxqm39zx.js +11 -0
- package/dist/App-dxqm39zx.js.map +25 -0
- package/dist/ConfigEditor-7v5nebvy.js +6 -0
- package/dist/ConfigEditor-7v5nebvy.js.map +11 -0
- package/dist/KeyProbe-vjhmdpx6.js +5 -0
- package/dist/KeyProbe-vjhmdpx6.js.map +11 -0
- package/dist/Picker-jxaesaxy.js +5 -0
- package/dist/Picker-jxaesaxy.js.map +10 -0
- package/dist/SessionPicker-z2t0p4b5.js +5 -0
- package/dist/SessionPicker-z2t0p4b5.js.map +11 -0
- package/dist/SkillBrowser-yyf2gy0q.js +5 -0
- package/dist/SkillBrowser-yyf2gy0q.js.map +11 -0
- package/dist/WizardApp-12ndxgqv.js +5 -0
- package/dist/WizardApp-12ndxgqv.js.map +13 -0
- package/dist/agents.d.ts +9 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/browse.d.ts +63 -0
- package/dist/browse.d.ts.map +1 -0
- package/dist/client.d.ts +25 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +34 -0
- package/dist/client.js.map +11 -0
- package/dist/components/App.d.ts +28 -0
- package/dist/components/App.d.ts.map +1 -0
- package/dist/components/Banner.d.ts +16 -0
- package/dist/components/Banner.d.ts.map +1 -0
- package/dist/components/Brandmark.d.ts +31 -0
- package/dist/components/Brandmark.d.ts.map +1 -0
- package/dist/components/CheckList.d.ts +38 -0
- package/dist/components/CheckList.d.ts.map +1 -0
- package/dist/components/CommandOutput.d.ts +29 -0
- package/dist/components/CommandOutput.d.ts.map +1 -0
- package/dist/components/ConfigEditor.d.ts +64 -0
- package/dist/components/ConfigEditor.d.ts.map +1 -0
- package/dist/components/HistorySearch.d.ts +23 -0
- package/dist/components/HistorySearch.d.ts.map +1 -0
- package/dist/components/KeyProbe.d.ts +36 -0
- package/dist/components/KeyProbe.d.ts.map +1 -0
- package/dist/components/LineCursor.d.ts +55 -0
- package/dist/components/LineCursor.d.ts.map +1 -0
- package/dist/components/Live.d.ts +17 -0
- package/dist/components/Live.d.ts.map +1 -0
- package/dist/components/Palette.d.ts +21 -0
- package/dist/components/Palette.d.ts.map +1 -0
- package/dist/components/Picker.d.ts +23 -0
- package/dist/components/Picker.d.ts.map +1 -0
- package/dist/components/Prompt.d.ts +20 -0
- package/dist/components/Prompt.d.ts.map +1 -0
- package/dist/components/Screen.d.ts +39 -0
- package/dist/components/Screen.d.ts.map +1 -0
- package/dist/components/SelectList.d.ts +34 -0
- package/dist/components/SelectList.d.ts.map +1 -0
- package/dist/components/SessionPicker.d.ts +26 -0
- package/dist/components/SessionPicker.d.ts.map +1 -0
- package/dist/components/SkillBrowser.d.ts +39 -0
- package/dist/components/SkillBrowser.d.ts.map +1 -0
- package/dist/components/Spinner.d.ts +13 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/StatusBar.d.ts +11 -0
- package/dist/components/StatusBar.d.ts.map +1 -0
- package/dist/components/SummaryCard.d.ts +11 -0
- package/dist/components/SummaryCard.d.ts.map +1 -0
- package/dist/components/TextField.d.ts +39 -0
- package/dist/components/TextField.d.ts.map +1 -0
- package/dist/components/Transcript.d.ts +23 -0
- package/dist/components/Transcript.d.ts.map +1 -0
- package/dist/components/WizardApp.d.ts +18 -0
- package/dist/components/WizardApp.d.ts.map +1 -0
- package/dist/components/WizardFrame.d.ts +19 -0
- package/dist/components/WizardFrame.d.ts.map +1 -0
- package/dist/config-yz0nz51b.js +24 -0
- package/dist/config-yz0nz51b.js.map +10 -0
- package/dist/config.d.ts +71 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/credential-wgt4gvcz.js +19 -0
- package/dist/credential-wgt4gvcz.js.map +10 -0
- package/dist/credential.d.ts +68 -0
- package/dist/credential.d.ts.map +1 -0
- package/dist/daemon.d.ts +47 -0
- package/dist/daemon.d.ts.map +1 -0
- package/dist/editor.d.ts +81 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/hooks/useElapsed.d.ts +10 -0
- package/dist/hooks/useElapsed.d.ts.map +1 -0
- package/dist/hooks/useTerminalSize.d.ts +14 -0
- package/dist/hooks/useTerminalSize.d.ts.map +1 -0
- package/dist/hooks/useTurn.d.ts +41 -0
- package/dist/hooks/useTurn.d.ts.map +1 -0
- package/dist/index-2cvtz0fy.js +903 -0
- package/dist/index-2cvtz0fy.js.map +194 -0
- package/dist/index-3nwfz9jq.js +12 -0
- package/dist/index-3nwfz9jq.js.map +11 -0
- package/dist/index-6b7qvh1x.js +6 -0
- package/dist/index-6b7qvh1x.js.map +10 -0
- package/dist/index-6z0yr17z.js +12 -0
- package/dist/index-6z0yr17z.js.map +11 -0
- package/dist/index-7da4fqcr.js +7 -0
- package/dist/index-7da4fqcr.js.map +11 -0
- package/dist/index-8bmhd2hj.js +6 -0
- package/dist/index-8bmhd2hj.js.map +10 -0
- package/dist/index-9d011p3q.js +6 -0
- package/dist/index-9d011p3q.js.map +10 -0
- package/dist/index-9f9pp2ef.js +6 -0
- package/dist/index-9f9pp2ef.js.map +10 -0
- package/dist/index-9nsfs0vy.js +6 -0
- package/dist/index-9nsfs0vy.js.map +10 -0
- package/dist/index-9pj1ws0p.js +77 -0
- package/dist/index-9pj1ws0p.js.map +12 -0
- package/dist/index-b5wwtxzk.js +66 -0
- package/dist/index-b5wwtxzk.js.map +12 -0
- package/dist/index-b8zwg8a3.js +6 -0
- package/dist/index-b8zwg8a3.js.map +10 -0
- package/dist/index-bry9bzt3.js +427 -0
- package/dist/index-bry9bzt3.js.map +11 -0
- package/dist/index-bwckzbf8.js +6 -0
- package/dist/index-bwckzbf8.js.map +10 -0
- package/dist/index-cx3vz7sf.js +6 -0
- package/dist/index-cx3vz7sf.js.map +11 -0
- package/dist/index-e8n70sgj.js +6 -0
- package/dist/index-e8n70sgj.js.map +11 -0
- package/dist/index-fvhg0xyd.js +167 -0
- package/dist/index-fvhg0xyd.js.map +19 -0
- package/dist/index-gbnc99j8.js +14 -0
- package/dist/index-gbnc99j8.js.map +13 -0
- package/dist/index-h2yds678.js +7 -0
- package/dist/index-h2yds678.js.map +11 -0
- package/dist/index-j97vttdt.js +10 -0
- package/dist/index-j97vttdt.js.map +10 -0
- package/dist/index-jk0def33.js +6 -0
- package/dist/index-jk0def33.js.map +12 -0
- package/dist/index-jym27m75.js +6 -0
- package/dist/index-jym27m75.js.map +10 -0
- package/dist/index-mgdgx22q.js +10 -0
- package/dist/index-mgdgx22q.js.map +10 -0
- package/dist/index-mrtb5y08.js +6 -0
- package/dist/index-mrtb5y08.js.map +11 -0
- package/dist/index-my5cjx00.js +6 -0
- package/dist/index-my5cjx00.js.map +10 -0
- package/dist/index-qc2vrq9z.js +7 -0
- package/dist/index-qc2vrq9z.js.map +11 -0
- package/dist/index-rqbtm761.js +6 -0
- package/dist/index-rqbtm761.js.map +10 -0
- package/dist/index-rqzg861g.js +6 -0
- package/dist/index-rqzg861g.js.map +10 -0
- package/dist/index-t1xvacym.js +6 -0
- package/dist/index-t1xvacym.js.map +11 -0
- package/dist/index-xgqzk5cq.js +9 -0
- package/dist/index-xgqzk5cq.js.map +12 -0
- package/dist/index-xqyms08r.js +6 -0
- package/dist/index-xqyms08r.js.map +10 -0
- package/dist/index-yr25dnf5.js +6 -0
- package/dist/index-yr25dnf5.js.map +10 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +527 -0
- package/dist/index.js.map +48 -0
- package/dist/init.d.ts +34 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/keymap.d.ts +126 -0
- package/dist/keymap.d.ts.map +1 -0
- package/dist/keys.d.ts +17 -0
- package/dist/keys.d.ts.map +1 -0
- package/dist/lib/ambient.d.ts +69 -0
- package/dist/lib/ambient.d.ts.map +1 -0
- package/dist/lib/args.d.ts +33 -0
- package/dist/lib/args.d.ts.map +1 -0
- package/dist/lib/bootstrap.d.ts +84 -0
- package/dist/lib/bootstrap.d.ts.map +1 -0
- package/dist/lib/browse.d.ts +89 -0
- package/dist/lib/browse.d.ts.map +1 -0
- package/dist/lib/browser.d.ts +55 -0
- package/dist/lib/browser.d.ts.map +1 -0
- package/dist/lib/chat-frame.d.ts +156 -0
- package/dist/lib/chat-frame.d.ts.map +1 -0
- package/dist/lib/clipboard.d.ts +32 -0
- package/dist/lib/clipboard.d.ts.map +1 -0
- package/dist/lib/commands.d.ts +26 -0
- package/dist/lib/commands.d.ts.map +1 -0
- package/dist/lib/composer.d.ts +85 -0
- package/dist/lib/composer.d.ts.map +1 -0
- package/dist/lib/config-apply.d.ts +51 -0
- package/dist/lib/config-apply.d.ts.map +1 -0
- package/dist/lib/config-editor.d.ts +113 -0
- package/dist/lib/config-editor.d.ts.map +1 -0
- package/dist/lib/config-env.d.ts +110 -0
- package/dist/lib/config-env.d.ts.map +1 -0
- package/dist/lib/config-rows.d.ts +37 -0
- package/dist/lib/config-rows.d.ts.map +1 -0
- package/dist/lib/config-view.d.ts +133 -0
- package/dist/lib/config-view.d.ts.map +1 -0
- package/dist/lib/confirm.d.ts +86 -0
- package/dist/lib/confirm.d.ts.map +1 -0
- package/dist/lib/const.d.ts +213 -0
- package/dist/lib/const.d.ts.map +1 -0
- package/dist/lib/csi.d.ts +70 -0
- package/dist/lib/csi.d.ts.map +1 -0
- package/dist/lib/curated.d.ts +44 -0
- package/dist/lib/curated.d.ts.map +1 -0
- package/dist/lib/daemon-plan.d.ts +151 -0
- package/dist/lib/daemon-plan.d.ts.map +1 -0
- package/dist/lib/dotenv-edit.d.ts +30 -0
- package/dist/lib/dotenv-edit.d.ts.map +1 -0
- package/dist/lib/env.d.ts +10 -0
- package/dist/lib/env.d.ts.map +1 -0
- package/dist/lib/exit.d.ts +170 -0
- package/dist/lib/exit.d.ts.map +1 -0
- package/dist/lib/help.d.ts +10 -0
- package/dist/lib/help.d.ts.map +1 -0
- package/dist/lib/init-flow.d.ts +539 -0
- package/dist/lib/init-flow.d.ts.map +1 -0
- package/dist/lib/init-skills.d.ts +46 -0
- package/dist/lib/init-skills.d.ts.map +1 -0
- package/dist/lib/keyboard.d.ts +76 -0
- package/dist/lib/keyboard.d.ts.map +1 -0
- package/dist/lib/keys-view.d.ts +57 -0
- package/dist/lib/keys-view.d.ts.map +1 -0
- package/dist/lib/launchd.d.ts +151 -0
- package/dist/lib/launchd.d.ts.map +1 -0
- package/dist/lib/lifecycle.d.ts +126 -0
- package/dist/lib/lifecycle.d.ts.map +1 -0
- package/dist/lib/log-follow.d.ts +71 -0
- package/dist/lib/log-follow.d.ts.map +1 -0
- package/dist/lib/mouse.d.ts +84 -0
- package/dist/lib/mouse.d.ts.map +1 -0
- package/dist/lib/multiselect.d.ts +37 -0
- package/dist/lib/multiselect.d.ts.map +1 -0
- package/dist/lib/origins.d.ts +40 -0
- package/dist/lib/origins.d.ts.map +1 -0
- package/dist/lib/output.d.ts +29 -0
- package/dist/lib/output.d.ts.map +1 -0
- package/dist/lib/palette.d.ts +69 -0
- package/dist/lib/palette.d.ts.map +1 -0
- package/dist/lib/probe.d.ts +158 -0
- package/dist/lib/probe.d.ts.map +1 -0
- package/dist/lib/providers.d.ts +63 -0
- package/dist/lib/providers.d.ts.map +1 -0
- package/dist/lib/provision.d.ts +163 -0
- package/dist/lib/provision.d.ts.map +1 -0
- package/dist/lib/remove-plan.d.ts +120 -0
- package/dist/lib/remove-plan.d.ts.map +1 -0
- package/dist/lib/render.d.ts +78 -0
- package/dist/lib/render.d.ts.map +1 -0
- package/dist/lib/resume.d.ts +69 -0
- package/dist/lib/resume.d.ts.map +1 -0
- package/dist/lib/rows.d.ts +69 -0
- package/dist/lib/rows.d.ts.map +1 -0
- package/dist/lib/sandbox.d.ts +101 -0
- package/dist/lib/sandbox.d.ts.map +1 -0
- package/dist/lib/schema.d.ts +491 -0
- package/dist/lib/schema.d.ts.map +1 -0
- package/dist/lib/screen.d.ts +102 -0
- package/dist/lib/screen.d.ts.map +1 -0
- package/dist/lib/scroll.d.ts +64 -0
- package/dist/lib/scroll.d.ts.map +1 -0
- package/dist/lib/select.d.ts +23 -0
- package/dist/lib/select.d.ts.map +1 -0
- package/dist/lib/service-env.d.ts +38 -0
- package/dist/lib/service-env.d.ts.map +1 -0
- package/dist/lib/service.d.ts +102 -0
- package/dist/lib/service.d.ts.map +1 -0
- package/dist/lib/session-commands.d.ts +229 -0
- package/dist/lib/session-commands.d.ts.map +1 -0
- package/dist/lib/session-key.d.ts +55 -0
- package/dist/lib/session-key.d.ts.map +1 -0
- package/dist/lib/sessions-view.d.ts +31 -0
- package/dist/lib/sessions-view.d.ts.map +1 -0
- package/dist/lib/source-cache.d.ts +105 -0
- package/dist/lib/source-cache.d.ts.map +1 -0
- package/dist/lib/source.d.ts +281 -0
- package/dist/lib/source.d.ts.map +1 -0
- package/dist/lib/sources.d.ts +107 -0
- package/dist/lib/sources.d.ts.map +1 -0
- package/dist/lib/spawn.d.ts +56 -0
- package/dist/lib/spawn.d.ts.map +1 -0
- package/dist/lib/stdin-tap.d.ts +41 -0
- package/dist/lib/stdin-tap.d.ts.map +1 -0
- package/dist/lib/subcommand.d.ts +57 -0
- package/dist/lib/subcommand.d.ts.map +1 -0
- package/dist/lib/systemd.d.ts +60 -0
- package/dist/lib/systemd.d.ts.map +1 -0
- package/dist/lib/templates.d.ts +35 -0
- package/dist/lib/templates.d.ts.map +1 -0
- package/dist/lib/terminal.d.ts +98 -0
- package/dist/lib/terminal.d.ts.map +1 -0
- package/dist/lib/text-selection.d.ts +75 -0
- package/dist/lib/text-selection.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +90 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/types.d.ts +467 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/warnings.d.ts +79 -0
- package/dist/lib/warnings.d.ts.map +1 -0
- package/dist/lib/width.d.ts +39 -0
- package/dist/lib/width.d.ts.map +1 -0
- package/dist/lib/wizard.d.ts +95 -0
- package/dist/lib/wizard.d.ts.map +1 -0
- package/dist/lib/wordmark.d.ts +60 -0
- package/dist/lib/wordmark.d.ts.map +1 -0
- package/dist/lib/wrap.d.ts +74 -0
- package/dist/lib/wrap.d.ts.map +1 -0
- package/dist/memory.d.ts +25 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/model.d.ts +47 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/plugins.d.ts +15 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/remove.d.ts +52 -0
- package/dist/remove.d.ts.map +1 -0
- package/dist/run.d.ts +42 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/schedules.d.ts +41 -0
- package/dist/schedules.d.ts.map +1 -0
- package/dist/serve.d.ts +41 -0
- package/dist/serve.d.ts.map +1 -0
- package/dist/sessions.d.ts +13 -0
- package/dist/sessions.d.ts.map +1 -0
- package/dist/skills.d.ts +80 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/soul.d.ts +19 -0
- package/dist/soul.d.ts.map +1 -0
- package/dist/sources.d.ts +32 -0
- package/dist/sources.d.ts.map +1 -0
- package/dist/start.d.ts +26 -0
- package/dist/start.d.ts.map +1 -0
- package/dist/stop.d.ts +58 -0
- package/dist/stop.d.ts.map +1 -0
- package/dist/terminal-setup.d.ts +31 -0
- package/dist/terminal-setup.d.ts.map +1 -0
- package/dist/tools.d.ts +22 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/transcript.d.ts +124 -0
- package/dist/transcript.d.ts.map +1 -0
- package/dist/validate.d.ts +36 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/web-w7r68df1.js +14 -0
- package/dist/web-w7r68df1.js.map +11 -0
- package/dist/web.d.ts +36 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/wire.d.ts +10 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.js +33 -0
- package/dist/wire.js.map +10 -0
- package/dist/workspace.d.ts +19 -0
- package/dist/workspace.d.ts.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a window sits in a buffer taller than itself. Pure, so scrolling is testable as arithmetic.
|
|
3
|
+
*
|
|
4
|
+
* ## Why the transcript needs this at all
|
|
5
|
+
*
|
|
6
|
+
* Until Phase 5.5 the finished conversation lived in Ink's `<Static>`, which writes a node to the
|
|
7
|
+
* terminal once and never touches it again — so scrolling was the *terminal's* scrollback and cost
|
|
8
|
+
* this code nothing. The alternate screen removes that: the buffer it swaps in is discarded on the
|
|
9
|
+
* way out and its scrollbar reaches nothing, so a screen that owns the terminal has to own scrolling
|
|
10
|
+
* too. `<Static>` and the alternate screen are not two options; they are incompatible.
|
|
11
|
+
*
|
|
12
|
+
* ## `pinned` is a flag, not a comparison
|
|
13
|
+
*
|
|
14
|
+
* The property that matters is "new output follows the tail only when the reader is already at the
|
|
15
|
+
* tail". Deriving that by comparing the offset to the bottom looks equivalent and is not: the moment
|
|
16
|
+
* a row is appended the old offset *is* one short of the bottom, so a reader who had deliberately
|
|
17
|
+
* scrolled up one row would be yanked back down. Holding the intent explicitly makes the two states
|
|
18
|
+
* different things — following, or parked — and a parked window stays parked however much arrives.
|
|
19
|
+
*
|
|
20
|
+
* While pinned the offset is *derived* rather than stored, which is what makes appending free: no
|
|
21
|
+
* state changes when a row arrives, so nothing re-renders because of the scroll layer.
|
|
22
|
+
*/
|
|
23
|
+
import type { ScrollMove } from "#lib/types";
|
|
24
|
+
export interface ScrollState {
|
|
25
|
+
/** First visible row while parked. Ignored while `pinned`, and kept so unpinning is reversible. */
|
|
26
|
+
readonly offset: number;
|
|
27
|
+
/** Following the newest row. The state a session starts and returns to. */
|
|
28
|
+
readonly pinned: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Where a conversation starts, and where `bottom` puts it back. */
|
|
31
|
+
export declare const FOLLOWING: ScrollState;
|
|
32
|
+
/** The first visible row, resolved. One derivation, so no caller repeats the pinned case. */
|
|
33
|
+
export declare function topRow(state: ScrollState, total: number, window: number): number;
|
|
34
|
+
export declare function scroll(state: ScrollState, move: ScrollMove, total: number, window: number): ScrollState;
|
|
35
|
+
export interface Slice {
|
|
36
|
+
readonly from: number;
|
|
37
|
+
readonly to: number;
|
|
38
|
+
readonly above: number;
|
|
39
|
+
readonly below: number;
|
|
40
|
+
}
|
|
41
|
+
/** Which rows to draw, and how many are out of sight on each side. */
|
|
42
|
+
export declare function slice(state: ScrollState, total: number, window: number): Slice;
|
|
43
|
+
/**
|
|
44
|
+
* Rows a body may use, given the terminal's height and what the chrome around it takes.
|
|
45
|
+
*
|
|
46
|
+
* Biased low on purpose: one row short of the terminal leaves a blank line, and one row over makes the
|
|
47
|
+
* frame taller than the screen — which on the alternate buffer scrolls the whole layout and leaves the
|
|
48
|
+
* status line halfway up the display. An underestimate is invisible and an overestimate is corruption,
|
|
49
|
+
* so the safety row is spent in the direction that cannot be seen.
|
|
50
|
+
*/
|
|
51
|
+
export declare function bodyRows(terminalRows: number, chrome: number): number;
|
|
52
|
+
/**
|
|
53
|
+
* One line saying what is out of sight, or the empty string when nothing is.
|
|
54
|
+
*
|
|
55
|
+
* **Always rendered, blank included.** A counter that appears only when it has something to say takes a
|
|
56
|
+
* row from the window on the frame it appears, which pushes the last row of the conversation under the
|
|
57
|
+
* composer at exactly the moment somebody scrolls — so the fix for a jumping layout would be triggered
|
|
58
|
+
* by scrolling, which is when it is least welcome. One row, reserved, forever: an empty line costs
|
|
59
|
+
* nothing to look at and the geometry never moves.
|
|
60
|
+
*
|
|
61
|
+
* Both directions on one line for the same reason. Two conditional rows is two things that can move.
|
|
62
|
+
*/
|
|
63
|
+
export declare function scrollHint(view: Slice): string;
|
|
64
|
+
//# sourceMappingURL=scroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../../src/lib/scroll.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,WAAW,WAAW;IACxB,mGAAmG;IACnG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;CAC3B;AAED,oEAAoE;AACpE,eAAO,MAAM,SAAS,EAAE,WAAyC,CAAA;AAOjE,6FAA6F;AAC7F,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED,wBAAgB,MAAM,CAClB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,GACf,WAAW,CAgBb;AAED,MAAM,WAAW,KAAK;IAClB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACzB;AAED,sEAAsE;AACtE,wBAAgB,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAK9E;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAO9C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List-cursor state: an index and the moves that change it. Pure, like every reducer here.
|
|
3
|
+
*/
|
|
4
|
+
export interface SelectState {
|
|
5
|
+
readonly index: number;
|
|
6
|
+
readonly count: number;
|
|
7
|
+
}
|
|
8
|
+
export type SelectMove = {
|
|
9
|
+
readonly kind: "up";
|
|
10
|
+
} | {
|
|
11
|
+
readonly kind: "down";
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: "first";
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: "last";
|
|
16
|
+
}
|
|
17
|
+
/** 0-based. A digit key jumps the cursor — visibly and reversibly; it never chooses. */
|
|
18
|
+
| {
|
|
19
|
+
readonly kind: "jump";
|
|
20
|
+
readonly index: number;
|
|
21
|
+
};
|
|
22
|
+
export declare function moveSelect(state: SelectState, move: SelectMove): SelectState;
|
|
23
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/lib/select.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,UAAU,GAChB;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAC3B,wFAAwF;GACtF;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEvD,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,GAAG,WAAW,CAe5E"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a service definition may carry in its environment, and the throw that enforces it.
|
|
3
|
+
*
|
|
4
|
+
* **One list, two renderers.** `launchctl print` echoes a loaded job's `EnvironmentVariables` in
|
|
5
|
+
* plaintext to any process running as this user, and `systemctl show` does exactly the same for
|
|
6
|
+
* `Environment=` — so a credential in either is a credential published, with nothing about the
|
|
7
|
+
* running agent looking wrong. The list lived in `launchd.ts` while launchd was the only manager;
|
|
8
|
+
* a second copy beside the systemd renderer is how one of them comes to allow a variable the other
|
|
9
|
+
* refuses, and the dangerous direction is the one that silently allows more.
|
|
10
|
+
*
|
|
11
|
+
* An allowlist rather than a denylist, and enforced by a throw rather than by review, because the
|
|
12
|
+
* failure is silent and permanent.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The five that are not credentials.
|
|
16
|
+
*
|
|
17
|
+
* `HOME` because a service manager hands a job almost nothing — measured on macOS 26: `PATH` and
|
|
18
|
+
* `SSH_AUTH_SOCK`, and that is all — and `HOME` is what decides the sandbox root. `PATH` because
|
|
19
|
+
* `exec` runs shell commands and a service manager's default has no node, bun, git or brew in it.
|
|
20
|
+
* `TMPDIR` because `exec` writes a child's output there. The two brand variables are a label and a
|
|
21
|
+
* sandbox root, neither of which is a secret.
|
|
22
|
+
*/
|
|
23
|
+
export declare function serviceEnvAllowed(envPrefix: string): readonly string[];
|
|
24
|
+
/**
|
|
25
|
+
* Thrown by either renderer, with the same sentence.
|
|
26
|
+
*
|
|
27
|
+
* Not a `HarnessError`: this is a programming mistake in the CLI rather than a configuration
|
|
28
|
+
* mistake by a person, and it has a `code` and a `hint` so whichever command was running can report
|
|
29
|
+
* it the way it reports everything else.
|
|
30
|
+
*/
|
|
31
|
+
export declare class ServiceSecretError extends Error {
|
|
32
|
+
readonly code = "daemon_secret_in_service";
|
|
33
|
+
readonly hint: string;
|
|
34
|
+
constructor(key: string, allowed: readonly string[], manager: string);
|
|
35
|
+
}
|
|
36
|
+
/** Refuse anything outside the allowlist. Called before a byte is written. */
|
|
37
|
+
export declare function assertNoSecrets(environment: Readonly<Record<string, string>>, envPrefix: string, manager: string): void;
|
|
38
|
+
//# sourceMappingURL=service-env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-env.d.ts","sourceRoot":"","sources":["../../src/lib/service-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAEtE;AAED;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IACzC,QAAQ,CAAC,IAAI,8BAA6B;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;gBACT,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM;CAIvE;AAED,8EAA8E;AAC9E,wBAAgB,eAAe,CAC3B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAC7C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GAChB,IAAI,CAKN"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The service-manager seam, and the only place in this package that spawns a subprocess.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately thin. Every decision lives in `daemon-plan.ts` and every string transformation in
|
|
5
|
+
* `launchd.ts` and `systemd.ts`, all pure; what is left here is "run the manager and hand back what
|
|
6
|
+
* it said", which is the part no test should be exercising against a real machine. `Exec` is
|
|
7
|
+
* injectable for that reason — the daemon tests drive a fake and never touch the user's
|
|
8
|
+
* `~/Library/LaunchAgents`.
|
|
9
|
+
*
|
|
10
|
+
* ## Linux is supported as far as it can be proven, and says where that ends
|
|
11
|
+
*
|
|
12
|
+
* This file used to refuse Linux outright, on the argument that *"a systemd renderer nobody here
|
|
13
|
+
* can execute would be a liability: wrong in ways no test catches, shipped with an acceptance
|
|
14
|
+
* criterion that could not honestly be ticked."* Half of that expired when the product became a
|
|
15
|
+
* server — Linux is where one runs — and half did not: a container has no systemd (PID 1 is the
|
|
16
|
+
* entrypoint) and `systemctl --user` on a CI runner has no D-Bus user session, so nothing here can
|
|
17
|
+
* drive the lifecycle verbs end to end.
|
|
18
|
+
*
|
|
19
|
+
* So the line is drawn by what is provable. `SystemdManager` **writes a real unit** — the text is
|
|
20
|
+
* pure and fully tested — and its lifecycle verbs throw a refusal carrying the exact command
|
|
21
|
+
* instead of pretending. `install` reports the two commands to run. An install that claimed success
|
|
22
|
+
* while nothing was running is the failure this whole phase exists to remove, and that is the one
|
|
23
|
+
* thing a half-built manager must not do.
|
|
24
|
+
*/
|
|
25
|
+
import { HarnessError } from "@dispach/core";
|
|
26
|
+
import { type PrintFacts, type ServicePlan } from "#lib/launchd";
|
|
27
|
+
export interface ExecResult {
|
|
28
|
+
readonly code: number;
|
|
29
|
+
readonly stdout: string;
|
|
30
|
+
readonly stderr: string;
|
|
31
|
+
}
|
|
32
|
+
export type Exec = (command: string, args: readonly string[]) => ExecResult;
|
|
33
|
+
export interface ServiceState {
|
|
34
|
+
readonly installed: boolean;
|
|
35
|
+
readonly disabled: boolean;
|
|
36
|
+
readonly print?: PrintFacts;
|
|
37
|
+
readonly pid?: number;
|
|
38
|
+
/**
|
|
39
|
+
* `false` when this manager cannot say whether the unit is *running*.
|
|
40
|
+
*
|
|
41
|
+
* True for launchd, which is read through `launchctl print`. False for systemd, where the
|
|
42
|
+
* lifecycle is not driven from here — so `installed` there means "the unit file exists" and
|
|
43
|
+
* nothing more, and a caller must fall back to the lease table rather than reporting a written
|
|
44
|
+
* file as a running server.
|
|
45
|
+
*/
|
|
46
|
+
readonly liveness: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface ServiceManager {
|
|
49
|
+
readonly id: string;
|
|
50
|
+
unitPath(label: string): string;
|
|
51
|
+
install(plan: ServicePlan): void;
|
|
52
|
+
uninstall(label: string): void;
|
|
53
|
+
stop(label: string): void;
|
|
54
|
+
start(label: string): void;
|
|
55
|
+
restart(label: string): void;
|
|
56
|
+
state(label: string): ServiceState;
|
|
57
|
+
/** Every label this manager knows about that belongs to us, for a bare `status`. */
|
|
58
|
+
labels(prefix: string): readonly string[];
|
|
59
|
+
/**
|
|
60
|
+
* Commands the person must run themselves after `install`, in order. Empty for launchd.
|
|
61
|
+
*
|
|
62
|
+
* The honest half of a manager that writes a unit and does not start it. Returned rather than
|
|
63
|
+
* printed here so the caller decides where it goes — and returned rather than omitted so the
|
|
64
|
+
* difference between the two platforms is in the type, where it cannot be forgotten.
|
|
65
|
+
*/
|
|
66
|
+
followUp(label: string): readonly string[];
|
|
67
|
+
/**
|
|
68
|
+
* A platform-specific caution worth printing, or `undefined`.
|
|
69
|
+
*
|
|
70
|
+
* Exists for exactly one thing today: a systemd **user** unit stops when the user's last
|
|
71
|
+
* session ends unless lingering is enabled for the account — so an always-on server installed
|
|
72
|
+
* over SSH is gone when the connection closes. That is launchd's `disable` trap in a different
|
|
73
|
+
* costume, and the cure is the same: say it where somebody is looking.
|
|
74
|
+
*/
|
|
75
|
+
caution(): string | undefined;
|
|
76
|
+
}
|
|
77
|
+
export interface ManagerOptions {
|
|
78
|
+
readonly home: string;
|
|
79
|
+
readonly uid: number;
|
|
80
|
+
readonly envPrefix: string;
|
|
81
|
+
readonly exec?: Exec;
|
|
82
|
+
/** For `XDG_CONFIG_HOME` and `USER`. Injectable so a test needs no real environment. */
|
|
83
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
84
|
+
}
|
|
85
|
+
export declare function resolveServiceManager(platform: string, options: ManagerOptions): ServiceManager;
|
|
86
|
+
/**
|
|
87
|
+
* Whether this platform's manager can *start* what it installs.
|
|
88
|
+
*
|
|
89
|
+
* Read by the first-run bootstrap, which must not install something it cannot start and then
|
|
90
|
+
* report a running server: on Linux it prints the command instead. A predicate rather than a
|
|
91
|
+
* `platform === "darwin"` test at the call site, so adding a manager that can execute does not
|
|
92
|
+
* mean finding every place that assumed one could not.
|
|
93
|
+
*/
|
|
94
|
+
export declare function managerCanStart(platform: string): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The refusal, with the workaround's hard part already solved.
|
|
97
|
+
*
|
|
98
|
+
* Filled in by the caller, which knows the resolved paths — a message naming `ExecStart=` with real
|
|
99
|
+
* absolute values is worth more than a paragraph explaining that they matter.
|
|
100
|
+
*/
|
|
101
|
+
export declare function unsupported(platform: string, execStart?: string): HarnessError;
|
|
102
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/lib/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAEH,KAAK,UAAU,EAKf,KAAK,WAAW,EACnB,MAAM,cAAc,CAAA;AAIrB,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAC1B;AACD,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,UAAU,CAAA;AAE3E,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAC/B,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IAChC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;IAClC,oFAAoF;IACpF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAA;IACzC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAA;IAC1C;;;;;;;OAOG;IACH,OAAO,IAAI,MAAM,GAAG,SAAS,CAAA;CAChC;AAkBD,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;IACpB,wFAAwF;IACxF,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;CAC9D;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,cAAc,CAI/F;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAU9E"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What you can type at a running prompt, as data.
|
|
3
|
+
*
|
|
4
|
+
* The outer CLI's help is generated from `COMMANDS`, so a flag the parser honours cannot be missing
|
|
5
|
+
* from `--help`. The in-session help had no such link: it was a string in a component, and the two
|
|
6
|
+
* drifted in both directions — `/help` was advertised by the banner and unhandled on the plain path,
|
|
7
|
+
* where it was sent to the model as a prompt, while five working key chords went undocumented.
|
|
8
|
+
*
|
|
9
|
+
* So the same discipline applies here. One table drives dispatch *and* the help text, which closes
|
|
10
|
+
* the drift for commands. Key bindings cannot be generated the same way, because they live in a
|
|
11
|
+
* function rather than a table — `keyToIntent` decides what `^C` means from whether a turn is in
|
|
12
|
+
* flight. The loop is closed by tests instead: every documented chord is walked through the real
|
|
13
|
+
* `keyToIntent`, and every chord it honours is required to appear here.
|
|
14
|
+
*
|
|
15
|
+
* Pure, and free of Ink: both renderers dispatch through this, which is what keeps `--plain` and the
|
|
16
|
+
* rich path from answering the same keystroke differently.
|
|
17
|
+
*/
|
|
18
|
+
export type SessionCommandKind = "help" | "status" | "context" | "restart" | "new" | "tools" | "reset" | "exit";
|
|
19
|
+
export interface SessionCommandSpec {
|
|
20
|
+
readonly kind: SessionCommandKind;
|
|
21
|
+
readonly word: string;
|
|
22
|
+
/** Accepted and not advertised individually; they appear beside the canonical word. */
|
|
23
|
+
readonly aliases: readonly string[];
|
|
24
|
+
readonly summary: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const SESSION_COMMANDS: readonly SessionCommandSpec[];
|
|
27
|
+
export interface KeyBindingSpec {
|
|
28
|
+
/** As shown to a reader. Ctrl chords are written `^X`, and the drift test reads them back out. */
|
|
29
|
+
readonly chord: string;
|
|
30
|
+
readonly summary: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* How to put a line break in a message, as one line of hint text.
|
|
34
|
+
*
|
|
35
|
+
* ⌥⏎ leads because it is the chord that works everywhere: it arrives as ESC then carriage return, which
|
|
36
|
+
* is a sequence every terminal can send and Ink already parses. The backslash is the fallback for anyone
|
|
37
|
+
* whose Option key is bound to something else.
|
|
38
|
+
*
|
|
39
|
+
* Shift+⏎ is deliberately absent. It requires the terminal to send a distinguishable sequence — kitty's
|
|
40
|
+
* `CSI 13;2u`, which `terminal-setup` installs for the terminals that can be taught — and whether it
|
|
41
|
+
* reaches this process cannot be detected from inside it. A hint naming a chord that silently *sends*
|
|
42
|
+
* the message instead is worse than one naming only what always works.
|
|
43
|
+
*/
|
|
44
|
+
export declare const NEWLINE_HINT = "\u2325\u23CE or a trailing \\ for a new line \u00B7 \u23CE sends";
|
|
45
|
+
/**
|
|
46
|
+
* The one line of guidance a brand-new conversation carries.
|
|
47
|
+
*
|
|
48
|
+
* Everything on it is true of this runtime, which is the whole reason it is written here rather than
|
|
49
|
+
* copied from a screenshot of another tool: `/` really does open the palette, and `^C` really does take
|
|
50
|
+
* two presses. A hint naming a chord that does something else — or nothing — is worse than no hint, and
|
|
51
|
+
* this is the one screen where a person has no conversation to learn the keys from.
|
|
52
|
+
*/
|
|
53
|
+
export declare const NEW_SESSION_HINT = "/ commands \u00B7 \u23CE sends \u00B7 \u21E7\u23CE new line \u00B7 ^C twice leaves";
|
|
54
|
+
export declare const KEY_BINDINGS: readonly KeyBindingSpec[];
|
|
55
|
+
/**
|
|
56
|
+
* Every Ctrl letter the table documents, read back out of the chord strings rather than listed
|
|
57
|
+
* again — a second list is one more thing that can disagree with the first. The drift test walks
|
|
58
|
+
* these through `keyToIntent` and requires every letter it honours to appear here.
|
|
59
|
+
*/
|
|
60
|
+
export declare const DOCUMENTED_CTRL_LETTERS: readonly string[];
|
|
61
|
+
/**
|
|
62
|
+
* Every option-letter chord the table documents, read back the same way.
|
|
63
|
+
*
|
|
64
|
+
* The ctrl list above has had a two-way drift test since Phase 2 and the option chords never did — so
|
|
65
|
+
* `⌥r` was documented, bound, handled, and reaching nothing, with no test anywhere able to say so. The
|
|
66
|
+
* asymmetry was not a decision: `^` is one character to match and `⌥` is one the regex simply never
|
|
67
|
+
* learned about.
|
|
68
|
+
*/
|
|
69
|
+
export declare const DOCUMENTED_META_LETTERS: readonly string[];
|
|
70
|
+
/**
|
|
71
|
+
* Letters a terminal sends *as* an option chord without anybody pressing them.
|
|
72
|
+
*
|
|
73
|
+
* `⌥←` reaches us as `ESC b` from Apple Terminal and as `CSI 1;3D` from iTerm2, so `keyToIntent` honours
|
|
74
|
+
* `meta` plus the letter `b` — and that is an encoding, not a binding. Documenting `⌥b` would advertise a
|
|
75
|
+
* chord nobody uses to mean a thing they already have an arrow key for. Listed here rather than dropped
|
|
76
|
+
* from the check, so the exemption is a decision with a reason on it instead of a hole in the test.
|
|
77
|
+
*/
|
|
78
|
+
export declare const META_LETTERS_THAT_ARE_ARROWS: readonly string[];
|
|
79
|
+
export type SessionCommand = {
|
|
80
|
+
readonly kind: SessionCommandKind;
|
|
81
|
+
readonly rest?: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A slash command this table does not own — a CLI command, offered in a session.
|
|
85
|
+
*
|
|
86
|
+
* Resolved here rather than in the renderer so both paths agree about what a typed line means, and
|
|
87
|
+
* carried with its arguments intact for whichever host runs it.
|
|
88
|
+
*/
|
|
89
|
+
| {
|
|
90
|
+
readonly kind: "command";
|
|
91
|
+
readonly name: string;
|
|
92
|
+
readonly rest: string;
|
|
93
|
+
}
|
|
94
|
+
/** Looked like a command and was not one. Refused rather than billed as a prompt. */
|
|
95
|
+
| {
|
|
96
|
+
readonly kind: "unknown";
|
|
97
|
+
readonly word: string;
|
|
98
|
+
readonly nearest?: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* `undefined` means "this is a prompt" — the overwhelming majority of lines.
|
|
102
|
+
*
|
|
103
|
+
* `offered` is the set of CLI command names a session exposes, passed in rather than imported: this
|
|
104
|
+
* module is dispatch and `commands.ts` is the table, and importing one into the other would put the
|
|
105
|
+
* whole command surface behind every consumer of `resolveSessionCommand`, including the plain path.
|
|
106
|
+
*/
|
|
107
|
+
export declare function resolveSessionCommand(text: string, offered?: readonly string[]): SessionCommand | undefined;
|
|
108
|
+
/** Generated, so a command the prompt honours cannot be missing from it. */
|
|
109
|
+
export declare function sessionHelpText(): string;
|
|
110
|
+
export declare function unknownCommandText(command: {
|
|
111
|
+
readonly word: string;
|
|
112
|
+
readonly nearest?: string;
|
|
113
|
+
}): string;
|
|
114
|
+
/** The narrow slice of an agent `/tools` reports on. Structural, so core owns no CLI shapes. */
|
|
115
|
+
export interface ToolsView {
|
|
116
|
+
readonly dialect: string;
|
|
117
|
+
readonly catalogueTokens: number;
|
|
118
|
+
readonly tools: readonly {
|
|
119
|
+
readonly slug: string;
|
|
120
|
+
readonly mutating: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Whether this tool's output may carry text a stranger wrote.
|
|
123
|
+
*
|
|
124
|
+
* Shown because it is not cosmetic: an untrusted tool taints the turn, and after it has run
|
|
125
|
+
* a mutating call needs an explicit rule or a live approval. "Why did my second `exec` get
|
|
126
|
+
* blocked?" is answered by this column and by nothing else on this surface.
|
|
127
|
+
*/
|
|
128
|
+
readonly trust: string;
|
|
129
|
+
/**
|
|
130
|
+
* Why a tool declares itself trusted when a provider tool defaults to untrusted.
|
|
131
|
+
*
|
|
132
|
+
* Shown here rather than warned about at boot. The warning fired on every start of every agent
|
|
133
|
+
* using the system provider — four tools whose output the runtime composed — and a warning that
|
|
134
|
+
* is always present for a correct configuration is one people stop reading. The reason belongs
|
|
135
|
+
* where someone is already looking at the catalogue.
|
|
136
|
+
*/
|
|
137
|
+
readonly trustReason?: string;
|
|
138
|
+
readonly summary: string;
|
|
139
|
+
}[];
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The part of an agent this needs, stated structurally.
|
|
143
|
+
*
|
|
144
|
+
* `Agent` satisfies it without being named, which keeps the projection below testable with a plain
|
|
145
|
+
* object rather than a live runtime — and a projection nobody can test is one that quietly stops
|
|
146
|
+
* matching what it projects.
|
|
147
|
+
*/
|
|
148
|
+
export interface AgentToolsSource {
|
|
149
|
+
describe(): {
|
|
150
|
+
readonly dialect: string;
|
|
151
|
+
readonly catalogueTokens: number;
|
|
152
|
+
};
|
|
153
|
+
readonly tools: {
|
|
154
|
+
specs(): readonly {
|
|
155
|
+
readonly slug: string;
|
|
156
|
+
readonly mutating: boolean;
|
|
157
|
+
/** Optional here because it is optional on `ToolSpec`; the registry settles it. */
|
|
158
|
+
readonly trust?: string;
|
|
159
|
+
readonly trustReason?: string;
|
|
160
|
+
readonly summary: string;
|
|
161
|
+
}[];
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/** Here rather than in each renderer, so the two cannot show different things. */
|
|
165
|
+
export declare function toolsView(agent: AgentToolsSource): ToolsView;
|
|
166
|
+
/**
|
|
167
|
+
* What the model can actually call.
|
|
168
|
+
*
|
|
169
|
+
* Worth a command because the catalogue is resolved once at load and is otherwise invisible: when a
|
|
170
|
+
* model will not call a tool you believe is pinned, whether it is *in* the catalogue is the first
|
|
171
|
+
* question, and `catalogueTokens` is the recurring cost of every turn in the session.
|
|
172
|
+
*/
|
|
173
|
+
export declare function toolsReport(view: ToolsView): string;
|
|
174
|
+
/**
|
|
175
|
+
* Everything `/context` needs, gathered by the host.
|
|
176
|
+
*
|
|
177
|
+
* A view rather than the agent itself, for the reason every view in this file is one: the report is a
|
|
178
|
+
* pure function of these numbers, and a test that has to boot a runtime to check an arithmetic line
|
|
179
|
+
* is a test nobody writes.
|
|
180
|
+
*/
|
|
181
|
+
export interface ContextView {
|
|
182
|
+
readonly slots: readonly {
|
|
183
|
+
readonly slot: number;
|
|
184
|
+
readonly label: string;
|
|
185
|
+
readonly tokens: number;
|
|
186
|
+
readonly pinned: boolean;
|
|
187
|
+
}[];
|
|
188
|
+
/** What the history slot is made of, largest first. Empty on a conversation with no history. */
|
|
189
|
+
readonly history: readonly {
|
|
190
|
+
readonly label: string;
|
|
191
|
+
readonly tokens: number;
|
|
192
|
+
readonly messages: number;
|
|
193
|
+
}[];
|
|
194
|
+
readonly total: number;
|
|
195
|
+
readonly window: number;
|
|
196
|
+
/** Already rendered by `describeWindowSource` — the CLI owns no second wording for it. */
|
|
197
|
+
readonly windowSource: string;
|
|
198
|
+
readonly wireTokens: number;
|
|
199
|
+
readonly reserveOutput: number;
|
|
200
|
+
readonly calibration: {
|
|
201
|
+
readonly ratio: number;
|
|
202
|
+
readonly samples: number;
|
|
203
|
+
};
|
|
204
|
+
/** The last compaction stage this session ran, if any. */
|
|
205
|
+
readonly lastCompaction: string | undefined;
|
|
206
|
+
/** Undefined when no turn's endpoint reported a cache figure — not the same as nothing cached. */
|
|
207
|
+
readonly cache: {
|
|
208
|
+
readonly cached: number;
|
|
209
|
+
readonly prompt: number;
|
|
210
|
+
readonly turns: number;
|
|
211
|
+
readonly source: string;
|
|
212
|
+
} | undefined;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* `/context` — what is in the prompt right now, and what the percentage is a percentage *of*.
|
|
216
|
+
*
|
|
217
|
+
* The status line has carried `ctx 61%` since Phase 7A without ever saying what the denominator is,
|
|
218
|
+
* and it is not the window: `assembleContext` is handed `window − wireTokens` and then subtracts
|
|
219
|
+
* `reserveOutput` from that. Three terms, two of them invisible. So the budget line is written out as
|
|
220
|
+
* the subtraction rather than as a result — a reader who disagrees with the number can see which term
|
|
221
|
+
* they disagree with.
|
|
222
|
+
*
|
|
223
|
+
* `estimated` versus `corrected` is the other thing worth a line. The estimator runs **16–20% low**
|
|
224
|
+
* on the prompts that matter (`evals/budget`, measured over a session filling with tool results),
|
|
225
|
+
* which is the overflow direction exactly when the window is tight; a percentage from a session with
|
|
226
|
+
* no samples yet is that raw estimate, and the reader deserves to know which one they are reading.
|
|
227
|
+
*/
|
|
228
|
+
export declare function contextReport(view: ContextView): string;
|
|
229
|
+
//# sourceMappingURL=session-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-commands.d.ts","sourceRoot":"","sources":["../../src/lib/session-commands.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Naming a conversation.
|
|
3
|
+
*
|
|
4
|
+
* Every `run` used to land in `local:default`, which made the store one long transcript per agent:
|
|
5
|
+
* yesterday's debugging session and this morning's question shared a history, so the model was
|
|
6
|
+
* conditioned on both and neither could be resumed without the other. A key per run fixes that, and it
|
|
7
|
+
* moves the cost — you now have to *say* which conversation you mean, which is what `--continue` and the
|
|
8
|
+
* exit pointer are for.
|
|
9
|
+
*
|
|
10
|
+
* ## Why six random characters rather than a timestamp
|
|
11
|
+
*
|
|
12
|
+
* A timestamp sorts and reads well and is twenty characters somebody has to type. `sessions` already
|
|
13
|
+
* sorts by `lastActivityAt`, so the ordering a timestamp would carry is information the *listing* has and
|
|
14
|
+
* the key does not need — and the two things a person actually does with a key are read it off a pointer
|
|
15
|
+
* line and type it back. Six symbols is one glance and one word.
|
|
16
|
+
*
|
|
17
|
+
* ## Why the prefix stays
|
|
18
|
+
*
|
|
19
|
+
* `local:` says which surface opened the conversation, and it is already load-bearing: Telegram writes
|
|
20
|
+
* `tg:<chat>`, so the prefix is what stops a chat id colliding with a terminal session. A bare key would
|
|
21
|
+
* work today and break the first time two surfaces agreed on a name.
|
|
22
|
+
*
|
|
23
|
+
* Pure: the randomness arrives as bytes, so a test gets the key it asked for.
|
|
24
|
+
*/
|
|
25
|
+
/** Symbols after the prefix. Six gives 32^6 ≈ 1.07 billion, so a 50% collision needs ~39,000 sessions. */
|
|
26
|
+
export declare const SESSION_KEY_LENGTH = 6;
|
|
27
|
+
/** The surface that opened the conversation. A terminal session; Telegram writes its own prefix. */
|
|
28
|
+
export declare const LOCAL_SESSION_PREFIX = "local";
|
|
29
|
+
/**
|
|
30
|
+
* A key from six bytes.
|
|
31
|
+
*
|
|
32
|
+
* Only the low five bits of each byte are read, which is why the alphabet is exactly 32 long.
|
|
33
|
+
*/
|
|
34
|
+
export declare function sessionKeyFrom(bytes: Uint8Array): string;
|
|
35
|
+
/**
|
|
36
|
+
* A freshly minted key, from an injected source of randomness.
|
|
37
|
+
*
|
|
38
|
+
* The one derivation. `resolveSession` computed `sessionKeyFrom(random(SESSION_KEY_LENGTH))` inline and
|
|
39
|
+
* `/new` needed the same line — two copies of "what a generated session is called" is how two surfaces
|
|
40
|
+
* come to disagree about it, the same reason `logPaths` moved into `lib/sandbox.ts` rather than being
|
|
41
|
+
* copied into `remove`.
|
|
42
|
+
*
|
|
43
|
+
* `random` is a parameter rather than a `crypto` call so a test gets the key it asked for, and so the
|
|
44
|
+
* component layer never has to reach for crypto to open a conversation.
|
|
45
|
+
*/
|
|
46
|
+
export declare function newSessionKey(random: (count: number) => Uint8Array): string;
|
|
47
|
+
/**
|
|
48
|
+
* True for a key this module could have produced.
|
|
49
|
+
*
|
|
50
|
+
* Used to *explain* a key rather than to validate one — a hand-written `--session mine` is perfectly
|
|
51
|
+
* valid and must stay so. It exists because a generated key is the one a person did not choose, and a
|
|
52
|
+
* listing can say so.
|
|
53
|
+
*/
|
|
54
|
+
export declare function isGeneratedSessionKey(key: string): boolean;
|
|
55
|
+
//# sourceMappingURL=session-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-key.d.ts","sourceRoot":"","sources":["../../src/lib/session-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAaH,0GAA0G;AAC1G,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAEnC,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,UAAU,CAAA;AAE3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAOxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,GAAG,MAAM,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A stored conversation as a row somebody can pick.
|
|
3
|
+
*
|
|
4
|
+
* Pure, and separate from `sessions.ts` for the reason every layout module here is: the *content* of a
|
|
5
|
+
* row — what identifies a conversation, what makes one worth returning to — is the only interesting part,
|
|
6
|
+
* and it is only observable as strings. The picker renders these; `sessions --plain` keeps its own table,
|
|
7
|
+
* because a listing read by a script and a list navigated with arrows want different shapes.
|
|
8
|
+
*
|
|
9
|
+
* What identifies a conversation is the open question here and the answer is deliberate: the key, because
|
|
10
|
+
* that is what you type back, plus **when it was last touched** and **how much is in it**. Not the first
|
|
11
|
+
* message, tempting as that is — it would need a store read per row, and a session whose first message was
|
|
12
|
+
* "hey" is not distinguished by it.
|
|
13
|
+
*/
|
|
14
|
+
/** The narrow slice of a `SessionSummary` this needs. Structural, so no core type is imported. */
|
|
15
|
+
export interface SessionRowSource {
|
|
16
|
+
readonly sessionKey: string;
|
|
17
|
+
readonly messages: number;
|
|
18
|
+
readonly turns: number;
|
|
19
|
+
readonly lastActivityAt: string;
|
|
20
|
+
readonly phase?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface SessionRow {
|
|
23
|
+
readonly key: string;
|
|
24
|
+
readonly label: string;
|
|
25
|
+
readonly hint: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function sessionRows(sessions: readonly SessionRowSource[], options: {
|
|
28
|
+
readonly now: number;
|
|
29
|
+
readonly columns: number;
|
|
30
|
+
}): readonly SessionRow[];
|
|
31
|
+
//# sourceMappingURL=sessions-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions-view.d.ts","sourceRoot":"","sources":["../../src/lib/sessions-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,kGAAkG;AAClG,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACtC;AAED,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACxB;AAMD,wBAAgB,WAAW,CACvB,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,OAAO,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAC5D,SAAS,UAAU,EAAE,CAwBvB"}
|