agent-afk 5.257.8 → 5.258.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/plugins/index-store.d.ts +4 -0
- package/dist/agent/trace/events.browser.d.ts +80 -0
- package/dist/agent/trace/events.compaction.d.ts +51 -0
- package/dist/agent/trace/events.d.ts +5 -206
- package/dist/agent/trace/events.session-phase.d.ts +80 -0
- package/dist/agent/trace/types.d.ts +1 -1
- package/dist/cli/commit-mode.d.ts +1 -0
- package/dist/cli.mjs +271 -271
- package/dist/index.mjs +112 -112
- package/dist/telegram.mjs +132 -132
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export interface PluginIndexEntry {
|
|
|
4
4
|
sourceType: SourceType;
|
|
5
5
|
ref: string | null;
|
|
6
6
|
commit: string | null;
|
|
7
|
+
pinnedRef?: boolean;
|
|
7
8
|
enabled: boolean;
|
|
8
9
|
installedAt: string;
|
|
9
10
|
updatedAt: string;
|
|
@@ -15,6 +16,7 @@ export interface MarketplaceIndexEntry {
|
|
|
15
16
|
sourceType: 'git' | 'github' | 'local';
|
|
16
17
|
ref: string | null;
|
|
17
18
|
commit: string | null;
|
|
19
|
+
pinnedRef?: boolean;
|
|
18
20
|
installedAt: string;
|
|
19
21
|
updatedAt: string;
|
|
20
22
|
}
|
|
@@ -30,3 +32,5 @@ export declare function removePlugin(name: string, path?: string): PluginIndex;
|
|
|
30
32
|
export declare function setEnabled(name: string, enabled: boolean, path?: string): PluginIndex;
|
|
31
33
|
export declare function upsertMarketplace(name: string, entry: MarketplaceIndexEntry, path?: string): PluginIndex;
|
|
32
34
|
export declare function removeMarketplace(name: string, path?: string): PluginIndex;
|
|
35
|
+
export declare function isPinnedRef(entry: Pick<PluginIndexEntry, 'ref' | 'pinnedRef'>, defaultBranch: string): boolean;
|
|
36
|
+
export declare function isMarketplacePinnedRef(entry: Pick<MarketplaceIndexEntry, 'ref' | 'pinnedRef'>, defaultBranch: string): boolean;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BrowserEventToolSchema: z.ZodEnum<{
|
|
3
|
+
browser_open: "browser_open";
|
|
4
|
+
browser_observe: "browser_observe";
|
|
5
|
+
browser_act: "browser_act";
|
|
6
|
+
browser_screenshot: "browser_screenshot";
|
|
7
|
+
browser_extract: "browser_extract";
|
|
8
|
+
browser_close: "browser_close";
|
|
9
|
+
}>;
|
|
10
|
+
export declare const BrowserActActionSchema: z.ZodEnum<{
|
|
11
|
+
fill: "fill";
|
|
12
|
+
click: "click";
|
|
13
|
+
press: "press";
|
|
14
|
+
select: "select";
|
|
15
|
+
hover: "hover";
|
|
16
|
+
scroll_to: "scroll_to";
|
|
17
|
+
wait_for: "wait_for";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const BrowserEventTargetSchema: z.ZodObject<{
|
|
20
|
+
kind: z.ZodEnum<{
|
|
21
|
+
semantic: "semantic";
|
|
22
|
+
element_id: "element_id";
|
|
23
|
+
selector: "selector";
|
|
24
|
+
}>;
|
|
25
|
+
text: z.ZodOptional<z.ZodString>;
|
|
26
|
+
role: z.ZodOptional<z.ZodString>;
|
|
27
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const BrowserEventPayloadSchema: z.ZodObject<{
|
|
31
|
+
tool: z.ZodEnum<{
|
|
32
|
+
browser_open: "browser_open";
|
|
33
|
+
browser_observe: "browser_observe";
|
|
34
|
+
browser_act: "browser_act";
|
|
35
|
+
browser_screenshot: "browser_screenshot";
|
|
36
|
+
browser_extract: "browser_extract";
|
|
37
|
+
browser_close: "browser_close";
|
|
38
|
+
}>;
|
|
39
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
fill: "fill";
|
|
41
|
+
click: "click";
|
|
42
|
+
press: "press";
|
|
43
|
+
select: "select";
|
|
44
|
+
hover: "hover";
|
|
45
|
+
scroll_to: "scroll_to";
|
|
46
|
+
wait_for: "wait_for";
|
|
47
|
+
}>>;
|
|
48
|
+
toolUseId: z.ZodString;
|
|
49
|
+
backend: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
playwright: "playwright";
|
|
51
|
+
"agent-browser": "agent-browser";
|
|
52
|
+
}>>;
|
|
53
|
+
backendReason: z.ZodOptional<z.ZodString>;
|
|
54
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
kind: z.ZodEnum<{
|
|
56
|
+
semantic: "semantic";
|
|
57
|
+
element_id: "element_id";
|
|
58
|
+
selector: "selector";
|
|
59
|
+
}>;
|
|
60
|
+
text: z.ZodOptional<z.ZodString>;
|
|
61
|
+
role: z.ZodOptional<z.ZodString>;
|
|
62
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
urlBefore: z.ZodNullable<z.ZodString>;
|
|
66
|
+
urlAfter: z.ZodNullable<z.ZodString>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
ok: "ok";
|
|
69
|
+
error: "error";
|
|
70
|
+
ambiguous_target: "ambiguous_target";
|
|
71
|
+
blocked_by_policy: "blocked_by_policy";
|
|
72
|
+
}>;
|
|
73
|
+
screenshotPath: z.ZodOptional<z.ZodString>;
|
|
74
|
+
observationSummary: z.ZodOptional<z.ZodString>;
|
|
75
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
reason: z.ZodString;
|
|
77
|
+
recoverable: z.ZodBoolean;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
durationMs: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompactionTriggerSchema: z.ZodEnum<{
|
|
3
|
+
manual: "manual";
|
|
4
|
+
token_threshold: "token_threshold";
|
|
5
|
+
turn_count: "turn_count";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const CompactionSidecarRefSchema: z.ZodObject<{
|
|
8
|
+
path: z.ZodString;
|
|
9
|
+
sizeBytes: z.ZodNumber;
|
|
10
|
+
sha256: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const CompactionPayloadInputSchema: z.ZodObject<{
|
|
13
|
+
trigger: z.ZodEnum<{
|
|
14
|
+
manual: "manual";
|
|
15
|
+
token_threshold: "token_threshold";
|
|
16
|
+
turn_count: "turn_count";
|
|
17
|
+
}>;
|
|
18
|
+
preCompactionMessages: z.ZodArray<z.ZodUnknown>;
|
|
19
|
+
summary: z.ZodString;
|
|
20
|
+
keptTailCount: z.ZodNumber;
|
|
21
|
+
keepLastNConfig: z.ZodNumber;
|
|
22
|
+
messagesBefore: z.ZodNumber;
|
|
23
|
+
messagesAfter: z.ZodNumber;
|
|
24
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
input: z.ZodNumber;
|
|
27
|
+
output: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const CompactionPayloadPersistedSchema: z.ZodObject<{
|
|
31
|
+
trigger: z.ZodEnum<{
|
|
32
|
+
manual: "manual";
|
|
33
|
+
token_threshold: "token_threshold";
|
|
34
|
+
turn_count: "turn_count";
|
|
35
|
+
}>;
|
|
36
|
+
preCompactionMessagesRef: z.ZodObject<{
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
sizeBytes: z.ZodNumber;
|
|
39
|
+
sha256: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
summary: z.ZodString;
|
|
42
|
+
keptTailCount: z.ZodNumber;
|
|
43
|
+
keepLastNConfig: z.ZodNumber;
|
|
44
|
+
messagesBefore: z.ZodNumber;
|
|
45
|
+
messagesAfter: z.ZodNumber;
|
|
46
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
input: z.ZodNumber;
|
|
49
|
+
output: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export { BackgroundAgentCancelledPayloadSchema } from './background-agent-schema.js';
|
|
3
|
+
export { BrowserEventToolSchema, BrowserActActionSchema, BrowserEventTargetSchema, BrowserEventPayloadSchema, } from './events.browser.js';
|
|
4
|
+
export { CompactionTriggerSchema, CompactionSidecarRefSchema, CompactionPayloadInputSchema, CompactionPayloadPersistedSchema, } from './events.compaction.js';
|
|
5
|
+
export { SessionPhaseNameSchema, SessionPhasePayloadSchema } from './events.session-phase.js';
|
|
3
6
|
export declare const ToolCallStartedPayloadSchema: z.ZodObject<{
|
|
4
7
|
phase: z.ZodLiteral<"started">;
|
|
5
8
|
toolUseId: z.ZodString;
|
|
@@ -328,56 +331,6 @@ export declare const AbortPayloadSchema: z.ZodObject<{
|
|
|
328
331
|
cascadedTo: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
329
332
|
reason: z.ZodOptional<z.ZodString>;
|
|
330
333
|
}, z.core.$strip>;
|
|
331
|
-
export declare const CompactionTriggerSchema: z.ZodEnum<{
|
|
332
|
-
manual: "manual";
|
|
333
|
-
token_threshold: "token_threshold";
|
|
334
|
-
turn_count: "turn_count";
|
|
335
|
-
}>;
|
|
336
|
-
export declare const CompactionSidecarRefSchema: z.ZodObject<{
|
|
337
|
-
path: z.ZodString;
|
|
338
|
-
sizeBytes: z.ZodNumber;
|
|
339
|
-
sha256: z.ZodString;
|
|
340
|
-
}, z.core.$strip>;
|
|
341
|
-
export declare const CompactionPayloadInputSchema: z.ZodObject<{
|
|
342
|
-
trigger: z.ZodEnum<{
|
|
343
|
-
manual: "manual";
|
|
344
|
-
token_threshold: "token_threshold";
|
|
345
|
-
turn_count: "turn_count";
|
|
346
|
-
}>;
|
|
347
|
-
preCompactionMessages: z.ZodArray<z.ZodUnknown>;
|
|
348
|
-
summary: z.ZodString;
|
|
349
|
-
keptTailCount: z.ZodNumber;
|
|
350
|
-
keepLastNConfig: z.ZodNumber;
|
|
351
|
-
messagesBefore: z.ZodNumber;
|
|
352
|
-
messagesAfter: z.ZodNumber;
|
|
353
|
-
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
354
|
-
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
355
|
-
input: z.ZodNumber;
|
|
356
|
-
output: z.ZodNumber;
|
|
357
|
-
}, z.core.$strip>>;
|
|
358
|
-
}, z.core.$strip>;
|
|
359
|
-
export declare const CompactionPayloadPersistedSchema: z.ZodObject<{
|
|
360
|
-
trigger: z.ZodEnum<{
|
|
361
|
-
manual: "manual";
|
|
362
|
-
token_threshold: "token_threshold";
|
|
363
|
-
turn_count: "turn_count";
|
|
364
|
-
}>;
|
|
365
|
-
preCompactionMessagesRef: z.ZodObject<{
|
|
366
|
-
path: z.ZodString;
|
|
367
|
-
sizeBytes: z.ZodNumber;
|
|
368
|
-
sha256: z.ZodString;
|
|
369
|
-
}, z.core.$strip>;
|
|
370
|
-
summary: z.ZodString;
|
|
371
|
-
keptTailCount: z.ZodNumber;
|
|
372
|
-
keepLastNConfig: z.ZodNumber;
|
|
373
|
-
messagesBefore: z.ZodNumber;
|
|
374
|
-
messagesAfter: z.ZodNumber;
|
|
375
|
-
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
377
|
-
input: z.ZodNumber;
|
|
378
|
-
output: z.ZodNumber;
|
|
379
|
-
}, z.core.$strip>>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
334
|
export declare const ClosureReasonSchema: z.ZodEnum<{
|
|
382
335
|
abort: "abort";
|
|
383
336
|
timeout: "timeout";
|
|
@@ -417,167 +370,11 @@ export declare const ClaimPayloadSchema: z.ZodObject<{
|
|
|
417
370
|
confidence: z.ZodNumber;
|
|
418
371
|
dissent: z.ZodOptional<z.ZodString>;
|
|
419
372
|
}, z.core.$strip>;
|
|
420
|
-
export declare const BrowserEventToolSchema: z.ZodEnum<{
|
|
421
|
-
browser_open: "browser_open";
|
|
422
|
-
browser_observe: "browser_observe";
|
|
423
|
-
browser_act: "browser_act";
|
|
424
|
-
browser_screenshot: "browser_screenshot";
|
|
425
|
-
browser_extract: "browser_extract";
|
|
426
|
-
browser_close: "browser_close";
|
|
427
|
-
}>;
|
|
428
|
-
export declare const BrowserActActionSchema: z.ZodEnum<{
|
|
429
|
-
fill: "fill";
|
|
430
|
-
click: "click";
|
|
431
|
-
press: "press";
|
|
432
|
-
select: "select";
|
|
433
|
-
hover: "hover";
|
|
434
|
-
scroll_to: "scroll_to";
|
|
435
|
-
wait_for: "wait_for";
|
|
436
|
-
}>;
|
|
437
|
-
export declare const BrowserEventTargetSchema: z.ZodObject<{
|
|
438
|
-
kind: z.ZodEnum<{
|
|
439
|
-
semantic: "semantic";
|
|
440
|
-
element_id: "element_id";
|
|
441
|
-
selector: "selector";
|
|
442
|
-
}>;
|
|
443
|
-
text: z.ZodOptional<z.ZodString>;
|
|
444
|
-
role: z.ZodOptional<z.ZodString>;
|
|
445
|
-
elementId: z.ZodOptional<z.ZodString>;
|
|
446
|
-
selectorHash: z.ZodOptional<z.ZodString>;
|
|
447
|
-
}, z.core.$strip>;
|
|
448
373
|
export declare const QueuedUserMessagePayloadSchema: z.ZodObject<{
|
|
449
374
|
jobId: z.ZodString;
|
|
450
375
|
subagentId: z.ZodString;
|
|
451
376
|
byteLength: z.ZodNumber;
|
|
452
377
|
}, z.core.$strip>;
|
|
453
|
-
export declare const BrowserEventPayloadSchema: z.ZodObject<{
|
|
454
|
-
tool: z.ZodEnum<{
|
|
455
|
-
browser_open: "browser_open";
|
|
456
|
-
browser_observe: "browser_observe";
|
|
457
|
-
browser_act: "browser_act";
|
|
458
|
-
browser_screenshot: "browser_screenshot";
|
|
459
|
-
browser_extract: "browser_extract";
|
|
460
|
-
browser_close: "browser_close";
|
|
461
|
-
}>;
|
|
462
|
-
action: z.ZodOptional<z.ZodEnum<{
|
|
463
|
-
fill: "fill";
|
|
464
|
-
click: "click";
|
|
465
|
-
press: "press";
|
|
466
|
-
select: "select";
|
|
467
|
-
hover: "hover";
|
|
468
|
-
scroll_to: "scroll_to";
|
|
469
|
-
wait_for: "wait_for";
|
|
470
|
-
}>>;
|
|
471
|
-
toolUseId: z.ZodString;
|
|
472
|
-
backend: z.ZodOptional<z.ZodEnum<{
|
|
473
|
-
playwright: "playwright";
|
|
474
|
-
"agent-browser": "agent-browser";
|
|
475
|
-
}>>;
|
|
476
|
-
backendReason: z.ZodOptional<z.ZodString>;
|
|
477
|
-
target: z.ZodOptional<z.ZodObject<{
|
|
478
|
-
kind: z.ZodEnum<{
|
|
479
|
-
semantic: "semantic";
|
|
480
|
-
element_id: "element_id";
|
|
481
|
-
selector: "selector";
|
|
482
|
-
}>;
|
|
483
|
-
text: z.ZodOptional<z.ZodString>;
|
|
484
|
-
role: z.ZodOptional<z.ZodString>;
|
|
485
|
-
elementId: z.ZodOptional<z.ZodString>;
|
|
486
|
-
selectorHash: z.ZodOptional<z.ZodString>;
|
|
487
|
-
}, z.core.$strip>>;
|
|
488
|
-
urlBefore: z.ZodNullable<z.ZodString>;
|
|
489
|
-
urlAfter: z.ZodNullable<z.ZodString>;
|
|
490
|
-
status: z.ZodEnum<{
|
|
491
|
-
ok: "ok";
|
|
492
|
-
error: "error";
|
|
493
|
-
ambiguous_target: "ambiguous_target";
|
|
494
|
-
blocked_by_policy: "blocked_by_policy";
|
|
495
|
-
}>;
|
|
496
|
-
screenshotPath: z.ZodOptional<z.ZodString>;
|
|
497
|
-
observationSummary: z.ZodOptional<z.ZodString>;
|
|
498
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
499
|
-
reason: z.ZodString;
|
|
500
|
-
recoverable: z.ZodBoolean;
|
|
501
|
-
}, z.core.$strip>>;
|
|
502
|
-
durationMs: z.ZodNumber;
|
|
503
|
-
}, z.core.$strip>;
|
|
504
|
-
export declare const SessionPhaseNameSchema: z.ZodEnum<{
|
|
505
|
-
bootstrap_start: "bootstrap_start";
|
|
506
|
-
bootstrap_done: "bootstrap_done";
|
|
507
|
-
session_init_start: "session_init_start";
|
|
508
|
-
session_init_done: "session_init_done";
|
|
509
|
-
mcp_connect_start: "mcp_connect_start";
|
|
510
|
-
mcp_connect_done: "mcp_connect_done";
|
|
511
|
-
mcp_server_start: "mcp_server_start";
|
|
512
|
-
mcp_server_done: "mcp_server_done";
|
|
513
|
-
loop_start: "loop_start";
|
|
514
|
-
loop_end: "loop_end";
|
|
515
|
-
model_ttfb: "model_ttfb";
|
|
516
|
-
interrupt_halt: "interrupt_halt";
|
|
517
|
-
rate_limit: "rate_limit";
|
|
518
|
-
ttfb_timeout: "ttfb_timeout";
|
|
519
|
-
usage_limit_pause: "usage_limit_pause";
|
|
520
|
-
usage_limit_resume: "usage_limit_resume";
|
|
521
|
-
overload_pause: "overload_pause";
|
|
522
|
-
overload_resume: "overload_resume";
|
|
523
|
-
idle_watchdog_fired: "idle_watchdog_fired";
|
|
524
|
-
pause_extension_granted: "pause_extension_granted";
|
|
525
|
-
suspected_loop: "suspected_loop";
|
|
526
|
-
compaction_disabled: "compaction_disabled";
|
|
527
|
-
boot_warning: "boot_warning";
|
|
528
|
-
workspace_subscribed: "workspace_subscribed";
|
|
529
|
-
workspace_delivery: "workspace_delivery";
|
|
530
|
-
gate_shape: "gate_shape";
|
|
531
|
-
session_id_assigned: "session_id_assigned";
|
|
532
|
-
}>;
|
|
533
|
-
export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
534
|
-
phase: z.ZodEnum<{
|
|
535
|
-
bootstrap_start: "bootstrap_start";
|
|
536
|
-
bootstrap_done: "bootstrap_done";
|
|
537
|
-
session_init_start: "session_init_start";
|
|
538
|
-
session_init_done: "session_init_done";
|
|
539
|
-
mcp_connect_start: "mcp_connect_start";
|
|
540
|
-
mcp_connect_done: "mcp_connect_done";
|
|
541
|
-
mcp_server_start: "mcp_server_start";
|
|
542
|
-
mcp_server_done: "mcp_server_done";
|
|
543
|
-
loop_start: "loop_start";
|
|
544
|
-
loop_end: "loop_end";
|
|
545
|
-
model_ttfb: "model_ttfb";
|
|
546
|
-
interrupt_halt: "interrupt_halt";
|
|
547
|
-
rate_limit: "rate_limit";
|
|
548
|
-
ttfb_timeout: "ttfb_timeout";
|
|
549
|
-
usage_limit_pause: "usage_limit_pause";
|
|
550
|
-
usage_limit_resume: "usage_limit_resume";
|
|
551
|
-
overload_pause: "overload_pause";
|
|
552
|
-
overload_resume: "overload_resume";
|
|
553
|
-
idle_watchdog_fired: "idle_watchdog_fired";
|
|
554
|
-
pause_extension_granted: "pause_extension_granted";
|
|
555
|
-
suspected_loop: "suspected_loop";
|
|
556
|
-
compaction_disabled: "compaction_disabled";
|
|
557
|
-
boot_warning: "boot_warning";
|
|
558
|
-
workspace_subscribed: "workspace_subscribed";
|
|
559
|
-
workspace_delivery: "workspace_delivery";
|
|
560
|
-
gate_shape: "gate_shape";
|
|
561
|
-
session_id_assigned: "session_id_assigned";
|
|
562
|
-
}>;
|
|
563
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
564
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
565
|
-
model: z.ZodOptional<z.ZodString>;
|
|
566
|
-
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
567
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
568
|
-
cli: "cli";
|
|
569
|
-
telegram: "telegram";
|
|
570
|
-
daemon: "daemon";
|
|
571
|
-
web: "web";
|
|
572
|
-
unknown: "unknown";
|
|
573
|
-
}>>;
|
|
574
|
-
actor: z.ZodOptional<z.ZodEnum<{
|
|
575
|
-
main: "main";
|
|
576
|
-
subagent: "subagent";
|
|
577
|
-
}>>;
|
|
578
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
579
|
-
priorSessionId: z.ZodOptional<z.ZodString>;
|
|
580
|
-
}, z.core.$strip>;
|
|
581
378
|
export declare const SessionSealedPayloadSchema: z.ZodObject<{
|
|
582
379
|
status: z.ZodEnum<{
|
|
583
380
|
failed: "failed";
|
|
@@ -926,6 +723,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
926
723
|
workspace_delivery: "workspace_delivery";
|
|
927
724
|
gate_shape: "gate_shape";
|
|
928
725
|
session_id_assigned: "session_id_assigned";
|
|
726
|
+
many_image_degraded: "many_image_degraded";
|
|
929
727
|
}>;
|
|
930
728
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
931
729
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1303,6 +1101,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1303
1101
|
workspace_delivery: "workspace_delivery";
|
|
1304
1102
|
gate_shape: "gate_shape";
|
|
1305
1103
|
session_id_assigned: "session_id_assigned";
|
|
1104
|
+
many_image_degraded: "many_image_degraded";
|
|
1306
1105
|
}>;
|
|
1307
1106
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1308
1107
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SessionPhaseNameSchema: z.ZodEnum<{
|
|
3
|
+
bootstrap_start: "bootstrap_start";
|
|
4
|
+
bootstrap_done: "bootstrap_done";
|
|
5
|
+
session_init_start: "session_init_start";
|
|
6
|
+
session_init_done: "session_init_done";
|
|
7
|
+
mcp_connect_start: "mcp_connect_start";
|
|
8
|
+
mcp_connect_done: "mcp_connect_done";
|
|
9
|
+
mcp_server_start: "mcp_server_start";
|
|
10
|
+
mcp_server_done: "mcp_server_done";
|
|
11
|
+
loop_start: "loop_start";
|
|
12
|
+
loop_end: "loop_end";
|
|
13
|
+
model_ttfb: "model_ttfb";
|
|
14
|
+
interrupt_halt: "interrupt_halt";
|
|
15
|
+
rate_limit: "rate_limit";
|
|
16
|
+
ttfb_timeout: "ttfb_timeout";
|
|
17
|
+
usage_limit_pause: "usage_limit_pause";
|
|
18
|
+
usage_limit_resume: "usage_limit_resume";
|
|
19
|
+
overload_pause: "overload_pause";
|
|
20
|
+
overload_resume: "overload_resume";
|
|
21
|
+
idle_watchdog_fired: "idle_watchdog_fired";
|
|
22
|
+
pause_extension_granted: "pause_extension_granted";
|
|
23
|
+
suspected_loop: "suspected_loop";
|
|
24
|
+
compaction_disabled: "compaction_disabled";
|
|
25
|
+
boot_warning: "boot_warning";
|
|
26
|
+
workspace_subscribed: "workspace_subscribed";
|
|
27
|
+
workspace_delivery: "workspace_delivery";
|
|
28
|
+
gate_shape: "gate_shape";
|
|
29
|
+
session_id_assigned: "session_id_assigned";
|
|
30
|
+
many_image_degraded: "many_image_degraded";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
33
|
+
phase: z.ZodEnum<{
|
|
34
|
+
bootstrap_start: "bootstrap_start";
|
|
35
|
+
bootstrap_done: "bootstrap_done";
|
|
36
|
+
session_init_start: "session_init_start";
|
|
37
|
+
session_init_done: "session_init_done";
|
|
38
|
+
mcp_connect_start: "mcp_connect_start";
|
|
39
|
+
mcp_connect_done: "mcp_connect_done";
|
|
40
|
+
mcp_server_start: "mcp_server_start";
|
|
41
|
+
mcp_server_done: "mcp_server_done";
|
|
42
|
+
loop_start: "loop_start";
|
|
43
|
+
loop_end: "loop_end";
|
|
44
|
+
model_ttfb: "model_ttfb";
|
|
45
|
+
interrupt_halt: "interrupt_halt";
|
|
46
|
+
rate_limit: "rate_limit";
|
|
47
|
+
ttfb_timeout: "ttfb_timeout";
|
|
48
|
+
usage_limit_pause: "usage_limit_pause";
|
|
49
|
+
usage_limit_resume: "usage_limit_resume";
|
|
50
|
+
overload_pause: "overload_pause";
|
|
51
|
+
overload_resume: "overload_resume";
|
|
52
|
+
idle_watchdog_fired: "idle_watchdog_fired";
|
|
53
|
+
pause_extension_granted: "pause_extension_granted";
|
|
54
|
+
suspected_loop: "suspected_loop";
|
|
55
|
+
compaction_disabled: "compaction_disabled";
|
|
56
|
+
boot_warning: "boot_warning";
|
|
57
|
+
workspace_subscribed: "workspace_subscribed";
|
|
58
|
+
workspace_delivery: "workspace_delivery";
|
|
59
|
+
gate_shape: "gate_shape";
|
|
60
|
+
session_id_assigned: "session_id_assigned";
|
|
61
|
+
many_image_degraded: "many_image_degraded";
|
|
62
|
+
}>;
|
|
63
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
65
|
+
model: z.ZodOptional<z.ZodString>;
|
|
66
|
+
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
67
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
cli: "cli";
|
|
69
|
+
telegram: "telegram";
|
|
70
|
+
daemon: "daemon";
|
|
71
|
+
web: "web";
|
|
72
|
+
unknown: "unknown";
|
|
73
|
+
}>>;
|
|
74
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
main: "main";
|
|
76
|
+
subagent: "subagent";
|
|
77
|
+
}>>;
|
|
78
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
priorSessionId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
@@ -178,7 +178,7 @@ export interface BrowserEventPayload {
|
|
|
178
178
|
};
|
|
179
179
|
durationMs: number;
|
|
180
180
|
}
|
|
181
|
-
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' | 'workspace_subscribed' | 'workspace_delivery' | 'gate_shape' | 'session_id_assigned';
|
|
181
|
+
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' | 'workspace_subscribed' | 'workspace_delivery' | 'gate_shape' | 'session_id_assigned' | 'many_image_degraded';
|
|
182
182
|
export interface SessionPhasePayload {
|
|
183
183
|
phase: SessionPhaseName;
|
|
184
184
|
durationMs?: number;
|