@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.
Files changed (81) hide show
  1. package/README.md +3 -0
  2. package/dist/app-action-type.d.ts +29 -1
  3. package/dist/app-key-handler.d.ts +5 -120
  4. package/dist/app-settings-type.d.ts +3 -0
  5. package/dist/app-state.d.ts +21 -12
  6. package/dist/app-view-contract.d.ts +3 -0
  7. package/dist/app-view-sidebar.d.ts +9 -1
  8. package/dist/app.d.ts +3 -3
  9. package/dist/components/confirm-prompt.d.ts +1 -1
  10. package/dist/components/history/copy-geometry.d.ts +41 -0
  11. package/dist/components/history/copy-icon.d.ts +17 -0
  12. package/dist/components/history/copy-registry.d.ts +2 -0
  13. package/dist/components/history/entry-helpers.d.ts +7 -15
  14. package/dist/components/history/entry.d.ts +17 -1
  15. package/dist/components/history/index.d.ts +1 -1
  16. package/dist/components/history/sage-memory-block.d.ts +7 -9
  17. package/dist/components/history/scroll-controller-types.d.ts +16 -1
  18. package/dist/components/history/scrollbar-rail.d.ts +3 -4
  19. package/dist/components/history/stream-box.d.ts +7 -0
  20. package/dist/components/history/tool-card-geometry.d.ts +35 -0
  21. package/dist/components/history/tool-card.d.ts +3 -1
  22. package/dist/components/history/tool-entry.d.ts +3 -1
  23. package/dist/components/history/tool-group.d.ts +5 -3
  24. package/dist/components/history/tool-visual-types.d.ts +1 -1
  25. package/dist/components/history/types.d.ts +9 -0
  26. package/dist/components/history/use-history-controller.d.ts +2 -0
  27. package/dist/components/history/utils.d.ts +2 -2
  28. package/dist/components/history/visual-lines.d.ts +1 -1
  29. package/dist/components/history/wrap-geometry.d.ts +4 -4
  30. package/dist/components/history.d.ts +1 -1
  31. package/dist/components/inspect-overlay.d.ts +52 -0
  32. package/dist/components/powerline-rail.d.ts +4 -7
  33. package/dist/components/scrollable-history.d.ts +4 -4
  34. package/dist/components/settings-picker-constants.d.ts +11 -0
  35. package/dist/components/settings-picker-model.d.ts +8 -0
  36. package/dist/components/settings-picker.d.ts +4 -7
  37. package/dist/components/sidebar-panel-frame.d.ts +31 -0
  38. package/dist/components/sidebar-panels-workspace.d.ts +11 -2
  39. package/dist/components/sidebar-scrollbar.d.ts +36 -0
  40. package/dist/components/sidebar.d.ts +13 -1
  41. package/dist/components/status-bar-icons.d.ts +0 -7
  42. package/dist/history-entry.d.ts +4 -0
  43. package/dist/hit-test.d.ts +5 -5
  44. package/dist/hooks/subagent-history-format.d.ts +12 -0
  45. package/dist/hooks/tui-slash-command-options.d.ts +30 -0
  46. package/dist/hooks/use-app-environment.d.ts +136 -0
  47. package/dist/hooks/use-app-pipeline-builders.d.ts +1 -0
  48. package/dist/hooks/use-app-ref-spine.d.ts +74 -0
  49. package/dist/hooks/use-app-state.d.ts +20 -0
  50. package/dist/hooks/use-design-kit-slash-commands.d.ts +8 -0
  51. package/dist/hooks/use-next-steps-auto-submit.d.ts +1 -0
  52. package/dist/hooks/use-provider-slash-commands.d.ts +13 -0
  53. package/dist/hooks/use-resource-slash-commands.d.ts +11 -0
  54. package/dist/hooks/use-session-slash-commands.d.ts +17 -0
  55. package/dist/hooks/use-settings-slash-commands.d.ts +22 -0
  56. package/dist/hooks/use-theme-state.d.ts +3 -9
  57. package/dist/hooks/use-tui-slash-commands.d.ts +2 -29
  58. package/dist/index.js +8659 -7144
  59. package/dist/input-validation/action-types.d.ts +1 -1
  60. package/dist/key-handler-context.d.ts +142 -0
  61. package/dist/key-routes/key-route-busy.d.ts +23 -0
  62. package/dist/key-routes/key-route-composer.d.ts +33 -0
  63. package/dist/key-routes/key-route-overlay.d.ts +65 -0
  64. package/dist/key-routes/key-route-paste.d.ts +17 -0
  65. package/dist/key-routes/key-route-pointer.d.ts +18 -0
  66. package/dist/overlay-key-router.d.ts +2 -0
  67. package/dist/reducers/conversation.d.ts +1 -1
  68. package/dist/reducers/dialogs.d.ts +1 -1
  69. package/dist/reducers/helpers.d.ts +3 -1
  70. package/dist/reducers/workspace-panels.d.ts +11 -1
  71. package/dist/run-tui-exits.d.ts +46 -0
  72. package/dist/run-tui-launch.d.ts +23 -0
  73. package/dist/run-tui-mount.d.ts +28 -0
  74. package/dist/run-tui-session.d.ts +13 -0
  75. package/dist/run-tui.d.ts +1 -2
  76. package/dist/settings-contracts.d.ts +4 -0
  77. package/dist/sidebar-sizing.d.ts +2 -1
  78. package/dist/theme.d.ts +7 -0
  79. package/dist/tool-result-view-mode.d.ts +8 -0
  80. package/dist/ui-contracts.d.ts +17 -3
  81. package/package.json +7 -7
@@ -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 + the two
75
- * WrongProxy / WrongTrace fields (master switch + URL) + showSidebar.
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",
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.3",
30
- "@wrongstack/kanban": "1.0.3",
31
- "@wrongstack/runtime": "1.0.3",
32
- "@wrongstack/sage": "1.0.3",
33
- "@wrongstack/sdd": "1.0.3",
34
- "@wrongstack/tools": "1.0.3",
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",