@wrongstack/tui 0.295.0 → 0.296.2
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 +987 -0
- package/dist/app-action-type.d.ts.map +1 -0
- package/dist/app-initial-state.d.ts +4 -2
- package/dist/app-initial-state.d.ts.map +1 -1
- package/dist/app-key-handler.d.ts +12 -4
- 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 +73 -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 +46 -1179
- package/dist/app-state.d.ts.map +1 -1
- package/dist/app-status-region.d.ts +1 -1
- package/dist/app-status-region.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/entry-error-boundary.d.ts +37 -0
- package/dist/components/entry-error-boundary.d.ts.map +1 -0
- package/dist/components/f-key-picker.d.ts.map +1 -1
- package/dist/components/history/banner.d.ts +1 -1
- package/dist/components/history/banner.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 +1 -1
- 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/replay.d.ts +12 -0
- package/dist/components/history/replay.d.ts.map +1 -1
- package/dist/components/history/sage-output-format.d.ts +20 -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 +14 -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 +1 -0
- 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 +270 -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 +6 -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/components/tools-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 +2 -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-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-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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19532 -17672
- 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 +10 -179
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/layout-engine.d.ts +1 -1
- package/dist/layout-engine.d.ts.map +1 -1
- package/dist/layout-store.d.ts +8 -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.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.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 +1 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/history/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/history/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACL,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,4BAA4B,EAC5B,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/F,OAAO,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,MAAM,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,cAAc,EACd,mBAAmB,EACnB,QAAQ,EACR,YAAY,GACb,MAAM,YAAY,CAAC;AAIpB;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,uJASjB,YAAY,KAAG,KAAK,CAAC,YAAY,CAmIlC,CAAC"}
|
|
@@ -16,5 +16,17 @@ import type { HistoryEntry } from './types.js';
|
|
|
16
16
|
* meta-only tool-chip variants.
|
|
17
17
|
*/
|
|
18
18
|
export declare function replaySessionMessages(messages: readonly Message[], events: readonly SessionEvent[], startId: number): HistoryEntry[];
|
|
19
|
+
/**
|
|
20
|
+
* Raw-event replay: renders the JSONL stream directly, without the
|
|
21
|
+
* reconstructed message backbone.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated Not the resume renderer. Use {@link replaySessionMessages} —
|
|
24
|
+
* it is the canonical one, and the only one both the boot `--resume` path and
|
|
25
|
+
* the in-session resume picker use. This variant cannot reconstruct sessions
|
|
26
|
+
* written through the exact message journal (`message_appended`/`_updated`/
|
|
27
|
+
* `_replaced`), because those events carry the conversation and this function
|
|
28
|
+
* ignores them. Kept for the legacy event-only tests and any embedder holding
|
|
29
|
+
* a bare event array; deliberately absent from the package barrel.
|
|
30
|
+
*/
|
|
19
31
|
export declare function replaySessionEvents(events: SessionEvent[], startId: number): HistoryEntry[];
|
|
20
32
|
//# sourceMappingURL=replay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../../src/components/history/replay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../../src/components/history/replay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,OAAO,EAAE,YAAY,EAAiB,MAAM,wBAAwB,CAAC;AAErG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuF/C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,OAAO,EAAE,MAAM,GACd,YAAY,EAAE,CAyHhB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,EAAE,CAoC3F"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SageSplit {
|
|
2
|
+
/** Tool result text with the SAGE block removed. */
|
|
3
|
+
cleanOutput: string;
|
|
4
|
+
/** Extracted SAGE block lines (including the `--- SAGE:` header), or empty. */
|
|
5
|
+
sageLines: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare function extractSageBlock(output: string): SageSplit;
|
|
8
|
+
export declare function formatToolOutputSageWith(input: {
|
|
9
|
+
toolName: string;
|
|
10
|
+
output: string | undefined;
|
|
11
|
+
ok: boolean;
|
|
12
|
+
outputBytes?: number | undefined;
|
|
13
|
+
outputLines?: number | undefined;
|
|
14
|
+
formatToolOutput(toolName: string, output: string | undefined, ok: boolean, outputBytes?: number | undefined, outputLines?: number | undefined): string[];
|
|
15
|
+
}): {
|
|
16
|
+
cleanOutput: string;
|
|
17
|
+
outLines: string[];
|
|
18
|
+
sageLines: string[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=sage-output-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sage-output-format.d.ts","sourceRoot":"","sources":["../../../src/components/history/sage-output-format.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AASD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAuB1D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,gBAAgB,CACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,EAAE,EAAE,OAAO,EACX,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,EAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,GAC/B,MAAM,EAAE,CAAC;CACb,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CAgBnE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const MAX_STREAM_DISPLAY_CHARS = 480;
|
|
3
|
+
/** Fixed layout height of the live tool-stream tail for scroll-range math. */
|
|
4
|
+
export declare function toolStreamBoxHeight(name: string): number;
|
|
5
|
+
/**
|
|
6
|
+
* Build the CONSTANT-height content block for the live tool-stream box: always
|
|
7
|
+
* exactly `maxLines` rows, newest-pinned-to-bottom, every line truncated to
|
|
8
|
+
* `contentWidth` so nothing wraps. Holding the row count fixed is what stops the
|
|
9
|
+
* live region from growing (and thus scrolling the terminal + leaking the header
|
|
10
|
+
* into scrollback) as output streams in. Pure + exported for testing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function streamBoxRows(text: string, maxLines: number, contentWidth: number): Array<{
|
|
13
|
+
text: string;
|
|
14
|
+
italic?: boolean | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const ToolStreamBox: React.MemoExoticComponent<({ name, text, startedAt, termWidth, }: {
|
|
17
|
+
name: string;
|
|
18
|
+
text: string;
|
|
19
|
+
startedAt: number;
|
|
20
|
+
termWidth: number;
|
|
21
|
+
}) => React.ReactElement>;
|
|
22
|
+
export declare function tailForDisplay(text: string, maxChars: number): string;
|
|
23
|
+
//# sourceMappingURL=stream-box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-box.d.ts","sourceRoot":"","sources":["../../../src/components/history/stream-box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAM5C,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,GACnB,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC,CAevD;AAED,eAAO,MAAM,aAAa,oEAKvB;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,KAAK,CAAC,YAAY,CAoDpB,CAAC;AAEH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-arg-format.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-arg-format.ts"],"names":[],"mappings":"AAqBA;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CA6OvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-group.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-group.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM/C,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GACvC;IAAE,IAA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AAS,EAAE,MAAM,CAAC;CACnB,GAAG,KAAK,CAAC,YAAY,CAsCrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-output-summary.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-output-summary.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CA4C/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-command.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-command.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CAyB9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
export declare function visualTodo(text: string, input?: unknown): ToolVisualLine[] | undefined;
|
|
3
|
+
export declare function visualWorkBoard(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
4
|
+
export declare function visualDocument(text: string): ToolVisualLine[] | undefined;
|
|
5
|
+
export declare function visualToolCatalog(toolName: string, text: string): ToolVisualLine[] | undefined;
|
|
6
|
+
export declare function visualMetaExecution(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
7
|
+
export declare function visualCodebase(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
8
|
+
//# sourceMappingURL=tool-visual-domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-domain.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-domain.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAyCtF;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA6B9B;AA2CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAqBzE;AAoBD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CA4B9F;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA2C9B;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CA2D9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
export declare function recordToStringFields(obj: Record<string, unknown>): Record<string, string>;
|
|
3
|
+
export declare function appendOutputPreview(rows: ToolVisualLine[], output: string | undefined, kind: 'stdout' | 'stderr'): void;
|
|
4
|
+
export declare function bodyLines(text: string): string[];
|
|
5
|
+
export declare function parseHeaderLine(text: string): {
|
|
6
|
+
label: string;
|
|
7
|
+
fields: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
export declare function parseInlineFields(raw: string): Record<string, string>;
|
|
10
|
+
export declare function parseNamedSections(text: string): Map<string, string>;
|
|
11
|
+
export declare function parseKeyValueLines(text: string): Record<string, string>;
|
|
12
|
+
export declare function numberFromParsedField(fields: Record<string, string>, key: string): number | undefined;
|
|
13
|
+
//# sourceMappingURL=tool-visual-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-format.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASzF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,cAAc,EAAE,EACtB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GACxB,IAAI,CAMN;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAMhD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAM/F;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBpE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOvE;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,SAAS,CAKpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
/** Turn the compact text emitted by plug-lsp into navigable, severity-aware rows. */
|
|
3
|
+
export declare function visualLsp(toolName: string, text: string, ok: boolean): ToolVisualLine[];
|
|
4
|
+
//# sourceMappingURL=tool-visual-lsp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-lsp.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-lsp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,CAmGvF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
export declare function visualFetch(text: string): ToolVisualLine[] | undefined;
|
|
3
|
+
export declare function visualJson(text: string): ToolVisualLine[] | undefined;
|
|
4
|
+
export declare function visualOutdated(text: string): ToolVisualLine[] | undefined;
|
|
5
|
+
export declare function visualAudit(text: string): ToolVisualLine[] | undefined;
|
|
6
|
+
export declare function visualScaffold(text: string): ToolVisualLine[] | undefined;
|
|
7
|
+
//# sourceMappingURL=tool-visual-misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-misc.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-misc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAetE;AA6BD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAiBrE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAMzE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAkBtE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAazE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
export declare function visualWorkingDir(text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
3
|
+
export declare function visualMode(text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
4
|
+
//# sourceMappingURL=tool-visual-mode-workdir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-mode-workdir.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-mode-workdir.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAgBxF;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc,EAAE,GAAG,SAAS,CAuClF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ToolVisualLineKind = 'ok' | 'warn' | 'error' | 'meta' | 'path' | 'match' | 'code' | 'stdout' | 'stderr';
|
|
2
|
+
export interface ToolVisualLine {
|
|
3
|
+
kind: ToolVisualLineKind;
|
|
4
|
+
text: string;
|
|
5
|
+
marker?: string | undefined;
|
|
6
|
+
lineNo?: string | undefined;
|
|
7
|
+
path?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=tool-visual-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-visual-types.d.ts","sourceRoot":"","sources":["../../../src/components/history/tool-visual-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,IAAI,GACJ,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B"}
|
|
@@ -1,67 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export declare function truncMid(s: string, max: number): string;
|
|
9
|
-
export declare function stringOf(v: unknown): string | undefined;
|
|
10
|
-
export declare function numOf(v: unknown): number | undefined;
|
|
11
|
-
export declare function tryParseJson(s: string): unknown;
|
|
12
|
-
export declare function scanNumberedRange(text: string): {
|
|
13
|
-
first?: number | undefined;
|
|
14
|
-
last?: number | undefined;
|
|
15
|
-
count: number;
|
|
16
|
-
};
|
|
17
|
-
export declare function countLines(text: string): number;
|
|
18
|
-
export declare function firstNonEmpty(text: string): string | undefined;
|
|
19
|
-
export declare function formatMatchHit(hit: unknown): string | undefined;
|
|
1
|
+
export { countLines, firstNonEmpty, fmtBytes, fmtDuration, fmtTok, formatMatchHit, numOf, previewArgs, previewOutput, scanNumberedRange, shortenPath, stringOf, truncMid, tryParseJson, } from './basic-format.js';
|
|
2
|
+
export { MAX_STREAM_DISPLAY_CHARS, streamBoxRows, ToolStreamBox, tailForDisplay, toolStreamBoxHeight, } from './stream-box.js';
|
|
3
|
+
export { ToolOutputLines } from './visual-lines.js';
|
|
4
|
+
export type { ToolVisualLine, ToolVisualLineKind } from './tool-visual-types.js';
|
|
5
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
6
|
+
export { formatToolArgs } from './tool-arg-format.js';
|
|
7
|
+
export { extractSageBlock, type SageSplit } from './sage-output-format.js';
|
|
20
8
|
/**
|
|
21
|
-
*
|
|
9
|
+
* Like `formatToolOutput` but strips SAGE-injected memory lines first.
|
|
10
|
+
* Returns the tool output lines and any SAGE block lines separately.
|
|
22
11
|
*/
|
|
23
|
-
export declare function
|
|
12
|
+
export declare function formatToolOutputSage(toolName: string, output: string | undefined, ok: boolean, outputBytes?: number | undefined, outputLines?: number | undefined): {
|
|
13
|
+
cleanOutput: string;
|
|
14
|
+
outLines: string[];
|
|
15
|
+
sageLines: string[];
|
|
16
|
+
};
|
|
24
17
|
/**
|
|
25
18
|
* Distil a tool's result text into 0–N digest lines the renderer can stack.
|
|
26
19
|
*/
|
|
27
20
|
export declare function formatToolOutput(toolName: string, output: string | undefined, ok: boolean, _outputBytes?: number | undefined, outputLines?: number | undefined): string[];
|
|
28
|
-
export type ToolVisualLineKind = 'ok' | 'warn' | 'error' | 'meta' | 'path' | 'match' | 'code' | 'stdout' | 'stderr';
|
|
29
|
-
export interface ToolVisualLine {
|
|
30
|
-
kind: ToolVisualLineKind;
|
|
31
|
-
text: string;
|
|
32
|
-
marker?: string | undefined;
|
|
33
|
-
lineNo?: string | undefined;
|
|
34
|
-
path?: string | undefined;
|
|
35
|
-
}
|
|
36
21
|
/**
|
|
37
22
|
* Build richer terminal-native rows for common tool outputs. This handles both
|
|
38
23
|
* raw JSON-shaped results used by unit tests and the compact serializer text
|
|
39
24
|
* emitted in real sessions.
|
|
40
25
|
*/
|
|
41
26
|
export declare function formatToolVisualOutput(toolName: string, output: string | undefined, ok: boolean, input?: unknown | undefined): ToolVisualLine[] | undefined;
|
|
42
|
-
export declare function ToolOutputLines({ lines, hasFollowingBlock, }: {
|
|
43
|
-
lines: ToolVisualLine[];
|
|
44
|
-
hasFollowingBlock?: boolean | undefined;
|
|
45
|
-
}): React.ReactElement;
|
|
46
|
-
export declare const MAX_STREAM_DISPLAY_CHARS = 480;
|
|
47
|
-
/** Fixed layout height of the live tool-stream tail for scroll-range math. */
|
|
48
|
-
export declare function toolStreamBoxHeight(name: string): number;
|
|
49
|
-
/**
|
|
50
|
-
* Build the CONSTANT-height content block for the live tool-stream box: always
|
|
51
|
-
* exactly `maxLines` rows, newest-pinned-to-bottom, every line truncated to
|
|
52
|
-
* `contentWidth` so nothing wraps. Holding the row count fixed is what stops the
|
|
53
|
-
* live region from growing (and thus scrolling the terminal + leaking the header
|
|
54
|
-
* into scrollback) as output streams in. Pure + exported for testing.
|
|
55
|
-
*/
|
|
56
|
-
export declare function streamBoxRows(text: string, maxLines: number, contentWidth: number): Array<{
|
|
57
|
-
text: string;
|
|
58
|
-
italic?: boolean | undefined;
|
|
59
|
-
}>;
|
|
60
|
-
export declare const ToolStreamBox: React.MemoExoticComponent<({ name, text, startedAt, termWidth, }: {
|
|
61
|
-
name: string;
|
|
62
|
-
text: string;
|
|
63
|
-
startedAt: number;
|
|
64
|
-
termWidth: number;
|
|
65
|
-
}) => React.ReactElement>;
|
|
66
|
-
export declare function tailForDisplay(text: string, maxChars: number): string;
|
|
67
27
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/history/utils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/history/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,MAAM,EACN,cAAc,EACd,KAAK,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,E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-visual-types.js';
|
|
3
|
+
export declare function ToolOutputLines({ lines, hasFollowingBlock, }: {
|
|
4
|
+
lines: ToolVisualLine[];
|
|
5
|
+
hasFollowingBlock?: boolean | undefined;
|
|
6
|
+
}): React.ReactElement;
|
|
7
|
+
//# sourceMappingURL=visual-lines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-lines.d.ts","sourceRoot":"","sources":["../../../src/components/history/visual-lines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,GAAG,KAAK,CAAC,YAAY,CAkCrB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ToolVisualLine } from './tool-visual-types.js';
|
|
2
|
+
export declare function visualMemory(toolName: string, text: string, ok: boolean): ToolVisualLine[] | undefined;
|
|
3
|
+
export declare function visualLogs(text: string): ToolVisualLine[] | undefined;
|
|
4
|
+
//# sourceMappingURL=visual-memory-logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visual-memory-logs.d.ts","sourceRoot":"","sources":["../../../src/components/history/visual-memory-logs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,wBAAwB,CAAC;AAIjF,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,OAAO,GACV,cAAc,EAAE,GAAG,SAAS,CAsC9B;AAsDD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,GAAG,SAAS,CAuBrE"}
|
|
@@ -1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AC7D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAaA;AA8DD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAKxE;AASD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAepE;AA8CD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,IAAQ,GACT,EAAE;IACD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAuC5B"}
|
|
@@ -18,12 +18,23 @@ export interface Hint {
|
|
|
18
18
|
/** When true, render in a distinct color to highlight panel discovery. */
|
|
19
19
|
discovery?: boolean | undefined;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Messages cycled in the idle status line (no active confirm/picker/monitor).
|
|
23
|
+
* The first entry is the canonical brand link — tests depend on it being
|
|
24
|
+
* index 0, so keep it there.
|
|
25
|
+
*/
|
|
26
|
+
export declare const IDLE_MESSAGES: readonly Hint[];
|
|
27
|
+
/** Returns true when no interactive context is active (idle / chat). */
|
|
28
|
+
export declare function isIdleContext(ctx: KeyHintContext): boolean;
|
|
21
29
|
export declare function hintsFor(ctx: KeyHintContext): Hint[];
|
|
22
30
|
/**
|
|
23
31
|
* Persistent one-line keybinding hint bar shown at the very bottom of the TUI,
|
|
24
32
|
* like a status-line cheat sheet. Context-aware: surfaces the keys that matter
|
|
25
33
|
* for whatever is on screen (confirm prompt → y/n/a/d, picker → ↑↓/↵, etc.).
|
|
26
34
|
* Discovery hints (next panel) are rendered in a distinct color to encourage exploration.
|
|
35
|
+
*
|
|
36
|
+
* When idle (no active context), the bar rotates through {@link IDLE_MESSAGES}
|
|
37
|
+
* on an interval so the status line serves different purposes over time.
|
|
27
38
|
*/
|
|
28
39
|
export declare function KeyHintBar({ context }: {
|
|
29
40
|
context: KeyHintContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-hint-bar.d.ts","sourceRoot":"","sources":["../../src/components/key-hint-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"key-hint-bar.d.ts","sourceRoot":"","sources":["../../src/components/key-hint-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;uEACuE;AACvE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CAC5D;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,IAAI,EAM/B,CAAC;AAEX,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAE1D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,EAAE,CAsCpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,GAAG,KAAK,CAAC,YAAY,CAyBvF"}
|
|
@@ -6,11 +6,18 @@ export interface PowerlineRailProps {
|
|
|
6
6
|
monochrome?: boolean | undefined;
|
|
7
7
|
/** Override the filler background for per-line tonal layering. */
|
|
8
8
|
fillBg?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Optional right-anchored segment. When provided, the rail reserves
|
|
11
|
+
* space for this segment at the right edge of the budget so its
|
|
12
|
+
* position is independent of how wide the left segments are —
|
|
13
|
+
* preventing visual jitter when the left side updates frequently.
|
|
14
|
+
*/
|
|
15
|
+
rightAnchor?: React.ReactElement | null | undefined;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
11
|
-
* Full-
|
|
12
|
-
*
|
|
13
|
-
*
|
|
18
|
+
* Full-width status segments with a single uniform background.
|
|
19
|
+
* No per-chip backgrounds, no transition glyphs, no segment caps —
|
|
20
|
+
* just clean chips separated by a single space.
|
|
14
21
|
*/
|
|
15
|
-
export declare function PowerlineRail({ segments, budget, monochrome, fillBg, }: PowerlineRailProps): React.ReactElement;
|
|
22
|
+
export declare function PowerlineRail({ segments, budget, monochrome, fillBg, rightAnchor, }: PowerlineRailProps): React.ReactElement;
|
|
16
23
|
//# sourceMappingURL=powerline-rail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powerline-rail.d.ts","sourceRoot":"","sources":["../../src/components/powerline-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"powerline-rail.d.ts","sourceRoot":"","sources":["../../src/components/powerline-rail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,wBAAgB,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAW7D;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,kEAAkE;IAClE,MAAM,CAAC,EAAE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M,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"provider-colors.d.ts","sourceRoot":"","sources":["../../src/components/provider-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEjE;AAED,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEpE;AA4CD,gEAAgE;AAChE,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,GACtD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAS9C;AAED,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIpD,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,SAAS;aACpB,OAAO,EAAE,SAAS;aAClB,MAAM,EAAE,SAAS;aACjB,QAAQ,EAAE,SAAS;aACnB,OAAO,EAAE,SAAS;aAClB,KAAK,EAAE,SAAS;aAChB,IAAI,EAAE,SAAS;aACf,MAAM,EAAE,SAAS;aACjB,KAAK,EAAE,SAAS;aAChB,aAAa,EAAE,SAAS;aACxB,MAAM,EAAe,MAAM,GAAG,SAAS;CAC/B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6CzD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type RefineCountdownDecision = 'proceed' | 'skip' | 'cancel';
|
|
3
|
+
export interface RefineCountdownPanelProps {
|
|
4
|
+
/** The user's just-submitted message. */
|
|
5
|
+
original: string;
|
|
6
|
+
/** Grace period, in seconds, before the refiner call starts. */
|
|
7
|
+
seconds: number;
|
|
8
|
+
/** Called once with the chosen action (keypress or countdown expiry). */
|
|
9
|
+
onDecision: (decision: RefineCountdownDecision) => void;
|
|
10
|
+
/** Provider id of the model that will run the refinement (e.g. "openai"). */
|
|
11
|
+
providerId?: string | undefined;
|
|
12
|
+
/** Model name that will run the refinement (e.g. "gpt-4o"). */
|
|
13
|
+
model?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Pre-refine grace countdown ("about to refine — last chance to bail").
|
|
17
|
+
*
|
|
18
|
+
* Shown for the window between submit and the refiner's first LLM call:
|
|
19
|
+
* Enter starts refining immediately, any other key sends the message
|
|
20
|
+
* unchanged (skip), Esc cancels back to the composer, and expiry
|
|
21
|
+
* proceeds into the normal refine flow. Mirrors the
|
|
22
|
+
* WebUI/SimpleUI RefinePanel's 'countdown' face.
|
|
23
|
+
*/
|
|
24
|
+
export declare function RefineCountdownPanel({ original, seconds, onDecision, providerId, model, }: RefineCountdownPanelProps): React.ReactElement;
|
|
25
|
+
//# sourceMappingURL=refine-countdown-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refine-countdown-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-countdown-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,UAAU,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACxD,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,KAAK,GACN,EAAE,yBAAyB,GAAG,KAAK,CAAC,YAAY,CAqEhD"}
|
|
@@ -24,6 +24,7 @@ export interface RefineFailureModel {
|
|
|
24
24
|
model: string;
|
|
25
25
|
label?: string | undefined;
|
|
26
26
|
}
|
|
27
|
+
export declare function filterRefineModels<T extends RefineFailureModel>(models: readonly T[], query: string): readonly T[];
|
|
27
28
|
export interface RefineFailurePanelProps {
|
|
28
29
|
/** The user's original message (sent as-is if they decline recovery). */
|
|
29
30
|
original: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refine-failure-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-failure-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0EAA0E;IAC1E,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,UAAU,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD;AASD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,SAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,uBAAuB,GAAG,KAAK,CAAC,YAAY,CAuL9C"}
|
|
1
|
+
{"version":3,"file":"refine-failure-panel.d.ts","sourceRoot":"","sources":["../../src/components/refine-failure-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAErB,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,EAC7D,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,MAAM,GACZ,SAAS,CAAC,EAAE,CASd;AAED,MAAM,WAAW,uBAAuB;IACtC,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0EAA0E;IAC1E,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,UAAU,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD;AASD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,SAAa,EACb,WAAW,EACX,MAAM,EACN,UAAU,GACX,EAAE,uBAAuB,GAAG,KAAK,CAAC,YAAY,CAuL9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resume-picker.d.ts","sourceRoot":"","sources":["../../src/components/resume-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,GACL,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"resume-picker.d.ts","sourceRoot":"","sources":["../../src/components/resume-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,GACL,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CA0ExC"}
|