@opencode/client 0.0.0-dev-21599 → 0.0.0-dev-21603

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.
Files changed (61) hide show
  1. package/dist/chunks/{service-timing-b6wmvv71.js → service-probe-0yt83ffw.js} +1 -1
  2. package/dist/chunks/{service-timing-f0mehgdh.js → service-probe-1wp7yhqk.js} +10 -10
  3. package/dist/chunks/service-probe-2kam2gy2.js +30 -0
  4. package/dist/chunks/{service-timing-g22sa7qz.js → service-probe-3gaxfvs6.js} +19 -19
  5. package/dist/chunks/{service-timing-61wt4y9h.js → service-probe-61wt4y9h.js} +1 -1
  6. package/dist/chunks/{service-timing-6vp15eh6.js → service-probe-6vp15eh6.js} +1 -1
  7. package/dist/chunks/{service-timing-y2etg5bs.js → service-probe-7f0py9js.js} +2 -2
  8. package/dist/chunks/{service-timing-8bbb028w.js → service-probe-8bbb028w.js} +1 -1
  9. package/dist/chunks/{service-timing-8ye1ye6f.js → service-probe-8ye1ye6f.js} +2 -2
  10. package/dist/chunks/{service-timing-15p82y03.js → service-probe-anregfhs.js} +5 -5
  11. package/dist/chunks/{service-timing-nwcpakzx.js → service-probe-js54wxgp.js} +2 -2
  12. package/dist/chunks/{service-timing-7j6qs0tw.js → service-probe-q8jx5gjp.js} +17 -17
  13. package/dist/chunks/{service-timing-ryy6kscr.js → service-probe-ryy6kscr.js} +1 -1
  14. package/dist/contract.js +1 -1
  15. package/dist/effect/client.d.ts +678 -678
  16. package/dist/effect/client.js +12 -12
  17. package/dist/effect/generated/client-error.js +3 -3
  18. package/dist/effect/generated/client.d.ts +448 -448
  19. package/dist/effect/generated/client.js +5 -5
  20. package/dist/effect/generated/index.js +8 -8
  21. package/dist/effect/index.js +12 -12
  22. package/dist/effect/rpc.js +4 -4
  23. package/dist/effect/service.js +6 -6
  24. package/dist/mcp.d.ts +44 -0
  25. package/dist/mcp.js +110 -0
  26. package/dist/promise/client.js +11 -11
  27. package/dist/promise/generated/client-error.js +3 -3
  28. package/dist/promise/generated/client.js +4 -4
  29. package/dist/promise/generated/index.js +8 -8
  30. package/dist/promise/generated/types.js +1 -1
  31. package/dist/promise/index.js +12 -12
  32. package/dist/promise/rpc.js +2 -2
  33. package/dist/promise/service.js +6 -6
  34. package/dist/pty-handoff.js +1 -1
  35. package/dist/rpc-runtime.js +1 -1
  36. package/dist/service-contender.js +1 -1
  37. package/dist/service-probe.js +3 -3
  38. package/dist/service-timing.js +1 -1
  39. package/dist/service-version.js +1 -1
  40. package/dist/service.js +1 -1
  41. package/dist/shared-events.js +1 -1
  42. package/dist/solid/connection.js +1 -1
  43. package/dist/solid/data.js +9 -9
  44. package/dist/solid/index.js +12 -12
  45. package/dist/solid/pty.js +1 -1
  46. package/dist/solid/usage.js +1 -1
  47. package/package.json +9 -4
  48. package/dist/chunks/service-timing-bd9wd9zc.js +0 -30
  49. /package/dist/chunks/{service-timing-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
  50. /package/dist/chunks/{service-timing-8s2anffy.js → service-probe-8s2anffy.js} +0 -0
  51. /package/dist/chunks/{service-timing-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
  52. /package/dist/chunks/{service-timing-ezt8t3fk.js → service-probe-ezt8t3fk.js} +0 -0
  53. /package/dist/chunks/{service-timing-gne7h7mq.js → service-probe-gne7h7mq.js} +0 -0
  54. /package/dist/chunks/{service-timing-m2eywc8w.js → service-probe-m2eywc8w.js} +0 -0
  55. /package/dist/chunks/{service-timing-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
  56. /package/dist/chunks/{service-timing-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
  57. /package/dist/chunks/{service-timing-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
  58. /package/dist/chunks/{service-timing-vmytr4q8.js → service-probe-vmytr4q8.js} +0 -0
  59. /package/dist/chunks/{service-timing-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
  60. /package/dist/chunks/{service-timing-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
  61. /package/dist/chunks/{service-timing-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
@@ -251,7 +251,7 @@ export declare const make: (options?: {
251
251
  readonly metadata?: {
252
252
  readonly [x: string]: unknown;
253
253
  } | undefined;
254
- readonly type: "skill.updated";
254
+ readonly type: "provider.updated";
255
255
  readonly location?: {
256
256
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
257
257
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -263,14 +263,26 @@ export declare const make: (options?: {
263
263
  readonly metadata?: {
264
264
  readonly [x: string]: unknown;
265
265
  } | undefined;
266
- readonly type: "credential.switched";
266
+ readonly type: "permission.asked";
267
267
  readonly location?: {
268
268
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
269
269
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
270
270
  } | undefined;
271
271
  readonly data: {
272
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
273
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
272
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
273
+ readonly action: string;
274
+ readonly resources: readonly string[];
275
+ readonly save?: readonly string[] | undefined;
276
+ readonly metadata?: {
277
+ readonly [x: string]: unknown;
278
+ } | undefined;
279
+ readonly source?: {
280
+ readonly type: "tool";
281
+ readonly messageID: string;
282
+ readonly id: string;
283
+ } | undefined;
284
+ readonly message?: string | undefined;
285
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
274
286
  };
275
287
  } | {
276
288
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -278,54 +290,30 @@ export declare const make: (options?: {
278
290
  readonly metadata?: {
279
291
  readonly [x: string]: unknown;
280
292
  } | undefined;
281
- readonly type: "credential.updated";
293
+ readonly type: "permission.replied";
282
294
  readonly location?: {
283
295
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
284
296
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
285
297
  } | undefined;
286
- readonly data: {};
298
+ readonly data: {
299
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
300
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
301
+ readonly reply: "always" | "once" | "reject";
302
+ };
287
303
  } | {
288
304
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
289
305
  readonly created: number;
290
306
  readonly metadata?: {
291
307
  readonly [x: string]: unknown;
292
308
  } | undefined;
293
- readonly type: "session.created";
294
- readonly durable: {
295
- readonly aggregateID: string;
296
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
297
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
298
- };
309
+ readonly type: "filesystem.changed";
299
310
  readonly location?: {
300
311
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
301
312
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
302
313
  } | undefined;
303
314
  readonly data: {
304
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
305
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
306
- readonly location: {
307
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
308
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
309
- };
310
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
311
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
312
- readonly slug: string;
313
- readonly title?: string | undefined;
314
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
315
- readonly model?: {
316
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
317
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
318
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
319
- } | undefined;
320
- readonly metadata?: {
321
- readonly [x: string]: import("effect/Schema").Json;
322
- } | undefined;
323
- readonly permissions?: readonly {
324
- readonly action: string;
325
- readonly resource: string;
326
- readonly effect: "allow" | "ask" | "deny";
327
- }[] | undefined;
328
- readonly version: string;
315
+ readonly file: string;
316
+ readonly event: "add" | "change" | "unlink";
329
317
  };
330
318
  } | {
331
319
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -333,7 +321,7 @@ export declare const make: (options?: {
333
321
  readonly metadata?: {
334
322
  readonly [x: string]: unknown;
335
323
  } | undefined;
336
- readonly type: "session.agent.selected";
324
+ readonly type: "worktree.resolved";
337
325
  readonly durable: {
338
326
  readonly aggregateID: string;
339
327
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -344,9 +332,10 @@ export declare const make: (options?: {
344
332
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
345
333
  } | undefined;
346
334
  readonly data: {
347
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
348
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
349
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
335
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
336
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
337
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
338
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
350
339
  };
351
340
  } | {
352
341
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -354,28 +343,13 @@ export declare const make: (options?: {
354
343
  readonly metadata?: {
355
344
  readonly [x: string]: unknown;
356
345
  } | undefined;
357
- readonly type: "session.model.selected";
358
- readonly durable: {
359
- readonly aggregateID: string;
360
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
361
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
362
- };
346
+ readonly type: "worktree.updated";
363
347
  readonly location?: {
364
348
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
365
349
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
366
350
  } | undefined;
367
351
  readonly data: {
368
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
369
- readonly model: {
370
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
371
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
372
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
373
- };
374
- readonly previous?: {
375
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
376
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
377
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
378
- } | undefined;
352
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
379
353
  };
380
354
  } | {
381
355
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -383,24 +357,13 @@ export declare const make: (options?: {
383
357
  readonly metadata?: {
384
358
  readonly [x: string]: unknown;
385
359
  } | undefined;
386
- readonly type: "session.moved";
387
- readonly durable: {
388
- readonly aggregateID: string;
389
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
390
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
391
- };
360
+ readonly type: "installation.update-available";
392
361
  readonly location?: {
393
362
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
394
363
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
395
364
  } | undefined;
396
365
  readonly data: {
397
- readonly location: {
398
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
399
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
400
- };
401
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
402
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
403
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
366
+ readonly version: string;
404
367
  };
405
368
  } | {
406
369
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -408,19 +371,13 @@ export declare const make: (options?: {
408
371
  readonly metadata?: {
409
372
  readonly [x: string]: unknown;
410
373
  } | undefined;
411
- readonly type: "session.renamed";
412
- readonly durable: {
413
- readonly aggregateID: string;
414
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
415
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
416
- };
374
+ readonly type: "installation.updated";
417
375
  readonly location?: {
418
376
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
419
377
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
420
378
  } | undefined;
421
379
  readonly data: {
422
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
423
- readonly title: string;
380
+ readonly version: string;
424
381
  };
425
382
  } | {
426
383
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -428,65 +385,37 @@ export declare const make: (options?: {
428
385
  readonly metadata?: {
429
386
  readonly [x: string]: unknown;
430
387
  } | undefined;
431
- readonly type: "session.metadata.updated";
432
- readonly durable: {
433
- readonly aggregateID: string;
434
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
435
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
436
- };
388
+ readonly type: "models-dev.refreshed";
437
389
  readonly location?: {
438
390
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
439
391
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
440
392
  } | undefined;
441
- readonly data: {
442
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
443
- readonly metadata: {
444
- readonly [x: string]: import("effect/Schema").Json;
445
- };
446
- };
393
+ readonly data: {};
447
394
  } | {
448
395
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
449
396
  readonly created: number;
450
397
  readonly metadata?: {
451
398
  readonly [x: string]: unknown;
452
399
  } | undefined;
453
- readonly type: "session.permissions";
454
- readonly durable: {
455
- readonly aggregateID: string;
456
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
457
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
458
- };
400
+ readonly type: "reference.updated";
459
401
  readonly location?: {
460
402
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
461
403
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
462
404
  } | undefined;
463
- readonly data: {
464
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
465
- readonly permissions: readonly {
466
- readonly action: string;
467
- readonly resource: string;
468
- readonly effect: "allow" | "ask" | "deny";
469
- }[];
470
- };
405
+ readonly data: {};
471
406
  } | {
472
407
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
473
408
  readonly created: number;
474
409
  readonly metadata?: {
475
410
  readonly [x: string]: unknown;
476
411
  } | undefined;
477
- readonly type: "session.viewed";
478
- readonly durable: {
479
- readonly aggregateID: string;
480
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
481
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
482
- };
412
+ readonly type: "vcs.branch.updated";
483
413
  readonly location?: {
484
414
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
485
415
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
486
416
  } | undefined;
487
417
  readonly data: {
488
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
489
- readonly idle: number;
418
+ readonly branch?: string | undefined;
490
419
  };
491
420
  } | {
492
421
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -494,37 +423,39 @@ export declare const make: (options?: {
494
423
  readonly metadata?: {
495
424
  readonly [x: string]: unknown;
496
425
  } | undefined;
497
- readonly type: "session.archived";
498
- readonly durable: {
499
- readonly aggregateID: string;
500
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
501
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
426
+ readonly type: `rpc.${string}`;
427
+ readonly location: {
428
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
429
+ };
430
+ readonly data: {
431
+ readonly [x: string]: unknown;
502
432
  };
433
+ } | {
434
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
435
+ readonly created: number;
436
+ readonly metadata?: {
437
+ readonly [x: string]: unknown;
438
+ } | undefined;
439
+ readonly type: "location.shutdown";
503
440
  readonly location?: {
504
441
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
505
442
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
506
443
  } | undefined;
507
- readonly data: {
508
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
509
- };
444
+ readonly data: {};
510
445
  } | {
511
446
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
512
447
  readonly created: number;
513
448
  readonly metadata?: {
514
449
  readonly [x: string]: unknown;
515
450
  } | undefined;
516
- readonly type: "session.unarchived";
517
- readonly durable: {
518
- readonly aggregateID: string;
519
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
520
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
521
- };
451
+ readonly type: "credential.switched";
522
452
  readonly location?: {
523
453
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
524
454
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
525
455
  } | undefined;
526
456
  readonly data: {
527
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
457
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
458
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
528
459
  };
529
460
  } | {
530
461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -532,50 +463,55 @@ export declare const make: (options?: {
532
463
  readonly metadata?: {
533
464
  readonly [x: string]: unknown;
534
465
  } | undefined;
535
- readonly type: "session.usage.updated";
466
+ readonly type: "credential.updated";
536
467
  readonly location?: {
537
468
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
538
469
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
539
470
  } | undefined;
540
- readonly data: {
541
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
542
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
543
- readonly tokens: {
544
- readonly input: number;
545
- readonly output: number;
546
- readonly reasoning: number;
547
- readonly cache: {
548
- readonly read: number;
549
- readonly write: number;
550
- };
551
- };
552
- };
471
+ readonly data: {};
553
472
  } | {
554
473
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
555
474
  readonly created: number;
556
475
  readonly metadata?: {
557
476
  readonly [x: string]: unknown;
558
477
  } | undefined;
559
- readonly type: "session.deleted";
560
- readonly durable: {
561
- readonly aggregateID: string;
562
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
563
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
564
- };
478
+ readonly type: "integration.updated";
565
479
  readonly location?: {
566
480
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
567
481
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
568
482
  } | undefined;
569
- readonly data: {
570
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
571
- };
483
+ readonly data: {};
572
484
  } | {
573
485
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
574
486
  readonly created: number;
575
487
  readonly metadata?: {
576
488
  readonly [x: string]: unknown;
577
489
  } | undefined;
578
- readonly type: "session.forked";
490
+ readonly type: "model.updated";
491
+ readonly location?: {
492
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
493
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
494
+ } | undefined;
495
+ readonly data: {};
496
+ } | {
497
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
498
+ readonly created: number;
499
+ readonly metadata?: {
500
+ readonly [x: string]: unknown;
501
+ } | undefined;
502
+ readonly type: "agent.updated";
503
+ readonly location?: {
504
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
505
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
506
+ } | undefined;
507
+ readonly data: {};
508
+ } | {
509
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
510
+ readonly created: number;
511
+ readonly metadata?: {
512
+ readonly [x: string]: unknown;
513
+ } | undefined;
514
+ readonly type: "session.agent.selected";
579
515
  readonly durable: {
580
516
  readonly aggregateID: string;
581
517
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -587,22 +523,8 @@ export declare const make: (options?: {
587
523
  } | undefined;
588
524
  readonly data: {
589
525
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
590
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
591
- readonly boundary: {
592
- readonly type: "before";
593
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
594
- } | {
595
- readonly type: "through";
596
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
597
- };
598
- readonly instructions?: {
599
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
600
- } | undefined;
601
- readonly instructionEntries?: readonly {
602
- readonly key: string;
603
- readonly value: import("effect/Schema").Json;
604
- readonly removed: boolean;
605
- }[] | undefined;
526
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
527
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
606
528
  };
607
529
  } | {
608
530
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -610,7 +532,7 @@ export declare const make: (options?: {
610
532
  readonly metadata?: {
611
533
  readonly [x: string]: unknown;
612
534
  } | undefined;
613
- readonly type: "session.inbox.delivered";
535
+ readonly type: "session.archived";
614
536
  readonly durable: {
615
537
  readonly aggregateID: string;
616
538
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -622,7 +544,6 @@ export declare const make: (options?: {
622
544
  } | undefined;
623
545
  readonly data: {
624
546
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
625
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
626
547
  };
627
548
  } | {
628
549
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -630,7 +551,7 @@ export declare const make: (options?: {
630
551
  readonly metadata?: {
631
552
  readonly [x: string]: unknown;
632
553
  } | undefined;
633
- readonly type: "session.inbox.enqueued";
554
+ readonly type: "session.compaction.ended";
634
555
  readonly durable: {
635
556
  readonly aggregateID: string;
636
557
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -641,78 +562,27 @@ export declare const make: (options?: {
641
562
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
642
563
  } | undefined;
643
564
  readonly data: {
644
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
645
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
646
- readonly item: {
647
- readonly type: "user";
648
- readonly payload: {
649
- readonly text: string;
650
- readonly files?: readonly {
651
- readonly data: string;
652
- readonly mime: string;
653
- readonly source: {
654
- readonly type: "inline";
655
- } | {
656
- readonly type: "uri";
657
- readonly uri: string;
658
- };
659
- readonly name?: string | undefined;
660
- readonly description?: string | undefined;
661
- readonly mention?: {
662
- readonly start: number;
663
- readonly end: number;
664
- readonly text: string;
665
- } | undefined;
666
- }[] | undefined;
667
- readonly agents?: readonly {
668
- readonly name: string;
669
- readonly mention?: {
670
- readonly start: number;
671
- readonly end: number;
672
- readonly text: string;
673
- } | undefined;
674
- }[] | undefined;
675
- readonly skills?: readonly {
676
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
677
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
678
- readonly text?: string | undefined;
679
- readonly mention?: {
680
- readonly start: number;
681
- readonly end: number;
682
- readonly text: string;
683
- } | undefined;
684
- }[] | undefined;
685
- readonly metadata?: {
686
- readonly [x: string]: unknown;
687
- } | undefined;
688
- };
689
- readonly delivery: "queue" | "steer";
690
- } | {
691
- readonly type: "synthetic";
692
- readonly payload: {
693
- readonly text: string;
694
- readonly description?: string | undefined;
695
- readonly metadata?: {
696
- readonly [x: string]: unknown;
697
- } | undefined;
698
- };
699
- readonly delivery: "queue" | "steer";
700
- } | {
701
- readonly type: "compaction";
702
- readonly payload: {};
703
- readonly delivery: "queue" | "steer";
704
- } | {
705
- readonly type: "move";
706
- readonly payload: {
707
- readonly location: {
708
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
709
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
710
- };
711
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
712
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
565
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
566
+ readonly reason: "auto" | "manual";
567
+ readonly model?: {
568
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
569
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
570
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
571
+ } | undefined;
572
+ readonly native?: {
573
+ readonly [x: string]: unknown;
574
+ } | undefined;
575
+ readonly text: string;
576
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
577
+ readonly tokens?: {
578
+ readonly input: number;
579
+ readonly output: number;
580
+ readonly reasoning: number;
581
+ readonly cache: {
582
+ readonly read: number;
583
+ readonly write: number;
713
584
  };
714
- readonly delivery: "queue" | "steer";
715
- };
585
+ } | undefined;
716
586
  };
717
587
  } | {
718
588
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -720,7 +590,7 @@ export declare const make: (options?: {
720
590
  readonly metadata?: {
721
591
  readonly [x: string]: unknown;
722
592
  } | undefined;
723
- readonly type: "session.inbox.cancelled";
593
+ readonly type: "session.compaction.failed";
724
594
  readonly durable: {
725
595
  readonly aggregateID: string;
726
596
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -732,7 +602,27 @@ export declare const make: (options?: {
732
602
  } | undefined;
733
603
  readonly data: {
734
604
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
735
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
605
+ readonly reason: "auto" | "manual";
606
+ readonly error: {
607
+ readonly type: string;
608
+ readonly message: string;
609
+ readonly status?: number | undefined;
610
+ readonly response?: {
611
+ readonly body: string;
612
+ } | undefined;
613
+ readonly retryAfterMs?: number | undefined;
614
+ };
615
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
616
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
617
+ readonly tokens?: {
618
+ readonly input: number;
619
+ readonly output: number;
620
+ readonly reasoning: number;
621
+ readonly cache: {
622
+ readonly read: number;
623
+ readonly write: number;
624
+ };
625
+ } | undefined;
736
626
  };
737
627
  } | {
738
628
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -740,7 +630,7 @@ export declare const make: (options?: {
740
630
  readonly metadata?: {
741
631
  readonly [x: string]: unknown;
742
632
  } | undefined;
743
- readonly type: "session.inbox.delivery.changed";
633
+ readonly type: "session.compaction.started";
744
634
  readonly durable: {
745
635
  readonly aggregateID: string;
746
636
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -752,8 +642,8 @@ export declare const make: (options?: {
752
642
  } | undefined;
753
643
  readonly data: {
754
644
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
755
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
756
- readonly delivery: "queue" | "steer";
645
+ readonly reason: "auto" | "manual";
646
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
757
647
  };
758
648
  } | {
759
649
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -761,7 +651,7 @@ export declare const make: (options?: {
761
651
  readonly metadata?: {
762
652
  readonly [x: string]: unknown;
763
653
  } | undefined;
764
- readonly type: "session.execution.started";
654
+ readonly type: "session.created";
765
655
  readonly durable: {
766
656
  readonly aggregateID: string;
767
657
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -773,6 +663,30 @@ export declare const make: (options?: {
773
663
  } | undefined;
774
664
  readonly data: {
775
665
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
666
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
667
+ readonly location: {
668
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
669
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
670
+ };
671
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
672
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
673
+ readonly slug: string;
674
+ readonly title?: string | undefined;
675
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
676
+ readonly model?: {
677
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
678
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
679
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
680
+ } | undefined;
681
+ readonly metadata?: {
682
+ readonly [x: string]: import("effect/Schema").Json;
683
+ } | undefined;
684
+ readonly permissions?: readonly {
685
+ readonly action: string;
686
+ readonly resource: string;
687
+ readonly effect: "allow" | "ask" | "deny";
688
+ }[] | undefined;
689
+ readonly version: string;
776
690
  };
777
691
  } | {
778
692
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -780,7 +694,7 @@ export declare const make: (options?: {
780
694
  readonly metadata?: {
781
695
  readonly [x: string]: unknown;
782
696
  } | undefined;
783
- readonly type: "session.execution.succeeded";
697
+ readonly type: "session.deleted";
784
698
  readonly durable: {
785
699
  readonly aggregateID: string;
786
700
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -847,30 +761,7 @@ export declare const make: (options?: {
847
761
  readonly metadata?: {
848
762
  readonly [x: string]: unknown;
849
763
  } | undefined;
850
- readonly type: "session.instructions.updated";
851
- readonly durable: {
852
- readonly aggregateID: string;
853
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
854
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
855
- };
856
- readonly location?: {
857
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
858
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
859
- } | undefined;
860
- readonly data: {
861
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
862
- readonly delta: {
863
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
864
- };
865
- readonly text?: string | undefined;
866
- };
867
- } | {
868
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
869
- readonly created: number;
870
- readonly metadata?: {
871
- readonly [x: string]: unknown;
872
- } | undefined;
873
- readonly type: "session.synthetic";
764
+ readonly type: "session.execution.started";
874
765
  readonly durable: {
875
766
  readonly aggregateID: string;
876
767
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -882,11 +773,6 @@ export declare const make: (options?: {
882
773
  } | undefined;
883
774
  readonly data: {
884
775
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
885
- readonly text: string;
886
- readonly description?: string | undefined;
887
- readonly metadata?: {
888
- readonly [x: string]: unknown;
889
- } | undefined;
890
776
  };
891
777
  } | {
892
778
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -894,7 +780,7 @@ export declare const make: (options?: {
894
780
  readonly metadata?: {
895
781
  readonly [x: string]: unknown;
896
782
  } | undefined;
897
- readonly type: "session.skill.activated";
783
+ readonly type: "session.execution.succeeded";
898
784
  readonly durable: {
899
785
  readonly aggregateID: string;
900
786
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -906,9 +792,6 @@ export declare const make: (options?: {
906
792
  } | undefined;
907
793
  readonly data: {
908
794
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
909
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
910
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
911
- readonly text: string;
912
795
  };
913
796
  } | {
914
797
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -916,7 +799,7 @@ export declare const make: (options?: {
916
799
  readonly metadata?: {
917
800
  readonly [x: string]: unknown;
918
801
  } | undefined;
919
- readonly type: "session.shell.started";
802
+ readonly type: "session.forked";
920
803
  readonly durable: {
921
804
  readonly aggregateID: string;
922
805
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -928,24 +811,22 @@ export declare const make: (options?: {
928
811
  } | undefined;
929
812
  readonly data: {
930
813
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
931
- readonly shell: {
932
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
933
- readonly status: "exited" | "killed" | "running" | "timeout";
934
- readonly command: string;
935
- readonly cwd: string;
936
- readonly shell: string;
937
- readonly file: string;
938
- readonly pid?: number | undefined;
939
- readonly exit?: number | undefined;
940
- readonly signal?: string | undefined;
941
- readonly metadata: {
942
- readonly [x: string]: unknown;
943
- };
944
- readonly time: {
945
- readonly started: number;
946
- readonly completed?: number | undefined;
947
- };
814
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
815
+ readonly boundary: {
816
+ readonly type: "before";
817
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
818
+ } | {
819
+ readonly type: "through";
820
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
948
821
  };
822
+ readonly instructions?: {
823
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
824
+ } | undefined;
825
+ readonly instructionEntries?: readonly {
826
+ readonly key: string;
827
+ readonly value: import("effect/Schema").Json;
828
+ readonly removed: boolean;
829
+ }[] | undefined;
949
830
  };
950
831
  } | {
951
832
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -953,7 +834,7 @@ export declare const make: (options?: {
953
834
  readonly metadata?: {
954
835
  readonly [x: string]: unknown;
955
836
  } | undefined;
956
- readonly type: "session.shell.ended";
837
+ readonly type: "session.inbox.cancelled";
957
838
  readonly durable: {
958
839
  readonly aggregateID: string;
959
840
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -965,30 +846,7 @@ export declare const make: (options?: {
965
846
  } | undefined;
966
847
  readonly data: {
967
848
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
968
- readonly shell: {
969
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
970
- readonly status: "exited" | "killed" | "running" | "timeout";
971
- readonly command: string;
972
- readonly cwd: string;
973
- readonly shell: string;
974
- readonly file: string;
975
- readonly pid?: number | undefined;
976
- readonly exit?: number | undefined;
977
- readonly signal?: string | undefined;
978
- readonly metadata: {
979
- readonly [x: string]: unknown;
980
- };
981
- readonly time: {
982
- readonly started: number;
983
- readonly completed?: number | undefined;
984
- };
985
- };
986
- readonly output: {
987
- readonly output: string;
988
- readonly cursor: number;
989
- readonly size: number;
990
- readonly truncated: boolean;
991
- };
849
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
992
850
  };
993
851
  } | {
994
852
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -996,7 +854,7 @@ export declare const make: (options?: {
996
854
  readonly metadata?: {
997
855
  readonly [x: string]: unknown;
998
856
  } | undefined;
999
- readonly type: "session.step.started";
857
+ readonly type: "session.inbox.delivered";
1000
858
  readonly durable: {
1001
859
  readonly aggregateID: string;
1002
860
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1008,15 +866,7 @@ export declare const make: (options?: {
1008
866
  } | undefined;
1009
867
  readonly data: {
1010
868
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1011
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1012
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1013
- readonly model: {
1014
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1015
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1016
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1017
- };
1018
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1019
- readonly started: number;
869
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1020
870
  };
1021
871
  } | {
1022
872
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1024,7 +874,7 @@ export declare const make: (options?: {
1024
874
  readonly metadata?: {
1025
875
  readonly [x: string]: unknown;
1026
876
  } | undefined;
1027
- readonly type: "session.step.streamed";
877
+ readonly type: "session.inbox.delivery.changed";
1028
878
  readonly durable: {
1029
879
  readonly aggregateID: string;
1030
880
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1036,7 +886,8 @@ export declare const make: (options?: {
1036
886
  } | undefined;
1037
887
  readonly data: {
1038
888
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1039
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
889
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
890
+ readonly delivery: "queue" | "steer";
1040
891
  };
1041
892
  } | {
1042
893
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1044,7 +895,7 @@ export declare const make: (options?: {
1044
895
  readonly metadata?: {
1045
896
  readonly [x: string]: unknown;
1046
897
  } | undefined;
1047
- readonly type: "session.step.ended";
898
+ readonly type: "session.inbox.enqueued";
1048
899
  readonly durable: {
1049
900
  readonly aggregateID: string;
1050
901
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1056,24 +907,77 @@ export declare const make: (options?: {
1056
907
  } | undefined;
1057
908
  readonly data: {
1058
909
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1059
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1060
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1061
- readonly rawFinish?: string | undefined;
1062
- readonly native?: {
1063
- readonly [x: string]: unknown;
1064
- } | undefined;
1065
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1066
- readonly tokens: {
1067
- readonly input: number;
1068
- readonly output: number;
1069
- readonly reasoning: number;
1070
- readonly cache: {
1071
- readonly read: number;
1072
- readonly write: number;
910
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
911
+ readonly item: {
912
+ readonly type: "user";
913
+ readonly payload: {
914
+ readonly text: string;
915
+ readonly files?: readonly {
916
+ readonly data: string;
917
+ readonly mime: string;
918
+ readonly source: {
919
+ readonly type: "inline";
920
+ } | {
921
+ readonly type: "uri";
922
+ readonly uri: string;
923
+ };
924
+ readonly name?: string | undefined;
925
+ readonly description?: string | undefined;
926
+ readonly mention?: {
927
+ readonly start: number;
928
+ readonly end: number;
929
+ readonly text: string;
930
+ } | undefined;
931
+ }[] | undefined;
932
+ readonly agents?: readonly {
933
+ readonly name: string;
934
+ readonly mention?: {
935
+ readonly start: number;
936
+ readonly end: number;
937
+ readonly text: string;
938
+ } | undefined;
939
+ }[] | undefined;
940
+ readonly skills?: readonly {
941
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
942
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
943
+ readonly text?: string | undefined;
944
+ readonly mention?: {
945
+ readonly start: number;
946
+ readonly end: number;
947
+ readonly text: string;
948
+ } | undefined;
949
+ }[] | undefined;
950
+ readonly metadata?: {
951
+ readonly [x: string]: unknown;
952
+ } | undefined;
953
+ };
954
+ readonly delivery: "queue" | "steer";
955
+ } | {
956
+ readonly type: "synthetic";
957
+ readonly payload: {
958
+ readonly text: string;
959
+ readonly description?: string | undefined;
960
+ readonly metadata?: {
961
+ readonly [x: string]: unknown;
962
+ } | undefined;
963
+ };
964
+ readonly delivery: "queue" | "steer";
965
+ } | {
966
+ readonly type: "compaction";
967
+ readonly payload: {};
968
+ readonly delivery: "queue" | "steer";
969
+ } | {
970
+ readonly type: "move";
971
+ readonly payload: {
972
+ readonly location: {
973
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
974
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
975
+ };
976
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
977
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1073
978
  };
979
+ readonly delivery: "queue" | "steer";
1074
980
  };
1075
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1076
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1077
981
  };
1078
982
  } | {
1079
983
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1081,7 +985,7 @@ export declare const make: (options?: {
1081
985
  readonly metadata?: {
1082
986
  readonly [x: string]: unknown;
1083
987
  } | undefined;
1084
- readonly type: "session.step.failed";
988
+ readonly type: "session.instructions.updated";
1085
989
  readonly durable: {
1086
990
  readonly aggregateID: string;
1087
991
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1093,33 +997,10 @@ export declare const make: (options?: {
1093
997
  } | undefined;
1094
998
  readonly data: {
1095
999
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1096
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1097
- readonly error: {
1098
- readonly type: string;
1099
- readonly message: string;
1100
- readonly status?: number | undefined;
1101
- readonly response?: {
1102
- readonly body: string;
1103
- } | undefined;
1104
- readonly retryAfterMs?: number | undefined;
1000
+ readonly delta: {
1001
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
1105
1002
  };
1106
- readonly finish?: "content-filter" | undefined;
1107
- readonly rawFinish?: string | undefined;
1108
- readonly native?: {
1109
- readonly [x: string]: unknown;
1110
- } | undefined;
1111
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1112
- readonly tokens?: {
1113
- readonly input: number;
1114
- readonly output: number;
1115
- readonly reasoning: number;
1116
- readonly cache: {
1117
- readonly read: number;
1118
- readonly write: number;
1119
- };
1120
- } | undefined;
1121
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1122
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1003
+ readonly text?: string | undefined;
1123
1004
  };
1124
1005
  } | {
1125
1006
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1127,7 +1008,7 @@ export declare const make: (options?: {
1127
1008
  readonly metadata?: {
1128
1009
  readonly [x: string]: unknown;
1129
1010
  } | undefined;
1130
- readonly type: "session.text.started";
1011
+ readonly type: "session.metadata.updated";
1131
1012
  readonly durable: {
1132
1013
  readonly aggregateID: string;
1133
1014
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1139,25 +1020,9 @@ export declare const make: (options?: {
1139
1020
  } | undefined;
1140
1021
  readonly data: {
1141
1022
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1142
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1143
- readonly ordinal: number;
1144
- };
1145
- } | {
1146
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1147
- readonly created: number;
1148
- readonly metadata?: {
1149
- readonly [x: string]: unknown;
1150
- } | undefined;
1151
- readonly type: "session.text.delta";
1152
- readonly location?: {
1153
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1154
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1155
- } | undefined;
1156
- readonly data: {
1157
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1158
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1159
- readonly ordinal: number;
1160
- readonly delta: string;
1023
+ readonly metadata: {
1024
+ readonly [x: string]: import("effect/Schema").Json;
1025
+ };
1161
1026
  };
1162
1027
  } | {
1163
1028
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1165,7 +1030,7 @@ export declare const make: (options?: {
1165
1030
  readonly metadata?: {
1166
1031
  readonly [x: string]: unknown;
1167
1032
  } | undefined;
1168
- readonly type: "session.text.ended";
1033
+ readonly type: "session.model.selected";
1169
1034
  readonly durable: {
1170
1035
  readonly aggregateID: string;
1171
1036
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1177,11 +1042,15 @@ export declare const make: (options?: {
1177
1042
  } | undefined;
1178
1043
  readonly data: {
1179
1044
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1180
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1181
- readonly ordinal: number;
1182
- readonly text: string;
1183
- readonly native?: {
1184
- readonly [x: string]: unknown;
1045
+ readonly model: {
1046
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1047
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1048
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1049
+ };
1050
+ readonly previous?: {
1051
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1052
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1053
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1185
1054
  } | undefined;
1186
1055
  };
1187
1056
  } | {
@@ -1190,7 +1059,7 @@ export declare const make: (options?: {
1190
1059
  readonly metadata?: {
1191
1060
  readonly [x: string]: unknown;
1192
1061
  } | undefined;
1193
- readonly type: "session.reasoning.started";
1062
+ readonly type: "session.moved";
1194
1063
  readonly durable: {
1195
1064
  readonly aggregateID: string;
1196
1065
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1201,12 +1070,13 @@ export declare const make: (options?: {
1201
1070
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1202
1071
  } | undefined;
1203
1072
  readonly data: {
1073
+ readonly location: {
1074
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1075
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1076
+ };
1077
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1078
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1204
1079
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1205
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1206
- readonly ordinal: number;
1207
- readonly native?: {
1208
- readonly [x: string]: unknown;
1209
- } | undefined;
1210
1080
  };
1211
1081
  } | {
1212
1082
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1214,16 +1084,23 @@ export declare const make: (options?: {
1214
1084
  readonly metadata?: {
1215
1085
  readonly [x: string]: unknown;
1216
1086
  } | undefined;
1217
- readonly type: "session.reasoning.delta";
1087
+ readonly type: "session.permissions";
1088
+ readonly durable: {
1089
+ readonly aggregateID: string;
1090
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1091
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1092
+ };
1218
1093
  readonly location?: {
1219
1094
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1220
1095
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1221
1096
  } | undefined;
1222
1097
  readonly data: {
1223
1098
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1224
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1225
- readonly ordinal: number;
1226
- readonly delta: string;
1099
+ readonly permissions: readonly {
1100
+ readonly action: string;
1101
+ readonly resource: string;
1102
+ readonly effect: "allow" | "ask" | "deny";
1103
+ }[];
1227
1104
  };
1228
1105
  } | {
1229
1106
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1256,7 +1133,7 @@ export declare const make: (options?: {
1256
1133
  readonly metadata?: {
1257
1134
  readonly [x: string]: unknown;
1258
1135
  } | undefined;
1259
- readonly type: "session.tool.input.started";
1136
+ readonly type: "session.reasoning.started";
1260
1137
  readonly durable: {
1261
1138
  readonly aggregateID: string;
1262
1139
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1269,25 +1146,10 @@ export declare const make: (options?: {
1269
1146
  readonly data: {
1270
1147
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1271
1148
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1272
- readonly id: string;
1273
- readonly name: string;
1274
- };
1275
- } | {
1276
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1277
- readonly created: number;
1278
- readonly metadata?: {
1279
- readonly [x: string]: unknown;
1280
- } | undefined;
1281
- readonly type: "session.tool.input.delta";
1282
- readonly location?: {
1283
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1284
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1285
- } | undefined;
1286
- readonly data: {
1287
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1288
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1289
- readonly id: string;
1290
- readonly delta: string;
1149
+ readonly ordinal: number;
1150
+ readonly native?: {
1151
+ readonly [x: string]: unknown;
1152
+ } | undefined;
1291
1153
  };
1292
1154
  } | {
1293
1155
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1295,7 +1157,7 @@ export declare const make: (options?: {
1295
1157
  readonly metadata?: {
1296
1158
  readonly [x: string]: unknown;
1297
1159
  } | undefined;
1298
- readonly type: "session.tool.input.ended";
1160
+ readonly type: "session.renamed";
1299
1161
  readonly durable: {
1300
1162
  readonly aggregateID: string;
1301
1163
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1307,9 +1169,7 @@ export declare const make: (options?: {
1307
1169
  } | undefined;
1308
1170
  readonly data: {
1309
1171
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1310
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1311
- readonly id: string;
1312
- readonly text: string;
1172
+ readonly title: string;
1313
1173
  };
1314
1174
  } | {
1315
1175
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1317,7 +1177,7 @@ export declare const make: (options?: {
1317
1177
  readonly metadata?: {
1318
1178
  readonly [x: string]: unknown;
1319
1179
  } | undefined;
1320
- readonly type: "session.tool.called";
1180
+ readonly type: "session.retry.scheduled";
1321
1181
  readonly durable: {
1322
1182
  readonly aggregateID: string;
1323
1183
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1330,14 +1190,17 @@ export declare const make: (options?: {
1330
1190
  readonly data: {
1331
1191
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1332
1192
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1333
- readonly id: string;
1334
- readonly input: {
1335
- readonly [x: string]: unknown;
1193
+ readonly attempt: number;
1194
+ readonly at: number;
1195
+ readonly error: {
1196
+ readonly type: string;
1197
+ readonly message: string;
1198
+ readonly status?: number | undefined;
1199
+ readonly response?: {
1200
+ readonly body: string;
1201
+ } | undefined;
1202
+ readonly retryAfterMs?: number | undefined;
1336
1203
  };
1337
- readonly executed: boolean;
1338
- readonly native?: {
1339
- readonly [x: string]: unknown;
1340
- } | undefined;
1341
1204
  };
1342
1205
  } | {
1343
1206
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1345,18 +1208,18 @@ export declare const make: (options?: {
1345
1208
  readonly metadata?: {
1346
1209
  readonly [x: string]: unknown;
1347
1210
  } | undefined;
1348
- readonly type: "session.tool.progress";
1211
+ readonly type: "session.revert.cleared";
1212
+ readonly durable: {
1213
+ readonly aggregateID: string;
1214
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1215
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1216
+ };
1349
1217
  readonly location?: {
1350
1218
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1351
1219
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1352
1220
  } | undefined;
1353
1221
  readonly data: {
1354
1222
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1355
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1356
- readonly id: string;
1357
- readonly metadata: {
1358
- readonly [x: string]: import("effect/Schema").Json;
1359
- };
1360
1223
  };
1361
1224
  } | {
1362
1225
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1364,7 +1227,7 @@ export declare const make: (options?: {
1364
1227
  readonly metadata?: {
1365
1228
  readonly [x: string]: unknown;
1366
1229
  } | undefined;
1367
- readonly type: "session.tool.success";
1230
+ readonly type: "session.revert.committed";
1368
1231
  readonly durable: {
1369
1232
  readonly aggregateID: string;
1370
1233
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1376,32 +1239,7 @@ export declare const make: (options?: {
1376
1239
  } | undefined;
1377
1240
  readonly data: {
1378
1241
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1379
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1380
- readonly id: string;
1381
- readonly content: readonly [{
1382
- readonly type: "text";
1383
- readonly text: string;
1384
- } | {
1385
- readonly type: "file";
1386
- readonly uri: string;
1387
- readonly mime: string;
1388
- readonly name?: string | undefined;
1389
- }, ...({
1390
- readonly type: "text";
1391
- readonly text: string;
1392
- } | {
1393
- readonly type: "file";
1394
- readonly uri: string;
1395
- readonly mime: string;
1396
- readonly name?: string | undefined;
1397
- })[]];
1398
- readonly metadata?: {
1399
- readonly [x: string]: import("effect/Schema").Json;
1400
- } | undefined;
1401
- readonly executed: boolean;
1402
- readonly native?: {
1403
- readonly [x: string]: unknown;
1404
- } | undefined;
1242
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1405
1243
  };
1406
1244
  } | {
1407
1245
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1409,53 +1247,30 @@ export declare const make: (options?: {
1409
1247
  readonly metadata?: {
1410
1248
  readonly [x: string]: unknown;
1411
1249
  } | undefined;
1412
- readonly type: "session.tool.failed";
1250
+ readonly type: "session.revert.staged";
1413
1251
  readonly durable: {
1414
1252
  readonly aggregateID: string;
1415
1253
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1416
1254
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1417
1255
  };
1418
1256
  readonly location?: {
1419
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1420
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1421
- } | undefined;
1422
- readonly data: {
1423
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1424
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1425
- readonly id: string;
1426
- readonly error: {
1427
- readonly type: string;
1428
- readonly message: string;
1429
- readonly status?: number | undefined;
1430
- readonly response?: {
1431
- readonly body: string;
1432
- } | undefined;
1433
- readonly retryAfterMs?: number | undefined;
1434
- };
1435
- readonly content?: readonly [{
1436
- readonly type: "text";
1437
- readonly text: string;
1438
- } | {
1439
- readonly type: "file";
1440
- readonly uri: string;
1441
- readonly mime: string;
1442
- readonly name?: string | undefined;
1443
- }, ...({
1444
- readonly type: "text";
1445
- readonly text: string;
1446
- } | {
1447
- readonly type: "file";
1448
- readonly uri: string;
1449
- readonly mime: string;
1450
- readonly name?: string | undefined;
1451
- })[]] | undefined;
1452
- readonly metadata?: {
1453
- readonly [x: string]: import("effect/Schema").Json;
1454
- } | undefined;
1455
- readonly executed: boolean;
1456
- readonly native?: {
1457
- readonly [x: string]: unknown;
1458
- } | undefined;
1257
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1258
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1259
+ } | undefined;
1260
+ readonly data: {
1261
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1262
+ readonly revert: {
1263
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1264
+ readonly partID?: string | undefined;
1265
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1266
+ readonly files?: readonly {
1267
+ readonly file: string;
1268
+ readonly patch: string;
1269
+ readonly additions: number;
1270
+ readonly deletions: number;
1271
+ readonly status: "added" | "deleted" | "modified";
1272
+ }[] | undefined;
1273
+ };
1459
1274
  };
1460
1275
  } | {
1461
1276
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1463,7 +1278,7 @@ export declare const make: (options?: {
1463
1278
  readonly metadata?: {
1464
1279
  readonly [x: string]: unknown;
1465
1280
  } | undefined;
1466
- readonly type: "session.retry.scheduled";
1281
+ readonly type: "session.shell.ended";
1467
1282
  readonly durable: {
1468
1283
  readonly aggregateID: string;
1469
1284
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1475,17 +1290,29 @@ export declare const make: (options?: {
1475
1290
  } | undefined;
1476
1291
  readonly data: {
1477
1292
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1478
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1479
- readonly attempt: number;
1480
- readonly at: number;
1481
- readonly error: {
1482
- readonly type: string;
1483
- readonly message: string;
1484
- readonly status?: number | undefined;
1485
- readonly response?: {
1486
- readonly body: string;
1487
- } | undefined;
1488
- readonly retryAfterMs?: number | undefined;
1293
+ readonly shell: {
1294
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1295
+ readonly status: "exited" | "killed" | "running" | "timeout";
1296
+ readonly command: string;
1297
+ readonly cwd: string;
1298
+ readonly shell: string;
1299
+ readonly file: string;
1300
+ readonly pid?: number | undefined;
1301
+ readonly exit?: number | undefined;
1302
+ readonly signal?: string | undefined;
1303
+ readonly metadata: {
1304
+ readonly [x: string]: unknown;
1305
+ };
1306
+ readonly time: {
1307
+ readonly started: number;
1308
+ readonly completed?: number | undefined;
1309
+ };
1310
+ };
1311
+ readonly output: {
1312
+ readonly output: string;
1313
+ readonly cursor: number;
1314
+ readonly size: number;
1315
+ readonly truncated: boolean;
1489
1316
  };
1490
1317
  };
1491
1318
  } | {
@@ -1494,7 +1321,7 @@ export declare const make: (options?: {
1494
1321
  readonly metadata?: {
1495
1322
  readonly [x: string]: unknown;
1496
1323
  } | undefined;
1497
- readonly type: "session.compaction.started";
1324
+ readonly type: "session.shell.started";
1498
1325
  readonly durable: {
1499
1326
  readonly aggregateID: string;
1500
1327
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1506,8 +1333,24 @@ export declare const make: (options?: {
1506
1333
  } | undefined;
1507
1334
  readonly data: {
1508
1335
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1509
- readonly reason: "auto" | "manual";
1510
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1336
+ readonly shell: {
1337
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1338
+ readonly status: "exited" | "killed" | "running" | "timeout";
1339
+ readonly command: string;
1340
+ readonly cwd: string;
1341
+ readonly shell: string;
1342
+ readonly file: string;
1343
+ readonly pid?: number | undefined;
1344
+ readonly exit?: number | undefined;
1345
+ readonly signal?: string | undefined;
1346
+ readonly metadata: {
1347
+ readonly [x: string]: unknown;
1348
+ };
1349
+ readonly time: {
1350
+ readonly started: number;
1351
+ readonly completed?: number | undefined;
1352
+ };
1353
+ };
1511
1354
  };
1512
1355
  } | {
1513
1356
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1515,13 +1358,20 @@ export declare const make: (options?: {
1515
1358
  readonly metadata?: {
1516
1359
  readonly [x: string]: unknown;
1517
1360
  } | undefined;
1518
- readonly type: "session.compaction.delta";
1361
+ readonly type: "session.skill.activated";
1362
+ readonly durable: {
1363
+ readonly aggregateID: string;
1364
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1365
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1366
+ };
1519
1367
  readonly location?: {
1520
1368
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1521
1369
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1522
1370
  } | undefined;
1523
1371
  readonly data: {
1524
1372
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1373
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1374
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1525
1375
  readonly text: string;
1526
1376
  };
1527
1377
  } | {
@@ -1530,7 +1380,7 @@ export declare const make: (options?: {
1530
1380
  readonly metadata?: {
1531
1381
  readonly [x: string]: unknown;
1532
1382
  } | undefined;
1533
- readonly type: "session.compaction.ended";
1383
+ readonly type: "session.step.ended";
1534
1384
  readonly durable: {
1535
1385
  readonly aggregateID: string;
1536
1386
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1542,18 +1392,14 @@ export declare const make: (options?: {
1542
1392
  } | undefined;
1543
1393
  readonly data: {
1544
1394
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1545
- readonly reason: "auto" | "manual";
1546
- readonly model?: {
1547
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1548
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1549
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1550
- } | undefined;
1395
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1396
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1397
+ readonly rawFinish?: string | undefined;
1551
1398
  readonly native?: {
1552
1399
  readonly [x: string]: unknown;
1553
1400
  } | undefined;
1554
- readonly text: string;
1555
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1556
- readonly tokens?: {
1401
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1402
+ readonly tokens: {
1557
1403
  readonly input: number;
1558
1404
  readonly output: number;
1559
1405
  readonly reasoning: number;
@@ -1561,7 +1407,9 @@ export declare const make: (options?: {
1561
1407
  readonly read: number;
1562
1408
  readonly write: number;
1563
1409
  };
1564
- } | undefined;
1410
+ };
1411
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1412
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1565
1413
  };
1566
1414
  } | {
1567
1415
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1569,7 +1417,7 @@ export declare const make: (options?: {
1569
1417
  readonly metadata?: {
1570
1418
  readonly [x: string]: unknown;
1571
1419
  } | undefined;
1572
- readonly type: "session.compaction.failed";
1420
+ readonly type: "session.step.failed";
1573
1421
  readonly durable: {
1574
1422
  readonly aggregateID: string;
1575
1423
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1581,7 +1429,7 @@ export declare const make: (options?: {
1581
1429
  } | undefined;
1582
1430
  readonly data: {
1583
1431
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1584
- readonly reason: "auto" | "manual";
1432
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1585
1433
  readonly error: {
1586
1434
  readonly type: string;
1587
1435
  readonly message: string;
@@ -1591,7 +1439,11 @@ export declare const make: (options?: {
1591
1439
  } | undefined;
1592
1440
  readonly retryAfterMs?: number | undefined;
1593
1441
  };
1594
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1442
+ readonly finish?: "content-filter" | undefined;
1443
+ readonly rawFinish?: string | undefined;
1444
+ readonly native?: {
1445
+ readonly [x: string]: unknown;
1446
+ } | undefined;
1595
1447
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1596
1448
  readonly tokens?: {
1597
1449
  readonly input: number;
@@ -1602,6 +1454,8 @@ export declare const make: (options?: {
1602
1454
  readonly write: number;
1603
1455
  };
1604
1456
  } | undefined;
1457
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1458
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1605
1459
  };
1606
1460
  } | {
1607
1461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1609,7 +1463,7 @@ export declare const make: (options?: {
1609
1463
  readonly metadata?: {
1610
1464
  readonly [x: string]: unknown;
1611
1465
  } | undefined;
1612
- readonly type: "session.revert.cleared";
1466
+ readonly type: "session.step.started";
1613
1467
  readonly durable: {
1614
1468
  readonly aggregateID: string;
1615
1469
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1621,6 +1475,15 @@ export declare const make: (options?: {
1621
1475
  } | undefined;
1622
1476
  readonly data: {
1623
1477
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1478
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1479
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1480
+ readonly model: {
1481
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1482
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1483
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1484
+ };
1485
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1486
+ readonly started: number;
1624
1487
  };
1625
1488
  } | {
1626
1489
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1628,7 +1491,7 @@ export declare const make: (options?: {
1628
1491
  readonly metadata?: {
1629
1492
  readonly [x: string]: unknown;
1630
1493
  } | undefined;
1631
- readonly type: "session.revert.committed";
1494
+ readonly type: "session.step.streamed";
1632
1495
  readonly durable: {
1633
1496
  readonly aggregateID: string;
1634
1497
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1640,7 +1503,7 @@ export declare const make: (options?: {
1640
1503
  } | undefined;
1641
1504
  readonly data: {
1642
1505
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1643
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1506
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1644
1507
  };
1645
1508
  } | {
1646
1509
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1648,7 +1511,7 @@ export declare const make: (options?: {
1648
1511
  readonly metadata?: {
1649
1512
  readonly [x: string]: unknown;
1650
1513
  } | undefined;
1651
- readonly type: "session.revert.staged";
1514
+ readonly type: "session.synthetic";
1652
1515
  readonly durable: {
1653
1516
  readonly aggregateID: string;
1654
1517
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1660,18 +1523,11 @@ export declare const make: (options?: {
1660
1523
  } | undefined;
1661
1524
  readonly data: {
1662
1525
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1663
- readonly revert: {
1664
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1665
- readonly partID?: string | undefined;
1666
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1667
- readonly files?: readonly {
1668
- readonly file: string;
1669
- readonly patch: string;
1670
- readonly additions: number;
1671
- readonly deletions: number;
1672
- readonly status: "added" | "deleted" | "modified";
1673
- }[] | undefined;
1674
- };
1526
+ readonly text: string;
1527
+ readonly description?: string | undefined;
1528
+ readonly metadata?: {
1529
+ readonly [x: string]: unknown;
1530
+ } | undefined;
1675
1531
  };
1676
1532
  } | {
1677
1533
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1679,37 +1535,24 @@ export declare const make: (options?: {
1679
1535
  readonly metadata?: {
1680
1536
  readonly [x: string]: unknown;
1681
1537
  } | undefined;
1682
- readonly type: "command.updated";
1683
- readonly location?: {
1684
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1685
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1686
- } | undefined;
1687
- readonly data: {};
1688
- } | {
1689
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1690
- readonly created: number;
1691
- readonly metadata?: {
1692
- readonly [x: string]: unknown;
1693
- } | undefined;
1694
- readonly type: "config.updated";
1695
- readonly location?: {
1696
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1697
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1698
- } | undefined;
1699
- readonly data: {};
1700
- } | {
1701
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1702
- readonly created: number;
1703
- readonly metadata?: {
1704
- readonly [x: string]: unknown;
1705
- } | undefined;
1706
- readonly type: "mcp.resources.changed";
1538
+ readonly type: "session.text.ended";
1539
+ readonly durable: {
1540
+ readonly aggregateID: string;
1541
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1542
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1543
+ };
1707
1544
  readonly location?: {
1708
1545
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1709
1546
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1710
1547
  } | undefined;
1711
1548
  readonly data: {
1712
- readonly server: string;
1549
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1550
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1551
+ readonly ordinal: number;
1552
+ readonly text: string;
1553
+ readonly native?: {
1554
+ readonly [x: string]: unknown;
1555
+ } | undefined;
1713
1556
  };
1714
1557
  } | {
1715
1558
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1717,13 +1560,20 @@ export declare const make: (options?: {
1717
1560
  readonly metadata?: {
1718
1561
  readonly [x: string]: unknown;
1719
1562
  } | undefined;
1720
- readonly type: "mcp.status.changed";
1563
+ readonly type: "session.text.started";
1564
+ readonly durable: {
1565
+ readonly aggregateID: string;
1566
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1567
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1568
+ };
1721
1569
  readonly location?: {
1722
1570
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1723
1571
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1724
1572
  } | undefined;
1725
1573
  readonly data: {
1726
- readonly server: string;
1574
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1575
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1576
+ readonly ordinal: number;
1727
1577
  };
1728
1578
  } | {
1729
1579
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1731,25 +1581,81 @@ export declare const make: (options?: {
1731
1581
  readonly metadata?: {
1732
1582
  readonly [x: string]: unknown;
1733
1583
  } | undefined;
1734
- readonly type: "plugin.updated";
1584
+ readonly type: "session.tool.called";
1585
+ readonly durable: {
1586
+ readonly aggregateID: string;
1587
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1588
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1589
+ };
1735
1590
  readonly location?: {
1736
1591
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1737
1592
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1738
1593
  } | undefined;
1739
- readonly data: {};
1594
+ readonly data: {
1595
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1596
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1597
+ readonly id: string;
1598
+ readonly input: {
1599
+ readonly [x: string]: unknown;
1600
+ };
1601
+ readonly executed: boolean;
1602
+ readonly native?: {
1603
+ readonly [x: string]: unknown;
1604
+ } | undefined;
1605
+ };
1740
1606
  } | {
1741
1607
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1742
1608
  readonly created: number;
1743
1609
  readonly metadata?: {
1744
1610
  readonly [x: string]: unknown;
1745
1611
  } | undefined;
1746
- readonly type: "tui.command.execute";
1612
+ readonly type: "session.tool.failed";
1613
+ readonly durable: {
1614
+ readonly aggregateID: string;
1615
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1616
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1617
+ };
1747
1618
  readonly location?: {
1748
1619
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1749
1620
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1750
1621
  } | undefined;
1751
1622
  readonly data: {
1752
- readonly command: string;
1623
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1624
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1625
+ readonly id: string;
1626
+ readonly error: {
1627
+ readonly type: string;
1628
+ readonly message: string;
1629
+ readonly status?: number | undefined;
1630
+ readonly response?: {
1631
+ readonly body: string;
1632
+ } | undefined;
1633
+ readonly retryAfterMs?: number | undefined;
1634
+ };
1635
+ readonly content?: readonly [{
1636
+ readonly type: "text";
1637
+ readonly text: string;
1638
+ } | {
1639
+ readonly type: "file";
1640
+ readonly uri: string;
1641
+ readonly mime: string;
1642
+ readonly name?: string | undefined;
1643
+ }, ...({
1644
+ readonly type: "text";
1645
+ readonly text: string;
1646
+ } | {
1647
+ readonly type: "file";
1648
+ readonly uri: string;
1649
+ readonly mime: string;
1650
+ readonly name?: string | undefined;
1651
+ })[]] | undefined;
1652
+ readonly metadata?: {
1653
+ readonly [x: string]: import("effect/Schema").Json;
1654
+ } | undefined;
1655
+ readonly executed: boolean;
1656
+ readonly native?: {
1657
+ readonly [x: string]: unknown;
1658
+ } | undefined;
1753
1659
  };
1754
1660
  } | {
1755
1661
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1757,12 +1663,20 @@ export declare const make: (options?: {
1757
1663
  readonly metadata?: {
1758
1664
  readonly [x: string]: unknown;
1759
1665
  } | undefined;
1760
- readonly type: "tui.prompt.append";
1666
+ readonly type: "session.tool.input.ended";
1667
+ readonly durable: {
1668
+ readonly aggregateID: string;
1669
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1670
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1671
+ };
1761
1672
  readonly location?: {
1762
1673
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1763
1674
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1764
1675
  } | undefined;
1765
1676
  readonly data: {
1677
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1678
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1679
+ readonly id: string;
1766
1680
  readonly text: string;
1767
1681
  };
1768
1682
  } | {
@@ -1771,13 +1685,21 @@ export declare const make: (options?: {
1771
1685
  readonly metadata?: {
1772
1686
  readonly [x: string]: unknown;
1773
1687
  } | undefined;
1774
- readonly type: "tui.session.select";
1688
+ readonly type: "session.tool.input.started";
1689
+ readonly durable: {
1690
+ readonly aggregateID: string;
1691
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1692
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1693
+ };
1775
1694
  readonly location?: {
1776
1695
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1777
1696
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1778
1697
  } | undefined;
1779
1698
  readonly data: {
1780
1699
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1700
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1701
+ readonly id: string;
1702
+ readonly name: string;
1781
1703
  };
1782
1704
  } | {
1783
1705
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1785,16 +1707,44 @@ export declare const make: (options?: {
1785
1707
  readonly metadata?: {
1786
1708
  readonly [x: string]: unknown;
1787
1709
  } | undefined;
1788
- readonly type: "tui.toast.show";
1710
+ readonly type: "session.tool.success";
1711
+ readonly durable: {
1712
+ readonly aggregateID: string;
1713
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1714
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1715
+ };
1789
1716
  readonly location?: {
1790
1717
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1791
1718
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1792
1719
  } | undefined;
1793
1720
  readonly data: {
1794
- readonly title?: string | undefined;
1795
- readonly message: string;
1796
- readonly variant: "error" | "info" | "success" | "warning";
1797
- readonly duration: number;
1721
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1722
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1723
+ readonly id: string;
1724
+ readonly content: readonly [{
1725
+ readonly type: "text";
1726
+ readonly text: string;
1727
+ } | {
1728
+ readonly type: "file";
1729
+ readonly uri: string;
1730
+ readonly mime: string;
1731
+ readonly name?: string | undefined;
1732
+ }, ...({
1733
+ readonly type: "text";
1734
+ readonly text: string;
1735
+ } | {
1736
+ readonly type: "file";
1737
+ readonly uri: string;
1738
+ readonly mime: string;
1739
+ readonly name?: string | undefined;
1740
+ })[]];
1741
+ readonly metadata?: {
1742
+ readonly [x: string]: import("effect/Schema").Json;
1743
+ } | undefined;
1744
+ readonly executed: boolean;
1745
+ readonly native?: {
1746
+ readonly [x: string]: unknown;
1747
+ } | undefined;
1798
1748
  };
1799
1749
  } | {
1800
1750
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1802,86 +1752,104 @@ export declare const make: (options?: {
1802
1752
  readonly metadata?: {
1803
1753
  readonly [x: string]: unknown;
1804
1754
  } | undefined;
1805
- readonly type: "location.shutdown";
1806
- readonly location?: {
1807
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1808
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1809
- } | undefined;
1810
- readonly data: {};
1811
- } | {
1812
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1813
- readonly created: number;
1814
- readonly metadata?: {
1815
- readonly [x: string]: unknown;
1816
- } | undefined;
1817
- readonly type: "models-dev.refreshed";
1755
+ readonly type: "session.unarchived";
1756
+ readonly durable: {
1757
+ readonly aggregateID: string;
1758
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1759
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1760
+ };
1818
1761
  readonly location?: {
1819
1762
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1820
1763
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1821
1764
  } | undefined;
1822
- readonly data: {};
1765
+ readonly data: {
1766
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1767
+ };
1823
1768
  } | {
1824
1769
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1825
1770
  readonly created: number;
1826
1771
  readonly metadata?: {
1827
1772
  readonly [x: string]: unknown;
1828
1773
  } | undefined;
1829
- readonly type: "integration.updated";
1774
+ readonly type: "session.viewed";
1775
+ readonly durable: {
1776
+ readonly aggregateID: string;
1777
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1778
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1779
+ };
1830
1780
  readonly location?: {
1831
1781
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1832
1782
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1833
1783
  } | undefined;
1834
- readonly data: {};
1784
+ readonly data: {
1785
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1786
+ readonly idle: number;
1787
+ };
1835
1788
  } | {
1836
1789
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1837
1790
  readonly created: number;
1838
1791
  readonly metadata?: {
1839
1792
  readonly [x: string]: unknown;
1840
1793
  } | undefined;
1841
- readonly type: "provider.updated";
1794
+ readonly type: "session.compaction.delta";
1842
1795
  readonly location?: {
1843
1796
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1844
1797
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1845
1798
  } | undefined;
1846
- readonly data: {};
1799
+ readonly data: {
1800
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1801
+ readonly text: string;
1802
+ };
1847
1803
  } | {
1848
1804
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1849
1805
  readonly created: number;
1850
1806
  readonly metadata?: {
1851
1807
  readonly [x: string]: unknown;
1852
1808
  } | undefined;
1853
- readonly type: "model.updated";
1809
+ readonly type: "session.reasoning.delta";
1854
1810
  readonly location?: {
1855
1811
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1856
1812
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1857
1813
  } | undefined;
1858
- readonly data: {};
1814
+ readonly data: {
1815
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1816
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1817
+ readonly ordinal: number;
1818
+ readonly delta: string;
1819
+ };
1859
1820
  } | {
1860
1821
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1861
1822
  readonly created: number;
1862
1823
  readonly metadata?: {
1863
1824
  readonly [x: string]: unknown;
1864
1825
  } | undefined;
1865
- readonly type: "agent.updated";
1826
+ readonly type: "session.text.delta";
1866
1827
  readonly location?: {
1867
1828
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1868
1829
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1869
1830
  } | undefined;
1870
- readonly data: {};
1831
+ readonly data: {
1832
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1833
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1834
+ readonly ordinal: number;
1835
+ readonly delta: string;
1836
+ };
1871
1837
  } | {
1872
1838
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1873
1839
  readonly created: number;
1874
1840
  readonly metadata?: {
1875
1841
  readonly [x: string]: unknown;
1876
1842
  } | undefined;
1877
- readonly type: "filesystem.changed";
1843
+ readonly type: "session.tool.input.delta";
1878
1844
  readonly location?: {
1879
1845
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1880
1846
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1881
1847
  } | undefined;
1882
1848
  readonly data: {
1883
- readonly file: string;
1884
- readonly event: "add" | "change" | "unlink";
1849
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1850
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1851
+ readonly id: string;
1852
+ readonly delta: string;
1885
1853
  };
1886
1854
  } | {
1887
1855
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1889,38 +1857,42 @@ export declare const make: (options?: {
1889
1857
  readonly metadata?: {
1890
1858
  readonly [x: string]: unknown;
1891
1859
  } | undefined;
1892
- readonly type: "reference.updated";
1860
+ readonly type: "session.tool.progress";
1893
1861
  readonly location?: {
1894
1862
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1895
1863
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1896
1864
  } | undefined;
1897
- readonly data: {};
1865
+ readonly data: {
1866
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1867
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1868
+ readonly id: string;
1869
+ readonly metadata: {
1870
+ readonly [x: string]: import("effect/Schema").Json;
1871
+ };
1872
+ };
1898
1873
  } | {
1899
1874
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1900
1875
  readonly created: number;
1901
1876
  readonly metadata?: {
1902
1877
  readonly [x: string]: unknown;
1903
1878
  } | undefined;
1904
- readonly type: "permission.asked";
1879
+ readonly type: "session.usage.updated";
1905
1880
  readonly location?: {
1906
1881
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1907
1882
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1908
1883
  } | undefined;
1909
1884
  readonly data: {
1910
1885
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1911
- readonly action: string;
1912
- readonly resources: readonly string[];
1913
- readonly save?: readonly string[] | undefined;
1914
- readonly metadata?: {
1915
- readonly [x: string]: unknown;
1916
- } | undefined;
1917
- readonly source?: {
1918
- readonly type: "tool";
1919
- readonly messageID: string;
1920
- readonly id: string;
1921
- } | undefined;
1922
- readonly message?: string | undefined;
1923
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
1886
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1887
+ readonly tokens: {
1888
+ readonly input: number;
1889
+ readonly output: number;
1890
+ readonly reasoning: number;
1891
+ readonly cache: {
1892
+ readonly read: number;
1893
+ readonly write: number;
1894
+ };
1895
+ };
1924
1896
  };
1925
1897
  } | {
1926
1898
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1928,16 +1900,12 @@ export declare const make: (options?: {
1928
1900
  readonly metadata?: {
1929
1901
  readonly [x: string]: unknown;
1930
1902
  } | undefined;
1931
- readonly type: "permission.replied";
1903
+ readonly type: "plugin.updated";
1932
1904
  readonly location?: {
1933
1905
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1934
1906
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1935
1907
  } | undefined;
1936
- readonly data: {
1937
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1938
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
1939
- readonly reply: "always" | "once" | "reject";
1940
- };
1908
+ readonly data: {};
1941
1909
  } | {
1942
1910
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1943
1911
  readonly created: number;
@@ -1976,36 +1944,36 @@ export declare const make: (options?: {
1976
1944
  readonly metadata?: {
1977
1945
  readonly [x: string]: unknown;
1978
1946
  } | undefined;
1979
- readonly type: "worktree.resolved";
1980
- readonly durable: {
1981
- readonly aggregateID: string;
1982
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1983
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1984
- };
1947
+ readonly type: "command.updated";
1985
1948
  readonly location?: {
1986
1949
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1987
1950
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1988
1951
  } | undefined;
1989
- readonly data: {
1990
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1952
+ readonly data: {};
1953
+ } | {
1954
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1955
+ readonly created: number;
1956
+ readonly metadata?: {
1957
+ readonly [x: string]: unknown;
1958
+ } | undefined;
1959
+ readonly type: "config.updated";
1960
+ readonly location?: {
1991
1961
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1992
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1993
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1994
- };
1962
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1963
+ } | undefined;
1964
+ readonly data: {};
1995
1965
  } | {
1996
1966
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1997
1967
  readonly created: number;
1998
1968
  readonly metadata?: {
1999
1969
  readonly [x: string]: unknown;
2000
1970
  } | undefined;
2001
- readonly type: "worktree.updated";
1971
+ readonly type: "skill.updated";
2002
1972
  readonly location?: {
2003
1973
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2004
1974
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2005
1975
  } | undefined;
2006
- readonly data: {
2007
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
2008
- };
1976
+ readonly data: {};
2009
1977
  } | {
2010
1978
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2011
1979
  readonly created: number;
@@ -2498,13 +2466,13 @@ export declare const make: (options?: {
2498
2466
  readonly metadata?: {
2499
2467
  readonly [x: string]: unknown;
2500
2468
  } | undefined;
2501
- readonly type: "installation.update-available";
2469
+ readonly type: "tui.command.execute";
2502
2470
  readonly location?: {
2503
2471
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2504
2472
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2505
2473
  } | undefined;
2506
2474
  readonly data: {
2507
- readonly version: string;
2475
+ readonly command: string;
2508
2476
  };
2509
2477
  } | {
2510
2478
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2512,13 +2480,13 @@ export declare const make: (options?: {
2512
2480
  readonly metadata?: {
2513
2481
  readonly [x: string]: unknown;
2514
2482
  } | undefined;
2515
- readonly type: "installation.updated";
2483
+ readonly type: "tui.prompt.append";
2516
2484
  readonly location?: {
2517
2485
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2518
2486
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2519
2487
  } | undefined;
2520
2488
  readonly data: {
2521
- readonly version: string;
2489
+ readonly text: string;
2522
2490
  };
2523
2491
  } | {
2524
2492
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2526,13 +2494,13 @@ export declare const make: (options?: {
2526
2494
  readonly metadata?: {
2527
2495
  readonly [x: string]: unknown;
2528
2496
  } | undefined;
2529
- readonly type: "vcs.branch.updated";
2497
+ readonly type: "tui.session.select";
2530
2498
  readonly location?: {
2531
2499
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2532
2500
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2533
2501
  } | undefined;
2534
2502
  readonly data: {
2535
- readonly branch?: string | undefined;
2503
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2536
2504
  };
2537
2505
  } | {
2538
2506
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2540,12 +2508,44 @@ export declare const make: (options?: {
2540
2508
  readonly metadata?: {
2541
2509
  readonly [x: string]: unknown;
2542
2510
  } | undefined;
2543
- readonly type: `rpc.${string}`;
2544
- readonly location: {
2511
+ readonly type: "tui.toast.show";
2512
+ readonly location?: {
2545
2513
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2514
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2515
+ } | undefined;
2516
+ readonly data: {
2517
+ readonly title?: string | undefined;
2518
+ readonly message: string;
2519
+ readonly variant: "error" | "info" | "success" | "warning";
2520
+ readonly duration: number;
2546
2521
  };
2522
+ } | {
2523
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2524
+ readonly created: number;
2525
+ readonly metadata?: {
2526
+ readonly [x: string]: unknown;
2527
+ } | undefined;
2528
+ readonly type: "mcp.resources.changed";
2529
+ readonly location?: {
2530
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2531
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2532
+ } | undefined;
2547
2533
  readonly data: {
2534
+ readonly server: string;
2535
+ };
2536
+ } | {
2537
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2538
+ readonly created: number;
2539
+ readonly metadata?: {
2548
2540
  readonly [x: string]: unknown;
2541
+ } | undefined;
2542
+ readonly type: "mcp.status.changed";
2543
+ readonly location?: {
2544
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2545
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2546
+ } | undefined;
2547
+ readonly data: {
2548
+ readonly server: string;
2549
2549
  };
2550
2550
  } | {
2551
2551
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;