@mastra/react 0.1.1 → 0.2.0-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.
- package/CHANGELOG.md +33 -0
- package/dist/{chunk-55VPMN3N-BHqoDkCq.cjs → chunk-REDZDNFN-D4qauMBp.cjs} +4 -4
- package/dist/chunk-REDZDNFN-D4qauMBp.cjs.map +1 -0
- package/dist/{chunk-55VPMN3N-Ax1F4Y75.js → chunk-REDZDNFN-DEIWVTdL.js} +4 -4
- package/dist/chunk-REDZDNFN-DEIWVTdL.js.map +1 -0
- package/dist/{index-D3JtF_Zl.js → index-BrMELKWu.js} +594 -28
- package/dist/index-BrMELKWu.js.map +1 -0
- package/dist/{index-ChvWx-iU.cjs → index-TEBHU8EU.cjs} +595 -26
- package/dist/index-TEBHU8EU.cjs.map +1 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/use-mutation.d.ts +27 -0
- package/dist/src/mastra-client-context.d.ts +3 -1
- package/dist/src/mastra-react-provider.d.ts +1 -1
- package/dist/src/workflows/hooks.d.ts +33 -0
- package/dist/src/workflows/index.d.ts +2 -0
- package/dist/src/workflows/types.d.ts +121 -0
- package/dist/src/workflows/use-stream-workflow.d.ts +38 -0
- package/dist/{token-6GSAFR2W-SPYPLMBM-CWoxKwfk.cjs → token-6GSAFR2W-XRCSVUPZ-DdTrjI2X.cjs} +5 -5
- package/dist/token-6GSAFR2W-XRCSVUPZ-DdTrjI2X.cjs.map +1 -0
- package/dist/{token-6GSAFR2W-SPYPLMBM-ChURikIE.js → token-6GSAFR2W-XRCSVUPZ-JdBnAp2N.js} +4 -4
- package/dist/token-6GSAFR2W-XRCSVUPZ-JdBnAp2N.js.map +1 -0
- package/dist/token-util-NEHG7TUY-U7CX7GS4-CfBW62uu.cjs +11 -0
- package/dist/token-util-NEHG7TUY-U7CX7GS4-CfBW62uu.cjs.map +1 -0
- package/dist/{token-util-NEHG7TUY-JRJTGTAB-hEay2AHp.js → token-util-NEHG7TUY-U7CX7GS4-DhQqQpmz.js} +2 -2
- package/dist/token-util-NEHG7TUY-U7CX7GS4-DhQqQpmz.js.map +1 -0
- package/package.json +3 -3
- package/dist/chunk-55VPMN3N-Ax1F4Y75.js.map +0 -1
- package/dist/chunk-55VPMN3N-BHqoDkCq.cjs.map +0 -1
- package/dist/index-ChvWx-iU.cjs.map +0 -1
- package/dist/index-D3JtF_Zl.js.map +0 -1
- package/dist/token-6GSAFR2W-SPYPLMBM-CWoxKwfk.cjs.map +0 -1
- package/dist/token-6GSAFR2W-SPYPLMBM-ChURikIE.js.map +0 -1
- package/dist/token-util-NEHG7TUY-JRJTGTAB-BU9ZxL1w.cjs +0 -11
- package/dist/token-util-NEHG7TUY-JRJTGTAB-BU9ZxL1w.cjs.map +0 -1
- package/dist/token-util-NEHG7TUY-JRJTGTAB-hEay2AHp.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-TEBHU8EU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -64,7 +64,10 @@ exports.mapWorkflowStreamChunkToWatchResult = index.mapWorkflowStreamChunkToWatc
|
|
|
64
64
|
exports.resolveToChildMessages = index.resolveToChildMessages;
|
|
65
65
|
exports.toAssistantUIMessage = index.toAssistantUIMessage;
|
|
66
66
|
exports.toUIMessage = index.toUIMessage;
|
|
67
|
+
exports.useCancelWorkflowRun = index.useCancelWorkflowRun;
|
|
67
68
|
exports.useChat = index.useChat;
|
|
69
|
+
exports.useCreateWorkflowRun = index.useCreateWorkflowRun;
|
|
68
70
|
exports.useEntity = index.useEntity;
|
|
69
71
|
exports.useMastraClient = index.useMastraClient;
|
|
72
|
+
exports.useStreamWorkflow = index.useStreamWorkflow;
|
|
70
73
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { K as AgentIcon, D as CodeBlock, C as CodeBlockClass, F as CodeCopyButton, E as Entity, k as EntityCaret, j as EntityContent, i as EntityContentClass, h as EntityTrigger, f as EntityTriggerClass, g as EntityTriggerVariantClasses, z as Entry, y as EntryClass, B as EntryTitle, A as EntryTitleClass, G as Icon, J as IconButton, H as IconButtonClass, I as IconSizes, M as MastraReactProvider, S as Message, Y as MessageActions, X as MessageActionsClass, R as MessageClass, V as MessageContent, U as MessageContentClass, a7 as MessageList, a6 as MessageListClass, a9 as MessageStreaming, a8 as MessageStreamingClass, a1 as MessageUsage, a0 as MessageUsageClass, a3 as MessageUsageEntry, a2 as MessageUsageEntryClass, a5 as MessageUsageValue, a4 as MessageUsageValueClass, $ as MessageUsages, Z as MessageUsagesClass, l as ToolApproval, x as ToolApprovalActions, w as ToolApprovalActionsClass, T as ToolApprovalClass, v as ToolApprovalContent, s as ToolApprovalContentClass, q as ToolApprovalHeader, p as ToolApprovalHeaderClass, o as ToolApprovalTitle, n as ToolApprovalTitleClass, L as ToolsIcon, N as Tooltip, P as TooltipContent, O as TooltipContentClass, Q as TooltipTrigger, W as WorkflowIcon, m as mapWorkflowStreamChunkToWatchResult, c as resolveToChildMessages, d as toAssistantUIMessage, t as toUIMessage, b as useChat, e as useEntity, u as useMastraClient } from './index-
|
|
1
|
+
export { K as AgentIcon, D as CodeBlock, C as CodeBlockClass, F as CodeCopyButton, E as Entity, k as EntityCaret, j as EntityContent, i as EntityContentClass, h as EntityTrigger, f as EntityTriggerClass, g as EntityTriggerVariantClasses, z as Entry, y as EntryClass, B as EntryTitle, A as EntryTitleClass, G as Icon, J as IconButton, H as IconButtonClass, I as IconSizes, M as MastraReactProvider, S as Message, Y as MessageActions, X as MessageActionsClass, R as MessageClass, V as MessageContent, U as MessageContentClass, a7 as MessageList, a6 as MessageListClass, a9 as MessageStreaming, a8 as MessageStreamingClass, a1 as MessageUsage, a0 as MessageUsageClass, a3 as MessageUsageEntry, a2 as MessageUsageEntryClass, a5 as MessageUsageValue, a4 as MessageUsageValueClass, $ as MessageUsages, Z as MessageUsagesClass, l as ToolApproval, x as ToolApprovalActions, w as ToolApprovalActionsClass, T as ToolApprovalClass, v as ToolApprovalContent, s as ToolApprovalContentClass, q as ToolApprovalHeader, p as ToolApprovalHeaderClass, o as ToolApprovalTitle, n as ToolApprovalTitleClass, L as ToolsIcon, N as Tooltip, P as TooltipContent, O as TooltipContentClass, Q as TooltipTrigger, W as WorkflowIcon, m as mapWorkflowStreamChunkToWatchResult, c as resolveToChildMessages, d as toAssistantUIMessage, t as toUIMessage, ab as useCancelWorkflowRun, b as useChat, aa as useCreateWorkflowRun, e as useEntity, u as useMastraClient, ac as useStreamWorkflow } from './index-BrMELKWu.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the state of a mutation operation.
|
|
3
|
+
* Mimics the essential return type of react-query's useMutation.
|
|
4
|
+
*/
|
|
5
|
+
export interface MutationState<TData, TError extends Error, TVariables> {
|
|
6
|
+
/** Execute the mutation without waiting for the result */
|
|
7
|
+
mutate: (variables: TVariables) => void;
|
|
8
|
+
/** Execute the mutation and return a promise with the result */
|
|
9
|
+
mutateAsync: (variables: TVariables) => Promise<TData>;
|
|
10
|
+
/** Whether the mutation is currently executing */
|
|
11
|
+
isPending: boolean;
|
|
12
|
+
/** Whether the mutation completed successfully */
|
|
13
|
+
isSuccess: boolean;
|
|
14
|
+
/** Whether the mutation failed with an error */
|
|
15
|
+
isError: boolean;
|
|
16
|
+
/** The error if the mutation failed, null otherwise */
|
|
17
|
+
error: TError | null;
|
|
18
|
+
/** The data returned by the mutation if successful */
|
|
19
|
+
data: TData | undefined;
|
|
20
|
+
/** Reset the mutation state to initial values */
|
|
21
|
+
reset: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Internal helper hook that provides mutation-like functionality without react-query.
|
|
25
|
+
* Tracks pending, success, and error states for async operations.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useMutation<TData, TError extends Error, TVariables>(mutationFn: (variables: TVariables) => Promise<TData>): MutationState<TData, TError, TVariables>;
|
|
@@ -5,6 +5,8 @@ export interface MastraClientProviderProps {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
headers?: Record<string, string>;
|
|
8
|
+
/** API route prefix. Defaults to '/api'. Set this to match your server's apiPrefix configuration. */
|
|
9
|
+
apiPrefix?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare const MastraClientProvider: ({ children, baseUrl, headers }: MastraClientProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MastraClientProvider: ({ children, baseUrl, headers, apiPrefix }: MastraClientProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export declare const useMastraClient: () => MastraClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MastraClientProviderProps } from './mastra-client-context';
|
|
2
2
|
type MastraReactProviderProps = MastraClientProviderProps;
|
|
3
|
-
export declare const MastraReactProvider: ({ children, baseUrl, headers }: MastraReactProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const MastraReactProvider: ({ children, baseUrl, headers, apiPrefix }: MastraReactProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CreateWorkflowRunParams, CreateWorkflowRunResult, CancelWorkflowRunParams, CancelWorkflowRunResult } from './types';
|
|
2
|
+
export { useStreamWorkflow } from './use-stream-workflow';
|
|
3
|
+
/**
|
|
4
|
+
* Hook for creating workflow runs.
|
|
5
|
+
* Returns a mutation for creating a new workflow run.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* const createWorkflowRun = useCreateWorkflowRun();
|
|
10
|
+
*
|
|
11
|
+
* // Create a run
|
|
12
|
+
* const { runId } = await createWorkflowRun.mutateAsync({
|
|
13
|
+
* workflowId: 'my-workflow'
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function useCreateWorkflowRun(): import('../lib/use-mutation').MutationState<CreateWorkflowRunResult, Error, CreateWorkflowRunParams>;
|
|
18
|
+
/**
|
|
19
|
+
* Hook for canceling workflow runs.
|
|
20
|
+
* Returns a mutation for canceling a running workflow.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const cancelWorkflowRun = useCancelWorkflowRun();
|
|
25
|
+
*
|
|
26
|
+
* // Cancel a run
|
|
27
|
+
* await cancelWorkflowRun.mutateAsync({
|
|
28
|
+
* workflowId: 'my-workflow',
|
|
29
|
+
* runId: 'run-123'
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function useCancelWorkflowRun(): import('../lib/use-mutation').MutationState<CancelWorkflowRunResult, Error, CancelWorkflowRunParams>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { TimeTravelParams } from '@mastra/client-js';
|
|
2
|
+
import { TracingOptions } from '@mastra/core/observability';
|
|
3
|
+
import { WorkflowStreamResult as CoreWorkflowStreamResult } from '@mastra/core/workflows';
|
|
4
|
+
/**
|
|
5
|
+
* Workflow stream result type alias.
|
|
6
|
+
*/
|
|
7
|
+
export type WorkflowStreamResult = CoreWorkflowStreamResult<any, any, any, any>;
|
|
8
|
+
/**
|
|
9
|
+
* Parameters for the useStreamWorkflow hook.
|
|
10
|
+
*/
|
|
11
|
+
export interface UseStreamWorkflowParams {
|
|
12
|
+
/** Whether to enable debug mode for per-step execution */
|
|
13
|
+
debugMode: boolean;
|
|
14
|
+
/** Optional tracing options for observability */
|
|
15
|
+
tracingOptions?: TracingOptions;
|
|
16
|
+
/** Optional error handler callback */
|
|
17
|
+
onError?: (error: Error, defaultMessage: string) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Parameters for streaming a workflow.
|
|
21
|
+
*/
|
|
22
|
+
export interface StreamWorkflowParams {
|
|
23
|
+
/** The ID of the workflow */
|
|
24
|
+
workflowId: string;
|
|
25
|
+
/** The ID of the run */
|
|
26
|
+
runId: string;
|
|
27
|
+
/** Input data for the workflow */
|
|
28
|
+
inputData: Record<string, unknown>;
|
|
29
|
+
/** Optional initial state */
|
|
30
|
+
initialState?: Record<string, unknown>;
|
|
31
|
+
/** Request context to pass to the workflow */
|
|
32
|
+
requestContext: Record<string, unknown>;
|
|
33
|
+
/** Optional flag to enable per-step execution */
|
|
34
|
+
perStep?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Parameters for observing a workflow stream.
|
|
38
|
+
*/
|
|
39
|
+
export interface ObserveWorkflowStreamParams {
|
|
40
|
+
/** The ID of the workflow */
|
|
41
|
+
workflowId: string;
|
|
42
|
+
/** The ID of the run */
|
|
43
|
+
runId: string;
|
|
44
|
+
/** Optional stored run result to resume from */
|
|
45
|
+
storeRunResult: WorkflowStreamResult | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Parameters for resuming a workflow stream.
|
|
49
|
+
*/
|
|
50
|
+
export interface ResumeWorkflowStreamParams {
|
|
51
|
+
/** The ID of the workflow */
|
|
52
|
+
workflowId: string;
|
|
53
|
+
/** The ID of the run */
|
|
54
|
+
runId: string;
|
|
55
|
+
/** The step or steps to resume */
|
|
56
|
+
step: string | string[];
|
|
57
|
+
/** Data to resume with */
|
|
58
|
+
resumeData: Record<string, unknown>;
|
|
59
|
+
/** Request context to pass to the workflow */
|
|
60
|
+
requestContext: Record<string, unknown>;
|
|
61
|
+
/** Optional flag to enable per-step execution */
|
|
62
|
+
perStep?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Parameters for time-traveling a workflow stream.
|
|
66
|
+
*/
|
|
67
|
+
export interface TimeTravelWorkflowStreamParams extends Omit<TimeTravelParams, 'requestContext'> {
|
|
68
|
+
/** The ID of the workflow */
|
|
69
|
+
workflowId: string;
|
|
70
|
+
/** Request context to pass to the workflow */
|
|
71
|
+
requestContext: Record<string, unknown>;
|
|
72
|
+
/** Optional run ID */
|
|
73
|
+
runId?: string;
|
|
74
|
+
/** Optional flag to enable per-step execution */
|
|
75
|
+
perStep?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Parameters for creating a workflow run.
|
|
79
|
+
*/
|
|
80
|
+
export interface CreateWorkflowRunParams {
|
|
81
|
+
/** The ID of the workflow to create a run for */
|
|
82
|
+
workflowId: string;
|
|
83
|
+
/** Optional previous run ID to continue from */
|
|
84
|
+
prevRunId?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Result of creating a workflow run.
|
|
88
|
+
*/
|
|
89
|
+
export interface CreateWorkflowRunResult {
|
|
90
|
+
/** The ID of the newly created run */
|
|
91
|
+
runId: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Parameters for starting a workflow run.
|
|
95
|
+
*/
|
|
96
|
+
export interface StartWorkflowRunParams {
|
|
97
|
+
/** The ID of the workflow */
|
|
98
|
+
workflowId: string;
|
|
99
|
+
/** The ID of the run to start */
|
|
100
|
+
runId: string;
|
|
101
|
+
/** Input data for the workflow */
|
|
102
|
+
input: Record<string, unknown>;
|
|
103
|
+
/** Optional request context to pass to the workflow */
|
|
104
|
+
requestContext?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Parameters for canceling a workflow run.
|
|
108
|
+
*/
|
|
109
|
+
export interface CancelWorkflowRunParams {
|
|
110
|
+
/** The ID of the workflow */
|
|
111
|
+
workflowId: string;
|
|
112
|
+
/** The ID of the run to cancel */
|
|
113
|
+
runId: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Result of canceling a workflow run.
|
|
117
|
+
*/
|
|
118
|
+
export interface CancelWorkflowRunResult {
|
|
119
|
+
/** Confirmation message */
|
|
120
|
+
message: string;
|
|
121
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseStreamWorkflowParams, WorkflowStreamResult, StreamWorkflowParams, ObserveWorkflowStreamParams, ResumeWorkflowStreamParams, TimeTravelWorkflowStreamParams } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Hook for streaming workflow execution with support for observing, resuming, and time-travel.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```tsx
|
|
7
|
+
* const {
|
|
8
|
+
* streamWorkflow,
|
|
9
|
+
* streamResult,
|
|
10
|
+
* isStreaming,
|
|
11
|
+
* observeWorkflowStream,
|
|
12
|
+
* closeStreamsAndReset,
|
|
13
|
+
* resumeWorkflowStream,
|
|
14
|
+
* timeTravelWorkflowStream,
|
|
15
|
+
* } = useStreamWorkflow({
|
|
16
|
+
* debugMode: true,
|
|
17
|
+
* tracingOptions: { enabled: true },
|
|
18
|
+
* onError: (error, defaultMessage) => console.error(defaultMessage, error),
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* // Start streaming a workflow
|
|
22
|
+
* await streamWorkflow.mutateAsync({
|
|
23
|
+
* workflowId: 'my-workflow',
|
|
24
|
+
* runId: 'run-123',
|
|
25
|
+
* inputData: { key: 'value' },
|
|
26
|
+
* requestContext: {},
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function useStreamWorkflow({ debugMode, tracingOptions, onError }: UseStreamWorkflowParams): {
|
|
31
|
+
streamWorkflow: import('../lib/use-mutation').MutationState<void, Error, StreamWorkflowParams>;
|
|
32
|
+
streamResult: WorkflowStreamResult;
|
|
33
|
+
isStreaming: boolean;
|
|
34
|
+
observeWorkflowStream: import('../lib/use-mutation').MutationState<void, Error, ObserveWorkflowStreamParams>;
|
|
35
|
+
closeStreamsAndReset: () => void;
|
|
36
|
+
resumeWorkflowStream: import('../lib/use-mutation').MutationState<void, Error, ResumeWorkflowStreamParams>;
|
|
37
|
+
timeTravelWorkflowStream: import('../lib/use-mutation').MutationState<void, Error, TimeTravelWorkflowStreamParams>;
|
|
38
|
+
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const index = require('./index-
|
|
5
|
+
const chunkREDZDNFN = require('./chunk-REDZDNFN-D4qauMBp.cjs');
|
|
6
|
+
const index = require('./index-TEBHU8EU.cjs');
|
|
7
7
|
|
|
8
8
|
// ../_vendored/ai_v5/dist/token-6GSAFR2W.js
|
|
9
9
|
var require_token = index.__commonJS({
|
|
10
|
-
"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports, module) {
|
|
10
|
+
"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports$1, module) {
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
13
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -31,7 +31,7 @@ var require_token = index.__commonJS({
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(token_exports);
|
|
33
33
|
var import_token_error = index.require_token_error();
|
|
34
|
-
var import_token_util =
|
|
34
|
+
var import_token_util = chunkREDZDNFN.require_token_util();
|
|
35
35
|
async function refreshToken() {
|
|
36
36
|
const { projectId, teamId } = (0, import_token_util.findProjectInfo)();
|
|
37
37
|
let maybeToken = (0, import_token_util.loadToken)(projectId);
|
|
@@ -61,4 +61,4 @@ var require_token = index.__commonJS({
|
|
|
61
61
|
var token6GSAFR2W = require_token();
|
|
62
62
|
|
|
63
63
|
exports.default = token6GSAFR2W;
|
|
64
|
-
//# sourceMappingURL=token-6GSAFR2W-
|
|
64
|
+
//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ-DdTrjI2X.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-6GSAFR2W-XRCSVUPZ-DdTrjI2X.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,IAAI,IAAI,QAAQ,GAAG,CAAC,MAAM,EAAE,GAAG,KAAK;AACpC,MAAM,KAAK,IAAI,IAAI,IAAI,GAAG;AAC1B,QAAQ,SAAS,CAAC,MAAM,EAAE,IA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BAAiB,CAAC,eAAe,GAAG;AAC5E,MAAM,IAAI,UAAU,GAAG,IAAI,iBAAiB,CAAC,SAAS,EAAE,SAAS,CAAC;AAClE,MAAM,IAAI,CAAC,UAAU,IAAI,IAAI,iBAAiB,CAAC,SAAS,EAAE,IAAI,iBAAiB,CAAC,eAAe,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE;AACrH,QAAQ,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,9 +1,9 @@
|
|
|
1
|
-
import { r as require_token_util } from './chunk-
|
|
2
|
-
import { _ as __commonJS, r as require_token_error } from './index-
|
|
1
|
+
import { r as require_token_util } from './chunk-REDZDNFN-DEIWVTdL.js';
|
|
2
|
+
import { _ as __commonJS, r as require_token_error } from './index-BrMELKWu.js';
|
|
3
3
|
|
|
4
4
|
// ../_vendored/ai_v5/dist/token-6GSAFR2W.js
|
|
5
5
|
var require_token = __commonJS({
|
|
6
|
-
"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports, module) {
|
|
6
|
+
"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token.js"(exports$1, module) {
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
9
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -57,4 +57,4 @@ var require_token = __commonJS({
|
|
|
57
57
|
var token6GSAFR2W = require_token();
|
|
58
58
|
|
|
59
59
|
export { token6GSAFR2W as default };
|
|
60
|
-
//# sourceMappingURL=token-6GSAFR2W-
|
|
60
|
+
//# sourceMappingURL=token-6GSAFR2W-XRCSVUPZ-JdBnAp2N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-6GSAFR2W-XRCSVUPZ-JdBnAp2N.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,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ringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const chunkREDZDNFN = require('./chunk-REDZDNFN-D4qauMBp.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-CfBW62uu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-util-NEHG7TUY-U7CX7GS4-CfBW62uu.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;;;;"}
|
package/dist/{token-util-NEHG7TUY-JRJTGTAB-hEay2AHp.js → token-util-NEHG7TUY-U7CX7GS4-DhQqQpmz.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as require_token_util } from './chunk-
|
|
1
|
+
import { r as require_token_util } from './chunk-REDZDNFN-DEIWVTdL.js';
|
|
2
2
|
|
|
3
3
|
// ../_vendored/ai_v5/dist/token-util-NEHG7TUY.js
|
|
4
4
|
var tokenUtilNEHG7TUY = require_token_util();
|
|
5
5
|
|
|
6
6
|
export { tokenUtilNEHG7TUY as default };
|
|
7
|
-
//# sourceMappingURL=token-util-NEHG7TUY-
|
|
7
|
+
//# sourceMappingURL=token-util-NEHG7TUY-U7CX7GS4-DhQqQpmz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-util-NEHG7TUY-U7CX7GS4-DhQqQpmz.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;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-alpha.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lucide-react": "^0.522.0",
|
|
40
40
|
"shiki": "^1.29.2",
|
|
41
41
|
"tailwind-merge": "^3.3.1",
|
|
42
|
-
"@mastra/client-js": "1.0.
|
|
42
|
+
"@mastra/client-js": "1.1.0-alpha.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=19.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vite-plugin-dts": "^4.5.4",
|
|
69
69
|
"vitest": "4.0.16",
|
|
70
70
|
"zod": "^3.25.0",
|
|
71
|
-
"@mastra/core": "1.0.
|
|
71
|
+
"@mastra/core": "1.1.0-alpha.0"
|
|
72
72
|
},
|
|
73
73
|
"eslintConfig": {
|
|
74
74
|
"extends": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-55VPMN3N-Ax1F4Y75.js","sources":["../../../packages/core/dist/chunk-55VPMN3N.js"],"sourcesContent":["import { __commonJS, __require, require_token_error } from './chunk-D22XABFZ.js';\n\n// ../_vendored/ai_v5/dist/chunk-OL3SSKUZ.js\nvar require_token_io = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-io.js\"(exports, module) {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getProtoOf = Object.getPrototypeOf;\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 __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 !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n ));\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_io_exports = {};\n __export(token_io_exports, {\n findRootDir: () => findRootDir,\n getUserDataDir: () => getUserDataDir\n });\n module.exports = __toCommonJS(token_io_exports);\n var import_path = __toESM(__require(\"path\"));\n var import_fs = __toESM(__require(\"fs\"));\n var import_os = __toESM(__require(\"os\"));\n var import_token_error = require_token_error();\n function findRootDir() {\n try {\n let dir = process.cwd();\n while (dir !== import_path.default.dirname(dir)) {\n const pkgPath = import_path.default.join(dir, \".vercel\");\n if (import_fs.default.existsSync(pkgPath)) {\n return dir;\n }\n dir = import_path.default.dirname(dir);\n }\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(\n \"Token refresh only supported in node server environments\"\n );\n }\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n }\n function getUserDataDir() {\n if (process.env.XDG_DATA_HOME) {\n return process.env.XDG_DATA_HOME;\n }\n switch (import_os.default.platform()) {\n case \"darwin\":\n return import_path.default.join(import_os.default.homedir(), \"Library/Application Support\");\n case \"linux\":\n return import_path.default.join(import_os.default.homedir(), \".local/share\");\n case \"win32\":\n if (process.env.LOCALAPPDATA) {\n return process.env.LOCALAPPDATA;\n }\n return null;\n default:\n return null;\n }\n }\n }\n});\nvar require_token_util = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-util.js\"(exports, module) {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getProtoOf = Object.getPrototypeOf;\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 __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 !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n ));\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_util_exports = {};\n __export(token_util_exports, {\n assertVercelOidcTokenResponse: () => assertVercelOidcTokenResponse,\n findProjectInfo: () => findProjectInfo,\n getTokenPayload: () => getTokenPayload,\n getVercelCliToken: () => getVercelCliToken,\n getVercelDataDir: () => getVercelDataDir,\n getVercelOidcToken: () => getVercelOidcToken,\n isExpired: () => isExpired,\n loadToken: () => loadToken,\n saveToken: () => saveToken\n });\n module.exports = __toCommonJS(token_util_exports);\n var path = __toESM(__require(\"path\"));\n var fs = __toESM(__require(\"fs\"));\n var import_token_error = require_token_error();\n var import_token_io = require_token_io();\n function getVercelDataDir() {\n const vercelFolder = \"com.vercel.cli\";\n const dataDir = (0, import_token_io.getUserDataDir)();\n if (!dataDir) {\n return null;\n }\n return path.join(dataDir, vercelFolder);\n }\n function getVercelCliToken() {\n const dataDir = getVercelDataDir();\n if (!dataDir) {\n return null;\n }\n const tokenPath = path.join(dataDir, \"auth.json\");\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = fs.readFileSync(tokenPath, \"utf8\");\n if (!token) {\n return null;\n }\n return JSON.parse(token).token;\n }\n async function getVercelOidcToken(authToken, projectId, teamId) {\n try {\n const url = `https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId ? `&teamId=${teamId}` : \"\"}`;\n const res = await fetch(url, {\n method: \"POST\",\n headers: {\n Authorization: `Bearer ${authToken}`\n }\n });\n if (!res.ok) {\n throw new import_token_error.VercelOidcTokenError(\n `Failed to refresh OIDC token: ${res.statusText}`\n );\n }\n const tokenRes = await res.json();\n assertVercelOidcTokenResponse(tokenRes);\n return tokenRes;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token`, e);\n }\n }\n function assertVercelOidcTokenResponse(res) {\n if (!res || typeof res !== \"object\") {\n throw new TypeError(\"Expected an object\");\n }\n if (!(\"token\" in res) || typeof res.token !== \"string\") {\n throw new TypeError(\"Expected a string-valued token property\");\n }\n }\n function findProjectInfo() {\n const dir = (0, import_token_io.findRootDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n }\n try {\n const prjPath = path.join(dir, \".vercel\", \"project.json\");\n if (!fs.existsSync(prjPath)) {\n throw new import_token_error.VercelOidcTokenError(\"project.json not found\");\n }\n const prj = JSON.parse(fs.readFileSync(prjPath, \"utf8\"));\n if (typeof prj.projectId !== \"string\" && typeof prj.orgId !== \"string\") {\n throw new TypeError(\"Expected a string-valued projectId property\");\n }\n return { projectId: prj.projectId, teamId: prj.orgId };\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Unable to find project ID`, e);\n }\n }\n function saveToken(token, projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find user data directory\");\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n const tokenJson = JSON.stringify(token);\n fs.mkdirSync(path.dirname(tokenPath), { mode: 504, recursive: true });\n fs.writeFileSync(tokenPath, tokenJson);\n fs.chmodSync(tokenPath, 432);\n return;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to save token`, e);\n }\n }\n function loadToken(projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n return null;\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = JSON.parse(fs.readFileSync(tokenPath, \"utf8\"));\n assertVercelOidcTokenResponse(token);\n return token;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to load token`, e);\n }\n }\n function getTokenPayload(token) {\n const tokenParts = token.split(\".\");\n if (tokenParts.length !== 3) {\n throw new import_token_error.VercelOidcTokenError(\"Invalid token\");\n }\n const base64 = tokenParts[1].replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padded = base64.padEnd(\n base64.length + (4 - base64.length % 4) % 4,\n \"=\"\n );\n return JSON.parse(Buffer.from(padded, \"base64\").toString(\"utf8\"));\n }\n function isExpired(token) {\n return token.exp * 1e3 < Date.now();\n }\n }\n});\n\nexport { require_token_util };\n//# sourceMappingURL=chunk-55VPMN3N.js.map\n//# sourceMappingURL=chunk-55VPMN3N.js.map"],"names":["__require"],"mappings":";;AAEA;AACA,IAAI,gBAAgB,GAAG,UAAU,CAAC;AAClC,EAAE,2FAA2F,CAAC,OAAO,EAAE,MAAM,EAAE;AAC/G,IAAI,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM;AAChC,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,cAAc;AAC5C,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,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE;AAC1E,QAAQ,KAAK,IAAI,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC;AAC/C,UAAU,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,IAAI,GAAG,KAAK,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C,EAAE;AAClB,QAAQ,MAAM,IAAI,kBAAkB,CAAC,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;AACpF,MAAM;AACN,IAAI;AACJ,IAAI,SAAS,eAAe,CAAC,KAAK,EAAE;AACpC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AACzC,MAAM,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;AACnC,QAAQ,MAAM,IAAI,kBAAkB,CAAC,oBAAoB,CAAC,eAAe,CAAC;AAC1E,MAAM;AACN,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;AACxE,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM;AAClC,QAAQ,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC;AACnD,QAAQ;AACR,OAAO;AACP,MAAM,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACvE,IAAI;AACJ,IAAI,SAAS,SAAS,CAAC,KAAK,EAAE;AAC9B,MAAM,OAAO,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;AACzC,IAAI;AACJ,EAAE;AACF,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-55VPMN3N-BHqoDkCq.cjs","sources":["../../../packages/core/dist/chunk-55VPMN3N.js"],"sourcesContent":["import { __commonJS, __require, require_token_error } from './chunk-D22XABFZ.js';\n\n// ../_vendored/ai_v5/dist/chunk-OL3SSKUZ.js\nvar require_token_io = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-io.js\"(exports, module) {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getProtoOf = Object.getPrototypeOf;\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 __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 !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n ));\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_io_exports = {};\n __export(token_io_exports, {\n findRootDir: () => findRootDir,\n getUserDataDir: () => getUserDataDir\n });\n module.exports = __toCommonJS(token_io_exports);\n var import_path = __toESM(__require(\"path\"));\n var import_fs = __toESM(__require(\"fs\"));\n var import_os = __toESM(__require(\"os\"));\n var import_token_error = require_token_error();\n function findRootDir() {\n try {\n let dir = process.cwd();\n while (dir !== import_path.default.dirname(dir)) {\n const pkgPath = import_path.default.join(dir, \".vercel\");\n if (import_fs.default.existsSync(pkgPath)) {\n return dir;\n }\n dir = import_path.default.dirname(dir);\n }\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(\n \"Token refresh only supported in node server environments\"\n );\n }\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n }\n function getUserDataDir() {\n if (process.env.XDG_DATA_HOME) {\n return process.env.XDG_DATA_HOME;\n }\n switch (import_os.default.platform()) {\n case \"darwin\":\n return import_path.default.join(import_os.default.homedir(), \"Library/Application Support\");\n case \"linux\":\n return import_path.default.join(import_os.default.homedir(), \".local/share\");\n case \"win32\":\n if (process.env.LOCALAPPDATA) {\n return process.env.LOCALAPPDATA;\n }\n return null;\n default:\n return null;\n }\n }\n }\n});\nvar require_token_util = __commonJS({\n \"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/token-util.js\"(exports, module) {\n var __create = Object.create;\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __getProtoOf = Object.getPrototypeOf;\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 __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 !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n ));\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n var token_util_exports = {};\n __export(token_util_exports, {\n assertVercelOidcTokenResponse: () => assertVercelOidcTokenResponse,\n findProjectInfo: () => findProjectInfo,\n getTokenPayload: () => getTokenPayload,\n getVercelCliToken: () => getVercelCliToken,\n getVercelDataDir: () => getVercelDataDir,\n getVercelOidcToken: () => getVercelOidcToken,\n isExpired: () => isExpired,\n loadToken: () => loadToken,\n saveToken: () => saveToken\n });\n module.exports = __toCommonJS(token_util_exports);\n var path = __toESM(__require(\"path\"));\n var fs = __toESM(__require(\"fs\"));\n var import_token_error = require_token_error();\n var import_token_io = require_token_io();\n function getVercelDataDir() {\n const vercelFolder = \"com.vercel.cli\";\n const dataDir = (0, import_token_io.getUserDataDir)();\n if (!dataDir) {\n return null;\n }\n return path.join(dataDir, vercelFolder);\n }\n function getVercelCliToken() {\n const dataDir = getVercelDataDir();\n if (!dataDir) {\n return null;\n }\n const tokenPath = path.join(dataDir, \"auth.json\");\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = fs.readFileSync(tokenPath, \"utf8\");\n if (!token) {\n return null;\n }\n return JSON.parse(token).token;\n }\n async function getVercelOidcToken(authToken, projectId, teamId) {\n try {\n const url = `https://api.vercel.com/v1/projects/${projectId}/token?source=vercel-oidc-refresh${teamId ? `&teamId=${teamId}` : \"\"}`;\n const res = await fetch(url, {\n method: \"POST\",\n headers: {\n Authorization: `Bearer ${authToken}`\n }\n });\n if (!res.ok) {\n throw new import_token_error.VercelOidcTokenError(\n `Failed to refresh OIDC token: ${res.statusText}`\n );\n }\n const tokenRes = await res.json();\n assertVercelOidcTokenResponse(tokenRes);\n return tokenRes;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to refresh OIDC token`, e);\n }\n }\n function assertVercelOidcTokenResponse(res) {\n if (!res || typeof res !== \"object\") {\n throw new TypeError(\"Expected an object\");\n }\n if (!(\"token\" in res) || typeof res.token !== \"string\") {\n throw new TypeError(\"Expected a string-valued token property\");\n }\n }\n function findProjectInfo() {\n const dir = (0, import_token_io.findRootDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find root directory\");\n }\n try {\n const prjPath = path.join(dir, \".vercel\", \"project.json\");\n if (!fs.existsSync(prjPath)) {\n throw new import_token_error.VercelOidcTokenError(\"project.json not found\");\n }\n const prj = JSON.parse(fs.readFileSync(prjPath, \"utf8\"));\n if (typeof prj.projectId !== \"string\" && typeof prj.orgId !== \"string\") {\n throw new TypeError(\"Expected a string-valued projectId property\");\n }\n return { projectId: prj.projectId, teamId: prj.orgId };\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Unable to find project ID`, e);\n }\n }\n function saveToken(token, projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n throw new import_token_error.VercelOidcTokenError(\"Unable to find user data directory\");\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n const tokenJson = JSON.stringify(token);\n fs.mkdirSync(path.dirname(tokenPath), { mode: 504, recursive: true });\n fs.writeFileSync(tokenPath, tokenJson);\n fs.chmodSync(tokenPath, 432);\n return;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to save token`, e);\n }\n }\n function loadToken(projectId) {\n try {\n const dir = (0, import_token_io.getUserDataDir)();\n if (!dir) {\n return null;\n }\n const tokenPath = path.join(dir, \"com.vercel.token\", `${projectId}.json`);\n if (!fs.existsSync(tokenPath)) {\n return null;\n }\n const token = JSON.parse(fs.readFileSync(tokenPath, \"utf8\"));\n assertVercelOidcTokenResponse(token);\n return token;\n } catch (e) {\n throw new import_token_error.VercelOidcTokenError(`Failed to load token`, e);\n }\n }\n function getTokenPayload(token) {\n const tokenParts = token.split(\".\");\n if (tokenParts.length !== 3) {\n throw new import_token_error.VercelOidcTokenError(\"Invalid token\");\n }\n const base64 = tokenParts[1].replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padded = base64.padEnd(\n base64.length + (4 - base64.length % 4) % 4,\n \"=\"\n );\n return JSON.parse(Buffer.from(padded, \"base64\").toString(\"utf8\"));\n }\n function isExpired(token) {\n return token.exp * 1e3 < Date.now();\n }\n }\n});\n\nexport { require_token_util };\n//# sourceMappingURL=chunk-55VPM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