agent-afk 5.310.8 → 5.310.10

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
  import type { ScheduledTask, TaskExecutor } from './triggers.js';
2
+ export declare function isLockContention(err: unknown, platform: string): boolean;
2
3
  export interface ScheduledTaskConfig {
3
4
  id: string;
4
5
  name: string;
@@ -637,6 +637,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
637
637
  background_process_started: "background_process_started";
638
638
  background_process_settled: "background_process_settled";
639
639
  compose_recovery_decision: "compose_recovery_decision";
640
+ compose_leaf_tools_stripped: "compose_leaf_tools_stripped";
640
641
  }>;
641
642
  durationMs: z.ZodOptional<z.ZodNumber>;
642
643
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -1057,6 +1058,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1057
1058
  background_process_started: "background_process_started";
1058
1059
  background_process_settled: "background_process_settled";
1059
1060
  compose_recovery_decision: "compose_recovery_decision";
1061
+ compose_leaf_tools_stripped: "compose_leaf_tools_stripped";
1060
1062
  }>;
1061
1063
  durationMs: z.ZodOptional<z.ZodNumber>;
1062
1064
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -47,6 +47,7 @@ export declare const SessionPhaseNameSchema: z.ZodEnum<{
47
47
  background_process_started: "background_process_started";
48
48
  background_process_settled: "background_process_settled";
49
49
  compose_recovery_decision: "compose_recovery_decision";
50
+ compose_leaf_tools_stripped: "compose_leaf_tools_stripped";
50
51
  }>;
51
52
  export declare const SessionPhasePayloadSchema: z.ZodObject<{
52
53
  phase: z.ZodEnum<{
@@ -97,6 +98,7 @@ export declare const SessionPhasePayloadSchema: z.ZodObject<{
97
98
  background_process_started: "background_process_started";
98
99
  background_process_settled: "background_process_settled";
99
100
  compose_recovery_decision: "compose_recovery_decision";
101
+ compose_leaf_tools_stripped: "compose_leaf_tools_stripped";
100
102
  }>;
101
103
  durationMs: z.ZodOptional<z.ZodNumber>;
102
104
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
@@ -1,4 +1,4 @@
1
- export type SessionPhaseName = 'bootstrap_start' | 'bootstrap_done' | 'session_init_start' | 'session_init_done' | 'mcp_connect_start' | 'mcp_connect_done' | 'mcp_server_start' | 'mcp_server_done' | 'loop_start' | 'loop_end' | 'model_ttfb' | 'context_pressure_wind_down' | 'catalog_model_upgrade' | 'interrupt_halt' | 'rate_limit' | 'ttfb_timeout' | 'usage_limit_pause' | 'usage_limit_resume' | 'overload_pause' | 'overload_resume' | 'idle_watchdog_fired' | 'pause_extension_granted' | 'suspected_loop' | 'compaction_disabled' | 'boot_warning' | 'workspace_subscribed' | 'workspace_delivery' | 'gate_shape' | 'session_id_assigned' | 'many_image_degraded' | 'stream_accepted_after_drop' | 'connection_retry' | 'connection_retry_exhausted' | 'connection_failure' | 'connection_recovered' | 'connection_budget_exhausted' | 'usage_notice' | 'tool_degraded' | 'strategy_nudge_fired' | 'stop_inject_dropped' | 'stop_hook_continuation' | 'stop_hook_cap_reached' | 'orphan_repair' | 'thinking_block_dropped' | 'background_process_started' | 'background_process_settled' | 'compose_recovery_decision';
1
+ export type SessionPhaseName = 'bootstrap_start' | 'bootstrap_done' | 'session_init_start' | 'session_init_done' | 'mcp_connect_start' | 'mcp_connect_done' | 'mcp_server_start' | 'mcp_server_done' | 'loop_start' | 'loop_end' | 'model_ttfb' | 'context_pressure_wind_down' | 'catalog_model_upgrade' | 'interrupt_halt' | 'rate_limit' | 'ttfb_timeout' | 'usage_limit_pause' | 'usage_limit_resume' | 'overload_pause' | 'overload_resume' | 'idle_watchdog_fired' | 'pause_extension_granted' | 'suspected_loop' | 'compaction_disabled' | 'boot_warning' | 'workspace_subscribed' | 'workspace_delivery' | 'gate_shape' | 'session_id_assigned' | 'many_image_degraded' | 'stream_accepted_after_drop' | 'connection_retry' | 'connection_retry_exhausted' | 'connection_failure' | 'connection_recovered' | 'connection_budget_exhausted' | 'usage_notice' | 'tool_degraded' | 'strategy_nudge_fired' | 'stop_inject_dropped' | 'stop_hook_continuation' | 'stop_hook_cap_reached' | 'orphan_repair' | 'thinking_block_dropped' | 'background_process_started' | 'background_process_settled' | 'compose_recovery_decision' | 'compose_leaf_tools_stripped';
2
2
  export interface SessionPhasePayload {
3
3
  phase: SessionPhaseName;
4
4
  durationMs?: number;
@@ -15,9 +15,7 @@ export interface PeerBoundaryOpts {
15
15
  peerNotifier: PeerInboxNotifier;
16
16
  admissionQueue: AdmissionQueue;
17
17
  isQueuedHumanTurn?: () => boolean;
18
- processJobNotifier?: InjectionSource & {
19
- hasPendingInjections(): boolean;
20
- };
18
+ processJobNotifier?: InjectionSource;
21
19
  }
22
20
  export declare function installPeerBoundary(opts: PeerBoundaryOpts): () => void;
23
21
  export declare function reinstallPeerBoundary(opts: PeerBoundaryOpts, prevDispose: (() => void) | undefined): () => void;
@@ -2,6 +2,7 @@ export declare function autoResumeDirective(bgResultPending: boolean): string;
2
2
  export declare const AUTO_RESUME_PREFIX = "[auto-resume]";
3
3
  export interface InjectionSource {
4
4
  drainInjections(): string;
5
+ hasPendingInjections(): boolean;
5
6
  }
6
7
  export declare function prependTurnInjections(runText: string, sources: readonly InjectionSource[]): string;
7
8
  export declare function markPresenceTurn(sessionId: string | undefined, state: 'busy', rawUserText?: string): void;
@@ -21,6 +21,7 @@ export declare class ShellPassthrough {
21
21
  static readonly MAX_PENDING_NOTIFICATIONS = 50;
22
22
  constructor(opts: ShellPassthroughOptions);
23
23
  dispatch(input: string): Promise<boolean>;
24
+ hasPendingInjections(): boolean;
24
25
  drainInjections(): string;
25
26
  drainNotifications(): readonly PendingBgNotification[];
26
27
  abortActiveForeground(): boolean;