@opencode-ai/schema 0.0.0-next-15175 → 0.0.0-next-15180

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.
@@ -391,7 +391,7 @@ export declare const SessionDurable: {
391
391
  };
392
392
  readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
393
393
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
394
- readonly type: import("effect/Schema").Literal<"session.prompt.promoted">;
394
+ readonly type: import("effect/Schema").Literal<"session.input.promoted">;
395
395
  readonly durable: import("effect/Schema").Struct<{
396
396
  readonly aggregateID: import("effect/Schema").String;
397
397
  readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
@@ -427,7 +427,7 @@ export declare const SessionDurable: {
427
427
  };
428
428
  }>;
429
429
  }> & {
430
- type: "session.prompt.promoted";
430
+ type: "session.input.promoted";
431
431
  durability: "durable";
432
432
  durable: {
433
433
  readonly version: number;
@@ -449,7 +449,7 @@ export declare const SessionDurable: {
449
449
  };
450
450
  readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
451
451
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
452
- readonly type: import("effect/Schema").Literal<"session.prompt.admitted">;
452
+ readonly type: import("effect/Schema").Literal<"session.input.admitted">;
453
453
  readonly durable: import("effect/Schema").Struct<{
454
454
  readonly aggregateID: import("effect/Schema").String;
455
455
  readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
@@ -475,350 +475,260 @@ export declare const SessionDurable: {
475
475
  }>, never, never>;
476
476
  }>>, never, never>;
477
477
  readonly data: import("effect/Schema").Struct<{
478
- inputID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
478
+ readonly inputID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
479
479
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
480
480
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
481
481
  };
482
- prompt: import("effect/Schema").Struct<{
483
- readonly text: import("effect/Schema").String;
484
- readonly files: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
485
- readonly data: import("effect/Schema").String;
486
- readonly mime: import("effect/Schema").String;
487
- readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
488
- readonly type: import("effect/Schema").Literal<"inline">;
489
- }>, import("effect/Schema").Struct<{
490
- readonly type: import("effect/Schema").Literal<"uri">;
491
- readonly uri: import("effect/Schema").String;
492
- }>]>;
493
- readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
494
- readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
495
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
496
- readonly start: import("effect/Schema").Finite;
497
- readonly end: import("effect/Schema").Finite;
498
- readonly text: import("effect/Schema").String;
499
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
500
- readonly start: import("effect/Schema").Finite;
501
- readonly end: import("effect/Schema").Finite;
502
- readonly text: import("effect/Schema").String;
503
- }>>, never, never>;
504
- }> & {
505
- create: (input: SessionEvent.FileAttachment) => {
506
- readonly data: string;
507
- readonly mime: string;
508
- readonly source: {
509
- readonly type: "inline";
510
- } | {
511
- readonly type: "uri";
512
- readonly uri: string;
482
+ readonly input: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
483
+ readonly type: import("effect/Schema").tag<"user">;
484
+ readonly data: import("effect/Schema").Struct<{
485
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
486
+ readonly text: import("effect/Schema").String;
487
+ readonly files: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
488
+ readonly data: import("effect/Schema").String;
489
+ readonly mime: import("effect/Schema").String;
490
+ readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
491
+ readonly type: import("effect/Schema").Literal<"inline">;
492
+ }>, import("effect/Schema").Struct<{
493
+ readonly type: import("effect/Schema").Literal<"uri">;
494
+ readonly uri: import("effect/Schema").String;
495
+ }>]>;
496
+ readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
497
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
498
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
499
+ readonly start: import("effect/Schema").Finite;
500
+ readonly end: import("effect/Schema").Finite;
501
+ readonly text: import("effect/Schema").String;
502
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
503
+ readonly start: import("effect/Schema").Finite;
504
+ readonly end: import("effect/Schema").Finite;
505
+ readonly text: import("effect/Schema").String;
506
+ }>>, never, never>;
507
+ }> & {
508
+ create: (input: SessionEvent.FileAttachment) => {
509
+ readonly data: string;
510
+ readonly mime: string;
511
+ readonly source: {
512
+ readonly type: "inline";
513
+ } | {
514
+ readonly type: "uri";
515
+ readonly uri: string;
516
+ };
517
+ readonly name?: string | undefined;
518
+ readonly description?: string | undefined;
519
+ readonly mention?: {
520
+ readonly start: number;
521
+ readonly end: number;
522
+ readonly text: string;
523
+ } | undefined;
513
524
  };
514
- readonly name?: string | undefined;
515
- readonly description?: string | undefined;
516
- readonly mention?: {
517
- readonly start: number;
518
- readonly end: number;
519
- readonly text: string;
520
- } | undefined;
521
- };
522
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
523
- readonly data: import("effect/Schema").String;
524
- readonly mime: import("effect/Schema").String;
525
- readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
526
- readonly type: import("effect/Schema").Literal<"inline">;
527
- }>, import("effect/Schema").Struct<{
528
- readonly type: import("effect/Schema").Literal<"uri">;
529
- readonly uri: import("effect/Schema").String;
530
- }>]>;
531
- readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
532
- readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
533
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
534
- readonly start: import("effect/Schema").Finite;
535
- readonly end: import("effect/Schema").Finite;
536
- readonly text: import("effect/Schema").String;
537
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
538
- readonly start: import("effect/Schema").Finite;
539
- readonly end: import("effect/Schema").Finite;
540
- readonly text: import("effect/Schema").String;
541
- }>>, never, never>;
542
- }> & {
543
- create: (input: SessionEvent.FileAttachment) => {
544
- readonly data: string;
545
- readonly mime: string;
546
- readonly source: {
547
- readonly type: "inline";
548
- } | {
549
- readonly type: "uri";
550
- readonly uri: string;
525
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
526
+ readonly data: import("effect/Schema").String;
527
+ readonly mime: import("effect/Schema").String;
528
+ readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
529
+ readonly type: import("effect/Schema").Literal<"inline">;
530
+ }>, import("effect/Schema").Struct<{
531
+ readonly type: import("effect/Schema").Literal<"uri">;
532
+ readonly uri: import("effect/Schema").String;
533
+ }>]>;
534
+ readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
535
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
536
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
537
+ readonly start: import("effect/Schema").Finite;
538
+ readonly end: import("effect/Schema").Finite;
539
+ readonly text: import("effect/Schema").String;
540
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
541
+ readonly start: import("effect/Schema").Finite;
542
+ readonly end: import("effect/Schema").Finite;
543
+ readonly text: import("effect/Schema").String;
544
+ }>>, never, never>;
545
+ }> & {
546
+ create: (input: SessionEvent.FileAttachment) => {
547
+ readonly data: string;
548
+ readonly mime: string;
549
+ readonly source: {
550
+ readonly type: "inline";
551
+ } | {
552
+ readonly type: "uri";
553
+ readonly uri: string;
554
+ };
555
+ readonly name?: string | undefined;
556
+ readonly description?: string | undefined;
557
+ readonly mention?: {
558
+ readonly start: number;
559
+ readonly end: number;
560
+ readonly text: string;
561
+ } | undefined;
551
562
  };
552
- readonly name?: string | undefined;
553
- readonly description?: string | undefined;
554
- readonly mention?: {
555
- readonly start: number;
556
- readonly end: number;
557
- readonly text: string;
558
- } | undefined;
559
- };
560
- }>>, never, never>;
561
- readonly agents: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
562
- readonly name: import("effect/Schema").String;
563
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
564
- readonly start: import("effect/Schema").Finite;
565
- readonly end: import("effect/Schema").Finite;
566
- readonly text: import("effect/Schema").String;
567
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
568
- readonly start: import("effect/Schema").Finite;
569
- readonly end: import("effect/Schema").Finite;
570
- readonly text: import("effect/Schema").String;
571
563
  }>>, never, never>;
572
- }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
573
- readonly name: import("effect/Schema").String;
574
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
575
- readonly start: import("effect/Schema").Finite;
576
- readonly end: import("effect/Schema").Finite;
577
- readonly text: import("effect/Schema").String;
578
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
579
- readonly start: import("effect/Schema").Finite;
580
- readonly end: import("effect/Schema").Finite;
581
- readonly text: import("effect/Schema").String;
582
- }>>, never, never>;
583
- }>>>, never, never>;
584
- }> & {
585
- equivalence: import("effect/Equivalence").Equivalence<{
586
- readonly text: string;
587
- readonly files?: readonly {
588
- readonly data: string;
589
- readonly mime: string;
590
- readonly source: {
591
- readonly type: "inline";
592
- } | {
593
- readonly type: "uri";
594
- readonly uri: string;
595
- };
596
- readonly name?: string | undefined;
597
- readonly description?: string | undefined;
598
- readonly mention?: {
599
- readonly start: number;
600
- readonly end: number;
601
- readonly text: string;
602
- } | undefined;
603
- }[] | undefined;
604
- readonly agents?: readonly {
605
- readonly name: string;
606
- readonly mention?: {
607
- readonly start: number;
608
- readonly end: number;
609
- readonly text: string;
610
- } | undefined;
611
- }[] | undefined;
564
+ readonly agents: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
565
+ readonly name: import("effect/Schema").String;
566
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
567
+ readonly start: import("effect/Schema").Finite;
568
+ readonly end: import("effect/Schema").Finite;
569
+ readonly text: import("effect/Schema").String;
570
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
571
+ readonly start: import("effect/Schema").Finite;
572
+ readonly end: import("effect/Schema").Finite;
573
+ readonly text: import("effect/Schema").String;
574
+ }>>, never, never>;
575
+ }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
576
+ readonly name: import("effect/Schema").String;
577
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
578
+ readonly start: import("effect/Schema").Finite;
579
+ readonly end: import("effect/Schema").Finite;
580
+ readonly text: import("effect/Schema").String;
581
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
582
+ readonly start: import("effect/Schema").Finite;
583
+ readonly end: import("effect/Schema").Finite;
584
+ readonly text: import("effect/Schema").String;
585
+ }>>, never, never>;
586
+ }>>>, never, never>;
612
587
  }>;
613
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
614
- readonly text: string;
615
- readonly files?: readonly {
616
- readonly data: string;
617
- readonly mime: string;
618
- readonly source: {
619
- readonly type: "inline";
620
- } | {
621
- readonly type: "uri";
622
- readonly uri: string;
623
- };
624
- readonly name?: string | undefined;
625
- readonly description?: string | undefined;
626
- readonly mention?: {
627
- readonly start: number;
628
- readonly end: number;
629
- readonly text: string;
630
- } | undefined;
631
- }[] | undefined;
632
- readonly agents?: readonly {
633
- readonly name: string;
634
- readonly mention?: {
635
- readonly start: number;
636
- readonly end: number;
637
- readonly text: string;
638
- } | undefined;
639
- }[] | undefined;
640
- };
641
- };
642
- delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
643
- sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
588
+ readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
589
+ }>, import("effect/Schema").Struct<{
590
+ readonly type: import("effect/Schema").tag<"synthetic">;
591
+ readonly data: import("effect/Schema").Struct<{
592
+ readonly text: import("effect/Schema").String;
593
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
594
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
595
+ }>;
596
+ readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
597
+ }>]>;
598
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
644
599
  create: () => string & import("effect/Brand").Brand<"SessionID">;
645
600
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
646
601
  };
647
602
  }>;
648
603
  }> & {
649
- type: "session.prompt.admitted";
604
+ type: "session.input.admitted";
650
605
  durability: "durable";
651
606
  durable: {
652
607
  readonly version: number;
653
608
  readonly aggregate: string;
654
609
  };
655
610
  data: import("effect/Schema").Struct<{
656
- inputID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
611
+ readonly inputID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
657
612
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
658
613
  fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
659
614
  };
660
- prompt: import("effect/Schema").Struct<{
661
- readonly text: import("effect/Schema").String;
662
- readonly files: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
663
- readonly data: import("effect/Schema").String;
664
- readonly mime: import("effect/Schema").String;
665
- readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
666
- readonly type: import("effect/Schema").Literal<"inline">;
667
- }>, import("effect/Schema").Struct<{
668
- readonly type: import("effect/Schema").Literal<"uri">;
669
- readonly uri: import("effect/Schema").String;
670
- }>]>;
671
- readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
672
- readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
673
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
674
- readonly start: import("effect/Schema").Finite;
675
- readonly end: import("effect/Schema").Finite;
676
- readonly text: import("effect/Schema").String;
677
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
678
- readonly start: import("effect/Schema").Finite;
679
- readonly end: import("effect/Schema").Finite;
680
- readonly text: import("effect/Schema").String;
681
- }>>, never, never>;
682
- }> & {
683
- create: (input: SessionEvent.FileAttachment) => {
684
- readonly data: string;
685
- readonly mime: string;
686
- readonly source: {
687
- readonly type: "inline";
688
- } | {
689
- readonly type: "uri";
690
- readonly uri: string;
615
+ readonly input: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
616
+ readonly type: import("effect/Schema").tag<"user">;
617
+ readonly data: import("effect/Schema").Struct<{
618
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
619
+ readonly text: import("effect/Schema").String;
620
+ readonly files: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
621
+ readonly data: import("effect/Schema").String;
622
+ readonly mime: import("effect/Schema").String;
623
+ readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
624
+ readonly type: import("effect/Schema").Literal<"inline">;
625
+ }>, import("effect/Schema").Struct<{
626
+ readonly type: import("effect/Schema").Literal<"uri">;
627
+ readonly uri: import("effect/Schema").String;
628
+ }>]>;
629
+ readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
630
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
631
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
632
+ readonly start: import("effect/Schema").Finite;
633
+ readonly end: import("effect/Schema").Finite;
634
+ readonly text: import("effect/Schema").String;
635
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
636
+ readonly start: import("effect/Schema").Finite;
637
+ readonly end: import("effect/Schema").Finite;
638
+ readonly text: import("effect/Schema").String;
639
+ }>>, never, never>;
640
+ }> & {
641
+ create: (input: SessionEvent.FileAttachment) => {
642
+ readonly data: string;
643
+ readonly mime: string;
644
+ readonly source: {
645
+ readonly type: "inline";
646
+ } | {
647
+ readonly type: "uri";
648
+ readonly uri: string;
649
+ };
650
+ readonly name?: string | undefined;
651
+ readonly description?: string | undefined;
652
+ readonly mention?: {
653
+ readonly start: number;
654
+ readonly end: number;
655
+ readonly text: string;
656
+ } | undefined;
691
657
  };
692
- readonly name?: string | undefined;
693
- readonly description?: string | undefined;
694
- readonly mention?: {
695
- readonly start: number;
696
- readonly end: number;
697
- readonly text: string;
698
- } | undefined;
699
- };
700
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
701
- readonly data: import("effect/Schema").String;
702
- readonly mime: import("effect/Schema").String;
703
- readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
704
- readonly type: import("effect/Schema").Literal<"inline">;
705
- }>, import("effect/Schema").Struct<{
706
- readonly type: import("effect/Schema").Literal<"uri">;
707
- readonly uri: import("effect/Schema").String;
708
- }>]>;
709
- readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
710
- readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
711
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
712
- readonly start: import("effect/Schema").Finite;
713
- readonly end: import("effect/Schema").Finite;
714
- readonly text: import("effect/Schema").String;
715
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
716
- readonly start: import("effect/Schema").Finite;
717
- readonly end: import("effect/Schema").Finite;
718
- readonly text: import("effect/Schema").String;
719
- }>>, never, never>;
720
- }> & {
721
- create: (input: SessionEvent.FileAttachment) => {
722
- readonly data: string;
723
- readonly mime: string;
724
- readonly source: {
725
- readonly type: "inline";
726
- } | {
727
- readonly type: "uri";
728
- readonly uri: string;
658
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
659
+ readonly data: import("effect/Schema").String;
660
+ readonly mime: import("effect/Schema").String;
661
+ readonly source: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
662
+ readonly type: import("effect/Schema").Literal<"inline">;
663
+ }>, import("effect/Schema").Struct<{
664
+ readonly type: import("effect/Schema").Literal<"uri">;
665
+ readonly uri: import("effect/Schema").String;
666
+ }>]>;
667
+ readonly name: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
668
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
669
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
670
+ readonly start: import("effect/Schema").Finite;
671
+ readonly end: import("effect/Schema").Finite;
672
+ readonly text: import("effect/Schema").String;
673
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
674
+ readonly start: import("effect/Schema").Finite;
675
+ readonly end: import("effect/Schema").Finite;
676
+ readonly text: import("effect/Schema").String;
677
+ }>>, never, never>;
678
+ }> & {
679
+ create: (input: SessionEvent.FileAttachment) => {
680
+ readonly data: string;
681
+ readonly mime: string;
682
+ readonly source: {
683
+ readonly type: "inline";
684
+ } | {
685
+ readonly type: "uri";
686
+ readonly uri: string;
687
+ };
688
+ readonly name?: string | undefined;
689
+ readonly description?: string | undefined;
690
+ readonly mention?: {
691
+ readonly start: number;
692
+ readonly end: number;
693
+ readonly text: string;
694
+ } | undefined;
729
695
  };
730
- readonly name?: string | undefined;
731
- readonly description?: string | undefined;
732
- readonly mention?: {
733
- readonly start: number;
734
- readonly end: number;
735
- readonly text: string;
736
- } | undefined;
737
- };
738
- }>>, never, never>;
739
- readonly agents: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
740
- readonly name: import("effect/Schema").String;
741
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
742
- readonly start: import("effect/Schema").Finite;
743
- readonly end: import("effect/Schema").Finite;
744
- readonly text: import("effect/Schema").String;
745
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
746
- readonly start: import("effect/Schema").Finite;
747
- readonly end: import("effect/Schema").Finite;
748
- readonly text: import("effect/Schema").String;
749
696
  }>>, never, never>;
750
- }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
751
- readonly name: import("effect/Schema").String;
752
- readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
753
- readonly start: import("effect/Schema").Finite;
754
- readonly end: import("effect/Schema").Finite;
755
- readonly text: import("effect/Schema").String;
756
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
757
- readonly start: import("effect/Schema").Finite;
758
- readonly end: import("effect/Schema").Finite;
759
- readonly text: import("effect/Schema").String;
760
- }>>, never, never>;
761
- }>>>, never, never>;
762
- }> & {
763
- equivalence: import("effect/Equivalence").Equivalence<{
764
- readonly text: string;
765
- readonly files?: readonly {
766
- readonly data: string;
767
- readonly mime: string;
768
- readonly source: {
769
- readonly type: "inline";
770
- } | {
771
- readonly type: "uri";
772
- readonly uri: string;
773
- };
774
- readonly name?: string | undefined;
775
- readonly description?: string | undefined;
776
- readonly mention?: {
777
- readonly start: number;
778
- readonly end: number;
779
- readonly text: string;
780
- } | undefined;
781
- }[] | undefined;
782
- readonly agents?: readonly {
783
- readonly name: string;
784
- readonly mention?: {
785
- readonly start: number;
786
- readonly end: number;
787
- readonly text: string;
788
- } | undefined;
789
- }[] | undefined;
697
+ readonly agents: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
698
+ readonly name: import("effect/Schema").String;
699
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
700
+ readonly start: import("effect/Schema").Finite;
701
+ readonly end: import("effect/Schema").Finite;
702
+ readonly text: import("effect/Schema").String;
703
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
704
+ readonly start: import("effect/Schema").Finite;
705
+ readonly end: import("effect/Schema").Finite;
706
+ readonly text: import("effect/Schema").String;
707
+ }>>, never, never>;
708
+ }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
709
+ readonly name: import("effect/Schema").String;
710
+ readonly mention: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
711
+ readonly start: import("effect/Schema").Finite;
712
+ readonly end: import("effect/Schema").Finite;
713
+ readonly text: import("effect/Schema").String;
714
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
715
+ readonly start: import("effect/Schema").Finite;
716
+ readonly end: import("effect/Schema").Finite;
717
+ readonly text: import("effect/Schema").String;
718
+ }>>, never, never>;
719
+ }>>>, never, never>;
790
720
  }>;
791
- fromUserMessage: (input: Pick<import("./prompt.js").Prompt, "text" | "files" | "agents">) => {
792
- readonly text: string;
793
- readonly files?: readonly {
794
- readonly data: string;
795
- readonly mime: string;
796
- readonly source: {
797
- readonly type: "inline";
798
- } | {
799
- readonly type: "uri";
800
- readonly uri: string;
801
- };
802
- readonly name?: string | undefined;
803
- readonly description?: string | undefined;
804
- readonly mention?: {
805
- readonly start: number;
806
- readonly end: number;
807
- readonly text: string;
808
- } | undefined;
809
- }[] | undefined;
810
- readonly agents?: readonly {
811
- readonly name: string;
812
- readonly mention?: {
813
- readonly start: number;
814
- readonly end: number;
815
- readonly text: string;
816
- } | undefined;
817
- }[] | undefined;
818
- };
819
- };
820
- delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
821
- sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
721
+ readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
722
+ }>, import("effect/Schema").Struct<{
723
+ readonly type: import("effect/Schema").tag<"synthetic">;
724
+ readonly data: import("effect/Schema").Struct<{
725
+ readonly text: import("effect/Schema").String;
726
+ readonly description: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
727
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
728
+ }>;
729
+ readonly delivery: import("effect/Schema").Literals<readonly ["steer", "queue"]>;
730
+ }>]>;
731
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
822
732
  create: () => string & import("effect/Brand").Brand<"SessionID">;
823
733
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
824
734
  };