@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,85 +0,0 @@
1
- /**
2
- * TurnAccumulator — ingests RunEvent stream events and accumulates them into
3
- * ConversationMessage[] for batch persistence and rendering.
4
- *
5
- * Key behaviors:
6
- * - text_delta → single text block on assistant message
7
- * - thinking_start/delta/end → thinking block with durationMs, verb, content
8
- * - tool_start → tool_use block (deduped via seenToolIds Set)
9
- * - tool_args_delta → progressive JSON accumulation on tool_use arguments
10
- * - tool_result → SEPARATE ConversationMessage with role="tool"
11
- * - handoff_start/result → handoff blocks
12
- * - messages_snapshot → stored for getSnapshotMessages()
13
- * - turn_complete → returns "flush" signal
14
- * - Unknown event types → returns "continue" (default case)
15
- * - No error case — event loop throws before accumulator sees errors
16
- */
17
- import type { RunEvent } from "@aria-cli/aria";
18
- import type { RuntimeRunEvent } from "@aria-cli/tools";
19
- import type { Message } from "@aria-cli/types";
20
- import type { ConversationMessage, ArionRef } from "./conversation-message.js";
21
- /**
22
- * "continue" = data ingested, accumulator state updated (caller need not act).
23
- * "flush" = turn boundary — caller must call flush() and commit messages.
24
- *
25
- * Render scheduling is NOT the accumulator's concern. The consumer (ink-repl)
26
- * polls via a fixed-interval render scheduler, making per-event-type throttle
27
- * logic unnecessary and eliminating the bug class of "new event type without
28
- * throttle causes excessive re-renders."
29
- */
30
- export type AccumulatorSignal = "continue" | "flush";
31
- export declare class TurnAccumulator {
32
- private textParts;
33
- private thinkingBlocks;
34
- private toolUseBlocks;
35
- private handoffBlocks;
36
- private toolResultMessages;
37
- private seenToolIds;
38
- private toolArgsAccumulator;
39
- private thinkingInProgress;
40
- private pendingThinkingContent;
41
- private arion;
42
- private verb;
43
- private tokenUsage;
44
- private snapshotMessages;
45
- private previewAssistantId;
46
- ingest(event: RunEvent | RuntimeRunEvent): AccumulatorSignal;
47
- /**
48
- * Flush all accumulated content into ConversationMessage[].
49
- * Works anytime (including mid-accumulation for abort scenarios).
50
- * Resets all state after flush.
51
- */
52
- flush(): ConversationMessage[];
53
- /**
54
- * Returns a read-only view of current accumulated state as ConversationMessage[].
55
- * Does NOT reset state (unlike flush). Used for intermediate rendering.
56
- * Includes in-progress thinking content and progressive text content.
57
- */
58
- snapshot(): ConversationMessage[];
59
- /** Get snapshot messages from the most recent messages_snapshot event */
60
- getSnapshotMessages(): Message[] | undefined;
61
- /** Whether there is any pending content that would produce messages on flush */
62
- hasPendingContent(): boolean;
63
- /** Set the arion reference — propagated to all flushed messages */
64
- setArion(arion: ArionRef): void;
65
- /** Set the composing verb — used in thinking blocks */
66
- setVerb(verb: string): void;
67
- /** Accumulate token usage — attached to assistant message on flush */
68
- setTokenUsage(usage: {
69
- input: number;
70
- output: number;
71
- }): void;
72
- /**
73
- * Parse a partial JSON object string by trying progressive closings.
74
- * Used in snapshot() to extract displayable args from in-progress tool arg streaming.
75
- *
76
- * Strategy (ordered by information preserved):
77
- * 1. Complete parse (fast path — JSON already valid)
78
- * 2. Close object with '}' (last value complete, just needs brace)
79
- * 3. Close string + object with '"}' (last string value incomplete)
80
- * 4. Scan backward for commas — truncate to last complete pair + close
81
- *
82
- * Returns undefined when no useful partial extraction is possible.
83
- */
84
- static tryParsePartialArgs(raw: string): Record<string, unknown> | undefined;
85
- }
package/dist/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /**
2
- * @aria/cli - Simple chat interface for ARIA
3
- */
4
- export { SessionHistory } from "./history/SessionHistory.js";
5
- export { startInkRepl, startInkRepl as startRepl } from "./ink-repl.js";
6
- export { program, createArionsCommand, createAuthCommand } from "./commands/index.js";