@teable/agent-gateway 1.0.9 → 1.0.11

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 +34 -18
  2. package/package.json +1 -1
@@ -378,7 +378,10 @@ export interface AgentQuestionRequest {
378
378
  toolCallId: string | null;
379
379
  questions: AgentQuestion[];
380
380
  }
381
- /** The answer to questions: for each, in order, the labels picked and the person's own words; or none. */
381
+ /**
382
+ * The answer to questions: for each, in order, the labels picked and the
383
+ * person's own words, neither for one they skipped; or none.
384
+ */
382
385
  export type AgentQuestionOutcome = {
383
386
  outcome: "answered";
384
387
  answers: {
@@ -628,27 +631,32 @@ export type TabOp =
628
631
  prompt: AcpContentBlock[];
629
632
  steer?: boolean;
630
633
  }
631
- /** Stop the running turn; `turn` names it, so that a stop meant for one that ended stops no other. */
634
+ /**
635
+ * Stop the running turn; `turn` names it, so that a stop meant for one
636
+ * that ended stops no other. What waits in the queue then holds until
637
+ * someone resumes it or sends a message.
638
+ */
632
639
  | {
633
640
  type: "cancel";
634
641
  turn?: number;
635
642
  }
636
- /** Change a message that waits in the queue. */
637
- | {
638
- type: "edit";
639
- turn: number;
640
- prompt: AcpContentBlock[];
641
- }
642
643
  /** Take back a message that waits in the queue: it never runs. */
643
644
  | {
644
645
  type: "remove";
645
646
  turn: number;
646
647
  }
647
- /** Run a message that waits in the queue next. */
648
+ /**
649
+ * Send a message that waits in the queue to the running turn now, as
650
+ * `prompt` with `steer` sends one: it goes ahead of the rest.
651
+ */
648
652
  | {
649
- type: "front";
653
+ type: "steer";
650
654
  turn: number;
651
655
  }
656
+ /** Let the queue that a stop held run again. */
657
+ | {
658
+ type: "resume";
659
+ }
652
660
  /**
653
661
  * Close the session: what waits is taken back, a running turn is stopped
654
662
  * and its agent too; it takes no more messages, and stays readable.
@@ -727,6 +735,8 @@ export interface SessionInfo {
727
735
  closed: boolean;
728
736
  /** It is left out of the list a person picks from. */
729
737
  archived: boolean;
738
+ /** A stop holds what waits: it runs once someone resumes the queue or sends a message. */
739
+ held: boolean;
730
740
  lastSeq: number;
731
741
  }
732
742
  /** Something that happened in a session: stored, numbered and sent to every tab of its app. */
@@ -800,23 +810,29 @@ export type SessionEvent = {
800
810
  type: "expired";
801
811
  request: number;
802
812
  }
803
- /** A message that waits was changed. */
813
+ /** A message that waited was taken back: it never runs. */
804
814
  | {
805
- type: "edited";
815
+ type: "removed";
806
816
  turn: number;
807
817
  by: string;
808
- prompt: AcpContentBlock[];
809
818
  }
810
- /** A message that waited was taken back: it never runs. */
819
+ /**
820
+ * A message that waits was sent to steer the running turn, as one sent
821
+ * with `steer` is: it goes ahead of the rest.
822
+ */
811
823
  | {
812
- type: "removed";
824
+ type: "steering";
813
825
  turn: number;
814
826
  by: string;
815
827
  }
816
- /** A message that waits runs next. */
828
+ /**
829
+ * A person stopped the turn while messages waited: the queue holds them
830
+ * (`held`) until someone resumes it or sends a message, which runs first;
831
+ * or it was let go.
832
+ */
817
833
  | {
818
- type: "moved";
819
- turn: number;
834
+ type: "held";
835
+ held: boolean;
820
836
  by: string;
821
837
  }
822
838
  /**
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.11",
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": {