@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,60 @@
1
+ /** Pure model of the Files tab tree: which directories are open, what each holds, the rows to show, and which of them to draw. */
2
+ import type { FileEntry } from '../../files/contract.ts';
3
+ export type DirState = {
4
+ readonly phase: 'loading';
5
+ } | {
6
+ readonly phase: 'error';
7
+ readonly message: string;
8
+ } | {
9
+ readonly phase: 'ready';
10
+ readonly entries: readonly FileEntry[];
11
+ readonly truncated: boolean;
12
+ };
13
+ export interface TreeRow {
14
+ /** Path relative to the worktree, `/`-separated. */
15
+ readonly path: string;
16
+ readonly name: string;
17
+ readonly kind: 'file' | 'dir';
18
+ readonly depth: number;
19
+ readonly open: boolean;
20
+ /** Git ignores it, or a folder above it. */
21
+ readonly ignored: boolean;
22
+ /** Set on a directory row whose content is still loading or failed. */
23
+ readonly status?: 'loading' | 'error';
24
+ }
25
+ export declare function joinPath(dir: string, name: string): string;
26
+ /** The folder holding `path`; `''` for an entry of the root. */
27
+ export declare function parentOf(path: string): string;
28
+ /** Flatten the loaded directories into the visible rows, honouring which are open. */
29
+ export declare function visibleRows(dirs: ReadonlyMap<string, DirState>, open: ReadonlySet<string>): TreeRow[];
30
+ /** What a key does to the tree, given the row it is on. */
31
+ export type TreeMove = {
32
+ readonly kind: 'focus';
33
+ readonly index: number;
34
+ } | {
35
+ readonly kind: 'toggle';
36
+ readonly path: string;
37
+ } | {
38
+ readonly kind: 'open';
39
+ readonly path: string;
40
+ } | {
41
+ readonly kind: 'none';
42
+ };
43
+ /**
44
+ * Arrow keys walk the rows; Right opens a closed folder, then steps into it; Left closes an open folder, then steps to its parent; Enter
45
+ * opens a file or toggles a folder; Home and End jump to the ends.
46
+ */
47
+ export declare function moveFor(key: string, rows: readonly TreeRow[], index: number): TreeMove;
48
+ /** Rows drawn beyond each edge of the view, so a fast scroll never shows a gap. */
49
+ export declare const OVERSCAN_ROWS = 8;
50
+ /**
51
+ * The rows to draw for a scroll position: only those in view, plus a margin. A long tree (an opened `node_modules`) stays as fast as a
52
+ * short one.
53
+ * @param viewHeight - the scroll box's height; 0 before it is measured, which draws a first screenful.
54
+ */
55
+ export declare function rowWindow(count: number, rowHeight: number, scrollTop: number, viewHeight: number): {
56
+ readonly first: number;
57
+ readonly last: number;
58
+ };
59
+ /** The scroll position that shows row `index` whole, moving as little as possible; `scrollTop` itself when it is already in view. */
60
+ export declare function scrollToShow(index: number, rowHeight: number, scrollTop: number, viewHeight: number): number;
@@ -0,0 +1,35 @@
1
+ /** Same-origin browser client for the read-only Workspace git routes. */
2
+ import { type GitChecksView, type GitCommitView, type GitDiffView, type GitRepoView, type GitSearchMode, type GitSearchView, type GitStatusView, type GitWorktreeCreatedView } from '../../git/contract.ts';
3
+ export interface WorkspaceGitApi {
4
+ /** @returns the repository containing `cwd`, or null when it is not in a git repository. */
5
+ repo(cwd: string): Promise<GitRepoView | null>;
6
+ status(path: string): Promise<GitStatusView>;
7
+ diff(path: string, file: string): Promise<GitDiffView>;
8
+ /** The package scripts a worktree can run as checks, with its package manager. */
9
+ checks(path: string): Promise<GitChecksView>;
10
+ /**
11
+ * Stage files, answering the worktree's status afterwards.
12
+ * @throws an Error whose message is fit to show the user.
13
+ */
14
+ stage(path: string, files: readonly string[]): Promise<GitStatusView>;
15
+ unstage(path: string, files: readonly string[]): Promise<GitStatusView>;
16
+ /**
17
+ * Commit what is staged (never pushes).
18
+ * @throws an Error whose message says what to fix (no message, nothing staged, no git identity).
19
+ */
20
+ commit(path: string, message: string): Promise<GitCommitView>;
21
+ /**
22
+ * Find files by name or lines by content in a worktree (literal text, capped).
23
+ * @throws an Error whose message is fit to show the user.
24
+ */
25
+ search(path: string, query: string, mode: GitSearchMode): Promise<GitSearchView>;
26
+ /**
27
+ * Create a branch and its worktree.
28
+ * @throws an Error whose message is fit to show the user (for example "the branch x already exists").
29
+ */
30
+ createWorktree(cwd: string, branch: string): Promise<GitWorktreeCreatedView>;
31
+ }
32
+ type FetchLike = (input: string, init?: RequestInit) => Promise<Response>;
33
+ /** @param fetchImpl - injectable for tests; defaults to the page's fetch. */
34
+ export declare function createWorkspaceGitApi(fetchImpl?: FetchLike): WorkspaceGitApi;
35
+ export {};
@@ -0,0 +1,28 @@
1
+ import '@deepseek-ai/dsh-client-ui-renderer/client';
2
+ import '@deepseek-ai/dsh-client-ui-session/client';
3
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
4
+ import '@acryldev/app-shell/client';
5
+ /**
6
+ * Slot priority for the Workspace canvas. Lower renders. The older `acryl-development-canvas`
7
+ * market plugin registers `desktop.main` at 0, and a single slot throws on a second registration at
8
+ * the same priority, which failed this whole plugin. -1 shadows it deliberately: the Workspace is
9
+ * its successor, and disabling either plugin leaves the other working.
10
+ */
11
+ export declare const WORKSPACE_MAIN_PRIORITY = -1;
12
+ export declare const name = "acryl-workspace-client";
13
+ export declare const inject: string[];
14
+ /**
15
+ * The ACRYL shell and workspace, identical on Web and Desktop. In the advanced shell this plugin owns the
16
+ * frame (`shell/`) and contributes the tile canvas to `desktop.main` and the Chats | Projects left pane to
17
+ * `desktop.sidebar`, ahead of the defaults (priority 100; lower wins for a `single` slot). Desktop's
18
+ * compatibility mode keeps the stock frame, so only the right-panel tabs are registered there. One shell
19
+ * state feeds every pane and is refreshed by one owned polling effect.
20
+ */
21
+ export declare function apply(ctx: ClientContext): void;
22
+ export { WorkspaceCanvas } from './canvas/WorkspaceCanvas.tsx';
23
+ export { ProjectsSidebar } from './projects/ProjectsSidebar.tsx';
24
+ export { WorkspaceShellState } from './worktrees/shell-state.ts';
25
+ export { WorkspacePtyClient } from './sessions/session-client.ts';
26
+ export { WorkspaceState, normalizeBrowserUrl } from './canvas/state.ts';
27
+ export { provideWorkspaceTabs } from './tabs/registry/provide.ts';
28
+ export type { WorkspaceTabProps, WorkspaceTabType } from './tabs/registry/tab-registry.ts';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The first-run card inside the chat surface: paste an API key, stored by DeepSeek Harness itself. Non-modal, in
3
+ * ACRYL's design, and dismissible; the Models settings page stays the place for every other provider.
4
+ */
5
+ import type { ModelConnectControl } from './model-connect.ts';
6
+ export interface ModelConnectProps {
7
+ readonly control: ModelConnectControl;
8
+ }
9
+ /**
10
+ * @param props.control - the workspace's model-connection controller.
11
+ * @returns the card while no model can serve a request, and nothing otherwise.
12
+ */
13
+ export declare function ModelConnect({ control }: ModelConnectProps): import("react").JSX.Element | null;
@@ -0,0 +1,145 @@
1
+ /**
2
+ * The first-run "connect a model" step: whether this app has a model credential yet, and the one write that gives it
3
+ * one. The key travels through the Host's own credentials Remote, the same store the Models settings page writes, so
4
+ * DeepSeek Harness owns it under its home; this module never writes it to the app folder, the ACRYL home or the page.
5
+ *
6
+ * The Remote faces are read by name through the narrow ports below, like the workspace's other optional Host services,
7
+ * so a composition without the chat simply has no card instead of holding the whole plugin pending.
8
+ */
9
+ /** The share of `remote.credentials` this step uses. */
10
+ export interface ModelCredentialsPort {
11
+ describe(refs: readonly string[]): Promise<{
12
+ readonly ok: boolean;
13
+ readonly value?: Readonly<Record<string, {
14
+ readonly configured: boolean;
15
+ }>>;
16
+ readonly error?: {
17
+ readonly message: string;
18
+ };
19
+ }>;
20
+ set(ref: string, value: string): Promise<{
21
+ readonly ok: boolean;
22
+ readonly error?: {
23
+ readonly message: string;
24
+ };
25
+ }>;
26
+ }
27
+ /** The share of `remote.llm` this step uses. */
28
+ export interface ModelLlmPort {
29
+ listProviders(): Promise<{
30
+ readonly ok: boolean;
31
+ readonly value?: readonly {
32
+ readonly id: string;
33
+ readonly name: string;
34
+ }[];
35
+ readonly error?: {
36
+ readonly message: string;
37
+ };
38
+ }>;
39
+ listConfigurableProviders(): Promise<{
40
+ readonly ok: boolean;
41
+ readonly value?: readonly {
42
+ readonly provider: string;
43
+ }[];
44
+ readonly error?: {
45
+ readonly message: string;
46
+ };
47
+ }>;
48
+ }
49
+ /**
50
+ * The share of `remote.session` the account check uses: the same catalog the Models page joins for
51
+ * `ProviderRow.accountAvailable` (a `deepseek-account` group with at least one live model means the signed-in account can
52
+ * serve requests, so the API-key card has nothing to ask for).
53
+ */
54
+ export interface ModelSessionPort {
55
+ modelCatalog(): Promise<{
56
+ readonly ok: boolean;
57
+ readonly value?: {
58
+ readonly groups: readonly {
59
+ readonly id: string;
60
+ readonly models: readonly unknown[];
61
+ }[];
62
+ };
63
+ readonly error?: {
64
+ readonly message: string;
65
+ };
66
+ }>;
67
+ }
68
+ /** The group id the Models page checks for an available account route (`ProviderRow.accountAvailable`). */
69
+ export declare const ACCOUNT_MODEL_GROUP = "deepseek-account";
70
+ /** What the chat surface shows for the step. */
71
+ export type ModelConnectState =
72
+ /** The Host has not answered yet; nothing is shown. */
73
+ {
74
+ readonly status: 'checking';
75
+ }
76
+ /** A key (or an account route) is configured; the step stays out of the way. */
77
+ | {
78
+ readonly status: 'ready';
79
+ }
80
+ /** No model can serve a request: the card asks for a key. */
81
+ | {
82
+ readonly status: 'needs-key';
83
+ readonly busy: boolean;
84
+ readonly error: string | null;
85
+ }
86
+ /** The person chose "Not now"; remembered so the step does not nag. */
87
+ | {
88
+ readonly status: 'dismissed';
89
+ }
90
+ /** The Host has no credentials or model service (a composition without the chat). */
91
+ | {
92
+ readonly status: 'unavailable';
93
+ };
94
+ /** The credential reference the official DeepSeek route resolves through by default (`llm-deepseek-api-key`'s `apiKeyEnv`). */
95
+ export declare const DEFAULT_MODEL_KEY_REF = "DEEPSEEK_API_KEY";
96
+ /** Where the dismissal is kept (browser storage, per viewer, like the workspace's other conveniences). */
97
+ export declare const MODEL_CONNECT_DISMISSED_KEY = "acryl-workspace:model-connect";
98
+ /** The same reference derivation the Models page uses for a hand-declared provider (`deriveKeyRef`). */
99
+ export declare function deriveModelKeyRef(provider: string): string;
100
+ export interface ModelConnectDeps {
101
+ /** Resolves `remote.credentials` when it is needed; undefined when the Host does not offer it. */
102
+ readonly getCredentials: () => ModelCredentialsPort | undefined;
103
+ /** Resolves `remote.llm` when it is needed; undefined when the Host does not offer it. */
104
+ readonly getLlm: () => ModelLlmPort | undefined;
105
+ /** Resolves `remote.session` for the account-availability join; absent in a composition without the session remote. */
106
+ readonly getSession?: (() => ModelSessionPort | undefined) | undefined;
107
+ /** Where the dismissal is kept; absent when browser storage is blocked. */
108
+ readonly storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined;
109
+ /** Open Settings on its Models section (the step's secondary action). */
110
+ readonly openSettings?: (() => void) | undefined;
111
+ }
112
+ /**
113
+ * One controller per workspace lifetime: the card's state, its readiness check, and the credential write. The card
114
+ * renders from {@link getSnapshot}; every change replaces the snapshot so React's store hook sees it.
115
+ */
116
+ export declare class ModelConnectControl {
117
+ private readonly deps;
118
+ private state;
119
+ private readonly listeners;
120
+ /** A refresh that started before a connect must not overwrite the connect's outcome. */
121
+ private generation;
122
+ private retryTimer;
123
+ private retries;
124
+ private disposed;
125
+ constructor(deps: ModelConnectDeps);
126
+ getSnapshot: () => ModelConnectState;
127
+ subscribe: (listener: () => void) => (() => void);
128
+ /** Run the first check. Called once from the plugin's effect. @returns disposer. */
129
+ start(): () => void;
130
+ /** Re-read readiness; a credential added elsewhere (the Settings page, another tab) hides the card. */
131
+ refresh(): Promise<void>;
132
+ /** Try again shortly while the Host is still coming up; stop after about ten seconds. */
133
+ private retryLater;
134
+ /**
135
+ * Store the typed key through the Host's credential service. On success the card leaves; the key itself is never
136
+ * kept here (the field that holds it is cleared by the caller after this resolves).
137
+ * @param key - what the person pasted; surrounding whitespace is not part of a key.
138
+ */
139
+ connect(key: string): Promise<void>;
140
+ /** "Not now": remembered in browser storage so the step does not come back on the next page. */
141
+ dismiss(): void;
142
+ /** The card's secondary action: Settings > Models, for a provider other than the official DeepSeek route. */
143
+ openSettings(): void;
144
+ private set;
145
+ }
@@ -0,0 +1,6 @@
1
+ /** The notice stack in the workspace's corner. */
2
+ import { type Toast, type ToastState } from './toast-state.ts';
3
+ export declare function Toasts({ state, onOpen }: {
4
+ readonly state: ToastState;
5
+ onOpen(target: Toast['target']): void;
6
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Notices outside the page ("Claude finished" while another app is in front).
3
+ *
4
+ * The browser Notification API is the one shared implementation: it works on Web and inside Desktop's
5
+ * renderer alike. The permission may only be asked for from a user gesture, so it is requested by a button,
6
+ * never on load. Everything behind the port is replaceable in tests.
7
+ */
8
+ export type NoticePermission = 'default' | 'granted' | 'denied' | 'unsupported';
9
+ export interface SystemNoticePort {
10
+ permission(): NoticePermission;
11
+ /** Ask the user; call only from a click. */
12
+ request(): Promise<NoticePermission>;
13
+ /** True when the page is in front of the user, so an in-page notice is enough. */
14
+ pageIsActive(): boolean;
15
+ show(title: string, body: string, onOpen: () => void): void;
16
+ }
17
+ /** @returns whether to raise a system notice now: allowed, and the user is not already looking. */
18
+ export declare function shouldRaiseSystemNotice(port: SystemNoticePort): boolean;
19
+ export declare function createBrowserNoticePort(): SystemNoticePort;
@@ -0,0 +1,29 @@
1
+ /** Short-lived notices ("Claude finished") with a way back to the tab they are about. */
2
+ export interface ToastTarget {
3
+ readonly workspace: string;
4
+ readonly worktree: string;
5
+ readonly tabId: string;
6
+ }
7
+ export interface Toast {
8
+ readonly id: number;
9
+ readonly text: string;
10
+ /** Where to go when the notice is opened: a workspace, one of its worktrees' tab sets, and one of its tabs. */
11
+ readonly target: ToastTarget;
12
+ }
13
+ /** How long a notice stays before it goes away by itself. */
14
+ export declare const TOAST_LIFETIME_MS = 12000;
15
+ /** The newest notices kept on screen; older ones make room. */
16
+ export declare const MAX_TOASTS = 4;
17
+ /** @returns the words for an agent whose process ended. */
18
+ export declare function describeFinish(title: string, exitCode: number | null): string;
19
+ export declare class ToastState {
20
+ private toasts;
21
+ private nextId;
22
+ private readonly listeners;
23
+ getSnapshot: () => readonly Toast[];
24
+ subscribe: (listener: () => void) => (() => void);
25
+ /** @returns the new notice's id. */
26
+ push(text: string, target: Toast['target']): number;
27
+ dismiss(id: number): void;
28
+ private emit;
29
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The command palette: a search box over everything ACRYL can do. Type to filter, arrow keys to move, Enter to
3
+ * run, Tab to switch what is searched (all, commands, file names, file contents), Escape to close.
4
+ */
5
+ import { type PaletteState } from './palette-state.ts';
6
+ export interface CommandPaletteProps {
7
+ readonly palette: PaletteState;
8
+ }
9
+ export declare function CommandPalette({ palette }: CommandPaletteProps): import("react").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Settings > Command palette: what the palette lists. Whole groups (commands, agents, open tabs, worktrees,
3
+ * settings, files) and single entries can be turned off. The choice is kept in the browser storage and applies at once.
4
+ */
5
+ import type { PaletteConfigState } from './palette-config.ts';
6
+ export interface PaletteSectionInjected {
7
+ readonly config: PaletteConfigState;
8
+ }
9
+ export declare function PalettePanel({ config }: PaletteSectionInjected): import("react").JSX.Element;
10
+ export declare function PaletteSection(props: PaletteSectionInjected): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /** The palette's file source: the worktree's own name and content search, shaped into palette items. */
2
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
3
+ import type { FileSearch } from './palette-state.ts';
4
+ /**
5
+ * @param gitApi - the git routes, whose search is confined to the worktree.
6
+ * @param worktree - the selected worktree, or undefined when none is selected (then there are no file results).
7
+ * @param open - opens a file in an editor tab.
8
+ */
9
+ export declare function createFileSearch(gitApi: Pick<WorkspaceGitApi, 'search'>, worktree: () => string | undefined, open: (worktree: string, file: string, line?: number) => void): FileSearch;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Fuzzy matching for the command palette. A query matches when its characters appear in the text in order
3
+ * (`nwt` finds "New worktree"); the score rewards a match at the start, at the start of a word and in an
4
+ * unbroken run, and penalises gaps, so the closest reading ranks first. Pure; no dependencies.
5
+ */
6
+ /** @returns a score (higher is better), or null when `query` is not a subsequence of `text`. Matching ignores case. */
7
+ export declare function fuzzyScore(query: string, text: string): number | null;
8
+ /**
9
+ * Every whitespace-separated term must match somewhere in the fields; the best score of each term is added.
10
+ * The first field (the title) counts extra, so a title hit outranks a keyword hit.
11
+ * @returns the total score, or null when a term matches no field.
12
+ */
13
+ export declare function scoreFields(query: string, fields: readonly string[]): number | null;
14
+ /** @returns the indexes in `text` that `query` matched (for highlighting), or [] when it does not match. */
15
+ export declare function matchIndexes(query: string, text: string): number[];
@@ -0,0 +1,64 @@
1
+ /**
2
+ * The palette's built-in items, built from one port (`PaletteActions`) so the rules here run with no page and no
3
+ * canvas. The canvas implements the port; nothing here knows how a tab is opened.
4
+ */
5
+ import type { SettingsSectionKey } from '../settings/locales.ts';
6
+ import { type WorkspaceSurfaceAction } from '../terminal/agent-commands.ts';
7
+ import type { PaletteItem } from './palette-items.ts';
8
+ /** What the palette may ask the workspace to do. */
9
+ export interface PaletteActions {
10
+ openSurface(kind: WorkspaceSurfaceAction['kind']): void;
11
+ openAgent(id: string, label: string): void;
12
+ /** Opens a tab of a plugin's registered type. */
13
+ openCustomTab(kind: string, label: string): void;
14
+ /** @returns false when the Settings panel could not be opened. */
15
+ openSettings(section: SettingsSectionKey): boolean;
16
+ toggleRightPanel(): void;
17
+ /** Moves the always-visible terminal panel: stacked under the right pane, under the main area, or side by side. */
18
+ setTerminalMode(mode: 'stacked' | 'bottom' | 'side'): void;
19
+ setShellMode(mode: 'chats' | 'projects'): void;
20
+ selectWorktree(path: string): void;
21
+ focusTab(tabId: string): void;
22
+ closeActiveTab(): void;
23
+ openFile(worktree: string, file: string, line?: number): void;
24
+ /** Starts picking an element on the page, to copy where it is for an agent (`@acryldev/mount-anchors`). */
25
+ pickElement(): void;
26
+ }
27
+ export interface PaletteView {
28
+ /** The tab types the + menu offers right now (a disabled type is not listed). */
29
+ readonly surfaces: readonly WorkspaceSurfaceAction[];
30
+ /** Tab types plugins registered and the user has not turned off. */
31
+ readonly customTabs: readonly {
32
+ readonly kind: string;
33
+ readonly label: string;
34
+ readonly description: string;
35
+ }[];
36
+ /** Agents that can be launched: installed and enabled. */
37
+ readonly agents: readonly {
38
+ readonly id: string;
39
+ readonly label: string;
40
+ }[];
41
+ readonly worktrees: readonly {
42
+ readonly path: string;
43
+ readonly label: string;
44
+ }[];
45
+ readonly tabs: readonly {
46
+ readonly id: string;
47
+ readonly title: string;
48
+ readonly kind: string;
49
+ }[];
50
+ }
51
+ /** The palette's default shortcut (registered by `@acryldev/shortcuts`), drawn for the platform. */
52
+ export declare const PALETTE_SHORTCUT_LABEL: () => string;
53
+ /** Every entry Settings > Command palette can turn off one by one: what exists without a search or a project. */
54
+ export declare const CONFIGURABLE_ENTRIES: readonly {
55
+ readonly id: string;
56
+ readonly title: string;
57
+ }[];
58
+ /**
59
+ * @param actions - what the workspace can do.
60
+ * @param view - what exists right now.
61
+ * @param notify - called with a message when an action cannot run (for example Settings not found).
62
+ * @returns the commands, agents, open tabs, worktrees and settings entries.
63
+ */
64
+ export declare function buildPaletteItems(actions: PaletteActions, view: PaletteView, notify: (message: string) => void): PaletteItem[];
@@ -0,0 +1,21 @@
1
+ /** The palette's configuration: parsed at the boundary, kept in browser storage, observable. */
2
+ import { type PaletteConfig, type PaletteGroup } from './palette-items.ts';
3
+ export declare const PALETTE_CONFIG_KEY = "acryl-workspace:palette";
4
+ type Reader = Pick<Storage, 'getItem'>;
5
+ type Writer = Pick<Storage, 'setItem'>;
6
+ /** @param raw - the stored text; anything unreadable gives the defaults. */
7
+ export declare function parsePaletteConfig(raw: string | null | undefined): PaletteConfig;
8
+ /** Shared by the palette and Settings > Command palette, so a change shows up in both at once. */
9
+ export declare class PaletteConfigState {
10
+ private readonly storage;
11
+ private config;
12
+ private readonly listeners;
13
+ constructor(storage: (Reader & Partial<Writer>) | undefined);
14
+ getSnapshot: () => PaletteConfig;
15
+ subscribe: (listener: () => void) => (() => void);
16
+ toggleGroup(group: PaletteGroup): void;
17
+ toggleItem(id: string): void;
18
+ reset(): void;
19
+ private set;
20
+ }
21
+ export {};
@@ -0,0 +1,40 @@
1
+ /** What the palette lists, and how a query ranks it. Pure rules; the sources that produce items live elsewhere. */
2
+ /** In display order. */
3
+ export declare const PALETTE_GROUPS: readonly ["command", "agent", "tab", "worktree", "setting", "file"];
4
+ export type PaletteGroup = (typeof PALETTE_GROUPS)[number];
5
+ export declare const GROUP_LABELS: Readonly<Record<PaletteGroup, string>>;
6
+ export interface PaletteItem {
7
+ /** Stable across sessions (a configuration hides an item by this id). */
8
+ readonly id: string;
9
+ readonly group: PaletteGroup;
10
+ readonly title: string;
11
+ readonly subtitle?: string;
12
+ /** Extra words that should find this item. */
13
+ readonly keywords?: readonly string[];
14
+ /** Shown at the right, for example `⌘⇧K`. */
15
+ readonly shortcut?: string;
16
+ run(): void;
17
+ }
18
+ /** What the user chose to see (Settings > Command palette). */
19
+ export interface PaletteConfig {
20
+ readonly hiddenGroups: readonly PaletteGroup[];
21
+ readonly hiddenItems: readonly string[];
22
+ }
23
+ export declare const DEFAULT_PALETTE_CONFIG: PaletteConfig;
24
+ export declare function isVisible(item: PaletteItem, config: PaletteConfig): boolean;
25
+ /** With no query everything is listed in group order; with one, the best matches first, capped. */
26
+ export declare const MAX_RESULTS = 60;
27
+ /**
28
+ * @param items - every item from every source.
29
+ * @param query - what the user typed.
30
+ * @param config - the user's hidden groups and items.
31
+ * @returns the items to show, ranked.
32
+ */
33
+ export declare function rankItems(items: readonly PaletteItem[], query: string, config: PaletteConfig): PaletteItem[];
34
+ export interface PaletteSection {
35
+ readonly group: PaletteGroup;
36
+ readonly label: string;
37
+ readonly items: readonly PaletteItem[];
38
+ }
39
+ /** Groups ranked items for display, keeping the ranked order inside each group and the group order of first appearance when searching. */
40
+ export declare function sectionsOf(ranked: readonly PaletteItem[], searching: boolean): PaletteSection[];
@@ -0,0 +1,8 @@
1
+ /** Settings > Command palette, registered through the shared section plugin. */
2
+ import type { PaletteConfigState } from './palette-config.ts';
3
+ /** @param config - what the palette lists, shared with the palette itself. */
4
+ export declare function paletteSettingsPlugin(config: PaletteConfigState): {
5
+ name: string;
6
+ inject: string[];
7
+ apply(ctx: import("@deepseek-ai/cordis").Context): void;
8
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The palette's global shortcut. The key itself is a DSH shortcut command registered by `@acryldev/shortcuts` (Cmd/Ctrl+Shift+P by default,
3
+ * rebindable in Settings > Shortcuts); it announces itself with a window event, which `startPaletteEventListener` turns into a toggle.
4
+ */
5
+ /** Window event `@acryldev/shortcuts` dispatches when its palette command runs. Keep the string in step with that package. */
6
+ export declare const PALETTE_TOGGLE_EVENT = "acryl:toggle-command-palette";
7
+ /** Window event that starts picking an element (`@acryldev/mount-anchors` listens). Keep the string in step with that package. */
8
+ export declare const PICK_ELEMENT_EVENT = "acryl:toggle-element-picker";
9
+ /** @returns disposer. Toggles the palette when the shortcut command fires. */
10
+ export declare function startPaletteEventListener(target: Pick<EventTarget, 'addEventListener' | 'removeEventListener'>, toggle: () => void): () => void;
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The palette's open state, query, scope, selection and the asynchronous file results. Framework-free so its
3
+ * rules are tested without a page: it asks two ports for items (the synchronous ones, and a file search) and
4
+ * ignores the answer to any search that a newer query has replaced.
5
+ */
6
+ import { type PaletteConfig, type PaletteItem, type PaletteSection } from './palette-items.ts';
7
+ /** Tab cycles through these: everything, commands only, file names, or file contents. */
8
+ export declare const PALETTE_SCOPES: readonly ["all", "commands", "files", "content"];
9
+ export type PaletteScope = (typeof PALETTE_SCOPES)[number];
10
+ export declare const SCOPE_LABELS: Readonly<Record<PaletteScope, string>>;
11
+ /** Finds files for a query. Rejects (or aborts) on failure; the palette then shows no files rather than an error. */
12
+ export type FileSearch = (query: string, mode: 'name' | 'content', signal: AbortSignal) => Promise<readonly PaletteItem[]>;
13
+ export interface PaletteSnapshot {
14
+ readonly open: boolean;
15
+ readonly query: string;
16
+ readonly scope: PaletteScope;
17
+ readonly selected: number;
18
+ readonly sections: readonly PaletteSection[];
19
+ /** The flat list the selection index refers to. */
20
+ readonly flat: readonly PaletteItem[];
21
+ readonly searching: boolean;
22
+ }
23
+ export declare const MIN_FILE_QUERY = 2;
24
+ export declare const FILE_DEBOUNCE_MS = 150;
25
+ export interface PaletteStateOptions {
26
+ readonly items: () => readonly PaletteItem[];
27
+ readonly config: () => PaletteConfig;
28
+ readonly searchFiles: FileSearch;
29
+ readonly setTimer?: (callback: () => void, ms: number) => unknown;
30
+ readonly clearTimer?: (handle: unknown) => void;
31
+ }
32
+ export declare class PaletteState {
33
+ private readonly options;
34
+ private open;
35
+ private query;
36
+ private scope;
37
+ private selected;
38
+ private fileItems;
39
+ private searching;
40
+ private timer;
41
+ private controller;
42
+ private snapshot;
43
+ private readonly listeners;
44
+ private readonly setTimer;
45
+ private readonly clearTimer;
46
+ constructor(options: PaletteStateOptions);
47
+ getSnapshot: () => PaletteSnapshot;
48
+ subscribe: (listener: () => void) => (() => void);
49
+ toggle(): void;
50
+ show(): void;
51
+ close(): void;
52
+ setQuery(query: string): void;
53
+ /** Recompute after the items or the configuration changed underneath (a tab opened, a setting toggled). */
54
+ refresh(): void;
55
+ setScope(scope: PaletteScope): void;
56
+ cycleScope(step?: 1 | -1): void;
57
+ move(step: 1 | -1): void;
58
+ select(index: number): void;
59
+ /** Runs the selected item and closes the palette. */
60
+ runSelected(): void;
61
+ runAt(index: number): void;
62
+ private wantsFiles;
63
+ private scheduleFileSearch;
64
+ private cancelSearch;
65
+ private selectedClamp;
66
+ private compute;
67
+ private publish;
68
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Connects the palette to the canvas: builds the actions the palette may ask for, lists what exists right now,
3
+ * and owns the palette's state and its global shortcut for as long as the canvas is mounted. It is the only
4
+ * place that knows both sides; the palette's own rules never see the canvas.
5
+ */
6
+ import type { CustomAgent } from '../../agents/definition.ts';
7
+ import type { AgentSettingsView } from '../../agents/contract.ts';
8
+ import { type WorkspaceGroups } from '../canvas/groups.ts';
9
+ import type { WorkspaceSnapshot, WorkspaceState } from '../canvas/state.ts';
10
+ import type { WorkspaceGitApi } from '../git/git-api.ts';
11
+ import type { ToastState } from '../notifications/toast-state.ts';
12
+ import type { DockController } from '../dock/dock-controller.ts';
13
+ import { type RightPaneHandle } from '../dock/DockButtons.tsx';
14
+ import type { WorkspaceTabRegistry } from '../tabs/registry/tab-registry.ts';
15
+ import type { TabTypesState } from '../tabs/tab-types-state.ts';
16
+ import type { WorkspaceShellState } from '../worktrees/shell-state.ts';
17
+ import type { PaletteConfigState } from './palette-config.ts';
18
+ import { PaletteState } from './palette-state.ts';
19
+ export interface WorkspacePaletteDeps {
20
+ readonly workspace: WorkspaceState;
21
+ readonly groups: WorkspaceGroups;
22
+ readonly groupKey: string;
23
+ readonly snapshot: WorkspaceSnapshot;
24
+ readonly shell: WorkspaceShellState;
25
+ readonly gitApi: WorkspaceGitApi;
26
+ readonly toasts: ToastState;
27
+ readonly agentSettings: AgentSettingsView | null;
28
+ readonly customAgents: readonly CustomAgent[];
29
+ readonly tabTypes: TabTypesState;
30
+ readonly tabRegistry: WorkspaceTabRegistry;
31
+ readonly dock: DockController;
32
+ readonly config: PaletteConfigState;
33
+ readonly rightPanel: RightPaneHandle | undefined;
34
+ openPty(commandId: string, title: string): void;
35
+ /** Select a tab as the user would (a chat tab also opens its session). */
36
+ selectTab(tileId: string): void;
37
+ closeTile(tileId: string): void;
38
+ }
39
+ export declare function useWorkspacePalette(deps: WorkspacePaletteDeps): PaletteState;