@upstash/workflow 0.2.3 → 0.2.5-agents
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/agents.d.mts +5 -0
- package/agents.d.ts +5 -0
- package/agents.js +245 -0
- package/agents.mjs +12 -0
- package/astro.d.mts +4 -1
- package/astro.d.ts +4 -1
- package/astro.js +362 -78
- package/astro.mjs +8 -1
- package/chunk-PU5J4TNC.mjs +251 -0
- package/{chunk-QBJ3LQIO.mjs → chunk-RFX5YRRT.mjs} +148 -103
- package/cloudflare.d.mts +4 -1
- package/cloudflare.d.ts +4 -1
- package/cloudflare.js +368 -82
- package/cloudflare.mjs +14 -5
- package/express.d.mts +4 -1
- package/express.d.ts +4 -1
- package/express.js +363 -79
- package/express.mjs +12 -4
- package/h3.d.mts +4 -1
- package/h3.d.ts +4 -1
- package/h3.js +366 -79
- package/h3.mjs +12 -2
- package/hono.d.mts +4 -1
- package/hono.d.ts +4 -1
- package/hono.js +370 -84
- package/hono.mjs +16 -7
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.js +376 -83
- package/index.mjs +11 -4
- package/nextjs.d.mts +4 -1
- package/nextjs.d.ts +4 -1
- package/nextjs.js +371 -79
- package/nextjs.mjs +17 -2
- package/package.json +1 -1
- package/solidjs.d.mts +4 -1
- package/solidjs.d.ts +4 -1
- package/solidjs.js +366 -79
- package/solidjs.mjs +12 -2
- package/svelte.d.mts +4 -1
- package/svelte.d.ts +4 -1
- package/svelte.js +368 -82
- package/svelte.mjs +14 -5
- package/{types-R9q4MUwl.d.mts → types-BEyIoCRe.d.mts} +164 -4
- package/{types-R9q4MUwl.d.ts → types-BEyIoCRe.d.ts} +164 -4
package/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
DEFAULT_RETRIES,
|
|
3
2
|
StepTypes,
|
|
4
3
|
WorkflowAbort,
|
|
5
4
|
WorkflowContext,
|
|
@@ -10,7 +9,8 @@ import {
|
|
|
10
9
|
makeNotifyRequest,
|
|
11
10
|
serve,
|
|
12
11
|
triggerFirstInvocation
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RFX5YRRT.mjs";
|
|
13
|
+
import "./chunk-PU5J4TNC.mjs";
|
|
14
14
|
|
|
15
15
|
// src/client/index.ts
|
|
16
16
|
import { Client as QStashClient } from "@upstash/qstash";
|
|
@@ -183,9 +183,16 @@ var Client = class {
|
|
|
183
183
|
initialPayload: body,
|
|
184
184
|
steps: [],
|
|
185
185
|
url,
|
|
186
|
-
workflowRunId: finalWorkflowRunId
|
|
186
|
+
workflowRunId: finalWorkflowRunId,
|
|
187
|
+
retries,
|
|
188
|
+
telemetry: void 0
|
|
189
|
+
// can't know workflow telemetry here
|
|
190
|
+
});
|
|
191
|
+
const result = await triggerFirstInvocation({
|
|
192
|
+
workflowContext: context,
|
|
193
|
+
telemetry: void 0
|
|
194
|
+
// can't know workflow telemetry here
|
|
187
195
|
});
|
|
188
|
-
const result = await triggerFirstInvocation(context, retries ?? DEFAULT_RETRIES);
|
|
189
196
|
if (result.isOk()) {
|
|
190
197
|
return { workflowRunId: finalWorkflowRunId };
|
|
191
198
|
} else {
|
package/nextjs.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { NextApiHandler } from 'next';
|
|
2
|
-
import { R as RouteFunction, j as PublicServeOptions } from './types-
|
|
2
|
+
import { R as RouteFunction, j as PublicServeOptions } from './types-BEyIoCRe.mjs';
|
|
3
3
|
import '@upstash/qstash';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '@ai-sdk/openai';
|
|
6
|
+
import 'langchain/tools';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* Serve method to serve a Upstash Workflow in a Nextjs project
|
package/nextjs.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { NextApiHandler } from 'next';
|
|
2
|
-
import { R as RouteFunction, j as PublicServeOptions } from './types-
|
|
2
|
+
import { R as RouteFunction, j as PublicServeOptions } from './types-BEyIoCRe.js';
|
|
3
3
|
import '@upstash/qstash';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '@ai-sdk/openai';
|
|
6
|
+
import 'langchain/tools';
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* Serve method to serve a Upstash Workflow in a Nextjs project
|