@teable/agent-gateway 1.0.10 → 1.0.12

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 +22 -1
  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: {
@@ -666,6 +669,14 @@ export type TabOp =
666
669
  type: "archive";
667
670
  archived: boolean;
668
671
  }
672
+ /**
673
+ * Delete the session for good, as the old App Builder deletes a chat: it
674
+ * is closed (its agent stops), then it and all its events are gone, and
675
+ * what they weighed is free again. Every tab of the app hears `deleted`.
676
+ */
677
+ | {
678
+ type: "delete";
679
+ }
669
680
  /**
670
681
  * Answer what the agent asks the person (a permission, questions, a plan),
671
682
  * named by the `seq` of the event that asked, with the outcome its kind
@@ -950,4 +961,14 @@ export type HubToTab = TabEvent | Ack
950
961
  | {
951
962
  type: "gateway";
952
963
  gateway: GatewayStatus;
964
+ }
965
+ /**
966
+ * A session was deleted (`delete`): the tab drops it and its events. It
967
+ * is not an event, since nothing of the session is kept to number it
968
+ * among; a tab that was away hears it as the next snapshot not listing
969
+ * the session.
970
+ */
971
+ | {
972
+ type: "deleted";
973
+ session: string;
953
974
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teable/agent-gateway",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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": {