@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/express.mjs CHANGED
@@ -1,9 +1,12 @@
1
+ import {
2
+ SDK_TELEMETRY,
3
+ serveBase
4
+ } from "./chunk-RFX5YRRT.mjs";
1
5
  import {
2
6
  __commonJS,
3
7
  __require,
4
- __toESM,
5
- serveBase
6
- } from "./chunk-QBJ3LQIO.mjs";
8
+ __toESM
9
+ } from "./chunk-PU5J4TNC.mjs";
7
10
 
8
11
  // node_modules/depd/index.js
9
12
  var require_depd = __commonJS({
@@ -23690,7 +23693,12 @@ function serve(routeFunction, options) {
23690
23693
  body: requestBody
23691
23694
  });
23692
23695
  const { handler: serveHandler } = serveBase(
23693
- (workflowContext) => routeFunction(workflowContext),
23696
+ routeFunction,
23697
+ {
23698
+ sdk: SDK_TELEMETRY,
23699
+ framework: "express",
23700
+ runtime: process.versions.bun ? `bun@${process.versions.bun}/node@${process.version}` : `node@${process.version}`
23701
+ },
23694
23702
  {
23695
23703
  ...options,
23696
23704
  useJSONContent: true
package/h3.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  import * as h3 from 'h3';
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
  declare const serve: <TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: PublicServeOptions<TInitialPayload>) => {
6
9
  handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response | {
package/h3.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import * as h3 from 'h3';
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
  declare const serve: <TInitialPayload = unknown>(routeFunction: RouteFunction<TInitialPayload>, options?: PublicServeOptions<TInitialPayload>) => {
6
9
  handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response | {