agent-afk 5.287.1 → 5.288.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.
@@ -24,5 +24,6 @@ export interface AssembleChildConfigArgs<T> {
24
24
  parentTraceWriter: TraceSink | undefined;
25
25
  parentSurface: Surface | undefined;
26
26
  parentCanUseTool: CanUseTool | undefined;
27
+ nestedAgentAllowlist?: readonly string[];
27
28
  }
28
29
  export declare function assembleChildConfig<T>(args: AssembleChildConfigArgs<T>): AgentConfig;
@@ -28,6 +28,7 @@ export interface ForkSubagentOptions<T = unknown> {
28
28
  denyElicitations?: boolean;
29
29
  progressEvents?: boolean;
30
30
  phaseRole?: PhaseRole;
31
+ nestedAgentAllowlist?: readonly string[];
31
32
  }
32
33
  export interface SubagentManagerOptions {
33
34
  canUseTool?: CanUseTool;
@@ -3,6 +3,7 @@ export interface SubagentIdentityFacts {
3
3
  isNonInteractive: boolean | undefined;
4
4
  depth: number | undefined;
5
5
  maxDepth: number | undefined;
6
+ nestedAgentAllowlist?: readonly string[];
6
7
  }
7
8
  export declare function renderSubagentIdentityPreamble(facts: SubagentIdentityFacts): string;
8
- export declare function injectSubagentIdentityPreamble(config: AgentConfig): AgentConfig;
9
+ export declare function injectSubagentIdentityPreamble(config: AgentConfig, nestedAgentAllowlist?: readonly string[]): AgentConfig;
@@ -0,0 +1,20 @@
1
+ export type BashInterruptKind = 'aborted' | 'timeout';
2
+ export interface BashInterruptInput {
3
+ kind: BashInterruptKind;
4
+ stdout: string;
5
+ stderr: string;
6
+ startedAt: number;
7
+ timeoutMs: number;
8
+ context?: {
9
+ sessionId?: string | undefined;
10
+ toolUseId?: string | undefined;
11
+ } | undefined;
12
+ }
13
+ export interface BashInterruptResult {
14
+ content: string;
15
+ isError: true;
16
+ truncated?: true;
17
+ capturePath?: string;
18
+ durationMs: number;
19
+ }
20
+ export declare function interruptedBashResult(input: BashInterruptInput): BashInterruptResult;
@@ -0,0 +1,8 @@
1
+ export declare function resolveWriteTarget(filePath: string): Promise<string>;
2
+ export declare class WriteAbortedUntouchedError extends Error {
3
+ readonly target: string;
4
+ constructor(target: string, options?: {
5
+ cause?: unknown;
6
+ });
7
+ }
8
+ export declare function commitFileWrite(filePath: string, content: string, signal: AbortSignal, validateTarget?: (target: string) => void): Promise<void>;
@@ -46,5 +46,6 @@ export interface BuildChildConfigResult {
46
46
  childManager: SubagentManager | undefined;
47
47
  childWriteCapable: boolean;
48
48
  childSideEffectFree: boolean;
49
+ nestedAgentAllowlist: readonly string[] | undefined;
49
50
  }
50
51
  export declare function buildChildConfig(args: BuildChildConfigArgs): BuildChildConfigResult;
@@ -7,7 +7,6 @@ export interface AutoRoutingConfig {
7
7
  interactive?: boolean;
8
8
  chat?: boolean;
9
9
  telegram?: boolean;
10
- daemon?: boolean;
11
10
  }
12
11
  export interface CliConfig {
13
12
  apiKey?: string;
@@ -88,7 +87,6 @@ export interface ConfigFileSchema {
88
87
  interactive?: boolean;
89
88
  chat?: boolean;
90
89
  telegram?: boolean;
91
- daemon?: boolean;
92
90
  };
93
91
  daemon?: {
94
92
  task?: string;