@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/cloudflare.mjs CHANGED
@@ -1,6 +1,8 @@
1
1
  import {
2
+ SDK_TELEMETRY,
2
3
  serveBase
3
- } from "./chunk-QBJ3LQIO.mjs";
4
+ } from "./chunk-RFX5YRRT.mjs";
5
+ import "./chunk-PU5J4TNC.mjs";
4
6
 
5
7
  // platforms/cloudflare.ts
6
8
  var getArgs = (args) => {
@@ -24,10 +26,17 @@ var getArgs = (args) => {
24
26
  var serve = (routeFunction, options) => {
25
27
  const fetch = async (...args) => {
26
28
  const { request, env } = getArgs(args);
27
- const { handler: serveHandler } = serveBase(routeFunction, {
28
- env,
29
- ...options
30
- });
29
+ const { handler: serveHandler } = serveBase(
30
+ routeFunction,
31
+ {
32
+ sdk: SDK_TELEMETRY,
33
+ framework: "cloudflare"
34
+ },
35
+ {
36
+ env,
37
+ ...options
38
+ }
39
+ );
31
40
  return await serveHandler(request);
32
41
  };
33
42
  return { fetch };
package/express.d.mts CHANGED
@@ -1,6 +1,9 @@
1
- import { R as RouteFunction, W as WorkflowServeOptions } from './types-R9q4MUwl.mjs';
1
+ import { R as RouteFunction, W as WorkflowServeOptions } from './types-BEyIoCRe.mjs';
2
2
  import { Router } from 'express';
3
3
  import '@upstash/qstash';
4
+ import 'ai';
5
+ import '@ai-sdk/openai';
6
+ import 'langchain/tools';
4
7
 
5
8
  declare function serve<TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: Omit<WorkflowServeOptions<globalThis.Response, TInitialPayload>, "onStepFinish">): Router;
6
9
 
package/express.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { R as RouteFunction, W as WorkflowServeOptions } from './types-R9q4MUwl.js';
1
+ import { R as RouteFunction, W as WorkflowServeOptions } from './types-BEyIoCRe.js';
2
2
  import { Router } from 'express';
3
3
  import '@upstash/qstash';
4
+ import 'ai';
5
+ import '@ai-sdk/openai';
6
+ import 'langchain/tools';
4
7
 
5
8
  declare function serve<TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: Omit<WorkflowServeOptions<globalThis.Response, TInitialPayload>, "onStepFinish">): Router;
6
9