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.
@@ -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(plan?: CompactionPlan): {
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