agent-afk 5.322.1 → 5.322.2

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.
@@ -1,7 +1,7 @@
1
1
  import type { HookContext, HookDecision } from './hooks.js';
2
2
  export declare const ASK_QUESTION_GATE_REASON: string;
3
3
  export interface AskQuestionGateOptions {
4
- hasHandler?: () => boolean;
4
+ hasHandler?: (sessionKey?: string) => boolean;
5
5
  notify?: (message: string) => void;
6
6
  }
7
7
  export declare function createAskQuestionGate(options?: AskQuestionGateOptions): (context: HookContext) => HookDecision;
@@ -27,6 +27,7 @@ export interface DAGRunResult {
27
27
  id: string;
28
28
  stopReason: string;
29
29
  }>;
30
+ setupNotices?: Record<string, string>;
30
31
  }
31
32
  export declare function validateDAG(graph: DAGGraph): void;
32
33
  export declare function runDAG(graph: DAGGraph, signal: AbortSignal, options?: DAGRunOptions): Promise<DAGRunResult>;
@@ -12,7 +12,7 @@ declare class ElicitationRouter {
12
12
  uninstall(): void;
13
13
  installForSession(key: string, handler: ElicitationHandler): void;
14
14
  uninstallForSession(key: string): void;
15
- hasHandler(): boolean;
15
+ hasHandler(sessionKey?: string): boolean;
16
16
  pendingCount(): number;
17
17
  route(request: ElicitationRequest, options: {
18
18
  signal: AbortSignal;
@@ -49,6 +49,7 @@ export interface SubagentResult<T = unknown> extends Partial<CappedHandoff> {
49
49
  trace?: SubagentTrace;
50
50
  signal?: Signal;
51
51
  stopReason?: string;
52
+ setupNotice?: string;
52
53
  }
53
54
  export declare function buildResultFromMessage<T>(id: string, status: SubagentStatus, message: Message, outputSchema: ZodType<T> | undefined, trace?: SubagentTrace, stopReason?: string): SubagentResult<T>;
54
55
  export declare function buildResultFromError<T>(id: string, status: SubagentStatus, err: unknown, trace?: SubagentTrace, stopReason?: string): SubagentResult<T>;
@@ -56,8 +57,10 @@ export declare function describeFailure(result: Pick<SubagentResult, 'status' |
56
57
  export interface SubagentExecutionError extends Error {
57
58
  partialOutput?: unknown;
58
59
  subagentId?: string;
60
+ setupNotice?: string;
59
61
  }
60
62
  export declare function attachSubagentContext(err: Error, context: {
61
63
  partialOutput?: unknown;
62
64
  subagentId?: string;
65
+ setupNotice?: string;
63
66
  }): SubagentExecutionError;