@trigger.dev/sdk 4.7.2 → 4.7.3
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/dist/commonjs/v3/ai.d.ts +5 -0
- package/dist/commonjs/v3/ai.js +6 -2
- package/dist/commonjs/v3/ai.js.map +1 -1
- package/dist/commonjs/v3/chat-server.d.ts +7 -0
- package/dist/commonjs/v3/chat-server.js +3 -0
- package/dist/commonjs/v3/chat-server.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/ai.d.ts +5 -0
- package/dist/esm/v3/ai.js +6 -2
- package/dist/esm/v3/ai.js.map +1 -1
- package/dist/esm/v3/chat-server.d.ts +7 -0
- package/dist/esm/v3/chat-server.js +3 -0
- package/dist/esm/v3/chat-server.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/docs/self-hosting/env/supervisor.mdx +0 -1
- package/docs/self-hosting/env/webapp.mdx +1 -0
- package/package.json +2 -2
package/dist/commonjs/v3/ai.d.ts
CHANGED
|
@@ -3307,6 +3307,11 @@ export type ChatStartSessionParams<TChat extends AnyTask = AnyTask> = {
|
|
|
3307
3307
|
* server-side metadata that doesn't go through the agent's `clientDataSchema`.
|
|
3308
3308
|
*/
|
|
3309
3309
|
metadata?: Record<string, unknown>;
|
|
3310
|
+
/**
|
|
3311
|
+
* Up to 10 tags on the Session row, for filtering sessions in the dashboard.
|
|
3312
|
+
* Run tags go in `triggerConfig.tags`.
|
|
3313
|
+
*/
|
|
3314
|
+
tags?: string[];
|
|
3310
3315
|
};
|
|
3311
3316
|
/**
|
|
3312
3317
|
* Result from {@link createChatStartSessionAction}'s returned function.
|
package/dist/commonjs/v3/ai.js
CHANGED
|
@@ -5755,8 +5755,11 @@ function chatAgent(options) {
|
|
|
5755
5755
|
}
|
|
5756
5756
|
}
|
|
5757
5757
|
catch (error) {
|
|
5758
|
-
//
|
|
5759
|
-
|
|
5758
|
+
// A stop aborts with a string reason, which the managed pipe
|
|
5759
|
+
// rethrows as-is. Match the reason itself so a real failure
|
|
5760
|
+
// after a stop is still reported.
|
|
5761
|
+
if ((error instanceof Error && error.name === "AbortError") ||
|
|
5762
|
+
(combinedSignal.aborted && error === combinedSignal.reason)) {
|
|
5760
5763
|
if (runSignal.aborted) {
|
|
5761
5764
|
return "exit"; // Full run cancellation — exit
|
|
5762
5765
|
}
|
|
@@ -8849,6 +8852,7 @@ function createChatStartSessionAction(taskId, options) {
|
|
|
8849
8852
|
taskIdentifier: taskId,
|
|
8850
8853
|
triggerConfig,
|
|
8851
8854
|
metadata: params.metadata,
|
|
8855
|
+
...(params.tags !== undefined ? { tags: params.tags } : {}),
|
|
8852
8856
|
};
|
|
8853
8857
|
const baseURLOption = options?.baseURL;
|
|
8854
8858
|
const fetchOverride = options?.fetch;
|