@aria-cli/cli 1.0.19 → 1.0.37

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 (294) hide show
  1. package/README.md +32 -46
  2. package/bin/aria.mjs +5718 -0
  3. package/package.json +33 -51
  4. package/bin/aria-dev.js +0 -2
  5. package/bin/aria.js +0 -14
  6. package/bin/install-owner-lease.d.ts +0 -8
  7. package/bin/install-owner-lease.js +0 -1
  8. package/dist/.aria-build-stamp.json +0 -4
  9. package/dist/attached-local-control-client.d.ts +0 -90
  10. package/dist/bootstrap-local-control-client.d.ts +0 -1
  11. package/dist/capability-aware-method-proxy.d.ts +0 -1
  12. package/dist/cli-context.d.ts +0 -31
  13. package/dist/cli-context.js +0 -1
  14. package/dist/commands/arions.d.ts +0 -14
  15. package/dist/commands/auth.d.ts +0 -27
  16. package/dist/commands/daemon.d.ts +0 -31
  17. package/dist/commands/definitions.d.ts +0 -19
  18. package/dist/commands/index.d.ts +0 -13
  19. package/dist/commands/index.js +0 -356
  20. package/dist/commands/login-handler.d.ts +0 -108
  21. package/dist/commands/logout-handler.d.ts +0 -24
  22. package/dist/commands/memory-handlers.d.ts +0 -15
  23. package/dist/commands/pairing.d.ts +0 -2
  24. package/dist/commands/peer-message-handler.d.ts +0 -7
  25. package/dist/commands/runtime-cutover-reset-command.d.ts +0 -2
  26. package/dist/commands/runtime-cutover-reset.d.ts +0 -26
  27. package/dist/commands/terminal-setup.d.ts +0 -3
  28. package/dist/config/aria-config.d.ts +0 -50
  29. package/dist/config/index.d.ts +0 -4
  30. package/dist/config/loader.d.ts +0 -17
  31. package/dist/config.d.ts +0 -53
  32. package/dist/config.js +0 -1
  33. package/dist/daemon-info.d.ts +0 -17
  34. package/dist/ensure-daemon.d.ts +0 -21
  35. package/dist/ensure-daemon.js +0 -4
  36. package/dist/event-loop-watchdog.d.ts +0 -31
  37. package/dist/headless/auth-orchestrator.d.ts +0 -19
  38. package/dist/headless/auth-service.d.ts +0 -15
  39. package/dist/headless/bootstrap-fast-path.d.ts +0 -12
  40. package/dist/headless/call-command.d.ts +0 -8
  41. package/dist/headless/daemon-service.d.ts +0 -14
  42. package/dist/headless/hook-actions.d.ts +0 -40
  43. package/dist/headless/hook-service.d.ts +0 -8
  44. package/dist/headless/kernel-services.d.ts +0 -8
  45. package/dist/headless/kernel.d.ts +0 -118
  46. package/dist/headless/operations/arion.d.ts +0 -3
  47. package/dist/headless/operations/auth.d.ts +0 -4
  48. package/dist/headless/operations/client.d.ts +0 -2
  49. package/dist/headless/operations/config.d.ts +0 -3
  50. package/dist/headless/operations/daemon.d.ts +0 -3
  51. package/dist/headless/operations/hook.d.ts +0 -3
  52. package/dist/headless/operations/index.d.ts +0 -10
  53. package/dist/headless/operations/memory.d.ts +0 -3
  54. package/dist/headless/operations/message.d.ts +0 -2
  55. package/dist/headless/operations/model.d.ts +0 -3
  56. package/dist/headless/operations/peer.d.ts +0 -2
  57. package/dist/headless/operations/run.d.ts +0 -3
  58. package/dist/headless/operations/session.d.ts +0 -74
  59. package/dist/headless/operations/subscription.d.ts +0 -2
  60. package/dist/headless/operations/system.d.ts +0 -3
  61. package/dist/headless/operations/utils.d.ts +0 -5
  62. package/dist/headless/run-orchestrator.d.ts +0 -38
  63. package/dist/headless/stdio-server.d.ts +0 -4
  64. package/dist/history/SessionHistory.d.ts +0 -200
  65. package/dist/history/conversation-message.d.ts +0 -181
  66. package/dist/history/index.d.ts +0 -8
  67. package/dist/history/index.js +0 -321
  68. package/dist/history/jsonl-replay.d.ts +0 -38
  69. package/dist/history/repair-tool-pairing.d.ts +0 -14
  70. package/dist/history/turn-accumulator.d.ts +0 -85
  71. package/dist/index.d.ts +0 -6
  72. package/dist/index.js +0 -503
  73. package/dist/ink-repl.d.ts +0 -32
  74. package/dist/ink-repl.js +0 -491
  75. package/dist/local-control-bootstrap.d.ts +0 -5
  76. package/dist/local-control-client.d.ts +0 -1
  77. package/dist/local-control-client.js +0 -4
  78. package/dist/local-control-error-reporting.d.ts +0 -6
  79. package/dist/local-control-http-client.d.ts +0 -9
  80. package/dist/network-security.d.ts +0 -7
  81. package/dist/networking-server.d.ts +0 -28
  82. package/dist/peer-identity.d.ts +0 -3
  83. package/dist/polling-subscription.d.ts +0 -7
  84. package/dist/relaunch.d.ts +0 -55
  85. package/dist/release-notes.d.ts +0 -11
  86. package/dist/repl-cleanup.d.ts +0 -20
  87. package/dist/repl-cleanup.js +0 -1
  88. package/dist/selectable-client.d.ts +0 -7
  89. package/dist/selectable-peer.d.ts +0 -12
  90. package/dist/session.d.ts +0 -103
  91. package/dist/session.js +0 -1
  92. package/dist/slash-commands.d.ts +0 -34
  93. package/dist/sounds.d.ts +0 -31
  94. package/dist/ui/App.d.ts +0 -288
  95. package/dist/ui/components/AnthropicMethodPicker.d.ts +0 -9
  96. package/dist/ui/components/ArionPrompt.d.ts +0 -8
  97. package/dist/ui/components/AutocompleteDropdown.d.ts +0 -9
  98. package/dist/ui/components/AutonomySelector.d.ts +0 -12
  99. package/dist/ui/components/Banner.d.ts +0 -9
  100. package/dist/ui/components/ConversationHistory.d.ts +0 -59
  101. package/dist/ui/components/CopilotDeviceLoginFlow.d.ts +0 -15
  102. package/dist/ui/components/CopilotSourcePicker.d.ts +0 -13
  103. package/dist/ui/components/Cost.d.ts +0 -8
  104. package/dist/ui/components/CustomSelect/option-map.d.ts +0 -15
  105. package/dist/ui/components/CustomSelect/select-option.d.ts +0 -20
  106. package/dist/ui/components/CustomSelect/select.d.ts +0 -55
  107. package/dist/ui/components/CustomSelect/use-select-state.d.ts +0 -99
  108. package/dist/ui/components/CustomSelect/use-select.d.ts +0 -14
  109. package/dist/ui/components/ErrorDisplay.d.ts +0 -26
  110. package/dist/ui/components/FallbackToolUseRejectedMessage.d.ts +0 -2
  111. package/dist/ui/components/FileEditToolUpdatedMessage.d.ts +0 -9
  112. package/dist/ui/components/HandoffMarker.d.ts +0 -17
  113. package/dist/ui/components/HighlightedCode.d.ts +0 -7
  114. package/dist/ui/components/InputArea.d.ts +0 -17
  115. package/dist/ui/components/Message.d.ts +0 -16
  116. package/dist/ui/components/OAuthLoginFlow.d.ts +0 -25
  117. package/dist/ui/components/OutputTruncation.d.ts +0 -16
  118. package/dist/ui/components/PermissionPrompt.d.ts +0 -22
  119. package/dist/ui/components/PipelineTimingPanel.d.ts +0 -13
  120. package/dist/ui/components/ProviderMethodPicker.d.ts +0 -16
  121. package/dist/ui/components/ProviderPicker.d.ts +0 -15
  122. package/dist/ui/components/RenderItemView.d.ts +0 -18
  123. package/dist/ui/components/Spinner.d.ts +0 -3
  124. package/dist/ui/components/StatusBar.d.ts +0 -78
  125. package/dist/ui/components/StreamingIndicator.d.ts +0 -11
  126. package/dist/ui/components/StructuredDiff.d.ts +0 -20
  127. package/dist/ui/components/TextInputOverlay.d.ts +0 -9
  128. package/dist/ui/components/ThinkingBlock.d.ts +0 -53
  129. package/dist/ui/components/ToolCost.d.ts +0 -8
  130. package/dist/ui/components/ToolExecution.d.ts +0 -13
  131. package/dist/ui/components/ToolHeader.d.ts +0 -10
  132. package/dist/ui/components/ToolRenderLayoutContext.d.ts +0 -10
  133. package/dist/ui/components/ToolResultWrapper.d.ts +0 -6
  134. package/dist/ui/components/ToolUseLoader.d.ts +0 -10
  135. package/dist/ui/components/TraceWaterfall.d.ts +0 -56
  136. package/dist/ui/components/index.d.ts +0 -29
  137. package/dist/ui/components/messages/AssistantTextMessage.d.ts +0 -13
  138. package/dist/ui/components/messages/UserImageMessage.d.ts +0 -8
  139. package/dist/ui/components/messages/UserTextMessage.d.ts +0 -13
  140. package/dist/ui/components/overlays/ArionSelector.d.ts +0 -18
  141. package/dist/ui/components/overlays/ClientSelector.d.ts +0 -7
  142. package/dist/ui/components/overlays/CommandPalette.d.ts +0 -14
  143. package/dist/ui/components/overlays/InviteShareOverlay.d.ts +0 -7
  144. package/dist/ui/components/overlays/JoinInviteOverlay.d.ts +0 -6
  145. package/dist/ui/components/overlays/MemoryBrowser.d.ts +0 -17
  146. package/dist/ui/components/overlays/MessageSelector.d.ts +0 -20
  147. package/dist/ui/components/overlays/ModelSelector.d.ts +0 -17
  148. package/dist/ui/components/overlays/PairRequestOverlay.d.ts +0 -19
  149. package/dist/ui/components/overlays/PeerSelector.d.ts +0 -14
  150. package/dist/ui/components/overlays/SessionSelector.d.ts +0 -11
  151. package/dist/ui/components/overlays/ThemeSelector.d.ts +0 -22
  152. package/dist/ui/components/overlays/index.d.ts +0 -13
  153. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.d.ts +0 -9
  154. package/dist/ui/components/permissions/FallbackPermissionRequest.d.ts +0 -9
  155. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.d.ts +0 -9
  156. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.d.ts +0 -11
  157. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.d.ts +0 -9
  158. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.d.ts +0 -9
  159. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.d.ts +0 -5
  160. package/dist/ui/components/permissions/PermissionRequest.d.ts +0 -52
  161. package/dist/ui/components/permissions/PermissionRequestTitle.d.ts +0 -13
  162. package/dist/ui/components/permissions/hooks.d.ts +0 -10
  163. package/dist/ui/components/permissions/toolUseOptions.d.ts +0 -10
  164. package/dist/ui/components/permissions/utils.d.ts +0 -6
  165. package/dist/ui/components/text-input/Cursor.d.ts +0 -58
  166. package/dist/ui/components/text-input/TextInput.d.ts +0 -98
  167. package/dist/ui/components/text-input/imagePaste.d.ts +0 -2
  168. package/dist/ui/components/text-input/index.d.ts +0 -6
  169. package/dist/ui/components/text-input/useDoublePress.d.ts +0 -2
  170. package/dist/ui/components/text-input/useTextInput.d.ts +0 -34
  171. package/dist/ui/components/tool-types.d.ts +0 -28
  172. package/dist/ui/constants/figures.d.ts +0 -1
  173. package/dist/ui/constants/index.d.ts +0 -1
  174. package/dist/ui/display-mode.d.ts +0 -62
  175. package/dist/ui/display-policy.d.ts +0 -3
  176. package/dist/ui/hooks/index.d.ts +0 -4
  177. package/dist/ui/hooks/useCommandAutocomplete.d.ts +0 -28
  178. package/dist/ui/hooks/useDoublePress.d.ts +0 -13
  179. package/dist/ui/hooks/useIndicatorState.d.ts +0 -3
  180. package/dist/ui/hooks/useInterval.d.ts +0 -6
  181. package/dist/ui/hooks/useKeyboardShortcuts.d.ts +0 -17
  182. package/dist/ui/hooks/usePeerMessages.d.ts +0 -26
  183. package/dist/ui/hooks/useTerminalSize.d.ts +0 -6
  184. package/dist/ui/hooks/useUnifiedMessages.d.ts +0 -83
  185. package/dist/ui/indicator-state.d.ts +0 -46
  186. package/dist/ui/markdown/highlight.d.ts +0 -8
  187. package/dist/ui/markdown/index.d.ts +0 -16
  188. package/dist/ui/markdown/tokenizer.d.ts +0 -17
  189. package/dist/ui/render-item.d.ts +0 -70
  190. package/dist/ui/screens/REPL.d.ts +0 -288
  191. package/dist/ui/status-line.d.ts +0 -32
  192. package/dist/ui/theme/index.d.ts +0 -8
  193. package/dist/ui/theme/themes/claude-dark-daltonized.d.ts +0 -2
  194. package/dist/ui/theme/themes/claude-dark.d.ts +0 -2
  195. package/dist/ui/theme/themes/claude-light-daltonized.d.ts +0 -2
  196. package/dist/ui/theme/themes/claude-light.d.ts +0 -2
  197. package/dist/ui/theme/themes/dark-accessible.d.ts +0 -2
  198. package/dist/ui/theme/themes/dark.d.ts +0 -2
  199. package/dist/ui/theme/themes/light-accessible.d.ts +0 -2
  200. package/dist/ui/theme/themes/light.d.ts +0 -2
  201. package/dist/ui/theme/types.d.ts +0 -51
  202. package/dist/ui/theme.d.ts +0 -51
  203. package/dist/ui/to-render-items.d.ts +0 -7
  204. package/dist/ui/tools/AgentTool/index.d.ts +0 -8
  205. package/dist/ui/tools/ArchitectTool/index.d.ts +0 -10
  206. package/dist/ui/tools/AskUserTool/index.d.ts +0 -19
  207. package/dist/ui/tools/BashTool/BashToolResultMessage.d.ts +0 -13
  208. package/dist/ui/tools/BashTool/OutputLine.d.ts +0 -6
  209. package/dist/ui/tools/BashTool/index.d.ts +0 -8
  210. package/dist/ui/tools/BrowseTool/index.d.ts +0 -20
  211. package/dist/ui/tools/BrowserTool/index.d.ts +0 -25
  212. package/dist/ui/tools/CbmTool/index.d.ts +0 -81
  213. package/dist/ui/tools/CheckDelegationTool/index.d.ts +0 -23
  214. package/dist/ui/tools/CheckMessagesTool/index.d.ts +0 -8
  215. package/dist/ui/tools/CreateQuipTool/index.d.ts +0 -10
  216. package/dist/ui/tools/CreateSkillTool/index.d.ts +0 -13
  217. package/dist/ui/tools/CreateToolTool/index.d.ts +0 -10
  218. package/dist/ui/tools/DelegateRemoteTool/index.d.ts +0 -22
  219. package/dist/ui/tools/DeployTool/index.d.ts +0 -24
  220. package/dist/ui/tools/FffTool/index.d.ts +0 -17
  221. package/dist/ui/tools/FileEditTool/index.d.ts +0 -10
  222. package/dist/ui/tools/FileReadTool/index.d.ts +0 -10
  223. package/dist/ui/tools/FileWriteTool/index.d.ts +0 -10
  224. package/dist/ui/tools/FrgTool/index.d.ts +0 -17
  225. package/dist/ui/tools/GetThreadTool/index.d.ts +0 -10
  226. package/dist/ui/tools/GlobTool/index.d.ts +0 -11
  227. package/dist/ui/tools/GrepTool/index.d.ts +0 -12
  228. package/dist/ui/tools/HatchArionTool/index.d.ts +0 -20
  229. package/dist/ui/tools/LearnSkillTool/index.d.ts +0 -13
  230. package/dist/ui/tools/LearnTool/index.d.ts +0 -15
  231. package/dist/ui/tools/LearnToolTool/index.d.ts +0 -14
  232. package/dist/ui/tools/ListClientsTool/index.d.ts +0 -10
  233. package/dist/ui/tools/LspTool/index.d.ts +0 -11
  234. package/dist/ui/tools/MCPTool/index.d.ts +0 -11
  235. package/dist/ui/tools/ManageNetworkTool/index.d.ts +0 -28
  236. package/dist/ui/tools/MemoryReadTool/index.d.ts +0 -8
  237. package/dist/ui/tools/MemoryWriteTool/index.d.ts +0 -6
  238. package/dist/ui/tools/NotebookEditTool/index.d.ts +0 -19
  239. package/dist/ui/tools/NotebookReadTool/index.d.ts +0 -12
  240. package/dist/ui/tools/OutlookReadTool/index.d.ts +0 -10
  241. package/dist/ui/tools/OutlookReplyTool/index.d.ts +0 -10
  242. package/dist/ui/tools/OutlookSendTool/index.d.ts +0 -10
  243. package/dist/ui/tools/PauseDelegationTool/index.d.ts +0 -20
  244. package/dist/ui/tools/ProbeTool/index.d.ts +0 -26
  245. package/dist/ui/tools/ProcessTool/index.d.ts +0 -29
  246. package/dist/ui/tools/QuestListTool/index.d.ts +0 -24
  247. package/dist/ui/tools/QuestReportTool/index.d.ts +0 -27
  248. package/dist/ui/tools/QuestUpdateTool/index.d.ts +0 -24
  249. package/dist/ui/tools/QuipCommentTool/index.d.ts +0 -23
  250. package/dist/ui/tools/QuipReadTool/index.d.ts +0 -26
  251. package/dist/ui/tools/RestArionTool/index.d.ts +0 -19
  252. package/dist/ui/tools/RestartTool/index.d.ts +0 -20
  253. package/dist/ui/tools/ResumeDelegationTool/index.d.ts +0 -21
  254. package/dist/ui/tools/RetireArionTool/index.d.ts +0 -19
  255. package/dist/ui/tools/RgTool/index.d.ts +0 -44
  256. package/dist/ui/tools/SearchKnowledgeTool/index.d.ts +0 -31
  257. package/dist/ui/tools/SearchMessagesTool/index.d.ts +0 -10
  258. package/dist/ui/tools/SelfDiagnoseTool/index.d.ts +0 -11
  259. package/dist/ui/tools/SendMessageTool/index.d.ts +0 -8
  260. package/dist/ui/tools/SerenaTool/index.d.ts +0 -18
  261. package/dist/ui/tools/SessionHistoryTool/index.d.ts +0 -32
  262. package/dist/ui/tools/SgTool/index.d.ts +0 -8
  263. package/dist/ui/tools/SlackReactTool/index.d.ts +0 -10
  264. package/dist/ui/tools/SlackReadTool/index.d.ts +0 -10
  265. package/dist/ui/tools/SlackSendTool/index.d.ts +0 -10
  266. package/dist/ui/tools/SpawnWorkerTool/index.d.ts +0 -18
  267. package/dist/ui/tools/StickerRequestTool/index.d.ts +0 -6
  268. package/dist/ui/tools/ThinkTool/index.d.ts +0 -8
  269. package/dist/ui/tools/UgTool/index.d.ts +0 -47
  270. package/dist/ui/tools/UseSkillTool/index.d.ts +0 -17
  271. package/dist/ui/tools/WakeArionTool/index.d.ts +0 -19
  272. package/dist/ui/tools/WebFetchTool/index.d.ts +0 -20
  273. package/dist/ui/tools/WebSearchTool/index.d.ts +0 -21
  274. package/dist/ui/tools/lsTool/index.d.ts +0 -12
  275. package/dist/ui/tools/registry.d.ts +0 -15
  276. package/dist/ui/tools/tool-renderer.d.ts +0 -24
  277. package/dist/ui/tools/truncation.d.ts +0 -6
  278. package/dist/ui/types/anthropic.d.ts +0 -19
  279. package/dist/ui/types/index.d.ts +0 -3
  280. package/dist/ui/types/message.d.ts +0 -19
  281. package/dist/ui/types/tool.d.ts +0 -17
  282. package/dist/ui/utils/array.d.ts +0 -1
  283. package/dist/ui/utils/cursor.d.ts +0 -28
  284. package/dist/ui/utils/diff.d.ts +0 -24
  285. package/dist/ui/utils/format.d.ts +0 -3
  286. package/dist/ui/utils/fuzzy.d.ts +0 -11
  287. package/dist/ui/utils/index.d.ts +0 -9
  288. package/dist/ui/utils/keys.d.ts +0 -6
  289. package/dist/ui/utils/patch.d.ts +0 -8
  290. package/dist/ui/utils/risk.d.ts +0 -14
  291. package/dist/ui/utils/terminal-image.d.ts +0 -18
  292. package/dist/ui/utils/validation.d.ts +0 -8
  293. package/dist/ui/verb-pairs.d.ts +0 -20
  294. package/dist/ui.d.ts +0 -70
@@ -1,14 +0,0 @@
1
- export interface Command {
2
- name: string;
3
- description: string;
4
- args?: string[];
5
- requiresArgs?: boolean;
6
- }
7
- export interface CommandPaletteProps {
8
- commands: Command[];
9
- initialFilter?: string;
10
- onSelect: (command: Command) => void;
11
- onHandOffInput?: (value: string) => void;
12
- onCancel: () => void;
13
- }
14
- export declare function CommandPalette({ commands, initialFilter, onSelect, onHandOffInput, onCancel, }: CommandPaletteProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- export interface InviteShareOverlayProps {
2
- inviteToken: string;
3
- inviteLabel?: string;
4
- expiresAt?: string | null;
5
- onClose: () => void;
6
- }
7
- export declare function InviteShareOverlay({ inviteToken, inviteLabel, expiresAt, onClose, }: InviteShareOverlayProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export interface JoinInviteOverlayProps {
2
- onSubmit: (inviteToken: string) => void;
3
- onCancel: () => void;
4
- error?: string | null;
5
- }
6
- export declare function JoinInviteOverlay({ onSubmit, onCancel, error }: JoinInviteOverlayProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- export interface BrowsableMemory {
3
- id: string;
4
- content: string;
5
- network?: string;
6
- createdAt: Date;
7
- importance?: number;
8
- }
9
- export type MemoryBrowserMode = "browse" | "forget";
10
- export interface MemoryBrowserProps {
11
- memories: BrowsableMemory[];
12
- mode?: MemoryBrowserMode;
13
- isLoading?: boolean;
14
- onSelect?: (memory: BrowsableMemory) => void;
15
- onCancel: () => void;
16
- }
17
- export declare function MemoryBrowser({ memories, mode, isLoading, onSelect, onCancel, }: MemoryBrowserProps): React.ReactElement;
@@ -1,20 +0,0 @@
1
- import React from "react";
2
- export interface MessageSelectorEntry {
3
- /** Index of this message in the full messages array */
4
- index: number;
5
- /** The role of the message */
6
- role: "user" | "assistant" | "system" | "tool";
7
- /** Preview text content */
8
- text: string;
9
- /** Arion name (for assistant messages) */
10
- arion?: string;
11
- /** Timestamp */
12
- createdAt?: string;
13
- }
14
- interface MessageSelectorProps {
15
- messages: MessageSelectorEntry[];
16
- onSelect: (messageIndex: number, messageText: string) => void;
17
- onCancel: () => void;
18
- }
19
- export declare function MessageSelector({ messages, onSelect, onCancel, }: MessageSelectorProps): React.ReactElement;
20
- export {};
@@ -1,17 +0,0 @@
1
- import type { EffortLevel } from "@aria-cli/types";
2
- export interface ModelOption {
3
- name: string;
4
- value?: string;
5
- description: string;
6
- provider?: string;
7
- isCurrent?: boolean;
8
- knownModel?: boolean;
9
- }
10
- export interface ModelSelectorProps {
11
- models: ModelOption[];
12
- initialFilter?: string;
13
- effortLevel?: EffortLevel;
14
- onSelect: (model: ModelOption, effort: EffortLevel) => void;
15
- onCancel: () => void;
16
- }
17
- export declare function ModelSelector({ models, initialFilter, effortLevel, onSelect, onCancel, }: ModelSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /**
2
- * Pair request overlay — shown when another ARIA instance requests connection.
3
- *
4
- * Displays the requester's name and signing key fingerprint for visual
5
- * verification, with Accept/Reject buttons.
6
- */
7
- import type { NodeId, PrincipalFingerprint } from "@aria-cli/tools";
8
- export interface PairRequestInfo {
9
- id: string;
10
- nodeId: NodeId;
11
- displayNameSnapshot?: string;
12
- principalFingerprint: PrincipalFingerprint;
13
- }
14
- export interface PairRequestOverlayProps {
15
- request: PairRequestInfo;
16
- onAccept: () => void;
17
- onReject: () => void;
18
- }
19
- export declare function PairRequestOverlay({ request, onAccept, onReject }: PairRequestOverlayProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- /**
2
- * AirDrop-style peer selection overlay.
3
- *
4
- * Shows nearby ARIA instances discovered via mDNS/Bonjour.
5
- * User navigates with arrow keys, presses Enter to initiate pairing.
6
- */
7
- import type { SelectablePeer } from "../../../selectable-peer.js";
8
- export interface PeerSelectorProps {
9
- peers: SelectablePeer[];
10
- sameHomeClientsAvailable?: boolean;
11
- onSelect: (peer: SelectablePeer) => void;
12
- onCancel: () => void;
13
- }
14
- export declare function PeerSelector({ peers, sameHomeClientsAvailable, onSelect, onCancel, }: PeerSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import type { SessionSummary } from "../../../history/index.js";
3
- interface SessionSelectorProps {
4
- sessions: SessionSummary[];
5
- onSelect: (sessionId: string) => void;
6
- onCancel: () => void;
7
- onSearch: (query: string) => void;
8
- onPageChange?: (direction: "next" | "prev") => void;
9
- }
10
- export declare function SessionSelector({ sessions, onSelect, onCancel, onSearch, onPageChange, }: SessionSelectorProps): React.ReactElement;
11
- export {};
@@ -1,22 +0,0 @@
1
- import type { ThemeName } from "../../theme/index.js";
2
- /** Result passed to the onSelect callback — only the fields the consumer needs. */
3
- export interface ThemeSelection {
4
- name: ThemeName;
5
- displayName: string;
6
- }
7
- /** Internal representation with overlay-specific display fields. */
8
- interface ThemeOption {
9
- name: ThemeName;
10
- displayName: string;
11
- isCurrent: boolean;
12
- isLight: boolean;
13
- category: "standard" | "accessible" | "claude";
14
- }
15
- export interface ThemeSelectorProps {
16
- onSelect: (theme: ThemeSelection) => void;
17
- onCancel: () => void;
18
- }
19
- /** Classify a theme into a UI category. Exported for testing. */
20
- export declare function categorize(name: ThemeName): ThemeOption["category"];
21
- export declare function ThemeSelector({ onSelect, onCancel }: ThemeSelectorProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,13 +0,0 @@
1
- export { CommandPalette, type Command, type CommandPaletteProps } from "./CommandPalette.js";
2
- export { ArionSelector, type ArionOption, type ArionSelectorProps, type ArionStatusFilter, } from "./ArionSelector.js";
3
- export { ModelSelector, type ModelOption, type ModelSelectorProps } from "./ModelSelector.js";
4
- export { MemoryBrowser, type BrowsableMemory, type MemoryBrowserMode, type MemoryBrowserProps, } from "./MemoryBrowser.js";
5
- export { SessionSelector } from "./SessionSelector.js";
6
- export { MessageSelector } from "./MessageSelector.js";
7
- export type { MessageSelectorEntry } from "./MessageSelector.js";
8
- export { ThemeSelector, type ThemeSelection, type ThemeSelectorProps, categorize as categorizeTheme, } from "./ThemeSelector.js";
9
- export { PeerSelector, type PeerSelectorProps } from "./PeerSelector.js";
10
- export { ClientSelector, type ClientSelectorProps } from "./ClientSelector.js";
11
- export { InviteShareOverlay, type InviteShareOverlayProps } from "./InviteShareOverlay.js";
12
- export { JoinInviteOverlay, type JoinInviteOverlayProps } from "./JoinInviteOverlay.js";
13
- export { PairRequestOverlay, type PairRequestInfo, type PairRequestOverlayProps, } from "./PairRequestOverlay.js";
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { type ToolUseConfirm } from "../PermissionRequest.js";
3
- type Props = {
4
- toolUseConfirm: ToolUseConfirm;
5
- onDone(): void;
6
- verbose: boolean;
7
- };
8
- export declare function BashPermissionRequest({ toolUseConfirm, onDone }: Props): React.ReactNode;
9
- export {};
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { type ToolUseConfirm } from "./PermissionRequest.js";
3
- type Props = {
4
- toolUseConfirm: ToolUseConfirm;
5
- onDone(): void;
6
- verbose: boolean;
7
- };
8
- export declare function FallbackPermissionRequest({ toolUseConfirm, onDone, verbose, }: Props): React.ReactNode;
9
- export {};
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { type ToolUseConfirm } from "../PermissionRequest.js";
3
- type Props = {
4
- toolUseConfirm: ToolUseConfirm;
5
- onDone(): void;
6
- verbose: boolean;
7
- };
8
- export declare function FileEditPermissionRequest({ toolUseConfirm, onDone, verbose, }: Props): React.ReactNode;
9
- export {};
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- type Props = {
3
- file_path: string;
4
- new_string: string;
5
- old_string: string;
6
- verbose: boolean;
7
- useBorder?: boolean;
8
- width: number;
9
- };
10
- export declare function FileEditToolDiff({ file_path, new_string, old_string, verbose, useBorder, width, }: Props): React.ReactNode;
11
- export {};
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { type ToolUseConfirm } from "../PermissionRequest.js";
3
- type Props = {
4
- toolUseConfirm: ToolUseConfirm;
5
- onDone(): void;
6
- verbose: boolean;
7
- };
8
- export declare function FileWritePermissionRequest({ toolUseConfirm, onDone, verbose, }: Props): React.ReactNode;
9
- export {};
@@ -1,9 +0,0 @@
1
- import * as React from "react";
2
- type Props = {
3
- file_path: string;
4
- content: string;
5
- verbose: boolean;
6
- width: number;
7
- };
8
- export declare function FileWriteToolDiff({ file_path, content, verbose, width }: Props): React.ReactNode;
9
- export {};
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { type PermissionRequestProps } from "../PermissionRequest.js";
3
- declare let writePermissionGranted: boolean;
4
- export { writePermissionGranted };
5
- export declare function FilesystemPermissionRequest({ toolUseConfirm, onDone, verbose, }: PermissionRequestProps): React.ReactNode;
@@ -1,52 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * Minimal tool interface matching the shape expected by permission components.
4
- */
5
- export interface ToolLike {
6
- name: string;
7
- userFacingName(input: Record<string, unknown>): string;
8
- renderToolUseMessage(input: Record<string, unknown>, options: {
9
- verbose: boolean;
10
- }): React.ReactNode;
11
- isReadOnly(): boolean;
12
- inputSchema: {
13
- parse(input: unknown): Record<string, unknown>;
14
- };
15
- }
16
- export type CommandPrefixResult = {
17
- commandPrefix: string | null;
18
- commandInjectionDetected: false;
19
- } | {
20
- commandInjectionDetected: true;
21
- };
22
- export type CommandSubcommandPrefixResult = CommandPrefixResult & {
23
- subcommandPrefixes: Map<string, CommandPrefixResult>;
24
- };
25
- /**
26
- * Minimal message type.
27
- */
28
- export interface AssistantMessageLike {
29
- message: {
30
- id: string;
31
- };
32
- }
33
- export type PermissionRequestProps = {
34
- toolUseConfirm: ToolUseConfirm;
35
- onDone(): void;
36
- verbose: boolean;
37
- };
38
- export declare function toolUseConfirmGetPrefix(toolUseConfirm: ToolUseConfirm): string | null;
39
- export type ToolUseConfirm = {
40
- assistantMessage: AssistantMessageLike;
41
- tool: ToolLike;
42
- description: string;
43
- input: {
44
- [key: string]: unknown;
45
- };
46
- commandPrefix: CommandSubcommandPrefixResult | null;
47
- riskScore: number | null;
48
- onAbort(): void;
49
- onAllow(type: "permanent" | "temporary"): void;
50
- onReject(): void;
51
- };
52
- export declare function PermissionRequest({ toolUseConfirm, onDone, verbose, }: PermissionRequestProps): React.ReactNode;
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- export type RiskScoreCategory = "low" | "moderate" | "high";
3
- export declare function categoryForRiskScore(riskScore: number): RiskScoreCategory;
4
- export declare function textColorForRiskScore(riskScore: number | null): string;
5
- export declare function PermissionRiskScore({ riskScore }: {
6
- riskScore: number;
7
- }): React.ReactNode;
8
- type Props = {
9
- title: string;
10
- riskScore: number | null;
11
- };
12
- export declare function PermissionRequestTitle({ title, riskScore }: Props): React.ReactNode;
13
- export {};
@@ -1,10 +0,0 @@
1
- import { type ToolUseConfirm } from "./PermissionRequest.js";
2
- export type UnaryEvent = {
3
- completion_type: string;
4
- language_name: string | Promise<string>;
5
- };
6
- /**
7
- * Stub for usePermissionRequestLogging.
8
- * Analytics removed.
9
- */
10
- export declare function usePermissionRequestLogging(_toolUseConfirm: ToolUseConfirm, _unaryEvent: UnaryEvent): void;
@@ -1,10 +0,0 @@
1
- import { type ToolUseConfirm } from "./PermissionRequest.js";
2
- import { type Option } from "../CustomSelect/option-map.js";
3
- import { type OptionSubtree } from "../CustomSelect/select.js";
4
- /**
5
- * Generates options for the tool use confirmation dialog
6
- */
7
- export declare function toolUseOptions({ toolUseConfirm, command, }: {
8
- toolUseConfirm: ToolUseConfirm;
9
- command: string;
10
- }): (Option | OptionSubtree)[];
@@ -1,6 +0,0 @@
1
- import { type ToolUseConfirm } from "./PermissionRequest.js";
2
- /**
3
- * Stub for logUnaryPermissionEvent.
4
- * Analytics removed.
5
- */
6
- export declare function logUnaryPermissionEvent(_completion_type: string, _toolUseConfirm: ToolUseConfirm, _event: "accept" | "reject"): void;
@@ -1,58 +0,0 @@
1
- type WrappedText = string[];
2
- type Position = {
3
- line: number;
4
- column: number;
5
- };
6
- export declare class Cursor {
7
- readonly measuredText: MeasuredText;
8
- readonly selection: number;
9
- readonly offset: number;
10
- constructor(measuredText: MeasuredText, offset?: number, selection?: number);
11
- static fromText(text: string, columns: number, offset?: number, selection?: number): Cursor;
12
- render(cursorChar: string, mask: string, invert: (text: string) => string): string;
13
- left(): Cursor;
14
- right(): Cursor;
15
- up(): Cursor;
16
- down(): Cursor;
17
- startOfLine(): Cursor;
18
- endOfLine(): Cursor;
19
- nextWord(): Cursor;
20
- prevWord(): Cursor;
21
- private modifyText;
22
- insert(insertString: string): Cursor;
23
- del(): Cursor;
24
- backspace(): Cursor;
25
- deleteToLineStart(): Cursor;
26
- deleteToLineEnd(): Cursor;
27
- deleteWordBefore(): Cursor;
28
- deleteWordAfter(): Cursor;
29
- private isOverWordChar;
30
- equals(other: Cursor): boolean;
31
- private isAtStart;
32
- private isAtEnd;
33
- get text(): string;
34
- private get columns();
35
- private getPosition;
36
- private getOffset;
37
- }
38
- export declare class MeasuredText {
39
- readonly text: string;
40
- readonly columns: number;
41
- private wrappedLines;
42
- constructor(text: string, columns: number);
43
- /**
44
- * Walk the text character-by-character using stringWidth for visual widths,
45
- * computing line breaks directly. This replaces the old wrapAnsi+indexOf
46
- * approach which crashed when wrapAnsi transformed text (tab expansion,
47
- * ANSI re-sequencing, wide-char padding) making indexOf fail.
48
- */
49
- private measureWrappedText;
50
- getWrappedText(): WrappedText;
51
- private getLine;
52
- getOffsetFromPosition(position: Position): number;
53
- getLineLength(line: number): number;
54
- getPositionFromOffset(offset: number): Position;
55
- get lineCount(): number;
56
- equals(other: MeasuredText): boolean;
57
- }
58
- export {};
@@ -1,98 +0,0 @@
1
- export type Props = {
2
- /**
3
- * Optional callback for handling history navigation on up arrow at start of input
4
- */
5
- readonly onHistoryUp?: () => void;
6
- /**
7
- * Optional callback for handling history navigation on down arrow at end of input
8
- */
9
- readonly onHistoryDown?: () => void;
10
- /**
11
- * Text to display when `value` is empty.
12
- */
13
- readonly placeholder?: string;
14
- /**
15
- * Allow multi-line input via line ending with backslash (default: `true`)
16
- */
17
- readonly multiline?: boolean;
18
- /**
19
- * Listen to user's input. Useful in case there are multiple input components
20
- * at the same time and input must be "routed" to a specific component.
21
- */
22
- readonly focus?: boolean;
23
- /**
24
- * Replace all chars and mask the value. Useful for password inputs.
25
- */
26
- readonly mask?: string;
27
- /**
28
- * Whether to show cursor and allow navigation inside text input with arrow keys.
29
- */
30
- readonly showCursor?: boolean;
31
- /**
32
- * Highlight pasted text
33
- */
34
- readonly highlightPastedText?: boolean;
35
- /**
36
- * Value to display in a text input.
37
- */
38
- readonly value: string;
39
- /**
40
- * Function to call when value updates.
41
- */
42
- readonly onChange: (value: string) => void;
43
- /**
44
- * Function to call when `Enter` is pressed, where first argument is a value of the input.
45
- */
46
- readonly onSubmit?: (value: string) => void;
47
- /**
48
- * Function to call when Ctrl+C is pressed to exit.
49
- */
50
- readonly onExit?: () => void;
51
- /**
52
- * Optional callback to show exit message
53
- */
54
- readonly onExitMessage?: (show: boolean, key?: string) => void;
55
- /**
56
- * Optional callback to show custom message
57
- */
58
- readonly onMessage?: (show: boolean, message?: string) => void;
59
- /**
60
- * Optional callback to reset history position
61
- */
62
- readonly onHistoryReset?: () => void;
63
- /**
64
- * Optional callback on Esc×2 for message-edit overlay.
65
- * Return true to consume the event (skip default clear).
66
- */
67
- readonly onDoubleEscape?: () => boolean;
68
- /**
69
- * Number of columns to wrap text at (defaults to process.stdout.columns ?? 80)
70
- */
71
- readonly columns?: number;
72
- /**
73
- * Optional callback when an image is pasted
74
- */
75
- readonly onImagePaste?: (base64Image: string) => void;
76
- /**
77
- * Optional callback when a large text (over 800 chars) is pasted
78
- */
79
- readonly onPaste?: (text: string) => void;
80
- /**
81
- * Whether the input is dimmed and non-interactive
82
- */
83
- readonly isDimmed?: boolean;
84
- /**
85
- * Whether to disable cursor movement for up/down arrow keys
86
- */
87
- readonly disableCursorMovementForUpDownKeys?: boolean;
88
- /**
89
- * Current cursor offset. When omitted, TextInput manages cursor state internally.
90
- */
91
- readonly cursorOffset?: number;
92
- /**
93
- * Callback to set the offset of the cursor.
94
- * When omitted, TextInput manages cursor state internally.
95
- */
96
- onChangeCursorOffset?: (offset: number) => void;
97
- };
98
- export default function TextInput({ value: originalValue, placeholder, focus, mask, multiline, highlightPastedText, showCursor, onChange, onSubmit, onExit, onHistoryUp, onHistoryDown, onExitMessage, onMessage, onHistoryReset, onDoubleEscape, columns: columnsProp, onImagePaste, onPaste, isDimmed, disableCursorMovementForUpDownKeys, cursorOffset: cursorOffsetProp, onChangeCursorOffset: onChangeCursorOffsetProp, }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const CLIPBOARD_ERROR_MESSAGE = "No image found in clipboard. Use Cmd + Ctrl + Shift + 4 to copy a screenshot to clipboard.";
2
- export declare function getImageFromClipboard(): string | null;
@@ -1,6 +0,0 @@
1
- export { default as TextInput } from "./TextInput.js";
2
- export type { Props as TextInputProps } from "./TextInput.js";
3
- export { Cursor, MeasuredText } from "./Cursor.js";
4
- export { useTextInput } from "./useTextInput.js";
5
- export { useDoublePress } from "./useDoublePress.js";
6
- export { getImageFromClipboard } from "./imagePaste.js";
@@ -1,2 +0,0 @@
1
- export declare const DOUBLE_PRESS_TIMEOUT_MS = 2000;
2
- export declare function useDoublePress(setPending: (pending: boolean) => void, onDoublePress: () => void, onFirstPress?: () => void): () => void;
@@ -1,34 +0,0 @@
1
- import { type Key } from "ink";
2
- type UseTextInputProps = {
3
- value: string;
4
- onChange: (value: string) => void;
5
- onSubmit?: (value: string) => void;
6
- onExit?: () => void;
7
- onExitMessage?: (show: boolean, key?: string) => void;
8
- onMessage?: (show: boolean, message?: string) => void;
9
- onHistoryUp?: () => void;
10
- onHistoryDown?: () => void;
11
- onHistoryReset?: () => void;
12
- /** Called on Esc×2. Return true to consume the event (skip default clear). */
13
- onDoubleEscape?: () => boolean;
14
- focus?: boolean;
15
- mask?: string;
16
- multiline?: boolean;
17
- cursorChar: string;
18
- highlightPastedText?: boolean;
19
- invert: (text: string) => string;
20
- themeText: (text: string) => string;
21
- columns: number;
22
- onImagePaste?: (base64Image: string) => void;
23
- disableCursorMovementForUpDownKeys?: boolean;
24
- externalOffset: number;
25
- onOffsetChange: (offset: number) => void;
26
- };
27
- type UseTextInputResult = {
28
- renderedValue: string;
29
- onInput: (input: string, key: Key) => void;
30
- offset: number;
31
- setOffset: (offset: number) => void;
32
- };
33
- export declare function useTextInput({ value: originalValue, onChange, onSubmit, onExit, onExitMessage, onMessage, onHistoryUp, onHistoryDown, onHistoryReset, onDoubleEscape, mask, multiline, cursorChar, invert, columns, onImagePaste, disableCursorMovementForUpDownKeys, externalOffset, onOffsetChange, }: UseTextInputProps): UseTextInputResult;
34
- export {};
@@ -1,28 +0,0 @@
1
- export type ToolStatusType = "pending" | "running" | "complete" | "error";
2
- export interface ToolUsage {
3
- inputTokens: number;
4
- outputTokens: number;
5
- totalTokens: number;
6
- estimatedCost: number;
7
- }
8
- export interface ToolExecutionInfo {
9
- id: string;
10
- name: string;
11
- status: ToolStatusType;
12
- startTime?: number;
13
- endTime?: number;
14
- durationMs?: number;
15
- /** Per-tool token usage delta from runner (Task 0) */
16
- usage?: ToolUsage;
17
- result?: string;
18
- /** Raw structured output payload for expanded view */
19
- resultData?: unknown;
20
- error?: string;
21
- args?: Record<string, unknown>;
22
- }
23
- export interface BashOutput {
24
- stdout: string;
25
- stderr: string;
26
- exitCode: number;
27
- }
28
- export declare function isBashOutput(data: unknown): data is BashOutput;
@@ -1 +0,0 @@
1
- export declare const BLACK_CIRCLE: string;
@@ -1 +0,0 @@
1
- export { BLACK_CIRCLE } from "./figures.js";
@@ -1,62 +0,0 @@
1
- /**
2
- * The three display density levels.
3
- * - minimal: End users — streaming text and final response only
4
- * - standard: Agent developers — + tool calls, costs, thinking (default)
5
- * - debug: Framework developers — + traces, pipeline timing, expanded outputs
6
- */
7
- export type DisplayMode = "minimal" | "standard" | "debug";
8
- /**
9
- * How tool executions are presented in the UI.
10
- * - hidden: Tools not shown at all (minimal mode)
11
- * - collapsed: One-line ⎿ summary only (compact)
12
- * - standard: Per-tool components — diffs, syntax highlighting, stdout/stderr (default)
13
- * - expanded: Per-tool components + debug extras (Input section, traces, timing)
14
- */
15
- export type ToolOutputMode = "hidden" | "collapsed" | "standard" | "expanded";
16
- /**
17
- * Full display configuration derived from a mode preset,
18
- * optionally overridden by config file / CLI flags / hotkey toggles.
19
- */
20
- export interface DisplayConfig {
21
- /** Render thinking blocks inline in conversation */
22
- showThinking: boolean;
23
- /** Show cost in status bar */
24
- showCosts: boolean;
25
- /** Show tool input arguments in tool execution display */
26
- showToolArgs: boolean;
27
- /** How tool executions are presented */
28
- toolOutput: ToolOutputMode;
29
- /** Render trace waterfall */
30
- showTraces: boolean;
31
- /** Render pipeline timing breakdown */
32
- showPipelineTiming: boolean;
33
- /** Render the status bar at the bottom */
34
- showStatusBar: boolean;
35
- }
36
- /**
37
- * Mode presets — the base defaults for each display mode.
38
- * Each key controls UI presentation density, not feature availability.
39
- */
40
- export declare const MODE_PRESETS: Record<DisplayMode, DisplayConfig>;
41
- /**
42
- * All display modes in cycle order. Used by the 'd' hotkey.
43
- */
44
- export declare const DISPLAY_MODE_CYCLE: readonly DisplayMode[];
45
- /**
46
- * Get the next display mode in the cycle.
47
- * minimal -> standard -> debug -> minimal
48
- */
49
- export declare function nextDisplayMode(current: DisplayMode): DisplayMode;
50
- /**
51
- * Get the DisplayConfig for a given mode.
52
- */
53
- export declare function getDisplayConfig(mode: DisplayMode): DisplayConfig;
54
- /**
55
- * Compute explicit overrides relative to a mode preset.
56
- * Useful for preserving layered config/hotkey choices across mode cycling.
57
- */
58
- export declare function deriveDisplayOverrides(mode: DisplayMode, config: DisplayConfig): Partial<DisplayConfig>;
59
- /**
60
- * Apply explicit overrides on top of a mode preset.
61
- */
62
- export declare function resolveDisplayConfig(mode: DisplayMode, overrides?: Partial<DisplayConfig>): DisplayConfig;