agent-afk 5.288.2 → 5.288.3

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,4 +1,5 @@
1
1
  export type PeerRefusal = 'self' | 'dead-target' | 'ambiguous-target' | 'unknown-target' | 'no-receiver' | 'too-large' | 'hop-limit' | 'rate-limited' | 'duplicate' | 'inbound-off';
2
+ export declare const PEER_WAKE_BUDGET_WINDOW_MS = 3600000;
2
3
  export interface CheckSendGuardsOpts {
3
4
  senderId: string;
4
5
  targetId: string;
@@ -0,0 +1,16 @@
1
+ export declare const DELIVERED_RETENTION_INTERVAL_MS: number;
2
+ export declare const DELIVERED_RECEIPT_MAX_AGE_MS: number;
3
+ export interface PruneDeliveredReceiptsOpts {
4
+ sessionId: string;
5
+ lastRanMs: number;
6
+ minIntervalMs?: number;
7
+ now?: () => number;
8
+ }
9
+ export interface PruneResult {
10
+ ran: boolean;
11
+ nowMs: number;
12
+ pruned: number;
13
+ skippedHasPending: number;
14
+ skippedFresh: number;
15
+ }
16
+ export declare function pruneDeliveredReceipts(opts: PruneDeliveredReceiptsOpts): Promise<PruneResult>;
@@ -7,4 +7,5 @@ export declare function __setRetryAfterMaxWaitMs(ms: number | null): void;
7
7
  export declare function retryAfterDelayMs(err: unknown): number | undefined;
8
8
  export declare function getErrorStatus(err: unknown): number | undefined;
9
9
  export declare function isRetryableConnectionError(err: unknown): boolean;
10
+ export declare function isOpenAIOverloadError(err: unknown): boolean;
10
11
  export declare function isRetryableStreamError(err: unknown): boolean;
@@ -26,6 +26,7 @@ export interface ComposeExecutorContext {
26
26
  delegationBudget?: import('./delegation-budget.js').DelegationBudget;
27
27
  inboundAttachmentRegistry?: InboundAttachmentReader;
28
28
  onSubagentSucceeded?: (usage: import('../subagent/result.js').SubagentTrace['usage'], costUsd: number | undefined) => void;
29
+ credentialModel?: AgentModelInput;
29
30
  }
30
31
  export interface TruncationEvent {
31
32
  nodeId: string;
@@ -25,6 +25,7 @@ export declare class PeerInboxNotifier {
25
25
  private disposed;
26
26
  private desiredName;
27
27
  private generation;
28
+ private lastRetentionRunMs;
28
29
  constructor(opts: PeerInboxNotifierOpts);
29
30
  resetForNewSession(): void;
30
31
  hasPendingInjections(): boolean;