@teable/agent-gateway 1.0.11 → 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 +18 -0
  2. package/package.json +1 -1
@@ -669,6 +669,14 @@ export type TabOp =
669
669
  type: "archive";
670
670
  archived: boolean;
671
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
+ }
672
680
  /**
673
681
  * Answer what the agent asks the person (a permission, questions, a plan),
674
682
  * named by the `seq` of the event that asked, with the outcome its kind
@@ -953,4 +961,14 @@ export type HubToTab = TabEvent | Ack
953
961
  | {
954
962
  type: "gateway";
955
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;
956
974
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teable/agent-gateway",
3
- "version": "1.0.11",
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": {