@aria-cli/cli 1.0.14

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 (283) hide show
  1. package/bin/aria-dev.js +15 -0
  2. package/bin/aria.js +366 -0
  3. package/bin/install-owner-lease.d.ts +8 -0
  4. package/bin/install-owner-lease.js +53 -0
  5. package/dist/.aria-build-stamp.json +4 -0
  6. package/dist/attached-local-control-client.d.ts +90 -0
  7. package/dist/bootstrap-local-control-client.d.ts +1 -0
  8. package/dist/capability-aware-method-proxy.d.ts +1 -0
  9. package/dist/cli-context.d.ts +31 -0
  10. package/dist/commands/arions.d.ts +14 -0
  11. package/dist/commands/auth.d.ts +27 -0
  12. package/dist/commands/daemon.d.ts +31 -0
  13. package/dist/commands/definitions.d.ts +19 -0
  14. package/dist/commands/index.d.ts +13 -0
  15. package/dist/commands/login-handler.d.ts +108 -0
  16. package/dist/commands/logout-handler.d.ts +24 -0
  17. package/dist/commands/memory-handlers.d.ts +15 -0
  18. package/dist/commands/pairing.d.ts +2 -0
  19. package/dist/commands/peer-message-handler.d.ts +7 -0
  20. package/dist/commands/runtime-cutover-reset-command.d.ts +2 -0
  21. package/dist/commands/runtime-cutover-reset.d.ts +26 -0
  22. package/dist/commands/terminal-setup.d.ts +3 -0
  23. package/dist/config/aria-config.d.ts +50 -0
  24. package/dist/config/index.d.ts +4 -0
  25. package/dist/config/loader.d.ts +17 -0
  26. package/dist/config.d.ts +53 -0
  27. package/dist/daemon-info.d.ts +17 -0
  28. package/dist/ensure-daemon.d.ts +21 -0
  29. package/dist/event-loop-watchdog.d.ts +31 -0
  30. package/dist/headless/auth-orchestrator.d.ts +19 -0
  31. package/dist/headless/auth-service.d.ts +15 -0
  32. package/dist/headless/bootstrap-fast-path.d.ts +12 -0
  33. package/dist/headless/call-command.d.ts +8 -0
  34. package/dist/headless/daemon-service.d.ts +14 -0
  35. package/dist/headless/hook-actions.d.ts +40 -0
  36. package/dist/headless/hook-service.d.ts +8 -0
  37. package/dist/headless/kernel-services.d.ts +8 -0
  38. package/dist/headless/kernel.d.ts +118 -0
  39. package/dist/headless/operations/arion.d.ts +3 -0
  40. package/dist/headless/operations/auth.d.ts +4 -0
  41. package/dist/headless/operations/client.d.ts +2 -0
  42. package/dist/headless/operations/config.d.ts +3 -0
  43. package/dist/headless/operations/daemon.d.ts +3 -0
  44. package/dist/headless/operations/hook.d.ts +3 -0
  45. package/dist/headless/operations/index.d.ts +10 -0
  46. package/dist/headless/operations/memory.d.ts +3 -0
  47. package/dist/headless/operations/message.d.ts +2 -0
  48. package/dist/headless/operations/model.d.ts +3 -0
  49. package/dist/headless/operations/peer.d.ts +2 -0
  50. package/dist/headless/operations/run.d.ts +3 -0
  51. package/dist/headless/operations/session.d.ts +74 -0
  52. package/dist/headless/operations/subscription.d.ts +2 -0
  53. package/dist/headless/operations/system.d.ts +3 -0
  54. package/dist/headless/operations/utils.d.ts +5 -0
  55. package/dist/headless/run-orchestrator.d.ts +38 -0
  56. package/dist/headless/stdio-server.d.ts +4 -0
  57. package/dist/history/SessionHistory.d.ts +200 -0
  58. package/dist/history/conversation-message.d.ts +181 -0
  59. package/dist/history/index.d.ts +8 -0
  60. package/dist/history/jsonl-replay.d.ts +38 -0
  61. package/dist/history/repair-tool-pairing.d.ts +14 -0
  62. package/dist/history/turn-accumulator.d.ts +85 -0
  63. package/dist/index.d.ts +6 -0
  64. package/dist/index.js +505 -0
  65. package/dist/ink-repl.d.ts +32 -0
  66. package/dist/local-control-bootstrap.d.ts +5 -0
  67. package/dist/local-control-client.d.ts +1 -0
  68. package/dist/local-control-error-reporting.d.ts +6 -0
  69. package/dist/local-control-http-client.d.ts +9 -0
  70. package/dist/network-security.d.ts +7 -0
  71. package/dist/networking-server.d.ts +28 -0
  72. package/dist/peer-identity.d.ts +3 -0
  73. package/dist/polling-subscription.d.ts +7 -0
  74. package/dist/relaunch.d.ts +55 -0
  75. package/dist/release-notes.d.ts +11 -0
  76. package/dist/repl-cleanup.d.ts +20 -0
  77. package/dist/selectable-client.d.ts +7 -0
  78. package/dist/selectable-peer.d.ts +12 -0
  79. package/dist/session.d.ts +103 -0
  80. package/dist/slash-commands.d.ts +34 -0
  81. package/dist/sounds.d.ts +31 -0
  82. package/dist/ui/App.d.ts +288 -0
  83. package/dist/ui/components/AnthropicMethodPicker.d.ts +9 -0
  84. package/dist/ui/components/ArionPrompt.d.ts +8 -0
  85. package/dist/ui/components/AutocompleteDropdown.d.ts +9 -0
  86. package/dist/ui/components/AutonomySelector.d.ts +12 -0
  87. package/dist/ui/components/Banner.d.ts +9 -0
  88. package/dist/ui/components/ConversationHistory.d.ts +59 -0
  89. package/dist/ui/components/CopilotDeviceLoginFlow.d.ts +15 -0
  90. package/dist/ui/components/CopilotSourcePicker.d.ts +13 -0
  91. package/dist/ui/components/Cost.d.ts +8 -0
  92. package/dist/ui/components/CustomSelect/option-map.d.ts +15 -0
  93. package/dist/ui/components/CustomSelect/select-option.d.ts +20 -0
  94. package/dist/ui/components/CustomSelect/select.d.ts +55 -0
  95. package/dist/ui/components/CustomSelect/use-select-state.d.ts +99 -0
  96. package/dist/ui/components/CustomSelect/use-select.d.ts +14 -0
  97. package/dist/ui/components/ErrorDisplay.d.ts +26 -0
  98. package/dist/ui/components/FallbackToolUseRejectedMessage.d.ts +2 -0
  99. package/dist/ui/components/FileEditToolUpdatedMessage.d.ts +9 -0
  100. package/dist/ui/components/HandoffMarker.d.ts +17 -0
  101. package/dist/ui/components/HighlightedCode.d.ts +7 -0
  102. package/dist/ui/components/InputArea.d.ts +17 -0
  103. package/dist/ui/components/Message.d.ts +16 -0
  104. package/dist/ui/components/OAuthLoginFlow.d.ts +25 -0
  105. package/dist/ui/components/OutputTruncation.d.ts +16 -0
  106. package/dist/ui/components/PermissionPrompt.d.ts +22 -0
  107. package/dist/ui/components/PipelineTimingPanel.d.ts +13 -0
  108. package/dist/ui/components/ProviderMethodPicker.d.ts +16 -0
  109. package/dist/ui/components/ProviderPicker.d.ts +15 -0
  110. package/dist/ui/components/RenderItemView.d.ts +18 -0
  111. package/dist/ui/components/Spinner.d.ts +3 -0
  112. package/dist/ui/components/StatusBar.d.ts +78 -0
  113. package/dist/ui/components/StreamingIndicator.d.ts +11 -0
  114. package/dist/ui/components/StructuredDiff.d.ts +20 -0
  115. package/dist/ui/components/TextInputOverlay.d.ts +9 -0
  116. package/dist/ui/components/ThinkingBlock.d.ts +53 -0
  117. package/dist/ui/components/ToolCost.d.ts +8 -0
  118. package/dist/ui/components/ToolExecution.d.ts +13 -0
  119. package/dist/ui/components/ToolHeader.d.ts +10 -0
  120. package/dist/ui/components/ToolRenderLayoutContext.d.ts +10 -0
  121. package/dist/ui/components/ToolResultWrapper.d.ts +6 -0
  122. package/dist/ui/components/ToolUseLoader.d.ts +10 -0
  123. package/dist/ui/components/TraceWaterfall.d.ts +56 -0
  124. package/dist/ui/components/index.d.ts +29 -0
  125. package/dist/ui/components/messages/AssistantTextMessage.d.ts +13 -0
  126. package/dist/ui/components/messages/UserImageMessage.d.ts +8 -0
  127. package/dist/ui/components/messages/UserTextMessage.d.ts +13 -0
  128. package/dist/ui/components/overlays/ArionSelector.d.ts +18 -0
  129. package/dist/ui/components/overlays/ClientSelector.d.ts +7 -0
  130. package/dist/ui/components/overlays/CommandPalette.d.ts +14 -0
  131. package/dist/ui/components/overlays/InviteShareOverlay.d.ts +7 -0
  132. package/dist/ui/components/overlays/JoinInviteOverlay.d.ts +6 -0
  133. package/dist/ui/components/overlays/MemoryBrowser.d.ts +17 -0
  134. package/dist/ui/components/overlays/MessageSelector.d.ts +20 -0
  135. package/dist/ui/components/overlays/ModelSelector.d.ts +17 -0
  136. package/dist/ui/components/overlays/PairRequestOverlay.d.ts +19 -0
  137. package/dist/ui/components/overlays/PeerSelector.d.ts +14 -0
  138. package/dist/ui/components/overlays/SessionSelector.d.ts +11 -0
  139. package/dist/ui/components/overlays/ThemeSelector.d.ts +22 -0
  140. package/dist/ui/components/overlays/index.d.ts +13 -0
  141. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.d.ts +9 -0
  142. package/dist/ui/components/permissions/FallbackPermissionRequest.d.ts +9 -0
  143. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.d.ts +9 -0
  144. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.d.ts +11 -0
  145. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.d.ts +9 -0
  146. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.d.ts +9 -0
  147. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.d.ts +5 -0
  148. package/dist/ui/components/permissions/PermissionRequest.d.ts +52 -0
  149. package/dist/ui/components/permissions/PermissionRequestTitle.d.ts +13 -0
  150. package/dist/ui/components/permissions/hooks.d.ts +10 -0
  151. package/dist/ui/components/permissions/toolUseOptions.d.ts +10 -0
  152. package/dist/ui/components/permissions/utils.d.ts +6 -0
  153. package/dist/ui/components/text-input/Cursor.d.ts +58 -0
  154. package/dist/ui/components/text-input/TextInput.d.ts +98 -0
  155. package/dist/ui/components/text-input/imagePaste.d.ts +2 -0
  156. package/dist/ui/components/text-input/index.d.ts +6 -0
  157. package/dist/ui/components/text-input/useDoublePress.d.ts +2 -0
  158. package/dist/ui/components/text-input/useTextInput.d.ts +34 -0
  159. package/dist/ui/components/tool-types.d.ts +28 -0
  160. package/dist/ui/constants/figures.d.ts +1 -0
  161. package/dist/ui/constants/index.d.ts +1 -0
  162. package/dist/ui/display-mode.d.ts +62 -0
  163. package/dist/ui/display-policy.d.ts +3 -0
  164. package/dist/ui/hooks/index.d.ts +4 -0
  165. package/dist/ui/hooks/useCommandAutocomplete.d.ts +28 -0
  166. package/dist/ui/hooks/useDoublePress.d.ts +13 -0
  167. package/dist/ui/hooks/useIndicatorState.d.ts +3 -0
  168. package/dist/ui/hooks/useInterval.d.ts +6 -0
  169. package/dist/ui/hooks/useKeyboardShortcuts.d.ts +17 -0
  170. package/dist/ui/hooks/usePeerMessages.d.ts +26 -0
  171. package/dist/ui/hooks/useTerminalSize.d.ts +6 -0
  172. package/dist/ui/hooks/useUnifiedMessages.d.ts +83 -0
  173. package/dist/ui/indicator-state.d.ts +46 -0
  174. package/dist/ui/markdown/highlight.d.ts +8 -0
  175. package/dist/ui/markdown/index.d.ts +16 -0
  176. package/dist/ui/markdown/tokenizer.d.ts +17 -0
  177. package/dist/ui/render-item.d.ts +70 -0
  178. package/dist/ui/screens/REPL.d.ts +288 -0
  179. package/dist/ui/status-line.d.ts +32 -0
  180. package/dist/ui/theme/index.d.ts +8 -0
  181. package/dist/ui/theme/themes/claude-dark-daltonized.d.ts +2 -0
  182. package/dist/ui/theme/themes/claude-dark.d.ts +2 -0
  183. package/dist/ui/theme/themes/claude-light-daltonized.d.ts +2 -0
  184. package/dist/ui/theme/themes/claude-light.d.ts +2 -0
  185. package/dist/ui/theme/themes/dark-accessible.d.ts +2 -0
  186. package/dist/ui/theme/themes/dark.d.ts +2 -0
  187. package/dist/ui/theme/themes/light-accessible.d.ts +2 -0
  188. package/dist/ui/theme/themes/light.d.ts +2 -0
  189. package/dist/ui/theme/types.d.ts +51 -0
  190. package/dist/ui/theme.d.ts +51 -0
  191. package/dist/ui/to-render-items.d.ts +7 -0
  192. package/dist/ui/tools/AgentTool/index.d.ts +8 -0
  193. package/dist/ui/tools/ArchitectTool/index.d.ts +10 -0
  194. package/dist/ui/tools/AskUserTool/index.d.ts +19 -0
  195. package/dist/ui/tools/BashTool/BashToolResultMessage.d.ts +13 -0
  196. package/dist/ui/tools/BashTool/OutputLine.d.ts +6 -0
  197. package/dist/ui/tools/BashTool/index.d.ts +8 -0
  198. package/dist/ui/tools/BrowseTool/index.d.ts +20 -0
  199. package/dist/ui/tools/BrowserTool/index.d.ts +25 -0
  200. package/dist/ui/tools/CbmTool/index.d.ts +81 -0
  201. package/dist/ui/tools/CheckDelegationTool/index.d.ts +23 -0
  202. package/dist/ui/tools/CheckMessagesTool/index.d.ts +8 -0
  203. package/dist/ui/tools/CreateQuipTool/index.d.ts +10 -0
  204. package/dist/ui/tools/CreateSkillTool/index.d.ts +13 -0
  205. package/dist/ui/tools/CreateToolTool/index.d.ts +10 -0
  206. package/dist/ui/tools/DelegateRemoteTool/index.d.ts +22 -0
  207. package/dist/ui/tools/DeployTool/index.d.ts +24 -0
  208. package/dist/ui/tools/FffTool/index.d.ts +17 -0
  209. package/dist/ui/tools/FileEditTool/index.d.ts +10 -0
  210. package/dist/ui/tools/FileReadTool/index.d.ts +10 -0
  211. package/dist/ui/tools/FileWriteTool/index.d.ts +10 -0
  212. package/dist/ui/tools/FrgTool/index.d.ts +17 -0
  213. package/dist/ui/tools/GetThreadTool/index.d.ts +10 -0
  214. package/dist/ui/tools/GlobTool/index.d.ts +11 -0
  215. package/dist/ui/tools/GrepTool/index.d.ts +12 -0
  216. package/dist/ui/tools/HatchArionTool/index.d.ts +20 -0
  217. package/dist/ui/tools/LearnSkillTool/index.d.ts +13 -0
  218. package/dist/ui/tools/LearnTool/index.d.ts +15 -0
  219. package/dist/ui/tools/LearnToolTool/index.d.ts +14 -0
  220. package/dist/ui/tools/ListClientsTool/index.d.ts +10 -0
  221. package/dist/ui/tools/LspTool/index.d.ts +11 -0
  222. package/dist/ui/tools/MCPTool/index.d.ts +11 -0
  223. package/dist/ui/tools/ManageNetworkTool/index.d.ts +28 -0
  224. package/dist/ui/tools/MemoryReadTool/index.d.ts +8 -0
  225. package/dist/ui/tools/MemoryWriteTool/index.d.ts +6 -0
  226. package/dist/ui/tools/NotebookEditTool/index.d.ts +19 -0
  227. package/dist/ui/tools/NotebookReadTool/index.d.ts +12 -0
  228. package/dist/ui/tools/OutlookReadTool/index.d.ts +10 -0
  229. package/dist/ui/tools/OutlookReplyTool/index.d.ts +10 -0
  230. package/dist/ui/tools/OutlookSendTool/index.d.ts +10 -0
  231. package/dist/ui/tools/PauseDelegationTool/index.d.ts +20 -0
  232. package/dist/ui/tools/ProbeTool/index.d.ts +26 -0
  233. package/dist/ui/tools/ProcessTool/index.d.ts +29 -0
  234. package/dist/ui/tools/QuestListTool/index.d.ts +24 -0
  235. package/dist/ui/tools/QuestReportTool/index.d.ts +27 -0
  236. package/dist/ui/tools/QuestUpdateTool/index.d.ts +24 -0
  237. package/dist/ui/tools/QuipCommentTool/index.d.ts +23 -0
  238. package/dist/ui/tools/QuipReadTool/index.d.ts +26 -0
  239. package/dist/ui/tools/RestArionTool/index.d.ts +19 -0
  240. package/dist/ui/tools/RestartTool/index.d.ts +20 -0
  241. package/dist/ui/tools/ResumeDelegationTool/index.d.ts +21 -0
  242. package/dist/ui/tools/RetireArionTool/index.d.ts +19 -0
  243. package/dist/ui/tools/RgTool/index.d.ts +44 -0
  244. package/dist/ui/tools/SearchKnowledgeTool/index.d.ts +31 -0
  245. package/dist/ui/tools/SearchMessagesTool/index.d.ts +10 -0
  246. package/dist/ui/tools/SelfDiagnoseTool/index.d.ts +11 -0
  247. package/dist/ui/tools/SendMessageTool/index.d.ts +8 -0
  248. package/dist/ui/tools/SerenaTool/index.d.ts +18 -0
  249. package/dist/ui/tools/SessionHistoryTool/index.d.ts +32 -0
  250. package/dist/ui/tools/SgTool/index.d.ts +8 -0
  251. package/dist/ui/tools/SlackReactTool/index.d.ts +10 -0
  252. package/dist/ui/tools/SlackReadTool/index.d.ts +10 -0
  253. package/dist/ui/tools/SlackSendTool/index.d.ts +10 -0
  254. package/dist/ui/tools/SpawnWorkerTool/index.d.ts +18 -0
  255. package/dist/ui/tools/StickerRequestTool/index.d.ts +6 -0
  256. package/dist/ui/tools/ThinkTool/index.d.ts +8 -0
  257. package/dist/ui/tools/UgTool/index.d.ts +47 -0
  258. package/dist/ui/tools/UseSkillTool/index.d.ts +17 -0
  259. package/dist/ui/tools/WakeArionTool/index.d.ts +19 -0
  260. package/dist/ui/tools/WebFetchTool/index.d.ts +20 -0
  261. package/dist/ui/tools/WebSearchTool/index.d.ts +21 -0
  262. package/dist/ui/tools/lsTool/index.d.ts +12 -0
  263. package/dist/ui/tools/registry.d.ts +15 -0
  264. package/dist/ui/tools/tool-renderer.d.ts +24 -0
  265. package/dist/ui/tools/truncation.d.ts +6 -0
  266. package/dist/ui/types/anthropic.d.ts +19 -0
  267. package/dist/ui/types/index.d.ts +3 -0
  268. package/dist/ui/types/message.d.ts +19 -0
  269. package/dist/ui/types/tool.d.ts +17 -0
  270. package/dist/ui/utils/array.d.ts +1 -0
  271. package/dist/ui/utils/cursor.d.ts +28 -0
  272. package/dist/ui/utils/diff.d.ts +24 -0
  273. package/dist/ui/utils/format.d.ts +3 -0
  274. package/dist/ui/utils/fuzzy.d.ts +11 -0
  275. package/dist/ui/utils/index.d.ts +9 -0
  276. package/dist/ui/utils/keys.d.ts +6 -0
  277. package/dist/ui/utils/patch.d.ts +8 -0
  278. package/dist/ui/utils/risk.d.ts +14 -0
  279. package/dist/ui/utils/terminal-image.d.ts +18 -0
  280. package/dist/ui/utils/validation.d.ts +8 -0
  281. package/dist/ui/verb-pairs.d.ts +20 -0
  282. package/dist/ui.d.ts +70 -0
  283. package/package.json +76 -0
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Status Line Component
3
+ * Shows which arions are active in the conversation.
4
+ */
5
+ import type { Arion } from "@aria-cli/aria";
6
+ export interface StatusLineOptions {
7
+ memoryCount?: number;
8
+ }
9
+ /**
10
+ * Calculate the visual width of a string in the terminal.
11
+ * Emojis are typically 2 columns wide.
12
+ */
13
+ export declare function visualWidth(str: string): number;
14
+ /**
15
+ * Format a status line showing active arions.
16
+ *
17
+ * Example output for single arion:
18
+ * ┌──────────────────────────────────────────────────┐
19
+ * │ 🔬 Nova │ analytical+playful │ ████░░░░ 12 memories │
20
+ * └──────────────────────────────────────────────────┘
21
+ *
22
+ * Example output for multiple arions:
23
+ * ┌──────────────────────────────────────────────────┐
24
+ * │ 🔬 Nova + 🤖 CodeBot │ 2 active │
25
+ * └──────────────────────────────────────────────────┘
26
+ */
27
+ export declare function formatStatusLine(activeArions: Arion[], options?: StatusLineOptions): string;
28
+ /**
29
+ * Generate ANSI escape sequence to clear the status line.
30
+ * Moves cursor up 3 lines and clears from cursor to end of screen.
31
+ */
32
+ export declare function clearStatusLine(): string;
@@ -0,0 +1,8 @@
1
+ import type { ThemeDefinition, ThemeName } from "./types.js";
2
+ export * from "./types.js";
3
+ export declare function setTheme(name: ThemeName): void;
4
+ export declare function getTheme(): ThemeDefinition;
5
+ export declare function getAvailableThemes(): ThemeName[];
6
+ /** Get a theme definition by name without mutating the current theme. */
7
+ export declare function getThemeDefinition(name: ThemeName): ThemeDefinition | undefined;
8
+ export declare function getArionColor(color: keyof ThemeDefinition["colors"]["arion"] | undefined): string;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from "../types.js";
2
+ export declare const claudeDarkDaltonizedTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from "../types.js";
2
+ export declare const claudeDarkTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from "../types.js";
2
+ export declare const claudeLightDaltonizedTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from "../types.js";
2
+ export declare const claudeLightTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from '../types.js';
2
+ export declare const darkAccessibleTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from '../types.js';
2
+ export declare const darkTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from '../types.js';
2
+ export declare const lightAccessibleTheme: ThemeDefinition;
@@ -0,0 +1,2 @@
1
+ import type { ThemeDefinition } from '../types.js';
2
+ export declare const lightTheme: ThemeDefinition;
@@ -0,0 +1,51 @@
1
+ export type ThemeName = "dark" | "light" | "dark-accessible" | "light-accessible" | "claude-dark" | "claude-light" | "claude-dark-daltonized" | "claude-light-daltonized";
2
+ export interface ThemeColors {
3
+ primary: string;
4
+ secondary: string;
5
+ text: string;
6
+ textMuted: string;
7
+ textInverse: string;
8
+ success: string;
9
+ error: string;
10
+ warning: string;
11
+ info: string;
12
+ diffAdded: string;
13
+ diffAddedDimmed: string;
14
+ diffRemoved: string;
15
+ diffRemovedDimmed: string;
16
+ arion: {
17
+ cyan: string;
18
+ magenta: string;
19
+ yellow: string;
20
+ green: string;
21
+ blue: string;
22
+ red: string;
23
+ white: string;
24
+ };
25
+ }
26
+ export interface ThemeSymbols {
27
+ prompt: string;
28
+ divider: string;
29
+ success: string;
30
+ error: string;
31
+ warning: string;
32
+ info: string;
33
+ pending: string;
34
+ bullet: string;
35
+ arrow: string;
36
+ }
37
+ export interface ThemeBanner {
38
+ gradient: {
39
+ start: string;
40
+ middle: string;
41
+ end: string;
42
+ };
43
+ animationDuration: number;
44
+ }
45
+ export interface ThemeDefinition {
46
+ name: ThemeName;
47
+ displayName: string;
48
+ colors: ThemeColors;
49
+ symbols: ThemeSymbols;
50
+ banner: ThemeBanner;
51
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * UI Theme for Ink Components
3
+ */
4
+ export declare const theme: {
5
+ readonly colors: {
6
+ readonly cyan: "cyan";
7
+ readonly magenta: "magenta";
8
+ readonly yellow: "yellow";
9
+ readonly green: "green";
10
+ readonly blue: "blue";
11
+ readonly red: "red";
12
+ readonly white: "white";
13
+ readonly gray: "gray";
14
+ readonly dim: "gray";
15
+ };
16
+ readonly prompt: {
17
+ readonly symbol: "❯";
18
+ };
19
+ readonly divider: {
20
+ readonly char: "─";
21
+ };
22
+ };
23
+ export type ArionColor = "cyan" | "magenta" | "yellow" | "green" | "blue" | "red" | "white";
24
+ /**
25
+ * Get the hex color for an arion's color setting
26
+ */
27
+ export declare function getArionColor(color: ArionColor | undefined): string;
28
+ /**
29
+ * Convert full model name to short display name
30
+ * claude-opus-4-6 -> opus-4.6
31
+ * claude-sonnet-4-5-20250929 -> sonnet-4.5
32
+ */
33
+ export declare function shortModelName(model: string): string;
34
+ /**
35
+ * Get display color for a model by short name.
36
+ * Strips provider prefixes (bedrock-, copilot suffixes) to find the family.
37
+ * Returns undefined for unknown models (caller renders as dimColor).
38
+ */
39
+ export declare function getModelColor(shortName: string): string | undefined;
40
+ export declare function getProviderStyle(provider: string): {
41
+ icon: string;
42
+ color: string;
43
+ };
44
+ /**
45
+ * Get the provider icon for a model short name (for status bar display).
46
+ * Returns { icon, color } or undefined for unknown models.
47
+ */
48
+ export declare function getModelProviderIcon(shortName: string): {
49
+ icon: string;
50
+ color: string;
51
+ } | undefined;
@@ -0,0 +1,7 @@
1
+ import type { ConversationMessage } from "../history/conversation-message.js";
2
+ import type { RenderItem } from "./render-item.js";
3
+ interface Options {
4
+ userName?: string | null;
5
+ }
6
+ export declare function toRenderItems(committed: ConversationMessage[], preview: ConversationMessage[], options?: Options): RenderItem[];
7
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const AgentToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>, { verbose }: {
4
+ verbose: boolean;
5
+ }): string;
6
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
7
+ renderOutput(): null;
8
+ };
@@ -0,0 +1,10 @@
1
+ export declare const ArchitectToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>): string;
4
+ renderOutput(content: Array<{
5
+ text: string;
6
+ }>, { verbose }?: {
7
+ verbose: boolean;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,19 @@
1
+ interface AskUserOutput {
2
+ answers: Array<string | {
3
+ answer?: string;
4
+ }>;
5
+ }
6
+ export declare const AskUserToolRenderers: {
7
+ displayName(): string;
8
+ renderInput(input: {
9
+ question?: string;
10
+ questions?: Array<string | {
11
+ question?: string;
12
+ }>;
13
+ }): string;
14
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
15
+ renderOutput(output: AskUserOutput | string, { verbose }: {
16
+ verbose: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ };
19
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ type BashOut = {
3
+ stdout: string;
4
+ stdoutLines: number;
5
+ stderr: string;
6
+ stderrLines: number;
7
+ };
8
+ type Props = {
9
+ content: Omit<BashOut, "interrupted">;
10
+ verbose: boolean;
11
+ };
12
+ declare function BashToolResultMessage({ content, verbose }: Props): React.ReactElement;
13
+ export default BashToolResultMessage;
@@ -0,0 +1,6 @@
1
+ export declare function OutputLine({ content, lines, verbose, isError, }: {
2
+ content: string;
3
+ lines: number;
4
+ verbose: boolean;
5
+ isError?: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const BashToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>): string;
4
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
5
+ renderOutput(content: unknown, { verbose }: {
6
+ verbose: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ };
@@ -0,0 +1,20 @@
1
+ interface BrowseInput {
2
+ url?: string;
3
+ [key: string]: unknown;
4
+ }
5
+ interface BrowseOutput {
6
+ url?: string;
7
+ title?: string;
8
+ content?: string;
9
+ fromCache?: boolean;
10
+ finalUrl?: string;
11
+ contentBytes?: number;
12
+ truncated?: boolean;
13
+ }
14
+ export declare const BrowseToolRenderers: {
15
+ displayName(): string;
16
+ renderInput(input: BrowseInput): string;
17
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
18
+ renderOutput(output: BrowseOutput | string | null): import("react/jsx-runtime").JSX.Element;
19
+ };
20
+ export {};
@@ -0,0 +1,25 @@
1
+ interface BrowserInput {
2
+ action?: string;
3
+ url?: string;
4
+ selector?: string;
5
+ text?: string;
6
+ [key: string]: unknown;
7
+ }
8
+ interface BrowserOutput {
9
+ url?: string;
10
+ title?: string;
11
+ content?: string;
12
+ screenshot?: string;
13
+ error?: string;
14
+ }
15
+ export declare const BrowserToolRenderers: {
16
+ displayName(): string;
17
+ renderInput(input: BrowserInput, _opts: {
18
+ verbose: boolean;
19
+ }): string;
20
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
21
+ renderOutput(output: BrowserOutput | string | null, _opts: {
22
+ verbose: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ };
25
+ export {};
@@ -0,0 +1,81 @@
1
+ interface CbmInput {
2
+ action?: string;
3
+ name?: string;
4
+ label?: string;
5
+ file?: string;
6
+ depth?: number;
7
+ direction?: string;
8
+ edge_types?: string[];
9
+ path?: string;
10
+ project?: string;
11
+ query?: string;
12
+ [key: string]: unknown;
13
+ }
14
+ interface SearchResult {
15
+ name: string;
16
+ label?: string;
17
+ file_path?: string;
18
+ qualified_name?: string;
19
+ }
20
+ interface SearchOutput {
21
+ results?: SearchResult[];
22
+ total?: number;
23
+ }
24
+ interface CallChain {
25
+ inbound?: Array<{
26
+ name: string;
27
+ file?: string;
28
+ }>;
29
+ outbound?: Array<{
30
+ name: string;
31
+ file?: string;
32
+ }>;
33
+ node?: {
34
+ name: string;
35
+ };
36
+ }
37
+ interface ImpactOutput {
38
+ affected?: Array<{
39
+ name: string;
40
+ file?: string;
41
+ }>;
42
+ depth?: number;
43
+ }
44
+ interface ContextOutput {
45
+ definition?: {
46
+ name: string;
47
+ [key: string]: unknown;
48
+ };
49
+ callers?: Array<{
50
+ name: string;
51
+ [key: string]: unknown;
52
+ }>;
53
+ callees?: Array<{
54
+ name: string;
55
+ [key: string]: unknown;
56
+ }>;
57
+ }
58
+ interface ArchitectureOutput {
59
+ components?: Array<{
60
+ name: string;
61
+ [key: string]: unknown;
62
+ }>;
63
+ [key: string]: unknown;
64
+ }
65
+ interface StatusOutput {
66
+ status?: string;
67
+ node_count?: number;
68
+ edge_count?: number;
69
+ }
70
+ type CbmOutput = SearchOutput | CallChain | ImpactOutput | ContextOutput | ArchitectureOutput | StatusOutput | {
71
+ raw: string;
72
+ } | string | null;
73
+ export declare const CbmToolRenderers: {
74
+ displayName(): string;
75
+ renderInput(input: CbmInput): string;
76
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
77
+ renderOutput(output: CbmOutput, opts?: {
78
+ verbose?: boolean;
79
+ }, input?: CbmInput): import("react/jsx-runtime").JSX.Element;
80
+ };
81
+ export {};
@@ -0,0 +1,23 @@
1
+ interface CheckDelegationInput {
2
+ id?: string;
3
+ [key: string]: unknown;
4
+ }
5
+ interface CheckDelegationOutput {
6
+ id?: string;
7
+ type?: string;
8
+ status?: "running" | "completed" | "failed" | string;
9
+ result?: string;
10
+ error?: string;
11
+ metadata?: Record<string, unknown>;
12
+ }
13
+ export declare const CheckDelegationToolRenderers: {
14
+ displayName(): string;
15
+ renderInput(input: CheckDelegationInput, _opts: {
16
+ verbose: boolean;
17
+ }): string;
18
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
19
+ renderOutput(output: CheckDelegationOutput | string | null, _opts: {
20
+ verbose: boolean;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ };
23
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const CheckMessagesToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>): string;
4
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
5
+ renderOutput(output: unknown, { verbose }?: {
6
+ verbose?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ };
@@ -0,0 +1,10 @@
1
+ export declare const CreateQuipToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>, { verbose }?: {
4
+ verbose?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
7
+ renderOutput(output: unknown, { verbose }?: {
8
+ verbose?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,13 @@
1
+ export declare const CreateSkillToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: {
4
+ name?: string;
5
+ }, _opts: {
6
+ verbose: boolean;
7
+ }): string;
8
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
9
+ renderOutput(output: {
10
+ skillId?: string;
11
+ name?: string;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ };
@@ -0,0 +1,10 @@
1
+ export declare const CreateToolToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: {
4
+ name?: string;
5
+ }, _opts: {
6
+ verbose: boolean;
7
+ }): string;
8
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
9
+ renderOutput(output: unknown): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,22 @@
1
+ interface DelegateRemoteInput {
2
+ node_id?: string;
3
+ task?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ interface DelegateRemoteOutput {
7
+ success?: boolean;
8
+ quest_id?: string;
9
+ error?: string;
10
+ message?: string;
11
+ }
12
+ export declare const DelegateRemoteToolRenderers: {
13
+ displayName(): string;
14
+ renderInput(input: DelegateRemoteInput, _opts?: {
15
+ verbose?: boolean;
16
+ }): string;
17
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
18
+ renderOutput(output: DelegateRemoteOutput | string | null, _opts?: {
19
+ verbose?: boolean;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ };
22
+ export {};
@@ -0,0 +1,24 @@
1
+ interface DeployInput {
2
+ target?: string;
3
+ branch?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ interface DeployOutput {
7
+ success?: boolean;
8
+ host?: string;
9
+ port?: number;
10
+ fingerprint?: string;
11
+ error?: string;
12
+ message?: string;
13
+ }
14
+ export declare const DeployToolRenderers: {
15
+ displayName(): string;
16
+ renderInput(input: DeployInput, _opts?: {
17
+ verbose?: boolean;
18
+ }): string;
19
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
20
+ renderOutput(output: DeployOutput | string | null, _opts?: {
21
+ verbose?: boolean;
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ };
24
+ export {};
@@ -0,0 +1,17 @@
1
+ interface FffInput {
2
+ action: string;
3
+ query?: string;
4
+ patterns?: string[];
5
+ path?: string;
6
+ constraints?: string;
7
+ [key: string]: unknown;
8
+ }
9
+ export declare const FffToolRenderers: {
10
+ displayName(): string;
11
+ renderInput(input: FffInput, { verbose }: {
12
+ verbose: boolean;
13
+ }): string;
14
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
15
+ renderOutput(output: unknown): import("react/jsx-runtime").JSX.Element;
16
+ };
17
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const FileEditToolRenderers: {
2
+ displayName(input: Record<string, unknown>): "Create" | "Delete" | "Edit";
3
+ renderInput(input: Record<string, unknown>, { verbose }: {
4
+ verbose: boolean;
5
+ }): string;
6
+ renderOutput(output: unknown, { verbose }: {
7
+ verbose: boolean;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,10 @@
1
+ export declare const FileReadToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>, { verbose }: {
4
+ verbose: boolean;
5
+ }): string;
6
+ renderOutput(output: unknown, { verbose }: {
7
+ verbose: boolean;
8
+ }, input?: unknown): import("react/jsx-runtime").JSX.Element;
9
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,10 @@
1
+ export declare const FileWriteToolRenderers: {
2
+ displayName: () => string;
3
+ renderInput(input: Record<string, unknown>, { verbose }: {
4
+ verbose: boolean;
5
+ }): string;
6
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
7
+ renderOutput(output: unknown, { verbose }: {
8
+ verbose: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,17 @@
1
+ interface FrgInput {
2
+ command: string;
3
+ pattern?: string;
4
+ path?: string;
5
+ count?: boolean;
6
+ filesOnly?: boolean;
7
+ [key: string]: unknown;
8
+ }
9
+ export declare const FrgToolRenderers: {
10
+ displayName(): string;
11
+ renderInput(input: FrgInput, { verbose }: {
12
+ verbose: boolean;
13
+ }): string;
14
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
15
+ renderOutput(output: unknown): import("react/jsx-runtime").JSX.Element;
16
+ };
17
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const GetThreadToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: Record<string, unknown>, { verbose }?: {
4
+ verbose?: boolean;
5
+ }): string;
6
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
7
+ renderOutput(output: unknown, { verbose }?: {
8
+ verbose?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ };
@@ -0,0 +1,11 @@
1
+ export declare const GlobToolRenderers: {
2
+ displayName(): string;
3
+ renderInput({ pattern, path }: {
4
+ pattern: string;
5
+ path?: string;
6
+ }, { verbose }: {
7
+ verbose: boolean;
8
+ }): string;
9
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
10
+ renderOutput(output: unknown): import("react/jsx-runtime").JSX.Element;
11
+ };
@@ -0,0 +1,12 @@
1
+ export declare const GrepToolRenderers: {
2
+ displayName(): string;
3
+ renderInput({ pattern, path, include }: {
4
+ pattern: string;
5
+ path?: string;
6
+ include?: string;
7
+ }, { verbose }: {
8
+ verbose: boolean;
9
+ }): string;
10
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
11
+ renderOutput(output: unknown): import("react/jsx-runtime").JSX.Element;
12
+ };
@@ -0,0 +1,20 @@
1
+ interface HatchArionInput {
2
+ name?: string;
3
+ [key: string]: unknown;
4
+ }
5
+ interface HatchArionOutput {
6
+ arionId?: string;
7
+ name?: string;
8
+ emoji?: string;
9
+ }
10
+ export declare const HatchArionToolRenderers: {
11
+ displayName(): string;
12
+ renderInput(input: HatchArionInput, _opts: {
13
+ verbose: boolean;
14
+ }): string;
15
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
16
+ renderOutput(output: HatchArionOutput | string | null, _opts: {
17
+ verbose: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ };
20
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare const LearnSkillToolRenderers: {
2
+ displayName(): string;
3
+ renderInput(input: {
4
+ name?: string;
5
+ }, _opts: {
6
+ verbose: boolean;
7
+ }): string;
8
+ renderRejection(): import("react/jsx-runtime").JSX.Element;
9
+ renderOutput(output: {
10
+ skillId?: string;
11
+ name?: string;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ };