aws-runtime-bridge 1.9.171 → 1.9.172
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 +45 -0
- package/dist/adapter/AcodeSdkAdapter.d.ts +6 -12
- package/dist/adapter/AcodeSdkAdapter.js +2 -2
- package/dist/adapter/ClaudeSdkAdapter.d.ts +2 -0
- package/dist/adapter/ClaudeSdkAdapter.js +3 -3
- package/dist/adapter/types.d.ts +4 -7
- package/dist/routes/terminal.d.ts +8 -0
- package/dist/routes/terminal.js +27 -27
- package/dist/services/session-output.d.ts +2 -0
- package/dist/services/session-output.js +2 -2
- package/package/acode/dist/ask-user-question-tool.d.ts +11 -1
- package/package/acode/dist/ask-user-question-tool.js +3 -3
- package/package/acode/dist/built-in-file-tools.js +2 -2
- package/package/acode/dist/compaction.d.ts +143 -31
- package/package/acode/dist/compaction.js +20 -6
- package/package/acode/dist/runtime-environment.js +1 -1
- package/package/acode/dist/runtime.d.ts +13 -4
- package/package/acode/dist/runtime.js +31 -28
- package/package/acode/dist/types.d.ts +1 -1
- package/package/aws-client-agent-mcp/dist/mcp-tools.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ 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
4
|
import { type ACodeBuiltInTool, type EditFailureSnapshot, type JsonObject, type ToolPermissionPolicy } from "./built-in-file-tools.js";
|
|
5
|
-
import { type CompactionPlan, type CompactionPreview } from "./compaction.js";
|
|
6
5
|
import type { ACodeMcpServerSpec, ACodeRuntimeConfig } from "./types.js";
|
|
7
6
|
export interface ACodeMcpConnection {
|
|
8
7
|
serverName: string;
|
|
@@ -39,6 +38,8 @@ interface ChatMessage {
|
|
|
39
38
|
content: string | ChatContentPart[] | null;
|
|
40
39
|
tool_call_id?: string;
|
|
41
40
|
tool_calls?: ChatToolCall[];
|
|
41
|
+
|
|
42
|
+
reasoning?: string;
|
|
42
43
|
}
|
|
43
44
|
interface ChatToolCall {
|
|
44
45
|
id: string;
|
|
@@ -109,6 +110,8 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
109
110
|
|
|
110
111
|
private compactRequested;
|
|
111
112
|
|
|
113
|
+
private instructionsDirty;
|
|
114
|
+
|
|
112
115
|
private turnPromptPushed;
|
|
113
116
|
private abortRequested;
|
|
114
117
|
|
|
@@ -155,12 +158,10 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
155
158
|
|
|
156
159
|
private runCompactionPass;
|
|
157
160
|
|
|
158
|
-
compactContext(
|
|
161
|
+
compactContext(): {
|
|
159
162
|
requested: boolean;
|
|
160
163
|
};
|
|
161
164
|
|
|
162
|
-
getCompactionPreview(): CompactionPreview;
|
|
163
|
-
|
|
164
165
|
start(): Promise<void>;
|
|
165
166
|
|
|
166
167
|
private loadAllSkills;
|
|
@@ -235,6 +236,10 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
235
236
|
|
|
236
237
|
submitQuestionAnswer(toolCallId: string, answers: Record<string, string>): boolean;
|
|
237
238
|
|
|
239
|
+
cancelQuestionAnswer(toolCallId: string, reason?: string): boolean;
|
|
240
|
+
|
|
241
|
+
private settleQuestionWaiter;
|
|
242
|
+
|
|
238
243
|
private rejectAllQuestionWaiters;
|
|
239
244
|
|
|
240
245
|
private readonly permissionWaiters;
|
|
@@ -273,6 +278,10 @@ export declare class ACodeRuntime extends EventEmitter {
|
|
|
273
278
|
private compactForContextOverflow;
|
|
274
279
|
|
|
275
280
|
private rebuildRuntimeResourcesMessage;
|
|
281
|
+
|
|
282
|
+
private rebuildRuntimeInstructionsMessage;
|
|
283
|
+
|
|
284
|
+
private buildRuntimeInstructionsContent;
|
|
276
285
|
private readChatCompletionStream;
|
|
277
286
|
private handleToolCalls;
|
|
278
287
|
|