@constal/sdk 3.7.0 → 3.8.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constal/sdk",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Public TypeScript SDK for authoring Constal agents, integrations, policies, channels, and credential providers",
5
5
  "keywords": [
6
6
  "constal",
package/publish/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@constal/sdk",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "exports": [
5
5
  "AGENT_UI_DEFAULTS",
6
6
  "Action",
@@ -2780,6 +2780,11 @@ interface ChannelContext {
2780
2780
  timeoutMs?: number;
2781
2781
  dedupeKey?: string;
2782
2782
  }): Promise<T>;
2783
+ /**
2784
+ * Keeps the Channel's code running after it answers; its Resource calls stay under this invocation's capability until it
2785
+ * expires. In send() and failed() the Session refuses them once it has finished the item.
2786
+ */
2787
+ waitUntil(promise: Promise<unknown>): void;
2783
2788
  }
2784
2789
  interface ChannelMessage<T = unknown> {
2785
2790
  id: string;