agent-afk 5.223.5 → 5.224.0

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.
@@ -10,6 +10,8 @@ export declare function readKeepLastN(): number;
10
10
  export declare function readShrinkFraction(): number;
11
11
  export declare const DEFAULT_MICROCOMPACT_TOOL_RESULT_BYTES = 2048;
12
12
  export declare const DEFAULT_MICROCOMPACT_KEEP_LAST = 4;
13
+ export declare const DELEGATION_TOOL_NAMES: ReadonlySet<string>;
14
+ export declare const DEFAULT_MICROCOMPACT_DELEGATION_BYTES = 16384;
13
15
  export declare const MICROCOMPACT_PLACEHOLDER_SENTINEL = "[tool result cleared to reclaim context";
14
16
  export declare function buildMicrocompactPlaceholder(bytes: number): string;
15
17
  export declare function isMicrocompactPlaceholder(text: string): boolean;
@@ -17,6 +19,7 @@ export interface ToolResultRef {
17
19
  byteLength: number;
18
20
  isPlaceholder: boolean;
19
21
  clear(placeholder: string): void;
22
+ toolName?: string;
20
23
  }
21
24
  export interface MicrocompactOps<M> {
22
25
  listToolResults(messages: ReadonlyArray<M>): ToolResultRef[];
@@ -24,6 +27,7 @@ export interface MicrocompactOps<M> {
24
27
  export interface MicrocompactOptions {
25
28
  thresholdBytes?: number;
26
29
  keepLast?: number;
30
+ delegationThresholdBytes?: number;
27
31
  }
28
32
  export interface MicrocompactResult {
29
33
  blocksCleared: number;
@@ -32,7 +36,7 @@ export interface MicrocompactResult {
32
36
  }
33
37
  export declare function microcompactToolResults<M>(messages: ReadonlyArray<M>, ops: MicrocompactOps<M>, opts?: MicrocompactOptions): MicrocompactResult;
34
38
  export declare function byteLengthOf(text: string): number;
35
- export declare function resolveMicrocompactOptions(rawBytes: string | undefined, rawKeepLast: string | undefined): Required<MicrocompactOptions>;
39
+ export declare function resolveMicrocompactOptions(rawBytes: string | undefined, rawKeepLast: string | undefined, rawDelegationBytes?: string | undefined): Required<MicrocompactOptions>;
36
40
  export interface CompactionOps<M> {
37
41
  isFreshUserTurn(msg: M): boolean;
38
42
  renderMessage(msg: M): string;