@wrongstack/tui 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/app-action-type.d.ts +29 -1
- package/dist/app-key-handler.d.ts +5 -120
- package/dist/app-settings-type.d.ts +3 -0
- package/dist/app-state.d.ts +21 -12
- package/dist/app-view-contract.d.ts +3 -0
- package/dist/app-view-sidebar.d.ts +9 -1
- package/dist/app.d.ts +3 -3
- package/dist/components/confirm-prompt.d.ts +1 -1
- package/dist/components/history/copy-geometry.d.ts +41 -0
- package/dist/components/history/copy-icon.d.ts +17 -0
- package/dist/components/history/copy-registry.d.ts +2 -0
- package/dist/components/history/entry-helpers.d.ts +7 -15
- package/dist/components/history/entry.d.ts +17 -1
- package/dist/components/history/index.d.ts +1 -1
- package/dist/components/history/sage-memory-block.d.ts +7 -9
- package/dist/components/history/scroll-controller-types.d.ts +16 -1
- package/dist/components/history/scrollbar-rail.d.ts +3 -4
- package/dist/components/history/stream-box.d.ts +7 -0
- package/dist/components/history/tool-card-geometry.d.ts +35 -0
- package/dist/components/history/tool-card.d.ts +3 -1
- package/dist/components/history/tool-entry.d.ts +3 -1
- package/dist/components/history/tool-group.d.ts +5 -3
- package/dist/components/history/tool-visual-types.d.ts +1 -1
- package/dist/components/history/types.d.ts +9 -0
- package/dist/components/history/use-history-controller.d.ts +2 -0
- package/dist/components/history/utils.d.ts +2 -2
- package/dist/components/history/visual-lines.d.ts +1 -1
- package/dist/components/history/wrap-geometry.d.ts +4 -4
- package/dist/components/history.d.ts +1 -1
- package/dist/components/inspect-overlay.d.ts +52 -0
- package/dist/components/powerline-rail.d.ts +4 -7
- package/dist/components/scrollable-history.d.ts +4 -4
- package/dist/components/settings-picker-constants.d.ts +11 -0
- package/dist/components/settings-picker-model.d.ts +8 -0
- package/dist/components/settings-picker.d.ts +4 -7
- package/dist/components/sidebar-panel-frame.d.ts +31 -0
- package/dist/components/sidebar-panels-workspace.d.ts +11 -2
- package/dist/components/sidebar-scrollbar.d.ts +36 -0
- package/dist/components/sidebar.d.ts +13 -1
- package/dist/components/status-bar-icons.d.ts +0 -7
- package/dist/history-entry.d.ts +4 -0
- package/dist/hit-test.d.ts +5 -5
- package/dist/hooks/subagent-history-format.d.ts +12 -0
- package/dist/hooks/tui-slash-command-options.d.ts +30 -0
- package/dist/hooks/use-app-environment.d.ts +136 -0
- package/dist/hooks/use-app-pipeline-builders.d.ts +1 -0
- package/dist/hooks/use-app-ref-spine.d.ts +74 -0
- package/dist/hooks/use-app-state.d.ts +20 -0
- package/dist/hooks/use-design-kit-slash-commands.d.ts +8 -0
- package/dist/hooks/use-next-steps-auto-submit.d.ts +1 -0
- package/dist/hooks/use-provider-slash-commands.d.ts +13 -0
- package/dist/hooks/use-resource-slash-commands.d.ts +11 -0
- package/dist/hooks/use-session-slash-commands.d.ts +17 -0
- package/dist/hooks/use-settings-slash-commands.d.ts +22 -0
- package/dist/hooks/use-theme-state.d.ts +3 -9
- package/dist/hooks/use-tui-slash-commands.d.ts +2 -29
- package/dist/index.js +8659 -7144
- package/dist/input-validation/action-types.d.ts +1 -1
- package/dist/key-handler-context.d.ts +142 -0
- package/dist/key-routes/key-route-busy.d.ts +23 -0
- package/dist/key-routes/key-route-composer.d.ts +33 -0
- package/dist/key-routes/key-route-overlay.d.ts +65 -0
- package/dist/key-routes/key-route-paste.d.ts +17 -0
- package/dist/key-routes/key-route-pointer.d.ts +18 -0
- package/dist/overlay-key-router.d.ts +2 -0
- package/dist/reducers/conversation.d.ts +1 -1
- package/dist/reducers/dialogs.d.ts +1 -1
- package/dist/reducers/helpers.d.ts +3 -1
- package/dist/reducers/workspace-panels.d.ts +11 -1
- package/dist/run-tui-exits.d.ts +46 -0
- package/dist/run-tui-launch.d.ts +23 -0
- package/dist/run-tui-mount.d.ts +28 -0
- package/dist/run-tui-session.d.ts +13 -0
- package/dist/run-tui.d.ts +1 -2
- package/dist/settings-contracts.d.ts +4 -0
- package/dist/sidebar-sizing.d.ts +2 -1
- package/dist/theme.d.ts +7 -0
- package/dist/tool-result-view-mode.d.ts +8 -0
- package/dist/ui-contracts.d.ts +17 -3
- package/package.json +7 -7
package/dist/ui-contracts.d.ts
CHANGED
|
@@ -71,9 +71,8 @@ export type PanelPosition = 'bottom' | 'sidebar';
|
|
|
71
71
|
*/
|
|
72
72
|
export declare const PANEL_IDS: readonly ["projectPicker", "fleet", "agents", "worktree", "plan", "todos", "queue", "processList", "goal", "sessions", "coordinator", "kanban", "connections"];
|
|
73
73
|
export type PanelId = (typeof PANEL_IDS)[number];
|
|
74
|
-
/** Total field count = legacy 46 + per-panel positions +
|
|
75
|
-
*
|
|
76
|
-
* Derived at runtime from `PANEL_IDS.length` + 3 to keep the surface in sync. */
|
|
74
|
+
/** Total field count = legacy 46 + per-panel positions + WrongProxy switch/URL,
|
|
75
|
+
* showSidebar, and the global tool-result view mode. */
|
|
77
76
|
export declare const TOTAL_SETTINGS_FIELD_COUNT: number;
|
|
78
77
|
/** Map of every tracked panel → its current placement. */
|
|
79
78
|
export type PanelPositionMap = Readonly<Record<PanelId, PanelPosition>>;
|
|
@@ -89,6 +88,21 @@ export declare const DEFAULT_PANEL_POSITIONS: PanelPositionMap;
|
|
|
89
88
|
* rather than re-implementing the mapping to avoid divergent defaults.
|
|
90
89
|
*/
|
|
91
90
|
export declare function coercePanelPositionMap(v: Partial<Record<PanelId, PanelPosition>> | undefined): PanelPositionMap;
|
|
91
|
+
/**
|
|
92
|
+
* True when the right sidebar is "pinned on": at least one F-key panel is
|
|
93
|
+
* routed to the sidebar slot (per {@link coercePanelPositionMap}-coerced
|
|
94
|
+
* positions), or the legacy tri-state agent-swarm mode is 'sidebar' (which
|
|
95
|
+
* mounts the AGENT SWARM + MISSIONS cards on the rail). While pinned, the
|
|
96
|
+
* master `showSidebar` switch must not resolve to off — a routed panel's
|
|
97
|
+
* only home is the sidebar, so hiding the rail would orphan it.
|
|
98
|
+
*
|
|
99
|
+
* Lives beside {@link coercePanelPositionMap} because every guard site (the
|
|
100
|
+
* settings picker, the settings reducer, the /lite and /settings slash
|
|
101
|
+
* commands, and the layout resolver) already depends on this module, and
|
|
102
|
+
* routing it through app-ui-state.ts would close a type-inclusive import
|
|
103
|
+
* cycle back into the reducer chain.
|
|
104
|
+
*/
|
|
105
|
+
export declare function hasPanelRoutedToSidebar(panelPositions: Partial<Record<PanelId, 'bottom' | 'sidebar'>> | undefined, legacySwarmOnSidebar?: boolean | undefined): boolean;
|
|
92
106
|
export interface AgentTranscriptReader {
|
|
93
107
|
getTranscript(subagentId: string, limit?: number): AgentTimelineEntry[];
|
|
94
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wrongstack/core": "1.0.
|
|
30
|
-
"@wrongstack/kanban": "1.0.
|
|
31
|
-
"@wrongstack/runtime": "1.0.
|
|
32
|
-
"@wrongstack/sage": "1.0.
|
|
33
|
-
"@wrongstack/sdd": "1.0.
|
|
34
|
-
"@wrongstack/tools": "1.0.
|
|
29
|
+
"@wrongstack/core": "1.0.5",
|
|
30
|
+
"@wrongstack/kanban": "1.0.5",
|
|
31
|
+
"@wrongstack/runtime": "1.0.5",
|
|
32
|
+
"@wrongstack/sage": "1.0.5",
|
|
33
|
+
"@wrongstack/sdd": "1.0.5",
|
|
34
|
+
"@wrongstack/tools": "1.0.5",
|
|
35
35
|
"ink": "7.1.1",
|
|
36
36
|
"react": "^19.2.8",
|
|
37
37
|
"string-width": "8.2.2",
|