@leanandmean/coding-agent 0.74.1-scramjet.6 → 0.74.1-scramjet.7
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/dist/core/agent-session.d.ts +14 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +30 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +7 -0
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +2 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +29 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ import type { Agent, AgentEvent, AgentMessage, AgentState, AgentTool, ThinkingLe
|
|
|
16
16
|
import type { ImageContent, Model, TextContent } from "@leanandmean/ai";
|
|
17
17
|
import { type BashResult } from "./bash-executor.js";
|
|
18
18
|
import { type CompactionResult } from "./compaction/index.js";
|
|
19
|
-
import { type ContextUsage, type DeliverAs, type DispatchUserInputOptions, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type ReplacedSessionContext, type SendMessageDeliverAs, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
|
|
19
|
+
import { type ContextUsage, type DeliverAs, type DispatchUserInputOptions, type ExtensionCommandContextActions, type ExtensionErrorListener, ExtensionRunner, type ExtensionUIContext, type InputSource, type InvokeHarnessToolOptions, type ReplacedSessionContext, type SendMessageDeliverAs, type SessionStartEvent, type ShutdownHandler, type ToolDefinition, type ToolInfo } from "./extensions/index.js";
|
|
20
20
|
import type { CustomMessage } from "./messages.js";
|
|
21
21
|
import type { ModelRegistry } from "./model-registry.js";
|
|
22
22
|
import { type PromptTemplate } from "./prompt-templates.js";
|
|
@@ -285,6 +285,19 @@ export declare class AgentSession {
|
|
|
285
285
|
* Changes take effect on the next agent turn.
|
|
286
286
|
*/
|
|
287
287
|
setActiveToolsByName(toolNames: string[]): void;
|
|
288
|
+
/**
|
|
289
|
+
* Execute a registered tool as a harness-originated call (not requested by the model).
|
|
290
|
+
*
|
|
291
|
+
* Resolves the wrapped tool from the full registry — including `"harness-only"` tools that are
|
|
292
|
+
* never provider-visible — so its `execute` still receives the extension context and its
|
|
293
|
+
* `tool_call`/`tool_result` hooks still fire. Delegates to {@link Agent.runHarnessTool}, which
|
|
294
|
+
* runs the call through the real prepare/execute/finalize pipeline: identical live
|
|
295
|
+
* `tool_execution_*`/message events, persisted session entries, and extension hooks, but no
|
|
296
|
+
* run/turn framing. The idle-vs-mid-run branch lives in `runHarnessTool` (keyed on the agent's
|
|
297
|
+
* active run, which tracks `isStreaming`): idle calls execute immediately, mid-run calls queue
|
|
298
|
+
* and drain before the next intra-run LLM call.
|
|
299
|
+
*/
|
|
300
|
+
invokeHarnessTool(name: string, args: unknown, options?: InvokeHarnessToolOptions): Promise<void>;
|
|
288
301
|
/** Whether compaction or branch summarization is currently running */
|
|
289
302
|
get isCompacting(): boolean;
|
|
290
303
|
/** All messages including custom types like BashExecutionMessage */
|