@wrongstack/tui 0.293.0 → 0.295.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 +1 -0
- package/dist/app-initial-state.d.ts +1 -1
- package/dist/app-initial-state.d.ts.map +1 -1
- package/dist/app-key-handler.d.ts +79 -0
- package/dist/app-key-handler.d.ts.map +1 -0
- package/dist/app-props.d.ts +25 -25
- package/dist/app-props.d.ts.map +1 -1
- package/dist/app-reducer.d.ts.map +1 -1
- package/dist/app-state.d.ts +31 -62
- package/dist/app-state.d.ts.map +1 -1
- package/dist/app-status-region.d.ts +5 -0
- package/dist/app-status-region.d.ts.map +1 -0
- package/dist/app-view-contract.d.ts +84 -0
- package/dist/app-view-contract.d.ts.map +1 -0
- package/dist/app-view-state.d.ts +19 -0
- package/dist/app-view-state.d.ts.map +1 -0
- package/dist/app-view.d.ts +4 -0
- package/dist/app-view.d.ts.map +1 -0
- package/dist/app.d.ts +3 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/auth-panel-model.d.ts +150 -0
- package/dist/auth-panel-model.d.ts.map +1 -0
- package/dist/brain-contracts.d.ts +8 -0
- package/dist/brain-contracts.d.ts.map +1 -0
- package/dist/brain-panel-model.d.ts +222 -0
- package/dist/brain-panel-model.d.ts.map +1 -0
- package/dist/checkpoint-retention.d.ts +35 -0
- package/dist/checkpoint-retention.d.ts.map +1 -0
- package/dist/components/agents-monitor.d.ts +3 -4
- package/dist/components/agents-monitor.d.ts.map +1 -1
- package/dist/components/animation-style.d.ts +22 -23
- package/dist/components/animation-style.d.ts.map +1 -1
- package/dist/components/audit-panel.d.ts +1 -1
- package/dist/components/audit-panel.d.ts.map +1 -1
- package/dist/components/auth-panel-model.d.ts +1 -149
- package/dist/components/auth-panel-model.d.ts.map +1 -1
- package/dist/components/brain-panel-model.d.ts +1 -106
- package/dist/components/brain-panel-model.d.ts.map +1 -1
- package/dist/components/brain-panel.d.ts +2 -7
- package/dist/components/brain-panel.d.ts.map +1 -1
- package/dist/components/composer-status-chip.d.ts +16 -3
- package/dist/components/composer-status-chip.d.ts.map +1 -1
- package/dist/components/context-panel.d.ts +1 -1
- package/dist/components/context-panel.d.ts.map +1 -1
- package/dist/components/coordinator-panel.d.ts +1 -1
- package/dist/components/coordinator-panel.d.ts.map +1 -1
- package/dist/components/design-picker.d.ts +1 -1
- package/dist/components/design-picker.d.ts.map +1 -1
- package/dist/components/exit-confirm-panel.d.ts +2 -1
- package/dist/components/exit-confirm-panel.d.ts.map +1 -1
- package/dist/components/fleet-monitor.d.ts +1 -1
- package/dist/components/fleet-monitor.d.ts.map +1 -1
- package/dist/components/fleet-panel.d.ts +2 -2
- package/dist/components/fleet-panel.d.ts.map +1 -1
- package/dist/components/history/banner.d.ts +4 -1
- package/dist/components/history/banner.d.ts.map +1 -1
- package/dist/components/history/code-block.d.ts +27 -19
- package/dist/components/history/code-block.d.ts.map +1 -1
- package/dist/components/history/entry.d.ts +4 -2
- package/dist/components/history/entry.d.ts.map +1 -1
- package/dist/components/history/index.d.ts +4 -4
- package/dist/components/history/index.d.ts.map +1 -1
- package/dist/components/history/replay.d.ts +1 -1
- package/dist/components/history/replay.d.ts.map +1 -1
- package/dist/components/history/tool-card.d.ts +2 -2
- package/dist/components/history/tool-card.d.ts.map +1 -1
- package/dist/components/history/tool-group.d.ts +73 -0
- package/dist/components/history/tool-group.d.ts.map +1 -0
- package/dist/components/history/types.d.ts +3 -156
- package/dist/components/history/types.d.ts.map +1 -1
- package/dist/components/history/utils.d.ts +2 -0
- package/dist/components/history/utils.d.ts.map +1 -1
- package/dist/components/history.d.ts +1 -1
- package/dist/components/history.d.ts.map +1 -1
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/kanban-panel.d.ts +1 -1
- package/dist/components/kanban-panel.d.ts.map +1 -1
- package/dist/components/mailbox-panel.d.ts +1 -0
- package/dist/components/mailbox-panel.d.ts.map +1 -1
- package/dist/components/mode-picker.d.ts +1 -1
- package/dist/components/mode-picker.d.ts.map +1 -1
- package/dist/components/process-list.d.ts.map +1 -1
- package/dist/components/resume-picker.d.ts +1 -1
- package/dist/components/resume-picker.d.ts.map +1 -1
- package/dist/components/scrollable-history.d.ts +61 -33
- package/dist/components/scrollable-history.d.ts.map +1 -1
- package/dist/components/settings-picker.d.ts +9 -2
- package/dist/components/settings-picker.d.ts.map +1 -1
- package/dist/components/status-bar-chips.d.ts +4 -1
- package/dist/components/status-bar-chips.d.ts.map +1 -1
- package/dist/components/status-bar.d.ts +7 -4
- package/dist/components/status-bar.d.ts.map +1 -1
- package/dist/components/statusline-picker.d.ts +1 -1
- package/dist/components/statusline-picker.d.ts.map +1 -1
- package/dist/components/todos-monitor.d.ts +1 -1
- package/dist/components/todos-monitor.d.ts.map +1 -1
- package/dist/context-fill.d.ts +61 -0
- package/dist/context-fill.d.ts.map +1 -0
- package/dist/context-slash.d.ts +1 -1
- package/dist/context-slash.d.ts.map +1 -1
- package/dist/cron-slash.d.ts +2 -1
- package/dist/cron-slash.d.ts.map +1 -1
- package/dist/exit-slash.d.ts +4 -1
- package/dist/exit-slash.d.ts.map +1 -1
- package/dist/heap-watchdog.d.ts +6 -2
- package/dist/heap-watchdog.d.ts.map +1 -1
- package/dist/height-cache.d.ts +58 -10
- package/dist/height-cache.d.ts.map +1 -1
- package/dist/history-entry.d.ts +175 -0
- package/dist/history-entry.d.ts.map +1 -0
- package/dist/history-retention.d.ts +15 -3
- package/dist/history-retention.d.ts.map +1 -1
- package/dist/hit-test.d.ts +4 -0
- package/dist/hit-test.d.ts.map +1 -1
- package/dist/hooks/subagent-history-format.d.ts +45 -0
- package/dist/hooks/subagent-history-format.d.ts.map +1 -0
- package/dist/hooks/use-app-picker-keys.d.ts +36 -0
- package/dist/hooks/use-app-picker-keys.d.ts.map +1 -0
- package/dist/hooks/use-auth-panel.d.ts +1 -1
- package/dist/hooks/use-auth-panel.d.ts.map +1 -1
- package/dist/hooks/use-autonomous-coordinator.d.ts +1 -1
- package/dist/hooks/use-autonomous-coordinator.d.ts.map +1 -1
- package/dist/hooks/use-autonomy-drivers.d.ts +25 -0
- package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -0
- package/dist/hooks/use-brain-events.d.ts +1 -1
- package/dist/hooks/use-brain-events.d.ts.map +1 -1
- package/dist/hooks/use-brain-panel.d.ts +2 -2
- package/dist/hooks/use-brain-panel.d.ts.map +1 -1
- package/dist/hooks/use-chip-staleness-guard.d.ts +83 -0
- package/dist/hooks/use-chip-staleness-guard.d.ts.map +1 -0
- package/dist/hooks/use-client-telemetry.d.ts +17 -0
- package/dist/hooks/use-client-telemetry.d.ts.map +1 -0
- package/dist/hooks/use-core-tui-commands.d.ts +39 -0
- package/dist/hooks/use-core-tui-commands.d.ts.map +1 -0
- package/dist/hooks/use-director-fleet-bridge.d.ts +5 -1
- package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
- package/dist/hooks/use-exit-command.d.ts +2 -1
- package/dist/hooks/use-exit-command.d.ts.map +1 -1
- package/dist/hooks/use-file-search.d.ts +3 -2
- package/dist/hooks/use-file-search.d.ts.map +1 -1
- package/dist/hooks/use-fleet-generation-gate.d.ts +2 -0
- package/dist/hooks/use-fleet-generation-gate.d.ts.map +1 -1
- package/dist/hooks/use-git-session-status.d.ts +11 -0
- package/dist/hooks/use-git-session-status.d.ts.map +1 -0
- package/dist/hooks/use-initial-prompt.d.ts +15 -0
- package/dist/hooks/use-initial-prompt.d.ts.map +1 -0
- package/dist/hooks/use-input-history-persistence.d.ts.map +1 -1
- package/dist/hooks/use-interrupt-ladder.d.ts +29 -0
- package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -0
- package/dist/hooks/use-live-todos.d.ts +1 -1
- package/dist/hooks/use-live-todos.d.ts.map +1 -1
- package/dist/hooks/use-mailbox-view-model.d.ts +13 -0
- package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -0
- package/dist/hooks/use-mode-picker.d.ts +1 -1
- package/dist/hooks/use-mode-picker.d.ts.map +1 -1
- package/dist/hooks/use-next-steps-auto-submit.d.ts +50 -0
- package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -0
- package/dist/hooks/use-panel-controllers.d.ts +41 -0
- package/dist/hooks/use-panel-controllers.d.ts.map +1 -0
- package/dist/hooks/use-paste-handling.d.ts +5 -3
- package/dist/hooks/use-paste-handling.d.ts.map +1 -1
- package/dist/hooks/use-picker-keys.d.ts +7 -3
- package/dist/hooks/use-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-prompt-picker.d.ts.map +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts +24 -0
- package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -0
- package/dist/hooks/use-queue-manager.d.ts +2 -1
- package/dist/hooks/use-queue-manager.d.ts.map +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
- package/dist/hooks/use-settings-auto-save.d.ts +6 -0
- package/dist/hooks/use-settings-auto-save.d.ts.map +1 -0
- package/dist/hooks/use-slash-picker.d.ts +13 -0
- package/dist/hooks/use-slash-picker.d.ts.map +1 -0
- package/dist/hooks/use-statusbar-view-model.d.ts +54 -0
- package/dist/hooks/use-statusbar-view-model.d.ts.map +1 -0
- package/dist/hooks/use-subagent-events.d.ts +2 -1
- package/dist/hooks/use-subagent-events.d.ts.map +1 -1
- package/dist/hooks/use-terminal-render-lifecycle.d.ts +4 -0
- package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -0
- package/dist/hooks/use-token-counter-refresh.d.ts +2 -1
- package/dist/hooks/use-token-counter-refresh.d.ts.map +1 -1
- package/dist/hooks/use-tui-activity.d.ts +2 -1
- package/dist/hooks/use-tui-activity.d.ts.map +1 -1
- package/dist/hooks/use-tui-controllers.d.ts +1 -1
- package/dist/hooks/use-tui-controllers.d.ts.map +1 -1
- package/dist/hooks/use-tui-environment-state.d.ts +42 -0
- package/dist/hooks/use-tui-environment-state.d.ts.map +1 -0
- package/dist/hooks/use-tui-event-bridge.d.ts +1 -1
- package/dist/hooks/use-tui-event-bridge.d.ts.map +1 -1
- package/dist/hooks/use-tui-slash-commands.d.ts +28 -0
- package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -0
- package/dist/hooks/use-working-dir-chip.d.ts +1 -1
- package/dist/hooks/use-working-dir-chip.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33733 -29799
- package/dist/index.js.map +4 -4
- package/dist/ink.d.ts +1 -1
- package/dist/ink.d.ts.map +1 -1
- package/dist/input-key-router.d.ts +35 -0
- package/dist/input-key-router.d.ts.map +1 -0
- package/dist/input-validation.d.ts +1 -1
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/kanban-slash.d.ts +1 -1
- package/dist/kanban-slash.d.ts.map +1 -1
- package/dist/kill-slash.d.ts +1 -1
- package/dist/kill-slash.d.ts.map +1 -1
- package/dist/layout-engine.d.ts +112 -0
- package/dist/layout-engine.d.ts.map +1 -0
- package/dist/layout-store.d.ts +89 -0
- package/dist/layout-store.d.ts.map +1 -0
- package/dist/markdown.d.ts.map +1 -1
- package/dist/memory-context-monitor.d.ts +6 -1
- package/dist/memory-context-monitor.d.ts.map +1 -1
- package/dist/memory-slash.d.ts +2 -2
- package/dist/memory-slash.d.ts.map +1 -1
- package/dist/mouse.d.ts +13 -4
- package/dist/mouse.d.ts.map +1 -1
- package/dist/overlay-key-router.d.ts +43 -0
- package/dist/overlay-key-router.d.ts.map +1 -0
- package/dist/paste-accumulator.d.ts +10 -4
- package/dist/paste-accumulator.d.ts.map +1 -1
- package/dist/ps-slash.d.ts +1 -1
- package/dist/ps-slash.d.ts.map +1 -1
- package/dist/queue-slash.d.ts +2 -2
- package/dist/queue-slash.d.ts.map +1 -1
- package/dist/reducers/activity.d.ts +10 -0
- package/dist/reducers/activity.d.ts.map +1 -0
- package/dist/reducers/composer.d.ts +10 -0
- package/dist/reducers/composer.d.ts.map +1 -0
- package/dist/reducers/conversation.d.ts +10 -0
- package/dist/reducers/conversation.d.ts.map +1 -0
- package/dist/reducers/dialogs.d.ts +10 -0
- package/dist/reducers/dialogs.d.ts.map +1 -0
- package/dist/reducers/fleet.d.ts.map +1 -1
- package/dist/reducers/helpers.d.ts +8 -1
- package/dist/reducers/helpers.d.ts.map +1 -1
- package/dist/reducers/panel-pickers.d.ts +10 -0
- package/dist/reducers/panel-pickers.d.ts.map +1 -0
- package/dist/reducers/settings-panel.d.ts +10 -0
- package/dist/reducers/settings-panel.d.ts.map +1 -0
- package/dist/reducers/settings-values.d.ts +10 -0
- package/dist/reducers/settings-values.d.ts.map +1 -0
- package/dist/reducers/workspace-panels.d.ts +10 -0
- package/dist/reducers/workspace-panels.d.ts.map +1 -0
- package/dist/rehydrate-history.d.ts +1 -1
- package/dist/rehydrate-history.d.ts.map +1 -1
- package/dist/run-blocks-controller.d.ts +30 -0
- package/dist/run-blocks-controller.d.ts.map +1 -0
- package/dist/run-tui.d.ts +22 -18
- package/dist/run-tui.d.ts.map +1 -1
- package/dist/scroll-anchor.d.ts +103 -0
- package/dist/scroll-anchor.d.ts.map +1 -0
- package/dist/settings-contracts.d.ts +58 -0
- package/dist/settings-contracts.d.ts.map +1 -0
- package/dist/shared-types.d.ts +17 -0
- package/dist/shared-types.d.ts.map +1 -0
- package/dist/slash-command-search.d.ts +1 -1
- package/dist/slash-command-search.d.ts.map +1 -1
- package/dist/submit-controller.d.ts +73 -0
- package/dist/submit-controller.d.ts.map +1 -0
- package/dist/submit-prompt-refinement.d.ts +30 -0
- package/dist/submit-prompt-refinement.d.ts.map +1 -0
- package/dist/terminal-title.d.ts +1 -1
- package/dist/terminal-title.d.ts.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/token-previews.d.ts +44 -0
- package/dist/token-previews.d.ts.map +1 -0
- package/dist/tui-host-capabilities.d.ts +66 -0
- package/dist/tui-host-capabilities.d.ts.map +1 -0
- package/dist/ui-contracts.d.ts +136 -0
- package/dist/ui-contracts.d.ts.map +1 -0
- package/dist/ui-glyphs.d.ts +1 -0
- package/dist/ui-glyphs.d.ts.map +1 -1
- package/package.json +13 -6
package/dist/ink.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type BoxOwnProps = Omit<ComponentProps<typeof InkBox>, 'ref' | 'borderColor' | '
|
|
|
8
8
|
borderColor?: string | undefined;
|
|
9
9
|
backgroundColor?: string | undefined;
|
|
10
10
|
};
|
|
11
|
-
export { Static, measureElement, useApp, useInput, useStdin, useStdout } from 'ink';
|
|
11
|
+
export { Static, measureElement, useAnimation, useApp, useInput, useStdin, useStdout, } from 'ink';
|
|
12
12
|
export type { BoxProps, DOMElement, TextProps, Key } from 'ink';
|
|
13
13
|
/** Ink `Text` with `color`/`backgroundColor` remapped to the pastel palette. */
|
|
14
14
|
export declare function Text({ color, backgroundColor, ...rest }: TextOwnProps): ReactElement;
|
package/dist/ink.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ink.d.ts","sourceRoot":"","sources":["../src/ink.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,KAAK,UAAU,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACtE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAE9B,KAAK,YAAY,EACjB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAWf,KAAK,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,OAAO,GAAG,iBAAiB,CAAC,GAAG;IACtF,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AACF,KAAK,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,GAAG,aAAa,GAAG,iBAAiB,CAAC,G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AW,GAAG,aAAa,CAAC,UAAU,CAAC,CAiBjF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Action, State } from './app-reducer.js';
|
|
2
|
+
import { type KeyEvent } from './components/input.js';
|
|
3
|
+
import type { MutableCell } from './shared-types.js';
|
|
4
|
+
export interface InputKeyRouterHost {
|
|
5
|
+
readonly state: Pick<State, 'status' | 'inputHistory' | 'historyIndex'>;
|
|
6
|
+
readonly draft: {
|
|
7
|
+
readonly buffer: string;
|
|
8
|
+
readonly cursor: number;
|
|
9
|
+
};
|
|
10
|
+
readonly overlayOpen: boolean;
|
|
11
|
+
readonly prompt: string;
|
|
12
|
+
readonly terminalColumns: number;
|
|
13
|
+
readonly terminalRows: number;
|
|
14
|
+
readonly nextSteps: {
|
|
15
|
+
readonly timer: MutableCell<ReturnType<typeof setInterval> | undefined>;
|
|
16
|
+
readonly suggestion: MutableCell<string | null>;
|
|
17
|
+
readonly label: string | null;
|
|
18
|
+
setCountdown(value: number | null): void;
|
|
19
|
+
setLabel(value: string | null): void;
|
|
20
|
+
cancel(): void;
|
|
21
|
+
};
|
|
22
|
+
dispatch(action: Action): void;
|
|
23
|
+
setDraft(buffer: string, cursor: number): void;
|
|
24
|
+
pasteClipboardText(): Promise<void>;
|
|
25
|
+
pasteClipboardImage(): Promise<void>;
|
|
26
|
+
commitPaste(input: string): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Route keys owned by the editable composer after modal/picker/mouse routing.
|
|
30
|
+
* Returns true when the event was consumed. Keeping this controller independent
|
|
31
|
+
* from the App shell makes cursor, history, clipboard, and paste behavior
|
|
32
|
+
* testable without mounting every overlay controller.
|
|
33
|
+
*/
|
|
34
|
+
export declare function routeInputKey(host: InputKeyRouterHost, input: string, key: KeyEvent): Promise<boolean>;
|
|
35
|
+
//# sourceMappingURL=input-key-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-key-router.d.ts","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C/C,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,QAAQ,GACZ,OAAO,CAAC,OAAO,CAAC,CA0MlB"}
|
|
@@ -86,7 +86,7 @@ export declare const MAX_HOST_STRING_FIELD = 500;
|
|
|
86
86
|
/** Maximum entries in a picker matches list. */
|
|
87
87
|
export declare const MAX_PICKER_MATCHES = 500;
|
|
88
88
|
/** Known reducer action types — exact, compile-time checked allow-list. */
|
|
89
|
-
export declare const ALLOWED_ACTION_TYPES: readonly ["addEntry", "authBusy", "authCatalog", "authClose", "authConfirmEnd", "authConfirmStart", "authFilter", "authFlowDone", "authFlowLog", "authFlowStart", "authHint", "authMove", "authOpen", "authPromptChange", "authPromptEnd", "authPromptStart", "authProviders", "authView", "autonomyPickerClose", "autonomyPickerHint", "autonomyPickerMove", "autonomyPickerOpen", "brainBusy", "brainClose", "brainHint", "brainMove", "brainOpen", "brainPromptClear", "brainPromptSet", "brainRiskChange", "brainRowMove", "brainSetLog", "brainSettingsLoaded", "brainStatus", "brainView", "checkpointReceived", "clearConfirmClose", "clearConfirmOpen", "clearConfirmSetValue", "clearHistory", "clearInput", "clearInputHistory", "closeAllPanels", "collabBugFound", "collabEvalComplete", "collabPlanEmitted", "collabSessionDone", "collabSubagentSpawned", "compactHistory", "confirmClearAll", "confirmClose", "confirmOpen", "continueConfirmClose", "continueConfirmOpen", "coordinatorEvent", "countdownEnded", "countdownTick", "debugStreamStats", "debugStreamStatsClear", "dequeueFirst", "designPickerClose", "designPickerMove", "designPickerOpen", "designPickerStack", "enhanceBusy", "enhanceClose", "enhanceOpen", "enhanceSet", "enqueue", "escConfirmClose", "escConfirmOpen", "eternalStage", "exitConfirmClose", "exitConfirmOpen", "fKeyPickerClose", "fKeyPickerMove", "fKeyPickerOpen", "fleetBatch", "fleetBudgetExtended", "fleetBudgetWarning", "fleetConcurrency", "fleetCost", "fleetCtxPct", "fleetDelta", "fleetDone", "fleetMessage", "fleetRemove", "fleetSeed", "fleetSpawn", "fleetStart", "fleetTool", "fleetToolEnd", "fleetToolStart", "fleetUsage", "goalRunElapsed", "goalRunInit", "goalRunMonitorToggle", "goalRunPhaseUpdate", "goalRunReset", "goalRunRunningPhases", "goalRunTaskActive", "goalSummary", "helpClose", "helpFilter", "helpHint", "helpMove", "helpOpen", "hint", "historyDown", "historyPush", "historyUp", "interrupt", "leaderCtxPct", "leaderIterEnd", "leaderIterStart", "leaderToolEnd", "leaderToolStart", "mcpPickerBusy", "mcpPickerClose", "mcpPickerHint", "mcpPickerMove", "mcpPickerOpen", "mcpPickerSetItems", "modePickerClose", "modePickerHint", "modePickerMove", "modePickerOpen", "modelPickerBack", "modelPickerClose", "modelPickerHint", "modelPickerMove", "modelPickerOpen", "modelPickerPickProvider", "modelPickerSearch", "pickerClose", "pickerMove", "pickerOpen", "pickerSetMatches", "pluginPickerBusy", "pluginPickerClose", "pluginPickerHint", "pluginPickerMove", "pluginPickerOpen", "pluginPickerSetItems", "projectPickerClose", "projectPickerFilter", "projectPickerHint", "projectPickerMove", "projectPickerOpen", "promptPickerCategory", "promptPickerClose", "promptPickerMove", "promptPickerOpen", "queueClear", "queueDelete", "queueToggleRefine", "refineFailureClose", "refineFailureOpen", "replaceHistory", "resetContextChip", "resetInterrupts", "resumePickerBusy", "resumePickerClose", "resumePickerError", "resumePickerHint", "resumePickerMove", "resumePickerOpen", "rewindOverlayClose", "rewindOverlayMove", "rewindOverlayOpen", "
|
|
89
|
+
export declare const ALLOWED_ACTION_TYPES: readonly ["addEntry", "authBusy", "authCatalog", "authClose", "authConfirmEnd", "authConfirmStart", "authFilter", "authFlowDone", "authFlowLog", "authFlowStart", "authHint", "authMove", "authOpen", "authPromptChange", "authPromptEnd", "authPromptStart", "authProviders", "authView", "autonomyPickerClose", "autonomyPickerHint", "autonomyPickerMove", "autonomyPickerOpen", "brainBusy", "brainClose", "brainHint", "brainMove", "brainOpen", "brainPromptClear", "brainPromptSet", "brainRiskChange", "brainRowMove", "brainSetLog", "brainSettingsLoaded", "brainStatus", "brainView", "checkpointReceived", "clearConfirmClose", "clearConfirmOpen", "clearConfirmSetValue", "clearHistory", "clearInput", "clearInputHistory", "closeAllPanels", "collabBugFound", "collabEvalComplete", "collabPlanEmitted", "collabSessionDone", "collabSubagentSpawned", "compactHistory", "confirmClearAll", "confirmClose", "confirmOpen", "continueConfirmClose", "continueConfirmOpen", "coordinatorEvent", "countdownEnded", "countdownTick", "debugStreamStats", "debugStreamStatsClear", "dequeueFirst", "designPickerClose", "designPickerMove", "designPickerOpen", "designPickerStack", "enhanceBusy", "enhanceClose", "enhanceOpen", "enhanceSet", "enqueue", "escConfirmClose", "escConfirmOpen", "eternalStage", "exitConfirmClose", "exitConfirmOpen", "fKeyPickerClose", "fKeyPickerMove", "fKeyPickerOpen", "fleetBatch", "fleetBudgetExtended", "fleetBudgetWarning", "fleetConcurrency", "fleetCost", "fleetCtxPct", "fleetDelta", "fleetDone", "fleetMessage", "fleetRemove", "fleetSeed", "fleetSpawn", "fleetStart", "fleetTool", "fleetToolEnd", "fleetToolStart", "fleetUsage", "goalRunElapsed", "goalRunInit", "goalRunMonitorToggle", "goalRunPhaseUpdate", "goalRunReset", "goalRunRunningPhases", "goalRunTaskActive", "goalSummary", "helpClose", "helpFilter", "helpHint", "helpMove", "helpOpen", "hint", "historyDown", "historyPush", "historyUp", "interrupt", "leaderCtxPct", "leaderIterEnd", "leaderIterStart", "leaderToolEnd", "leaderToolStart", "mcpPickerBusy", "mcpPickerClose", "mcpPickerHint", "mcpPickerMove", "mcpPickerOpen", "mcpPickerSetItems", "modePickerClose", "modePickerHint", "modePickerMove", "modePickerOpen", "modelPickerBack", "modelPickerClose", "modelPickerHint", "modelPickerMove", "modelPickerOpen", "modelPickerPickProvider", "modelPickerSearch", "pickerClose", "pickerMove", "pickerOpen", "pickerSetMatches", "pluginPickerBusy", "pluginPickerClose", "pluginPickerHint", "pluginPickerMove", "pluginPickerOpen", "pluginPickerSetItems", "projectPickerClose", "projectPickerFilter", "projectPickerHint", "projectPickerMove", "projectPickerOpen", "promptPickerCategory", "promptPickerClose", "promptPickerMove", "promptPickerOpen", "queueClear", "queueDelete", "queueToggleRefine", "refineFailureClose", "refineFailureOpen", "replaceHistory", "resetContextChip", "resetInterrupts", "resumePickerBusy", "resumePickerClose", "resumePickerError", "resumePickerHint", "resumePickerMove", "resumePickerOpen", "rewindOverlayClose", "rewindOverlayMove", "rewindOverlayOpen", "sddBoardSnapshot", "sddBoardFocusNext", "sddBoardFocusPrev", "sendModePickerClose", "sendModePickerMove", "sendModePickerOpen", "sessionResumeConfirmClear", "sessionResumeConfirmSet", "sessionRewound", "sessionsPanelBusy", "sessionsPanelMove", "sessionsPanelSet", "setBuffer", "setFleetChat", "setHistoryScrolled", "setInputHistory", "setViewportRows", "settingsClose", "settingsFieldMove", "settingsFieldSet", "settingsFilterSet", "settingsHint", "settingsOpen", "settingsThinkingEditCancel", "settingsThinkingEditChange", "settingsThinkingEditCommit", "settingsThinkingEditStart", "settingsValueChange", "settingsValueSet", "shadowClose", "shadowHint", "shadowOpen", "shadowUpdate", "shellCommandWarningClose", "shellCommandWarningOpen", "slashConfirmClose", "slashConfirmOpen", "slashPickerClose", "slashPickerMove", "slashPickerOpen", "status", "statuslineChipExpire", "statuslineChipShow", "statuslineClose", "statuslineFieldMove", "statuslineFieldSet", "statuslineHint", "statuslineOpen", "statuslineToggle", "statuslineVisibleChipsSync", "steerConsume", "steerStart", "streamDelta", "streamReset", "toggleAgentsMonitor", "toggleAuditPanel", "toggleContextPanel", "toggleCoordinatorMonitor", "toggleCronMonitor", "toggleGoalKanbanPanel", "toggleGoalPanel", "toggleHelp", "toggleKanbanPanel", "toggleMonitor", "togglePlanPanel", "toggleProcessList", "toggleQueuePanel", "toggleSddBoardMonitor", "toggleSessionsPanel", "toggleTodosMonitor", "toggleWorktreeMonitor", "toolEnded", "toolStarted", "toolStreamAppend", "toolStreamClear", "toolsPickerBusy", "toolsPickerClose", "toolsPickerFilter", "toolsPickerHint", "toolsPickerMove", "toolsPickerOpen", "toolsPickerSetItems", "toolsPickerToggle", "worktreeRemove", "worktreeUpsert"];
|
|
90
90
|
export type AllowedActionType = (typeof ALLOWED_ACTION_TYPES)[number];
|
|
91
91
|
/** History entry kinds that carry text (must be non-empty to be stored). */
|
|
92
92
|
export declare const TEXT_BEARING_ENTRY_KINDS: Set<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-validation.d.ts","sourceRoot":"","sources":["../src/input-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;
|
|
1
|
+
{"version":3,"file":"input-validation.d.ts","sourceRoot":"","sources":["../src/input-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAQH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC;AAIpE,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,SAAU,CAAC;AAE9C,+EAA+E;AAC/E,eAAO,MAAM,eAAe,QAAS,CAAC;AAEtC,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB,SAAU,CAAC;AAE5C,2EAA2E;AAC3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C,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAClD,OAAO,CAgBT;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE9D"}
|
package/dist/kanban-slash.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* remains the rich interactive view (navigate, move, assign); this command
|
|
19
19
|
* is the text-first equivalent for when the panel is closed.
|
|
20
20
|
*/
|
|
21
|
-
import type { SlashCommand } from '@wrongstack/core';
|
|
21
|
+
import type { SlashCommand } from '@wrongstack/core/types';
|
|
22
22
|
import type { KanbanBoundaryAccess, KanbanBoundaryPolicy, KanbanBoundarySelectorKind, KanbanBoardSummary, KanbanQueueHealth } from '@wrongstack/kanban';
|
|
23
23
|
import { type KanbanAuditSummary } from './kanban-audit.js';
|
|
24
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kanban-slash.d.ts","sourceRoot":"","sources":["../src/kanban-slash.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"kanban-slash.d.ts","sourceRoot":"","sources":["../src/kanban-slash.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAEV,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAElB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAU5B,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAI9E;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,QAAQ,EAA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AC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACnF,KAAK,EAAE,OAAO,GACb,MAAM,CA8CR;AA4BD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,kBAAkB,EAAE,EAAE,KAAK,SAAK,GAAG,MAAM,CA8C1F"}
|
package/dist/kill-slash.d.ts
CHANGED
package/dist/kill-slash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kill-slash.d.ts","sourceRoot":"","sources":["../src/kill-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"kill-slash.d.ts","sourceRoot":"","sources":["../src/kill-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAY3D,wBAAgB,sBAAsB,IAAI,YAAY,CA8CrD"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout engine — exact line-count, character-count, and overflow computation
|
|
3
|
+
* per history entry kind + terminal width.
|
|
4
|
+
*
|
|
5
|
+
* Pure functions (no React, no Ink, no DOM). Each entry's layout is computed
|
|
6
|
+
* from its content and the current terminal width alone, so it can be cached,
|
|
7
|
+
* serialised, and reused across re-renders and session resumes without
|
|
8
|
+
* mounting the component tree just to discover row heights.
|
|
9
|
+
*
|
|
10
|
+
* The engine replaces the vague `estimateRenderGroupRows` heuristics with
|
|
11
|
+
* deterministic line counts for every entry kind, handling:
|
|
12
|
+
* - Text wrapping at a given terminal column width
|
|
13
|
+
* - Tool card chrome (header, rail, footer)
|
|
14
|
+
* - Code blocks and syntax-highlighted diffs
|
|
15
|
+
* - Banners (compact / full artwork variant)
|
|
16
|
+
* - Model-switch cards, brain cards, memory cards, etc.
|
|
17
|
+
*/
|
|
18
|
+
export interface EntryLayout {
|
|
19
|
+
/** Entry id the layout belongs to. */
|
|
20
|
+
id: number;
|
|
21
|
+
/** Terminal columns this layout was computed for. */
|
|
22
|
+
termWidth: number;
|
|
23
|
+
/** Computed terminal rows this entry occupies. */
|
|
24
|
+
rows: number;
|
|
25
|
+
/** Total character count of the entry's content. */
|
|
26
|
+
chars: number;
|
|
27
|
+
/** Rows of this entry that overflow above the viewport, 0 at top. */
|
|
28
|
+
overflowBefore: number;
|
|
29
|
+
/** Rows of this entry that overflow below the viewport after clipping. */
|
|
30
|
+
overflowAfter: number;
|
|
31
|
+
/**
|
|
32
|
+
* `estimated` when the layout was seeded from a heuristic (before first
|
|
33
|
+
* real measurement), `measured` after the actual ink component rendered.
|
|
34
|
+
*/
|
|
35
|
+
kind: 'estimated' | 'measured';
|
|
36
|
+
/** Version of the scoring function. Bump to invalidate stale caches. */
|
|
37
|
+
version: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Snapshot for one session: map of entry id → layout data computed at a
|
|
41
|
+
* specific terminal width. Persisted alongside the session so resumed
|
|
42
|
+
* sessions restore accurate layout without remounting every entry.
|
|
43
|
+
*/
|
|
44
|
+
export interface LayoutSnapshot {
|
|
45
|
+
/** Terminal columns at snapshot time. */
|
|
46
|
+
termWidth: number;
|
|
47
|
+
/** Layout version — increment to force re-computation. */
|
|
48
|
+
version: number;
|
|
49
|
+
/** Per-entry layout data. */
|
|
50
|
+
entries: Record<number, EntryLayout>;
|
|
51
|
+
}
|
|
52
|
+
/** Current layout computation version. Bump when the algorithm changes. */
|
|
53
|
+
export declare const LAYOUT_VERSION = 1;
|
|
54
|
+
/** Default fallback row count for entries without computed layout. */
|
|
55
|
+
export declare const FALLBACK_ROWS = 3;
|
|
56
|
+
/**
|
|
57
|
+
* Count the number of terminal rows a multi-line string occupies when wrapped
|
|
58
|
+
* at `width` columns. Empty strings produce 1 row.
|
|
59
|
+
*
|
|
60
|
+
* Pure — no allocations beyond the row accumulator.
|
|
61
|
+
*/
|
|
62
|
+
export declare function wrappedRows(text: string, width: number, maxRows?: number): number;
|
|
63
|
+
/**
|
|
64
|
+
* Count the raw characters (code points) in a string that contribute to
|
|
65
|
+
* visible output. Strips ANSI escape sequences before counting.
|
|
66
|
+
*/
|
|
67
|
+
export declare function visibleChars(text: string): number;
|
|
68
|
+
/**
|
|
69
|
+
* Compute the exact terminal rows an entry occupies at the given terminal
|
|
70
|
+
* width. This is the core of the layout engine — it mirrors what the Ink
|
|
71
|
+
* component tree actually produces, but runs in O(1) and does not mount
|
|
72
|
+
* React elements.
|
|
73
|
+
*/
|
|
74
|
+
export declare function computeEntryRows(kind: string, text: string, termWidth: number, meta?: {
|
|
75
|
+
/** For 'tool' entries: hasBody (whether result body is expanded). */
|
|
76
|
+
hasBody?: boolean;
|
|
77
|
+
/** For 'tool' entries: resultRenderMode. */
|
|
78
|
+
resultRenderMode?: 'simple' | 'extend';
|
|
79
|
+
/** For 'tool' entries: output preview byte length. */
|
|
80
|
+
outputBytes?: number;
|
|
81
|
+
/** For 'banner' entries: whether to render full artwork. */
|
|
82
|
+
fullArtwork?: boolean;
|
|
83
|
+
/** For 'tool-group': entry count in the group. */
|
|
84
|
+
groupCount?: number;
|
|
85
|
+
/** For 'assistant': whether a next-steps panel is rendered. */
|
|
86
|
+
hasNextSteps?: boolean;
|
|
87
|
+
/** For 'assistant' content: how many code blocks, approximate. */
|
|
88
|
+
codeBlockCount?: number;
|
|
89
|
+
}): number;
|
|
90
|
+
/**
|
|
91
|
+
* Count the total characters across all display-relevant fields of an entry.
|
|
92
|
+
* Accounts for the primary text field as well as secondary fields (pasteContent,
|
|
93
|
+
* output preview, detail strings) that contribute to visual length.
|
|
94
|
+
*/
|
|
95
|
+
export declare function computeEntryChars(kind: string, entry: {
|
|
96
|
+
text?: string;
|
|
97
|
+
[key: string]: unknown;
|
|
98
|
+
}): number;
|
|
99
|
+
/**
|
|
100
|
+
* Compute a full EntryLayout for one entry. Pure — deterministic from inputs.
|
|
101
|
+
*/
|
|
102
|
+
export declare function computeLayout(id: number, kind: string, text: string, termWidth: number, meta?: Parameters<typeof computeEntryRows>[3]): EntryLayout;
|
|
103
|
+
/**
|
|
104
|
+
* Update overflow values for a list of layouts arranged in content order.
|
|
105
|
+
* Each entry gets its `overflowBefore` (rows clipped above viewport) and
|
|
106
|
+
* `overflowAfter` (rows clipped below) computed from the given viewport
|
|
107
|
+
* window.
|
|
108
|
+
*
|
|
109
|
+
* Clip coordinates are in total-content rows. Layout array is in display order.
|
|
110
|
+
*/
|
|
111
|
+
export declare function computeOverflow(layouts: EntryLayout[], viewportTop: number, viewportBottom: number): EntryLayout[];
|
|
112
|
+
//# sourceMappingURL=layout-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-engine.d.ts","sourceRoot":"","sources":["../src/layout-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,WAAW,WAAW;IAC1B,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC;IAC/B,wEAAwE;IACxE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACtC;AAID,2EAA2E;AAC3E,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,sEAAsE;AACtE,eAAO,MAAM,aAAa,IAAI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E,MAAM,EACnB,cAAc,EAAE,MAAM,GACrB,WAAW,EAAE,CAYf"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout store — per-session persistence of entry layout data.
|
|
3
|
+
*
|
|
4
|
+
* Stores a layout snapshot (entry id → row height / char count / term width)
|
|
5
|
+
* in memory during the session and persists it to disk alongside the session
|
|
6
|
+
* data so a resumed session can reconstruct the virtual scroll viewport
|
|
7
|
+
* without mounting every entry just to discover its height.
|
|
8
|
+
*
|
|
9
|
+
* Threading: designed for single-threaded use in the TUI's React render
|
|
10
|
+
* cycle. Disk writes use atomic-write (temp-file + rename) for crash safety.
|
|
11
|
+
* Calls should be batched; writes are debounced (500ms idle after last set).
|
|
12
|
+
*/
|
|
13
|
+
import type { EntryLayout } from './layout-engine.js';
|
|
14
|
+
export interface LayoutStoreOptions {
|
|
15
|
+
/** Directory where the session's layout snapshot is stored. */
|
|
16
|
+
sessionDataDir: string | undefined;
|
|
17
|
+
/** When true, skip all disk I/O (for testing / no-session mode). */
|
|
18
|
+
ephemeral?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class LayoutStore {
|
|
21
|
+
/** In-memory map: entry id → layout data. */
|
|
22
|
+
private readonly layouts;
|
|
23
|
+
/** Current terminal width used for layout computations. */
|
|
24
|
+
private currentTermWidth;
|
|
25
|
+
/** Session data directory path, or undefined for ephemeral mode. */
|
|
26
|
+
private readonly sessionDataDir;
|
|
27
|
+
/** When true, skip all disk I/O. */
|
|
28
|
+
private readonly ephemeral;
|
|
29
|
+
/** Debounce timer handle for pending disk writes. */
|
|
30
|
+
private debounceTimer;
|
|
31
|
+
/** Pending dirty flag — set when in-memory state diverges from disk. */
|
|
32
|
+
private dirty;
|
|
33
|
+
constructor(options: LayoutStoreOptions);
|
|
34
|
+
/** Set the terminal width used for layout computation. */
|
|
35
|
+
setTermWidth(width: number): void;
|
|
36
|
+
/** Get the current terminal width. */
|
|
37
|
+
get termWidth(): number;
|
|
38
|
+
/** Number of entries tracked. */
|
|
39
|
+
get size(): number;
|
|
40
|
+
/** Get the cached layout for an entry id, or undefined. */
|
|
41
|
+
get(id: number): EntryLayout | undefined;
|
|
42
|
+
/** Get the cached row height for an entry id. Returns fallback if unknown. */
|
|
43
|
+
getRows(id: number): number;
|
|
44
|
+
/**
|
|
45
|
+
* True when every entry id in the set has a measured (non-estimated) layout.
|
|
46
|
+
*/
|
|
47
|
+
allMeasured(ids: Iterable<number>): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Record or update the layout for an entry. Idempotent when both the
|
|
50
|
+
* terminal width and row count are unchanged. Marks the store dirty and
|
|
51
|
+
* schedules a debounced disk write.
|
|
52
|
+
*/
|
|
53
|
+
set(id: number, layout: EntryLayout): void;
|
|
54
|
+
/**
|
|
55
|
+
* Batch-set multiple layouts at once. More efficient than calling `set()`
|
|
56
|
+
* in a loop because it only triggers one debounced flush.
|
|
57
|
+
*/
|
|
58
|
+
setMany(entries: Iterable<EntryLayout>): void;
|
|
59
|
+
/**
|
|
60
|
+
* Promote a layout from 'estimated' to 'measured' once the real component
|
|
61
|
+
* has been mounted and its actual height is known.
|
|
62
|
+
*/
|
|
63
|
+
markMeasured(id: number, actualRows: number): void;
|
|
64
|
+
/**
|
|
65
|
+
* Remove entries no longer in the active set (after history retention).
|
|
66
|
+
*/
|
|
67
|
+
retain(entryIds: Set<number>): void;
|
|
68
|
+
/** Reset all in-memory state (on /clear). */
|
|
69
|
+
clear(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Load layout data from disk. Returns the number of entries restored, or 0
|
|
72
|
+
* when no data exists or the version has changed (caller should regenerate).
|
|
73
|
+
*
|
|
74
|
+
* Call once at session start, before the first render cycle, so the entry
|
|
75
|
+
* height cache can be seeded with accurate (measured) layouts instead of
|
|
76
|
+
* fallback estimates.
|
|
77
|
+
*/
|
|
78
|
+
load(): Promise<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Force an immediate disk write. Normally writes are debounced; call this
|
|
81
|
+
* before session end to ensure the latest layout data is persisted.
|
|
82
|
+
*/
|
|
83
|
+
flushNow(): Promise<void>;
|
|
84
|
+
/** Schedule a debounced flush to disk. */
|
|
85
|
+
private scheduleFlush;
|
|
86
|
+
/** Cancel any pending flush. */
|
|
87
|
+
private cancelFlush;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=layout-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-store.d.ts","sourceRoot":"","sources":["../src/layout-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,oBAAoB,CAAC;AAgBtE,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,oEAAoE;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID,qBAAa,WAAW;IACtB,6CAA6C;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkC;IAE1D,2DAA2D;IAC3D,OAAO,CAAC,gBAAgB,CAAM;IAE9B,oEAAoE;IACpE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqB;IAEpD,oCAAoC;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;IAEpC,qDAAqD;IACrD,OAAO,CAAC,aAAa,CAA8C;IAEnE,wEAAwE;IACxE,OAAO,CAAC,KAAK,CAAS;IAEtB,YAAY,OAAO,EAAE,kBAAkB,EAGtC;IAID,0DAA0D;IAC1D,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAEhC;IAED,sCAAsC;IACtC,IAAI,SAAS,IAAI,MAAM,CAEtB;IAID,iCAAiC;IACjC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,2DAA2D;IAC3D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEvC;IAED,8EAA8E;IAC9E,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE1B;IAED;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAM1C;IAID;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAczC;IAED;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI,CAoB5C;IAED;;;OAGG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAYjD;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAYlC;IAED,6CAA6C;IAC7C,KAAK,IAAI,IAAI,CAIZ;IAID;;;;;;;OAOG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAmC5B;IAED;;;OAGG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA4B9B;IAID,0CAA0C;IAC1C,OAAO,CAAC,aAAa;IASrB,gCAAgC;IAChC,OAAO,CAAC,WAAW;CAMpB"}
|
package/dist/markdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AA4CD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CA0EvD;AA2BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,UAAU,GACX,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,GAAG,KAAK,CAAC,YAAY,CAwGrB"}
|
|
@@ -42,11 +42,16 @@ export interface MemoryContextMonitorState {
|
|
|
42
42
|
transitions: MemoryContextTransition[];
|
|
43
43
|
}
|
|
44
44
|
export declare function emptyMemoryContextMonitor(): MemoryContextMonitorState;
|
|
45
|
+
/**
|
|
46
|
+
* UI-only text budget for memory detail cards. Full text lives in SAGE
|
|
47
|
+
* SQLite; the TUI only needs a short preview for the context panel.
|
|
48
|
+
*/
|
|
49
|
+
export declare const MAX_MEMORY_DETAIL_TEXT_CHARS = 300;
|
|
45
50
|
/** Count only memories confirmed present in the latest provider-bound request. */
|
|
46
51
|
export declare function activeMemoryContextCount(state: MemoryContextMonitorState): number;
|
|
47
52
|
/** Keep leader telemetry isolated from subagent sessions sharing the same EventBus. */
|
|
48
53
|
export declare function memoryEventMatchesSession(payload: unknown, currentSessionId: string): boolean;
|
|
49
|
-
/** Read the all-status
|
|
54
|
+
/** Read the all-status SAGE record total without requiring that backend at the type boundary. */
|
|
50
55
|
export declare function readMemoryRecordTotal(store: unknown): Promise<number | undefined>;
|
|
51
56
|
export declare function applyMemoryInjectorRun(state: MemoryContextMonitorState, payload: Record<string, unknown>): MemoryContextMonitorState;
|
|
52
57
|
export declare function applyMemoryContextSnapshot(state: MemoryContextMonitorState, payload: Record<string, unknown>): MemoryContextMonitorState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-context-monitor.d.ts","sourceRoot":"","sources":["../src/memory-context-monitor.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,KAAK,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,sFAAsF;IACtF,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,QAAQ,CAA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,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAQvF;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,yBAAyB,CAwD3B;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,yBAAyB,CAqD3B"}
|
package/dist/memory-slash.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MemoryPort } from '@wrongstack/core/types';
|
|
2
2
|
export interface MemorySlashDeps {
|
|
3
|
-
memoryStore:
|
|
3
|
+
memoryStore: MemoryPort;
|
|
4
4
|
}
|
|
5
5
|
export declare function createMemorySlashCommand(deps: MemorySlashDeps): {
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-slash.d.ts","sourceRoot":"","sources":["../src/memory-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"memory-slash.d.ts","sourceRoot":"","sources":["../src/memory-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAe,MAAM,wBAAwB,CAAC;AAInF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,UAAU,CAAC;CACzB;AA2yBD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,eAAe;IAE1D,IAAI;IACJ,WAAW;IACX,QAAQ;IACR,QAAQ,EAAE,SAAS;IACnB,IAAI;IAeE,GAAG,OAAO,MAAM;iBApIJ,MAAM;;EAgU3B"}
|
package/dist/mouse.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SGR mouse protocol (xterm DEC private modes). These are INDEPENDENT of the
|
|
3
3
|
* alternate screen buffer (?1049h): we enable tracking while staying in the
|
|
4
|
-
* normal buffer
|
|
4
|
+
* normal buffer. Chat history itself lives in a bounded managed viewport.
|
|
5
5
|
*
|
|
6
6
|
* ?1000h — button press/release tracking (clicks + wheel)
|
|
7
7
|
* ?1002h — button-event tracking: adds drag (motion while a button is held)
|
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Trade-off: with ANY of these on, the terminal reports the wheel to us as
|
|
13
13
|
* buttons 64/65 instead of scrolling its own scrollback. Shift+wheel (and
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* gone while tracking is active. Keep tracking opt-in / overlay-scoped.
|
|
14
|
+
* users keep access to terminal scrollback — but plain wheel events are owned
|
|
15
|
+
* by the app while tracking is active. Keep tracking opt-in / overlay-scoped.
|
|
17
16
|
*/
|
|
18
17
|
/** Click + wheel only (mode 1000). Cheapest; no motion events. */
|
|
19
18
|
export declare const MOUSE_CLICK_ON: string;
|
|
@@ -27,6 +26,16 @@ export declare const MOUSE_HOVER_ON: string;
|
|
|
27
26
|
* *_ON sequence (if any) was emitted.
|
|
28
27
|
*/
|
|
29
28
|
export declare const MOUSE_OFF: string;
|
|
29
|
+
export interface MouseTrackingPolicy {
|
|
30
|
+
/** Full-session pointer mode (`--mouse`, saved setting, or `/mouse on`). */
|
|
31
|
+
fullMode: boolean;
|
|
32
|
+
/** A picker that benefits from temporary click/wheel ownership is visible. */
|
|
33
|
+
overlayOpen: boolean;
|
|
34
|
+
/** Startup terminal capability probe. Undefined keeps legacy callers enabled. */
|
|
35
|
+
protocol?: 'none' | 'x10' | 'urxvt' | 'sgr' | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Decide whether the TUI should currently own terminal mouse reports. */
|
|
38
|
+
export declare function shouldEnableMouseTracking(policy: MouseTrackingPolicy): boolean;
|
|
30
39
|
/**
|
|
31
40
|
* Enter the alternate screen buffer (DECSET 1049). The normal screen is
|
|
32
41
|
* saved and restored on exit.
|
package/dist/mouse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../src/mouse.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mouse.d.ts","sourceRoot":"","sources":["../src/mouse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,kEAAkE;AAClE,eAAO,MAAM,cAAc,QAA+B,CAAC;AAC3D,uEAAuE;AACvE,eAAO,MAAM,aAAa,QAA4C,CAAC;AACvE,gFAAgF;AAChF,eAAO,MAAM,cAAc,QAA4C,CAAC;AACxE;;;;GAIG;AACH,eAAO,MAAM,SAAS,QAAyD,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,WAAW,EAAE,OAAO,CAAC;IACrB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;CACzD;AAED,0EAA0E;AAC1E,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAM9E;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAkB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,cAAc,QAAkB,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,6EAA6E;IAC7E,CAAC,EAAE,MAAM,CAAC;IACV,6DAA6D;IAC7D,CAAC,EAAE,MAAM,CAAC;IACV,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,yBAAyB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,gEAAgE;IAChE,MAAM,EAAE,OAAO,CAAC;CACjB;AA8CD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CASnE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,CAa/D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Director } from '@wrongstack/core/coordination';
|
|
2
|
+
import type { Action, State } from './app-reducer.js';
|
|
3
|
+
import type { KeyEvent } from './components/input.js';
|
|
4
|
+
import type { SettingsCapabilities } from './tui-host-capabilities.js';
|
|
5
|
+
import type { MutableCell } from './shared-types.js';
|
|
6
|
+
export declare function overlayPointerKey(state: State, input: string, key: KeyEvent): {
|
|
7
|
+
isEnter: boolean;
|
|
8
|
+
cancelAction: Action | null;
|
|
9
|
+
};
|
|
10
|
+
export interface BusyInterruptKeyHost {
|
|
11
|
+
readonly state: State;
|
|
12
|
+
readonly dismissedAt: MutableCell<number>;
|
|
13
|
+
readonly streamingText: MutableCell<string>;
|
|
14
|
+
readonly confirmExit: MutableCell<boolean>;
|
|
15
|
+
readonly activeController: MutableCell<AbortController | null>;
|
|
16
|
+
dispatch(action: Action): void;
|
|
17
|
+
clearPendingConfirms(): void;
|
|
18
|
+
liveDirector(): Director | null;
|
|
19
|
+
}
|
|
20
|
+
/** Handle Esc-to-steer, including optional confirmation and fleet teardown. */
|
|
21
|
+
export declare function routeBusyInterruptKey(host: BusyInterruptKeyHost, key: KeyEvent): boolean;
|
|
22
|
+
export interface ModalOverlayKeyHost {
|
|
23
|
+
readonly state: State;
|
|
24
|
+
readonly enhanceCancelled: MutableCell<boolean>;
|
|
25
|
+
readonly enhanceController: MutableCell<AbortController | null>;
|
|
26
|
+
dispatch(action: Action): void;
|
|
27
|
+
}
|
|
28
|
+
/** Route the modal overlay ladder that has precedence over every composer key. */
|
|
29
|
+
export declare function routeModalOverlayKey(host: ModalOverlayKeyHost, input: string, key: KeyEvent): boolean;
|
|
30
|
+
export interface SettingsOverlayKeyHost {
|
|
31
|
+
readonly state: State;
|
|
32
|
+
readonly getSettings: SettingsCapabilities['getSettings'];
|
|
33
|
+
readonly saveSettings: SettingsCapabilities['saveSettings'];
|
|
34
|
+
readonly lastEnterAt: MutableCell<number>;
|
|
35
|
+
dispatch(action: Action): void;
|
|
36
|
+
}
|
|
37
|
+
/** Route the settings editor and its Ctrl+S open/close chord. */
|
|
38
|
+
export declare function routeSettingsOverlayKey(host: SettingsOverlayKeyHost, input: string, key: KeyEvent, isEnter: boolean): boolean;
|
|
39
|
+
/** Panels below the statusline own navigation/scroll keys while open. */
|
|
40
|
+
export declare function isLowerOverlayOpen(state: State): boolean;
|
|
41
|
+
/** Close the highest-priority panel on Esc and keep ProcessList modal. */
|
|
42
|
+
export declare function routePanelEscapeKey(state: State, key: KeyEvent, dispatch: (action: Action) => void): boolean;
|
|
43
|
+
//# sourceMappingURL=overlay-key-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay-key-router.d.ts","sourceRoot":"","sources":["../src/overlay-key-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA6CrD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,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AC,aAAa,CAAC,CAAC;IAC1D,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAC5D,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,iEAAiE;AACjE,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,sBAAsB,EAC5B,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,QAAQ,EACb,OAAO,EAAE,OAAO,GACf,OAAO,CA8ET;AAED,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAiBxD;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GACjC,OAAO,CAST"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
+
export interface PasteOverflowState {
|
|
2
|
+
readonly overflow: true;
|
|
3
|
+
}
|
|
4
|
+
export type PasteAccumState = string | PasteOverflowState | null;
|
|
1
5
|
export interface PasteFeedResult {
|
|
2
|
-
/** New accumulator state:
|
|
3
|
-
accum:
|
|
6
|
+
/** New accumulator state: text while buffering, overflow marker, or `null` when idle. */
|
|
7
|
+
accum: PasteAccumState;
|
|
4
8
|
/**
|
|
5
9
|
* The fully-assembled paste payload when an end marker closed it, else
|
|
6
10
|
* `null` (still buffering).
|
|
7
11
|
*/
|
|
8
12
|
complete: string | null;
|
|
13
|
+
/** Set when accumulation exceeded the hard paste cap and was discarded. */
|
|
14
|
+
error?: string | undefined;
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Feed one keypress fragment into the paste accumulator.
|
|
12
18
|
*
|
|
13
|
-
* @param accum current accumulator (`null` when
|
|
19
|
+
* @param accum current accumulator (`null` when idle, object after overflow)
|
|
14
20
|
* @param input the raw keypress string for this event
|
|
15
21
|
* @returns `null` when `input` is not part of a paste (the caller should
|
|
16
22
|
* handle it as normal input); otherwise the updated accumulation state.
|
|
17
23
|
*/
|
|
18
|
-
export declare function feedPaste(accum:
|
|
24
|
+
export declare function feedPaste(accum: PasteAccumState, input: string): PasteFeedResult | null;
|
|
19
25
|
//# sourceMappingURL=paste-accumulator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paste-accumulator.d.ts","sourceRoot":"","sources":["../src/paste-accumulator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paste-accumulator.d.ts","sourceRoot":"","sources":["../src/paste-accumulator.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAC;AA2BjE,MAAM,WAAW,eAAe;IAC9B,yFAAyF;IACzF,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAqCvF"}
|
package/dist/ps-slash.d.ts
CHANGED
package/dist/ps-slash.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ps-slash.d.ts","sourceRoot":"","sources":["../src/ps-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ps-slash.d.ts","sourceRoot":"","sources":["../src/ps-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,YAAY,CAQnD"}
|
package/dist/queue-slash.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SlashCommand } from '@wrongstack/core';
|
|
2
|
-
import type { QueueItem } from './app.js';
|
|
1
|
+
import type { SlashCommand } from '@wrongstack/core/types';
|
|
2
|
+
import type { QueueItem } from './app-state.js';
|
|
3
3
|
/**
|
|
4
4
|
* Dependencies the `/queue` command needs from the App. The TUI registers
|
|
5
5
|
* the command at mount time with closures over `getQueue` (reads the latest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue-slash.d.ts","sourceRoot":"","sources":["../src/queue-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"queue-slash.d.ts","sourceRoot":"","sources":["../src/queue-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,SAAS,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxC,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS,CAAC;IAC/C,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CAC7D;AAWD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,cAAc,GAAG,YAAY,CAS1E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAuE7E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Action, State } from '../app-state.js';
|
|
2
|
+
declare const activityActionTypes: readonly ["setHistoryScrolled", "setViewportRows", "collabSubagentSpawned", "collabBugFound", "collabPlanEmitted", "collabEvalComplete", "collabSessionDone", "debugStreamStats", "debugStreamStatsClear", "toggleSessionsPanel", "sessionsPanelSet", "sessionsPanelMove", "sessionsPanelBusy", "sessionResumeConfirmSet", "sessionResumeConfirmClear", "countdownTick", "countdownEnded", "coordinatorEvent", "toggleAuditPanel", "toggleCoordinatorMonitor"];
|
|
3
|
+
type ActivityAction = Extract<Action, {
|
|
4
|
+
type: (typeof activityActionTypes)[number];
|
|
5
|
+
}>;
|
|
6
|
+
export declare function isActivityAction(action: Action): action is ActivityAction;
|
|
7
|
+
/** Reduces viewport, collaboration, session, countdown, and coordinator activity. */
|
|
8
|
+
export declare function reduceActivity(state: State, action: ActivityAction): State;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/reducers/activity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGrD,QAAA,MAAM,mBAAmB,gcAqBqB,CAAC;AAE/C,KAAK,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,CAAC;AAGtF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,GAAG,KAAK,CAuP1E"}
|