aws-runtime-bridge 1.9.151 → 1.9.162
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 +560 -0
- package/dist/adapter/AcodeSdkAdapter.d.ts +51 -1
- package/dist/adapter/AcodeSdkAdapter.js +6 -5
- package/dist/adapter/prompts.d.ts +1 -1
- package/dist/adapter/prompts.js +1 -1
- package/dist/desktop/built-in-desktop-tools.js +1 -1
- package/dist/routes/acode-todos.js +1 -1
- package/dist/routes/ltr.js +1 -1
- package/dist/routes/sessions.d.ts +31 -0
- package/dist/routes/sessions.js +1 -1
- package/dist/routes/terminal.d.ts +8 -0
- package/dist/routes/terminal.js +25 -25
- package/dist/services/instance-features.d.ts +25 -1
- package/dist/services/instance-features.js +1 -1
- package/dist/services/workspace-files.js +1 -1
- package/dist/services/workspace-watch.js +1 -1
- package/dist/utils/file-utils.d.ts +2 -0
- package/dist/utils/file-utils.js +2 -2
- 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 +1 -1
- package/package/acode/dist/background-command-tools.js +1 -1
- package/package/acode/dist/built-in-file-tools.d.ts +18 -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/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 +3 -1
- package/package/acode/dist/index.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.d.ts +63 -3
- package/package/acode/dist/runtime.js +30 -26
- 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-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 +116 -0
- package/package/acode/dist/tool-group-manager.js +14 -0
- package/package/acode/dist/types.d.ts +14 -1
- package/package/acode/package.json +2 -2
- package/package/aws-client-agent-mcp/dist/agent-client.d.ts +4 -4
- package/package/aws-client-agent-mcp/dist/agent-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/http-client.d.ts +1 -1
- package/package/aws-client-agent-mcp/dist/http-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/mcp-server.d.ts +62 -17
- package/package/aws-client-agent-mcp/dist/mcp-server.js +29 -29
- package/package/aws-client-agent-mcp/dist/mcp-tools.d.ts +46 -0
- package/package/aws-client-agent-mcp/dist/mcp-tools.js +149 -7
- 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 +25 -0
- package/package/aws-client-agent-mcp/dist/office/office-workspace.js +2 -0
- package/package/aws-client-agent-mcp/dist/tool-groups.d.ts +57 -0
- package/package/aws-client-agent-mcp/dist/tool-groups.js +3 -0
- package/package/aws-client-agent-mcp/dist/types.d.ts +27 -0
- package/package/aws-client-agent-mcp/package.json +2 -1
- package/package.json +1 -1
- package/package/acode/dist/plugin-tools.d.ts +0 -14
- package/package/acode/dist/plugin-tools.js +0 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{promises as
|
|
1
|
+
import{existsSync as l,promises as d}from"node:fs";import e from"node:path";import{fileURLToPath as g}from"node:url";import{Parser as m,Language as p}from"web-tree-sitter";let i=null;const c=new Map,u=new Map;async function f(){return i||(i=m.init().catch(t=>{throw i=null,t})),i}async function j(t){const a=c.get(t);if(a)return a;const n=await h(t);if(!n)return null;await f();const r=new m;r.setLanguage(n);const s=c.get(t);return s?(r.delete(),s):(c.set(t,r),r)}function L(t){return e.basename(e.dirname(t))==="dist"?[e.resolve(t,"../grammars"),e.resolve(t,"../../grammars")]:[e.resolve(t,"../../grammars"),e.resolve(t,"../grammars")]}function w(t){const a=e.dirname(g(import.meta.url)),n=`tree-sitter-${t}.wasm`,r=L(a);for(const s of r){const o=e.join(s,n);if(l(o))return o}return e.join(r[0],n)}async function h(t){const a=u.get(t);if(a)return a;const n=w(t);try{await f();const r=await d.readFile(n),s=await p.load(r),o=u.get(t);return o||(u.set(t,s),s)}catch{return null}}function F(t){return u.has(t)}async function G(){for(const t of c.values())t.delete();c.clear(),u.clear(),i=null}export{j as getParserForLanguage,F as isLanguageLoaded,h as loadLanguage,G as resetLoader};
|
|
2
2
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import type { JsonObject } from "./built-in-file-tools.js";
|
|
3
3
|
|
|
4
|
+
export declare function splitQualifiedToolName(qualifiedName: string): {
|
|
5
|
+
plugin: string;
|
|
6
|
+
tool: string;
|
|
7
|
+
} | null;
|
|
8
|
+
|
|
4
9
|
export type PluginStatus = "enabled" | "disabled" | "error";
|
|
5
10
|
|
|
6
11
|
export interface PluginCatalogTool {
|
|
@@ -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
|
+
|
|
@@ -17,6 +17,13 @@ interface ACodeMcpTool {
|
|
|
17
17
|
description?: string;
|
|
18
18
|
inputSchema: JsonObject;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
export interface ACodeSubmitOptions {
|
|
22
|
+
|
|
23
|
+
skipProactiveCompaction?: boolean;
|
|
24
|
+
|
|
25
|
+
resume?: boolean;
|
|
26
|
+
}
|
|
20
27
|
export declare class ACodeRuntime extends EventEmitter {
|
|
21
28
|
private readonly config;
|
|
22
29
|
private readonly hookBus;
|
|
@@ -26,9 +33,15 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
26
33
|
|
|
27
34
|
private exposedToolsInitialized;
|
|
28
35
|
|
|
36
|
+
private recoveredToolNames;
|
|
37
|
+
|
|
38
|
+
private readonly readFileStateTracker;
|
|
39
|
+
|
|
29
40
|
private readonly pendingMemorySubAgents;
|
|
30
41
|
|
|
31
42
|
private readonly memoryDelegateCooldownUntil;
|
|
43
|
+
|
|
44
|
+
private toolGroupManager;
|
|
32
45
|
private submitQueue;
|
|
33
46
|
|
|
34
47
|
private activeTurnToken;
|
|
@@ -39,11 +52,24 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
39
52
|
private activeTurn;
|
|
40
53
|
|
|
41
54
|
private forceMessagePending;
|
|
55
|
+
|
|
56
|
+
private turnPromptPushed;
|
|
57
|
+
|
|
58
|
+
private turnSkipProactiveCompaction;
|
|
42
59
|
private abortRequested;
|
|
43
60
|
|
|
44
|
-
private
|
|
61
|
+
private toolSettleSlots;
|
|
45
62
|
private toolSettleSeq;
|
|
46
63
|
|
|
64
|
+
private readonly toolResourceLock;
|
|
65
|
+
private readonly toolConcurrencyScheduler;
|
|
66
|
+
|
|
67
|
+
private toolReadOnlyLimiter;
|
|
68
|
+
|
|
69
|
+
private toolBashLimiter;
|
|
70
|
+
|
|
71
|
+
private toolConcurrencyEnabled;
|
|
72
|
+
|
|
47
73
|
private pendingAwaitedSubIds;
|
|
48
74
|
|
|
49
75
|
private pendingAwaitedBgTaskIds;
|
|
@@ -89,7 +115,7 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
89
115
|
|
|
90
116
|
private stopCompactionDebugLog;
|
|
91
117
|
|
|
92
|
-
submit(message: string): Promise<void>;
|
|
118
|
+
submit(message: string, options?: ACodeSubmitOptions): Promise<void>;
|
|
93
119
|
|
|
94
120
|
private executeSubmitGuarded;
|
|
95
121
|
|
|
@@ -113,6 +139,8 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
113
139
|
private isTurnSuperseded;
|
|
114
140
|
private executeSubmit;
|
|
115
141
|
|
|
142
|
+
markSkipNextCompaction(): void;
|
|
143
|
+
|
|
116
144
|
abort(): Promise<void>;
|
|
117
145
|
|
|
118
146
|
private buildAskUserQuestionDeps;
|
|
@@ -143,7 +171,9 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
143
171
|
|
|
144
172
|
private cancelPendingAwaitedBgTasks;
|
|
145
173
|
|
|
146
|
-
detachCurrentToolExecution(): boolean;
|
|
174
|
+
detachCurrentToolExecution(toolCallId?: string): boolean;
|
|
175
|
+
|
|
176
|
+
private pickSettleCandidate;
|
|
147
177
|
|
|
148
178
|
private beginToolSettle;
|
|
149
179
|
|
|
@@ -157,8 +187,36 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
157
187
|
|
|
158
188
|
private summarizeConversationWithLLM;
|
|
159
189
|
private requestChatCompletion;
|
|
190
|
+
|
|
191
|
+
private compactForContextOverflow;
|
|
160
192
|
private readChatCompletionStream;
|
|
161
193
|
private handleToolCalls;
|
|
194
|
+
|
|
195
|
+
private executePreparedToolCallsConcurrently;
|
|
196
|
+
|
|
197
|
+
private executePreparedToolCallsSerially;
|
|
198
|
+
|
|
199
|
+
private commitPreparedToolOutcomes;
|
|
200
|
+
|
|
201
|
+
private executeOnePreparedTool;
|
|
202
|
+
|
|
203
|
+
private resolveToolLimiter;
|
|
204
|
+
|
|
205
|
+
private prepareToolCall;
|
|
206
|
+
|
|
207
|
+
private resolveToolConcurrencyDeclaration;
|
|
208
|
+
|
|
209
|
+
private runBuiltInToolCall;
|
|
210
|
+
|
|
211
|
+
private runMcpToolCall;
|
|
212
|
+
|
|
213
|
+
private classifyToolError;
|
|
214
|
+
|
|
215
|
+
private commitToolOutcome;
|
|
216
|
+
|
|
217
|
+
private commitSupersededToolResult;
|
|
218
|
+
|
|
219
|
+
private executeSingleToolByName;
|
|
162
220
|
private callMcpToolWithTimeout;
|
|
163
221
|
|
|
164
222
|
private static formatSubAgentCompletionAsPollResult;
|
|
@@ -202,6 +260,8 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
202
260
|
|
|
203
261
|
requestMcpToolsRefresh(serverName?: string): void;
|
|
204
262
|
|
|
263
|
+
recoverHiddenMcpTool(toolName: string): Promise<boolean>;
|
|
264
|
+
|
|
205
265
|
private refreshMcpConnectionTools;
|
|
206
266
|
private createMcpTransport;
|
|
207
267
|
|