@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.
- package/README.md +32 -46
- package/bin/aria.mjs +5718 -0
- package/package.json +33 -51
- package/bin/aria-dev.js +0 -2
- package/bin/aria.js +0 -14
- package/bin/install-owner-lease.d.ts +0 -8
- package/bin/install-owner-lease.js +0 -1
- package/dist/.aria-build-stamp.json +0 -4
- package/dist/attached-local-control-client.d.ts +0 -90
- package/dist/bootstrap-local-control-client.d.ts +0 -1
- package/dist/capability-aware-method-proxy.d.ts +0 -1
- package/dist/cli-context.d.ts +0 -31
- package/dist/cli-context.js +0 -1
- package/dist/commands/arions.d.ts +0 -14
- package/dist/commands/auth.d.ts +0 -27
- package/dist/commands/daemon.d.ts +0 -31
- package/dist/commands/definitions.d.ts +0 -19
- package/dist/commands/index.d.ts +0 -13
- package/dist/commands/index.js +0 -356
- package/dist/commands/login-handler.d.ts +0 -108
- package/dist/commands/logout-handler.d.ts +0 -24
- package/dist/commands/memory-handlers.d.ts +0 -15
- package/dist/commands/pairing.d.ts +0 -2
- package/dist/commands/peer-message-handler.d.ts +0 -7
- package/dist/commands/runtime-cutover-reset-command.d.ts +0 -2
- package/dist/commands/runtime-cutover-reset.d.ts +0 -26
- package/dist/commands/terminal-setup.d.ts +0 -3
- package/dist/config/aria-config.d.ts +0 -50
- package/dist/config/index.d.ts +0 -4
- package/dist/config/loader.d.ts +0 -17
- package/dist/config.d.ts +0 -53
- package/dist/config.js +0 -1
- package/dist/daemon-info.d.ts +0 -17
- package/dist/ensure-daemon.d.ts +0 -21
- package/dist/ensure-daemon.js +0 -4
- package/dist/event-loop-watchdog.d.ts +0 -31
- package/dist/headless/auth-orchestrator.d.ts +0 -19
- package/dist/headless/auth-service.d.ts +0 -15
- package/dist/headless/bootstrap-fast-path.d.ts +0 -12
- package/dist/headless/call-command.d.ts +0 -8
- package/dist/headless/daemon-service.d.ts +0 -14
- package/dist/headless/hook-actions.d.ts +0 -40
- package/dist/headless/hook-service.d.ts +0 -8
- package/dist/headless/kernel-services.d.ts +0 -8
- package/dist/headless/kernel.d.ts +0 -118
- package/dist/headless/operations/arion.d.ts +0 -3
- package/dist/headless/operations/auth.d.ts +0 -4
- package/dist/headless/operations/client.d.ts +0 -2
- package/dist/headless/operations/config.d.ts +0 -3
- package/dist/headless/operations/daemon.d.ts +0 -3
- package/dist/headless/operations/hook.d.ts +0 -3
- package/dist/headless/operations/index.d.ts +0 -10
- package/dist/headless/operations/memory.d.ts +0 -3
- package/dist/headless/operations/message.d.ts +0 -2
- package/dist/headless/operations/model.d.ts +0 -3
- package/dist/headless/operations/peer.d.ts +0 -2
- package/dist/headless/operations/run.d.ts +0 -3
- package/dist/headless/operations/session.d.ts +0 -74
- package/dist/headless/operations/subscription.d.ts +0 -2
- package/dist/headless/operations/system.d.ts +0 -3
- package/dist/headless/operations/utils.d.ts +0 -5
- package/dist/headless/run-orchestrator.d.ts +0 -38
- package/dist/headless/stdio-server.d.ts +0 -4
- package/dist/history/SessionHistory.d.ts +0 -200
- package/dist/history/conversation-message.d.ts +0 -181
- package/dist/history/index.d.ts +0 -8
- package/dist/history/index.js +0 -321
- package/dist/history/jsonl-replay.d.ts +0 -38
- package/dist/history/repair-tool-pairing.d.ts +0 -14
- package/dist/history/turn-accumulator.d.ts +0 -85
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -503
- package/dist/ink-repl.d.ts +0 -32
- package/dist/ink-repl.js +0 -491
- package/dist/local-control-bootstrap.d.ts +0 -5
- package/dist/local-control-client.d.ts +0 -1
- package/dist/local-control-client.js +0 -4
- package/dist/local-control-error-reporting.d.ts +0 -6
- package/dist/local-control-http-client.d.ts +0 -9
- package/dist/network-security.d.ts +0 -7
- package/dist/networking-server.d.ts +0 -28
- package/dist/peer-identity.d.ts +0 -3
- package/dist/polling-subscription.d.ts +0 -7
- package/dist/relaunch.d.ts +0 -55
- package/dist/release-notes.d.ts +0 -11
- package/dist/repl-cleanup.d.ts +0 -20
- package/dist/repl-cleanup.js +0 -1
- package/dist/selectable-client.d.ts +0 -7
- package/dist/selectable-peer.d.ts +0 -12
- package/dist/session.d.ts +0 -103
- package/dist/session.js +0 -1
- package/dist/slash-commands.d.ts +0 -34
- package/dist/sounds.d.ts +0 -31
- package/dist/ui/App.d.ts +0 -288
- package/dist/ui/components/AnthropicMethodPicker.d.ts +0 -9
- package/dist/ui/components/ArionPrompt.d.ts +0 -8
- package/dist/ui/components/AutocompleteDropdown.d.ts +0 -9
- package/dist/ui/components/AutonomySelector.d.ts +0 -12
- package/dist/ui/components/Banner.d.ts +0 -9
- package/dist/ui/components/ConversationHistory.d.ts +0 -59
- package/dist/ui/components/CopilotDeviceLoginFlow.d.ts +0 -15
- package/dist/ui/components/CopilotSourcePicker.d.ts +0 -13
- package/dist/ui/components/Cost.d.ts +0 -8
- package/dist/ui/components/CustomSelect/option-map.d.ts +0 -15
- package/dist/ui/components/CustomSelect/select-option.d.ts +0 -20
- package/dist/ui/components/CustomSelect/select.d.ts +0 -55
- package/dist/ui/components/CustomSelect/use-select-state.d.ts +0 -99
- package/dist/ui/components/CustomSelect/use-select.d.ts +0 -14
- package/dist/ui/components/ErrorDisplay.d.ts +0 -26
- package/dist/ui/components/FallbackToolUseRejectedMessage.d.ts +0 -2
- package/dist/ui/components/FileEditToolUpdatedMessage.d.ts +0 -9
- package/dist/ui/components/HandoffMarker.d.ts +0 -17
- package/dist/ui/components/HighlightedCode.d.ts +0 -7
- package/dist/ui/components/InputArea.d.ts +0 -17
- package/dist/ui/components/Message.d.ts +0 -16
- package/dist/ui/components/OAuthLoginFlow.d.ts +0 -25
- package/dist/ui/components/OutputTruncation.d.ts +0 -16
- package/dist/ui/components/PermissionPrompt.d.ts +0 -22
- package/dist/ui/components/PipelineTimingPanel.d.ts +0 -13
- package/dist/ui/components/ProviderMethodPicker.d.ts +0 -16
- package/dist/ui/components/ProviderPicker.d.ts +0 -15
- package/dist/ui/components/RenderItemView.d.ts +0 -18
- package/dist/ui/components/Spinner.d.ts +0 -3
- package/dist/ui/components/StatusBar.d.ts +0 -78
- package/dist/ui/components/StreamingIndicator.d.ts +0 -11
- package/dist/ui/components/StructuredDiff.d.ts +0 -20
- package/dist/ui/components/TextInputOverlay.d.ts +0 -9
- package/dist/ui/components/ThinkingBlock.d.ts +0 -53
- package/dist/ui/components/ToolCost.d.ts +0 -8
- package/dist/ui/components/ToolExecution.d.ts +0 -13
- package/dist/ui/components/ToolHeader.d.ts +0 -10
- package/dist/ui/components/ToolRenderLayoutContext.d.ts +0 -10
- package/dist/ui/components/ToolResultWrapper.d.ts +0 -6
- package/dist/ui/components/ToolUseLoader.d.ts +0 -10
- package/dist/ui/components/TraceWaterfall.d.ts +0 -56
- package/dist/ui/components/index.d.ts +0 -29
- package/dist/ui/components/messages/AssistantTextMessage.d.ts +0 -13
- package/dist/ui/components/messages/UserImageMessage.d.ts +0 -8
- package/dist/ui/components/messages/UserTextMessage.d.ts +0 -13
- package/dist/ui/components/overlays/ArionSelector.d.ts +0 -18
- package/dist/ui/components/overlays/ClientSelector.d.ts +0 -7
- package/dist/ui/components/overlays/CommandPalette.d.ts +0 -14
- package/dist/ui/components/overlays/InviteShareOverlay.d.ts +0 -7
- package/dist/ui/components/overlays/JoinInviteOverlay.d.ts +0 -6
- package/dist/ui/components/overlays/MemoryBrowser.d.ts +0 -17
- package/dist/ui/components/overlays/MessageSelector.d.ts +0 -20
- package/dist/ui/components/overlays/ModelSelector.d.ts +0 -17
- package/dist/ui/components/overlays/PairRequestOverlay.d.ts +0 -19
- package/dist/ui/components/overlays/PeerSelector.d.ts +0 -14
- package/dist/ui/components/overlays/SessionSelector.d.ts +0 -11
- package/dist/ui/components/overlays/ThemeSelector.d.ts +0 -22
- package/dist/ui/components/overlays/index.d.ts +0 -13
- package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.d.ts +0 -9
- package/dist/ui/components/permissions/FallbackPermissionRequest.d.ts +0 -9
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.d.ts +0 -9
- package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.d.ts +0 -11
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.d.ts +0 -9
- package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.d.ts +0 -9
- package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.d.ts +0 -5
- package/dist/ui/components/permissions/PermissionRequest.d.ts +0 -52
- package/dist/ui/components/permissions/PermissionRequestTitle.d.ts +0 -13
- package/dist/ui/components/permissions/hooks.d.ts +0 -10
- package/dist/ui/components/permissions/toolUseOptions.d.ts +0 -10
- package/dist/ui/components/permissions/utils.d.ts +0 -6
- package/dist/ui/components/text-input/Cursor.d.ts +0 -58
- package/dist/ui/components/text-input/TextInput.d.ts +0 -98
- package/dist/ui/components/text-input/imagePaste.d.ts +0 -2
- package/dist/ui/components/text-input/index.d.ts +0 -6
- package/dist/ui/components/text-input/useDoublePress.d.ts +0 -2
- package/dist/ui/components/text-input/useTextInput.d.ts +0 -34
- package/dist/ui/components/tool-types.d.ts +0 -28
- package/dist/ui/constants/figures.d.ts +0 -1
- package/dist/ui/constants/index.d.ts +0 -1
- package/dist/ui/display-mode.d.ts +0 -62
- package/dist/ui/display-policy.d.ts +0 -3
- package/dist/ui/hooks/index.d.ts +0 -4
- package/dist/ui/hooks/useCommandAutocomplete.d.ts +0 -28
- package/dist/ui/hooks/useDoublePress.d.ts +0 -13
- package/dist/ui/hooks/useIndicatorState.d.ts +0 -3
- package/dist/ui/hooks/useInterval.d.ts +0 -6
- package/dist/ui/hooks/useKeyboardShortcuts.d.ts +0 -17
- package/dist/ui/hooks/usePeerMessages.d.ts +0 -26
- package/dist/ui/hooks/useTerminalSize.d.ts +0 -6
- package/dist/ui/hooks/useUnifiedMessages.d.ts +0 -83
- package/dist/ui/indicator-state.d.ts +0 -46
- package/dist/ui/markdown/highlight.d.ts +0 -8
- package/dist/ui/markdown/index.d.ts +0 -16
- package/dist/ui/markdown/tokenizer.d.ts +0 -17
- package/dist/ui/render-item.d.ts +0 -70
- package/dist/ui/screens/REPL.d.ts +0 -288
- package/dist/ui/status-line.d.ts +0 -32
- package/dist/ui/theme/index.d.ts +0 -8
- package/dist/ui/theme/themes/claude-dark-daltonized.d.ts +0 -2
- package/dist/ui/theme/themes/claude-dark.d.ts +0 -2
- package/dist/ui/theme/themes/claude-light-daltonized.d.ts +0 -2
- package/dist/ui/theme/themes/claude-light.d.ts +0 -2
- package/dist/ui/theme/themes/dark-accessible.d.ts +0 -2
- package/dist/ui/theme/themes/dark.d.ts +0 -2
- package/dist/ui/theme/themes/light-accessible.d.ts +0 -2
- package/dist/ui/theme/themes/light.d.ts +0 -2
- package/dist/ui/theme/types.d.ts +0 -51
- package/dist/ui/theme.d.ts +0 -51
- package/dist/ui/to-render-items.d.ts +0 -7
- package/dist/ui/tools/AgentTool/index.d.ts +0 -8
- package/dist/ui/tools/ArchitectTool/index.d.ts +0 -10
- package/dist/ui/tools/AskUserTool/index.d.ts +0 -19
- package/dist/ui/tools/BashTool/BashToolResultMessage.d.ts +0 -13
- package/dist/ui/tools/BashTool/OutputLine.d.ts +0 -6
- package/dist/ui/tools/BashTool/index.d.ts +0 -8
- package/dist/ui/tools/BrowseTool/index.d.ts +0 -20
- package/dist/ui/tools/BrowserTool/index.d.ts +0 -25
- package/dist/ui/tools/CbmTool/index.d.ts +0 -81
- package/dist/ui/tools/CheckDelegationTool/index.d.ts +0 -23
- package/dist/ui/tools/CheckMessagesTool/index.d.ts +0 -8
- package/dist/ui/tools/CreateQuipTool/index.d.ts +0 -10
- package/dist/ui/tools/CreateSkillTool/index.d.ts +0 -13
- package/dist/ui/tools/CreateToolTool/index.d.ts +0 -10
- package/dist/ui/tools/DelegateRemoteTool/index.d.ts +0 -22
- package/dist/ui/tools/DeployTool/index.d.ts +0 -24
- package/dist/ui/tools/FffTool/index.d.ts +0 -17
- package/dist/ui/tools/FileEditTool/index.d.ts +0 -10
- package/dist/ui/tools/FileReadTool/index.d.ts +0 -10
- package/dist/ui/tools/FileWriteTool/index.d.ts +0 -10
- package/dist/ui/tools/FrgTool/index.d.ts +0 -17
- package/dist/ui/tools/GetThreadTool/index.d.ts +0 -10
- package/dist/ui/tools/GlobTool/index.d.ts +0 -11
- package/dist/ui/tools/GrepTool/index.d.ts +0 -12
- package/dist/ui/tools/HatchArionTool/index.d.ts +0 -20
- package/dist/ui/tools/LearnSkillTool/index.d.ts +0 -13
- package/dist/ui/tools/LearnTool/index.d.ts +0 -15
- package/dist/ui/tools/LearnToolTool/index.d.ts +0 -14
- package/dist/ui/tools/ListClientsTool/index.d.ts +0 -10
- package/dist/ui/tools/LspTool/index.d.ts +0 -11
- package/dist/ui/tools/MCPTool/index.d.ts +0 -11
- package/dist/ui/tools/ManageNetworkTool/index.d.ts +0 -28
- package/dist/ui/tools/MemoryReadTool/index.d.ts +0 -8
- package/dist/ui/tools/MemoryWriteTool/index.d.ts +0 -6
- package/dist/ui/tools/NotebookEditTool/index.d.ts +0 -19
- package/dist/ui/tools/NotebookReadTool/index.d.ts +0 -12
- package/dist/ui/tools/OutlookReadTool/index.d.ts +0 -10
- package/dist/ui/tools/OutlookReplyTool/index.d.ts +0 -10
- package/dist/ui/tools/OutlookSendTool/index.d.ts +0 -10
- package/dist/ui/tools/PauseDelegationTool/index.d.ts +0 -20
- package/dist/ui/tools/ProbeTool/index.d.ts +0 -26
- package/dist/ui/tools/ProcessTool/index.d.ts +0 -29
- package/dist/ui/tools/QuestListTool/index.d.ts +0 -24
- package/dist/ui/tools/QuestReportTool/index.d.ts +0 -27
- package/dist/ui/tools/QuestUpdateTool/index.d.ts +0 -24
- package/dist/ui/tools/QuipCommentTool/index.d.ts +0 -23
- package/dist/ui/tools/QuipReadTool/index.d.ts +0 -26
- package/dist/ui/tools/RestArionTool/index.d.ts +0 -19
- package/dist/ui/tools/RestartTool/index.d.ts +0 -20
- package/dist/ui/tools/ResumeDelegationTool/index.d.ts +0 -21
- package/dist/ui/tools/RetireArionTool/index.d.ts +0 -19
- package/dist/ui/tools/RgTool/index.d.ts +0 -44
- package/dist/ui/tools/SearchKnowledgeTool/index.d.ts +0 -31
- package/dist/ui/tools/SearchMessagesTool/index.d.ts +0 -10
- package/dist/ui/tools/SelfDiagnoseTool/index.d.ts +0 -11
- package/dist/ui/tools/SendMessageTool/index.d.ts +0 -8
- package/dist/ui/tools/SerenaTool/index.d.ts +0 -18
- package/dist/ui/tools/SessionHistoryTool/index.d.ts +0 -32
- package/dist/ui/tools/SgTool/index.d.ts +0 -8
- package/dist/ui/tools/SlackReactTool/index.d.ts +0 -10
- package/dist/ui/tools/SlackReadTool/index.d.ts +0 -10
- package/dist/ui/tools/SlackSendTool/index.d.ts +0 -10
- package/dist/ui/tools/SpawnWorkerTool/index.d.ts +0 -18
- package/dist/ui/tools/StickerRequestTool/index.d.ts +0 -6
- package/dist/ui/tools/ThinkTool/index.d.ts +0 -8
- package/dist/ui/tools/UgTool/index.d.ts +0 -47
- package/dist/ui/tools/UseSkillTool/index.d.ts +0 -17
- package/dist/ui/tools/WakeArionTool/index.d.ts +0 -19
- package/dist/ui/tools/WebFetchTool/index.d.ts +0 -20
- package/dist/ui/tools/WebSearchTool/index.d.ts +0 -21
- package/dist/ui/tools/lsTool/index.d.ts +0 -12
- package/dist/ui/tools/registry.d.ts +0 -15
- package/dist/ui/tools/tool-renderer.d.ts +0 -24
- package/dist/ui/tools/truncation.d.ts +0 -6
- package/dist/ui/types/anthropic.d.ts +0 -19
- package/dist/ui/types/index.d.ts +0 -3
- package/dist/ui/types/message.d.ts +0 -19
- package/dist/ui/types/tool.d.ts +0 -17
- package/dist/ui/utils/array.d.ts +0 -1
- package/dist/ui/utils/cursor.d.ts +0 -28
- package/dist/ui/utils/diff.d.ts +0 -24
- package/dist/ui/utils/format.d.ts +0 -3
- package/dist/ui/utils/fuzzy.d.ts +0 -11
- package/dist/ui/utils/index.d.ts +0 -9
- package/dist/ui/utils/keys.d.ts +0 -6
- package/dist/ui/utils/patch.d.ts +0 -8
- package/dist/ui/utils/risk.d.ts +0 -14
- package/dist/ui/utils/terminal-image.d.ts +0 -18
- package/dist/ui/utils/validation.d.ts +0 -8
- package/dist/ui/verb-pairs.d.ts +0 -20
- 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";
|