@teable/agent-gateway 1.0.9 → 1.0.10

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 (2) hide show
  1. package/dist/protocol.d.ts +30 -17
  2. package/package.json +1 -1
@@ -628,27 +628,32 @@ export type TabOp =
628
628
  prompt: AcpContentBlock[];
629
629
  steer?: boolean;
630
630
  }
631
- /** Stop the running turn; `turn` names it, so that a stop meant for one that ended stops no other. */
631
+ /**
632
+ * Stop the running turn; `turn` names it, so that a stop meant for one
633
+ * that ended stops no other. What waits in the queue then holds until
634
+ * someone resumes it or sends a message.
635
+ */
632
636
  | {
633
637
  type: "cancel";
634
638
  turn?: number;
635
639
  }
636
- /** Change a message that waits in the queue. */
637
- | {
638
- type: "edit";
639
- turn: number;
640
- prompt: AcpContentBlock[];
641
- }
642
640
  /** Take back a message that waits in the queue: it never runs. */
643
641
  | {
644
642
  type: "remove";
645
643
  turn: number;
646
644
  }
647
- /** Run a message that waits in the queue next. */
645
+ /**
646
+ * Send a message that waits in the queue to the running turn now, as
647
+ * `prompt` with `steer` sends one: it goes ahead of the rest.
648
+ */
648
649
  | {
649
- type: "front";
650
+ type: "steer";
650
651
  turn: number;
651
652
  }
653
+ /** Let the queue that a stop held run again. */
654
+ | {
655
+ type: "resume";
656
+ }
652
657
  /**
653
658
  * Close the session: what waits is taken back, a running turn is stopped
654
659
  * and its agent too; it takes no more messages, and stays readable.
@@ -727,6 +732,8 @@ export interface SessionInfo {
727
732
  closed: boolean;
728
733
  /** It is left out of the list a person picks from. */
729
734
  archived: boolean;
735
+ /** A stop holds what waits: it runs once someone resumes the queue or sends a message. */
736
+ held: boolean;
730
737
  lastSeq: number;
731
738
  }
732
739
  /** Something that happened in a session: stored, numbered and sent to every tab of its app. */
@@ -800,23 +807,29 @@ export type SessionEvent = {
800
807
  type: "expired";
801
808
  request: number;
802
809
  }
803
- /** A message that waits was changed. */
810
+ /** A message that waited was taken back: it never runs. */
804
811
  | {
805
- type: "edited";
812
+ type: "removed";
806
813
  turn: number;
807
814
  by: string;
808
- prompt: AcpContentBlock[];
809
815
  }
810
- /** A message that waited was taken back: it never runs. */
816
+ /**
817
+ * A message that waits was sent to steer the running turn, as one sent
818
+ * with `steer` is: it goes ahead of the rest.
819
+ */
811
820
  | {
812
- type: "removed";
821
+ type: "steering";
813
822
  turn: number;
814
823
  by: string;
815
824
  }
816
- /** A message that waits runs next. */
825
+ /**
826
+ * A person stopped the turn while messages waited: the queue holds them
827
+ * (`held`) until someone resumes it or sends a message, which runs first;
828
+ * or it was let go.
829
+ */
817
830
  | {
818
- type: "moved";
819
- turn: number;
831
+ type: "held";
832
+ held: boolean;
820
833
  by: string;
821
834
  }
822
835
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teable/agent-gateway",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "The agent gateway in a person's Teable sandbox: starts an ACP agent for each session and relays it to the person's hub",
5
5
  "license": "MIT",
6
6
  "repository": {