agent-afk 5.28.3 → 5.29.1

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.
@@ -10,6 +10,7 @@ export type UsageLimitClassification = {
10
10
  kind: 'credit-exhausted';
11
11
  };
12
12
  export declare const RATE_LIMIT_TRANSIENT_MAX_RETRY_AFTER_MS: number;
13
+ export declare function getHeader(error: unknown, name: string): string | undefined;
13
14
  export declare function parseRetryAfterMs(error: unknown): number | undefined;
14
15
  export declare function classifyUsageLimitError(error: Error): UsageLimitClassification | null;
15
16
  export interface WaitForResetOpts {
@@ -58,7 +58,10 @@ export declare class AgentSession implements IAgentSession {
58
58
  setModel(model?: AgentModelInput): Promise<void>;
59
59
  setPermissionMode(mode: PermissionMode): Promise<void>;
60
60
  getPrePlanMode(): PermissionMode | undefined;
61
- takePendingPlanExitSeed(): Promise<string | undefined>;
61
+ takePendingPlanExitSeed(): Promise<{
62
+ message: string;
63
+ mode: PermissionMode;
64
+ } | undefined>;
62
65
  setCwd(cwd: string): void;
63
66
  reauth(): Promise<{
64
67
  accountId: string;
@@ -112,7 +112,10 @@ export interface IAgentSession {
112
112
  abort(reason: string): void;
113
113
  setModel(model?: AgentModelInput): Promise<void>;
114
114
  setPermissionMode(mode: PermissionMode): Promise<void>;
115
- takePendingPlanExitSeed(): Promise<string | undefined>;
115
+ takePendingPlanExitSeed(): Promise<{
116
+ message: string;
117
+ mode: PermissionMode;
118
+ } | undefined>;
116
119
  waitForInitialization(): Promise<SessionMetadata>;
117
120
  getSessionIdentity(): SessionIdentity;
118
121
  getSessionMetadata(): SessionMetadata;