@opencode/client 0.0.0-dev-21614 → 0.0.0-dev-21631

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 (62) hide show
  1. package/dist/chunks/{service-version-9j12j8xw.js → contract-15p82y03.js} +5 -5
  2. package/dist/chunks/{service-version-bw17jdw4.js → contract-1r2vcgmc.js} +1 -1
  3. package/dist/chunks/{service-version-2ny4vxct.js → contract-2ny4vxct.js} +2 -2
  4. package/dist/chunks/{service-version-fmza27wn.js → contract-5k33z7tm.js} +9 -2
  5. package/dist/chunks/{service-version-8bbb028w.js → contract-8bbb028w.js} +1 -1
  6. package/dist/chunks/{service-version-8s9dwebd.js → contract-axp04976.js} +9 -9
  7. package/dist/chunks/{service-version-g9ajxfy0.js → contract-g9ajxfy0.js} +1 -1
  8. package/dist/chunks/{service-version-phpywnth.js → contract-gjv6ay2c.js} +4 -4
  9. package/dist/chunks/{service-version-2qav067b.js → contract-qz6yh9q9.js} +8 -6
  10. package/dist/chunks/{service-version-ryy6kscr.js → contract-ryy6kscr.js} +1 -1
  11. package/dist/chunks/{service-version-skhp7hxc.js → contract-skhp7hxc.js} +1 -1
  12. package/dist/contract.js +1 -1
  13. package/dist/effect/api/api.d.ts +6 -0
  14. package/dist/effect/client.d.ts +1101 -1100
  15. package/dist/effect/client.js +8 -8
  16. package/dist/effect/generated/client-error.js +1 -1
  17. package/dist/effect/generated/client.d.ts +591 -590
  18. package/dist/effect/generated/client.js +5 -5
  19. package/dist/effect/generated/index.js +4 -4
  20. package/dist/effect/index.js +8 -8
  21. package/dist/effect/rpc.js +4 -4
  22. package/dist/effect/service.js +6 -6
  23. package/dist/promise/client.d.ts +1 -0
  24. package/dist/promise/client.js +7 -7
  25. package/dist/promise/generated/client-error.js +1 -1
  26. package/dist/promise/generated/client.d.ts +2 -1
  27. package/dist/promise/generated/client.js +2 -2
  28. package/dist/promise/generated/index.js +4 -4
  29. package/dist/promise/generated/types.d.ts +4 -0
  30. package/dist/promise/generated/types.js +1 -1
  31. package/dist/promise/index.js +8 -8
  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 +8 -7
  48. /package/dist/chunks/{service-version-6mptkzbc.js → contract-6mptkzbc.js} +0 -0
  49. /package/dist/chunks/{service-version-8s2anffy.js → contract-8s2anffy.js} +0 -0
  50. /package/dist/chunks/{service-version-9rqn6x4v.js → contract-9rqn6x4v.js} +0 -0
  51. /package/dist/chunks/{service-version-c46qzyff.js → contract-c46qzyff.js} +0 -0
  52. /package/dist/chunks/{service-version-gne7h7mq.js → contract-gne7h7mq.js} +0 -0
  53. /package/dist/chunks/{service-version-m2eywc8w.js → contract-m2eywc8w.js} +0 -0
  54. /package/dist/chunks/{service-version-nwcpakzx.js → contract-nwcpakzx.js} +0 -0
  55. /package/dist/chunks/{service-version-qav6mfdz.js → contract-qav6mfdz.js} +0 -0
  56. /package/dist/chunks/{service-version-sxt88q69.js → contract-sxt88q69.js} +0 -0
  57. /package/dist/chunks/{service-version-ve4aws36.js → contract-ve4aws36.js} +0 -0
  58. /package/dist/chunks/{service-version-vmytr4q8.js → contract-vmytr4q8.js} +0 -0
  59. /package/dist/chunks/{service-version-vyas3vgt.js → contract-vyas3vgt.js} +0 -0
  60. /package/dist/chunks/{service-version-xgnj2w4v.js → contract-xgnj2w4v.js} +0 -0
  61. /package/dist/chunks/{service-version-y2etg5bs.js → contract-y2etg5bs.js} +0 -0
  62. /package/dist/chunks/{service-version-ydhz1zrh.js → contract-ydhz1zrh.js} +0 -0
@@ -228,6 +228,7 @@ export declare const make: (options?: {
228
228
  diff: (input: import("./api.js").VcsDiffInput) => Effect.Effect<import("./api.js").VcsDiffOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
229
229
  };
230
230
  debug: {
231
+ heapDump: () => Effect.Effect<import("./api.js").DebugHeapDumpOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
231
232
  location: {
232
233
  list: () => Effect.Effect<import("./api.js").DebugLocationListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
233
234
  evict: (input?: import("./api.js").DebugLocationEvictInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -254,38 +255,39 @@ export declare const make: (options?: {
254
255
  readonly metadata?: {
255
256
  readonly [x: string]: unknown;
256
257
  } | undefined;
257
- readonly type: "provider.updated";
258
+ readonly type: "session.agent.selected";
259
+ readonly durable: {
260
+ readonly aggregateID: string;
261
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
262
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
263
+ };
258
264
  readonly location?: {
259
265
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
260
266
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
261
267
  } | undefined;
262
- readonly data: {};
268
+ readonly data: {
269
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
270
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
271
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
272
+ };
263
273
  } | {
264
274
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
265
275
  readonly created: number;
266
276
  readonly metadata?: {
267
277
  readonly [x: string]: unknown;
268
278
  } | undefined;
269
- readonly type: "permission.asked";
279
+ readonly type: "session.archived";
280
+ readonly durable: {
281
+ readonly aggregateID: string;
282
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
283
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
284
+ };
270
285
  readonly location?: {
271
286
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
272
287
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
273
288
  } | undefined;
274
289
  readonly data: {
275
290
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
276
- readonly action: string;
277
- readonly resources: readonly string[];
278
- readonly save?: readonly string[] | undefined;
279
- readonly metadata?: {
280
- readonly [x: string]: unknown;
281
- } | undefined;
282
- readonly source?: {
283
- readonly type: "tool";
284
- readonly messageID: string;
285
- readonly id: string;
286
- } | undefined;
287
- readonly message?: string | undefined;
288
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
289
291
  };
290
292
  } | {
291
293
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -293,15 +295,38 @@ export declare const make: (options?: {
293
295
  readonly metadata?: {
294
296
  readonly [x: string]: unknown;
295
297
  } | undefined;
296
- readonly type: "permission.replied";
298
+ readonly type: "session.compaction.ended";
299
+ readonly durable: {
300
+ readonly aggregateID: string;
301
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
302
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
303
+ };
297
304
  readonly location?: {
298
305
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
299
306
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
300
307
  } | undefined;
301
308
  readonly data: {
302
309
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
303
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
304
- readonly reply: "always" | "once" | "reject";
310
+ readonly reason: "auto" | "manual";
311
+ readonly model?: {
312
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
313
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
314
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
315
+ } | undefined;
316
+ readonly native?: {
317
+ readonly [x: string]: unknown;
318
+ } | undefined;
319
+ readonly text: string;
320
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
321
+ readonly tokens?: {
322
+ readonly input: number;
323
+ readonly output: number;
324
+ readonly reasoning: number;
325
+ readonly cache: {
326
+ readonly read: number;
327
+ readonly write: number;
328
+ };
329
+ } | undefined;
305
330
  };
306
331
  } | {
307
332
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -309,14 +334,39 @@ export declare const make: (options?: {
309
334
  readonly metadata?: {
310
335
  readonly [x: string]: unknown;
311
336
  } | undefined;
312
- readonly type: "filesystem.changed";
337
+ readonly type: "session.compaction.failed";
338
+ readonly durable: {
339
+ readonly aggregateID: string;
340
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
341
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
342
+ };
313
343
  readonly location?: {
314
344
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
315
345
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
316
346
  } | undefined;
317
347
  readonly data: {
318
- readonly file: string;
319
- readonly event: "add" | "change" | "unlink";
348
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
349
+ readonly reason: "auto" | "manual";
350
+ readonly error: {
351
+ readonly type: string;
352
+ readonly message: string;
353
+ readonly status?: number | undefined;
354
+ readonly response?: {
355
+ readonly body: string;
356
+ } | undefined;
357
+ readonly retryAfterMs?: number | undefined;
358
+ };
359
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
360
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
361
+ readonly tokens?: {
362
+ readonly input: number;
363
+ readonly output: number;
364
+ readonly reasoning: number;
365
+ readonly cache: {
366
+ readonly read: number;
367
+ readonly write: number;
368
+ };
369
+ } | undefined;
320
370
  };
321
371
  } | {
322
372
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -324,7 +374,7 @@ export declare const make: (options?: {
324
374
  readonly metadata?: {
325
375
  readonly [x: string]: unknown;
326
376
  } | undefined;
327
- readonly type: "worktree.resolved";
377
+ readonly type: "session.compaction.started";
328
378
  readonly durable: {
329
379
  readonly aggregateID: string;
330
380
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -335,10 +385,9 @@ export declare const make: (options?: {
335
385
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
336
386
  } | undefined;
337
387
  readonly data: {
338
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
339
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
340
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
341
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
388
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
389
+ readonly reason: "auto" | "manual";
390
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
342
391
  };
343
392
  } | {
344
393
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -346,13 +395,42 @@ export declare const make: (options?: {
346
395
  readonly metadata?: {
347
396
  readonly [x: string]: unknown;
348
397
  } | undefined;
349
- readonly type: "worktree.updated";
398
+ readonly type: "session.created";
399
+ readonly durable: {
400
+ readonly aggregateID: string;
401
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
402
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
403
+ };
350
404
  readonly location?: {
351
405
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
352
406
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
353
407
  } | undefined;
354
408
  readonly data: {
409
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
355
410
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
411
+ readonly location: {
412
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
413
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
414
+ };
415
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
416
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
417
+ readonly slug: string;
418
+ readonly title?: string | undefined;
419
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
420
+ readonly model?: {
421
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
422
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
423
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
424
+ } | undefined;
425
+ readonly metadata?: {
426
+ readonly [x: string]: import("effect/Schema").Json;
427
+ } | undefined;
428
+ readonly permissions?: readonly {
429
+ readonly action: string;
430
+ readonly resource: string;
431
+ readonly effect: "allow" | "ask" | "deny";
432
+ }[] | undefined;
433
+ readonly version: string;
356
434
  };
357
435
  } | {
358
436
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -360,13 +438,18 @@ export declare const make: (options?: {
360
438
  readonly metadata?: {
361
439
  readonly [x: string]: unknown;
362
440
  } | undefined;
363
- readonly type: "installation.update-available";
441
+ readonly type: "session.deleted";
442
+ readonly durable: {
443
+ readonly aggregateID: string;
444
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
445
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
446
+ };
364
447
  readonly location?: {
365
448
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
366
449
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
367
450
  } | undefined;
368
451
  readonly data: {
369
- readonly version: string;
452
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
370
453
  };
371
454
  } | {
372
455
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -374,13 +457,27 @@ export declare const make: (options?: {
374
457
  readonly metadata?: {
375
458
  readonly [x: string]: unknown;
376
459
  } | undefined;
377
- readonly type: "installation.updated";
460
+ readonly type: "session.execution.failed";
461
+ readonly durable: {
462
+ readonly aggregateID: string;
463
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
464
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
465
+ };
378
466
  readonly location?: {
379
467
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
380
468
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
381
469
  } | undefined;
382
470
  readonly data: {
383
- readonly version: string;
471
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
472
+ readonly error: {
473
+ readonly type: string;
474
+ readonly message: string;
475
+ readonly status?: number | undefined;
476
+ readonly response?: {
477
+ readonly body: string;
478
+ } | undefined;
479
+ readonly retryAfterMs?: number | undefined;
480
+ };
384
481
  };
385
482
  } | {
386
483
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -388,37 +485,57 @@ export declare const make: (options?: {
388
485
  readonly metadata?: {
389
486
  readonly [x: string]: unknown;
390
487
  } | undefined;
391
- readonly type: "models-dev.refreshed";
488
+ readonly type: "session.execution.interrupted";
489
+ readonly durable: {
490
+ readonly aggregateID: string;
491
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
492
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
493
+ };
392
494
  readonly location?: {
393
495
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
394
496
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
395
497
  } | undefined;
396
- readonly data: {};
498
+ readonly data: {
499
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
500
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
501
+ };
397
502
  } | {
398
503
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
399
504
  readonly created: number;
400
505
  readonly metadata?: {
401
506
  readonly [x: string]: unknown;
402
507
  } | undefined;
403
- readonly type: "reference.updated";
508
+ readonly type: "session.execution.started";
509
+ readonly durable: {
510
+ readonly aggregateID: string;
511
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
512
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
513
+ };
404
514
  readonly location?: {
405
515
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
406
516
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
407
517
  } | undefined;
408
- readonly data: {};
518
+ readonly data: {
519
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
520
+ };
409
521
  } | {
410
522
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
411
523
  readonly created: number;
412
524
  readonly metadata?: {
413
525
  readonly [x: string]: unknown;
414
526
  } | undefined;
415
- readonly type: "vcs.branch.updated";
527
+ readonly type: "session.execution.succeeded";
528
+ readonly durable: {
529
+ readonly aggregateID: string;
530
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
531
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
532
+ };
416
533
  readonly location?: {
417
534
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
418
535
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
419
536
  } | undefined;
420
537
  readonly data: {
421
- readonly branch?: string | undefined;
538
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
422
539
  };
423
540
  } | {
424
541
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -426,12 +543,34 @@ export declare const make: (options?: {
426
543
  readonly metadata?: {
427
544
  readonly [x: string]: unknown;
428
545
  } | undefined;
429
- readonly type: `rpc.${string}`;
430
- readonly location: {
431
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
546
+ readonly type: "session.forked";
547
+ readonly durable: {
548
+ readonly aggregateID: string;
549
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
550
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
432
551
  };
552
+ readonly location?: {
553
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
554
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
555
+ } | undefined;
433
556
  readonly data: {
434
- readonly [x: string]: unknown;
557
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
558
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
559
+ readonly boundary: {
560
+ readonly type: "before";
561
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
562
+ } | {
563
+ readonly type: "through";
564
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
565
+ };
566
+ readonly instructions?: {
567
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
568
+ } | undefined;
569
+ readonly instructionEntries?: readonly {
570
+ readonly key: string;
571
+ readonly value: import("effect/Schema").Json;
572
+ readonly removed: boolean;
573
+ }[] | undefined;
435
574
  };
436
575
  } | {
437
576
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -439,26 +578,39 @@ export declare const make: (options?: {
439
578
  readonly metadata?: {
440
579
  readonly [x: string]: unknown;
441
580
  } | undefined;
442
- readonly type: "location.shutdown";
581
+ readonly type: "session.inbox.cancelled";
582
+ readonly durable: {
583
+ readonly aggregateID: string;
584
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
585
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
586
+ };
443
587
  readonly location?: {
444
588
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
445
589
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
446
590
  } | undefined;
447
- readonly data: {};
591
+ readonly data: {
592
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
593
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
594
+ };
448
595
  } | {
449
596
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
450
597
  readonly created: number;
451
598
  readonly metadata?: {
452
599
  readonly [x: string]: unknown;
453
600
  } | undefined;
454
- readonly type: "credential.switched";
601
+ readonly type: "session.inbox.delivered";
602
+ readonly durable: {
603
+ readonly aggregateID: string;
604
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
605
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
606
+ };
455
607
  readonly location?: {
456
608
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
457
609
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
458
610
  } | undefined;
459
611
  readonly data: {
460
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
461
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
612
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
613
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
462
614
  };
463
615
  } | {
464
616
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -466,55 +618,141 @@ export declare const make: (options?: {
466
618
  readonly metadata?: {
467
619
  readonly [x: string]: unknown;
468
620
  } | undefined;
469
- readonly type: "credential.updated";
621
+ readonly type: "session.inbox.delivery.changed";
622
+ readonly durable: {
623
+ readonly aggregateID: string;
624
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
625
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
626
+ };
470
627
  readonly location?: {
471
628
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
472
629
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
473
630
  } | undefined;
474
- readonly data: {};
475
- } | {
476
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
477
- readonly created: number;
478
- readonly metadata?: {
479
- readonly [x: string]: unknown;
480
- } | undefined;
481
- readonly type: "integration.updated";
482
- readonly location?: {
483
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
484
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
485
- } | undefined;
486
- readonly data: {};
631
+ readonly data: {
632
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
633
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
634
+ readonly delivery: "queue" | "steer";
635
+ };
487
636
  } | {
488
637
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
489
638
  readonly created: number;
490
639
  readonly metadata?: {
491
640
  readonly [x: string]: unknown;
492
641
  } | undefined;
493
- readonly type: "model.updated";
642
+ readonly type: "session.inbox.enqueued";
643
+ readonly durable: {
644
+ readonly aggregateID: string;
645
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
646
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
647
+ };
494
648
  readonly location?: {
495
649
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
496
650
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
497
651
  } | undefined;
498
- readonly data: {};
652
+ readonly data: {
653
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
654
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
655
+ readonly item: {
656
+ readonly type: "user";
657
+ readonly payload: {
658
+ readonly text: string;
659
+ readonly files?: readonly {
660
+ readonly data: string;
661
+ readonly mime: string;
662
+ readonly source: {
663
+ readonly type: "inline";
664
+ } | {
665
+ readonly type: "uri";
666
+ readonly uri: string;
667
+ };
668
+ readonly name?: string | undefined;
669
+ readonly description?: string | undefined;
670
+ readonly mention?: {
671
+ readonly start: number;
672
+ readonly end: number;
673
+ readonly text: string;
674
+ } | undefined;
675
+ }[] | undefined;
676
+ readonly agents?: readonly {
677
+ readonly name: string;
678
+ readonly mention?: {
679
+ readonly start: number;
680
+ readonly end: number;
681
+ readonly text: string;
682
+ } | undefined;
683
+ }[] | undefined;
684
+ readonly skills?: readonly {
685
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
686
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
687
+ readonly text?: string | undefined;
688
+ readonly mention?: {
689
+ readonly start: number;
690
+ readonly end: number;
691
+ readonly text: string;
692
+ } | undefined;
693
+ }[] | undefined;
694
+ readonly metadata?: {
695
+ readonly [x: string]: unknown;
696
+ } | undefined;
697
+ };
698
+ readonly delivery: "queue" | "steer";
699
+ } | {
700
+ readonly type: "synthetic";
701
+ readonly payload: {
702
+ readonly text: string;
703
+ readonly description?: string | undefined;
704
+ readonly metadata?: {
705
+ readonly [x: string]: unknown;
706
+ } | undefined;
707
+ };
708
+ readonly delivery: "queue" | "steer";
709
+ } | {
710
+ readonly type: "compaction";
711
+ readonly payload: {};
712
+ readonly delivery: "queue" | "steer";
713
+ } | {
714
+ readonly type: "move";
715
+ readonly payload: {
716
+ readonly location: {
717
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
718
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
719
+ };
720
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
721
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
722
+ };
723
+ readonly delivery: "queue" | "steer";
724
+ };
725
+ };
499
726
  } | {
500
727
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
501
728
  readonly created: number;
502
729
  readonly metadata?: {
503
730
  readonly [x: string]: unknown;
504
731
  } | undefined;
505
- readonly type: "agent.updated";
732
+ readonly type: "session.instructions.updated";
733
+ readonly durable: {
734
+ readonly aggregateID: string;
735
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
736
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
737
+ };
506
738
  readonly location?: {
507
739
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
508
740
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
509
741
  } | undefined;
510
- readonly data: {};
742
+ readonly data: {
743
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
744
+ readonly delta: {
745
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
746
+ };
747
+ readonly text?: string | undefined;
748
+ };
511
749
  } | {
512
750
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
513
751
  readonly created: number;
514
752
  readonly metadata?: {
515
753
  readonly [x: string]: unknown;
516
754
  } | undefined;
517
- readonly type: "session.agent.selected";
755
+ readonly type: "session.metadata.updated";
518
756
  readonly durable: {
519
757
  readonly aggregateID: string;
520
758
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -526,8 +764,9 @@ export declare const make: (options?: {
526
764
  } | undefined;
527
765
  readonly data: {
528
766
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
529
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
530
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
767
+ readonly metadata: {
768
+ readonly [x: string]: import("effect/Schema").Json;
769
+ };
531
770
  };
532
771
  } | {
533
772
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -535,7 +774,7 @@ export declare const make: (options?: {
535
774
  readonly metadata?: {
536
775
  readonly [x: string]: unknown;
537
776
  } | undefined;
538
- readonly type: "session.archived";
777
+ readonly type: "session.model.selected";
539
778
  readonly durable: {
540
779
  readonly aggregateID: string;
541
780
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -547,6 +786,16 @@ export declare const make: (options?: {
547
786
  } | undefined;
548
787
  readonly data: {
549
788
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
789
+ readonly model: {
790
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
791
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
792
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
793
+ };
794
+ readonly previous?: {
795
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
796
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
797
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
798
+ } | undefined;
550
799
  };
551
800
  } | {
552
801
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -554,7 +803,7 @@ export declare const make: (options?: {
554
803
  readonly metadata?: {
555
804
  readonly [x: string]: unknown;
556
805
  } | undefined;
557
- readonly type: "session.compaction.ended";
806
+ readonly type: "session.moved";
558
807
  readonly durable: {
559
808
  readonly aggregateID: string;
560
809
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -565,27 +814,13 @@ export declare const make: (options?: {
565
814
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
566
815
  } | undefined;
567
816
  readonly data: {
817
+ readonly location: {
818
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
819
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
820
+ };
821
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
822
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
568
823
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
569
- readonly reason: "auto" | "manual";
570
- readonly model?: {
571
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
572
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
573
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
574
- } | undefined;
575
- readonly native?: {
576
- readonly [x: string]: unknown;
577
- } | undefined;
578
- readonly text: string;
579
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
580
- readonly tokens?: {
581
- readonly input: number;
582
- readonly output: number;
583
- readonly reasoning: number;
584
- readonly cache: {
585
- readonly read: number;
586
- readonly write: number;
587
- };
588
- } | undefined;
589
824
  };
590
825
  } | {
591
826
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -593,7 +828,7 @@ export declare const make: (options?: {
593
828
  readonly metadata?: {
594
829
  readonly [x: string]: unknown;
595
830
  } | undefined;
596
- readonly type: "session.compaction.failed";
831
+ readonly type: "session.permissions";
597
832
  readonly durable: {
598
833
  readonly aggregateID: string;
599
834
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -605,27 +840,11 @@ export declare const make: (options?: {
605
840
  } | undefined;
606
841
  readonly data: {
607
842
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
608
- readonly reason: "auto" | "manual";
609
- readonly error: {
610
- readonly type: string;
611
- readonly message: string;
612
- readonly status?: number | undefined;
613
- readonly response?: {
614
- readonly body: string;
615
- } | undefined;
616
- readonly retryAfterMs?: number | undefined;
617
- };
618
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
619
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
620
- readonly tokens?: {
621
- readonly input: number;
622
- readonly output: number;
623
- readonly reasoning: number;
624
- readonly cache: {
625
- readonly read: number;
626
- readonly write: number;
627
- };
628
- } | undefined;
843
+ readonly permissions: readonly {
844
+ readonly action: string;
845
+ readonly resource: string;
846
+ readonly effect: "allow" | "ask" | "deny";
847
+ }[];
629
848
  };
630
849
  } | {
631
850
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -633,7 +852,7 @@ export declare const make: (options?: {
633
852
  readonly metadata?: {
634
853
  readonly [x: string]: unknown;
635
854
  } | undefined;
636
- readonly type: "session.compaction.started";
855
+ readonly type: "session.reasoning.ended";
637
856
  readonly durable: {
638
857
  readonly aggregateID: string;
639
858
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -645,8 +864,12 @@ export declare const make: (options?: {
645
864
  } | undefined;
646
865
  readonly data: {
647
866
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
648
- readonly reason: "auto" | "manual";
649
- readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
867
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
868
+ readonly ordinal: number;
869
+ readonly text: string;
870
+ readonly native?: {
871
+ readonly [x: string]: unknown;
872
+ } | undefined;
650
873
  };
651
874
  } | {
652
875
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -654,7 +877,7 @@ export declare const make: (options?: {
654
877
  readonly metadata?: {
655
878
  readonly [x: string]: unknown;
656
879
  } | undefined;
657
- readonly type: "session.created";
880
+ readonly type: "session.reasoning.started";
658
881
  readonly durable: {
659
882
  readonly aggregateID: string;
660
883
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -666,30 +889,11 @@ export declare const make: (options?: {
666
889
  } | undefined;
667
890
  readonly data: {
668
891
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
669
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
670
- readonly location: {
671
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
672
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
673
- };
674
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
675
- readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
676
- readonly slug: string;
677
- readonly title?: string | undefined;
678
- readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
679
- readonly model?: {
680
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
681
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
682
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
683
- } | undefined;
684
- readonly metadata?: {
685
- readonly [x: string]: import("effect/Schema").Json;
892
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
893
+ readonly ordinal: number;
894
+ readonly native?: {
895
+ readonly [x: string]: unknown;
686
896
  } | undefined;
687
- readonly permissions?: readonly {
688
- readonly action: string;
689
- readonly resource: string;
690
- readonly effect: "allow" | "ask" | "deny";
691
- }[] | undefined;
692
- readonly version: string;
693
897
  };
694
898
  } | {
695
899
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -697,7 +901,7 @@ export declare const make: (options?: {
697
901
  readonly metadata?: {
698
902
  readonly [x: string]: unknown;
699
903
  } | undefined;
700
- readonly type: "session.deleted";
904
+ readonly type: "session.renamed";
701
905
  readonly durable: {
702
906
  readonly aggregateID: string;
703
907
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -709,6 +913,7 @@ export declare const make: (options?: {
709
913
  } | undefined;
710
914
  readonly data: {
711
915
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
916
+ readonly title: string;
712
917
  };
713
918
  } | {
714
919
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -716,7 +921,7 @@ export declare const make: (options?: {
716
921
  readonly metadata?: {
717
922
  readonly [x: string]: unknown;
718
923
  } | undefined;
719
- readonly type: "session.execution.failed";
924
+ readonly type: "session.retry.scheduled";
720
925
  readonly durable: {
721
926
  readonly aggregateID: string;
722
927
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -728,6 +933,9 @@ export declare const make: (options?: {
728
933
  } | undefined;
729
934
  readonly data: {
730
935
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
936
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
937
+ readonly attempt: number;
938
+ readonly at: number;
731
939
  readonly error: {
732
940
  readonly type: string;
733
941
  readonly message: string;
@@ -744,7 +952,7 @@ export declare const make: (options?: {
744
952
  readonly metadata?: {
745
953
  readonly [x: string]: unknown;
746
954
  } | undefined;
747
- readonly type: "session.execution.interrupted";
955
+ readonly type: "session.revert.cleared";
748
956
  readonly durable: {
749
957
  readonly aggregateID: string;
750
958
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -756,7 +964,6 @@ export declare const make: (options?: {
756
964
  } | undefined;
757
965
  readonly data: {
758
966
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
759
- readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
760
967
  };
761
968
  } | {
762
969
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -764,7 +971,7 @@ export declare const make: (options?: {
764
971
  readonly metadata?: {
765
972
  readonly [x: string]: unknown;
766
973
  } | undefined;
767
- readonly type: "session.execution.started";
974
+ readonly type: "session.revert.committed";
768
975
  readonly durable: {
769
976
  readonly aggregateID: string;
770
977
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -776,6 +983,7 @@ export declare const make: (options?: {
776
983
  } | undefined;
777
984
  readonly data: {
778
985
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
986
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
779
987
  };
780
988
  } | {
781
989
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -783,7 +991,7 @@ export declare const make: (options?: {
783
991
  readonly metadata?: {
784
992
  readonly [x: string]: unknown;
785
993
  } | undefined;
786
- readonly type: "session.execution.succeeded";
994
+ readonly type: "session.revert.staged";
787
995
  readonly durable: {
788
996
  readonly aggregateID: string;
789
997
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -795,6 +1003,18 @@ export declare const make: (options?: {
795
1003
  } | undefined;
796
1004
  readonly data: {
797
1005
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1006
+ readonly revert: {
1007
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1008
+ readonly partID?: string | undefined;
1009
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1010
+ readonly files?: readonly {
1011
+ readonly file: string;
1012
+ readonly patch: string;
1013
+ readonly additions: number;
1014
+ readonly deletions: number;
1015
+ readonly status: "added" | "deleted" | "modified";
1016
+ }[] | undefined;
1017
+ };
798
1018
  };
799
1019
  } | {
800
1020
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -802,7 +1022,7 @@ export declare const make: (options?: {
802
1022
  readonly metadata?: {
803
1023
  readonly [x: string]: unknown;
804
1024
  } | undefined;
805
- readonly type: "session.forked";
1025
+ readonly type: "session.shell.ended";
806
1026
  readonly durable: {
807
1027
  readonly aggregateID: string;
808
1028
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -814,22 +1034,30 @@ export declare const make: (options?: {
814
1034
  } | undefined;
815
1035
  readonly data: {
816
1036
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
817
- readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
818
- readonly boundary: {
819
- readonly type: "before";
820
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
821
- } | {
822
- readonly type: "through";
823
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1037
+ readonly shell: {
1038
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1039
+ readonly status: "exited" | "killed" | "running" | "timeout";
1040
+ readonly command: string;
1041
+ readonly cwd: string;
1042
+ readonly shell: string;
1043
+ readonly file: string;
1044
+ readonly pid?: number | undefined;
1045
+ readonly exit?: number | undefined;
1046
+ readonly signal?: string | undefined;
1047
+ readonly metadata: {
1048
+ readonly [x: string]: unknown;
1049
+ };
1050
+ readonly time: {
1051
+ readonly started: number;
1052
+ readonly completed?: number | undefined;
1053
+ };
1054
+ };
1055
+ readonly output: {
1056
+ readonly output: string;
1057
+ readonly cursor: number;
1058
+ readonly size: number;
1059
+ readonly truncated: boolean;
824
1060
  };
825
- readonly instructions?: {
826
- readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
827
- } | undefined;
828
- readonly instructionEntries?: readonly {
829
- readonly key: string;
830
- readonly value: import("effect/Schema").Json;
831
- readonly removed: boolean;
832
- }[] | undefined;
833
1061
  };
834
1062
  } | {
835
1063
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -837,7 +1065,7 @@ export declare const make: (options?: {
837
1065
  readonly metadata?: {
838
1066
  readonly [x: string]: unknown;
839
1067
  } | undefined;
840
- readonly type: "session.inbox.cancelled";
1068
+ readonly type: "session.shell.started";
841
1069
  readonly durable: {
842
1070
  readonly aggregateID: string;
843
1071
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -849,7 +1077,24 @@ export declare const make: (options?: {
849
1077
  } | undefined;
850
1078
  readonly data: {
851
1079
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
852
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1080
+ readonly shell: {
1081
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1082
+ readonly status: "exited" | "killed" | "running" | "timeout";
1083
+ readonly command: string;
1084
+ readonly cwd: string;
1085
+ readonly shell: string;
1086
+ readonly file: string;
1087
+ readonly pid?: number | undefined;
1088
+ readonly exit?: number | undefined;
1089
+ readonly signal?: string | undefined;
1090
+ readonly metadata: {
1091
+ readonly [x: string]: unknown;
1092
+ };
1093
+ readonly time: {
1094
+ readonly started: number;
1095
+ readonly completed?: number | undefined;
1096
+ };
1097
+ };
853
1098
  };
854
1099
  } | {
855
1100
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -857,7 +1102,7 @@ export declare const make: (options?: {
857
1102
  readonly metadata?: {
858
1103
  readonly [x: string]: unknown;
859
1104
  } | undefined;
860
- readonly type: "session.inbox.delivered";
1105
+ readonly type: "session.skill.activated";
861
1106
  readonly durable: {
862
1107
  readonly aggregateID: string;
863
1108
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -869,7 +1114,9 @@ export declare const make: (options?: {
869
1114
  } | undefined;
870
1115
  readonly data: {
871
1116
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
872
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1117
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1118
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1119
+ readonly text: string;
873
1120
  };
874
1121
  } | {
875
1122
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -877,7 +1124,7 @@ export declare const make: (options?: {
877
1124
  readonly metadata?: {
878
1125
  readonly [x: string]: unknown;
879
1126
  } | undefined;
880
- readonly type: "session.inbox.delivery.changed";
1127
+ readonly type: "session.step.ended";
881
1128
  readonly durable: {
882
1129
  readonly aggregateID: string;
883
1130
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -889,8 +1136,24 @@ export declare const make: (options?: {
889
1136
  } | undefined;
890
1137
  readonly data: {
891
1138
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
892
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
893
- readonly delivery: "queue" | "steer";
1139
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1140
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1141
+ readonly rawFinish?: string | undefined;
1142
+ readonly native?: {
1143
+ readonly [x: string]: unknown;
1144
+ } | undefined;
1145
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1146
+ readonly tokens: {
1147
+ readonly input: number;
1148
+ readonly output: number;
1149
+ readonly reasoning: number;
1150
+ readonly cache: {
1151
+ readonly read: number;
1152
+ readonly write: number;
1153
+ };
1154
+ };
1155
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1156
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
894
1157
  };
895
1158
  } | {
896
1159
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -898,7 +1161,7 @@ export declare const make: (options?: {
898
1161
  readonly metadata?: {
899
1162
  readonly [x: string]: unknown;
900
1163
  } | undefined;
901
- readonly type: "session.inbox.enqueued";
1164
+ readonly type: "session.step.failed";
902
1165
  readonly durable: {
903
1166
  readonly aggregateID: string;
904
1167
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -910,77 +1173,33 @@ export declare const make: (options?: {
910
1173
  } | undefined;
911
1174
  readonly data: {
912
1175
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
913
- readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
914
- readonly item: {
915
- readonly type: "user";
916
- readonly payload: {
917
- readonly text: string;
918
- readonly files?: readonly {
919
- readonly data: string;
920
- readonly mime: string;
921
- readonly source: {
922
- readonly type: "inline";
923
- } | {
924
- readonly type: "uri";
925
- readonly uri: string;
926
- };
927
- readonly name?: string | undefined;
928
- readonly description?: string | undefined;
929
- readonly mention?: {
930
- readonly start: number;
931
- readonly end: number;
932
- readonly text: string;
933
- } | undefined;
934
- }[] | undefined;
935
- readonly agents?: readonly {
936
- readonly name: string;
937
- readonly mention?: {
938
- readonly start: number;
939
- readonly end: number;
940
- readonly text: string;
941
- } | undefined;
942
- }[] | undefined;
943
- readonly skills?: readonly {
944
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
945
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
946
- readonly text?: string | undefined;
947
- readonly mention?: {
948
- readonly start: number;
949
- readonly end: number;
950
- readonly text: string;
951
- } | undefined;
952
- }[] | undefined;
953
- readonly metadata?: {
954
- readonly [x: string]: unknown;
955
- } | undefined;
956
- };
957
- readonly delivery: "queue" | "steer";
958
- } | {
959
- readonly type: "synthetic";
960
- readonly payload: {
961
- readonly text: string;
962
- readonly description?: string | undefined;
963
- readonly metadata?: {
964
- readonly [x: string]: unknown;
965
- } | undefined;
966
- };
967
- readonly delivery: "queue" | "steer";
968
- } | {
969
- readonly type: "compaction";
970
- readonly payload: {};
971
- readonly delivery: "queue" | "steer";
972
- } | {
973
- readonly type: "move";
974
- readonly payload: {
975
- readonly location: {
976
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
977
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
978
- };
979
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
980
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
981
- };
982
- readonly delivery: "queue" | "steer";
1176
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1177
+ readonly error: {
1178
+ readonly type: string;
1179
+ readonly message: string;
1180
+ readonly status?: number | undefined;
1181
+ readonly response?: {
1182
+ readonly body: string;
1183
+ } | undefined;
1184
+ readonly retryAfterMs?: number | undefined;
983
1185
  };
1186
+ readonly finish?: "content-filter" | undefined;
1187
+ readonly rawFinish?: string | undefined;
1188
+ readonly native?: {
1189
+ readonly [x: string]: unknown;
1190
+ } | undefined;
1191
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1192
+ readonly tokens?: {
1193
+ readonly input: number;
1194
+ readonly output: number;
1195
+ readonly reasoning: number;
1196
+ readonly cache: {
1197
+ readonly read: number;
1198
+ readonly write: number;
1199
+ };
1200
+ } | undefined;
1201
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1202
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
984
1203
  };
985
1204
  } | {
986
1205
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -988,7 +1207,7 @@ export declare const make: (options?: {
988
1207
  readonly metadata?: {
989
1208
  readonly [x: string]: unknown;
990
1209
  } | undefined;
991
- readonly type: "session.instructions.updated";
1210
+ readonly type: "session.step.started";
992
1211
  readonly durable: {
993
1212
  readonly aggregateID: string;
994
1213
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1000,10 +1219,15 @@ export declare const make: (options?: {
1000
1219
  } | undefined;
1001
1220
  readonly data: {
1002
1221
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1003
- readonly delta: {
1004
- readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
1222
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1223
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1224
+ readonly model: {
1225
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1226
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1227
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1005
1228
  };
1006
- readonly text?: string | undefined;
1229
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1230
+ readonly started: number;
1007
1231
  };
1008
1232
  } | {
1009
1233
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1011,7 +1235,7 @@ export declare const make: (options?: {
1011
1235
  readonly metadata?: {
1012
1236
  readonly [x: string]: unknown;
1013
1237
  } | undefined;
1014
- readonly type: "session.metadata.updated";
1238
+ readonly type: "session.step.streamed";
1015
1239
  readonly durable: {
1016
1240
  readonly aggregateID: string;
1017
1241
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1023,9 +1247,7 @@ export declare const make: (options?: {
1023
1247
  } | undefined;
1024
1248
  readonly data: {
1025
1249
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1026
- readonly metadata: {
1027
- readonly [x: string]: import("effect/Schema").Json;
1028
- };
1250
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1029
1251
  };
1030
1252
  } | {
1031
1253
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1033,7 +1255,7 @@ export declare const make: (options?: {
1033
1255
  readonly metadata?: {
1034
1256
  readonly [x: string]: unknown;
1035
1257
  } | undefined;
1036
- readonly type: "session.model.selected";
1258
+ readonly type: "session.synthetic";
1037
1259
  readonly durable: {
1038
1260
  readonly aggregateID: string;
1039
1261
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1045,15 +1267,10 @@ export declare const make: (options?: {
1045
1267
  } | undefined;
1046
1268
  readonly data: {
1047
1269
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1048
- readonly model: {
1049
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1050
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1051
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1052
- };
1053
- readonly previous?: {
1054
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1055
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1056
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1270
+ readonly text: string;
1271
+ readonly description?: string | undefined;
1272
+ readonly metadata?: {
1273
+ readonly [x: string]: unknown;
1057
1274
  } | undefined;
1058
1275
  };
1059
1276
  } | {
@@ -1062,7 +1279,7 @@ export declare const make: (options?: {
1062
1279
  readonly metadata?: {
1063
1280
  readonly [x: string]: unknown;
1064
1281
  } | undefined;
1065
- readonly type: "session.moved";
1282
+ readonly type: "session.text.ended";
1066
1283
  readonly durable: {
1067
1284
  readonly aggregateID: string;
1068
1285
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1073,13 +1290,13 @@ export declare const make: (options?: {
1073
1290
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1074
1291
  } | undefined;
1075
1292
  readonly data: {
1076
- readonly location: {
1077
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1078
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1079
- };
1080
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1081
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1082
1293
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1294
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1295
+ readonly ordinal: number;
1296
+ readonly text: string;
1297
+ readonly native?: {
1298
+ readonly [x: string]: unknown;
1299
+ } | undefined;
1083
1300
  };
1084
1301
  } | {
1085
1302
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1087,7 +1304,7 @@ export declare const make: (options?: {
1087
1304
  readonly metadata?: {
1088
1305
  readonly [x: string]: unknown;
1089
1306
  } | undefined;
1090
- readonly type: "session.permissions";
1307
+ readonly type: "session.text.started";
1091
1308
  readonly durable: {
1092
1309
  readonly aggregateID: string;
1093
1310
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1099,11 +1316,8 @@ export declare const make: (options?: {
1099
1316
  } | undefined;
1100
1317
  readonly data: {
1101
1318
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1102
- readonly permissions: readonly {
1103
- readonly action: string;
1104
- readonly resource: string;
1105
- readonly effect: "allow" | "ask" | "deny";
1106
- }[];
1319
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1320
+ readonly ordinal: number;
1107
1321
  };
1108
1322
  } | {
1109
1323
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1111,7 +1325,7 @@ export declare const make: (options?: {
1111
1325
  readonly metadata?: {
1112
1326
  readonly [x: string]: unknown;
1113
1327
  } | undefined;
1114
- readonly type: "session.reasoning.ended";
1328
+ readonly type: "session.tool.called";
1115
1329
  readonly durable: {
1116
1330
  readonly aggregateID: string;
1117
1331
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1124,8 +1338,11 @@ export declare const make: (options?: {
1124
1338
  readonly data: {
1125
1339
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1126
1340
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1127
- readonly ordinal: number;
1128
- readonly text: string;
1341
+ readonly id: string;
1342
+ readonly input: {
1343
+ readonly [x: string]: unknown;
1344
+ };
1345
+ readonly executed: boolean;
1129
1346
  readonly native?: {
1130
1347
  readonly [x: string]: unknown;
1131
1348
  } | undefined;
@@ -1136,7 +1353,7 @@ export declare const make: (options?: {
1136
1353
  readonly metadata?: {
1137
1354
  readonly [x: string]: unknown;
1138
1355
  } | undefined;
1139
- readonly type: "session.reasoning.started";
1356
+ readonly type: "session.tool.failed";
1140
1357
  readonly durable: {
1141
1358
  readonly aggregateID: string;
1142
1359
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1149,10 +1366,40 @@ export declare const make: (options?: {
1149
1366
  readonly data: {
1150
1367
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1151
1368
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1152
- readonly ordinal: number;
1153
- readonly native?: {
1154
- readonly [x: string]: unknown;
1155
- } | undefined;
1369
+ readonly id: string;
1370
+ readonly error: {
1371
+ readonly type: string;
1372
+ readonly message: string;
1373
+ readonly status?: number | undefined;
1374
+ readonly response?: {
1375
+ readonly body: string;
1376
+ } | undefined;
1377
+ readonly retryAfterMs?: number | undefined;
1378
+ };
1379
+ readonly content?: readonly [{
1380
+ readonly type: "text";
1381
+ readonly text: string;
1382
+ } | {
1383
+ readonly type: "file";
1384
+ readonly uri: string;
1385
+ readonly mime: string;
1386
+ readonly name?: string | undefined;
1387
+ }, ...({
1388
+ readonly type: "text";
1389
+ readonly text: string;
1390
+ } | {
1391
+ readonly type: "file";
1392
+ readonly uri: string;
1393
+ readonly mime: string;
1394
+ readonly name?: string | undefined;
1395
+ })[]] | undefined;
1396
+ readonly metadata?: {
1397
+ readonly [x: string]: import("effect/Schema").Json;
1398
+ } | undefined;
1399
+ readonly executed: boolean;
1400
+ readonly native?: {
1401
+ readonly [x: string]: unknown;
1402
+ } | undefined;
1156
1403
  };
1157
1404
  } | {
1158
1405
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1160,7 +1407,7 @@ export declare const make: (options?: {
1160
1407
  readonly metadata?: {
1161
1408
  readonly [x: string]: unknown;
1162
1409
  } | undefined;
1163
- readonly type: "session.renamed";
1410
+ readonly type: "session.tool.input.ended";
1164
1411
  readonly durable: {
1165
1412
  readonly aggregateID: string;
1166
1413
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1172,7 +1419,9 @@ export declare const make: (options?: {
1172
1419
  } | undefined;
1173
1420
  readonly data: {
1174
1421
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1175
- readonly title: string;
1422
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1423
+ readonly id: string;
1424
+ readonly text: string;
1176
1425
  };
1177
1426
  } | {
1178
1427
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1180,7 +1429,7 @@ export declare const make: (options?: {
1180
1429
  readonly metadata?: {
1181
1430
  readonly [x: string]: unknown;
1182
1431
  } | undefined;
1183
- readonly type: "session.retry.scheduled";
1432
+ readonly type: "session.tool.input.started";
1184
1433
  readonly durable: {
1185
1434
  readonly aggregateID: string;
1186
1435
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1193,17 +1442,8 @@ export declare const make: (options?: {
1193
1442
  readonly data: {
1194
1443
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1195
1444
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1196
- readonly attempt: number;
1197
- readonly at: number;
1198
- readonly error: {
1199
- readonly type: string;
1200
- readonly message: string;
1201
- readonly status?: number | undefined;
1202
- readonly response?: {
1203
- readonly body: string;
1204
- } | undefined;
1205
- readonly retryAfterMs?: number | undefined;
1206
- };
1445
+ readonly id: string;
1446
+ readonly name: string;
1207
1447
  };
1208
1448
  } | {
1209
1449
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1211,7 +1451,7 @@ export declare const make: (options?: {
1211
1451
  readonly metadata?: {
1212
1452
  readonly [x: string]: unknown;
1213
1453
  } | undefined;
1214
- readonly type: "session.revert.cleared";
1454
+ readonly type: "session.tool.success";
1215
1455
  readonly durable: {
1216
1456
  readonly aggregateID: string;
1217
1457
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1223,6 +1463,32 @@ export declare const make: (options?: {
1223
1463
  } | undefined;
1224
1464
  readonly data: {
1225
1465
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1466
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1467
+ readonly id: string;
1468
+ readonly content: readonly [{
1469
+ readonly type: "text";
1470
+ readonly text: string;
1471
+ } | {
1472
+ readonly type: "file";
1473
+ readonly uri: string;
1474
+ readonly mime: string;
1475
+ readonly name?: string | undefined;
1476
+ }, ...({
1477
+ readonly type: "text";
1478
+ readonly text: string;
1479
+ } | {
1480
+ readonly type: "file";
1481
+ readonly uri: string;
1482
+ readonly mime: string;
1483
+ readonly name?: string | undefined;
1484
+ })[]];
1485
+ readonly metadata?: {
1486
+ readonly [x: string]: import("effect/Schema").Json;
1487
+ } | undefined;
1488
+ readonly executed: boolean;
1489
+ readonly native?: {
1490
+ readonly [x: string]: unknown;
1491
+ } | undefined;
1226
1492
  };
1227
1493
  } | {
1228
1494
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1230,7 +1496,7 @@ export declare const make: (options?: {
1230
1496
  readonly metadata?: {
1231
1497
  readonly [x: string]: unknown;
1232
1498
  } | undefined;
1233
- readonly type: "session.revert.committed";
1499
+ readonly type: "session.unarchived";
1234
1500
  readonly durable: {
1235
1501
  readonly aggregateID: string;
1236
1502
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1242,7 +1508,6 @@ export declare const make: (options?: {
1242
1508
  } | undefined;
1243
1509
  readonly data: {
1244
1510
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1245
- readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1246
1511
  };
1247
1512
  } | {
1248
1513
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1250,7 +1515,7 @@ export declare const make: (options?: {
1250
1515
  readonly metadata?: {
1251
1516
  readonly [x: string]: unknown;
1252
1517
  } | undefined;
1253
- readonly type: "session.revert.staged";
1518
+ readonly type: "session.viewed";
1254
1519
  readonly durable: {
1255
1520
  readonly aggregateID: string;
1256
1521
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1262,18 +1527,7 @@ export declare const make: (options?: {
1262
1527
  } | undefined;
1263
1528
  readonly data: {
1264
1529
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1265
- readonly revert: {
1266
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1267
- readonly partID?: string | undefined;
1268
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1269
- readonly files?: readonly {
1270
- readonly file: string;
1271
- readonly patch: string;
1272
- readonly additions: number;
1273
- readonly deletions: number;
1274
- readonly status: "added" | "deleted" | "modified";
1275
- }[] | undefined;
1276
- };
1530
+ readonly idle: number;
1277
1531
  };
1278
1532
  } | {
1279
1533
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1281,7 +1535,7 @@ export declare const make: (options?: {
1281
1535
  readonly metadata?: {
1282
1536
  readonly [x: string]: unknown;
1283
1537
  } | undefined;
1284
- readonly type: "session.shell.ended";
1538
+ readonly type: "worktree.resolved";
1285
1539
  readonly durable: {
1286
1540
  readonly aggregateID: string;
1287
1541
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
@@ -1292,31 +1546,10 @@ export declare const make: (options?: {
1292
1546
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1293
1547
  } | undefined;
1294
1548
  readonly data: {
1295
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1296
- readonly shell: {
1297
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1298
- readonly status: "exited" | "killed" | "running" | "timeout";
1299
- readonly command: string;
1300
- readonly cwd: string;
1301
- readonly shell: string;
1302
- readonly file: string;
1303
- readonly pid?: number | undefined;
1304
- readonly exit?: number | undefined;
1305
- readonly signal?: string | undefined;
1306
- readonly metadata: {
1307
- readonly [x: string]: unknown;
1308
- };
1309
- readonly time: {
1310
- readonly started: number;
1311
- readonly completed?: number | undefined;
1312
- };
1313
- };
1314
- readonly output: {
1315
- readonly output: string;
1316
- readonly cursor: number;
1317
- readonly size: number;
1318
- readonly truncated: boolean;
1319
- };
1549
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1550
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1551
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1552
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1320
1553
  };
1321
1554
  } | {
1322
1555
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1324,141 +1557,50 @@ export declare const make: (options?: {
1324
1557
  readonly metadata?: {
1325
1558
  readonly [x: string]: unknown;
1326
1559
  } | undefined;
1327
- readonly type: "session.shell.started";
1328
- readonly durable: {
1329
- readonly aggregateID: string;
1330
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1331
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1332
- };
1560
+ readonly type: "agent.updated";
1333
1561
  readonly location?: {
1334
1562
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1335
1563
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1336
1564
  } | undefined;
1337
- readonly data: {
1338
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1339
- readonly shell: {
1340
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1341
- readonly status: "exited" | "killed" | "running" | "timeout";
1342
- readonly command: string;
1343
- readonly cwd: string;
1344
- readonly shell: string;
1345
- readonly file: string;
1346
- readonly pid?: number | undefined;
1347
- readonly exit?: number | undefined;
1348
- readonly signal?: string | undefined;
1349
- readonly metadata: {
1350
- readonly [x: string]: unknown;
1351
- };
1352
- readonly time: {
1353
- readonly started: number;
1354
- readonly completed?: number | undefined;
1355
- };
1356
- };
1357
- };
1565
+ readonly data: {};
1358
1566
  } | {
1359
1567
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1360
1568
  readonly created: number;
1361
1569
  readonly metadata?: {
1362
1570
  readonly [x: string]: unknown;
1363
1571
  } | undefined;
1364
- readonly type: "session.skill.activated";
1365
- readonly durable: {
1366
- readonly aggregateID: string;
1367
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1368
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1369
- };
1572
+ readonly type: "command.updated";
1370
1573
  readonly location?: {
1371
1574
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1372
1575
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1373
1576
  } | undefined;
1374
- readonly data: {
1375
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1376
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1377
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1378
- readonly text: string;
1379
- };
1577
+ readonly data: {};
1380
1578
  } | {
1381
1579
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1382
1580
  readonly created: number;
1383
1581
  readonly metadata?: {
1384
1582
  readonly [x: string]: unknown;
1385
1583
  } | undefined;
1386
- readonly type: "session.step.ended";
1387
- readonly durable: {
1388
- readonly aggregateID: string;
1389
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1390
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1391
- };
1584
+ readonly type: "config.updated";
1392
1585
  readonly location?: {
1393
1586
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1394
1587
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1395
1588
  } | undefined;
1396
- readonly data: {
1397
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1398
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1399
- readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1400
- readonly rawFinish?: string | undefined;
1401
- readonly native?: {
1402
- readonly [x: string]: unknown;
1403
- } | undefined;
1404
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1405
- readonly tokens: {
1406
- readonly input: number;
1407
- readonly output: number;
1408
- readonly reasoning: number;
1409
- readonly cache: {
1410
- readonly read: number;
1411
- readonly write: number;
1412
- };
1413
- };
1414
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1415
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1416
- };
1589
+ readonly data: {};
1417
1590
  } | {
1418
1591
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1419
1592
  readonly created: number;
1420
1593
  readonly metadata?: {
1421
1594
  readonly [x: string]: unknown;
1422
1595
  } | undefined;
1423
- readonly type: "session.step.failed";
1424
- readonly durable: {
1425
- readonly aggregateID: string;
1426
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1427
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1428
- };
1596
+ readonly type: "credential.switched";
1429
1597
  readonly location?: {
1430
1598
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1431
1599
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1432
1600
  } | undefined;
1433
1601
  readonly data: {
1434
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1435
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1436
- readonly error: {
1437
- readonly type: string;
1438
- readonly message: string;
1439
- readonly status?: number | undefined;
1440
- readonly response?: {
1441
- readonly body: string;
1442
- } | undefined;
1443
- readonly retryAfterMs?: number | undefined;
1444
- };
1445
- readonly finish?: "content-filter" | undefined;
1446
- readonly rawFinish?: string | undefined;
1447
- readonly native?: {
1448
- readonly [x: string]: unknown;
1449
- } | undefined;
1450
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1451
- readonly tokens?: {
1452
- readonly input: number;
1453
- readonly output: number;
1454
- readonly reasoning: number;
1455
- readonly cache: {
1456
- readonly read: number;
1457
- readonly write: number;
1458
- };
1459
- } | undefined;
1460
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1461
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1602
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1603
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
1462
1604
  };
1463
1605
  } | {
1464
1606
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1466,47 +1608,26 @@ export declare const make: (options?: {
1466
1608
  readonly metadata?: {
1467
1609
  readonly [x: string]: unknown;
1468
1610
  } | undefined;
1469
- readonly type: "session.step.started";
1470
- readonly durable: {
1471
- readonly aggregateID: string;
1472
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1473
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1474
- };
1611
+ readonly type: "credential.updated";
1475
1612
  readonly location?: {
1476
1613
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1477
1614
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1478
1615
  } | undefined;
1479
- readonly data: {
1480
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1481
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1482
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1483
- readonly model: {
1484
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1485
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1486
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1487
- };
1488
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1489
- readonly started: number;
1490
- };
1616
+ readonly data: {};
1491
1617
  } | {
1492
1618
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1493
1619
  readonly created: number;
1494
1620
  readonly metadata?: {
1495
1621
  readonly [x: string]: unknown;
1496
1622
  } | undefined;
1497
- readonly type: "session.step.streamed";
1498
- readonly durable: {
1499
- readonly aggregateID: string;
1500
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1501
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1502
- };
1623
+ readonly type: "filesystem.changed";
1503
1624
  readonly location?: {
1504
1625
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1505
1626
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1506
1627
  } | undefined;
1507
1628
  readonly data: {
1508
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1509
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1629
+ readonly file: string;
1630
+ readonly event: "add" | "change" | "unlink";
1510
1631
  };
1511
1632
  } | {
1512
1633
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1514,23 +1635,14 @@ export declare const make: (options?: {
1514
1635
  readonly metadata?: {
1515
1636
  readonly [x: string]: unknown;
1516
1637
  } | undefined;
1517
- readonly type: "session.synthetic";
1518
- readonly durable: {
1519
- readonly aggregateID: string;
1520
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1521
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1522
- };
1638
+ readonly type: "form.cancelled";
1523
1639
  readonly location?: {
1524
1640
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1525
1641
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1526
1642
  } | undefined;
1527
1643
  readonly data: {
1528
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1529
- readonly text: string;
1530
- readonly description?: string | undefined;
1531
- readonly metadata?: {
1532
- readonly [x: string]: unknown;
1533
- } | undefined;
1644
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1645
+ readonly sessionID: string;
1534
1646
  };
1535
1647
  } | {
1536
1648
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1538,24 +1650,209 @@ export declare const make: (options?: {
1538
1650
  readonly metadata?: {
1539
1651
  readonly [x: string]: unknown;
1540
1652
  } | undefined;
1541
- readonly type: "session.text.ended";
1542
- readonly durable: {
1543
- readonly aggregateID: string;
1544
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1545
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1546
- };
1653
+ readonly type: "form.created";
1547
1654
  readonly location?: {
1548
1655
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1549
1656
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1550
1657
  } | undefined;
1551
1658
  readonly data: {
1552
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1553
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1554
- readonly ordinal: number;
1555
- readonly text: string;
1556
- readonly native?: {
1557
- readonly [x: string]: unknown;
1558
- } | undefined;
1659
+ readonly form: {
1660
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1661
+ readonly sessionID: string;
1662
+ readonly title: string;
1663
+ readonly metadata?: {
1664
+ readonly [x: string]: unknown;
1665
+ } | undefined;
1666
+ readonly fields: readonly [{
1667
+ readonly key: string;
1668
+ readonly title?: string | undefined;
1669
+ readonly description?: string | undefined;
1670
+ readonly required?: boolean | undefined;
1671
+ readonly hidden?: boolean | undefined;
1672
+ readonly when?: readonly {
1673
+ readonly key: string;
1674
+ readonly op: "eq" | "neq";
1675
+ readonly value: string | number | boolean;
1676
+ }[] | undefined;
1677
+ readonly type: "string";
1678
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1679
+ readonly minLength?: number | undefined;
1680
+ readonly maxLength?: number | undefined;
1681
+ readonly pattern?: string | undefined;
1682
+ readonly placeholder?: string | undefined;
1683
+ readonly default?: string | undefined;
1684
+ readonly options?: readonly {
1685
+ readonly value: string;
1686
+ readonly label: string;
1687
+ readonly description?: string | undefined;
1688
+ }[] | undefined;
1689
+ readonly custom?: boolean | undefined;
1690
+ } | {
1691
+ readonly key: string;
1692
+ readonly title?: string | undefined;
1693
+ readonly description?: string | undefined;
1694
+ readonly required?: boolean | undefined;
1695
+ readonly hidden?: boolean | undefined;
1696
+ readonly when?: readonly {
1697
+ readonly key: string;
1698
+ readonly op: "eq" | "neq";
1699
+ readonly value: string | number | boolean;
1700
+ }[] | undefined;
1701
+ readonly type: "number";
1702
+ readonly minimum?: number | undefined;
1703
+ readonly maximum?: number | undefined;
1704
+ readonly default?: number | undefined;
1705
+ } | {
1706
+ readonly key: string;
1707
+ readonly title?: string | undefined;
1708
+ readonly description?: string | undefined;
1709
+ readonly required?: boolean | undefined;
1710
+ readonly hidden?: boolean | undefined;
1711
+ readonly when?: readonly {
1712
+ readonly key: string;
1713
+ readonly op: "eq" | "neq";
1714
+ readonly value: string | number | boolean;
1715
+ }[] | undefined;
1716
+ readonly type: "integer";
1717
+ readonly minimum?: number | undefined;
1718
+ readonly maximum?: number | undefined;
1719
+ readonly default?: number | undefined;
1720
+ } | {
1721
+ readonly key: string;
1722
+ readonly title?: string | undefined;
1723
+ readonly description?: string | undefined;
1724
+ readonly required?: boolean | undefined;
1725
+ readonly hidden?: boolean | undefined;
1726
+ readonly when?: readonly {
1727
+ readonly key: string;
1728
+ readonly op: "eq" | "neq";
1729
+ readonly value: string | number | boolean;
1730
+ }[] | undefined;
1731
+ readonly type: "boolean";
1732
+ readonly default?: boolean | undefined;
1733
+ } | {
1734
+ readonly key: string;
1735
+ readonly title?: string | undefined;
1736
+ readonly description?: string | undefined;
1737
+ readonly required?: boolean | undefined;
1738
+ readonly hidden?: boolean | undefined;
1739
+ readonly when?: readonly {
1740
+ readonly key: string;
1741
+ readonly op: "eq" | "neq";
1742
+ readonly value: string | number | boolean;
1743
+ }[] | undefined;
1744
+ readonly type: "multiselect";
1745
+ readonly options: readonly {
1746
+ readonly value: string;
1747
+ readonly label: string;
1748
+ readonly description?: string | undefined;
1749
+ }[];
1750
+ readonly minItems?: number | undefined;
1751
+ readonly maxItems?: number | undefined;
1752
+ readonly custom?: boolean | undefined;
1753
+ readonly default?: readonly string[] | undefined;
1754
+ } | {
1755
+ readonly key: string;
1756
+ readonly type: "external";
1757
+ readonly url: string;
1758
+ readonly title?: string | undefined;
1759
+ readonly description?: string | undefined;
1760
+ }, ...({
1761
+ readonly key: string;
1762
+ readonly title?: string | undefined;
1763
+ readonly description?: string | undefined;
1764
+ readonly required?: boolean | undefined;
1765
+ readonly hidden?: boolean | undefined;
1766
+ readonly when?: readonly {
1767
+ readonly key: string;
1768
+ readonly op: "eq" | "neq";
1769
+ readonly value: string | number | boolean;
1770
+ }[] | undefined;
1771
+ readonly type: "string";
1772
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1773
+ readonly minLength?: number | undefined;
1774
+ readonly maxLength?: number | undefined;
1775
+ readonly pattern?: string | undefined;
1776
+ readonly placeholder?: string | undefined;
1777
+ readonly default?: string | undefined;
1778
+ readonly options?: readonly {
1779
+ readonly value: string;
1780
+ readonly label: string;
1781
+ readonly description?: string | undefined;
1782
+ }[] | undefined;
1783
+ readonly custom?: boolean | undefined;
1784
+ } | {
1785
+ readonly key: string;
1786
+ readonly title?: string | undefined;
1787
+ readonly description?: string | undefined;
1788
+ readonly required?: boolean | undefined;
1789
+ readonly hidden?: boolean | undefined;
1790
+ readonly when?: readonly {
1791
+ readonly key: string;
1792
+ readonly op: "eq" | "neq";
1793
+ readonly value: string | number | boolean;
1794
+ }[] | undefined;
1795
+ readonly type: "number";
1796
+ readonly minimum?: number | undefined;
1797
+ readonly maximum?: number | undefined;
1798
+ readonly default?: number | undefined;
1799
+ } | {
1800
+ readonly key: string;
1801
+ readonly title?: string | undefined;
1802
+ readonly description?: string | undefined;
1803
+ readonly required?: boolean | undefined;
1804
+ readonly hidden?: boolean | undefined;
1805
+ readonly when?: readonly {
1806
+ readonly key: string;
1807
+ readonly op: "eq" | "neq";
1808
+ readonly value: string | number | boolean;
1809
+ }[] | undefined;
1810
+ readonly type: "integer";
1811
+ readonly minimum?: number | undefined;
1812
+ readonly maximum?: number | undefined;
1813
+ readonly default?: number | undefined;
1814
+ } | {
1815
+ readonly key: string;
1816
+ readonly title?: string | undefined;
1817
+ readonly description?: string | undefined;
1818
+ readonly required?: boolean | undefined;
1819
+ readonly hidden?: boolean | undefined;
1820
+ readonly when?: readonly {
1821
+ readonly key: string;
1822
+ readonly op: "eq" | "neq";
1823
+ readonly value: string | number | boolean;
1824
+ }[] | undefined;
1825
+ readonly type: "boolean";
1826
+ readonly default?: boolean | undefined;
1827
+ } | {
1828
+ readonly key: string;
1829
+ readonly title?: string | undefined;
1830
+ readonly description?: string | undefined;
1831
+ readonly required?: boolean | undefined;
1832
+ readonly hidden?: boolean | undefined;
1833
+ readonly when?: readonly {
1834
+ readonly key: string;
1835
+ readonly op: "eq" | "neq";
1836
+ readonly value: string | number | boolean;
1837
+ }[] | undefined;
1838
+ readonly type: "multiselect";
1839
+ readonly options: readonly {
1840
+ readonly value: string;
1841
+ readonly label: string;
1842
+ readonly description?: string | undefined;
1843
+ }[];
1844
+ readonly minItems?: number | undefined;
1845
+ readonly maxItems?: number | undefined;
1846
+ readonly custom?: boolean | undefined;
1847
+ readonly default?: readonly string[] | undefined;
1848
+ } | {
1849
+ readonly key: string;
1850
+ readonly type: "external";
1851
+ readonly url: string;
1852
+ readonly title?: string | undefined;
1853
+ readonly description?: string | undefined;
1854
+ })[]];
1855
+ };
1559
1856
  };
1560
1857
  } | {
1561
1858
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1563,48 +1860,17 @@ export declare const make: (options?: {
1563
1860
  readonly metadata?: {
1564
1861
  readonly [x: string]: unknown;
1565
1862
  } | undefined;
1566
- readonly type: "session.text.started";
1567
- readonly durable: {
1568
- readonly aggregateID: string;
1569
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1570
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1571
- };
1863
+ readonly type: "form.replied";
1572
1864
  readonly location?: {
1573
1865
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1574
1866
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1575
1867
  } | undefined;
1576
1868
  readonly data: {
1577
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1578
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1579
- readonly ordinal: number;
1580
- };
1581
- } | {
1582
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1583
- readonly created: number;
1584
- readonly metadata?: {
1585
- readonly [x: string]: unknown;
1586
- } | undefined;
1587
- readonly type: "session.tool.called";
1588
- readonly durable: {
1589
- readonly aggregateID: string;
1590
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1591
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1592
- };
1593
- readonly location?: {
1594
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1595
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1596
- } | undefined;
1597
- readonly data: {
1598
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1599
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1600
- readonly id: string;
1601
- readonly input: {
1602
- readonly [x: string]: unknown;
1869
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1870
+ readonly sessionID: string;
1871
+ readonly answer: {
1872
+ readonly [x: string]: string | number | boolean | readonly string[];
1603
1873
  };
1604
- readonly executed: boolean;
1605
- readonly native?: {
1606
- readonly [x: string]: unknown;
1607
- } | undefined;
1608
1874
  };
1609
1875
  } | {
1610
1876
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1612,53 +1878,13 @@ export declare const make: (options?: {
1612
1878
  readonly metadata?: {
1613
1879
  readonly [x: string]: unknown;
1614
1880
  } | undefined;
1615
- readonly type: "session.tool.failed";
1616
- readonly durable: {
1617
- readonly aggregateID: string;
1618
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1619
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1620
- };
1881
+ readonly type: "installation.update-available";
1621
1882
  readonly location?: {
1622
1883
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1623
1884
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1624
1885
  } | undefined;
1625
1886
  readonly data: {
1626
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1627
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1628
- readonly id: string;
1629
- readonly error: {
1630
- readonly type: string;
1631
- readonly message: string;
1632
- readonly status?: number | undefined;
1633
- readonly response?: {
1634
- readonly body: string;
1635
- } | undefined;
1636
- readonly retryAfterMs?: number | undefined;
1637
- };
1638
- readonly content?: readonly [{
1639
- readonly type: "text";
1640
- readonly text: string;
1641
- } | {
1642
- readonly type: "file";
1643
- readonly uri: string;
1644
- readonly mime: string;
1645
- readonly name?: string | undefined;
1646
- }, ...({
1647
- readonly type: "text";
1648
- readonly text: string;
1649
- } | {
1650
- readonly type: "file";
1651
- readonly uri: string;
1652
- readonly mime: string;
1653
- readonly name?: string | undefined;
1654
- })[]] | undefined;
1655
- readonly metadata?: {
1656
- readonly [x: string]: import("effect/Schema").Json;
1657
- } | undefined;
1658
- readonly executed: boolean;
1659
- readonly native?: {
1660
- readonly [x: string]: unknown;
1661
- } | undefined;
1887
+ readonly version: string;
1662
1888
  };
1663
1889
  } | {
1664
1890
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1666,21 +1892,13 @@ export declare const make: (options?: {
1666
1892
  readonly metadata?: {
1667
1893
  readonly [x: string]: unknown;
1668
1894
  } | undefined;
1669
- readonly type: "session.tool.input.ended";
1670
- readonly durable: {
1671
- readonly aggregateID: string;
1672
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1673
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1674
- };
1895
+ readonly type: "installation.updated";
1675
1896
  readonly location?: {
1676
1897
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1677
1898
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1678
1899
  } | undefined;
1679
1900
  readonly data: {
1680
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1681
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1682
- readonly id: string;
1683
- readonly text: string;
1901
+ readonly version: string;
1684
1902
  };
1685
1903
  } | {
1686
1904
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1688,85 +1906,37 @@ export declare const make: (options?: {
1688
1906
  readonly metadata?: {
1689
1907
  readonly [x: string]: unknown;
1690
1908
  } | undefined;
1691
- readonly type: "session.tool.input.started";
1692
- readonly durable: {
1693
- readonly aggregateID: string;
1694
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1695
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1696
- };
1909
+ readonly type: "integration.updated";
1697
1910
  readonly location?: {
1698
1911
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1699
1912
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1700
1913
  } | undefined;
1701
- readonly data: {
1702
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1703
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1704
- readonly id: string;
1705
- readonly name: string;
1706
- };
1914
+ readonly data: {};
1707
1915
  } | {
1708
1916
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1709
1917
  readonly created: number;
1710
1918
  readonly metadata?: {
1711
1919
  readonly [x: string]: unknown;
1712
1920
  } | undefined;
1713
- readonly type: "session.tool.success";
1714
- readonly durable: {
1715
- readonly aggregateID: string;
1716
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1717
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1718
- };
1921
+ readonly type: "location.shutdown";
1719
1922
  readonly location?: {
1720
1923
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1721
1924
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1722
1925
  } | undefined;
1723
- readonly data: {
1724
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1725
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1726
- readonly id: string;
1727
- readonly content: readonly [{
1728
- readonly type: "text";
1729
- readonly text: string;
1730
- } | {
1731
- readonly type: "file";
1732
- readonly uri: string;
1733
- readonly mime: string;
1734
- readonly name?: string | undefined;
1735
- }, ...({
1736
- readonly type: "text";
1737
- readonly text: string;
1738
- } | {
1739
- readonly type: "file";
1740
- readonly uri: string;
1741
- readonly mime: string;
1742
- readonly name?: string | undefined;
1743
- })[]];
1744
- readonly metadata?: {
1745
- readonly [x: string]: import("effect/Schema").Json;
1746
- } | undefined;
1747
- readonly executed: boolean;
1748
- readonly native?: {
1749
- readonly [x: string]: unknown;
1750
- } | undefined;
1751
- };
1926
+ readonly data: {};
1752
1927
  } | {
1753
1928
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1754
1929
  readonly created: number;
1755
1930
  readonly metadata?: {
1756
1931
  readonly [x: string]: unknown;
1757
1932
  } | undefined;
1758
- readonly type: "session.unarchived";
1759
- readonly durable: {
1760
- readonly aggregateID: string;
1761
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1762
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1763
- };
1933
+ readonly type: "mcp.resources.changed";
1764
1934
  readonly location?: {
1765
1935
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1766
1936
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1767
1937
  } | undefined;
1768
1938
  readonly data: {
1769
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1939
+ readonly server: string;
1770
1940
  };
1771
1941
  } | {
1772
1942
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1774,19 +1944,13 @@ export declare const make: (options?: {
1774
1944
  readonly metadata?: {
1775
1945
  readonly [x: string]: unknown;
1776
1946
  } | undefined;
1777
- readonly type: "session.viewed";
1778
- readonly durable: {
1779
- readonly aggregateID: string;
1780
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1781
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1782
- };
1947
+ readonly type: "mcp.status.changed";
1783
1948
  readonly location?: {
1784
1949
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1785
1950
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1786
1951
  } | undefined;
1787
1952
  readonly data: {
1788
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1789
- readonly idle: number;
1953
+ readonly server: string;
1790
1954
  };
1791
1955
  } | {
1792
1956
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1794,48 +1958,50 @@ export declare const make: (options?: {
1794
1958
  readonly metadata?: {
1795
1959
  readonly [x: string]: unknown;
1796
1960
  } | undefined;
1797
- readonly type: "session.compaction.delta";
1961
+ readonly type: "model.updated";
1798
1962
  readonly location?: {
1799
1963
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1800
1964
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1801
1965
  } | undefined;
1802
- readonly data: {
1803
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1804
- readonly text: string;
1805
- };
1966
+ readonly data: {};
1806
1967
  } | {
1807
1968
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1808
1969
  readonly created: number;
1809
1970
  readonly metadata?: {
1810
1971
  readonly [x: string]: unknown;
1811
1972
  } | undefined;
1812
- readonly type: "session.reasoning.delta";
1973
+ readonly type: "models-dev.refreshed";
1813
1974
  readonly location?: {
1814
1975
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1815
1976
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1816
1977
  } | undefined;
1817
- readonly data: {
1818
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1819
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1820
- readonly ordinal: number;
1821
- readonly delta: string;
1822
- };
1978
+ readonly data: {};
1823
1979
  } | {
1824
1980
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1825
1981
  readonly created: number;
1826
1982
  readonly metadata?: {
1827
1983
  readonly [x: string]: unknown;
1828
1984
  } | undefined;
1829
- readonly type: "session.text.delta";
1985
+ readonly type: "permission.asked";
1830
1986
  readonly location?: {
1831
1987
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1832
1988
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1833
1989
  } | undefined;
1834
1990
  readonly data: {
1835
1991
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1836
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1837
- readonly ordinal: number;
1838
- readonly delta: string;
1992
+ readonly action: string;
1993
+ readonly resources: readonly string[];
1994
+ readonly save?: readonly string[] | undefined;
1995
+ readonly metadata?: {
1996
+ readonly [x: string]: unknown;
1997
+ } | undefined;
1998
+ readonly source?: {
1999
+ readonly type: "tool";
2000
+ readonly messageID: string;
2001
+ readonly id: string;
2002
+ } | undefined;
2003
+ readonly message?: string | undefined;
2004
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
1839
2005
  };
1840
2006
  } | {
1841
2007
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1843,16 +2009,15 @@ export declare const make: (options?: {
1843
2009
  readonly metadata?: {
1844
2010
  readonly [x: string]: unknown;
1845
2011
  } | undefined;
1846
- readonly type: "session.tool.input.delta";
2012
+ readonly type: "permission.replied";
1847
2013
  readonly location?: {
1848
2014
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1849
2015
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1850
2016
  } | undefined;
1851
2017
  readonly data: {
1852
2018
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1853
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1854
- readonly id: string;
1855
- readonly delta: string;
2019
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
2020
+ readonly reply: "always" | "once" | "reject";
1856
2021
  };
1857
2022
  } | {
1858
2023
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1860,17 +2025,32 @@ export declare const make: (options?: {
1860
2025
  readonly metadata?: {
1861
2026
  readonly [x: string]: unknown;
1862
2027
  } | undefined;
1863
- readonly type: "session.tool.progress";
2028
+ readonly type: "persistent-pty.added";
1864
2029
  readonly location?: {
1865
2030
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1866
2031
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1867
2032
  } | undefined;
1868
2033
  readonly data: {
1869
2034
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1870
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1871
- readonly id: string;
1872
- readonly metadata: {
1873
- readonly [x: string]: import("effect/Schema").Json;
2035
+ readonly terminal: {
2036
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2037
+ readonly title: string;
2038
+ readonly command: string;
2039
+ readonly args: readonly string[];
2040
+ readonly cwd: string;
2041
+ readonly status: "exited" | "running";
2042
+ readonly pid: number;
2043
+ readonly exitCode?: number | undefined;
2044
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2045
+ readonly foregroundProcess: string | null;
2046
+ readonly size: {
2047
+ readonly cols: number;
2048
+ readonly rows: number;
2049
+ };
2050
+ readonly output: {
2051
+ readonly head: number;
2052
+ readonly tail: number;
2053
+ };
1874
2054
  };
1875
2055
  };
1876
2056
  } | {
@@ -1879,23 +2059,14 @@ export declare const make: (options?: {
1879
2059
  readonly metadata?: {
1880
2060
  readonly [x: string]: unknown;
1881
2061
  } | undefined;
1882
- readonly type: "session.usage.updated";
2062
+ readonly type: "persistent-pty.removed";
1883
2063
  readonly location?: {
1884
2064
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1885
2065
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1886
2066
  } | undefined;
1887
2067
  readonly data: {
1888
2068
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1889
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1890
- readonly tokens: {
1891
- readonly input: number;
1892
- readonly output: number;
1893
- readonly reasoning: number;
1894
- readonly cache: {
1895
- readonly read: number;
1896
- readonly write: number;
1897
- };
1898
- };
2069
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
1899
2070
  };
1900
2071
  } | {
1901
2072
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1947,7 +2118,7 @@ export declare const make: (options?: {
1947
2118
  readonly metadata?: {
1948
2119
  readonly [x: string]: unknown;
1949
2120
  } | undefined;
1950
- readonly type: "command.updated";
2121
+ readonly type: "provider.updated";
1951
2122
  readonly location?: {
1952
2123
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1953
2124
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -1959,433 +2130,36 @@ export declare const make: (options?: {
1959
2130
  readonly metadata?: {
1960
2131
  readonly [x: string]: unknown;
1961
2132
  } | undefined;
1962
- readonly type: "config.updated";
2133
+ readonly type: "pty.created";
1963
2134
  readonly location?: {
1964
2135
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1965
2136
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1966
2137
  } | undefined;
1967
- readonly data: {};
2138
+ readonly data: {
2139
+ readonly info: {
2140
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2141
+ readonly title: string;
2142
+ readonly command: string;
2143
+ readonly args: readonly string[];
2144
+ readonly cwd: string;
2145
+ readonly status: "exited" | "running";
2146
+ readonly pid: number;
2147
+ readonly exitCode?: number | undefined;
2148
+ };
2149
+ };
1968
2150
  } | {
1969
2151
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1970
2152
  readonly created: number;
1971
2153
  readonly metadata?: {
1972
2154
  readonly [x: string]: unknown;
1973
2155
  } | undefined;
1974
- readonly type: "skill.updated";
2156
+ readonly type: "pty.deleted";
1975
2157
  readonly location?: {
1976
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1977
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1978
- } | undefined;
1979
- readonly data: {};
1980
- } | {
1981
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1982
- readonly created: number;
1983
- readonly metadata?: {
1984
- readonly [x: string]: unknown;
1985
- } | undefined;
1986
- readonly type: "pty.created";
1987
- readonly location?: {
1988
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1989
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1990
- } | undefined;
1991
- readonly data: {
1992
- readonly info: {
1993
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
1994
- readonly title: string;
1995
- readonly command: string;
1996
- readonly args: readonly string[];
1997
- readonly cwd: string;
1998
- readonly status: "exited" | "running";
1999
- readonly pid: number;
2000
- readonly exitCode?: number | undefined;
2001
- };
2002
- };
2003
- } | {
2004
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2005
- readonly created: number;
2006
- readonly metadata?: {
2007
- readonly [x: string]: unknown;
2008
- } | undefined;
2009
- readonly type: "pty.deleted";
2010
- readonly location?: {
2011
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2012
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2013
- } | undefined;
2014
- readonly data: {
2015
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2016
- };
2017
- } | {
2018
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2019
- readonly created: number;
2020
- readonly metadata?: {
2021
- readonly [x: string]: unknown;
2022
- } | undefined;
2023
- readonly type: "pty.exited";
2024
- readonly location?: {
2025
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2026
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2027
- } | undefined;
2028
- readonly data: {
2029
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2030
- readonly exitCode: number;
2031
- };
2032
- } | {
2033
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2034
- readonly created: number;
2035
- readonly metadata?: {
2036
- readonly [x: string]: unknown;
2037
- } | undefined;
2038
- readonly type: "pty.updated";
2039
- readonly location?: {
2040
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2041
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2042
- } | undefined;
2043
- readonly data: {
2044
- readonly info: {
2045
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2046
- readonly title: string;
2047
- readonly command: string;
2048
- readonly args: readonly string[];
2049
- readonly cwd: string;
2050
- readonly status: "exited" | "running";
2051
- readonly pid: number;
2052
- readonly exitCode?: number | undefined;
2053
- };
2054
- };
2055
- } | {
2056
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2057
- readonly created: number;
2058
- readonly metadata?: {
2059
- readonly [x: string]: unknown;
2060
- } | undefined;
2061
- readonly type: "persistent-pty.added";
2062
- readonly location?: {
2063
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2064
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2065
- } | undefined;
2066
- readonly data: {
2067
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2068
- readonly terminal: {
2069
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2070
- readonly title: string;
2071
- readonly command: string;
2072
- readonly args: readonly string[];
2073
- readonly cwd: string;
2074
- readonly status: "exited" | "running";
2075
- readonly pid: number;
2076
- readonly exitCode?: number | undefined;
2077
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2078
- readonly foregroundProcess: string | null;
2079
- readonly size: {
2080
- readonly cols: number;
2081
- readonly rows: number;
2082
- };
2083
- readonly output: {
2084
- readonly head: number;
2085
- readonly tail: number;
2086
- };
2087
- };
2088
- };
2089
- } | {
2090
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2091
- readonly created: number;
2092
- readonly metadata?: {
2093
- readonly [x: string]: unknown;
2094
- } | undefined;
2095
- readonly type: "persistent-pty.removed";
2096
- readonly location?: {
2097
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2098
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2099
- } | undefined;
2100
- readonly data: {
2101
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2102
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2103
- };
2104
- } | {
2105
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2106
- readonly created: number;
2107
- readonly metadata?: {
2108
- readonly [x: string]: unknown;
2109
- } | undefined;
2110
- readonly type: "shell.created";
2111
- readonly location?: {
2112
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2113
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2114
- } | undefined;
2115
- readonly data: {
2116
- readonly info: {
2117
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2118
- readonly status: "exited" | "killed" | "running" | "timeout";
2119
- readonly command: string;
2120
- readonly cwd: string;
2121
- readonly shell: string;
2122
- readonly file: string;
2123
- readonly pid?: number | undefined;
2124
- readonly exit?: number | undefined;
2125
- readonly signal?: string | undefined;
2126
- readonly metadata: {
2127
- readonly [x: string]: unknown;
2128
- };
2129
- readonly time: {
2130
- readonly started: number;
2131
- readonly completed?: number | undefined;
2132
- };
2133
- };
2134
- };
2135
- } | {
2136
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2137
- readonly created: number;
2138
- readonly metadata?: {
2139
- readonly [x: string]: unknown;
2140
- } | undefined;
2141
- readonly type: "shell.deleted";
2142
- readonly location?: {
2143
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2144
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2145
- } | undefined;
2146
- readonly data: {
2147
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2148
- };
2149
- } | {
2150
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2151
- readonly created: number;
2152
- readonly metadata?: {
2153
- readonly [x: string]: unknown;
2154
- } | undefined;
2155
- readonly type: "shell.exited";
2156
- readonly location?: {
2157
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2158
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2159
- } | undefined;
2160
- readonly data: {
2161
- readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2162
- readonly exit?: number | undefined;
2163
- readonly status: "exited" | "killed" | "running" | "timeout";
2164
- };
2165
- } | {
2166
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2167
- readonly created: number;
2168
- readonly metadata?: {
2169
- readonly [x: string]: unknown;
2170
- } | undefined;
2171
- readonly type: "form.cancelled";
2172
- readonly location?: {
2173
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2174
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2175
- } | undefined;
2176
- readonly data: {
2177
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2178
- readonly sessionID: string;
2179
- };
2180
- } | {
2181
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2182
- readonly created: number;
2183
- readonly metadata?: {
2184
- readonly [x: string]: unknown;
2185
- } | undefined;
2186
- readonly type: "form.created";
2187
- readonly location?: {
2188
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2189
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2190
- } | undefined;
2191
- readonly data: {
2192
- readonly form: {
2193
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2194
- readonly sessionID: string;
2195
- readonly title: string;
2196
- readonly metadata?: {
2197
- readonly [x: string]: unknown;
2198
- } | undefined;
2199
- readonly fields: readonly [{
2200
- readonly key: string;
2201
- readonly title?: string | undefined;
2202
- readonly description?: string | undefined;
2203
- readonly required?: boolean | undefined;
2204
- readonly hidden?: boolean | undefined;
2205
- readonly when?: readonly {
2206
- readonly key: string;
2207
- readonly op: "eq" | "neq";
2208
- readonly value: string | number | boolean;
2209
- }[] | undefined;
2210
- readonly type: "string";
2211
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
2212
- readonly minLength?: number | undefined;
2213
- readonly maxLength?: number | undefined;
2214
- readonly pattern?: string | undefined;
2215
- readonly placeholder?: string | undefined;
2216
- readonly default?: string | undefined;
2217
- readonly options?: readonly {
2218
- readonly value: string;
2219
- readonly label: string;
2220
- readonly description?: string | undefined;
2221
- }[] | undefined;
2222
- readonly custom?: boolean | undefined;
2223
- } | {
2224
- readonly key: string;
2225
- readonly title?: string | undefined;
2226
- readonly description?: string | undefined;
2227
- readonly required?: boolean | undefined;
2228
- readonly hidden?: boolean | undefined;
2229
- readonly when?: readonly {
2230
- readonly key: string;
2231
- readonly op: "eq" | "neq";
2232
- readonly value: string | number | boolean;
2233
- }[] | undefined;
2234
- readonly type: "number";
2235
- readonly minimum?: number | undefined;
2236
- readonly maximum?: number | undefined;
2237
- readonly default?: number | undefined;
2238
- } | {
2239
- readonly key: string;
2240
- readonly title?: string | undefined;
2241
- readonly description?: string | undefined;
2242
- readonly required?: boolean | undefined;
2243
- readonly hidden?: boolean | undefined;
2244
- readonly when?: readonly {
2245
- readonly key: string;
2246
- readonly op: "eq" | "neq";
2247
- readonly value: string | number | boolean;
2248
- }[] | undefined;
2249
- readonly type: "integer";
2250
- readonly minimum?: number | undefined;
2251
- readonly maximum?: number | undefined;
2252
- readonly default?: number | undefined;
2253
- } | {
2254
- readonly key: string;
2255
- readonly title?: string | undefined;
2256
- readonly description?: string | undefined;
2257
- readonly required?: boolean | undefined;
2258
- readonly hidden?: boolean | undefined;
2259
- readonly when?: readonly {
2260
- readonly key: string;
2261
- readonly op: "eq" | "neq";
2262
- readonly value: string | number | boolean;
2263
- }[] | undefined;
2264
- readonly type: "boolean";
2265
- readonly default?: boolean | undefined;
2266
- } | {
2267
- readonly key: string;
2268
- readonly title?: string | undefined;
2269
- readonly description?: string | undefined;
2270
- readonly required?: boolean | undefined;
2271
- readonly hidden?: boolean | undefined;
2272
- readonly when?: readonly {
2273
- readonly key: string;
2274
- readonly op: "eq" | "neq";
2275
- readonly value: string | number | boolean;
2276
- }[] | undefined;
2277
- readonly type: "multiselect";
2278
- readonly options: readonly {
2279
- readonly value: string;
2280
- readonly label: string;
2281
- readonly description?: string | undefined;
2282
- }[];
2283
- readonly minItems?: number | undefined;
2284
- readonly maxItems?: number | undefined;
2285
- readonly custom?: boolean | undefined;
2286
- readonly default?: readonly string[] | undefined;
2287
- } | {
2288
- readonly key: string;
2289
- readonly type: "external";
2290
- readonly url: string;
2291
- readonly title?: string | undefined;
2292
- readonly description?: string | undefined;
2293
- }, ...({
2294
- readonly key: string;
2295
- readonly title?: string | undefined;
2296
- readonly description?: string | undefined;
2297
- readonly required?: boolean | undefined;
2298
- readonly hidden?: boolean | undefined;
2299
- readonly when?: readonly {
2300
- readonly key: string;
2301
- readonly op: "eq" | "neq";
2302
- readonly value: string | number | boolean;
2303
- }[] | undefined;
2304
- readonly type: "string";
2305
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
2306
- readonly minLength?: number | undefined;
2307
- readonly maxLength?: number | undefined;
2308
- readonly pattern?: string | undefined;
2309
- readonly placeholder?: string | undefined;
2310
- readonly default?: string | undefined;
2311
- readonly options?: readonly {
2312
- readonly value: string;
2313
- readonly label: string;
2314
- readonly description?: string | undefined;
2315
- }[] | undefined;
2316
- readonly custom?: boolean | undefined;
2317
- } | {
2318
- readonly key: string;
2319
- readonly title?: string | undefined;
2320
- readonly description?: string | undefined;
2321
- readonly required?: boolean | undefined;
2322
- readonly hidden?: boolean | undefined;
2323
- readonly when?: readonly {
2324
- readonly key: string;
2325
- readonly op: "eq" | "neq";
2326
- readonly value: string | number | boolean;
2327
- }[] | undefined;
2328
- readonly type: "number";
2329
- readonly minimum?: number | undefined;
2330
- readonly maximum?: number | undefined;
2331
- readonly default?: number | undefined;
2332
- } | {
2333
- readonly key: string;
2334
- readonly title?: string | undefined;
2335
- readonly description?: string | undefined;
2336
- readonly required?: boolean | undefined;
2337
- readonly hidden?: boolean | undefined;
2338
- readonly when?: readonly {
2339
- readonly key: string;
2340
- readonly op: "eq" | "neq";
2341
- readonly value: string | number | boolean;
2342
- }[] | undefined;
2343
- readonly type: "integer";
2344
- readonly minimum?: number | undefined;
2345
- readonly maximum?: number | undefined;
2346
- readonly default?: number | undefined;
2347
- } | {
2348
- readonly key: string;
2349
- readonly title?: string | undefined;
2350
- readonly description?: string | undefined;
2351
- readonly required?: boolean | undefined;
2352
- readonly hidden?: boolean | undefined;
2353
- readonly when?: readonly {
2354
- readonly key: string;
2355
- readonly op: "eq" | "neq";
2356
- readonly value: string | number | boolean;
2357
- }[] | undefined;
2358
- readonly type: "boolean";
2359
- readonly default?: boolean | undefined;
2360
- } | {
2361
- readonly key: string;
2362
- readonly title?: string | undefined;
2363
- readonly description?: string | undefined;
2364
- readonly required?: boolean | undefined;
2365
- readonly hidden?: boolean | undefined;
2366
- readonly when?: readonly {
2367
- readonly key: string;
2368
- readonly op: "eq" | "neq";
2369
- readonly value: string | number | boolean;
2370
- }[] | undefined;
2371
- readonly type: "multiselect";
2372
- readonly options: readonly {
2373
- readonly value: string;
2374
- readonly label: string;
2375
- readonly description?: string | undefined;
2376
- }[];
2377
- readonly minItems?: number | undefined;
2378
- readonly maxItems?: number | undefined;
2379
- readonly custom?: boolean | undefined;
2380
- readonly default?: readonly string[] | undefined;
2381
- } | {
2382
- readonly key: string;
2383
- readonly type: "external";
2384
- readonly url: string;
2385
- readonly title?: string | undefined;
2386
- readonly description?: string | undefined;
2387
- })[]];
2388
- };
2158
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2159
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2160
+ } | undefined;
2161
+ readonly data: {
2162
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2389
2163
  };
2390
2164
  } | {
2391
2165
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2393,16 +2167,36 @@ export declare const make: (options?: {
2393
2167
  readonly metadata?: {
2394
2168
  readonly [x: string]: unknown;
2395
2169
  } | undefined;
2396
- readonly type: "form.replied";
2170
+ readonly type: "pty.exited";
2397
2171
  readonly location?: {
2398
2172
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2399
2173
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2400
2174
  } | undefined;
2401
2175
  readonly data: {
2402
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
2403
- readonly sessionID: string;
2404
- readonly answer: {
2405
- readonly [x: string]: string | number | boolean | readonly string[];
2176
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2177
+ readonly exitCode: number;
2178
+ };
2179
+ } | {
2180
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2181
+ readonly created: number;
2182
+ readonly metadata?: {
2183
+ readonly [x: string]: unknown;
2184
+ } | undefined;
2185
+ readonly type: "pty.updated";
2186
+ readonly location?: {
2187
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2188
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2189
+ } | undefined;
2190
+ readonly data: {
2191
+ readonly info: {
2192
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2193
+ readonly title: string;
2194
+ readonly command: string;
2195
+ readonly args: readonly string[];
2196
+ readonly cwd: string;
2197
+ readonly status: "exited" | "running";
2198
+ readonly pid: number;
2199
+ readonly exitCode?: number | undefined;
2406
2200
  };
2407
2201
  };
2408
2202
  } | {
@@ -2411,12 +2205,27 @@ export declare const make: (options?: {
2411
2205
  readonly metadata?: {
2412
2206
  readonly [x: string]: unknown;
2413
2207
  } | undefined;
2414
- readonly type: "websearch.updated";
2208
+ readonly type: "reference.updated";
2415
2209
  readonly location?: {
2416
2210
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2417
2211
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2418
2212
  } | undefined;
2419
2213
  readonly data: {};
2214
+ } | {
2215
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2216
+ readonly created: number;
2217
+ readonly metadata?: {
2218
+ readonly [x: string]: unknown;
2219
+ } | undefined;
2220
+ readonly type: "session.compaction.delta";
2221
+ readonly location?: {
2222
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2223
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2224
+ } | undefined;
2225
+ readonly data: {
2226
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2227
+ readonly text: string;
2228
+ };
2420
2229
  } | {
2421
2230
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2422
2231
  readonly created: number;
@@ -2431,6 +2240,23 @@ export declare const make: (options?: {
2431
2240
  readonly data: {
2432
2241
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2433
2242
  };
2243
+ } | {
2244
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2245
+ readonly created: number;
2246
+ readonly metadata?: {
2247
+ readonly [x: string]: unknown;
2248
+ } | undefined;
2249
+ readonly type: "session.reasoning.delta";
2250
+ readonly location?: {
2251
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2252
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2253
+ } | undefined;
2254
+ readonly data: {
2255
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2256
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2257
+ readonly ordinal: number;
2258
+ readonly delta: string;
2259
+ };
2434
2260
  } | {
2435
2261
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2436
2262
  readonly created: number;
@@ -2446,6 +2272,8 @@ export declare const make: (options?: {
2446
2272
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2447
2273
  readonly status: {
2448
2274
  readonly type: "idle";
2275
+ } | {
2276
+ readonly type: "busy";
2449
2277
  } | {
2450
2278
  readonly type: "retry";
2451
2279
  readonly attempt: number;
@@ -2459,10 +2287,158 @@ export declare const make: (options?: {
2459
2287
  readonly link?: string | undefined;
2460
2288
  } | undefined;
2461
2289
  readonly next: number;
2462
- } | {
2463
- readonly type: "busy";
2464
2290
  };
2465
2291
  };
2292
+ } | {
2293
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2294
+ readonly created: number;
2295
+ readonly metadata?: {
2296
+ readonly [x: string]: unknown;
2297
+ } | undefined;
2298
+ readonly type: "session.text.delta";
2299
+ readonly location?: {
2300
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2301
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2302
+ } | undefined;
2303
+ readonly data: {
2304
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2305
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2306
+ readonly ordinal: number;
2307
+ readonly delta: string;
2308
+ };
2309
+ } | {
2310
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2311
+ readonly created: number;
2312
+ readonly metadata?: {
2313
+ readonly [x: string]: unknown;
2314
+ } | undefined;
2315
+ readonly type: "session.tool.input.delta";
2316
+ readonly location?: {
2317
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2318
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2319
+ } | undefined;
2320
+ readonly data: {
2321
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2322
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2323
+ readonly id: string;
2324
+ readonly delta: string;
2325
+ };
2326
+ } | {
2327
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2328
+ readonly created: number;
2329
+ readonly metadata?: {
2330
+ readonly [x: string]: unknown;
2331
+ } | undefined;
2332
+ readonly type: "session.tool.progress";
2333
+ readonly location?: {
2334
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2335
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2336
+ } | undefined;
2337
+ readonly data: {
2338
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2339
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2340
+ readonly id: string;
2341
+ readonly metadata: {
2342
+ readonly [x: string]: import("effect/Schema").Json;
2343
+ };
2344
+ };
2345
+ } | {
2346
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2347
+ readonly created: number;
2348
+ readonly metadata?: {
2349
+ readonly [x: string]: unknown;
2350
+ } | undefined;
2351
+ readonly type: "session.usage.updated";
2352
+ readonly location?: {
2353
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2354
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2355
+ } | undefined;
2356
+ readonly data: {
2357
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2358
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
2359
+ readonly tokens: {
2360
+ readonly input: number;
2361
+ readonly output: number;
2362
+ readonly reasoning: number;
2363
+ readonly cache: {
2364
+ readonly read: number;
2365
+ readonly write: number;
2366
+ };
2367
+ };
2368
+ };
2369
+ } | {
2370
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2371
+ readonly created: number;
2372
+ readonly metadata?: {
2373
+ readonly [x: string]: unknown;
2374
+ } | undefined;
2375
+ readonly type: "shell.created";
2376
+ readonly location?: {
2377
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2378
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2379
+ } | undefined;
2380
+ readonly data: {
2381
+ readonly info: {
2382
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2383
+ readonly status: "exited" | "killed" | "running" | "timeout";
2384
+ readonly command: string;
2385
+ readonly cwd: string;
2386
+ readonly shell: string;
2387
+ readonly file: string;
2388
+ readonly pid?: number | undefined;
2389
+ readonly exit?: number | undefined;
2390
+ readonly signal?: string | undefined;
2391
+ readonly metadata: {
2392
+ readonly [x: string]: unknown;
2393
+ };
2394
+ readonly time: {
2395
+ readonly started: number;
2396
+ readonly completed?: number | undefined;
2397
+ };
2398
+ };
2399
+ };
2400
+ } | {
2401
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2402
+ readonly created: number;
2403
+ readonly metadata?: {
2404
+ readonly [x: string]: unknown;
2405
+ } | undefined;
2406
+ readonly type: "shell.deleted";
2407
+ readonly location?: {
2408
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2409
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2410
+ } | undefined;
2411
+ readonly data: {
2412
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2413
+ };
2414
+ } | {
2415
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2416
+ readonly created: number;
2417
+ readonly metadata?: {
2418
+ readonly [x: string]: unknown;
2419
+ } | undefined;
2420
+ readonly type: "shell.exited";
2421
+ readonly location?: {
2422
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2423
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2424
+ } | undefined;
2425
+ readonly data: {
2426
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2427
+ readonly exit?: number | undefined;
2428
+ readonly status: "exited" | "killed" | "running" | "timeout";
2429
+ };
2430
+ } | {
2431
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2432
+ readonly created: number;
2433
+ readonly metadata?: {
2434
+ readonly [x: string]: unknown;
2435
+ } | undefined;
2436
+ readonly type: "skill.updated";
2437
+ readonly location?: {
2438
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2439
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2440
+ } | undefined;
2441
+ readonly data: {};
2466
2442
  } | {
2467
2443
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2468
2444
  readonly created: number;
@@ -2528,13 +2504,13 @@ export declare const make: (options?: {
2528
2504
  readonly metadata?: {
2529
2505
  readonly [x: string]: unknown;
2530
2506
  } | undefined;
2531
- readonly type: "mcp.resources.changed";
2507
+ readonly type: "vcs.branch.updated";
2532
2508
  readonly location?: {
2533
2509
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2534
2510
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2535
2511
  } | undefined;
2536
2512
  readonly data: {
2537
- readonly server: string;
2513
+ readonly branch?: string | undefined;
2538
2514
  };
2539
2515
  } | {
2540
2516
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2542,13 +2518,38 @@ export declare const make: (options?: {
2542
2518
  readonly metadata?: {
2543
2519
  readonly [x: string]: unknown;
2544
2520
  } | undefined;
2545
- readonly type: "mcp.status.changed";
2521
+ readonly type: "websearch.updated";
2522
+ readonly location?: {
2523
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2524
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2525
+ } | undefined;
2526
+ readonly data: {};
2527
+ } | {
2528
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2529
+ readonly created: number;
2530
+ readonly metadata?: {
2531
+ readonly [x: string]: unknown;
2532
+ } | undefined;
2533
+ readonly type: "worktree.updated";
2546
2534
  readonly location?: {
2547
2535
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2548
2536
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2549
2537
  } | undefined;
2550
2538
  readonly data: {
2551
- readonly server: string;
2539
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
2540
+ };
2541
+ } | {
2542
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2543
+ readonly created: number;
2544
+ readonly metadata?: {
2545
+ readonly [x: string]: unknown;
2546
+ } | undefined;
2547
+ readonly type: `rpc.${string}`;
2548
+ readonly location: {
2549
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2550
+ };
2551
+ readonly data: {
2552
+ readonly [x: string]: unknown;
2552
2553
  };
2553
2554
  } | {
2554
2555
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;