erosolar-cli 2.1.167 → 2.1.169
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 +1 -1
- package/dist/contracts/agent-schemas.json +0 -5
- package/dist/core/agent.d.ts +3 -18
- package/dist/core/agent.d.ts.map +1 -1
- package/dist/core/agent.js +4 -515
- package/dist/core/agent.js.map +1 -1
- package/dist/core/preferences.js +2 -2
- package/dist/core/preferences.js.map +1 -1
- package/dist/runtime/agentController.d.ts.map +1 -1
- package/dist/runtime/agentController.js +3 -6
- package/dist/runtime/agentController.js.map +1 -1
- package/dist/runtime/agentSession.d.ts +0 -2
- package/dist/runtime/agentSession.d.ts.map +1 -1
- package/dist/runtime/agentSession.js +0 -1
- package/dist/runtime/agentSession.js.map +1 -1
- package/dist/shell/interactiveShell.d.ts +0 -9
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +21 -174
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/ui/PromptController.d.ts +0 -3
- package/dist/ui/PromptController.d.ts.map +1 -1
- package/dist/ui/PromptController.js +0 -3
- package/dist/ui/PromptController.js.map +1 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +0 -2
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +1 -13
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/dist/ui/shortcutsHelp.d.ts.map +1 -1
- package/dist/ui/shortcutsHelp.js +0 -1
- package/dist/ui/shortcutsHelp.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Unified command-line agent with a single, persistent chat box pinned to the bott
|
|
|
4
4
|
|
|
5
5
|
## Highlights
|
|
6
6
|
- One chat box, always on the bottom during the entire session (idle or streaming).
|
|
7
|
-
- Shared control bar for status,
|
|
7
|
+
- Shared control bar for status, verification/build toggles, and context gauge.
|
|
8
8
|
- Works with OpenAI, Anthropic, Google, xAI, DeepSeek, and local Ollama using the same UI contract.
|
|
9
9
|
- Multi-agent Task tool with built-in general-purpose, explore (read-only), and plan subagents; add custom agents from `.claude/agents`, `~/.claude/agents`, or `--agents` JSON.
|
|
10
10
|
|
|
@@ -470,11 +470,6 @@
|
|
|
470
470
|
"description": "Manage local/air-gapped LLM servers (Ollama, LM Studio, etc.)",
|
|
471
471
|
"category": "configuration"
|
|
472
472
|
},
|
|
473
|
-
{
|
|
474
|
-
"command": "/autocontinue",
|
|
475
|
-
"description": "Toggle auto-continue mode (prompts model when it expresses intent but doesn't act)",
|
|
476
|
-
"category": "configuration"
|
|
477
|
-
},
|
|
478
473
|
{
|
|
479
474
|
"command": "/rewind",
|
|
480
475
|
"description": "Rewind to a previous checkpoint (restore code, conversation, or both)",
|
package/dist/core/agent.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export interface AgentCallbacks {
|
|
|
12
12
|
onContextRecovery?(attempt: number, maxAttempts: number, message: string): void;
|
|
13
13
|
/** Called when agent continues after context recovery - useful for updating UI */
|
|
14
14
|
onContinueAfterRecovery?(): void;
|
|
15
|
-
/** Called when auto-continuing because model expressed intent but didn't act */
|
|
16
|
-
onAutoContinue?(attempt: number, maxAttempts: number, message: string): void;
|
|
17
15
|
/** Called when multi-line paste is detected - displays summary instead of full content */
|
|
18
16
|
onMultilinePaste?(summary: string, metadata: PasteSummary): void;
|
|
19
17
|
/** Called when verification should be triggered for a final response */
|
|
@@ -24,12 +22,11 @@ export interface AgentCallbacks {
|
|
|
24
22
|
onToolExecution?(toolName: string, isStart: boolean, args?: Record<string, unknown>): void;
|
|
25
23
|
/**
|
|
26
24
|
* Called IMMEDIATELY when a user request is received, BEFORE any provider call.
|
|
27
|
-
*
|
|
28
|
-
* @param requestPreview - A short preview of the user's request
|
|
25
|
+
* Useful for updating UI activity without showing filler messages.
|
|
29
26
|
*/
|
|
30
27
|
onRequestReceived?(requestPreview: string): void;
|
|
31
28
|
/**
|
|
32
|
-
* Called BEFORE the first tool call in a turn, allowing UI to
|
|
29
|
+
* Called BEFORE the first tool call in a turn, allowing UI to update activity state.
|
|
33
30
|
* @param toolNames - Names of tools about to be called
|
|
34
31
|
* @param hasModelNarration - Whether the model provided narration/thinking before tools
|
|
35
32
|
* @returns Optional acknowledgement text to display (if model didn't provide narration)
|
|
@@ -60,7 +57,7 @@ export interface AssistantMessageMetadata {
|
|
|
60
57
|
contextStats?: Record<string, unknown> | null;
|
|
61
58
|
/** True if content was already displayed via streaming chunks */
|
|
62
59
|
wasStreamed?: boolean;
|
|
63
|
-
/** Hint to UI to suppress rendering of
|
|
60
|
+
/** Hint to UI to suppress rendering of internal/system filler messages */
|
|
64
61
|
suppressDisplay?: boolean;
|
|
65
62
|
}
|
|
66
63
|
interface AgentOptions {
|
|
@@ -75,8 +72,6 @@ interface AgentOptions {
|
|
|
75
72
|
modelId?: string;
|
|
76
73
|
/** Working directory for verification */
|
|
77
74
|
workingDirectory?: string;
|
|
78
|
-
/** Enable auto-continuation when model expresses intent but doesn't act (default: false) */
|
|
79
|
-
autoContinue?: boolean;
|
|
80
75
|
}
|
|
81
76
|
export declare class AgentRuntime {
|
|
82
77
|
private readonly messages;
|
|
@@ -90,7 +85,6 @@ export declare class AgentRuntime {
|
|
|
90
85
|
private readonly modelId;
|
|
91
86
|
private readonly workingDirectory;
|
|
92
87
|
private cancellationRequested;
|
|
93
|
-
private _autoContinueEnabled;
|
|
94
88
|
private lastToolCallSignature;
|
|
95
89
|
private repeatedToolCallCount;
|
|
96
90
|
private static readonly MAX_REPEATED_TOOL_CALLS;
|
|
@@ -99,7 +93,6 @@ export declare class AgentRuntime {
|
|
|
99
93
|
private static readonly BEHAVIORAL_LOOP_THRESHOLD;
|
|
100
94
|
private toolResultCache;
|
|
101
95
|
private static readonly TOOL_CACHE_MAX_SIZE;
|
|
102
|
-
private firstToolCallFired;
|
|
103
96
|
constructor(options: AgentOptions);
|
|
104
97
|
/**
|
|
105
98
|
* Request cancellation of the current operation.
|
|
@@ -114,14 +107,6 @@ export declare class AgentRuntime {
|
|
|
114
107
|
* Check if the agent is currently processing a request.
|
|
115
108
|
*/
|
|
116
109
|
isRunning(): boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Check if auto-continuation is enabled.
|
|
119
|
-
*/
|
|
120
|
-
isAutoContinueEnabled(): boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Enable or disable auto-continuation.
|
|
123
|
-
*/
|
|
124
|
-
setAutoContinue(enabled: boolean): void;
|
|
125
110
|
send(text: string, useStreaming?: boolean): Promise<string>;
|
|
126
111
|
private processConversation;
|
|
127
112
|
private processConversationStreaming;
|
package/dist/core/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/core/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGhB,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/core/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGhB,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAkF/F,MAAM,WAAW,cAAc;IAC7B,kBAAkB,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,wBAAwB,GAAG,IAAI,CA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