@wrongstack/tui 0.295.1 → 0.296.3
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/dist/app-action-type.d.ts +988 -0
- package/dist/app-action-type.d.ts.map +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 +11 -3
- package/dist/app-key-handler.d.ts.map +1 -1
- package/dist/app-props.d.ts +4 -2
- package/dist/app-props.d.ts.map +1 -1
- package/dist/app-reducer.d.ts +4 -2
- package/dist/app-reducer.d.ts.map +1 -1
- package/dist/app-settings-type.d.ts +75 -0
- package/dist/app-settings-type.d.ts.map +1 -0
- package/dist/app-state-core-types.d.ts +52 -0
- package/dist/app-state-core-types.d.ts.map +1 -0
- package/dist/app-state-fleet.d.ts +44 -0
- package/dist/app-state-fleet.d.ts.map +1 -0
- package/dist/app-state.d.ts +49 -1180
- package/dist/app-state.d.ts.map +1 -1
- package/dist/app-ui-state.d.ts +5 -0
- package/dist/app-ui-state.d.ts.map +1 -0
- package/dist/app-view-contract.d.ts +8 -1
- package/dist/app-view-contract.d.ts.map +1 -1
- package/dist/app-view.d.ts.map +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/brain-panel-model.d.ts +8 -0
- package/dist/brain-panel-model.d.ts.map +1 -1
- package/dist/clipboard.d.ts +1 -1
- package/dist/clipboard.d.ts.map +1 -1
- package/dist/components/agents-monitor-constants.d.ts +12 -0
- package/dist/components/agents-monitor-constants.d.ts.map +1 -0
- package/dist/components/agents-monitor.d.ts +1 -7
- package/dist/components/agents-monitor.d.ts.map +1 -1
- package/dist/components/auth-panel.d.ts +2 -0
- package/dist/components/auth-panel.d.ts.map +1 -1
- package/dist/components/brain-panel.d.ts.map +1 -1
- package/dist/components/connections-panel.d.ts +7 -0
- package/dist/components/connections-panel.d.ts.map +1 -0
- package/dist/components/f-key-picker.d.ts.map +1 -1
- package/dist/components/history/basic-format.d.ts +19 -0
- package/dist/components/history/basic-format.d.ts.map +1 -0
- package/dist/components/history/code-block-diff-helpers.d.ts +28 -0
- package/dist/components/history/code-block-diff-helpers.d.ts.map +1 -0
- package/dist/components/history/code-block.d.ts +1 -1
- package/dist/components/history/code-block.d.ts.map +1 -1
- package/dist/components/history/copy-icon.d.ts +25 -0
- package/dist/components/history/copy-icon.d.ts.map +1 -0
- package/dist/components/history/entry.d.ts.map +1 -1
- package/dist/components/history/index.d.ts +5 -6
- package/dist/components/history/index.d.ts.map +1 -1
- package/dist/components/history/sage-output-format.d.ts +58 -0
- package/dist/components/history/sage-output-format.d.ts.map +1 -0
- package/dist/components/history/stream-box.d.ts +23 -0
- package/dist/components/history/stream-box.d.ts.map +1 -0
- package/dist/components/history/tool-arg-format.d.ts +5 -0
- package/dist/components/history/tool-arg-format.d.ts.map +1 -0
- package/dist/components/history/tool-group.d.ts.map +1 -1
- package/dist/components/history/tool-output-summary.d.ts +4 -0
- package/dist/components/history/tool-output-summary.d.ts.map +1 -0
- package/dist/components/history/tool-visual-command.d.ts +3 -0
- package/dist/components/history/tool-visual-command.d.ts.map +1 -0
- package/dist/components/history/tool-visual-domain.d.ts +8 -0
- package/dist/components/history/tool-visual-domain.d.ts.map +1 -0
- package/dist/components/history/tool-visual-format.d.ts +13 -0
- package/dist/components/history/tool-visual-format.d.ts.map +1 -0
- package/dist/components/history/tool-visual-lsp.d.ts +4 -0
- package/dist/components/history/tool-visual-lsp.d.ts.map +1 -0
- package/dist/components/history/tool-visual-misc.d.ts +7 -0
- package/dist/components/history/tool-visual-misc.d.ts.map +1 -0
- package/dist/components/history/tool-visual-mode-workdir.d.ts +4 -0
- package/dist/components/history/tool-visual-mode-workdir.d.ts.map +1 -0
- package/dist/components/history/tool-visual-types.d.ts +9 -0
- package/dist/components/history/tool-visual-types.d.ts.map +1 -0
- package/dist/components/history/utils.d.ts +16 -54
- package/dist/components/history/utils.d.ts.map +1 -1
- package/dist/components/history/visual-lines.d.ts +7 -0
- package/dist/components/history/visual-lines.d.ts.map +1 -0
- package/dist/components/history/visual-memory-logs.d.ts +4 -0
- package/dist/components/history/visual-memory-logs.d.ts.map +1 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/kanban-panel.d.ts.map +1 -1
- package/dist/components/key-hint-bar.d.ts +11 -0
- package/dist/components/key-hint-bar.d.ts.map +1 -1
- package/dist/components/powerline-rail.d.ts +11 -4
- package/dist/components/powerline-rail.d.ts.map +1 -1
- package/dist/components/provider-colors.d.ts.map +1 -1
- package/dist/components/refine-countdown-panel.d.ts +25 -0
- package/dist/components/refine-countdown-panel.d.ts.map +1 -0
- package/dist/components/refine-failure-panel.d.ts +3 -1
- package/dist/components/refine-failure-panel.d.ts.map +1 -1
- package/dist/components/resume-picker.d.ts.map +1 -1
- package/dist/components/scrollable-history.d.ts +96 -17
- package/dist/components/scrollable-history.d.ts.map +1 -1
- package/dist/components/settings-picker-filter.d.ts +20 -0
- package/dist/components/settings-picker-filter.d.ts.map +1 -0
- package/dist/components/settings-picker-jumps.d.ts +16 -0
- package/dist/components/settings-picker-jumps.d.ts.map +1 -0
- package/dist/components/settings-picker-model.d.ts +271 -0
- package/dist/components/settings-picker-model.d.ts.map +1 -0
- package/dist/components/settings-picker-row-list.d.ts +21 -0
- package/dist/components/settings-picker-row-list.d.ts.map +1 -0
- package/dist/components/settings-picker.d.ts +8 -313
- package/dist/components/settings-picker.d.ts.map +1 -1
- package/dist/components/status-bar-format.d.ts +65 -0
- package/dist/components/status-bar-format.d.ts.map +1 -0
- package/dist/components/status-bar-helpers.d.ts +19 -0
- package/dist/components/status-bar-helpers.d.ts.map +1 -0
- package/dist/components/status-bar-types.d.ts +350 -0
- package/dist/components/status-bar-types.d.ts.map +1 -0
- package/dist/components/status-bar.d.ts +4 -444
- package/dist/components/status-bar.d.ts.map +1 -1
- package/dist/components/statusline-detail-panel.d.ts.map +1 -1
- package/dist/components/statusline-picker.d.ts +5 -3
- package/dist/components/statusline-picker.d.ts.map +1 -1
- package/dist/connections-health.d.ts +39 -0
- package/dist/connections-health.d.ts.map +1 -0
- package/dist/connections-slash.d.ts +12 -0
- package/dist/connections-slash.d.ts.map +1 -0
- package/dist/esc-close-panels.d.ts.map +1 -1
- package/dist/f-key-panels.d.ts +4 -2
- package/dist/f-key-panels.d.ts.map +1 -1
- package/dist/heap-watchdog.d.ts.map +1 -1
- package/dist/height-cache.d.ts.map +1 -1
- package/dist/history-archive.d.ts +69 -0
- package/dist/history-archive.d.ts.map +1 -0
- package/dist/history-entry.d.ts +52 -0
- package/dist/history-entry.d.ts.map +1 -1
- package/dist/hit-test.d.ts +3 -4
- package/dist/hit-test.d.ts.map +1 -1
- package/dist/hooks/use-app-picker-keys.d.ts +3 -2
- package/dist/hooks/use-app-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-app-runtime-refs.d.ts +38 -0
- package/dist/hooks/use-app-runtime-refs.d.ts.map +1 -0
- package/dist/hooks/use-app-session-state.d.ts +28 -0
- package/dist/hooks/use-app-session-state.d.ts.map +1 -0
- package/dist/hooks/use-autonomy-drivers.d.ts +1 -1
- package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -1
- package/dist/hooks/use-brain-panel.d.ts +1 -1
- package/dist/hooks/use-brain-panel.d.ts.map +1 -1
- package/dist/hooks/use-brain-risk-sync.d.ts +11 -0
- package/dist/hooks/use-brain-risk-sync.d.ts.map +1 -0
- package/dist/hooks/use-client-telemetry.d.ts +1 -1
- package/dist/hooks/use-client-telemetry.d.ts.map +1 -1
- package/dist/hooks/use-core-tui-commands.d.ts +2 -1
- package/dist/hooks/use-core-tui-commands.d.ts.map +1 -1
- package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
- package/dist/hooks/use-enhance-runtime-state.d.ts +23 -0
- package/dist/hooks/use-enhance-runtime-state.d.ts.map +1 -0
- package/dist/hooks/use-git-session-status.d.ts.map +1 -1
- package/dist/hooks/use-help-panel.d.ts +6 -0
- package/dist/hooks/use-help-panel.d.ts.map +1 -0
- package/dist/hooks/use-history-copy-notice.d.ts +4 -0
- package/dist/hooks/use-history-copy-notice.d.ts.map +1 -0
- package/dist/hooks/use-history-viewport-sync.d.ts +13 -0
- package/dist/hooks/use-history-viewport-sync.d.ts.map +1 -0
- package/dist/hooks/use-initial-prompt.d.ts +1 -1
- package/dist/hooks/use-initial-prompt.d.ts.map +1 -1
- package/dist/hooks/use-interrupt-ladder.d.ts +2 -1
- package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -1
- package/dist/hooks/use-kanban-board-focus.d.ts +8 -0
- package/dist/hooks/use-kanban-board-focus.d.ts.map +1 -0
- package/dist/hooks/use-live-settings-state.d.ts +20 -0
- package/dist/hooks/use-live-settings-state.d.ts.map +1 -0
- package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -1
- package/dist/hooks/use-model-pick.d.ts +1 -1
- package/dist/hooks/use-model-pick.d.ts.map +1 -1
- package/dist/hooks/use-mouse-tracking.d.ts +15 -0
- package/dist/hooks/use-mouse-tracking.d.ts.map +1 -0
- package/dist/hooks/use-next-steps-auto-submit.d.ts +2 -1
- package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -1
- package/dist/hooks/use-panel-controllers.d.ts +2 -1
- package/dist/hooks/use-panel-controllers.d.ts.map +1 -1
- package/dist/hooks/use-picker-keys-types.d.ts +56 -0
- package/dist/hooks/use-picker-keys-types.d.ts.map +1 -0
- package/dist/hooks/use-picker-keys.d.ts +2 -64
- package/dist/hooks/use-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts +6 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
- package/dist/hooks/use-settings-auto-save.d.ts +2 -1
- package/dist/hooks/use-settings-auto-save.d.ts.map +1 -1
- package/dist/hooks/use-shadow-panel.d.ts +17 -0
- package/dist/hooks/use-shadow-panel.d.ts.map +1 -0
- package/dist/hooks/use-slash-picker.d.ts +2 -1
- package/dist/hooks/use-slash-picker.d.ts.map +1 -1
- package/dist/hooks/use-stable-key-handler.d.ts +5 -0
- package/dist/hooks/use-stable-key-handler.d.ts.map +1 -0
- package/dist/hooks/use-statusbar-view-model.d.ts.map +1 -1
- package/dist/hooks/use-subagent-events.d.ts.map +1 -1
- package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -1
- package/dist/hooks/use-todos-auto-clear.d.ts +3 -0
- package/dist/hooks/use-todos-auto-clear.d.ts.map +1 -0
- package/dist/hooks/use-tui-activity.d.ts +7 -1
- package/dist/hooks/use-tui-activity.d.ts.map +1 -1
- package/dist/hooks/use-tui-environment-state.d.ts +1 -0
- package/dist/hooks/use-tui-environment-state.d.ts.map +1 -1
- package/dist/hooks/use-tui-slash-commands.d.ts +2 -1
- package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -1
- package/dist/index.js +22376 -20119
- package/dist/index.js.map +4 -4
- package/dist/input-validation/action-helpers.d.ts +12 -0
- package/dist/input-validation/action-helpers.d.ts.map +1 -0
- package/dist/input-validation/action-types.d.ts +4 -0
- package/dist/input-validation/action-types.d.ts.map +1 -0
- package/dist/input-validation/allow-lists.d.ts +29 -0
- package/dist/input-validation/allow-lists.d.ts.map +1 -0
- package/dist/input-validation/limits.d.ts +27 -0
- package/dist/input-validation/limits.d.ts.map +1 -0
- package/dist/input-validation/result.d.ts +10 -0
- package/dist/input-validation/result.d.ts.map +1 -0
- package/dist/input-validation/state-entries.d.ts +22 -0
- package/dist/input-validation/state-entries.d.ts.map +1 -0
- package/dist/input-validation/terminal.d.ts +69 -0
- package/dist/input-validation/terminal.d.ts.map +1 -0
- package/dist/input-validation.d.ts +7 -176
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/layout-engine.d.ts +5 -1
- package/dist/layout-engine.d.ts.map +1 -1
- package/dist/layout-store.d.ts.map +1 -1
- package/dist/mailbox-view-model-types.d.ts +19 -0
- package/dist/mailbox-view-model-types.d.ts.map +1 -0
- package/dist/memory-context-monitor.d.ts +6 -0
- package/dist/memory-context-monitor.d.ts.map +1 -1
- package/dist/memory-slash-format.d.ts +10 -0
- package/dist/memory-slash-format.d.ts.map +1 -0
- package/dist/memory-slash.d.ts.map +1 -1
- package/dist/mouse.d.ts +11 -4
- package/dist/mouse.d.ts.map +1 -1
- package/dist/on-panel-open.d.ts +1 -1
- package/dist/on-panel-open.d.ts.map +1 -1
- package/dist/overlay-key-router.d.ts +1 -1
- package/dist/overlay-key-router.d.ts.map +1 -1
- package/dist/reducers/activity.d.ts +2 -1
- package/dist/reducers/activity.d.ts.map +1 -1
- package/dist/reducers/composer.d.ts +2 -1
- package/dist/reducers/composer.d.ts.map +1 -1
- package/dist/reducers/conversation.d.ts +3 -2
- package/dist/reducers/conversation.d.ts.map +1 -1
- package/dist/reducers/dialogs.d.ts +3 -2
- package/dist/reducers/dialogs.d.ts.map +1 -1
- package/dist/reducers/fleet.d.ts +2 -1
- package/dist/reducers/fleet.d.ts.map +1 -1
- package/dist/reducers/helpers.d.ts +1 -1
- package/dist/reducers/helpers.d.ts.map +1 -1
- package/dist/reducers/panel-pickers.d.ts +2 -1
- package/dist/reducers/panel-pickers.d.ts.map +1 -1
- package/dist/reducers/settings-panel.d.ts +2 -1
- package/dist/reducers/settings-panel.d.ts.map +1 -1
- package/dist/reducers/settings-values.d.ts +2 -1
- package/dist/reducers/settings-values.d.ts.map +1 -1
- package/dist/reducers/workspace-panels.d.ts +3 -2
- package/dist/reducers/workspace-panels.d.ts.map +1 -1
- package/dist/run-tui-client-registration.d.ts +18 -0
- package/dist/run-tui-client-registration.d.ts.map +1 -0
- package/dist/run-tui-options.d.ts +569 -0
- package/dist/run-tui-options.d.ts.map +1 -0
- package/dist/run-tui-title-controller.d.ts +16 -0
- package/dist/run-tui-title-controller.d.ts.map +1 -0
- package/dist/run-tui.d.ts +5 -572
- package/dist/run-tui.d.ts.map +1 -1
- package/dist/scroll-anchor.d.ts +10 -14
- package/dist/scroll-anchor.d.ts.map +1 -1
- package/dist/settings-contracts.d.ts +6 -1
- package/dist/settings-contracts.d.ts.map +1 -1
- package/dist/submit-controller.d.ts +4 -0
- package/dist/submit-controller.d.ts.map +1 -1
- package/dist/submit-prompt-refinement.d.ts +2 -0
- package/dist/submit-prompt-refinement.d.ts.map +1 -1
- package/dist/terminal-modes.d.ts +3 -0
- package/dist/terminal-modes.d.ts.map +1 -0
- package/dist/terminal-silence.d.ts +3 -0
- package/dist/terminal-silence.d.ts.map +1 -0
- package/dist/terminal-title.d.ts +7 -1
- package/dist/terminal-title.d.ts.map +1 -1
- package/dist/tui-host-capabilities.d.ts +1 -1
- package/dist/tui-host-capabilities.d.ts.map +1 -1
- package/dist/ui-contracts.d.ts +2 -1
- package/dist/ui-contracts.d.ts.map +1 -1
- package/package.json +11 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize an action type string before allow-list comparison:
|
|
3
|
+
* - Trim whitespace
|
|
4
|
+
* - Reject empty/null/undefined
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeActionType(type: string): string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Measure the maximum nesting depth of a value.
|
|
9
|
+
* Used to prevent prototype-pollution / deep-object DoS.
|
|
10
|
+
*/
|
|
11
|
+
export declare function measureDepth(value: unknown, depth: number): number;
|
|
12
|
+
//# sourceMappingURL=action-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-helpers.d.ts","sourceRoot":"","sources":["../../src/input-validation/action-helpers.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAoBlE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Known reducer action types — exact, compile-time checked allow-list. */
|
|
2
|
+
export declare const ALLOWED_ACTION_TYPES: readonly ["addEntry", "archiveLoaded", "startArchiveLoad", "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", "copiedNotice", "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", "refineCountdownClose", "refineCountdownOpen", "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", "toggleConnectionsPanel", "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"];
|
|
3
|
+
export type AllowedActionType = (typeof ALLOWED_ACTION_TYPES)[number];
|
|
4
|
+
//# sourceMappingURL=action-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["../../src/input-validation/action-types.ts"],"names":[],"mappings":"AAgBA,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,+yJAsQtB,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** History entry kinds that carry text (must be non-empty to be stored). */
|
|
2
|
+
export declare const TEXT_BEARING_ENTRY_KINDS: Set<string>;
|
|
3
|
+
/** All valid history entry kinds. */
|
|
4
|
+
export declare const ALLOWED_ENTRY_KINDS: Set<string>;
|
|
5
|
+
/** Fleet subagent status values. */
|
|
6
|
+
export declare const ALLOWED_FLEET_STATUSES: Set<string>;
|
|
7
|
+
/** Mouse event kinds */
|
|
8
|
+
export declare const ALLOWED_MOUSE_KINDS: Set<string>;
|
|
9
|
+
/** Mouse buttons */
|
|
10
|
+
export declare const ALLOWED_MOUSE_BUTTONS: Set<string>;
|
|
11
|
+
/** Keyboard modifier keys. */
|
|
12
|
+
export declare const ALLOWED_KEY_EVENT_FIELDS: Set<string>;
|
|
13
|
+
/** Scroll direction for scrollPage. */
|
|
14
|
+
export declare const ALLOWED_SCROLL_DIRS: Set<string>;
|
|
15
|
+
/** Autonomy mode values. */
|
|
16
|
+
export declare const ALLOWED_AUTONOMY_MODES: Set<string>;
|
|
17
|
+
/** Known send modes. */
|
|
18
|
+
export declare const ALLOWED_SEND_MODES: Set<string>;
|
|
19
|
+
/** FleetChat verbosity modes. */
|
|
20
|
+
export declare const ALLOWED_FLEET_CHAT_MODES: Set<string>;
|
|
21
|
+
/** SDD lifecycle ops. */
|
|
22
|
+
export declare const ALLOWED_SDD_OPS: Set<string>;
|
|
23
|
+
/** Project picker item kinds. */
|
|
24
|
+
export declare const ALLOWED_PICKER_KINDS: Set<string>;
|
|
25
|
+
/** Collaboration verdicts. */
|
|
26
|
+
export declare const ALLOWED_COLLAB_VERDICTS: Set<string>;
|
|
27
|
+
/** Known terminal capability keys. */
|
|
28
|
+
export declare const ALLOWED_CAPABILITY_FIELDS: Set<string>;
|
|
29
|
+
//# sourceMappingURL=allow-lists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allow-lists.d.ts","sourceRoot":"","sources":["../../src/input-validation/allow-lists.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,aAQnC,CAAC;AAEH,qCAAqC;AACrC,eAAO,MAAM,mBAAmB,aAQ9B,CAAC;AAEH,oCAAoC;AACpC,eAAO,MAAM,sBAAsB,aAOjC,CAAC;AAEH,wBAAwB;AACxB,eAAO,MAAM,mBAAmB,aAAiD,CAAC;AAElF,oBAAoB;AACpB,eAAO,MAAM,qBAAqB,aAA+C,CAAC;AAElF,8BAA8B;AAC9B,eAAO,MAAM,wBAAwB,aAoBnC,CAAC;AAEH,uCAAuC;AACvC,eAAO,MAAM,mBAAmB,aAA0B,CAAC;AAE3D,4BAA4B;AAC5B,eAAO,MAAM,sBAAsB,aAMjC,CAAC;AAEH,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,aAA+C,CAAC;AAE/E,iCAAiC;AACjC,eAAO,MAAM,wBAAwB,aAAsC,CAAC;AAE5E,yBAAyB;AACzB,eAAO,MAAM,eAAe,aAAwD,CAAC;AAErF,iCAAiC;AACjC,eAAO,MAAM,oBAAoB,aAAiC,CAAC;AAEnE,8BAA8B;AAC9B,eAAO,MAAM,uBAAuB,aAAmD,CAAC;AAExF,sCAAsC;AACtC,eAAO,MAAM,yBAAyB,aAA4D,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Maximum length of a single input line from stdin (before Enter). */
|
|
2
|
+
export declare const MAX_INPUT_BUFFER_CHARS = 100000;
|
|
3
|
+
/** Maximum size of a single paste operation (prevents OOM from 10MB paste). */
|
|
4
|
+
export declare const MAX_PASTE_CHARS = 50000;
|
|
5
|
+
/** Maximum length of a single history entry text payload. */
|
|
6
|
+
export declare const MAX_ENTRY_TEXT_CHARS = 500000;
|
|
7
|
+
/** Maximum entries in the history array (matches history-retention.ts). */
|
|
8
|
+
export declare const MAX_HISTORY_ENTRIES = 400;
|
|
9
|
+
/** Maximum actions in a fleetBatch dispatch (prevents render-thrashing). */
|
|
10
|
+
export declare const MAX_BATCHED_ACTIONS = 500;
|
|
11
|
+
/** Maximum length of a single action payload string field. */
|
|
12
|
+
export declare const MAX_ACTION_STRING_FIELD = 10000;
|
|
13
|
+
/** Maximum subagents tracked in fleet state. */
|
|
14
|
+
export declare const MAX_FLEET_ENTRIES = 200;
|
|
15
|
+
/** Maximum tools tracked per-subagent. */
|
|
16
|
+
export declare const MAX_RECENT_TOOLS = 100;
|
|
17
|
+
/** Maximum messages tracked per-subagent. */
|
|
18
|
+
export declare const MAX_RECENT_MESSAGES = 50;
|
|
19
|
+
/** Maximum depth of nested action payload objects. */
|
|
20
|
+
export declare const MAX_ACTION_DEPTH = 8;
|
|
21
|
+
/** Maximum characters in a paste fragment (single stdin chunk). */
|
|
22
|
+
export declare const MAX_PASTE_FRAGMENT_CHARS = 100000;
|
|
23
|
+
/** Maximum length for any host-provided string (model, provider, etc). */
|
|
24
|
+
export declare const MAX_HOST_STRING_FIELD = 500;
|
|
25
|
+
/** Maximum entries in a picker matches list. */
|
|
26
|
+
export declare const MAX_PICKER_MATCHES = 500;
|
|
27
|
+
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../src/input-validation/limits.ts"],"names":[],"mappings":"AAAA,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;AAC3E,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,0CAA0C;AAC1C,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,SAAU,CAAC;AAEhD,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/input-validation/result.ts"],"names":[],"mappings":"AAAA,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ValidationResult } from './result.js';
|
|
2
|
+
export declare function validateFleetEntry(entry: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: string;
|
|
6
|
+
streamingText?: string;
|
|
7
|
+
iterations?: number;
|
|
8
|
+
toolCalls?: number;
|
|
9
|
+
recentTools?: unknown[];
|
|
10
|
+
recentMessages?: unknown[];
|
|
11
|
+
cost?: number;
|
|
12
|
+
}): ValidationResult<Record<string, unknown>>;
|
|
13
|
+
/**
|
|
14
|
+
* Validate a restored session entry (from JSONL).
|
|
15
|
+
*
|
|
16
|
+
* Rejects:
|
|
17
|
+
* - Non-object entries
|
|
18
|
+
* - Unknown entry kinds
|
|
19
|
+
* - Oversized payloads
|
|
20
|
+
*/
|
|
21
|
+
export declare function validateRestoreEntry(entry: unknown, index: number): ValidationResult<Record<string, unknown>>;
|
|
22
|
+
//# sourceMappingURL=state-entries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-entries.d.ts","sourceRoot":"","sources":["../../src/input-validation/state-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQpD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAkD5C;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,GACZ,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA+B3C"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ValidationResult } from './result.js';
|
|
2
|
+
/**
|
|
3
|
+
* Validate a keyboard input fragment from stdin.
|
|
4
|
+
*
|
|
5
|
+
* This catches raw bytes from the terminal BEFORE they enter the input
|
|
6
|
+
* buffer. The allow-list is: known control sequences, printable ASCII,
|
|
7
|
+
* and common Unicode (which terminals emit as normal keystrokes).
|
|
8
|
+
*
|
|
9
|
+
* Rejects:
|
|
10
|
+
* - Raw escape sequences that don't match known patterns
|
|
11
|
+
* - Fragments containing C0 control chars other than tab/newline (0x09, 0x0a)
|
|
12
|
+
* - Fragments longer than MAX_PASTE_FRAGMENT_CHARS (likely a flood)
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateStdinFragment(data: Buffer | string): ValidationResult<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Validate a fully-assembled paste payload AFTER the terminal markers
|
|
17
|
+
* have been stripped by paste-accumulator.ts.
|
|
18
|
+
*
|
|
19
|
+
* Rejects:
|
|
20
|
+
* - Paste > MAX_PASTE_CHARS
|
|
21
|
+
* - Paste containing C0 control chars (except \n, \t)
|
|
22
|
+
* - Paste that looks binary (>30% non-printable)
|
|
23
|
+
* - Paste with unbalanced surrogate pairs
|
|
24
|
+
*/
|
|
25
|
+
export declare function validatePasteContent(content: string): ValidationResult<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Validate a parsed mouse event from the SGR protocol.
|
|
28
|
+
*
|
|
29
|
+
* Rejects:
|
|
30
|
+
* - Unknown mouse event kinds
|
|
31
|
+
* - Unknown button values
|
|
32
|
+
* - Coordinates outside reasonable terminal bounds (0 < x < 5000, 0 < y < 5000)
|
|
33
|
+
* - Wheel values other than -1, 0, 1
|
|
34
|
+
*/
|
|
35
|
+
export declare function validateMouseEvent(event: {
|
|
36
|
+
kind: string;
|
|
37
|
+
button: string;
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
wheel: number;
|
|
41
|
+
shift?: boolean;
|
|
42
|
+
meta?: boolean;
|
|
43
|
+
ctrl?: boolean;
|
|
44
|
+
motion?: boolean;
|
|
45
|
+
}): ValidationResult<{
|
|
46
|
+
kind: string;
|
|
47
|
+
button: string;
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
wheel: number;
|
|
51
|
+
shift: boolean;
|
|
52
|
+
meta: boolean;
|
|
53
|
+
ctrl: boolean;
|
|
54
|
+
motion: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Validate a KeyEvent from stdin against the known allow-list.
|
|
58
|
+
*
|
|
59
|
+
* Every boolean field in a KeyEvent must be exactly `true` or `false`.
|
|
60
|
+
* `fn` must be 1–12 when present. `wheelDeltaY` must be an integer.
|
|
61
|
+
*
|
|
62
|
+
* Rejects:
|
|
63
|
+
* - Unknown fields on the key event object
|
|
64
|
+
* - Non-boolean values for boolean fields
|
|
65
|
+
* - fn outside 1–12
|
|
66
|
+
* - wheelDeltaY that is not an integer
|
|
67
|
+
*/
|
|
68
|
+
export declare function validateKeyEventFields(key: Record<string, unknown>): ValidationResult<Record<string, unknown>>;
|
|
69
|
+
//# sourceMappingURL=terminal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../../src/input-validation/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAQpD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAgDrF;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAkC9E;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,gBAAgB,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC,CAuDD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAwC3C"}
|
|
@@ -50,186 +50,17 @@
|
|
|
50
50
|
* - Enum/union allow-lists are defined as `const` arrays and kept in
|
|
51
51
|
* ONE place so the allowed set is auditable.
|
|
52
52
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
export type ValidationResult<T> = ValidationOk<T> | ValidationError;
|
|
62
|
-
/** Maximum length of a single input line from stdin (before Enter). */
|
|
63
|
-
export declare const MAX_INPUT_BUFFER_CHARS = 100000;
|
|
64
|
-
/** Maximum size of a single paste operation (prevents OOM from 10MB paste). */
|
|
65
|
-
export declare const MAX_PASTE_CHARS = 50000;
|
|
66
|
-
/** Maximum length of a single history entry text payload. */
|
|
67
|
-
export declare const MAX_ENTRY_TEXT_CHARS = 500000;
|
|
68
|
-
/** Maximum entries in the history array (matches history-retention.ts). */
|
|
69
|
-
export declare const MAX_HISTORY_ENTRIES = 400;
|
|
70
|
-
/** Maximum actions in a fleetBatch dispatch (prevents render-thrashing). */
|
|
71
|
-
export declare const MAX_BATCHED_ACTIONS = 500;
|
|
72
|
-
/** Maximum length of a single action payload string field. */
|
|
73
|
-
export declare const MAX_ACTION_STRING_FIELD = 10000;
|
|
74
|
-
/** Maximum subagents tracked in fleet state. */
|
|
75
|
-
export declare const MAX_FLEET_ENTRIES = 200;
|
|
76
|
-
/** Maximum tools tracked per-subagent. */
|
|
77
|
-
export declare const MAX_RECENT_TOOLS = 100;
|
|
78
|
-
/** Maximum messages tracked per-subagent. */
|
|
79
|
-
export declare const MAX_RECENT_MESSAGES = 50;
|
|
80
|
-
/** Maximum depth of nested action payload objects. */
|
|
81
|
-
export declare const MAX_ACTION_DEPTH = 8;
|
|
82
|
-
/** Maximum characters in a paste fragment (single stdin chunk). */
|
|
83
|
-
export declare const MAX_PASTE_FRAGMENT_CHARS = 100000;
|
|
84
|
-
/** Maximum length for any host-provided string (model, provider, etc). */
|
|
85
|
-
export declare const MAX_HOST_STRING_FIELD = 500;
|
|
86
|
-
/** Maximum entries in a picker matches list. */
|
|
87
|
-
export declare const MAX_PICKER_MATCHES = 500;
|
|
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", "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
|
-
export type AllowedActionType = (typeof ALLOWED_ACTION_TYPES)[number];
|
|
91
|
-
/** History entry kinds that carry text (must be non-empty to be stored). */
|
|
92
|
-
export declare const TEXT_BEARING_ENTRY_KINDS: Set<string>;
|
|
93
|
-
/** All valid history entry kinds. */
|
|
94
|
-
export declare const ALLOWED_ENTRY_KINDS: Set<string>;
|
|
95
|
-
/** Fleet subagent status values. */
|
|
96
|
-
export declare const ALLOWED_FLEET_STATUSES: Set<string>;
|
|
97
|
-
/** Mouse event kinds */
|
|
98
|
-
export declare const ALLOWED_MOUSE_KINDS: Set<string>;
|
|
99
|
-
/** Mouse buttons */
|
|
100
|
-
export declare const ALLOWED_MOUSE_BUTTONS: Set<string>;
|
|
101
|
-
/** Keyboard modifier keys. */
|
|
102
|
-
export declare const ALLOWED_KEY_EVENT_FIELDS: Set<string>;
|
|
103
|
-
/** Scroll direction for scrollPage. */
|
|
104
|
-
export declare const ALLOWED_SCROLL_DIRS: Set<string>;
|
|
105
|
-
/** Autonomy mode values. */
|
|
106
|
-
export declare const ALLOWED_AUTONOMY_MODES: Set<string>;
|
|
107
|
-
/** Known send modes. */
|
|
108
|
-
export declare const ALLOWED_SEND_MODES: Set<string>;
|
|
109
|
-
/** FleetChat verbosity modes. */
|
|
110
|
-
export declare const ALLOWED_FLEET_CHAT_MODES: Set<string>;
|
|
111
|
-
/** SDD lifecycle ops. */
|
|
112
|
-
export declare const ALLOWED_SDD_OPS: Set<string>;
|
|
113
|
-
/** Project picker item kinds. */
|
|
114
|
-
export declare const ALLOWED_PICKER_KINDS: Set<string>;
|
|
115
|
-
/** Collaboration verdicts. */
|
|
116
|
-
export declare const ALLOWED_COLLAB_VERDICTS: Set<string>;
|
|
117
|
-
/** Known terminal capability keys. */
|
|
118
|
-
export declare const ALLOWED_CAPABILITY_FIELDS: Set<string>;
|
|
119
|
-
/**
|
|
120
|
-
* Validate a keyboard input fragment from stdin.
|
|
121
|
-
*
|
|
122
|
-
* This catches raw bytes from the terminal BEFORE they enter the input
|
|
123
|
-
* buffer. The allow-list is: known control sequences, printable ASCII,
|
|
124
|
-
* and common Unicode (which terminals emit as normal keystrokes).
|
|
125
|
-
*
|
|
126
|
-
* Rejects:
|
|
127
|
-
* - Raw escape sequences that don't match known patterns
|
|
128
|
-
* - Fragments containing C0 control chars other than tab/newline (0x09, 0x0a)
|
|
129
|
-
* - Fragments longer than MAX_PASTE_FRAGMENT_CHARS (likely a flood)
|
|
130
|
-
*/
|
|
131
|
-
export declare function validateStdinFragment(data: Buffer | string): ValidationResult<string>;
|
|
132
|
-
/**
|
|
133
|
-
* Validate a fully-assembled paste payload AFTER the terminal markers
|
|
134
|
-
* have been stripped by paste-accumulator.ts.
|
|
135
|
-
*
|
|
136
|
-
* Rejects:
|
|
137
|
-
* - Paste > MAX_PASTE_CHARS
|
|
138
|
-
* - Paste containing C0 control chars (except \n, \t)
|
|
139
|
-
* - Paste that looks binary (>30% non-printable)
|
|
140
|
-
* - Paste with unbalanced surrogate pairs
|
|
141
|
-
*/
|
|
142
|
-
export declare function validatePasteContent(content: string): ValidationResult<string>;
|
|
143
|
-
/**
|
|
144
|
-
* Validate a parsed mouse event from the SGR protocol.
|
|
145
|
-
*
|
|
146
|
-
* Rejects:
|
|
147
|
-
* - Unknown mouse event kinds
|
|
148
|
-
* - Unknown button values
|
|
149
|
-
* - Coordinates outside reasonable terminal bounds (0 < x < 5000, 0 < y < 5000)
|
|
150
|
-
* - Wheel values other than -1, 0, 1
|
|
151
|
-
*/
|
|
152
|
-
export declare function validateMouseEvent(event: {
|
|
153
|
-
kind: string;
|
|
154
|
-
button: string;
|
|
155
|
-
x: number;
|
|
156
|
-
y: number;
|
|
157
|
-
wheel: number;
|
|
158
|
-
shift?: boolean;
|
|
159
|
-
meta?: boolean;
|
|
160
|
-
ctrl?: boolean;
|
|
161
|
-
motion?: boolean;
|
|
162
|
-
}): ValidationResult<{
|
|
163
|
-
kind: string;
|
|
164
|
-
button: string;
|
|
165
|
-
x: number;
|
|
166
|
-
y: number;
|
|
167
|
-
wheel: number;
|
|
168
|
-
shift: boolean;
|
|
169
|
-
meta: boolean;
|
|
170
|
-
ctrl: boolean;
|
|
171
|
-
motion: boolean;
|
|
172
|
-
}>;
|
|
173
|
-
/**
|
|
174
|
-
* Validate a KeyEvent from stdin against the known allow-list.
|
|
175
|
-
*
|
|
176
|
-
* Every boolean field in a KeyEvent must be exactly `true` or `false`.
|
|
177
|
-
* `fn` must be 1–12 when present. `wheelDeltaY` must be an integer.
|
|
178
|
-
*
|
|
179
|
-
* Rejects:
|
|
180
|
-
* - Unknown fields on the key event object
|
|
181
|
-
* - Non-boolean values for boolean fields
|
|
182
|
-
* - fn outside 1–12
|
|
183
|
-
* - wheelDeltaY that is not an integer
|
|
184
|
-
*/
|
|
185
|
-
export declare function validateKeyEventFields(key: Record<string, unknown>): ValidationResult<Record<string, unknown>>;
|
|
186
|
-
/**
|
|
187
|
-
* Validate a reducer Action before dispatch.
|
|
188
|
-
*
|
|
189
|
-
* This is the central gate for all state mutations. EVERY dispatch from
|
|
190
|
-
* external sources (keyboard, host callbacks, fleet events, restore data)
|
|
191
|
-
* should run through this before reaching the reducer.
|
|
192
|
-
*
|
|
193
|
-
* Rejects:
|
|
194
|
-
* - Unknown action types
|
|
195
|
-
* - Malformed payload types
|
|
196
|
-
* - Oversized strings/arrays
|
|
197
|
-
* - Out-of-range numeric values
|
|
198
|
-
* - Deeply nested payloads (prototype poison / DoS)
|
|
199
|
-
*/
|
|
53
|
+
import type { ValidationResult } from './input-validation/result.js';
|
|
54
|
+
export { ALLOWED_ACTION_TYPES, type AllowedActionType, } from './input-validation/action-types.js';
|
|
55
|
+
export { ALLOWED_AUTONOMY_MODES, ALLOWED_CAPABILITY_FIELDS, ALLOWED_COLLAB_VERDICTS, ALLOWED_ENTRY_KINDS, ALLOWED_FLEET_CHAT_MODES, ALLOWED_FLEET_STATUSES, ALLOWED_KEY_EVENT_FIELDS, ALLOWED_MOUSE_BUTTONS, ALLOWED_MOUSE_KINDS, ALLOWED_PICKER_KINDS, ALLOWED_SCROLL_DIRS, ALLOWED_SDD_OPS, ALLOWED_SEND_MODES, TEXT_BEARING_ENTRY_KINDS, } from './input-validation/allow-lists.js';
|
|
56
|
+
export { MAX_ACTION_DEPTH, MAX_ACTION_STRING_FIELD, MAX_BATCHED_ACTIONS, MAX_ENTRY_TEXT_CHARS, MAX_FLEET_ENTRIES, MAX_HISTORY_ENTRIES, MAX_HOST_STRING_FIELD, MAX_INPUT_BUFFER_CHARS, MAX_PASTE_CHARS, MAX_PASTE_FRAGMENT_CHARS, MAX_PICKER_MATCHES, MAX_RECENT_MESSAGES, MAX_RECENT_TOOLS, } from './input-validation/limits.js';
|
|
57
|
+
export type { ValidationError, ValidationOk, ValidationResult, } from './input-validation/result.js';
|
|
58
|
+
export { validateKeyEventFields, validateMouseEvent, validatePasteContent, validateStdinFragment, } from './input-validation/terminal.js';
|
|
59
|
+
export { validateFleetEntry, validateRestoreEntry } from './input-validation/state-entries.js';
|
|
200
60
|
export declare function validateAction(action: {
|
|
201
61
|
type: string;
|
|
202
62
|
[key: string]: unknown;
|
|
203
63
|
}): ValidationResult<Record<string, unknown>>;
|
|
204
|
-
/**
|
|
205
|
-
* Validate a fleet subagent entry from telemetry.
|
|
206
|
-
*
|
|
207
|
-
* Rejects:
|
|
208
|
-
* - Unknown status
|
|
209
|
-
* - Oversized streamingText
|
|
210
|
-
* - Malformed recent tools/messages arrays
|
|
211
|
-
* - Non-finite cost
|
|
212
|
-
*/
|
|
213
|
-
export declare function validateFleetEntry(entry: {
|
|
214
|
-
id: string;
|
|
215
|
-
name: string;
|
|
216
|
-
status: string;
|
|
217
|
-
streamingText?: string;
|
|
218
|
-
iterations?: number;
|
|
219
|
-
toolCalls?: number;
|
|
220
|
-
recentTools?: unknown[];
|
|
221
|
-
recentMessages?: unknown[];
|
|
222
|
-
cost?: number;
|
|
223
|
-
}): ValidationResult<Record<string, unknown>>;
|
|
224
|
-
/**
|
|
225
|
-
* Validate a restored session entry (from JSONL).
|
|
226
|
-
*
|
|
227
|
-
* Rejects:
|
|
228
|
-
* - Non-object entries
|
|
229
|
-
* - Unknown entry kinds
|
|
230
|
-
* - Oversized payloads
|
|
231
|
-
*/
|
|
232
|
-
export declare function validateRestoreEntry(entry: unknown, index: number): ValidationResult<Record<string, unknown>>;
|
|
233
64
|
/**
|
|
234
65
|
* Validate that an action dispatch is safe for the reducer.
|
|
235
66
|
* This is a convenience wrapper used at the dispatch boundary.
|
|
@@ -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;AA0BH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EACL,oBAAoB,EACpB,KAAK,iBA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,OAAO,CAAC;CACxB,EACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,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/layout-engine.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface LayoutSnapshot {
|
|
|
50
50
|
entries: Record<number, EntryLayout>;
|
|
51
51
|
}
|
|
52
52
|
/** Current layout computation version. Bump when the algorithm changes. */
|
|
53
|
-
export declare const LAYOUT_VERSION =
|
|
53
|
+
export declare const LAYOUT_VERSION = 2;
|
|
54
54
|
/** Default fallback row count for entries without computed layout. */
|
|
55
55
|
export declare const FALLBACK_ROWS = 3;
|
|
56
56
|
/**
|
|
@@ -86,6 +86,10 @@ export declare function computeEntryRows(kind: string, text: string, termWidth:
|
|
|
86
86
|
hasNextSteps?: boolean;
|
|
87
87
|
/** For 'assistant' content: how many code blocks, approximate. */
|
|
88
88
|
codeBlockCount?: number;
|
|
89
|
+
/** For 'memory-activation': how many memories were injected (proof rows). */
|
|
90
|
+
memoryInjectedCount?: number;
|
|
91
|
+
/** For 'memory-activation': whether the searched-query line is rendered. */
|
|
92
|
+
memoryHasQuery?: boolean;
|
|
89
93
|
}): number;
|
|
90
94
|
/**
|
|
91
95
|
* Count the total characters across all display-relevant fields of an entry.
|
|
@@ -1 +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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A2D;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;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,SAAwB,GAAG,IAAI,CAsBpF;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,CAyC5B;IAED;;;OAGG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CA4B9B;IAID,0CAA0C;IAC1C,OAAO,CAAC,aAAa;IASrB,gCAAgC;IAChC,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MailboxAgentStatus, MailboxMessage, MailboxProjectServerStatus } from '@wrongstack/core/coordination';
|
|
2
|
+
export interface TuiMailboxSnapshot {
|
|
3
|
+
actorId?: string | undefined;
|
|
4
|
+
messages: MailboxMessage[];
|
|
5
|
+
agents: MailboxAgentStatus[];
|
|
6
|
+
unread: number;
|
|
7
|
+
clients: {
|
|
8
|
+
tui: number;
|
|
9
|
+
webui: number;
|
|
10
|
+
repl: number;
|
|
11
|
+
};
|
|
12
|
+
service: ({
|
|
13
|
+
state: 'online';
|
|
14
|
+
} & Pick<MailboxProjectServerStatus, 'storageKind' | 'pid' | 'clients' | 'pendingRequests' | 'protocolVersion'>) | {
|
|
15
|
+
state: 'offline';
|
|
16
|
+
error?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=mailbox-view-model-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox-view-model-types.d.ts","sourceRoot":"","sources":["../src/mailbox-view-model-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,OAAO,EACH,CAAC;QAAE,KAAK,EAAE,QAAQ,CAAA;KAAE,GAAG,IAAI,CACzB,0BAA0B,EAC1B,aAAa,GAAG,KAAK,GAAG,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,CAC1E,CAAC,GACF;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CACtD"}
|
|
@@ -3,6 +3,12 @@ export interface MemoryContextDetail {
|
|
|
3
3
|
kind: string;
|
|
4
4
|
text: string;
|
|
5
5
|
score: number;
|
|
6
|
+
/**
|
|
7
|
+
* The relation gate's own value. `score` alone cannot explain an injection
|
|
8
|
+
* because metadata boosts can carry a weak relation over the score bar —
|
|
9
|
+
* this is the number the `relationFloor` gate actually tested.
|
|
10
|
+
*/
|
|
11
|
+
relationStrength: number;
|
|
6
12
|
confidence: number;
|
|
7
13
|
freshness: number;
|
|
8
14
|
importance: number;
|
|
@@ -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,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACj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CAEjF;AAED,uFAAuF;AACvF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAG7F;AAED,iGAAiG;AACjG,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA+BvF;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,yBAAyB,CAyD3B;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,yBAAyB,CAqD3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MemoryPriority, MemoryScope, MemoryType } from '@wrongstack/core/types';
|
|
2
|
+
export declare const SCOPE_LABEL: Record<MemoryScope, string>;
|
|
3
|
+
export declare const TYPE_EMOJI: Record<MemoryType, string>;
|
|
4
|
+
export declare const PRIORITY_EMOJI: Record<MemoryPriority, string>;
|
|
5
|
+
export declare const KIND_EMOJI: Record<string, string>;
|
|
6
|
+
export declare function parseDate(ts: string): Date | null;
|
|
7
|
+
export declare function daysAgo(ts: string): number | null;
|
|
8
|
+
export declare function fmtDate(ts: string): string;
|
|
9
|
+
export declare function recencyLabel(days: number | null): string;
|
|
10
|
+
//# sourceMappingURL=memory-slash-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-slash-format.d.ts","sourceRoot":"","sources":["../src/memory-slash-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEtF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAInD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAOjD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKzD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa7C,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAIjD;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIjD;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAI1C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAOxD"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAanF,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,UAAU,CAAC;CACzB;AAyvBD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,eAAe;IAE1D,IAAI;IACJ,WAAW;IACX,QAAQ;IACR,QAAQ,EAAE,SAAS;IACnB,IAAI;IAiBE,GAAG,OAAO,MAAM;iBAtIJ,MAAM;;EAwgB3B"}
|
package/dist/mouse.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SGR mouse protocol (xterm DEC private modes).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* SGR mouse protocol (xterm DEC private modes). Mouse tracking and alternate
|
|
3
|
+
* screen mode (?1049h) are independent terminal capabilities; the full-screen
|
|
4
|
+
* TUI enables both and tears both down explicitly.
|
|
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)
|
|
@@ -12,7 +12,8 @@
|
|
|
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
14
|
* users keep access to terminal scrollback — but plain wheel events are owned
|
|
15
|
-
* by the app while tracking is active.
|
|
15
|
+
* by the app while tracking is active. Managed history therefore keeps cheap
|
|
16
|
+
* click/wheel tracking active; full pointer/drag behavior remains opt-in.
|
|
16
17
|
*/
|
|
17
18
|
/** Click + wheel only (mode 1000). Cheapest; no motion events. */
|
|
18
19
|
export declare const MOUSE_CLICK_ON: string;
|
|
@@ -31,6 +32,12 @@ export interface MouseTrackingPolicy {
|
|
|
31
32
|
fullMode: boolean;
|
|
32
33
|
/** A picker that benefits from temporary click/wheel ownership is visible. */
|
|
33
34
|
overlayOpen: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The chat transcript is rendered in a bounded, application-managed
|
|
37
|
+
* viewport. Its wheel must be reported to the app because native terminal
|
|
38
|
+
* scrollback cannot move virtualized content.
|
|
39
|
+
*/
|
|
40
|
+
managedHistory: boolean;
|
|
34
41
|
/** Startup terminal capability probe. Undefined keeps legacy callers enabled. */
|
|
35
42
|
protocol?: 'none' | 'x10' | 'urxvt' | 'sgr' | undefined;
|
|
36
43
|
}
|
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;;;;;;;;;;;;;;;;GAgBG;AAIH,kEAAkE;AAClE,eAAO,MAAM,cAAc,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