@acryldev/workspace 0.0.0-stage → 0.1.1

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 +147 -4
@@ -0,0 +1,15 @@
1
+ /**
2
+ * What every workspace route shares, on the router: the private-route rules of `acryl-loopback-http/router` (only the app's own page
3
+ * may call it, answers are never cached or sniffed, a JSON body is small) under the workspace's one prefix. Each domain folder builds its
4
+ * routes with these and `index.ts` mounts them under {@link WORKSPACE_API_PREFIX}.
5
+ */
6
+ import type { Acryl } from 'acrylblends';
7
+ export { INVALID_JSON, jsonBody, ownPage, ownPageSocket, readJson, type ReportError } from '@acryldev/loopback-http/router';
8
+ /** Every workspace route lives below this path; it is the one prefix the plugin mounts on the Web server. */
9
+ export declare const WORKSPACE_API_PREFIX = "/api/acryl-workspace";
10
+ /** The workspace's routes as one app, the shared rules scoped to {@link WORKSPACE_API_PREFIX}. */
11
+ export declare function privateApi(...routes: readonly Acryl[]): Acryl;
12
+ export declare function failure(message: string): {
13
+ readonly error: string;
14
+ };
15
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
@@ -0,0 +1,82 @@
1
+ /**
2
+ * The project registry's wire contract. A project is a folder the user added to ACRYL; ACRYL owns the list (it lives in the ACRYL home through
3
+ * `acryl-settings`), and the DeepSeek Harness chat's workspaces follow it one way: a chat registers the folder it runs in when it starts, never the other
4
+ * way round.
5
+ */
6
+ export declare const WORKSPACE_PROJECTS_PATH = "/api/acryl-workspace/projects";
7
+ /** A server-sent event stream of the registry's view: one message now, then one per change (an agent's tool call, another window). */
8
+ export declare const WORKSPACE_PROJECTS_EVENTS_PATH = "/api/acryl-workspace/projects/events";
9
+ /** How a workspace is organized (spec 043): separate projects, projects that share context with every agent, or a remote machine. */
10
+ export type WorkspaceKind = 'individual' | 'shared' | 'remote';
11
+ export declare const WORKSPACE_KINDS: readonly WorkspaceKind[];
12
+ /** The workspace every app has: it cannot be deleted, and the folders added before workspaces existed are its projects. */
13
+ export declare const DEFAULT_WORKSPACE_ID = "default";
14
+ /** One workspace as the page sees it. */
15
+ export interface WorkspaceSummary {
16
+ readonly id: string;
17
+ readonly name: string;
18
+ readonly kind: WorkspaceKind;
19
+ /** Absolute folder paths, in the order they were added. */
20
+ readonly projects: readonly string[];
21
+ /** For a remote workspace: the SSH target saved for the connection that comes later. */
22
+ readonly remote?: {
23
+ readonly host: string;
24
+ readonly user?: string;
25
+ readonly path?: string;
26
+ };
27
+ }
28
+ export interface ProjectRegistryView {
29
+ /** The shown workspace's folders, in the order the user added them. */
30
+ readonly paths: readonly string[];
31
+ /** The projects that already existed as DSH workspaces were taken over once (see `adopt`). */
32
+ readonly adopted: boolean;
33
+ /** Every workspace, Default first. */
34
+ readonly workspaces: readonly WorkspaceSummary[];
35
+ /** The id of the workspace the sidebar shows. */
36
+ readonly current: string;
37
+ }
38
+ export type ProjectRequest = {
39
+ readonly op: 'add';
40
+ readonly path: string;
41
+ } | {
42
+ readonly op: 'remove';
43
+ readonly path: string;
44
+ }
45
+ /** Take over folders that were registered before ACRYL owned the list. Applied once; later calls change nothing. */
46
+ | {
47
+ readonly op: 'adopt';
48
+ readonly paths: readonly string[];
49
+ } | {
50
+ readonly op: 'create-workspace';
51
+ readonly name: string;
52
+ readonly kind: WorkspaceKind;
53
+ readonly remote?: {
54
+ readonly host: string;
55
+ readonly user?: string;
56
+ readonly path?: string;
57
+ };
58
+ } | {
59
+ readonly op: 'switch-workspace';
60
+ readonly id: string;
61
+ } | {
62
+ readonly op: 'rename-workspace';
63
+ readonly id: string;
64
+ readonly name: string;
65
+ } | {
66
+ readonly op: 'delete-workspace';
67
+ readonly id: string;
68
+ };
69
+ export type ProjectResponse = {
70
+ readonly ok: true;
71
+ readonly view: ProjectRegistryView;
72
+ } | {
73
+ readonly ok: false;
74
+ readonly code: 'invalid' | 'not-a-folder' | 'workspace';
75
+ readonly message: string;
76
+ };
77
+ export declare class ProjectRequestError extends Error {
78
+ constructor(message: string);
79
+ }
80
+ /** @throws ProjectRequestError naming what is wrong; nothing is coerced. */
81
+ export declare function parseProjectRequest(value: unknown): ProjectRequest;
82
+ export declare function parseProjectRegistryView(value: unknown): ProjectRegistryView;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * The project registry: the folders the user added, grouped into workspaces (spec 043), in one `acryl-settings` section, changed one write at a time.
3
+ * A workspace is a named set of projects the sidebar shows as a whole; Default always exists and starts with every project added before workspaces
4
+ * existed. A project can be in several workspaces; removing it from one never touches the others or the disk.
5
+ */
6
+ import type { SettingsScope } from '@acryldev/settings';
7
+ import z from '@deepseek-ai/schemastery';
8
+ import { DEFAULT_WORKSPACE_ID, type ProjectRegistryView, type WorkspaceKind } from './contract.ts';
9
+ export declare const PROJECTS_NAMESPACE = "workspace";
10
+ export { DEFAULT_WORKSPACE_ID };
11
+ export interface RemoteTarget {
12
+ host: string;
13
+ user?: string;
14
+ path?: string;
15
+ }
16
+ export interface WorkspaceRecord {
17
+ id: string;
18
+ name: string;
19
+ kind: WorkspaceKind;
20
+ projects: string[];
21
+ remote?: RemoteTarget;
22
+ }
23
+ export interface ProjectsSection {
24
+ /** The folders added before workspaces existed: read once to build Default, then left empty. */
25
+ projects: string[];
26
+ adopted: boolean;
27
+ workspaces: WorkspaceRecord[];
28
+ current: string;
29
+ }
30
+ /** The section's schema: the workspaces with their folders, the one shown, and whether the pre-existing folders were taken over. */
31
+ export declare const ProjectsSchema: z<ProjectsSection>;
32
+ /** A request the registry refuses (an unknown workspace, a duplicate name, deleting Default). */
33
+ export declare class WorkspaceError extends Error {
34
+ constructor(message: string);
35
+ }
36
+ export declare class ProjectFolderError extends Error {
37
+ constructor(message: string);
38
+ }
39
+ /** The canonical form of a project folder: absolute, no trailing separator. @throws ProjectFolderError for anything that is not an existing folder. */
40
+ export declare function normalizeProjectFolder(path: string): string;
41
+ export declare class ProjectRegistry {
42
+ private readonly scope;
43
+ private readonly listeners;
44
+ constructor(scope: SettingsScope<ProjectsSection>);
45
+ /** Observe every saved change, whoever made it (a page, an agent's tool). @returns disposer. */
46
+ onChange(listener: (view: ProjectRegistryView) => void): () => void;
47
+ view(): ProjectRegistryView;
48
+ /** Add a folder to the workspace shown. */
49
+ add(path: string): Promise<ProjectRegistryView>;
50
+ /** Remove a folder from the workspace shown. Removing a folder that is not listed is not an error: the list is what the caller wanted. */
51
+ remove(path: string): Promise<ProjectRegistryView>;
52
+ /** Take over folders registered elsewhere, once, into Default. Folders that no longer exist are skipped, not fatal. */
53
+ adopt(paths: readonly string[]): Promise<ProjectRegistryView>;
54
+ /** Create a workspace and show it. @throws WorkspaceError for an empty or taken name, or a remote one without a host. */
55
+ createWorkspace(input: {
56
+ readonly name: string;
57
+ readonly kind: WorkspaceKind;
58
+ readonly remote?: RemoteTarget;
59
+ }): Promise<ProjectRegistryView>;
60
+ /** Show another workspace. */
61
+ switchWorkspace(id: string): Promise<ProjectRegistryView>;
62
+ renameWorkspace(id: string, name: string): Promise<ProjectRegistryView>;
63
+ /** Delete a workspace (never Default). Its projects stay in other workspaces and on disk; the sidebar shows Default if it was shown. */
64
+ deleteWorkspace(id: string): Promise<ProjectRegistryView>;
65
+ /** The workspaces, Default first; before the first workspace write, Default is built from the pre-workspace folder list. */
66
+ private workspaces;
67
+ private current;
68
+ private defaultOf;
69
+ private find;
70
+ private validName;
71
+ /** One write: the workspaces become the only list (the pre-workspace one is emptied, its folders now in Default). */
72
+ private save;
73
+ }
@@ -0,0 +1,16 @@
1
+ /** The project registry, for the app's own page only: the list, its changes, and a stream of the list as it changes. */
2
+ import { Acryl } from 'acrylblends';
3
+ import { type ReportError } from '../private-route.ts';
4
+ import { type ProjectRegistry } from './registry.ts';
5
+ /** One timer for every open stream, owned by the plugin's effect rather than by a request: `stop()` is its disposer. */
6
+ export interface KeepAlive {
7
+ onBeat(listener: () => void): () => void;
8
+ stop(): void;
9
+ }
10
+ export declare function createKeepAlive(intervalMs?: number): KeepAlive;
11
+ /**
12
+ * GET `projects` (the list) and POST `{ op, ... }` to add, remove or adopt, a refusal being a 400 whose message says what to fix. GET
13
+ * `projects/events` is a server-sent event stream, so every page follows a change it did not make (an agent's workspace tool, another window):
14
+ * one `data:` message with the whole view on connect and after each change. A stream ends when its page goes away or this plugin unloads.
15
+ */
16
+ export declare function projectRoutes(registry: ProjectRegistry, keepAlive: KeepAlive, reportError: ReportError): Acryl;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Agent Control's workspace tools (spec 043 T007, spec 041's `workspace.*` vocabulary): typed tools provided by the package that owns the
3
+ * project registry, so an agent lists, switches and creates workspaces and adds projects through the same registry the sidebar uses, with
4
+ * its rules and refusals. Every open page follows the change through the registry's event stream. Creating a workspace and adding a
5
+ * project are asked about every time; listing and switching are not (switching only changes what the sidebar shows, and is undone the same way).
6
+ */
7
+ import type { Context } from '@deepseek-ai/cordis';
8
+ import { type ProjectRegistryView, type WorkspaceSummary } from './contract.ts';
9
+ import type { ProjectRegistry } from './registry.ts';
10
+ export declare const WORKSPACE_LIST_TOOL = "acryl_workspace_list";
11
+ export declare const WORKSPACE_SWITCH_TOOL = "acryl_workspace_switch";
12
+ export declare const WORKSPACE_CREATE_TOOL = "acryl_workspace_create";
13
+ export declare const WORKSPACE_ADD_PROJECT_TOOL = "acryl_workspace_add_project";
14
+ /** The registry's view as the tools return it: every workspace, and which one is shown. */
15
+ export interface WorkspacesValue {
16
+ readonly current: string;
17
+ readonly workspaces: readonly WorkspaceSummary[];
18
+ }
19
+ /** What the model reads: one line per workspace, the shown one marked. */
20
+ export declare function renderWorkspaces(view: WorkspacesValue): string;
21
+ /** Words for the approval prompt. */
22
+ export declare function describeWorkspaceChange(name: string, args: unknown, view: ProjectRegistryView): string;
23
+ /** Register the four tools and the approval for the two that add something. @returns disposer. */
24
+ export declare function registerWorkspaceTools(ctx: Context, registry: ProjectRegistry): () => void;
@@ -0,0 +1,52 @@
1
+ /** Allowlisted ACRYL Workspace PTY commands and loopback routes. */
2
+ import { type KnownAgentId } from '../agents/known-agents.ts';
3
+ /** The terminal, then every agent ACRYL knows by name (`agents/known-agents.ts` owns that list). */
4
+ export declare const WORKSPACE_PTY_COMMAND_IDS: readonly ["shell", ...string[]];
5
+ export type WorkspacePtyCommandId = 'shell' | KnownAgentId;
6
+ export declare const WORKSPACE_PTY_PATH = "/api/acryl-workspace/pty";
7
+ export declare const WORKSPACE_PTY_INPUT_PATH = "/api/acryl-workspace/pty/input";
8
+ export declare const WORKSPACE_PTY_RESIZE_PATH = "/api/acryl-workspace/pty/resize";
9
+ export declare const WORKSPACE_PTY_CLOSE_PATH = "/api/acryl-workspace/pty/close";
10
+ /** WebSocket: live output down, keystrokes and size up, in order. Query: `id`, `since` (cursor already shown). */
11
+ export declare const WORKSPACE_PTY_STREAM_PATH = "/api/acryl-workspace/pty/stream";
12
+ /** @param value - unknown command id from JSON. */
13
+ export declare function isWorkspacePtyCommandId(value: unknown): value is WorkspacePtyCommandId;
14
+ export type WorkspacePtyStatus = 'starting' | 'running' | 'exited' | 'error';
15
+ export interface WorkspacePtyView {
16
+ readonly id: string;
17
+ readonly status: WorkspacePtyStatus;
18
+ readonly output: string;
19
+ readonly exitCode: number | null;
20
+ readonly error: string | null;
21
+ }
22
+ /** What the Host sends over the stream. */
23
+ export type PtyServerMessage =
24
+ /** Output. `replace` clears the client's terminal first (it missed more than the Host kept). */
25
+ {
26
+ readonly t: 'out';
27
+ readonly data: string;
28
+ readonly cursor: number;
29
+ readonly replace: boolean;
30
+ } | {
31
+ readonly t: 'exit';
32
+ readonly exitCode: number | null;
33
+ readonly error: string | null;
34
+ };
35
+ /** What the client sends over the stream. */
36
+ export type PtyClientMessage = {
37
+ readonly t: 'in';
38
+ readonly data: string;
39
+ } | {
40
+ readonly t: 'resize';
41
+ readonly cols: number;
42
+ readonly rows: number;
43
+ };
44
+ export declare const MAX_PTY_INPUT_CHARS: number;
45
+ export declare const MAX_PTY_COLS = 500;
46
+ export declare const MAX_PTY_ROWS = 200;
47
+ /** @param text - one text frame from the client; null when it is not a well-formed message. */
48
+ export declare function parsePtyClientMessage(text: string): PtyClientMessage | null;
49
+ /** @param text - one text frame from the Host; throws on anything unexpected. */
50
+ export declare function parsePtyServerMessage(text: string): PtyServerMessage;
51
+ /** Any agent id the Host may be asked to start: a built-in one or one from the user's catalog. */
52
+ export type AgentId = string;
@@ -0,0 +1,3 @@
1
+ /** The adapter that starts a real process behind a terminal with node-pty (a native module). */
2
+ import type { WorkspacePtySpawn } from './service.ts';
3
+ export declare const spawnNodePty: WorkspacePtySpawn;
@@ -0,0 +1,9 @@
1
+ /** The workspace terminal routes: start, snapshot, input, resize and close, for the app's own page only. The output streams over the PTY WebSocket. */
2
+ import { Acryl } from 'acrylblends';
3
+ import { type ReportError } from '../private-route.ts';
4
+ import type { WorkspacePtyRegistry } from './service.ts';
5
+ /**
6
+ * GET `pty?id=` (the session's snapshot) and POST `pty` `{ commandId, cwd?, cols?, rows? }` (start one); POST `input` `{ id, data }`, `resize`
7
+ * `{ id, cols, rows }` and `close` `{ id }` (idempotent) for a live session.
8
+ */
9
+ export declare function ptyRoutes(registry: WorkspacePtyRegistry, reportError: ReportError): Acryl;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The Host's own picture of one terminal's screen.
3
+ *
4
+ * It is fed the same bytes the process writes, so at any moment it can say exactly what is on screen
5
+ * (including a full-screen program's alternate screen, colours, and cursor position). A view that attaches
6
+ * late, reconnects after a long gap, or reloads is given that picture instead of a replay of raw history,
7
+ * which cannot reproduce a screen that was drawn by cursor movement.
8
+ */
9
+ export interface ScreenSnapshot {
10
+ /** Escape sequences that redraw the screen and scrollback from empty. */
11
+ readonly screen: string;
12
+ /** The cursor of the output this snapshot already includes. Anything after it is still to be sent. */
13
+ readonly cursor: number;
14
+ }
15
+ export declare class ScreenModel {
16
+ private readonly terminal;
17
+ private readonly serializer;
18
+ private applied;
19
+ constructor(cols: number, rows: number);
20
+ /** @param endCursor - the output cursor after this chunk, so a snapshot can say how far it reaches. */
21
+ write(chunk: string, endCursor: number): void;
22
+ resize(cols: number, rows: number): void;
23
+ snapshot(): ScreenSnapshot;
24
+ dispose(): void;
25
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The retained tail of one terminal's output, addressed by an ever-growing cursor.
3
+ *
4
+ * The cursor is the total number of characters the process has written, so a client that remembers the
5
+ * cursor it reached can ask for exactly what it missed, with no gap and no repeat. Only the tail is kept;
6
+ * a client that fell behind the kept part is told to start over from the tail instead.
7
+ */
8
+ export interface Replay {
9
+ /** Output from the requested cursor (or from the start of the kept tail when `replace`). */
10
+ readonly data: string;
11
+ /** The cursor after `data`. */
12
+ readonly cursor: number;
13
+ /** True when the client must clear its terminal first: what it missed is no longer kept. */
14
+ readonly replace: boolean;
15
+ }
16
+ export declare class Scrollback {
17
+ private readonly limit;
18
+ private tail;
19
+ private start;
20
+ constructor(limit?: number);
21
+ /** Total characters ever appended. */
22
+ get cursor(): number;
23
+ append(chunk: string): void;
24
+ /** @param since - the cursor the client reached, or 0 for a fresh attach. */
25
+ replay(since: number): Replay;
26
+ }
@@ -0,0 +1,156 @@
1
+ /** Host-owned ACRYL Workspace PTY sessions. UI observes; this module owns lifetime. */
2
+ import type { AgentId, WorkspacePtyCommandId, WorkspacePtyStatus, WorkspacePtyView } from './contract.ts';
3
+ import { type Replay } from './scrollback.ts';
4
+ /**
5
+ * A Finder-launched macOS app gets a minimal PATH (`/usr/bin:/bin:…`), so a
6
+ * bare agent name such as `claude` fails to spawn even when it is installed.
7
+ * Resolve bare commands to an absolute executable by merging `env.PATH` with
8
+ * the user's login-shell PATH. The login shell is asked asynchronously (an
9
+ * interactive zsh takes about a second, which must not stall the Host), once
10
+ * per shell, home and PATH; callers wait for the answer.
11
+ */
12
+ export declare function workspacePtySpawnDirs(env: NodeJS.ProcessEnv, platform: NodeJS.Platform): Promise<readonly string[]>;
13
+ /**
14
+ * Return an absolute executable path for `command`, or `undefined` when none of
15
+ * `dirs` contains an executable `command`. Absolute/relative paths pass through.
16
+ */
17
+ export declare function resolveWorkspacePtyCommand(command: string, dirs: readonly string[], platform: NodeJS.Platform): string | undefined;
18
+ export interface WorkspacePtyProcess {
19
+ onData(listener: (data: string) => void): {
20
+ dispose(): void;
21
+ };
22
+ onExit(listener: (event: {
23
+ exitCode: number;
24
+ signal?: number;
25
+ }) => void): {
26
+ dispose(): void;
27
+ };
28
+ write(data: string): void;
29
+ resize(cols: number, rows: number): void;
30
+ kill(signal?: string): void;
31
+ }
32
+ /** PTY spawn injected so unit tests never launch a real process. */
33
+ export type WorkspacePtySpawn = (command: string, args: readonly string[], options: {
34
+ readonly cwd: string;
35
+ readonly env: NodeJS.ProcessEnv;
36
+ readonly name: string;
37
+ readonly cols: number;
38
+ readonly rows: number;
39
+ }) => WorkspacePtyProcess;
40
+ export interface WorkspacePtySpawnPlan {
41
+ readonly command: string;
42
+ readonly args: readonly string[];
43
+ /** Added to the terminal's environment for this launch. */
44
+ readonly env?: Readonly<Record<string, string>>;
45
+ /** The agent reports its state through hooks of this kind; the registry adds the reporting when it can. */
46
+ readonly statusHooks?: 'claude';
47
+ }
48
+ /** Says what an agent id runs: the user's settings for a known agent, or a custom agent's definition. */
49
+ export interface AgentResolver {
50
+ resolve(id: string): WorkspacePtySpawnPlan | undefined;
51
+ }
52
+ /** What an agent started in a folder is given beyond its own launch: the shared workspace context (spec 043), or nothing. */
53
+ export interface LaunchContextProvider {
54
+ launchFor(agentId: string, cwd: string): {
55
+ readonly args: readonly string[];
56
+ readonly env: Readonly<Record<string, string>>;
57
+ } | undefined;
58
+ }
59
+ export interface WorkspacePtyRegistryOptions {
60
+ readonly agents?: AgentResolver;
61
+ /** Looked up at each agent start, so the context is the workspace's as it is then. */
62
+ readonly launchContext?: LaunchContextProvider;
63
+ /** Where agents report their state, and the secret they present. Without it no reporting is added. */
64
+ readonly agentStatus?: {
65
+ readonly url: string;
66
+ readonly token: string;
67
+ };
68
+ /** Starts a real process behind a terminal. Injected: the policy here never loads a native module. */
69
+ readonly spawn: WorkspacePtySpawn;
70
+ readonly env?: NodeJS.ProcessEnv;
71
+ readonly cwd?: string;
72
+ readonly platform?: NodeJS.Platform;
73
+ readonly createId?: () => string;
74
+ }
75
+ /** What a live subscriber to one session is told. */
76
+ export type WorkspacePtyEvent = {
77
+ readonly kind: 'data';
78
+ readonly data: string;
79
+ readonly cursor: number;
80
+ } | {
81
+ readonly kind: 'exit';
82
+ readonly exitCode: number | null;
83
+ readonly error: string | null;
84
+ };
85
+ /**
86
+ * Resolve argv for one allowlisted workspace command.
87
+ * @param commandId - catalog id from the tab.
88
+ * @param platform - Host process.platform.
89
+ * @param env - environment used to pick SHELL / ComSpec.
90
+ */
91
+ export declare function planWorkspacePtyCommand(commandId: WorkspacePtyCommandId, platform: NodeJS.Platform, env: NodeJS.ProcessEnv): WorkspacePtySpawnPlan;
92
+ /**
93
+ * The environment a terminal process starts with: a real terminal type, true color, and a UTF-8 locale
94
+ * (an app launched from Finder has none, which makes shells and TUIs draw wrong glyphs).
95
+ */
96
+ export declare function terminalEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
97
+ /** Table of live native PTY sessions for one ACRYL Workspace Host fiber. */
98
+ export declare class WorkspacePtyRegistry {
99
+ private readonly sessions;
100
+ private readonly spawnImpl;
101
+ private readonly env;
102
+ private readonly cwd;
103
+ private readonly platform;
104
+ private readonly createId;
105
+ /** The search path for bare commands; the login shell's answer arrives after the registry is built (see {@link workspacePtySpawnDirs}). */
106
+ private readonly spawnDirs;
107
+ private readonly agents;
108
+ private readonly agentStatus;
109
+ private readonly launchContext;
110
+ /** Set by {@link disposeAll}: a start still waiting for the search path then spawns nothing. */
111
+ private disposed;
112
+ constructor(options: WorkspacePtyRegistryOptions);
113
+ /**
114
+ * Start one allowlisted command inside a real terminal.
115
+ * @param commandId - catalog id from the Terminal/agent tab.
116
+ * @param cwd - optional working directory (a worktree); must be an existing absolute directory.
117
+ */
118
+ start(commandId: AgentId, cwd?: string, size?: {
119
+ readonly cols: number;
120
+ readonly rows: number;
121
+ }): Promise<WorkspacePtyView>;
122
+ /** True when a live terminal has this id. */
123
+ has(id: string): boolean;
124
+ /** True when `command` is an absolute executable file or a program on the search path. */
125
+ canRun(command: string): Promise<boolean>;
126
+ /** Write exact terminal input bytes. */
127
+ write(id: string, data: string): void;
128
+ /** Resize one live terminal. */
129
+ resize(id: string, cols: number, rows: number): void;
130
+ /**
131
+ * Follow one session live. `replay` is what the subscriber has not seen yet (from `since`, or the kept
132
+ * tail when it missed more than is kept); everything after it arrives through `listener`, in order,
133
+ * with nothing lost or repeated in between.
134
+ * @param since - the cursor the subscriber already reached, 0 for a first attach.
135
+ */
136
+ subscribe(id: string, since: number, listener: (event: WorkspacePtyEvent) => void): {
137
+ readonly replay: Replay;
138
+ readonly status: WorkspacePtyStatus;
139
+ readonly exitCode: number | null;
140
+ readonly error: string | null;
141
+ dispose(): void;
142
+ };
143
+ /**
144
+ * A subscriber that can resume from its cursor gets just what it missed. Any other (first attach,
145
+ * reload, a gap larger than the kept tail) gets the screen as it is now, then what was written since.
146
+ */
147
+ private replayFor;
148
+ /** Snapshot one session for the renderer. */
149
+ read(id: string): WorkspacePtyView;
150
+ /** Stop one session. Idempotent. */
151
+ close(id: string): Promise<void>;
152
+ /** Stop every session owned by this fiber. */
153
+ disposeAll(): Promise<void>;
154
+ private require;
155
+ private view;
156
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The live terminal stream: one WebSocket per open terminal view, on the framework's router.
3
+ *
4
+ * Output goes down and keystrokes and size changes go up over one ordered connection, so nothing is
5
+ * polled, nothing is re-sent, and two keystrokes can never arrive swapped. The route is an ordinary router
6
+ * route: the own-page rule that guards the HTTP routes runs before the upgrade, with the exact `Origin` a
7
+ * socket must show (a WebSocket is not covered by the same-origin policy on its own), and a refusal is a
8
+ * plain status before any handshake. The framework's hub owns the sockets: it pings them, ends dead peers,
9
+ * and closes them with 1001 when the plugin unloads.
10
+ */
11
+ import { Acryl } from 'acrylblends';
12
+ import type { UpgradeWebSocket } from 'acrylblends/ws';
13
+ import { type ReportError } from '../private-route.ts';
14
+ import type { WorkspacePtyRegistry } from './service.ts';
15
+ /**
16
+ * GET {@link WORKSPACE_PTY_STREAM_PATH}`?id=&since=` upgraded to the session's stream. `upgrade` is the mounting plugin's
17
+ * `ctx.routerHttp.upgrades()`, so the sockets belong to it; the path must be one the plugin mounted with `upgrade: [path]`.
18
+ */
19
+ export declare function ptyStreamRoutes(registry: WorkspacePtyRegistry, upgrade: UpgradeWebSocket, reportError: ReportError): Acryl;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The DSH chat's share of the workspace context (spec 043 T010): a `systemPrompt.context` contribution, the harness's dynamic context that is
3
+ * recorded as a durable user-role snapshot per assembly (so a change does not invalidate the cached system prompt). It is keyed by the
4
+ * session's own folder, so a chat in a Shared Context workspace is told about its projects and any other chat gets nothing.
5
+ */
6
+ /** The share of DSH's `systemPrompt` service used here (the harness types are not a dependency of this package). */
7
+ export interface SystemPromptContextPort {
8
+ context(context: {
9
+ readonly name: string;
10
+ readonly order: number;
11
+ readonly text: (assembly: AssemblyLike) => string;
12
+ }): () => void;
13
+ }
14
+ /** The share of an assembly read here: the session whose prompt is being assembled. */
15
+ export interface AssemblyLike {
16
+ readonly agent?: {
17
+ readonly session?: {
18
+ readonly header?: {
19
+ readonly cwd?: unknown;
20
+ };
21
+ };
22
+ };
23
+ }
24
+ export declare const WORKSPACE_CONTEXT_NAME = "acryl:workspace";
25
+ /** After the harness's own runtime contexts (sandbox 110, approval 115, subagents 120). */
26
+ export declare const WORKSPACE_CONTEXT_ORDER = 130;
27
+ /** @returns the prompt block for the session's folder, or '' (no contribution) outside a Shared Context workspace. */
28
+ export declare function chatContextText(contextFor: (folder: string) => {
29
+ readonly prompt: string;
30
+ } | undefined, assembly: AssemblyLike): string;
31
+ /** Register the contribution. @returns disposer. */
32
+ export declare function registerChatContext(systemPrompt: SystemPromptContextPort, contextFor: (folder: string) => {
33
+ readonly prompt: string;
34
+ } | undefined): () => void;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * How a terminal agent started in a Shared Context workspace gets the context, in its own way (spec 043 T010). Only flags each agent
3
+ * documents and its installed `--help` lists: Claude Code gets the other projects and the workspace folder (`--add-dir`) and the context
4
+ * (`--append-system-prompt`); Pi gets the context; Codex gets the same folders (`--add-dir`) and the context as developer instructions
5
+ * (`-c developer_instructions=...`, Codex 0.162). Every agent gets `ACRYL_WORKSPACE_CONTEXT`, the generated document's path.
6
+ *
7
+ * The workspace folder holds the brief, so any agent can read it and, when asked, write a handoff into it that the next agent, of any
8
+ * kind, is started with. That is how a session moves between agents without adapting one agent to another.
9
+ */
10
+ /** The environment variable naming the workspace's generated context document. */
11
+ export declare const WORKSPACE_CONTEXT_ENV = "ACRYL_WORKSPACE_CONTEXT";
12
+ export interface ContextLaunch {
13
+ readonly args: readonly string[];
14
+ readonly env: Readonly<Record<string, string>>;
15
+ }
16
+ export interface LaunchContext {
17
+ readonly prompt: string;
18
+ readonly documentPath: string;
19
+ readonly otherProjects: readonly string[];
20
+ /** `<home>/workspaces/<id>/`: the brief and the generated document. */
21
+ readonly workspaceFolder: string;
22
+ }
23
+ /** @returns the arguments and environment a known agent is started with in a shared workspace. */
24
+ export declare function contextLaunch(agentId: string, context: LaunchContext): ContextLaunch;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The shared context of a Shared Context workspace (spec 043), as text: what an agent is told about the workspace it works in. Pure: the
3
+ * caller reads the files. Two shapes: the prompt block (inside a size budget, so it never floods a model's context) and the full document
4
+ * written to `WORKSPACE.md`.
5
+ */
6
+ export interface ContextProject {
7
+ readonly name: string;
8
+ readonly path: string;
9
+ /** The project's own agent instructions present at its root (`CLAUDE.md`, `AGENTS.md`, `README.md`), referenced, never copied. */
10
+ readonly instructions: readonly string[];
11
+ }
12
+ export interface ContextInput {
13
+ readonly name: string;
14
+ readonly projects: readonly ContextProject[];
15
+ /** The workspace brief, as the user wrote it; empty when there is none. */
16
+ readonly brief: string;
17
+ /** Where the full document is, for the agent to read. */
18
+ readonly documentPath: string;
19
+ /** Where the brief is, for the agent to know what it may edit. */
20
+ readonly briefPath: string;
21
+ }
22
+ /** The prompt block's size, in characters (about 900 tokens). */
23
+ export declare const CONTEXT_PROMPT_BUDGET = 3200;
24
+ /** The XML-style tag of the prompt block, in the style of the other ACRYL sections. */
25
+ export declare const CONTEXT_TAG = "acryl_workspace";
26
+ /** The block the DSH chat and terminal agents get. The brief is cut to fit the budget, and says so. */
27
+ export declare function renderContextPrompt(input: ContextInput, budget?: number): string;
28
+ /** The whole document written to `WORKSPACE.md`: the brief in full. */
29
+ export declare function renderContextDocument(input: ContextInput): string;
@@ -0,0 +1,13 @@
1
+ /** A workspace's brief (spec 043 T011), for the app's own page only: GET `?id=` reads it, POST `{ id, text }` saves it and rewrites the context document. */
2
+ import { Acryl } from 'acrylblends';
3
+ import { type SharedContext } from './service.ts';
4
+ export declare const WORKSPACE_BRIEF_PATH = "/api/acryl-workspace/brief";
5
+ export type BriefResponse = {
6
+ readonly ok: true;
7
+ readonly id: string;
8
+ readonly text: string;
9
+ } | {
10
+ readonly ok: false;
11
+ readonly message: string;
12
+ };
13
+ export declare function briefRoutes(shared: SharedContext): Acryl;