agent-afk 5.259.2 → 5.261.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.
@@ -0,0 +1,4 @@
1
+ export declare const PREVIEW_HALF = 700;
2
+ export declare const PREVIEW_BUDGET = 2000;
3
+ export declare function previewInput(s: string, budget?: number): string;
4
+ export declare function buildInputPreview(input: unknown, budget?: number): string;
@@ -2,6 +2,7 @@ import type { HookHandler } from './hooks.js';
2
2
  import type { PermissionMode } from './types/sdk-types.js';
3
3
  import type { ElicitationRequest, ElicitationResult } from './types/sdk-types.js';
4
4
  import type { TraceSink } from './trace/index.js';
5
+ export declare const AFK_HARNESS_SERVER_NAME = "agent-afk";
5
6
  export interface AfkModeGateOptions {
6
7
  approvalTimeoutMs?: number;
7
8
  promptForApproval?: boolean;
@@ -112,6 +112,7 @@ export type ElicitationRequest = {
112
112
  allowSkip?: boolean;
113
113
  allowCustom?: boolean;
114
114
  context?: string;
115
+ _harnessInternal?: true;
115
116
  };
116
117
  export type ElicitationResult = {
117
118
  action: 'accept' | 'decline' | 'cancel' | 'skip';
@@ -1,4 +1,5 @@
1
1
  export declare function loadSystemPrompt(): string | undefined;
2
+ export declare function loadBundledSystemPrompt(): string | undefined;
2
3
  export declare function loadConfigSystemPrompt(): string | undefined;
3
4
  export declare const OPERATOR_CONFIG_HEADER: string;
4
5
  export declare function composeSystemPrompt(framework: string | undefined, overlay: string | undefined): string | undefined;
@@ -2,6 +2,7 @@ export interface UpdateInfo {
2
2
  currentVersion: string;
3
3
  latestVersion: string;
4
4
  }
5
+ export declare function isMajorUpgrade(current: string, latest: string): boolean;
5
6
  export declare function checkForUpdates(updatePolicy: 'notify' | 'auto' | 'off'): UpdateInfo | null;
6
7
  export declare function hasUpdateCache(): boolean;
7
8
  export declare function coldStartUpdateCheck(updatePolicy: 'notify' | 'auto' | 'off'): Promise<UpdateInfo | null>;