@mastra/react 0.2.7-alpha.0 → 0.2.8-alpha.0

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 (130) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE.md +15 -0
  3. package/dist/{src/agent → agent}/hooks.d.ts +9 -8
  4. package/dist/agent/hooks.d.ts.map +1 -0
  5. package/dist/{src/agent → agent}/types.d.ts +1 -0
  6. package/dist/agent/types.d.ts.map +1 -0
  7. package/dist/index.cjs +2764 -66
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.ts +8 -2
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +2705 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib/ai-sdk/index.d.ts +5 -0
  14. package/dist/lib/ai-sdk/index.d.ts.map +1 -0
  15. package/dist/{src/lib → lib}/ai-sdk/memory/resolveInitialMessages.d.ts +2 -1
  16. package/dist/lib/ai-sdk/memory/resolveInitialMessages.d.ts.map +1 -0
  17. package/dist/{src/lib → lib}/ai-sdk/transformers/AISdkNetworkTransformer.d.ts +4 -3
  18. package/dist/lib/ai-sdk/transformers/AISdkNetworkTransformer.d.ts.map +1 -0
  19. package/dist/lib/ai-sdk/transformers/types.d.ts +11 -0
  20. package/dist/lib/ai-sdk/transformers/types.d.ts.map +1 -0
  21. package/dist/{src/lib → lib}/ai-sdk/types.d.ts +3 -2
  22. package/dist/lib/ai-sdk/types.d.ts.map +1 -0
  23. package/dist/{src/lib → lib}/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +3 -2
  24. package/dist/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts.map +1 -0
  25. package/dist/{src/lib → lib}/ai-sdk/utils/toAssistantUIMessage.d.ts +3 -2
  26. package/dist/lib/ai-sdk/utils/toAssistantUIMessage.d.ts.map +1 -0
  27. package/dist/{src/lib → lib}/ai-sdk/utils/toUIMessage.d.ts +4 -3
  28. package/dist/lib/ai-sdk/utils/toUIMessage.d.ts.map +1 -0
  29. package/dist/{src/lib → lib}/use-mutation.d.ts +1 -0
  30. package/dist/lib/use-mutation.d.ts.map +1 -0
  31. package/dist/{src/mastra-client-context.d.ts → mastra-client-context.d.ts} +3 -1
  32. package/dist/mastra-client-context.d.ts.map +1 -0
  33. package/dist/{src/mastra-react-provider.d.ts → mastra-react-provider.d.ts} +2 -1
  34. package/dist/mastra-react-provider.d.ts.map +1 -0
  35. package/dist/react.css +184 -322
  36. package/dist/{src/ui → ui}/Code/Code.d.ts +2 -1
  37. package/dist/ui/Code/Code.d.ts.map +1 -0
  38. package/dist/ui/Code/highlight.d.ts +4 -0
  39. package/dist/ui/Code/highlight.d.ts.map +1 -0
  40. package/dist/ui/Code/index.d.ts +2 -0
  41. package/dist/ui/Code/index.d.ts.map +1 -0
  42. package/dist/{src/ui → ui}/Entity/Entity.d.ts +2 -1
  43. package/dist/ui/Entity/Entity.d.ts.map +1 -0
  44. package/dist/{src/ui → ui}/Entity/Entry.d.ts +2 -1
  45. package/dist/ui/Entity/Entry.d.ts.map +1 -0
  46. package/dist/{src/ui → ui}/Entity/ToolApproval.d.ts +1 -0
  47. package/dist/ui/Entity/ToolApproval.d.ts.map +1 -0
  48. package/dist/{src/ui → ui}/Entity/context.d.ts +4 -3
  49. package/dist/ui/Entity/context.d.ts.map +1 -0
  50. package/dist/ui/Entity/index.d.ts +5 -0
  51. package/dist/ui/Entity/index.d.ts.map +1 -0
  52. package/dist/{src/ui → ui}/Entity/types.d.ts +1 -0
  53. package/dist/ui/Entity/types.d.ts.map +1 -0
  54. package/dist/{src/ui → ui}/Icon/Icon.d.ts +2 -1
  55. package/dist/ui/Icon/Icon.d.ts.map +1 -0
  56. package/dist/ui/Icon/index.d.ts +2 -0
  57. package/dist/ui/Icon/index.d.ts.map +1 -0
  58. package/dist/{src/ui → ui}/IconButton/IconButton.d.ts +2 -1
  59. package/dist/ui/IconButton/IconButton.d.ts.map +1 -0
  60. package/dist/ui/IconButton/index.d.ts +2 -0
  61. package/dist/ui/IconButton/index.d.ts.map +1 -0
  62. package/dist/{src/ui → ui}/Icons/AgentIcon.d.ts +2 -1
  63. package/dist/ui/Icons/AgentIcon.d.ts.map +1 -0
  64. package/dist/{src/ui → ui}/Icons/ToolsIcon.d.ts +2 -1
  65. package/dist/ui/Icons/ToolsIcon.d.ts.map +1 -0
  66. package/dist/{src/ui → ui}/Icons/WorkflowIcon.d.ts +2 -1
  67. package/dist/ui/Icons/WorkflowIcon.d.ts.map +1 -0
  68. package/dist/ui/Icons/index.d.ts +4 -0
  69. package/dist/ui/Icons/index.d.ts.map +1 -0
  70. package/dist/{src/ui → ui}/Message/Message.d.ts +2 -1
  71. package/dist/ui/Message/Message.d.ts.map +1 -0
  72. package/dist/ui/Message/index.d.ts +2 -0
  73. package/dist/ui/Message/index.d.ts.map +1 -0
  74. package/dist/{src/ui → ui}/Tooltip/Tooltip.d.ts +2 -1
  75. package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -0
  76. package/dist/ui/Tooltip/index.d.ts +2 -0
  77. package/dist/ui/Tooltip/index.d.ts.map +1 -0
  78. package/dist/ui/index.d.ts +8 -0
  79. package/dist/ui/index.d.ts.map +1 -0
  80. package/dist/{src/workflows → workflows}/hooks.d.ts +5 -4
  81. package/dist/workflows/hooks.d.ts.map +1 -0
  82. package/dist/workflows/index.d.ts +3 -0
  83. package/dist/workflows/index.d.ts.map +1 -0
  84. package/dist/{src/workflows → workflows}/types.d.ts +4 -3
  85. package/dist/workflows/types.d.ts.map +1 -0
  86. package/dist/{src/workflows → workflows}/use-stream-workflow.d.ts +6 -5
  87. package/dist/workflows/use-stream-workflow.d.ts.map +1 -0
  88. package/package.json +14 -10
  89. package/dist/chunk-REDZDNFN-B3BKm5Q3.js +0 -249
  90. package/dist/chunk-REDZDNFN-B3BKm5Q3.js.map +0 -1
  91. package/dist/chunk-REDZDNFN-B6_m0Vw5.cjs +0 -251
  92. package/dist/chunk-REDZDNFN-B6_m0Vw5.cjs.map +0 -1
  93. package/dist/index-0ViTRi6s.cjs +0 -26374
  94. package/dist/index-0ViTRi6s.cjs.map +0 -1
  95. package/dist/index-BaK_Y6TP.cjs +0 -185
  96. package/dist/index-BaK_Y6TP.cjs.map +0 -1
  97. package/dist/index-C1OzXW5i.js +0 -180
  98. package/dist/index-C1OzXW5i.js.map +0 -1
  99. package/dist/index-D3vBmpgO.js +0 -26288
  100. package/dist/index-D3vBmpgO.js.map +0 -1
  101. package/dist/src/index.d.ts +0 -7
  102. package/dist/src/lib/ai-sdk/index.d.ts +0 -4
  103. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.test.d.ts +0 -1
  104. package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.test.d.ts +0 -1
  105. package/dist/src/lib/ai-sdk/transformers/types.d.ts +0 -10
  106. package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.test.d.ts +0 -1
  107. package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.test.d.ts +0 -1
  108. package/dist/src/lib/ai-sdk/utils/toUIMessage.test.d.ts +0 -1
  109. package/dist/src/ui/Code/highlight.d.ts +0 -3
  110. package/dist/src/ui/Code/index.d.ts +0 -1
  111. package/dist/src/ui/Entity/Entity.stories.d.ts +0 -22
  112. package/dist/src/ui/Entity/index.d.ts +0 -4
  113. package/dist/src/ui/Icon/index.d.ts +0 -1
  114. package/dist/src/ui/IconButton/IconButton.stories.d.ts +0 -12
  115. package/dist/src/ui/IconButton/index.d.ts +0 -1
  116. package/dist/src/ui/Icons/index.d.ts +0 -3
  117. package/dist/src/ui/Message/Message.stories.d.ts +0 -13
  118. package/dist/src/ui/Message/index.d.ts +0 -1
  119. package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +0 -12
  120. package/dist/src/ui/Tooltip/index.d.ts +0 -1
  121. package/dist/src/ui/index.d.ts +0 -7
  122. package/dist/src/workflows/index.d.ts +0 -2
  123. package/dist/token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs +0 -64
  124. package/dist/token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs.map +0 -1
  125. package/dist/token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js +0 -60
  126. package/dist/token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js.map +0 -1
  127. package/dist/token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs +0 -11
  128. package/dist/token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs.map +0 -1
  129. package/dist/token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js +0 -7
  130. package/dist/token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js.map +0 -1
@@ -1,7 +0,0 @@
1
- export * from './mastra-react-provider';
2
- export * from './agent/hooks';
3
- export * from './agent/types';
4
- export { useMastraClient } from './mastra-client-context';
5
- export * from './lib/ai-sdk';
6
- export * from './ui';
7
- export * from './workflows';
@@ -1,4 +0,0 @@
1
- export * from './types';
2
- export * from './utils/toUIMessage';
3
- export * from './utils/toAssistantUIMessage';
4
- export { resolveToChildMessages } from './memory/resolveInitialMessages';
@@ -1,10 +0,0 @@
1
- import { NetworkChunkType } from '@mastra/core/stream';
2
- import { MastraUIMessage, MastraUIMessageMetadata } from '../types';
3
- export interface TransformerArgs<T> {
4
- chunk: NetworkChunkType;
5
- conversation: MastraUIMessage[];
6
- metadata: MastraUIMessageMetadata;
7
- }
8
- export interface Transformer<T> {
9
- transform: (args: TransformerArgs<T>) => MastraUIMessage[];
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { JSX } from 'react';
2
- import { BundledLanguage } from 'shiki/bundle/web';
3
- export declare function highlight(code: string, lang: BundledLanguage): Promise<JSX.Element>;
@@ -1 +0,0 @@
1
- export * from './Code';
@@ -1,22 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
- import { EntityVariant } from './types';
3
- interface ComponentProps {
4
- className?: string;
5
- additionalClass?: string;
6
- variant?: EntityVariant;
7
- requireApproval?: boolean;
8
- }
9
- declare const meta: {
10
- title: string;
11
- component: ({ className, additionalClass, variant, requireApproval }: ComponentProps) => import("react/jsx-runtime").JSX.Element;
12
- parameters: {};
13
- tags: string[];
14
- argTypes: {};
15
- args: {};
16
- };
17
- export default meta;
18
- type Story = StoryObj<typeof meta>;
19
- export declare const Default: Story;
20
- export declare const OverrideByCustomClass: Story;
21
- export declare const ExtandedByAdditionalClass: Story;
22
- export declare const Disabled: Story;
@@ -1,4 +0,0 @@
1
- export * from './Entity';
2
- export { useEntity } from './context';
3
- export * from './ToolApproval';
4
- export * from './Entry';
@@ -1 +0,0 @@
1
- export * from './Icon';
@@ -1,12 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
- declare const meta: {
3
- title: string;
4
- component: () => import("react/jsx-runtime").JSX.Element;
5
- parameters: {};
6
- tags: string[];
7
- argTypes: {};
8
- args: {};
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Default: Story;
@@ -1 +0,0 @@
1
- export * from './IconButton';
@@ -1,3 +0,0 @@
1
- export * from './AgentIcon';
2
- export * from './ToolsIcon';
3
- export * from './WorkflowIcon';
@@ -1,13 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
- declare const meta: {
3
- title: string;
4
- component: () => import("react/jsx-runtime").JSX.Element;
5
- parameters: {};
6
- tags: string[];
7
- argTypes: {};
8
- args: {};
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Default: Story;
13
- export declare const Streaming: Story;
@@ -1 +0,0 @@
1
- export * from './Message';
@@ -1,12 +0,0 @@
1
- import { StoryObj } from '@storybook/react-vite';
2
- declare const meta: {
3
- title: string;
4
- component: () => import("react/jsx-runtime").JSX.Element;
5
- parameters: {};
6
- tags: string[];
7
- argTypes: {};
8
- args: {};
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Default: Story;
@@ -1 +0,0 @@
1
- export * from './Tooltip';
@@ -1,7 +0,0 @@
1
- export * from './Entity';
2
- export * from './Code';
3
- export * from './Icon';
4
- export * from './IconButton';
5
- export * from './Icons';
6
- export * from './Tooltip';
7
- export * from './Message';
@@ -1,2 +0,0 @@
1
- export * from './hooks';
2
- export * from './types';
@@ -1,64 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const chunkREDZDNFN = require('./chunk-REDZDNFN-B6_m0Vw5.cjs');
6
- const index = require('./index-0ViTRi6s.cjs');
7
-
8
- // ../_vendored/ai_v5/dist/token-6GSAFR2W.js
9
- var require_token = index.__commonJS({
10
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports$1, module) {
11
- var __defProp = Object.defineProperty;
12
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
- var __getOwnPropNames = Object.getOwnPropertyNames;
14
- var __hasOwnProp = Object.prototype.hasOwnProperty;
15
- var __export = (target, all) => {
16
- for (var name in all)
17
- __defProp(target, name, { get: all[name], enumerable: true });
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var token_exports = {};
29
- __export(token_exports, {
30
- refreshToken: () => refreshToken
31
- });
32
- module.exports = __toCommonJS(token_exports);
33
- var import_token_error = index.require_token_error();
34
- var import_token_util = chunkREDZDNFN.require_token_util();
35
- async function refreshToken() {
36
- const { projectId, teamId } = (0, import_token_util.findProjectInfo)();
37
- let maybeToken = (0, import_token_util.loadToken)(projectId);
38
- if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {
39
- const authToken = (0, import_token_util.getVercelCliToken)();
40
- if (!authToken) {
41
- throw new import_token_error.VercelOidcTokenError(
42
- "Failed to refresh OIDC token: login to vercel cli"
43
- );
44
- }
45
- if (!projectId) {
46
- throw new import_token_error.VercelOidcTokenError(
47
- "Failed to refresh OIDC token: project id not found"
48
- );
49
- }
50
- maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
51
- if (!maybeToken) {
52
- throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
53
- }
54
- (0, import_token_util.saveToken)(maybeToken, projectId);
55
- }
56
- process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
57
- return;
58
- }
59
- }
60
- });
61
- var token6GSAFR2W = require_token();
62
-
63
- exports.default = token6GSAFR2W;
64
- //# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-6GSAFR2W-XRCSVUPZ-DHFPWxwn.cjs","sources":["../../../packages/core/dist/token-6GSAFR2W-XRCSVUPZ.js"],"sourcesContent":["import { require_token_util } from './chunk-REDZDNFN.js';\nimport { __commonJS, require_token_error } from './chunk-HJ3LEPWE.js';\n\n// ../_vendored/ai_v5/dist/token-6GSAFR2W.js\nvar require_token = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js\"(exports$1, module) {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __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 };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_exports = {};\n __export(token_exports, {\n refreshToken: () => refreshToken\n });\n module.exports = __toCommonJS(token_exports);\n var import_token_error = require_token_error();\n var import_token_util = require_token_util();\n async function refreshToken() {\n const { projectId, teamId } = (0, import_token_util.findProjectInfo)();\n let maybeToken = (0, import_token_util.loadToken)(projectId);\n if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {\n const authToken = (0, import_token_util.getVercelCliToken)();\n if (!authToken) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: login to vercel cli\"\n );\n }\n if (!projectId) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: project id not found\"\n );\n }\n maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);\n if (!maybeToken) {\n throw new import_token_error.VercelOidcTokenError(\"Failed to refresh OIDC token\");\n }\n (0, import_token_util.saveToken)(maybeToken, projectId);\n }\n process.env.VERCEL_OIDC_TOKEN = maybeToken.token;\n return;\n }\n }\n});\nvar token6GSAFR2W = require_token();\n\nexport { token6GSAFR2W as default };\n//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ.js.map\n//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ.js.map"],"names":["__commonJS","require_token_error","require_token_util"],"mappings":";;;;;;;AAGA;AACA,IAAI,aAAa,GAAGA,gBAAU,CAAC;AAC/B,EAAE,wFAAwF,CAAC,SAAS,EAAE,MAAM,EAAE;AAC9G,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc;AACzC,IAAI,IAAI,gBAAgB,GAAG,MAAM,CAAC,wBAAwB;AAC1D,IAAI,IAAI,iBAAiB,GAAG,MAAM,CAAC,mBAAmB;AACtD,IAAI,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc;AACtD,IAA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from './index-D3vBmpgO.js';
3
-
4
- // ../_vendored/ai_v5/dist/token-6GSAFR2W.js
5
- var require_token = __commonJS({
6
- "../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports$1, module) {
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from))
18
- if (!__hasOwnProp.call(to, key) && key !== except)
19
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
- }
21
- return to;
22
- };
23
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
- var token_exports = {};
25
- __export(token_exports, {
26
- refreshToken: () => refreshToken
27
- });
28
- module.exports = __toCommonJS(token_exports);
29
- var import_token_error = require_token_error();
30
- var import_token_util = require_token_util();
31
- async function refreshToken() {
32
- const { projectId, teamId } = (0, import_token_util.findProjectInfo)();
33
- let maybeToken = (0, import_token_util.loadToken)(projectId);
34
- if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {
35
- const authToken = (0, import_token_util.getVercelCliToken)();
36
- if (!authToken) {
37
- throw new import_token_error.VercelOidcTokenError(
38
- "Failed to refresh OIDC token: login to vercel cli"
39
- );
40
- }
41
- if (!projectId) {
42
- throw new import_token_error.VercelOidcTokenError(
43
- "Failed to refresh OIDC token: project id not found"
44
- );
45
- }
46
- maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);
47
- if (!maybeToken) {
48
- throw new import_token_error.VercelOidcTokenError("Failed to refresh OIDC token");
49
- }
50
- (0, import_token_util.saveToken)(maybeToken, projectId);
51
- }
52
- process.env.VERCEL_OIDC_TOKEN = maybeToken.token;
53
- return;
54
- }
55
- }
56
- });
57
- var token6GSAFR2W = require_token();
58
-
59
- export { token6GSAFR2W as default };
60
- //# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-6GSAFR2W-XRCSVUPZ-PJRK45Cx.js","sources":["../../../packages/core/dist/token-6GSAFR2W-XRCSVUPZ.js"],"sourcesContent":["import { require_token_util } from './chunk-REDZDNFN.js';\nimport { __commonJS, require_token_error } from './chunk-HJ3LEPWE.js';\n\n// ../_vendored/ai_v5/dist/token-6GSAFR2W.js\nvar require_token = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js\"(exports$1, module) {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __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 };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_exports = {};\n __export(token_exports, {\n refreshToken: () => refreshToken\n });\n module.exports = __toCommonJS(token_exports);\n var import_token_error = require_token_error();\n var import_token_util = require_token_util();\n async function refreshToken() {\n const { projectId, teamId } = (0, import_token_util.findProjectInfo)();\n let maybeToken = (0, import_token_util.loadToken)(projectId);\n if (!maybeToken || (0, import_token_util.isExpired)((0, import_token_util.getTokenPayload)(maybeToken.token))) {\n const authToken = (0, import_token_util.getVercelCliToken)();\n if (!authToken) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: login to vercel cli\"\n );\n }\n if (!projectId) {\n throw new import_token_error.VercelOidcTokenError(\n \"Failed to refresh OIDC token: project id not found\"\n );\n }\n maybeToken = await (0, import_token_util.getVercelOidcToken)(authToken, projectId, teamId);\n if (!maybeToken) {\n throw new import_token_error.VercelOidcTokenError(\"Failed to refresh OIDC token\");\n }\n (0, import_token_util.saveToken)(maybeToken, projectId);\n }\n process.env.VERCEL_OIDC_TOKEN = maybeToken.token;\n return;\n }\n }\n});\nvar token6GSAFR2W = require_token();\n\nexport { token6GSAFR2W as default };\n//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ.js.map\n//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ.js.map"],"names":[],"mappings":";;;AAGA;AACA,IAAI,aAAa,GAAG,UAAU,CAAC;AAC/B,EAAE,wFAAwF,CAAC,SAAS,EAAE,MAAM,EAAE;AAC9G,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc;AACzC,IAAI,IAAI,gBAAgB,GAAG,MAAM,CAAC,wBAAwB;AAC1D,IAAI,IAAI,iBAAiB,GAAG,MAAM,CAAC,mBAAmB;AACtD,IAAI,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc;AACtD,IAAI,IAAI,QAAQ,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK;AACpC,MAAM,KAAK,IAAI,IAAI,IAAI,GAAG;AAC1B,QAAQ,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;AACrE,IAAI,CAAC;AACL,IAAI,IAAI,WAAW,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK;AAClD,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,I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Q,MAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC,iBAAiB,GAAG;AACpE,QAAQ,IAAI,CAAC,SAAS,EAAE;AACxB,UAAU,MAAM,IAAI,kBAAkB,CAAC,oBAAoB;AAC3D,YAAY;AACZ,WAAW;AACX,QAAQ;AACR,QAAQ,IAAI,CAAC,SAAS,EAAE;AACxB,UAAU,MAAM,IAAI,kBAAkB,CAAC,oBAAoB;AAC3D,YAAY;AACZ,WAAW;AACX,QAAQ;AACR,QAAQ,UAAU,GAAG,MAAM,IAAI,iBAAiB,CAAC,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;AAClG,QAAQ,IAAI,CAAC,UAAU,EAAE;AACzB,UAAU,MAAM,IAAI,kBAAkB,CAAC,oBAAoB,CAAC,8BAA8B,CAAC;AAC3F,QAAQ;AACR,QAAQ,IAAI,iBAAiB,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC;AAC/D,MAAM;AACN,MAAM,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,UAAU,CAAC,KAAK;AACtD,MAAM;AACN,IAAI;AACJ,EAAE;AACF,CAAC,CAAC;AACC,IAAC,aAAa,GAAG,aAAa;;;;"}
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const chunkREDZDNFN = require('./chunk-REDZDNFN-B6_m0Vw5.cjs');
6
-
7
- // ../_vendored/ai_v5/dist/token-util-NEHG7TUY.js
8
- var tokenUtilNEHG7TUY = chunkREDZDNFN.require_token_util();
9
-
10
- exports.default = tokenUtilNEHG7TUY;
11
- //# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-util-NEHG7TUY-U7CX7GS4-B0wfFQ5e.cjs","sources":["../../../packages/core/dist/token-util-NEHG7TUY-U7CX7GS4.js"],"sourcesContent":["import { require_token_util } from './chunk-REDZDNFN.js';\n\n// ../_vendored/ai_v5/dist/token-util-NEHG7TUY.js\nvar tokenUtilNEHG7TUY = require_token_util();\n\nexport { tokenUtilNEHG7TUY as default };\n//# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4.js.map\n//# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4.js.map"],"names":["require_token_util"],"mappings":";;;;;;AAEA;AACG,IAAC,iBAAiB,GAAGA,gCAAkB;;;;"}
@@ -1,7 +0,0 @@
1
- import { r as require_token_util } from './chunk-REDZDNFN-B3BKm5Q3.js';
2
-
3
- // ../_vendored/ai_v5/dist/token-util-NEHG7TUY.js
4
- var tokenUtilNEHG7TUY = require_token_util();
5
-
6
- export { tokenUtilNEHG7TUY as default };
7
- //# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-util-NEHG7TUY-U7CX7GS4-C_BDhp1r.js","sources":["../../../packages/core/dist/token-util-NEHG7TUY-U7CX7GS4.js"],"sourcesContent":["import { require_token_util } from './chunk-REDZDNFN.js';\n\n// ../_vendored/ai_v5/dist/token-util-NEHG7TUY.js\nvar tokenUtilNEHG7TUY = require_token_util();\n\nexport { tokenUtilNEHG7TUY as default };\n//# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4.js.map\n//# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4.js.map"],"names":[],"mappings":";;AAEA;AACG,IAAC,iBAAiB,GAAG,kBAAkB;;;;"}