agent-afk 5.108.2 → 5.110.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/tools/skill-bridge.d.ts +1 -1
- package/dist/agent/trace/events.d.ts +4 -0
- package/dist/agent/trace/types.d.ts +1 -1
- package/dist/cli/commands/interactive/boot-warning-recorder.d.ts +8 -0
- package/dist/cli/commands/interactive/unknown-command-guard.d.ts +3 -0
- package/dist/cli/git-status-sampler.d.ts +3 -2
- package/dist/cli.mjs +528 -527
- package/dist/index.mjs +53 -53
- package/dist/telegram.mjs +117 -116
- package/package.json +5 -1
|
@@ -25,6 +25,6 @@ export interface PluginSkillBody {
|
|
|
25
25
|
model?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare function discoverPluginSkillBodies(pluginConfigs?: SdkPluginConfig[], opts?: CollectSkillEntriesOptions): Map<string, PluginSkillBody>;
|
|
28
|
-
export declare function discoverPluginAgents(pluginConfigs?: SdkPluginConfig[]): RegisteredAgent[];
|
|
28
|
+
export declare function discoverPluginAgents(pluginConfigs?: SdkPluginConfig[], warn?: (message: string) => void): RegisteredAgent[];
|
|
29
29
|
export declare function scanAllPluginRoots(opts?: CollectSkillEntriesOptions): SdkPluginConfig[];
|
|
30
30
|
export declare function ensurePluginEntrypointsLoaded(): Promise<void>;
|
|
@@ -519,6 +519,7 @@ export declare const SessionPhaseNameSchema: z.ZodEnum<{
|
|
|
519
519
|
pause_extension_granted: "pause_extension_granted";
|
|
520
520
|
suspected_loop: "suspected_loop";
|
|
521
521
|
compaction_disabled: "compaction_disabled";
|
|
522
|
+
boot_warning: "boot_warning";
|
|
522
523
|
}>;
|
|
523
524
|
export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
524
525
|
phase: z.ZodEnum<{
|
|
@@ -544,6 +545,7 @@ export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
|
544
545
|
pause_extension_granted: "pause_extension_granted";
|
|
545
546
|
suspected_loop: "suspected_loop";
|
|
546
547
|
compaction_disabled: "compaction_disabled";
|
|
548
|
+
boot_warning: "boot_warning";
|
|
547
549
|
}>;
|
|
548
550
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
549
551
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -894,6 +896,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
894
896
|
pause_extension_granted: "pause_extension_granted";
|
|
895
897
|
suspected_loop: "suspected_loop";
|
|
896
898
|
compaction_disabled: "compaction_disabled";
|
|
899
|
+
boot_warning: "boot_warning";
|
|
897
900
|
}>;
|
|
898
901
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
899
902
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1254,6 +1257,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1254
1257
|
pause_extension_granted: "pause_extension_granted";
|
|
1255
1258
|
suspected_loop: "suspected_loop";
|
|
1256
1259
|
compaction_disabled: "compaction_disabled";
|
|
1260
|
+
boot_warning: "boot_warning";
|
|
1257
1261
|
}>;
|
|
1258
1262
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1259
1263
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -211,7 +211,7 @@ export interface BrowserEventPayload {
|
|
|
211
211
|
};
|
|
212
212
|
durationMs: number;
|
|
213
213
|
}
|
|
214
|
-
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' | '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';
|
|
214
|
+
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' | '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';
|
|
215
215
|
export interface SessionPhasePayload {
|
|
216
216
|
phase: SessionPhaseName;
|
|
217
217
|
durationMs?: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TraceWriter } from '../../../agent/trace/index.js';
|
|
2
|
+
export type BootWarningProducer = 'agent-registry' | 'mcp';
|
|
3
|
+
export declare function recordBootWarning(a: {
|
|
4
|
+
bootWarnings: string[];
|
|
5
|
+
traceWriter: TraceWriter | undefined;
|
|
6
|
+
producer: BootWarningProducer;
|
|
7
|
+
message: string;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -3,7 +3,7 @@ export type GitStatusExecFn = (file: string, args: string[], cwd: string) => Pro
|
|
|
3
3
|
stderr: string;
|
|
4
4
|
}>;
|
|
5
5
|
export interface GitStatusSamplerOptions {
|
|
6
|
-
cwd: string;
|
|
6
|
+
cwd: string | (() => string);
|
|
7
7
|
exec?: GitStatusExecFn;
|
|
8
8
|
prTtlMs?: number;
|
|
9
9
|
branchTtlMs?: number;
|
|
@@ -12,7 +12,8 @@ export interface GitStatusSamplerOptions {
|
|
|
12
12
|
onUpdate?: () => void;
|
|
13
13
|
}
|
|
14
14
|
export declare class GitStatusSampler {
|
|
15
|
-
private readonly
|
|
15
|
+
private readonly getCwd;
|
|
16
|
+
private lastSampledCwd;
|
|
16
17
|
private readonly exec;
|
|
17
18
|
private readonly prTtlMs;
|
|
18
19
|
private readonly branchTtlMs;
|