agent-afk 5.81.3 → 5.81.5
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/session/agent-session.d.ts +2 -0
- package/dist/agent/tools/handlers/read-denylist.d.ts +3 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli.mjs +452 -452
- package/dist/index.mjs +156 -156
- package/dist/telegram.mjs +201 -201
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { type ZodType } from 'zod';
|
|
|
5
5
|
import type { AccountInfo, AgentConfig, AgentInfo, AgentModelInput, IAgentSession, InputStreamRef, McpServerStatus, Message, ModelInfo, OutputEvent, PermissionMode, ResponseMetadata, RewindFilesResult, SDKControlGetContextUsageResponse, SendMessageOptions, SessionIdentity, SessionMetadata, SessionState, SlashCommand, StructuredMessageOptions } from '../types.js';
|
|
6
6
|
import type { ElicitationRequest } from '../types/sdk-types.js';
|
|
7
7
|
export declare class AgentSession implements IAgentSession {
|
|
8
|
+
private static readonly claimedTraceWriters;
|
|
8
9
|
private config;
|
|
9
10
|
private readonly planExit;
|
|
10
11
|
private currentState;
|
|
@@ -19,6 +20,7 @@ export declare class AgentSession implements IAgentSession {
|
|
|
19
20
|
private readonly abortController;
|
|
20
21
|
private readonly _hookRegistry;
|
|
21
22
|
private sessionEndDispatched;
|
|
23
|
+
private readonly ownsTraceSeal;
|
|
22
24
|
private stateManager;
|
|
23
25
|
private sessionRunningCostUsd;
|
|
24
26
|
private sessionRunningTokens;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const BUILTIN_READ_DENYLIST: readonly string[];
|
|
2
|
+
export declare const READ_ALLOWLIST_REL: readonly string[];
|
|
3
|
+
export declare const BUILTIN_READ_ALLOWLIST: readonly string[];
|
|
4
|
+
export declare function resolveExceptionEntry(entry: string): string;
|
|
2
5
|
export declare function getReadDenylist(): readonly string[];
|
|
3
6
|
export declare function _resetReadDenylistCacheForTests(): void;
|
|
4
7
|
export declare function isReadDenied(filePath: string): {
|
|
@@ -68,6 +68,7 @@ export interface AgentConfig {
|
|
|
68
68
|
hookRegistry?: HookRegistry;
|
|
69
69
|
planExitControls?: PlanExitControls;
|
|
70
70
|
traceWriter?: TraceWriter;
|
|
71
|
+
isSubagentFork?: true;
|
|
71
72
|
provider?: ModelProvider;
|
|
72
73
|
providerFactory?: (model: string | undefined) => ModelProvider;
|
|
73
74
|
maxBudgetUsd?: number;
|