@acryldev/workspace 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/cordis.patch.yml +3 -0
  4. package/lib/agents/argument-text.d.ts +9 -0
  5. package/lib/agents/catalog.d.ts +32 -0
  6. package/lib/agents/contract.d.ts +50 -0
  7. package/lib/agents/definition.d.ts +38 -0
  8. package/lib/agents/file-store.d.ts +7 -0
  9. package/lib/agents/known-agents.d.ts +52 -0
  10. package/lib/agents/launch.d.ts +26 -0
  11. package/lib/agents/preferences.d.ts +40 -0
  12. package/lib/agents/route.d.ts +10 -0
  13. package/lib/agents/settings.d.ts +28 -0
  14. package/lib/agents/status/agent-status.d.ts +38 -0
  15. package/lib/agents/status/claude-hooks.d.ts +18 -0
  16. package/lib/agents/status/route.d.ts +10 -0
  17. package/lib/capabilities/contract.d.ts +17 -0
  18. package/lib/capabilities/route.d.ts +8 -0
  19. package/lib/client.js +91109 -0
  20. package/lib/client.js.map +1 -0
  21. package/lib/files/contract.d.ts +74 -0
  22. package/lib/files/route.d.ts +9 -0
  23. package/lib/files/service.d.ts +48 -0
  24. package/lib/folder-picker/contract.d.ts +9 -0
  25. package/lib/folder-picker/picker.d.ts +23 -0
  26. package/lib/folder-picker/route.d.ts +5 -0
  27. package/lib/git/changes.d.ts +29 -0
  28. package/lib/git/checks.d.ts +8 -0
  29. package/lib/git/commits.d.ts +14 -0
  30. package/lib/git/contract.d.ts +136 -0
  31. package/lib/git/errors.d.ts +9 -0
  32. package/lib/git/guards.d.ts +9 -0
  33. package/lib/git/ignored.d.ts +9 -0
  34. package/lib/git/parsing.d.ts +13 -0
  35. package/lib/git/route.d.ts +9 -0
  36. package/lib/git/runner.d.ts +29 -0
  37. package/lib/git/search.d.ts +14 -0
  38. package/lib/git/service.d.ts +52 -0
  39. package/lib/git/worktrees.d.ts +26 -0
  40. package/lib/index.d.ts +39 -0
  41. package/lib/index.js +3799 -0
  42. package/lib/index.js.map +1 -0
  43. package/lib/private-route.d.ts +15 -0
  44. package/lib/projects/contract.d.ts +82 -0
  45. package/lib/projects/registry.d.ts +73 -0
  46. package/lib/projects/route.d.ts +16 -0
  47. package/lib/projects/tools.d.ts +24 -0
  48. package/lib/pty/contract.d.ts +52 -0
  49. package/lib/pty/node-pty-spawn.d.ts +3 -0
  50. package/lib/pty/route.d.ts +9 -0
  51. package/lib/pty/screen-model.d.ts +25 -0
  52. package/lib/pty/scrollback.d.ts +26 -0
  53. package/lib/pty/service.d.ts +156 -0
  54. package/lib/pty/stream.d.ts +19 -0
  55. package/lib/shared-context/chat.d.ts +34 -0
  56. package/lib/shared-context/launch.d.ts +24 -0
  57. package/lib/shared-context/render.d.ts +29 -0
  58. package/lib/shared-context/route.d.ts +13 -0
  59. package/lib/shared-context/service.d.ts +65 -0
  60. package/lib/shared-context/tool.d.ts +20 -0
  61. package/lib/types/agents/argument-text.d.ts +9 -0
  62. package/lib/types/agents/contract.d.ts +50 -0
  63. package/lib/types/agents/definition.d.ts +38 -0
  64. package/lib/types/agents/known-agents.d.ts +52 -0
  65. package/lib/types/agents/launch.d.ts +26 -0
  66. package/lib/types/agents/preferences.d.ts +40 -0
  67. package/lib/types/agents/status/agent-status.d.ts +38 -0
  68. package/lib/types/capabilities/contract.d.ts +17 -0
  69. package/lib/types/client/agents/AddAgentForm.d.ts +10 -0
  70. package/lib/types/client/agents/AgentRow.d.ts +11 -0
  71. package/lib/types/client/agents/AgentsSection.d.ts +14 -0
  72. package/lib/types/client/agents/acryl-logo-data.d.ts +3 -0
  73. package/lib/types/client/agents/agent-draft.d.ts +24 -0
  74. package/lib/types/client/agents/agents-api.d.ts +18 -0
  75. package/lib/types/client/agents/agents-section-model.d.ts +45 -0
  76. package/lib/types/client/agents/agents-settings-plugin.d.ts +8 -0
  77. package/lib/types/client/agents/agents-state.d.ts +26 -0
  78. package/lib/types/client/agents/controls.d.ts +40 -0
  79. package/lib/types/client/board/NoteColumn.d.ts +17 -0
  80. package/lib/types/client/board/SessionBoardPane.d.ts +16 -0
  81. package/lib/types/client/board/board-model.d.ts +36 -0
  82. package/lib/types/client/browser/BrowserPane.d.ts +28 -0
  83. package/lib/types/client/canvas/SplitDivider.d.ts +9 -0
  84. package/lib/types/client/canvas/WorkspaceCanvas.d.ts +78 -0
  85. package/lib/types/client/canvas/groups.d.ts +47 -0
  86. package/lib/types/client/canvas/persist.d.ts +17 -0
  87. package/lib/types/client/canvas/persistence.d.ts +78 -0
  88. package/lib/types/client/canvas/shell-requests.d.ts +16 -0
  89. package/lib/types/client/canvas/split-ratio.d.ts +12 -0
  90. package/lib/types/client/canvas/state.d.ts +181 -0
  91. package/lib/types/client/canvas/tab-title.d.ts +7 -0
  92. package/lib/types/client/capabilities/capabilities-api.d.ts +8 -0
  93. package/lib/types/client/changes/ChangesBody.d.ts +14 -0
  94. package/lib/types/client/changes/changes-tab.d.ts +20 -0
  95. package/lib/types/client/chat/chat-selection.d.ts +70 -0
  96. package/lib/types/client/chat/composer-focus.d.ts +16 -0
  97. package/lib/types/client/checks/ChecksBody.d.ts +9 -0
  98. package/lib/types/client/checks/checks-tab.d.ts +12 -0
  99. package/lib/types/client/chrome/StatusLine.d.ts +11 -0
  100. package/lib/types/client/chrome/panel-icons.d.ts +16 -0
  101. package/lib/types/client/chrome/status-line.d.ts +19 -0
  102. package/lib/types/client/chrome/worktree-agents.d.ts +13 -0
  103. package/lib/types/client/comments/CommentsBody.d.ts +24 -0
  104. package/lib/types/client/comments/comment-store.d.ts +38 -0
  105. package/lib/types/client/comments/comments-tab.d.ts +14 -0
  106. package/lib/types/client/comments/editor-comments.d.ts +6 -0
  107. package/lib/types/client/comments/terminal-targets.d.ts +35 -0
  108. package/lib/types/client/comments/use-comments.d.ts +27 -0
  109. package/lib/types/client/connection/session-banner.d.ts +51 -0
  110. package/lib/types/client/diff/GitDiffPane.d.ts +27 -0
  111. package/lib/types/client/diff/TextDiffPane.d.ts +6 -0
  112. package/lib/types/client/diff/comment-message.d.ts +29 -0
  113. package/lib/types/client/diff/diff-layout.d.ts +4 -0
  114. package/lib/types/client/diff/line-diff.d.ts +14 -0
  115. package/lib/types/client/diff/unified-diff.d.ts +31 -0
  116. package/lib/types/client/dock/DockButtons.d.ts +19 -0
  117. package/lib/types/client/dock/DockColumns.d.ts +21 -0
  118. package/lib/types/client/dock/DockDivider.d.ts +13 -0
  119. package/lib/types/client/dock/TerminalDockPanel.d.ts +13 -0
  120. package/lib/types/client/dock/dock-controller.d.ts +55 -0
  121. package/lib/types/client/dock/dock-hooks.d.ts +6 -0
  122. package/lib/types/client/dock/dock-host.d.ts +14 -0
  123. package/lib/types/client/dock/dock-icons.d.ts +10 -0
  124. package/lib/types/client/dock/dock-model.d.ts +35 -0
  125. package/lib/types/client/dock/dock-tabs.d.ts +72 -0
  126. package/lib/types/client/dock/terminal-stack.d.ts +19 -0
  127. package/lib/types/client/docs/DocFilePane.d.ts +12 -0
  128. package/lib/types/client/docs/DocPane.d.ts +6 -0
  129. package/lib/types/client/docs/DocView.d.ts +5 -0
  130. package/lib/types/client/docs/doc-format.d.ts +46 -0
  131. package/lib/types/client/dom/find-by-name.d.ts +18 -0
  132. package/lib/types/client/files/CodeEditor.d.ts +19 -0
  133. package/lib/types/client/files/FileBreadcrumbs.d.ts +15 -0
  134. package/lib/types/client/files/FileEditorPane.d.ts +12 -0
  135. package/lib/types/client/files/FileTree.d.ts +25 -0
  136. package/lib/types/client/files/FilesBody.d.ts +14 -0
  137. package/lib/types/client/files/ScratchFilePane.d.ts +6 -0
  138. package/lib/types/client/files/breadcrumbs.d.ts +18 -0
  139. package/lib/types/client/files/file-edit.d.ts +20 -0
  140. package/lib/types/client/files/file-icons.d.ts +17 -0
  141. package/lib/types/client/files/files-api.d.ts +26 -0
  142. package/lib/types/client/files/files-tab.d.ts +25 -0
  143. package/lib/types/client/files/line-comment.d.ts +26 -0
  144. package/lib/types/client/files/line-comments.d.ts +48 -0
  145. package/lib/types/client/files/tree-model.d.ts +60 -0
  146. package/lib/types/client/git/git-api.d.ts +35 -0
  147. package/lib/types/client/index.d.ts +28 -0
  148. package/lib/types/client/models/ModelConnect.d.ts +13 -0
  149. package/lib/types/client/models/model-connect.d.ts +145 -0
  150. package/lib/types/client/notifications/Toasts.d.ts +6 -0
  151. package/lib/types/client/notifications/system-notice.d.ts +19 -0
  152. package/lib/types/client/notifications/toast-state.d.ts +29 -0
  153. package/lib/types/client/palette/CommandPalette.d.ts +9 -0
  154. package/lib/types/client/palette/PalettePanel.d.ts +10 -0
  155. package/lib/types/client/palette/file-search.d.ts +9 -0
  156. package/lib/types/client/palette/fuzzy.d.ts +15 -0
  157. package/lib/types/client/palette/palette-commands.d.ts +64 -0
  158. package/lib/types/client/palette/palette-config.d.ts +21 -0
  159. package/lib/types/client/palette/palette-items.d.ts +40 -0
  160. package/lib/types/client/palette/palette-settings-plugin.d.ts +8 -0
  161. package/lib/types/client/palette/palette-shortcut.d.ts +10 -0
  162. package/lib/types/client/palette/palette-state.d.ts +68 -0
  163. package/lib/types/client/palette/use-workspace-palette.d.ts +39 -0
  164. package/lib/types/client/projects/NewWorkspaceDialog.d.ts +21 -0
  165. package/lib/types/client/projects/ProjectsSidebar.d.ts +39 -0
  166. package/lib/types/client/projects/RepoSection.d.ts +29 -0
  167. package/lib/types/client/projects/WorkspaceStrip.d.ts +14 -0
  168. package/lib/types/client/projects/projects-control.d.ts +119 -0
  169. package/lib/types/client/projects/registry-api.d.ts +22 -0
  170. package/lib/types/client/projects/registry-state.d.ts +67 -0
  171. package/lib/types/client/projects/shown-workspace.d.ts +19 -0
  172. package/lib/types/client/projects/sidebar-model.d.ts +113 -0
  173. package/lib/types/client/projects/upstream-panels.d.ts +54 -0
  174. package/lib/types/client/projects/web-folder-picker.d.ts +13 -0
  175. package/lib/types/client/review/ReviewBody.d.ts +9 -0
  176. package/lib/types/client/review/review-store.d.ts +46 -0
  177. package/lib/types/client/review/review-tab.d.ts +15 -0
  178. package/lib/types/client/sessions/agent-bridge.d.ts +20 -0
  179. package/lib/types/client/sessions/main-session.d.ts +24 -0
  180. package/lib/types/client/sessions/running-agents.d.ts +9 -0
  181. package/lib/types/client/sessions/session-client.d.ts +22 -0
  182. package/lib/types/client/sessions/session-navigation.d.ts +63 -0
  183. package/lib/types/client/sessions/session-pick.d.ts +15 -0
  184. package/lib/types/client/settings/locales.d.ts +5 -0
  185. package/lib/types/client/settings/open-settings.d.ts +37 -0
  186. package/lib/types/client/settings/section-plugin.d.ts +39 -0
  187. package/lib/types/client/settings/styles.d.ts +3 -0
  188. package/lib/types/client/shared-context/BriefTab.d.ts +21 -0
  189. package/lib/types/client/shared-context/brief-api.d.ts +9 -0
  190. package/lib/types/client/status/agent-status-api.d.ts +10 -0
  191. package/lib/types/client/status/agent-status-state.d.ts +27 -0
  192. package/lib/types/client/status/attention-model.d.ts +20 -0
  193. package/lib/types/client/styles.d.ts +2 -0
  194. package/lib/types/client/tabs/AgentIcon.d.ts +12 -0
  195. package/lib/types/client/tabs/NewTabMenu.d.ts +42 -0
  196. package/lib/types/client/tabs/TabActivity.d.ts +7 -0
  197. package/lib/types/client/tabs/TabStrip.d.ts +53 -0
  198. package/lib/types/client/tabs/TabsPanel.d.ts +14 -0
  199. package/lib/types/client/tabs/agent-marks.d.ts +9 -0
  200. package/lib/types/client/tabs/agent-visibility.d.ts +11 -0
  201. package/lib/types/client/tabs/last-tab.d.ts +15 -0
  202. package/lib/types/client/tabs/registry/CustomTabPane.d.ts +13 -0
  203. package/lib/types/client/tabs/registry/provide.d.ts +11 -0
  204. package/lib/types/client/tabs/registry/tab-registry.d.ts +52 -0
  205. package/lib/types/client/tabs/tab-close.d.ts +4 -0
  206. package/lib/types/client/tabs/tab-scroll.d.ts +19 -0
  207. package/lib/types/client/tabs/tab-types-state.d.ts +24 -0
  208. package/lib/types/client/tabs/tabs-settings-plugin.d.ts +9 -0
  209. package/lib/types/client/terminal/PtyPane.d.ts +8 -0
  210. package/lib/types/client/terminal/TerminalSearchBar.d.ts +7 -0
  211. package/lib/types/client/terminal/agent-commands.d.ts +15 -0
  212. package/lib/types/client/terminal/gpu-renderer.d.ts +10 -0
  213. package/lib/types/client/terminal/pty-api.d.ts +21 -0
  214. package/lib/types/client/terminal/pty-stream.d.ts +46 -0
  215. package/lib/types/client/terminal/terminal-links.d.ts +9 -0
  216. package/lib/types/client/terminal/terminal-search.d.ts +18 -0
  217. package/lib/types/client/terminal/terminal-session.d.ts +105 -0
  218. package/lib/types/client/terminal/terminal-size.d.ts +7 -0
  219. package/lib/types/client/ui.d.ts +18 -0
  220. package/lib/types/client/worktrees/shell-polling.d.ts +10 -0
  221. package/lib/types/client/worktrees/shell-state.d.ts +200 -0
  222. package/lib/types/files/contract.d.ts +74 -0
  223. package/lib/types/folder-picker/contract.d.ts +9 -0
  224. package/lib/types/git/contract.d.ts +136 -0
  225. package/lib/types/projects/contract.d.ts +82 -0
  226. package/lib/types/pty/contract.d.ts +52 -0
  227. package/lib/ui.js +12735 -0
  228. package/lib/ui.js.map +1 -0
  229. package/package.json +145 -3
@@ -0,0 +1,14 @@
1
+ /** Right pane tab: the selected worktree's changed files. Clicking one opens its diff in the canvas. */
2
+ import type { PropsRuntime } from '@acryldev/ui/frame';
3
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
4
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
5
+ export type ChangesBodyProps = PropsRuntime<'sidebar.right.pane.tab'> & {
6
+ readonly shell: WorkspaceShellState;
7
+ readonly gitApi: WorkspaceGitApi;
8
+ };
9
+ /** @returns the directory part (with trailing slash) and file name of a repository path. */
10
+ export declare function splitPath(path: string): {
11
+ dir: string;
12
+ name: string;
13
+ };
14
+ export declare function ChangesBody({ shell, gitApi }: ChangesBodyProps): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ /** The `changes` right-sidebar tab type, registered through upstream's public two-stage path. */
2
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
3
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
4
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
5
+ /** The tab kind this plugin owns. */
6
+ export declare const CHANGES_KIND = "changes";
7
+ /** This implementation's identity in the tab system, and the key its body registers under. */
8
+ export declare const CHANGES_ID = "acryl-workspace/changes";
9
+ /**
10
+ * A dependency-gated child plugin: it is PENDING (not failed) while the upstream right sidebar is
11
+ * absent, and mounts by itself when it appears, so it can never take the canvas or the left pane
12
+ * down with it. Both registrations live inside one effect, so they unwind together.
13
+ * @param shell - shared shell state the body reads and the reveal callback belongs to.
14
+ * @param gitApi - the git routes the stage and commit controls call.
15
+ */
16
+ export declare function changesTabPlugin(shell: WorkspaceShellState, gitApi: WorkspaceGitApi): {
17
+ name: string;
18
+ inject: string[];
19
+ apply(ctx: ClientContext): void;
20
+ };
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Which chat is on screen, and which tab and worktree show it: the one owner of that relation.
3
+ *
4
+ * Two stores describe the shown chat: DSH's main view (the session its navigation holds, `uiWorkspace`) and ACRYL's tab sets (one per
5
+ * worktree in each workspace, `WorkspaceGroups`). DSH's main view is the source of truth; the tab sets and the selected worktree follow it. The direction
6
+ * is fixed by who may write what:
7
+ *
8
+ * - **User intents** (`open`, `selectTab`, `showWorktree`) are the only operations that ask DSH to show a chat.
9
+ * - **Reconciling** (on a change of DSH's session list) only writes ACRYL's tab sets and the selected worktree. It never opens a chat, so
10
+ * no write it makes can come back as a navigation.
11
+ *
12
+ * Reconciling runs once the session list has settled (a microtask after the last change): DSH holds the next session before it releases
13
+ * the previous one, and reading in between would see two sessions held as the main view.
14
+ */
15
+ import type { ISessions } from '@acryldev/ui/frame';
16
+ import { type WorkspaceGroups } from '../canvas/groups.ts';
17
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
18
+ import { type MainViewNavigation } from '../sessions/main-session.ts';
19
+ /** Opens a chat by id (the board's cards, the tree, the projects actions). */
20
+ export interface SessionNavigator {
21
+ /** @returns false when the sessions service is not available yet. */
22
+ open(sessionId: string): boolean;
23
+ }
24
+ export interface ChatSelectionDeps {
25
+ readonly groups: WorkspaceGroups;
26
+ readonly shell: WorkspaceShellState;
27
+ /** DSH's sessions service; absent until the chat is composed, and replaced when the engine is. */
28
+ readonly getSessions: () => ISessions | undefined;
29
+ /** DSH's navigation (`uiWorkspace`); absent in a composition without it, in which case ACRYL holds the main view itself. */
30
+ readonly getNavigation: () => MainViewNavigation | undefined;
31
+ /** Shows the workspace's tabs again when a page (Plugins, Automation tasks) covers them; a user's pick always returns to the tabs. */
32
+ readonly showTabs?: () => void;
33
+ /** Defers reconciling until the session list has settled. Default: a microtask. */
34
+ readonly schedule?: (run: () => void) => void;
35
+ }
36
+ export declare class ChatSelection implements SessionNavigator {
37
+ private readonly deps;
38
+ /** The chat the tab sets were last reconciled to, and the tab set its tab was placed in. */
39
+ private shown;
40
+ private placedIn;
41
+ /** What the last reconcile saw of the shown session's blank state: New Session is the transition into blank, not the state. */
42
+ private shownBlank;
43
+ private scheduled;
44
+ private readonly seenTitles;
45
+ private readonly schedule;
46
+ constructor(deps: ChatSelectionDeps);
47
+ /** Show a chat. Its tab and worktree follow when the session list reports the switch. */
48
+ open(sessionId: string): boolean;
49
+ /** The user selected a tab in a worktree's tab set: select it, and show its chat when it is a chat tab bound to one. */
50
+ selectTab(worktree: string, tileId: string): void;
51
+ /**
52
+ * The user selected a worktree (its name or its expander in the tree): select it and show its chat - the chat tab it had selected,
53
+ * else whatever `otherwise` shows (its most recent chat, or a new one).
54
+ */
55
+ showWorktree(path: string, otherwise: () => void): void;
56
+ /** The chat on screen, from DSH's session list. */
57
+ current(): string | undefined;
58
+ /**
59
+ * Keep the tab sets and the selected worktree following DSH's main view for as long as `sessions` is the sessions service.
60
+ * @returns disposer.
61
+ */
62
+ watch(sessions: ISessions): () => void;
63
+ private reconcile;
64
+ /**
65
+ * Move the shown chat's tab to the worktree that owns it when that is known only now: at startup the chat is placed before the tree has
66
+ * discovered its worktree, in the tab set on screen (none selected yet).
67
+ */
68
+ private relocateShown;
69
+ private ensureSelectedWorktreeTabs;
70
+ }
@@ -0,0 +1,16 @@
1
+ /** Focus the chat composer once the chat surface has rendered, so a page that was reloaded is ready to type into. */
2
+ /** How long to watch after a chat becomes the shown tab: on a reload the session list and the chat client arrive asynchronously. */
3
+ export declare const COMPOSER_FOCUS_WATCH_MS = 30000;
4
+ /** How often to look while watching. */
5
+ export declare const COMPOSER_FOCUS_POLL_MS = 150;
6
+ /**
7
+ * Watch for the chat composer and focus it while the chat is shown.
8
+ *
9
+ * After a reload the chat surface mounts before the composer does, and nothing moves focus into the message box, so the page lands with focus on
10
+ * the body and an attendee has to click the box before the first word. The same happens when the surface re-renders while the worktree restore
11
+ * settles and the focused node is replaced: focus falls back to the body. Both recover here, because the watch keeps looking while it runs and
12
+ * acts only when focus is on the page itself.
13
+ *
14
+ * @returns a disposer that stops the watch; call it when the chat is no longer shown or the canvas unmounts.
15
+ */
16
+ export declare function focusChatComposer(doc?: Document, watchMs?: number, pollMs?: number): () => void;
@@ -0,0 +1,9 @@
1
+ /** Right pane tab: the selected worktree's package scripts, each runnable in a terminal tab of that worktree. */
2
+ import type { PropsRuntime } from '@acryldev/ui/frame';
3
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
4
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
5
+ export type ChecksBodyProps = PropsRuntime<'sidebar.right.pane.tab'> & {
6
+ readonly shell: WorkspaceShellState;
7
+ readonly gitApi: WorkspaceGitApi;
8
+ };
9
+ export declare function ChecksBody({ shell, gitApi }: ChecksBodyProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /** The `checks` right-sidebar tab type: a dependency-gated child plugin like the Changes and Review tabs. */
2
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
3
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
4
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
5
+ export declare const CHECKS_KIND = "checks";
6
+ export declare const CHECKS_ID = "acryl-workspace/checks";
7
+ /** PENDING (not failed) while the upstream right sidebar is absent; both registrations unwind together. */
8
+ export declare function checksTabPlugin(shell: WorkspaceShellState, gitApi: WorkspaceGitApi): {
9
+ name: string;
10
+ inject: string[];
11
+ apply(ctx: ClientContext): void;
12
+ };
@@ -0,0 +1,11 @@
1
+ /** The slim status line under the workspace. */
2
+ import type { StatusSegment } from './status-line.ts';
3
+ export interface StatusAction {
4
+ readonly label: string;
5
+ readonly title: string;
6
+ run(): void;
7
+ }
8
+ export declare function StatusLine({ segments, action }: {
9
+ readonly segments: readonly StatusSegment[];
10
+ readonly action?: StatusAction;
11
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,16 @@
1
+ /** The right panel's entries for this package's tabs (Code, Changes, Review, Checks, Comments), drawn like the panel's own glyphs: one stroke, current color. */
2
+ import type { ReactElement } from 'react';
3
+ export interface PanelIconProps {
4
+ readonly size?: number | undefined;
5
+ readonly className?: string | undefined;
6
+ }
7
+ /** Code: angle brackets. */
8
+ export declare function CodeGlyph(props: PanelIconProps): ReactElement;
9
+ /** Changes: a branch with a changed commit. */
10
+ export declare function ChangesGlyph(props: PanelIconProps): ReactElement;
11
+ /** Review: a speech bubble with lines. */
12
+ export declare function ReviewGlyph(props: PanelIconProps): ReactElement;
13
+ /** Checks: a check mark in a circle. */
14
+ export declare function ChecksGlyph(props: PanelIconProps): ReactElement;
15
+ /** Comments: two overlapping speech bubbles (a note on a line, kept until used). */
16
+ export declare function CommentsGlyph(props: PanelIconProps): ReactElement;
@@ -0,0 +1,19 @@
1
+ /** What the slim status line under the workspace says: the branch, its changes, and who is working. */
2
+ export interface StatusLineInput {
3
+ /** The selected worktree's branch (null when detached), or undefined when no worktree is selected. */
4
+ readonly branch: string | null | undefined;
5
+ readonly changedFiles: number;
6
+ readonly added: number;
7
+ readonly removed: number;
8
+ /** Agents (chat sessions and subagents) working right now. */
9
+ readonly runningAgents: number;
10
+ /** Terminal and agent tabs open in the selected worktree. */
11
+ readonly terminals: number;
12
+ }
13
+ export interface StatusSegment {
14
+ readonly id: 'branch' | 'changes' | 'running' | 'terminals';
15
+ readonly text: string;
16
+ readonly title: string;
17
+ }
18
+ /** @returns the segments to show, in order; a segment with nothing to say is left out. */
19
+ export declare function buildStatusLine(input: StatusLineInput): StatusSegment[];
@@ -0,0 +1,13 @@
1
+ /** Which agents are open in which worktree, for the icons next to each branch in the Projects list. */
2
+ /** The slice of a tab this needs. */
3
+ export interface AgentTab {
4
+ readonly kind: string;
5
+ readonly commandId?: string | undefined;
6
+ }
7
+ /** How many agent icons a worktree row shows before it says "+N". */
8
+ export declare const MAX_ROW_AGENTS = 4;
9
+ /**
10
+ * @param tabsByWorktree - the open tabs of each worktree, by worktree path.
11
+ * @returns for each worktree, the distinct agents (not plain terminals) open in it, in tab order.
12
+ */
13
+ export declare function agentsByWorktree(tabsByWorktree: ReadonlyMap<string, readonly AgentTab[]>): ReadonlyMap<string, readonly string[]>;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Right pane tab: every comment on the selected worktree's files that has not been used yet. Each can be copied, sent into one of the open
3
+ * terminals or agents, or closed; so can all of them at once. Copying or sending uses a comment up: it leaves the list and its note closes.
4
+ */
5
+ import type { PropsRuntime } from '@acryldev/ui/frame';
6
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
7
+ import type { CommentStore } from './comment-store.ts';
8
+ import type { TerminalTarget } from './terminal-targets.ts';
9
+ import { type PasteTarget, type WriteText } from './use-comments.ts';
10
+ /** What the page needs from the open terminals. */
11
+ export interface CommentTerminals {
12
+ /** The open terminals and agents, the worktree's own first. */
13
+ readonly list: (worktree: string) => readonly TerminalTarget[];
14
+ readonly pasteTarget: (terminalId: string) => PasteTarget | undefined;
15
+ /** Bring the terminal's tab to the front and give it the keyboard. */
16
+ readonly reveal: (target: TerminalTarget) => void;
17
+ }
18
+ export type CommentsBodyProps = PropsRuntime<'sidebar.right.pane.tab'> & {
19
+ readonly shell: WorkspaceShellState;
20
+ readonly comments: CommentStore;
21
+ readonly terminals: CommentTerminals;
22
+ readonly writeText: WriteText | undefined;
23
+ };
24
+ export declare function CommentsBody({ shell, comments, terminals, writeText }: CommentsBodyProps): import("react").JSX.Element;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The comments the user wrote on lines of files and has not used yet, per worktree. A comment stays here, and as a note under its lines,
3
+ * until the user copies it, sends it to a terminal or agent, or closes it; it never goes anywhere by itself. Persisted in the renderer like
4
+ * the tab layout, so a reload keeps them.
5
+ */
6
+ import type { LineComment } from '../files/line-comment.ts';
7
+ export interface OpenComment extends LineComment {
8
+ readonly id: string;
9
+ readonly createdAt: number;
10
+ }
11
+ export declare const COMMENTS_STORAGE_KEY = "acryl-workspace:comments:v1";
12
+ export declare const MAX_COMMENTS_PER_WORKTREE = 200;
13
+ /** Parse saved comments defensively: anything malformed is dropped, never thrown. */
14
+ export declare function parseSavedComments(raw: string | null | undefined): OpenComment[];
15
+ export declare class CommentStore {
16
+ private readonly clock;
17
+ private comments;
18
+ private version;
19
+ private nextId;
20
+ private readonly listeners;
21
+ constructor(saved?: readonly OpenComment[], clock?: () => number);
22
+ /** @returns disposer. */
23
+ subscribe(listener: () => void): () => void;
24
+ /** Changes on every mutation; a cheap snapshot for `useSyncExternalStore`. */
25
+ getVersion(): number;
26
+ all(): readonly OpenComment[];
27
+ /** One worktree's comments, by file and line. */
28
+ forWorktree(worktree: string): readonly OpenComment[];
29
+ forFile(worktree: string, file: string): readonly OpenComment[];
30
+ add(input: LineComment): OpenComment;
31
+ /** The lines moved (the file was edited above or inside them while it was open). */
32
+ move(id: string, fromLine: number, toLine: number): void;
33
+ /** Used (copied or sent) or closed: the comments leave the list and their notes close. */
34
+ remove(ids: readonly string[]): void;
35
+ private changed;
36
+ }
37
+ /** Save the store on every change. @returns a disposer that stops saving. */
38
+ export declare function startCommentPersistence(store: CommentStore, storage: Pick<Storage, 'setItem'> | undefined): () => void;
@@ -0,0 +1,14 @@
1
+ /** The `comments` right-sidebar tab type, listed under Checks on the Start page: a dependency-gated child plugin like the Review tab. */
2
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
3
+ import { type CommentTerminals } from './CommentsBody.tsx';
4
+ import type { CommentStore } from './comment-store.ts';
5
+ import type { WriteText } from './use-comments.ts';
6
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
7
+ export declare const COMMENTS_KIND = "comments";
8
+ export declare const COMMENTS_ID = "acryl-workspace/comments";
9
+ /** PENDING (not failed) while the upstream right sidebar is absent; both registrations unwind together. */
10
+ export declare function commentsTabPlugin(shell: WorkspaceShellState, comments: CommentStore, terminals: CommentTerminals, writeText: WriteText | undefined): {
11
+ name: string;
12
+ inject: string[];
13
+ apply(ctx: ClientContext): void;
14
+ };
@@ -0,0 +1,6 @@
1
+ /** One open file's view of the workspace's comments, as the code editor's notes use it. */
2
+ import type { EditorComments } from '../files/line-comments.ts';
3
+ import type { CommentStore } from './comment-store.ts';
4
+ import { type WriteText } from './use-comments.ts';
5
+ /** @param writeText - the clipboard; undefined where the page has none (copying then says so). */
6
+ export declare function editorComments(store: CommentStore, worktree: string, file: string, writeText: WriteText | undefined): EditorComments;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The open terminals a comment can be sent into: the terminal and agent tabs of the shown workspace's worktrees, and the terminal panel's
3
+ * tabs, each named as the user sees it. Only terminals whose process is running are offered.
4
+ */
5
+ import { type WorkspaceGroups } from '../canvas/groups.ts';
6
+ import type { DockGroups } from '../dock/dock-tabs.ts';
7
+ import type { TerminalSession } from '../terminal/terminal-session.ts';
8
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
9
+ export interface TerminalTarget {
10
+ readonly terminalId: string;
11
+ /** The tab's name, as its tab shows it. */
12
+ readonly title: string;
13
+ /** The worktree the tab belongs to. */
14
+ readonly worktree: string;
15
+ /** Its branch, or the folder's name, for the menu. */
16
+ readonly worktreeLabel: string;
17
+ /** A canvas tab (agents and terminals opened from +) or a tab of the terminal panel. */
18
+ readonly place: 'tab' | 'panel';
19
+ /** The canvas tab's id, to bring it to the front. */
20
+ readonly tabId?: string;
21
+ /** An agent (Claude Code, Codex, ...) rather than a plain shell. */
22
+ readonly agent: boolean;
23
+ }
24
+ export interface TerminalTargetDeps {
25
+ readonly groups: Pick<WorkspaceGroups, 'keys' | 'stateFor'>;
26
+ readonly dock: {
27
+ readonly groups: Pick<DockGroups, 'keys' | 'stateFor'>;
28
+ };
29
+ readonly terminals: {
30
+ readonly get: (terminalId: string) => Pick<TerminalSession, 'isLive'> | undefined;
31
+ };
32
+ readonly shell: Pick<WorkspaceShellState, 'getSnapshot'>;
33
+ }
34
+ /** @param first - the worktree whose terminals come first (the one the comments are from). */
35
+ export declare function listTerminalTargets(deps: TerminalTargetDeps, first?: string): TerminalTarget[];
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Using comments, the two ways the user chose: copy them (one, or all of a worktree) to paste anywhere, or send them into one open terminal
3
+ * or agent. Either way they are used up: they leave the list and their notes close. Nothing is used up when the copy or the send failed.
4
+ */
5
+ import type { CommentStore, OpenComment } from './comment-store.ts';
6
+ export type UseResult = {
7
+ readonly ok: true;
8
+ } | {
9
+ readonly ok: false;
10
+ readonly message: string;
11
+ };
12
+ /** The clipboard, as the page has it. */
13
+ export type WriteText = (text: string) => Promise<void>;
14
+ /** The browser's clipboard; undefined where the page has none. */
15
+ export declare function browserClipboard(): WriteText | undefined;
16
+ /** Copy `comments` as one text and use them up. */
17
+ export declare function copyComments(store: Pick<CommentStore, 'remove'>, writeText: WriteText | undefined, comments: readonly OpenComment[]): Promise<UseResult>;
18
+ /** A running terminal, as far as sending into it goes. */
19
+ export interface PasteTarget {
20
+ readonly paste: (text: string) => void;
21
+ readonly takesMultilinePaste: () => boolean;
22
+ }
23
+ /**
24
+ * Type `comments` into the terminal as one paste, not submitted, so the user can add to it and press Enter; then use them up. A program
25
+ * without bracketed paste gets each comment as one line, so a shell never runs them.
26
+ */
27
+ export declare function sendComments(store: Pick<CommentStore, 'remove'>, target: PasteTarget | undefined, comments: readonly OpenComment[]): UseResult;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The frame's session banner: what the page shows when its browser session has ended.
3
+ *
4
+ * DSH's connection controller retries forever and reports `connecting`; if the browser lost the cookie that admits its requests, every retry answers 401 and
5
+ * the frame would show "Reconnecting..." indefinitely with no way to say why. This watches the connection's own recovery state and, while it is not
6
+ * connected, polls one cheap same-origin endpoint that goes through the same admission (the workspace's own routes sit on a longer router prefix and are
7
+ * not behind the browser session, so they cannot answer this). A 401 that holds for the configured confirmations means the session is gone: the banner
8
+ * says so and names the command that prints a way back in - `npx acrylblends open` - instead of spinning. Any admitted answer (200, 400, 404, 500) means
9
+ * the session is alive and the banner stays quiet; a network failure means the host itself is not answering, which is the retry's business.
10
+ */
11
+ import type { Context } from '@deepseek-ai/cordis';
12
+ /** What the banner renders. */
13
+ export type FrameSessionState = 'live' | 'waiting' | 'ended';
14
+ /** The message when the session is gone: the command is the recovery, so it is named exactly. */
15
+ export declare const FRAME_SESSION_ENDED_MESSAGE = "This frame's session ended. Open the address the terminal printed, or run `npx acrylblends open` in the app folder and open the address it prints.";
16
+ /** The part of DSH's client connection service this needs. */
17
+ export interface ConnectionStateSource {
18
+ getSnapshot(): string | undefined;
19
+ subscribe(listener: () => void): () => void;
20
+ }
21
+ export interface FrameSessionBannerOptions {
22
+ /** DSH's client connection service; absent in a composition without one (the banner then never shows). */
23
+ readonly connection: ConnectionStateSource | undefined;
24
+ /** One admitted request's status: any answer but 401 means the session is alive. Rejecting means the host did not answer. */
25
+ readonly probe: (signal: AbortSignal) => Promise<number>;
26
+ /** How often to poll while the connection is not up. */
27
+ readonly everyMs?: number;
28
+ /** Consecutive 401s before the banner shows (a single 401 during a reconnect race is not a verdict). */
29
+ readonly confirmations?: number;
30
+ }
31
+ export interface FrameSessionBanner {
32
+ getSnapshot(): FrameSessionState;
33
+ subscribe(listener: () => void): () => void;
34
+ /** Stop the watcher and any pending poll; the banner disappears. */
35
+ dispose(): void;
36
+ }
37
+ /**
38
+ * Start the watcher. It subscribes to the connection state and polls only while that state is not `connected`; a 401 answers the question, a 200 (or any
39
+ * admitted status) answers it the other way, and the banner appears only after the configured number of consecutive 401s.
40
+ */
41
+ export declare function startFrameSessionBanner(options: FrameSessionBannerOptions): FrameSessionBanner;
42
+ /** The `ctx.connection` shape this module reads, for a composition that provides one. */
43
+ export interface FrameConnectionService {
44
+ readonly state?: ConnectionStateSource;
45
+ }
46
+ /** `startFrameSessionBanner` from a client context: undefined when the composition has no connection service to watch. */
47
+ export declare function frameSessionBannerFrom(ctx: Context, probe: (signal: AbortSignal) => Promise<number>): FrameSessionBanner;
48
+ /** The endpoint the poll asks: a small Remote the gateway answers, behind the connection's own admission (the `/api` route). Any status is an answer. */
49
+ export declare const FRAME_SESSION_PROBE_PATH = "/api/settings/describe";
50
+ /** One admitted request; its status is the answer (401 means the browser session is gone). */
51
+ export declare function probeAdmittedSession(signal: AbortSignal, fetchImpl?: typeof fetch): Promise<number>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Diff tile, git mode: one changed file's diff against HEAD, in a unified or side-by-side layout, with line
3
+ * numbers, and line or line-range comments sent to the agent.
4
+ */
5
+ import type { SendResult } from '../sessions/agent-bridge.ts';
6
+ import type { ReviewCommentInput } from './comment-message.ts';
7
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
8
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
9
+ import type { WorkspaceTile } from '../canvas/state.ts';
10
+ /** Rendering beyond this many rows is cut, so one huge diff cannot freeze the window. */
11
+ export declare const MAX_RENDERED_ROWS = 5000;
12
+ /**
13
+ * A primitive fingerprint of how git currently sees one file (status letter, staged flag, line
14
+ * counts). When it moves, the shown diff is stale and is fetched again.
15
+ */
16
+ export declare function changeSignature(shell: WorkspaceShellState, worktree: string, file: string): string;
17
+ export interface GitDiffPaneProps {
18
+ readonly tile: WorkspaceTile;
19
+ readonly shell: WorkspaceShellState;
20
+ readonly gitApi: WorkspaceGitApi;
21
+ /**
22
+ * Deliver a line comment to the agent. When absent the diff is read-only (no comment buttons).
23
+ * The pane supplies the file and line; the caller adds anything else the message needs.
24
+ */
25
+ readonly sendComment?: (input: Omit<ReviewCommentInput, 'branch'>) => Promise<SendResult>;
26
+ }
27
+ export declare function GitDiffPane({ tile, shell, gitApi, sendComment }: GitDiffPaneProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /** The scratch diff tab: two text areas in, a line diff out. */
2
+ import type { WorkspaceState, WorkspaceTile } from '../canvas/state.ts';
3
+ export declare function TextDiffPane({ tile, workspace, }: {
4
+ tile: WorkspaceTile;
5
+ workspace: WorkspaceState;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,29 @@
1
+ /** The text a diff line comment becomes when it is sent to the agent as an ordinary user message. */
2
+ export type CommentSide = 'old' | 'new';
3
+ export type CommentLineKind = 'add' | 'remove' | 'context';
4
+ export interface ReviewCommentInput {
5
+ /** Path relative to the worktree. */
6
+ readonly file: string;
7
+ /** Branch the worktree has checked out, when known. */
8
+ readonly branch: string | null | undefined;
9
+ /** Which file version the line number refers to. */
10
+ readonly side: CommentSide;
11
+ readonly line: number;
12
+ readonly kind: CommentLineKind;
13
+ /** The diff line's text, without its +/- marker. */
14
+ readonly lineText: string;
15
+ /** Last line of a multi-line comment (same side); absent for a single line. */
16
+ readonly endLine?: number;
17
+ /** For a multi-line comment, every line in the range with its own kind, so the block shows real markers. */
18
+ readonly rangeLines?: readonly {
19
+ readonly kind: CommentLineKind;
20
+ readonly text: string;
21
+ }[];
22
+ readonly comment: string;
23
+ }
24
+ /**
25
+ * Compose a message that carries enough context for the agent to act without opening the diff:
26
+ * the file, the version and line number, the branch, the line itself, then the reviewer's words.
27
+ * The session log then holds the comment durably, with no separate store.
28
+ */
29
+ export declare function buildReviewComment(input: ReviewCommentInput): string;
@@ -0,0 +1,4 @@
1
+ /** The remembered diff layout: one column ("unified") or old next to new ("split"). */
2
+ export type DiffLayout = 'unified' | 'split';
3
+ export declare function readDiffLayout(storage: Pick<Storage, 'getItem'> | undefined): DiffLayout;
4
+ export declare function writeDiffLayout(storage: Pick<Storage, 'setItem'> | undefined, layout: DiffLayout): void;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Minimal, dependency-free line diff (LCS-based, Myers-equivalent for small inputs). Spec 040
3
+ * open question 5 leaves "which diff-rendering library" unresolved, so this pass ships a small,
4
+ * real, self-contained algorithm rather than take on an unresolved external dependency - it is
5
+ * genuinely useful (a real unified-diff view, not a stub) and can be swapped for a library later
6
+ * without changing the Diff tile's own contract (an array of DiffLine).
7
+ */
8
+ export type DiffLineKind = 'context' | 'add' | 'remove';
9
+ export interface DiffLine {
10
+ readonly kind: DiffLineKind;
11
+ readonly text: string;
12
+ }
13
+ /** Longest-common-subsequence line diff between two texts. */
14
+ export declare function diffLines(before: string, after: string): readonly DiffLine[];
@@ -0,0 +1,31 @@
1
+ /** Parse `git diff` unified output into display rows with old and new line numbers. */
2
+ export type UnifiedRowKind = 'meta' | 'hunk' | 'context' | 'add' | 'remove';
3
+ export interface UnifiedRow {
4
+ readonly kind: UnifiedRowKind;
5
+ readonly text: string;
6
+ /** Line number in the old file; absent for added lines and meta rows. */
7
+ readonly oldNo?: number;
8
+ /** Line number in the new file; absent for removed lines and meta rows. */
9
+ readonly newNo?: number;
10
+ }
11
+ /**
12
+ * @param text - unified diff text for one file.
13
+ * @returns one row per line, with line numbers tracked across hunks.
14
+ */
15
+ export declare function parseUnifiedDiff(text: string): UnifiedRow[];
16
+ /** One display row of the side-by-side layout: a hunk header, or an old-side cell next to a new-side cell. */
17
+ export type SplitRow = {
18
+ readonly kind: 'hunk';
19
+ readonly text: string;
20
+ } | {
21
+ readonly kind: 'pair';
22
+ readonly left?: UnifiedRow;
23
+ readonly right?: UnifiedRow;
24
+ };
25
+ /**
26
+ * Lay unified rows out side by side: context on both sides, and each run of removals next to the run of
27
+ * additions that follows it (zipped, the shorter side left empty). Meta rows are dropped.
28
+ */
29
+ export declare function pairRows(rows: readonly UnifiedRow[]): SplitRow[];
30
+ /** The rows of one file version between two line numbers, inclusive, in diff order. */
31
+ export declare function rowsInRange(rows: readonly UnifiedRow[], side: 'old' | 'new', from: number, to: number): UnifiedRow[];
@@ -0,0 +1,19 @@
1
+ /** The tab strip's layout buttons: where the (always-visible) terminal panel sits, and the right panel's own open/closed state. */
2
+ import type { DockController } from './dock-controller.ts';
3
+ /** The whole right pane's own open/collapsed state - a separate, still-useful concept from the dock's mode: it
4
+ * gives the centre column more room regardless of which mode the (always-visible) terminal panel is in. */
5
+ export interface RightPaneHandle {
6
+ toggle(): void;
7
+ isOpen(): boolean;
8
+ subscribe(listener: () => void): () => void;
9
+ }
10
+ /**
11
+ * The terminal panel is always visible, but in `stacked` and `side` modes it lives inside the right pane, so
12
+ * moving there needs that pane open too - one rule, used by both ways a person changes the mode (this button,
13
+ * the palette's `Terminal panel: ...` commands), so they cannot drift into disagreeing about it.
14
+ */
15
+ export declare function ensureDockVisible(dock: DockController, rightPane: RightPaneHandle | undefined): void;
16
+ export declare function DockButtons({ controller, rightPane }: {
17
+ readonly controller: DockController;
18
+ readonly rightPane: RightPaneHandle | undefined;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Where the terminal panel sits. The frame renders its two columns through these, so the dock's three modes are
3
+ * decided in one place:
4
+ *
5
+ * - {@link CenterColumn}: in `bottom` mode the panel sits under the main chat or canvas.
6
+ * - {@link RightColumn}: in `stacked` mode the panel sits under the right pane's tabs; in `side` mode the right pane
7
+ * shows either the terminals or its own content at full height, with a two-icon switcher at the bottom.
8
+ *
9
+ * The right pane's own content (the upstream panel) is always rendered in the same place in the tree, and hidden
10
+ * rather than removed when the terminals take its space, so it never remounts when the layout changes.
11
+ */
12
+ import { type ReactNode } from 'react';
13
+ import { type DockHost } from './dock-host.ts';
14
+ export declare function CenterColumn({ host, children }: {
15
+ readonly host: DockHost;
16
+ readonly children: ReactNode;
17
+ }): import("react").JSX.Element;
18
+ export declare function RightColumn({ host, rightbar }: {
19
+ readonly host: DockHost;
20
+ readonly rightbar: ReactNode;
21
+ }): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /** The draggable, keyboard-operable bar between the panel above and the terminal panel below. */
2
+ export interface DockDividerProps {
3
+ readonly label: string;
4
+ /** While dragging, the pointer's viewport Y; the owner turns it into a size. */
5
+ onDragTo(clientY: number): void;
6
+ /** Arrow keys: -1 grows the terminal panel, +1 shrinks it. */
7
+ onStep(direction: -1 | 1): void;
8
+ onReset(): void;
9
+ readonly valueNow: number;
10
+ readonly valueMin: number;
11
+ readonly valueMax: number;
12
+ }
13
+ export declare function DockDivider({ label, onDragTo, onStep, onReset, valueNow, valueMin, valueMax }: DockDividerProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The terminal panel: a strip of terminal tabs (rename by double-click, close, and + for a new one) over the
3
+ * active terminal. It follows the selected worktree, so each branch has its own terminals, and it starts a first
4
+ * terminal by itself when it is opened empty.
5
+ */
6
+ import type { DockHost } from './dock-host.ts';
7
+ export interface TerminalDockPanelProps {
8
+ readonly host: DockHost;
9
+ readonly groupKey: string;
10
+ /** The directory a new terminal starts in (the selected worktree). */
11
+ readonly cwd: string | undefined;
12
+ }
13
+ export declare function TerminalDockPanel({ host, groupKey, cwd }: TerminalDockPanelProps): import("react").JSX.Element;