aws-runtime-bridge 1.9.153 → 1.9.168
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/CHANGELOG.md +766 -0
- package/dist/adapter/AcodeSdkAdapter.d.ts +57 -6
- package/dist/adapter/AcodeSdkAdapter.js +4 -8
- package/dist/adapter/ClaudeSdkAdapter.d.ts +2 -0
- package/dist/adapter/ClaudeSdkAdapter.js +3 -3
- package/dist/adapter/CodexSdkAdapter.d.ts +2 -0
- package/dist/adapter/CodexSdkAdapter.js +3 -3
- package/dist/adapter/OpencodeSdkAdapter.d.ts +2 -0
- package/dist/adapter/OpencodeSdkAdapter.js +3 -3
- package/dist/adapter/prompts.d.ts +1 -1
- package/dist/adapter/prompts.js +1 -1
- package/dist/adapter/types.d.ts +41 -20
- package/dist/adapter/types.js +1 -1
- package/dist/browser/frame-encode.d.ts +25 -0
- package/dist/browser/frame-encode.js +2 -0
- package/dist/browser/screencast-differ.d.ts +2 -3
- package/dist/browser/screencast-differ.js +1 -1
- package/dist/browser/screencast-manager.js +1 -1
- package/dist/browser/types.d.ts +5 -1
- package/dist/browser/types.js +1 -1
- package/dist/desktop/desktop-mcp-client.js +2 -2
- package/dist/routes/acode-todos.js +1 -1
- package/dist/routes/background-tasks.js +3 -3
- package/dist/routes/capabilities.js +1 -1
- package/dist/routes/dashboard.d.ts +2 -0
- package/dist/routes/dashboard.js +4 -4
- package/dist/routes/git.js +22 -22
- package/dist/routes/instance.js +1 -1
- package/dist/routes/launch.js +10 -10
- package/dist/routes/ltr.js +1 -1
- package/dist/routes/mcp-extra.js +2 -2
- package/dist/routes/mcp.d.ts +4 -0
- package/dist/routes/mcp.js +1 -1
- package/dist/routes/plugins.js +1 -1
- package/dist/routes/pty.d.ts +11 -3
- package/dist/routes/pty.js +3 -3
- package/dist/routes/runtime-binding.js +1 -1
- package/dist/routes/sessions.d.ts +18 -74
- package/dist/routes/sessions.js +1 -1
- package/dist/routes/skills.js +1 -1
- package/dist/routes/sub-agents.js +8 -8
- package/dist/routes/terminal.d.ts +24 -2
- package/dist/routes/terminal.js +34 -36
- package/dist/services/agent-process-manager.js +1 -1
- package/dist/services/agent-pty-manager.js +4 -4
- package/dist/services/aws-client-agent-mcp.js +2 -2
- package/dist/services/capability-config.d.ts +8 -0
- package/dist/services/capability-config.js +2 -2
- package/dist/services/desktop-mcp-manager.d.ts +3 -1
- package/dist/services/desktop-mcp-manager.js +1 -1
- package/dist/services/instance-ai-config-service.js +1 -1
- package/dist/services/instance-features.d.ts +26 -2
- package/dist/services/instance-features.js +1 -1
- package/dist/services/instance-init-service.js +1 -1
- package/dist/services/launch-manager.d.ts +9 -1
- package/dist/services/launch-manager.js +6 -6
- package/dist/services/launch-metrics.d.ts +1 -1
- package/dist/services/launch-metrics.js +4 -3
- package/dist/services/mcp-deploy.d.ts +4 -0
- package/dist/services/mcp-env-injector.d.ts +12 -0
- package/dist/services/mcp-env-injector.js +2 -0
- package/dist/services/mcp-launch-binding-queue.d.ts +8 -0
- package/dist/services/mcp-launch-binding-queue.js +1 -1
- package/dist/services/orphan-monitor.js +1 -1
- package/dist/services/panel-env.d.ts +6 -2
- package/dist/services/panel-env.js +1 -1
- package/dist/services/plugin-manager.js +9 -9
- package/dist/services/process-detector.d.ts +23 -3
- package/dist/services/process-detector.js +13 -13
- package/dist/services/runtime-resources-snapshot.d.ts +3 -0
- package/dist/services/runtime-resources-snapshot.js +3 -0
- package/dist/services/session-output.d.ts +13 -0
- package/dist/services/session-output.js +4 -4
- package/dist/services/tunnel-client.js +1 -1
- package/dist/services/workspace-files.js +1 -1
- package/dist/services/workspace-watch.js +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/utils/env-safety.d.ts +15 -0
- package/dist/utils/env-safety.js +2 -0
- package/dist/utils/lifecycle-log.d.ts +2 -0
- package/dist/utils/lifecycle-log.js +3 -0
- package/dist/utils/mcp-utils.js +1 -1
- package/package/acode/dist/ask-user-question-tool.js +1 -1
- package/package/acode/dist/await-complete-tool.js +1 -1
- package/package/acode/dist/background-command-manager.js +4 -4
- package/package/acode/dist/background-command-tools.js +1 -1
- package/package/acode/dist/built-in-file-tools.d.ts +31 -2
- package/package/acode/dist/built-in-file-tools.js +2 -2
- package/package/acode/dist/built-in-symbols-tool.js +1 -1
- package/package/acode/dist/builtins/shellCommandPreparation.d.ts +2 -0
- package/package/acode/dist/builtins/shellCommandPreparation.js +2 -2
- package/package/acode/dist/compaction.d.ts +10 -0
- package/package/acode/dist/compaction.js +6 -6
- package/package/acode/dist/context-overflow.d.ts +19 -0
- package/package/acode/dist/context-overflow.js +2 -0
- package/package/acode/dist/grammars/grammars/tree-sitter-lua.wasm +0 -0
- package/package/acode/dist/index.d.ts +4 -1
- package/package/acode/dist/index.js +1 -1
- package/package/acode/dist/mcpToolNames.d.ts +4 -0
- package/package/acode/dist/mcpToolNames.js +1 -1
- package/package/acode/dist/parsers/ast-cache.d.ts +12 -1
- package/package/acode/dist/parsers/ast-cache.js +1 -1
- package/package/acode/dist/parsers/language-queries.js +1 -1
- package/package/acode/dist/parsers/symbol-extractor.js +2 -2
- package/package/acode/dist/parsers/tree-sitter-loader.d.ts +1 -1
- package/package/acode/dist/parsers/tree-sitter-loader.js +1 -1
- package/package/acode/dist/plugin-types.d.ts +5 -0
- package/package/acode/dist/plugin-types.js +1 -0
- package/package/acode/dist/read-file-state.d.ts +48 -0
- package/package/acode/dist/read-file-state.js +2 -0
- package/package/acode/dist/runtime-environment.d.ts +2 -0
- package/package/acode/dist/runtime-environment.js +3 -2
- package/package/acode/dist/runtime.d.ts +124 -10
- package/package/acode/dist/runtime.js +27 -23
- package/package/acode/dist/skill-tool.js +3 -3
- package/package/acode/dist/sub-agent-manager.js +1 -1
- package/package/acode/dist/sub-agent-tools.js +5 -5
- package/package/acode/dist/todo-tool.js +3 -3
- package/package/acode/dist/tool-allocation.js +1 -1
- package/package/acode/dist/tool-concurrency/index.d.ts +5 -0
- package/package/acode/dist/tool-concurrency/index.js +2 -0
- package/package/acode/dist/tool-concurrency/observability.d.ts +46 -0
- package/package/acode/dist/tool-concurrency/observability.js +3 -0
- package/package/acode/dist/tool-concurrency/resource-lock.d.ts +25 -0
- package/package/acode/dist/tool-concurrency/resource-lock.js +2 -0
- package/package/acode/dist/tool-concurrency/scheduler.d.ts +30 -0
- package/package/acode/dist/tool-concurrency/scheduler.js +2 -0
- package/package/acode/dist/tool-concurrency/types.d.ts +80 -0
- package/package/acode/dist/tool-concurrency/types.js +2 -0
- package/package/acode/dist/tool-group-manager.d.ts +128 -0
- package/package/acode/dist/tool-group-manager.js +18 -0
- package/package/acode/dist/types.d.ts +20 -2
- package/package/acode/package.json +3 -3
- package/package/aws-client-agent-mcp/README.md +1 -0
- package/package/aws-client-agent-mcp/dist/agent-client.d.ts +20 -32
- package/package/aws-client-agent-mcp/dist/agent-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/http-client.d.ts +10 -0
- package/package/aws-client-agent-mcp/dist/http-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/logger.d.ts +2 -1
- package/package/aws-client-agent-mcp/dist/logger.js +2 -2
- package/package/aws-client-agent-mcp/dist/mcp-server.d.ts +65 -10
- package/package/aws-client-agent-mcp/dist/mcp-server.js +30 -30
- package/package/aws-client-agent-mcp/dist/mcp-tools.d.ts +42 -7
- package/package/aws-client-agent-mcp/dist/mcp-tools.js +196 -21
- package/package/aws-client-agent-mcp/dist/memory-store.d.ts +2 -0
- package/package/aws-client-agent-mcp/dist/memory-store.js +3 -3
- package/package/aws-client-agent-mcp/dist/message-buffer.js +1 -1
- package/package/aws-client-agent-mcp/dist/office/office-equation.d.ts +5 -0
- package/package/aws-client-agent-mcp/dist/office/office-equation.js +2 -0
- package/package/aws-client-agent-mcp/dist/office/office-image.d.ts +12 -0
- package/package/aws-client-agent-mcp/dist/office/office-image.js +2 -0
- package/package/aws-client-agent-mcp/dist/office/office-workspace.d.ts +40 -0
- package/package/aws-client-agent-mcp/dist/office/office-workspace.js +2 -0
- package/package/aws-client-agent-mcp/dist/status-reporter.js +1 -1
- package/package/aws-client-agent-mcp/dist/tool-groups.d.ts +4 -0
- package/package/aws-client-agent-mcp/dist/tool-groups.js +2 -2
- package/package/aws-client-agent-mcp/dist/types.d.ts +56 -3
- package/package/aws-client-agent-mcp/dist/websocket-client.js +1 -1
- package/package/aws-client-agent-mcp/package.json +2 -1
- package/package.json +1 -1
- package/package/acode/dist/capability-prompt.d.ts +0 -16
- package/package/acode/dist/capability-prompt.js +0 -3
- package/package/acode/dist/plugin-tools.d.ts +0 -14
- package/package/acode/dist/plugin-tools.js +0 -9
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface ReadFileEntry {
|
|
4
|
+
|
|
5
|
+
mtimeMs: number;
|
|
6
|
+
sizeBytes: number;
|
|
7
|
+
|
|
8
|
+
revisionId: string;
|
|
9
|
+
|
|
10
|
+
content: string | null;
|
|
11
|
+
|
|
12
|
+
isPartialView: boolean;
|
|
13
|
+
|
|
14
|
+
readAt: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface FileRevisionStat {
|
|
18
|
+
mtimeMs: number;
|
|
19
|
+
size: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface StaleFileGuardDeps {
|
|
23
|
+
tracker: ReadFileStateTracker;
|
|
24
|
+
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const STALE_FILE_WRITE_REASON = "File has been modified since read, either by the user or by a linter. Read it again before attempting to write it.";
|
|
28
|
+
|
|
29
|
+
export declare function buildRevisionId(mtimeMs: number, sizeBytes: number): string;
|
|
30
|
+
|
|
31
|
+
export declare function toStateKey(absPath: string): string;
|
|
32
|
+
|
|
33
|
+
export declare function createReadFileEntry(stat: FileRevisionStat, content: string | null, isPartialView: boolean): ReadFileEntry;
|
|
34
|
+
|
|
35
|
+
export declare class ReadFileStateTracker {
|
|
36
|
+
private readonly entries;
|
|
37
|
+
record(pathKey: string, entry: ReadFileEntry): void;
|
|
38
|
+
get(pathKey: string): ReadFileEntry | undefined;
|
|
39
|
+
clear(): void;
|
|
40
|
+
}
|
|
41
|
+
export type CheckFileFreshResult = {
|
|
42
|
+
ok: true;
|
|
43
|
+
} | {
|
|
44
|
+
ok: false;
|
|
45
|
+
reason: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export declare function checkFileFreshForWrite(tracker: ReadFileStateTracker, pathKey: string, currentStat: FileRevisionStat, currentContent?: string | null): CheckFileFreshResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import c from"node:path";const a="File has been modified since read, either by the user or by a linter. Read it again before attempting to write it.";function o(t,e){return`mtime:${Math.trunc(t)}:size:${e}`}function d(t){const e=c.resolve(t);return process.platform==="win32"?e.toLowerCase():e}function l(t,e,r){const i=Math.trunc(t.mtimeMs);return{mtimeMs:i,sizeBytes:t.size,revisionId:o(i,t.size),content:r?null:e,isPartialView:r,readAt:Date.now()}}class h{constructor(){this.entries=new Map}record(e,r){this.entries.set(e,r)}get(e){return this.entries.get(e)}clear(){this.entries.clear()}}function f(t,e,r,i){const n=t.get(e);if(!n)return{ok:!0};const s=o(r.mtimeMs,r.size);return n.mtimeMs===Math.trunc(r.mtimeMs)&&n.sizeBytes===r.size&&n.revisionId===s?{ok:!0}:n.content!=null&&n.content===i?{ok:!0}:{ok:!1,reason:a}}export{h as ReadFileStateTracker,a as STALE_FILE_WRITE_REASON,o as buildRevisionId,f as checkFileFreshForWrite,l as createReadFileEntry,d as toStateKey};
|
|
2
|
+
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type ShellExecutable } from "./builtins/shellCommandPreparation.js";
|
|
2
2
|
|
|
3
3
|
export declare function buildRuntimeEnvironmentPrompt(platform?: NodeJS.Platform, release?: string, shell?: ShellExecutable): string;
|
|
4
|
+
|
|
5
|
+
export declare function buildResumeContextBlock(snapshot: string): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
`)}
|
|
1
|
+
import l from"node:os";import r from"node:path";import{shellExecutable as m}from"./builtins/shellCommandPreparation.js";function c(e=process.platform,n=l.release(),i=m()){const s=e==="win32"?"Windows":e==="darwin"?"macOS":e==="linux"?"Linux":e,o=r.basename(i.command).toLowerCase(),t=e==="win32"?`Shell: ${o} (Windows) \u2014 commands run in a Windows shell, not a POSIX shell; Unix-only commands (rm, grep, sed, ...) may be unavailable, prefer Windows equivalents (rd, findstr, ...) or the built-in file tools.`:`Shell: ${o} \u2014 commands run in a POSIX shell.`;return["[Runtime Environment]",`Platform: ${s} (${e}, release ${n})`,t].join(`
|
|
2
|
+
`)}function h(e){const n=e.trim();return n?["[Resume Context]","\u4EE5\u4E0B\u5185\u5BB9\u53D6\u81EA\u4F60\u4E0A\u4E00\u6B21\u8FD0\u884C\u5230\u8BE5\u5B9E\u4F8B\u4F11\u7720\u4E3A\u6B62\u7684\u8FDB\u5EA6\u5FEB\u7167\uFF08\u7531\u7CFB\u7EDF\u5728\u4F11\u7720\u65F6\u81EA\u52A8\u4FDD\u5B58\uFF09\u3002","\u5B83\u4E0D\u662F\u65B0\u7684\u7528\u6237\u6D88\u606F\uFF0C\u4E5F\u4E0D\u662F\u65B0\u7684\u4EFB\u52A1\u6307\u4EE4\uFF0C\u800C\u662F\u4F60\u81EA\u5DF1\u7684\u8BB0\u5FC6\u63A5\u7EED\u70B9\u3002","","\u63A5\u7EED\u89C4\u5219\uFF1A","1. \u4E0A\u8FF0\u5FEB\u7167\u91CC\u5DF2\u7ECF\u5B8C\u6210\u7684\u5DE5\u4F5C\u4E0D\u8981\u91CD\u505A\uFF0C\u5DF2\u786E\u8BA4\u7684\u7ED3\u8BBA\u76F4\u63A5\u6CBF\u7528\u3002","2. \u5FEB\u7167\u4E2D\u6807\u6CE8\u4E3A\u5F85\u5904\u7406/\u8FDB\u884C\u4E2D\u7684\u4E8B\u9879\uFF0C\u662F\u4F60\u8981\u7EE7\u7EED\u63A8\u8FDB\u7684\u76EE\u6807\u3002","3. \u82E5\u5FEB\u7167\u4FE1\u606F\u4E0D\u8DB3\u4EE5\u5224\u65AD\u4E0B\u4E00\u6B65\uFF0C\u5148\u8BFB\u53D6\u76F8\u5173\u6587\u4EF6\u6216\u8C03\u7528 poll_message \u83B7\u53D6\u6700\u65B0\u6D88\u606F\uFF0C\u518D\u884C\u52A8\u3002","","--- \u8FDB\u5EA6\u5FEB\u7167\u5F00\u59CB ---",n,"--- \u8FDB\u5EA6\u5FEB\u7167\u7ED3\u675F ---"].join(`
|
|
3
|
+
`):""}export{h as buildResumeContextBlock,c as buildRuntimeEnvironmentPrompt};
|
|
3
4
|
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { EventEmitter } from "node:events";
|
|
2
2
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
3
|
import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
4
|
-
import { type JsonObject, type ToolPermissionPolicy } from "./built-in-file-tools.js";
|
|
5
|
-
import type { ACodeRuntimeConfig } from "./types.js";
|
|
4
|
+
import { type ACodeBuiltInTool, type EditFailureSnapshot, type JsonObject, type ToolPermissionPolicy } from "./built-in-file-tools.js";
|
|
5
|
+
import type { ACodeMcpServerSpec, ACodeRuntimeConfig } from "./types.js";
|
|
6
6
|
export interface ACodeMcpConnection {
|
|
7
7
|
serverName: string;
|
|
8
8
|
client: Client;
|
|
9
9
|
transport: Transport;
|
|
10
10
|
tools: ACodeMcpTool[];
|
|
11
|
+
|
|
12
|
+
instructions?: string;
|
|
13
|
+
|
|
14
|
+
spec?: ACodeMcpServerSpec;
|
|
11
15
|
}
|
|
12
16
|
interface ACodeMcpTool {
|
|
13
17
|
kind: "mcp";
|
|
@@ -17,6 +21,52 @@ interface ACodeMcpTool {
|
|
|
17
21
|
description?: string;
|
|
18
22
|
inputSchema: JsonObject;
|
|
19
23
|
}
|
|
24
|
+
type ACodeExposedTool = ACodeMcpTool | ACodeBuiltInTool;
|
|
25
|
+
interface ChatTextContentPart {
|
|
26
|
+
type: "text";
|
|
27
|
+
text: string;
|
|
28
|
+
}
|
|
29
|
+
interface ChatImageContentPart {
|
|
30
|
+
type: "image_url";
|
|
31
|
+
image_url: {
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
type ChatContentPart = ChatTextContentPart | ChatImageContentPart;
|
|
36
|
+
interface ChatMessage {
|
|
37
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
38
|
+
content: string | ChatContentPart[] | null;
|
|
39
|
+
tool_call_id?: string;
|
|
40
|
+
tool_calls?: ChatToolCall[];
|
|
41
|
+
}
|
|
42
|
+
interface ChatToolCall {
|
|
43
|
+
id: string;
|
|
44
|
+
type: "function";
|
|
45
|
+
function: {
|
|
46
|
+
name: string;
|
|
47
|
+
arguments: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ACodeSubmitOptions {
|
|
52
|
+
|
|
53
|
+
resume?: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare const TOOL_GROUP_MANIFEST_PREFIX = "ACODE_TOOL_GROUPS_V1:";
|
|
57
|
+
|
|
58
|
+
export declare function parseToolGroupManifest(instructions: string | undefined): Array<{
|
|
59
|
+
key: string;
|
|
60
|
+
label: string;
|
|
61
|
+
toolNames: string[];
|
|
62
|
+
}>;
|
|
63
|
+
|
|
64
|
+
export declare function humanReadableInstructions(instructions: string | undefined): string | undefined;
|
|
65
|
+
|
|
66
|
+
export declare function hasExplicitRequestBodyByteCap(): boolean;
|
|
67
|
+
|
|
68
|
+
export declare function resolveMaxRequestBodyBytes(contextLimit: number): number;
|
|
69
|
+
export declare function toToolErrorResultText(tool: ACodeExposedTool, error: unknown, snapshot?: EditFailureSnapshot): string;
|
|
20
70
|
export declare class ACodeRuntime extends EventEmitter {
|
|
21
71
|
private readonly config;
|
|
22
72
|
private readonly hookBus;
|
|
@@ -26,9 +76,15 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
26
76
|
|
|
27
77
|
private exposedToolsInitialized;
|
|
28
78
|
|
|
79
|
+
private recoveredToolNames;
|
|
80
|
+
|
|
81
|
+
private readonly readFileStateTracker;
|
|
82
|
+
|
|
29
83
|
private readonly pendingMemorySubAgents;
|
|
30
84
|
|
|
31
85
|
private readonly memoryDelegateCooldownUntil;
|
|
86
|
+
|
|
87
|
+
private toolGroupManager;
|
|
32
88
|
private submitQueue;
|
|
33
89
|
|
|
34
90
|
private activeTurnToken;
|
|
@@ -38,12 +94,29 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
38
94
|
private abortForceSettleTimer;
|
|
39
95
|
private activeTurn;
|
|
40
96
|
|
|
97
|
+
private activeBlockingToolCalls;
|
|
98
|
+
|
|
99
|
+
hasActiveBlockingToolCall(): boolean;
|
|
100
|
+
|
|
101
|
+
private static isLongBlockingMcpToolName;
|
|
102
|
+
|
|
41
103
|
private forceMessagePending;
|
|
104
|
+
|
|
105
|
+
private turnPromptPushed;
|
|
42
106
|
private abortRequested;
|
|
43
107
|
|
|
44
|
-
private
|
|
108
|
+
private toolSettleSlots;
|
|
45
109
|
private toolSettleSeq;
|
|
46
110
|
|
|
111
|
+
private readonly toolResourceLock;
|
|
112
|
+
private readonly toolConcurrencyScheduler;
|
|
113
|
+
|
|
114
|
+
private toolReadOnlyLimiter;
|
|
115
|
+
|
|
116
|
+
private toolBashLimiter;
|
|
117
|
+
|
|
118
|
+
private toolConcurrencyEnabled;
|
|
119
|
+
|
|
47
120
|
private pendingAwaitedSubIds;
|
|
48
121
|
|
|
49
122
|
private pendingAwaitedBgTaskIds;
|
|
@@ -89,7 +162,7 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
89
162
|
|
|
90
163
|
private stopCompactionDebugLog;
|
|
91
164
|
|
|
92
|
-
submit(message: string): Promise<void>;
|
|
165
|
+
submit(message: string, options?: ACodeSubmitOptions): Promise<void>;
|
|
93
166
|
|
|
94
167
|
private executeSubmitGuarded;
|
|
95
168
|
|
|
@@ -99,6 +172,10 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
99
172
|
|
|
100
173
|
notifyForceMessage(): void;
|
|
101
174
|
|
|
175
|
+
exportConversation(): ChatMessage[];
|
|
176
|
+
|
|
177
|
+
importTranscript(transcript: ChatMessage[]): Promise<number>;
|
|
178
|
+
|
|
102
179
|
addBuiltInTools(tools: unknown[]): number;
|
|
103
180
|
|
|
104
181
|
removeBuiltInToolsByPrefix(prefix: string): number;
|
|
@@ -143,7 +220,9 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
143
220
|
|
|
144
221
|
private cancelPendingAwaitedBgTasks;
|
|
145
222
|
|
|
146
|
-
detachCurrentToolExecution(): boolean;
|
|
223
|
+
detachCurrentToolExecution(toolCallId?: string): boolean;
|
|
224
|
+
|
|
225
|
+
private pickSettleCandidate;
|
|
147
226
|
|
|
148
227
|
private beginToolSettle;
|
|
149
228
|
|
|
@@ -157,8 +236,42 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
157
236
|
|
|
158
237
|
private summarizeConversationWithLLM;
|
|
159
238
|
private requestChatCompletion;
|
|
239
|
+
|
|
240
|
+
private compactForContextOverflow;
|
|
241
|
+
|
|
242
|
+
private rebuildRuntimeResourcesMessage;
|
|
160
243
|
private readChatCompletionStream;
|
|
161
244
|
private handleToolCalls;
|
|
245
|
+
|
|
246
|
+
private emitToolBatchStart;
|
|
247
|
+
|
|
248
|
+
private executePreparedToolCallsConcurrently;
|
|
249
|
+
|
|
250
|
+
private executePreparedToolCallsSerially;
|
|
251
|
+
|
|
252
|
+
private commitPreparedToolOutcomes;
|
|
253
|
+
|
|
254
|
+
private executeOnePreparedTool;
|
|
255
|
+
|
|
256
|
+
private resolveToolLimiter;
|
|
257
|
+
|
|
258
|
+
private prepareToolCall;
|
|
259
|
+
|
|
260
|
+
private resolveToolConcurrencyDeclaration;
|
|
261
|
+
|
|
262
|
+
private runBuiltInToolCall;
|
|
263
|
+
|
|
264
|
+
private runMcpToolCall;
|
|
265
|
+
|
|
266
|
+
private withBlockingToolCallTracking;
|
|
267
|
+
|
|
268
|
+
private classifyToolError;
|
|
269
|
+
|
|
270
|
+
private commitToolOutcome;
|
|
271
|
+
|
|
272
|
+
private commitSupersededToolResult;
|
|
273
|
+
|
|
274
|
+
private executeSingleToolByName;
|
|
162
275
|
private callMcpToolWithTimeout;
|
|
163
276
|
|
|
164
277
|
private static formatSubAgentCompletionAsPollResult;
|
|
@@ -190,6 +303,7 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
190
303
|
private createRuntimeStopWaiter;
|
|
191
304
|
|
|
192
305
|
private notifyRuntimeStop;
|
|
306
|
+
|
|
193
307
|
private appendSyntheticMultimodalUserMessage;
|
|
194
308
|
|
|
195
309
|
private expandCommandsInPolledResult;
|
|
@@ -200,15 +314,15 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
200
314
|
private filterSharedMcpConnectionsForSubAgent;
|
|
201
315
|
private connectMcpServers;
|
|
202
316
|
|
|
203
|
-
|
|
317
|
+
private registerMcpCollapsedGroup;
|
|
204
318
|
|
|
205
|
-
private
|
|
319
|
+
private registerToolGroupsFromMcp;
|
|
206
320
|
|
|
207
|
-
|
|
321
|
+
requestMcpToolsRefresh(serverName?: string): void;
|
|
208
322
|
|
|
209
|
-
|
|
323
|
+
recoverHiddenMcpTool(toolName: string): Promise<boolean>;
|
|
210
324
|
|
|
211
|
-
private
|
|
325
|
+
private refreshMcpConnectionTools;
|
|
212
326
|
private createMcpTransport;
|
|
213
327
|
|
|
214
328
|
private fetchProfilePrompt;
|