agent-afk 5.358.0 → 5.359.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.
- package/dist/agent/trace/events.d.ts +2 -0
- package/dist/agent/trace/events.session-phase.d.ts +2 -0
- package/dist/agent/trace/types.session-phase.d.ts +1 -1
- package/dist/agent/worktree/worktree-inventory.d.ts +31 -0
- package/dist/agent/worktree/worktree-sweep.d.ts +3 -0
- package/dist/cli.mjs +495 -493
- package/dist/index.mjs +406 -406
- package/dist/telegram.mjs +435 -435
- package/package.json +1 -1
|
@@ -771,6 +771,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
771
771
|
continuation_settle_degraded: "continuation_settle_degraded";
|
|
772
772
|
prompt_fragment_sizes: "prompt_fragment_sizes";
|
|
773
773
|
ratelimit_unified_state: "ratelimit_unified_state";
|
|
774
|
+
auth_retry_outcome: "auth_retry_outcome";
|
|
774
775
|
}>;
|
|
775
776
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
776
777
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1266,6 +1267,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1266
1267
|
continuation_settle_degraded: "continuation_settle_degraded";
|
|
1267
1268
|
prompt_fragment_sizes: "prompt_fragment_sizes";
|
|
1268
1269
|
ratelimit_unified_state: "ratelimit_unified_state";
|
|
1270
|
+
auth_retry_outcome: "auth_retry_outcome";
|
|
1269
1271
|
}>;
|
|
1270
1272
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1271
1273
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -57,6 +57,7 @@ export declare const SessionPhaseNameSchema: z.ZodEnum<{
|
|
|
57
57
|
continuation_settle_degraded: "continuation_settle_degraded";
|
|
58
58
|
prompt_fragment_sizes: "prompt_fragment_sizes";
|
|
59
59
|
ratelimit_unified_state: "ratelimit_unified_state";
|
|
60
|
+
auth_retry_outcome: "auth_retry_outcome";
|
|
60
61
|
}>;
|
|
61
62
|
export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
62
63
|
phase: z.ZodEnum<{
|
|
@@ -117,6 +118,7 @@ export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
|
117
118
|
continuation_settle_degraded: "continuation_settle_degraded";
|
|
118
119
|
prompt_fragment_sizes: "prompt_fragment_sizes";
|
|
119
120
|
ratelimit_unified_state: "ratelimit_unified_state";
|
|
121
|
+
auth_retry_outcome: "auth_retry_outcome";
|
|
120
122
|
}>;
|
|
121
123
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
122
124
|
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' | 'credential_swap' | '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' | 'hook_block_repeat_tripped' | 'endpoint_semaphore_wait' | 'billing_settled' | 'subagent_model_fallback' | 'model_fallback' | 'round_cap_notice_dropped' | 'continuation_settle_degraded' | 'prompt_fragment_sizes' | 'ratelimit_unified_state';
|
|
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' | 'credential_swap' | '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' | 'hook_block_repeat_tripped' | 'endpoint_semaphore_wait' | 'billing_settled' | 'subagent_model_fallback' | 'model_fallback' | 'round_cap_notice_dropped' | 'continuation_settle_degraded' | 'prompt_fragment_sizes' | 'ratelimit_unified_state' | 'auth_retry_outcome';
|
|
2
2
|
export interface SessionPhasePayload {
|
|
3
3
|
phase: SessionPhaseName;
|
|
4
4
|
durationMs?: number;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ExecFileFn } from './worktree-sweep.js';
|
|
2
|
+
export interface InventoryRow {
|
|
3
|
+
path: string;
|
|
4
|
+
repoRoot: string;
|
|
5
|
+
branch: string;
|
|
6
|
+
owner: 'interactive' | 'diagnose' | 'unknown';
|
|
7
|
+
ageMs: number;
|
|
8
|
+
verdict: string;
|
|
9
|
+
lockReason?: string;
|
|
10
|
+
blocker: string;
|
|
11
|
+
diskKb?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface RepoSummary {
|
|
14
|
+
repoRoot: string;
|
|
15
|
+
rows: InventoryRow[];
|
|
16
|
+
totalDiskKb?: number;
|
|
17
|
+
warnings: string[];
|
|
18
|
+
contested: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface InventoryResult {
|
|
21
|
+
repos: RepoSummary[];
|
|
22
|
+
totalRows: number;
|
|
23
|
+
totalDiskKb?: number;
|
|
24
|
+
unregisteredRoots: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface InventoryOptions {
|
|
27
|
+
execFile?: ExecFileFn;
|
|
28
|
+
includeSize?: boolean;
|
|
29
|
+
extraRoots?: string[];
|
|
30
|
+
}
|
|
31
|
+
export declare function runInventory(options?: InventoryOptions): Promise<InventoryResult>;
|