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.
- package/dist/agent/afk-gate-preview.d.ts +4 -0
- package/dist/agent/afk-mode-gate.d.ts +1 -0
- package/dist/agent/types/sdk-types.d.ts +1 -0
- package/dist/cli/system-prompt.d.ts +1 -0
- package/dist/cli/update-checker.d.ts +1 -0
- package/dist/cli.mjs +366 -362
- package/dist/config/env.d.ts +7 -0
- package/dist/config/env.whatif.d.ts +7 -0
- package/dist/index.mjs +115 -115
- package/dist/telegram.mjs +156 -154
- package/dist/whatif/runner/afk-runner.run.d.ts +2 -0
- package/dist/whatif/runner/afk-runner.stream.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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>;
|