@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/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-QBJ3LQIO.mjs";
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-R9q4MUwl.mjs';
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-R9q4MUwl.js';
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