@redplanethq/sdk 0.1.17 → 1.2.1

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +1657 -0
  2. package/LICENSE.md +30 -0
  3. package/README.md +159 -183
  4. package/dist/__tests__/__fixtures__/network.stream.d.ts +2329 -0
  5. package/dist/__tests__/__fixtures__/network.stream.d.ts.map +1 -0
  6. package/dist/_types/@ai-sdk_provider/dist/index.d.ts +1725 -0
  7. package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +10332 -0
  8. package/dist/_types/@internal_ai-v6/dist/index.d.ts +13493 -0
  9. package/dist/chat-route.d.ts +117 -0
  10. package/dist/chat-route.d.ts.map +1 -0
  11. package/dist/chunk-3YJ25IUJ.js +79 -0
  12. package/dist/chunk-3YJ25IUJ.js.map +1 -0
  13. package/dist/chunk-DGUM43GV.js +10 -0
  14. package/dist/chunk-DGUM43GV.js.map +1 -0
  15. package/dist/chunk-HDI4ZP7N.js +79 -0
  16. package/dist/chunk-HDI4ZP7N.js.map +1 -0
  17. package/dist/chunk-HMOX24BQ.js +439 -0
  18. package/dist/chunk-HMOX24BQ.js.map +1 -0
  19. package/dist/chunk-IV3RKEE4.js +439 -0
  20. package/dist/chunk-IV3RKEE4.js.map +1 -0
  21. package/dist/chunk-JEQ2X3Z6.cjs +12 -0
  22. package/dist/chunk-JEQ2X3Z6.cjs.map +1 -0
  23. package/dist/chunk-PEZAMDZJ.cjs +84 -0
  24. package/dist/chunk-PEZAMDZJ.cjs.map +1 -0
  25. package/dist/chunk-VJW66KXQ.cjs +441 -0
  26. package/dist/chunk-VJW66KXQ.cjs.map +1 -0
  27. package/dist/chunk-WFARZCDO.cjs +84 -0
  28. package/dist/chunk-WFARZCDO.cjs.map +1 -0
  29. package/dist/chunk-X72VW7EY.cjs +441 -0
  30. package/dist/chunk-X72VW7EY.cjs.map +1 -0
  31. package/dist/convert-messages.d.ts +90 -0
  32. package/dist/convert-messages.d.ts.map +1 -0
  33. package/dist/convert-streams.d.ts +59 -0
  34. package/dist/convert-streams.d.ts.map +1 -0
  35. package/dist/helpers.d.ts +59 -0
  36. package/dist/helpers.d.ts.map +1 -0
  37. package/dist/index.cjs +14385 -0
  38. package/dist/index.cjs.map +1 -0
  39. package/dist/index.d.ts +14 -1245
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +14289 -804
  42. package/dist/index.js.map +1 -1
  43. package/dist/middleware.d.ts +159 -0
  44. package/dist/middleware.d.ts.map +1 -0
  45. package/dist/network-route.d.ts +84 -0
  46. package/dist/network-route.d.ts.map +1 -0
  47. package/dist/public-types.d.ts +9 -0
  48. package/dist/public-types.d.ts.map +1 -0
  49. package/dist/to-ai-sdk-format.d.ts +16 -0
  50. package/dist/to-ai-sdk-format.d.ts.map +1 -0
  51. package/dist/token-APYSY3BW-CBIBV5F2.js +61 -0
  52. package/dist/token-APYSY3BW-CBIBV5F2.js.map +1 -0
  53. package/dist/token-APYSY3BW-INR55PKP.js +61 -0
  54. package/dist/token-APYSY3BW-INR55PKP.js.map +1 -0
  55. package/dist/token-APYSY3BW-M2K6HVOG.cjs +63 -0
  56. package/dist/token-APYSY3BW-M2K6HVOG.cjs.map +1 -0
  57. package/dist/token-APYSY3BW-Y5VD4L7Z.cjs +63 -0
  58. package/dist/token-APYSY3BW-Y5VD4L7Z.cjs.map +1 -0
  59. package/dist/token-util-RMHT2CPJ-3LCBPXJ6.cjs +10 -0
  60. package/dist/token-util-RMHT2CPJ-3LCBPXJ6.cjs.map +1 -0
  61. package/dist/token-util-RMHT2CPJ-4YTBAZ23.cjs +10 -0
  62. package/dist/token-util-RMHT2CPJ-4YTBAZ23.cjs.map +1 -0
  63. package/dist/token-util-RMHT2CPJ-HCMQIDTV.js +8 -0
  64. package/dist/token-util-RMHT2CPJ-HCMQIDTV.js.map +1 -0
  65. package/dist/token-util-RMHT2CPJ-IOKQM5O3.js +8 -0
  66. package/dist/token-util-RMHT2CPJ-IOKQM5O3.js.map +1 -0
  67. package/dist/transformers.d.ts +315 -0
  68. package/dist/transformers.d.ts.map +1 -0
  69. package/dist/ui.cjs +15 -0
  70. package/dist/ui.cjs.map +1 -0
  71. package/dist/ui.d.ts +2 -0
  72. package/dist/ui.d.ts.map +1 -0
  73. package/dist/ui.js +12 -0
  74. package/dist/ui.js.map +1 -0
  75. package/dist/utils.d.ts +11 -0
  76. package/dist/utils.d.ts.map +1 -0
  77. package/dist/workflow-route.d.ts +93 -0
  78. package/dist/workflow-route.d.ts.map +1 -0
  79. package/package.json +65 -31
  80. package/ui.d.ts +1 -0
  81. package/LICENSE +0 -44
  82. package/dist/index.d.mts +0 -1245
  83. package/dist/index.mjs +0 -822
  84. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,117 @@
1
+ import type { UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5/dist/index.js';
2
+ import type { UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6/dist/index.js';
3
+ import type { AgentExecutionOptions } from '@mastra/core/agent';
4
+ import type { Mastra } from '@mastra/core/mastra';
5
+ import { registerApiRoute } from '@mastra/core/server';
6
+ import type { SupportedUIMessage, V5UIMessage, V5UIMessageStream, V6UIMessage, V6UIMessageStream } from './public-types.js';
7
+ export type ChatStreamHandlerParams<UI_MESSAGE extends SupportedUIMessage = SupportedUIMessage, OUTPUT = undefined> = AgentExecutionOptions<OUTPUT> & {
8
+ messages: UI_MESSAGE[];
9
+ resumeData?: Record<string, any>;
10
+ /** The trigger for the request - sent by AI SDK's useChat hook */
11
+ trigger?: 'submit-message' | 'regenerate-message';
12
+ };
13
+ export type ChatStreamHandlerOptions<UI_MESSAGE extends SupportedUIMessage = SupportedUIMessage, OUTPUT = undefined> = {
14
+ mastra: Mastra;
15
+ agentId: string;
16
+ params: ChatStreamHandlerParams<UI_MESSAGE, OUTPUT>;
17
+ defaultOptions?: AgentExecutionOptions<OUTPUT>;
18
+ version?: 'v5' | 'v6';
19
+ sendStart?: boolean;
20
+ sendFinish?: boolean;
21
+ sendReasoning?: boolean;
22
+ sendSources?: boolean;
23
+ messageMetadata?: UI_MESSAGE extends V6UIMessage ? UIMessageStreamOptionsV6<UI_MESSAGE>['messageMetadata'] : UI_MESSAGE extends V5UIMessage ? UIMessageStreamOptionsV5<UI_MESSAGE>['messageMetadata'] : never;
24
+ };
25
+ type ChatStreamHandlerOptionsV5<UI_MESSAGE extends V5UIMessage = V5UIMessage, OUTPUT = undefined> = Omit<ChatStreamHandlerOptions<UI_MESSAGE, OUTPUT>, 'version' | 'messageMetadata'> & {
26
+ version?: 'v5';
27
+ messageMetadata?: UIMessageStreamOptionsV5<UI_MESSAGE>['messageMetadata'];
28
+ };
29
+ type ChatStreamHandlerOptionsV6<UI_MESSAGE extends V6UIMessage = V6UIMessage, OUTPUT = undefined> = Omit<ChatStreamHandlerOptions<UI_MESSAGE, OUTPUT>, 'version' | 'messageMetadata'> & {
30
+ version: 'v6';
31
+ messageMetadata?: UIMessageStreamOptionsV6<UI_MESSAGE>['messageMetadata'];
32
+ };
33
+ /**
34
+ * Framework-agnostic handler for streaming agent chat in AI SDK-compatible format.
35
+ * Use this function directly when you need to handle chat streaming outside of Hono or Mastra's own apiRoutes feature.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * // Next.js App Router
40
+ * import { handleChatStream } from '@mastra/ai-sdk';
41
+ * import { createUIMessageStreamResponse } from 'ai';
42
+ * import { mastra } from '@/src/mastra';
43
+ *
44
+ * export async function POST(req: Request) {
45
+ * const params = await req.json();
46
+ * const stream = await handleChatStream({
47
+ * mastra,
48
+ * agentId: 'weatherAgent',
49
+ * params,
50
+ * });
51
+ * return createUIMessageStreamResponse({ stream });
52
+ * }
53
+ * ```
54
+ */
55
+ export declare function handleChatStream<UI_MESSAGE extends V5UIMessage = V5UIMessage, OUTPUT = undefined>(options: ChatStreamHandlerOptionsV5<UI_MESSAGE, OUTPUT>): Promise<V5UIMessageStream<UI_MESSAGE>>;
56
+ export declare function handleChatStream<UI_MESSAGE extends V6UIMessage = V6UIMessage, OUTPUT = undefined>(options: ChatStreamHandlerOptionsV6<UI_MESSAGE, OUTPUT>): Promise<V6UIMessageStream<UI_MESSAGE>>;
57
+ export type chatRouteOptions<OUTPUT = undefined> = {
58
+ defaultOptions?: AgentExecutionOptions<OUTPUT>;
59
+ version?: 'v5' | 'v6';
60
+ } & ({
61
+ path: `${string}:agentId${string}`;
62
+ agent?: never;
63
+ } | {
64
+ path: string;
65
+ agent: string;
66
+ }) & {
67
+ sendStart?: boolean;
68
+ sendFinish?: boolean;
69
+ sendReasoning?: boolean;
70
+ sendSources?: boolean;
71
+ };
72
+ /**
73
+ * Creates a chat route handler for streaming agent conversations using the AI SDK format.
74
+ *
75
+ * This function registers an HTTP POST endpoint that accepts messages, executes an agent, and streams the response back to the client in AI SDK-compatible format.
76
+ *
77
+ * @param {chatRouteOptions} options - Configuration options for the chat route
78
+ * @param {string} [options.path='/chat/:agentId'] - The route path. Include `:agentId` for dynamic routing
79
+ * @param {string} [options.agent] - Fixed agent ID when not using dynamic routing
80
+ * @param {AgentExecutionOptions} [options.defaultOptions] - Default options passed to agent execution
81
+ * @param {boolean} [options.sendStart=true] - Whether to send start events in the stream
82
+ * @param {boolean} [options.sendFinish=true] - Whether to send finish events in the stream
83
+ * @param {boolean} [options.sendReasoning=false] - Whether to include reasoning steps in the stream
84
+ * @param {boolean} [options.sendSources=false] - Whether to include source citations in the stream
85
+ *
86
+ * @returns {ReturnType<typeof registerApiRoute>} A registered API route handler
87
+ *
88
+ * @throws {Error} When path doesn't include `:agentId` and no fixed agent is specified
89
+ * @throws {Error} When agent ID is missing at runtime
90
+ * @throws {Error} When specified agent is not found in Mastra instance
91
+ *
92
+ * @example
93
+ * // Dynamic agent routing
94
+ * chatRoute({
95
+ * path: '/chat/:agentId',
96
+ * });
97
+ *
98
+ * @example
99
+ * // Fixed agent with custom path
100
+ * chatRoute({
101
+ * path: '/api/support-chat',
102
+ * agent: 'support-agent',
103
+ * defaultOptions: {
104
+ * maxSteps: 5,
105
+ * },
106
+ * });
107
+ *
108
+ * @remarks
109
+ * - The route handler expects a JSON body with a `messages` array
110
+ * - Messages should follow the format: `{ role: 'user' | 'assistant' | 'system', content: string }`
111
+ * - The response is a Server-Sent Events (SSE) stream compatible with AI SDK v5
112
+ * - If both `agent` and `:agentId` are present, a warning is logged and the fixed `agent` takes precedence
113
+ * - Request context from the incoming request overrides `defaultOptions.requestContext` if both are present
114
+ */
115
+ export declare function chatRoute<OUTPUT = undefined>({ path, agent, defaultOptions, version, sendStart, sendFinish, sendReasoning, sendSources, }: chatRouteOptions<OUTPUT>): ReturnType<typeof registerApiRoute>;
116
+ export {};
117
+ //# sourceMappingURL=chat-route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-route.d.ts","sourceRoot":"","sources":["../src/chat-route.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAK9F,OAAO,KAAK,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAA6B,MAAM,oBAAoB,CAAC;AAC3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,uBAAuB,CACjC,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,EAC1D,MAAM,GAAG,SAAS,IAChB,qBAAqB,CAAC,MAAM,CAAC,GAAG;IAClC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,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,EACd,SAAgB,EAChB,UAAiB,EACjB,aAAqB,EACrB,WAAmB,GACpB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CA0KhE"}
@@ -0,0 +1,79 @@
1
+ import { __require } from './chunk-DGUM43GV.js';
2
+
3
+ // ../../packages/_vendored/ai_v5/dist/chunk-7D4SUZUM.js
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof __require !== "undefined") return __require.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __commonJS = (cb, mod) => function __require22() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+
36
+ // ../../packages/_vendored/ai_v5/dist/chunk-QOME2VME.js
37
+ var require_token_error = __commonJS({
38
+ "../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"(exports$1, module) {
39
+ var __defProp2 = Object.defineProperty;
40
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
41
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
42
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
43
+ var __export = (target, all) => {
44
+ for (var name in all)
45
+ __defProp2(target, name, { get: all[name], enumerable: true });
46
+ };
47
+ var __copyProps2 = (to, from, except, desc) => {
48
+ if (from && typeof from === "object" || typeof from === "function") {
49
+ for (let key of __getOwnPropNames2(from))
50
+ if (!__hasOwnProp2.call(to, key) && key !== except)
51
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
52
+ }
53
+ return to;
54
+ };
55
+ var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
56
+ var token_error_exports = {};
57
+ __export(token_error_exports, {
58
+ VercelOidcTokenError: () => VercelOidcTokenError
59
+ });
60
+ module.exports = __toCommonJS(token_error_exports);
61
+ var VercelOidcTokenError = class extends Error {
62
+ constructor(message, cause) {
63
+ super(message);
64
+ this.name = "VercelOidcTokenError";
65
+ this.cause = cause;
66
+ }
67
+ toString() {
68
+ if (this.cause) {
69
+ return `${this.name}: ${this.message}: ${this.cause}`;
70
+ }
71
+ return `${this.name}: ${this.message}`;
72
+ }
73
+ };
74
+ }
75
+ });
76
+
77
+ export { __commonJS, __require2 as __require, __toESM, require_token_error };
78
+ //# sourceMappingURL=chunk-3YJ25IUJ.js.map
79
+ //# sourceMappingURL=chunk-3YJ25IUJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/_vendored/ai_v5/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"],"names":["__require","__require2","exports","__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps"],"mappings":";;;AAAA,IAAI,WAAW,MAAA,CAAO,MAAA;AACtB,IAAI,YAAY,MAAA,CAAO,cAAA;AACvB,IAAI,mBAAmB,MAAA,CAAO,wBAAA;AAC9B,IAAI,oBAAoB,MAAA,CAAO,mBAAA;AAC/B,IAAI,eAAe,MAAA,CAAO,cAAA;AAC1B,IAAI,YAAA,GAAe,OAAO,SAAA,CAAU,cAAA;AACpC,IAAIA,UAAAA,mBAA6B,CAAA,CAAC,CAAA,KAAM,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,OAAO,KAAA,KAAU,WAAA,GAAc,IAAI,KAAA,CAAM,CAAA,EAAG;AAAA,EAC7H,GAAA,EAAK,CAAC,CAAA,EAAG,CAAA,KAAA,CAAO,OAAO,SAAA,KAAY,WAAA,GAAc,SAAA,GAAU,CAAA,EAAG,CAAC;AACjE,CAAC,CAAA,GAAI,CAAA,EAAG,SAAS,CAAA,EAAG;AAClB,EAAA,IAAI,OAAO,SAAA,KAAY,WAAA,SAAoB,SAAA,CAAQ,KAAA,CAAM,MAAM,SAAS,CAAA;AACxE,EAAA,MAAM,KAAA,CAAM,sBAAA,GAAyB,CAAA,GAAI,oBAAoB,CAAA;AAC/D,CAAC;AACD,IAAI,UAAA,GAAa,CAAC,EAAA,EAAI,GAAA,KAAQ,SAASC,WAAAA,GAAa;AAClD,EAAA,OAAO,WAAW,EAAA,CAAG,kBAAkB,EAAE,CAAA,CAAE,CAAC,CAAC,CAAA,EAAA,CAAI,GAAA,GAAM,EAAE,SAAS,EAAC,IAAK,OAAA,EAAS,GAAG,GAAG,GAAA,CAAI,OAAA;AAC7F;AACA,IAAI,WAAA,GAAc,CAAC,EAAA,EAAI,IAAA,EAAM,QAAQ,IAAA,KAAS;AAC5C,EAAA,IAAI,QAAQ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W;AACT,QAAA,IAAI,KAAK,KAAA,EAAO;AACd,UAAA,OAAO,CAAA,EAAG,KAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,EAAA,EAAK,KAAK,KAAK,CAAA,CAAA;AACrD,QAAA;AACA,QAAA,OAAO,CAAA,EAAG,IAAA,CAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,CAAA;AACtC,MAAA;AAAA,KAAA;AACF,EAAA;AAAA,CAAA","file":"chunk-3YJ25IUJ.js","sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\nexport { __commonJS, __require, __toESM };\n//# sourceMappingURL=chunk-7D4SUZUM.js.map\n//# sourceMappingURL=chunk-7D4SUZUM.js.map","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"]}
@@ -0,0 +1,10 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
6
+ });
7
+
8
+ export { __require };
9
+ //# sourceMappingURL=chunk-DGUM43GV.js.map
10
+ //# sourceMappingURL=chunk-DGUM43GV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-DGUM43GV.js"}
@@ -0,0 +1,79 @@
1
+ import { __require } from './chunk-DGUM43GV.js';
2
+
3
+ // ../../packages/_vendored/ai_v6/dist/chunk-7D4SUZUM.js
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __require2 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof __require !== "undefined") return __require.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __commonJS = (cb, mod) => function __require22() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+
36
+ // ../../packages/_vendored/ai_v6/dist/chunk-QOME2VME.js
37
+ var require_token_error = __commonJS({
38
+ "../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"(exports$1, module) {
39
+ var __defProp2 = Object.defineProperty;
40
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
41
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
42
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
43
+ var __export = (target, all) => {
44
+ for (var name in all)
45
+ __defProp2(target, name, { get: all[name], enumerable: true });
46
+ };
47
+ var __copyProps2 = (to, from, except, desc) => {
48
+ if (from && typeof from === "object" || typeof from === "function") {
49
+ for (let key of __getOwnPropNames2(from))
50
+ if (!__hasOwnProp2.call(to, key) && key !== except)
51
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
52
+ }
53
+ return to;
54
+ };
55
+ var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
56
+ var token_error_exports = {};
57
+ __export(token_error_exports, {
58
+ VercelOidcTokenError: () => VercelOidcTokenError
59
+ });
60
+ module.exports = __toCommonJS(token_error_exports);
61
+ var VercelOidcTokenError = class extends Error {
62
+ constructor(message, cause) {
63
+ super(message);
64
+ this.name = "VercelOidcTokenError";
65
+ this.cause = cause;
66
+ }
67
+ toString() {
68
+ if (this.cause) {
69
+ return `${this.name}: ${this.message}: ${this.cause}`;
70
+ }
71
+ return `${this.name}: ${this.message}`;
72
+ }
73
+ };
74
+ }
75
+ });
76
+
77
+ export { __commonJS, __require2 as __require, __toESM, require_token_error };
78
+ //# sourceMappingURL=chunk-HDI4ZP7N.js.map
79
+ //# sourceMappingURL=chunk-HDI4ZP7N.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/_vendored/ai_v6/dist/chunk-7D4SUZUM.js","../../../node_modules/.pnpm/@vercel+oidc@3.1.0/node_modules/@vercel/oidc/dist/token-error.js"],"names":["__require","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AAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,EAAA,EAAK,KAAK,KAAK,CAAA,CAAA;AACrD,QAAA;AACA,QAAA,OAAO,CAAA,EAAG,IAAA,CAAK,IAAI,CAAA,EAAA,EAAK,KAAK,OAAO,CAAA,CAAA;AACtC,MAAA;AAAA,KAAA;AACF,EAAA;AAAA,CAAA","file":"chunk-HDI4ZP7N.js","sourcesContent":["var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, {\n get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b]\n}) : x)(function(x) {\n if (typeof require !== \"undefined\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + x + '\" is not supported');\n});\nvar __commonJS = (cb, mod) => function __require2() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\nexport { __commonJS, __require, __toESM };\n//# sourceMappingURL=chunk-7D4SUZUM.js.map\n//# sourceMappingURL=chunk-7D4SUZUM.js.map","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar token_error_exports = {};\n__export(token_error_exports, {\n VercelOidcTokenError: () => VercelOidcTokenError\n});\nmodule.exports = __toCommonJS(token_error_exports);\nclass VercelOidcTokenError extends Error {\n constructor(message, cause) {\n super(message);\n this.name = \"VercelOidcTokenError\";\n this.cause = cause;\n }\n toString() {\n if (this.cause) {\n return `${this.name}: ${this.message}: ${this.cause}`;\n }\n return `${this.name}: ${this.message}`;\n }\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VercelOidcTokenError\n});\n"]}