@mastra/playground-ui 0.0.0-working-memory-per-user-20250620161509 → 0.0.0-wrapping-tooltip-provider-runtime-context-20250716134707
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/LICENSE.md +11 -42
- package/dist/{colors-CBG_Mm7P.js → colors-BauMYA7t.js} +3 -2
- package/dist/colors-BauMYA7t.js.map +1 -0
- package/dist/{colors-Du4i-E0i.cjs → colors-BjoU9dWU.cjs} +3 -2
- package/dist/colors-BjoU9dWU.cjs.map +1 -0
- package/dist/index.cjs.js +5449 -2366
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5439 -2383
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/attachments/attachment-preview-dialog.d.ts +31 -0
- package/dist/src/components/assistant-ui/attachments/attachment.d.ts +2 -0
- package/dist/src/components/assistant-ui/hooks/use-attachment-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-file-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-load-browser-file.d.ts +4 -0
- package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +6 -0
- package/dist/src/components/assistant-ui/messages/markdown-text.d.ts +2 -0
- package/dist/src/components/assistant-ui/messages/reasoning.d.ts +3 -0
- package/dist/src/components/assistant-ui/messages/user-messages.d.ts +9 -0
- package/dist/src/components/assistant-ui/network-threads.d.ts +11 -0
- package/dist/src/components/assistant-ui/thread.d.ts +1 -2
- package/dist/src/components/scrollable-container.d.ts +9 -0
- package/dist/src/components/ui/entry.d.ts +7 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/domains/agents/components/agent-advanced-settings.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-chat.d.ts +3 -0
- package/dist/src/domains/agents/components/agent-settings.d.ts +1 -0
- package/dist/src/domains/agents/components/agent-table/agent-table.d.ts +10 -0
- package/dist/src/domains/agents/components/agent-table/columns.d.ts +10 -0
- package/dist/src/domains/agents/components/agent-table/types.d.ts +13 -0
- package/dist/src/domains/agents/components/provider-map-icon.d.ts +12 -0
- package/dist/src/domains/agents/components/runtime-context.d.ts +6 -0
- package/dist/src/domains/agents/context/agent-context.d.ts +16 -0
- package/dist/src/domains/agents/context/agent-working-memory-context.d.ts +21 -0
- package/dist/src/domains/agents/context/index.d.ts +2 -0
- package/dist/src/domains/agents/hooks/use-agent-settings-state.d.ts +10 -0
- package/dist/src/domains/agents/hooks/use-agent-working-memory.d.ts +10 -0
- package/dist/src/domains/agents/index.d.ts +8 -4
- package/dist/src/domains/networks/components/network-table/columns.d.ts +4 -0
- package/dist/src/domains/networks/components/network-table/network-table.d.ts +11 -0
- package/dist/src/domains/networks/components/network-table/types.d.ts +10 -0
- package/dist/src/domains/networks/index.d.ts +2 -0
- package/dist/src/domains/networks/network-context.d.ts +4 -0
- package/dist/src/domains/networks/v-next/network-chat.d.ts +10 -0
- package/dist/src/domains/networks/v-next/step-dropdown.d.ts +1 -0
- package/dist/src/domains/networks/v-next/tool-fallback.d.ts +0 -0
- package/dist/src/{components/assistant-ui/assistant-message.d.ts → domains/networks/v-next/wrapped-assistant-message.d.ts} +2 -2
- package/dist/src/domains/tools/components/tool-list.d.ts +12 -0
- package/dist/src/domains/tools/index.d.ts +1 -0
- package/dist/src/domains/workflows/components/workflow-table/columns.d.ts +4 -0
- package/dist/src/domains/workflows/components/workflow-table/types.d.ts +7 -0
- package/dist/src/domains/workflows/components/workflow-table/workflow-table.d.ts +11 -0
- package/dist/src/domains/workflows/context/use-current-run.d.ts +2 -1
- package/dist/src/domains/workflows/context/workflow-nested-graph-context.d.ts +7 -1
- package/dist/src/domains/workflows/context/workflow-run-context.d.ts +3 -2
- package/dist/src/domains/workflows/index.d.ts +1 -0
- package/dist/src/domains/workflows/utils.d.ts +2 -2
- package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +6 -2
- package/dist/src/domains/workflows/workflow/workflow-graph-inner.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-graph.d.ts +4 -2
- package/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +10 -0
- package/dist/src/domains/workflows/workflow/workflow-nested-graph.d.ts +7 -1
- package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +12 -4
- package/dist/src/domains/workflows/workflow/workflow-run-event-form.d.ts +12 -0
- package/dist/src/domains/workflows/workflow/workflow-status.d.ts +2 -1
- package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +8 -1
- package/dist/src/domains/workflows/workflow/workflow-trigger.d.ts +12 -10
- package/dist/src/ds/components/Button/Button.d.ts +1 -0
- package/dist/src/ds/icons/AmazonIcon.d.ts +3 -0
- package/dist/src/ds/icons/AnthropicChatIcon.d.ts +3 -0
- package/dist/src/ds/icons/AnthropicMessagesIcon.d.ts +3 -0
- package/dist/src/ds/icons/AzureIcon.d.ts +3 -0
- package/dist/src/ds/icons/CohereIcon.d.ts +3 -0
- package/dist/src/ds/icons/GroqIcon.d.ts +3 -0
- package/dist/src/ds/icons/MistralIcon.d.ts +3 -0
- package/dist/src/ds/icons/OpenaiChatIcon.d.ts +3 -0
- package/dist/src/ds/icons/XGroqIcon.d.ts +3 -0
- package/dist/src/ds/tokens/colors.d.ts +1 -0
- package/dist/src/hooks/use-workflow-runs.d.ts +4 -0
- package/dist/src/hooks/use-workflows.d.ts +5 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/lib/formatting.d.ts +2 -0
- package/dist/src/lib/framework.d.ts +14 -0
- package/dist/src/services/mastra-runtime-provider.d.ts +1 -1
- package/dist/src/services/network-runtime-provider.d.ts +5 -3
- package/dist/src/services/vnext-message-provider.d.ts +11 -0
- package/dist/src/services/vnext-network-chat-provider.d.ts +18 -0
- package/dist/src/services/vnext-network-runtime-provider.d.ts +10 -0
- package/dist/src/types.d.ts +36 -3
- package/dist/tokens.cjs.js +1 -1
- package/dist/tokens.es.js +1 -1
- package/package.json +21 -19
- package/dist/colors-CBG_Mm7P.js.map +0 -1
- package/dist/colors-Du4i-E0i.cjs.map +0 -1
- package/dist/src/components/assistant-ui/assistant-modal.d.ts +0 -1
- package/dist/src/components/assistant-ui/attachment.d.ts +0 -5
- package/dist/src/components/assistant-ui/image-with-fallback.d.ts +0 -3
- package/dist/src/components/assistant-ui/markdown-text.d.ts +0 -2
- package/dist/src/components/assistant-ui/user-message.d.ts +0 -1
- package/dist/src/domains/agents/agent/agent-chat.d.ts +0 -3
- package/dist/src/domains/agents/agent/context/agent-context.d.ts +0 -19
- package/dist/src/store/agent-store.d.ts +0 -20
- /package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -0
- /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
- /package/dist/src/components/assistant-ui/{tool-fallback.d.ts → tools/tool-fallback.d.ts} +0 -0
- /package/dist/src/domains/agents/{agent → components}/agent-evals.d.ts +0 -0
- /package/dist/src/domains/agents/{agent → components}/agent-traces.d.ts +0 -0
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { WorkflowSendEventFormProps } from './workflow-run-event-form';
|
|
2
|
+
|
|
1
3
|
export interface WorkflowStepActionBarProps {
|
|
2
4
|
input?: any;
|
|
3
5
|
output?: any;
|
|
6
|
+
resumeData?: any;
|
|
4
7
|
error?: any;
|
|
5
8
|
stepName: string;
|
|
6
9
|
mapConfig?: string;
|
|
10
|
+
event?: string;
|
|
7
11
|
onShowTrace?: () => void;
|
|
12
|
+
onShowNestedGraph?: () => void;
|
|
13
|
+
onSendEvent?: WorkflowSendEventFormProps['onSendEvent'];
|
|
14
|
+
runId?: string;
|
|
8
15
|
}
|
|
9
|
-
export declare const WorkflowStepActionBar: ({ input, output, error, mapConfig, stepName, onShowTrace, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const WorkflowStepActionBar: ({ input, output, resumeData, error, mapConfig, stepName, event, onShowTrace, onShowNestedGraph, onSendEvent, runId, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
1
|
+
import { GetWorkflowResponse, WorkflowWatchResult } from '@mastra/client-js';
|
|
3
2
|
|
|
4
3
|
interface WorkflowTriggerProps {
|
|
5
4
|
workflowId: string;
|
|
@@ -12,10 +11,11 @@ interface WorkflowTriggerProps {
|
|
|
12
11
|
}) => Promise<{
|
|
13
12
|
runId: string;
|
|
14
13
|
}>;
|
|
15
|
-
|
|
14
|
+
isStreamingWorkflow: boolean;
|
|
15
|
+
streamWorkflow: ({ workflowId, runId, inputData, runtimeContext, }: {
|
|
16
16
|
workflowId: string;
|
|
17
17
|
runId: string;
|
|
18
|
-
|
|
18
|
+
inputData: Record<string, unknown>;
|
|
19
19
|
runtimeContext: Record<string, unknown>;
|
|
20
20
|
}) => Promise<void>;
|
|
21
21
|
resumeWorkflow: ({ workflowId, step, runId, resumeData, runtimeContext, }: {
|
|
@@ -27,13 +27,15 @@ interface WorkflowTriggerProps {
|
|
|
27
27
|
}) => Promise<{
|
|
28
28
|
message: string;
|
|
29
29
|
}>;
|
|
30
|
-
|
|
30
|
+
streamResult: WorkflowWatchResult | null;
|
|
31
|
+
isResumingWorkflow: boolean;
|
|
32
|
+
isCancellingWorkflowRun: boolean;
|
|
33
|
+
cancelWorkflowRun: ({ workflowId, runId }: {
|
|
31
34
|
workflowId: string;
|
|
32
35
|
runId: string;
|
|
33
|
-
}) => Promise<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
isResumingWorkflow: boolean;
|
|
36
|
+
}) => Promise<{
|
|
37
|
+
message: string;
|
|
38
|
+
}>;
|
|
37
39
|
}
|
|
38
|
-
export declare function WorkflowTrigger({ workflowId, setRunId, workflow, isLoading, createWorkflowRun,
|
|
40
|
+
export declare function WorkflowTrigger({ workflowId, setRunId, workflow, isLoading, createWorkflowRun, resumeWorkflow, streamWorkflow, isStreamingWorkflow, streamResult, isResumingWorkflow, isCancellingWorkflowRun, cancelWorkflowRun, }: WorkflowTriggerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
39
41
|
export {};
|
|
@@ -9,5 +9,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
size?: 'md' | 'lg';
|
|
11
11
|
variant?: 'default' | 'light';
|
|
12
|
+
target?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const Button: ({ className, as, size, variant, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LegacyWorkflowRunResult, WorkflowWatchResult } from '@mastra/client-js';
|
|
1
|
+
import { LegacyWorkflowRunResult, WorkflowWatchResult, GetWorkflowResponse } from '@mastra/client-js';
|
|
2
2
|
import { LegacyWorkflow } from '@mastra/core/workflows/legacy';
|
|
3
3
|
|
|
4
4
|
export type ExtendedLegacyWorkflowRunResult = LegacyWorkflowRunResult & {
|
|
@@ -15,6 +15,10 @@ export type ExtendedWorkflowWatchResult = WorkflowWatchResult & {
|
|
|
15
15
|
stack?: string;
|
|
16
16
|
} | null;
|
|
17
17
|
};
|
|
18
|
+
export declare const useWorkflow: (workflowId: string) => {
|
|
19
|
+
workflow: GetWorkflowResponse | null;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
};
|
|
18
22
|
export declare const useLegacyWorkflow: (workflowId: string) => {
|
|
19
23
|
legacyWorkflow: LegacyWorkflow<import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, import('@mastra/core/workflows/legacy').StepExecutionContext<any, import('@mastra/core/workflows/legacy').WorkflowContext<any, import('@mastra/core/workflows/legacy').LegacyStep<string, any, any, any>[], Record<string, any>>>>[], string, any, any> | null;
|
|
20
24
|
isLoading: boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from './contexts/mastra-client-context';
|
|
3
3
|
export * from './domains/agents/index';
|
|
4
4
|
export * from './domains/networks/index';
|
|
5
|
+
export * from './domains/tools/index';
|
|
5
6
|
export * from './domains/workflows/index';
|
|
6
7
|
export * from './domains/resizable-panel';
|
|
7
8
|
export * from './components/dynamic-form/index';
|
|
@@ -21,5 +22,8 @@ export * from './ds/components/EmptyState/index';
|
|
|
21
22
|
export * from './ds/icons/index';
|
|
22
23
|
export * from './lib/polls';
|
|
23
24
|
export * from './hooks/use-speech-recognition';
|
|
25
|
+
export * from './components/ui/radio-group';
|
|
26
|
+
export * from './components/ui/entry';
|
|
24
27
|
export type { TraceContextType } from './domains/traces/context/trace-context';
|
|
25
28
|
export * from './store/playground-store';
|
|
29
|
+
export * from './lib/framework';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
4
|
+
export type LinkComponent = ForwardRefExoticComponent<LinkComponentProps & RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
export interface LinkComponentProviderProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
Link: LinkComponent;
|
|
8
|
+
navigate: (path: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const LinkComponentProvider: ({ children, Link, navigate }: LinkComponentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const useLinkComponent: () => {
|
|
12
|
+
Link: LinkComponent;
|
|
13
|
+
navigate: (path: string) => void;
|
|
14
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
2
|
import { ChatProps } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraRuntimeProvider({ children, agentId, initialMessages,
|
|
4
|
+
export declare function MastraRuntimeProvider({ children, agentId, initialMessages, memory, threadId, refreshThreadList, settings, runtimeContext, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}> & ChatProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
-
import { ChatProps } from '../types';
|
|
2
|
+
import { ChatProps, ModelSettings } from '../types';
|
|
3
3
|
|
|
4
|
-
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId,
|
|
4
|
+
export declare function MastraNetworkRuntimeProvider({ children, agentId, initialMessages, memory, threadId, modelSettings, }: Readonly<{
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
}> & ChatProps
|
|
6
|
+
}> & Omit<ChatProps, 'settings'> & {
|
|
7
|
+
modelSettings: ModelSettings;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
import { ThreadMessageLike } from '@assistant-ui/react';
|
|
3
|
+
|
|
4
|
+
export declare const MessagesProvider: ({ children }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const useMessages: () => {
|
|
8
|
+
messages: ThreadMessageLike[];
|
|
9
|
+
setMessages: React.Dispatch<React.SetStateAction<ThreadMessageLike[]>>;
|
|
10
|
+
appendToLastMessage: (partial: string) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React, ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
type StateValue = {
|
|
4
|
+
executionSteps: Array<string>;
|
|
5
|
+
steps: Record<string, any>;
|
|
6
|
+
runId?: string;
|
|
7
|
+
};
|
|
8
|
+
type State = Record<string, StateValue>;
|
|
9
|
+
type VNextNetworkChatContextType = {
|
|
10
|
+
state: State;
|
|
11
|
+
handleStep: (uuid: string, record: Record<string, any>) => void;
|
|
12
|
+
setState: React.Dispatch<React.SetStateAction<State>>;
|
|
13
|
+
};
|
|
14
|
+
export declare const VNextNetworkChatProvider: ({ children }: {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const useVNextNetworkChat: () => VNextNetworkChatContextType;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from '../../node_modules/@types/react';
|
|
2
|
+
import { ChatProps } from '../types';
|
|
3
|
+
|
|
4
|
+
type VNextMastraNetworkRuntimeProviderProps = Omit<ChatProps, 'agentId' | 'agentName' | 'modelSettings'> & {
|
|
5
|
+
networkId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function VNextMastraNetworkRuntimeProvider({ children, networkId, memory, threadId, refreshThreadList, initialMessages, runtimeContext, }: Readonly<{
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}> & VNextMastraNetworkRuntimeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/src/types.d.ts
CHANGED
|
@@ -3,6 +3,36 @@ export interface Message {
|
|
|
3
3
|
role: 'user' | 'assistant';
|
|
4
4
|
content: any;
|
|
5
5
|
isError?: boolean;
|
|
6
|
+
parts?: Array<{
|
|
7
|
+
type: 'text';
|
|
8
|
+
text: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'step-start';
|
|
11
|
+
} | {
|
|
12
|
+
type: 'reasoning';
|
|
13
|
+
reasoning: string;
|
|
14
|
+
details: Array<{
|
|
15
|
+
type: 'text';
|
|
16
|
+
text: string;
|
|
17
|
+
}>;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface AssistantMessage {
|
|
21
|
+
id: string;
|
|
22
|
+
formattedMessageId: string;
|
|
23
|
+
finalStepId: string;
|
|
24
|
+
routingDecision?: {
|
|
25
|
+
resourceId: string;
|
|
26
|
+
resourceType: string;
|
|
27
|
+
selectionReason: string;
|
|
28
|
+
prompt: string;
|
|
29
|
+
};
|
|
30
|
+
finalResponse: string;
|
|
31
|
+
taskCompleteDecision?: {
|
|
32
|
+
isComplete: boolean;
|
|
33
|
+
finalResult: string;
|
|
34
|
+
completionReason: string;
|
|
35
|
+
};
|
|
6
36
|
}
|
|
7
37
|
export interface ModelSettings {
|
|
8
38
|
frequencyPenalty?: number;
|
|
@@ -14,6 +44,11 @@ export interface ModelSettings {
|
|
|
14
44
|
topK?: number;
|
|
15
45
|
topP?: number;
|
|
16
46
|
instructions?: string;
|
|
47
|
+
providerOptions?: Record<string, unknown>;
|
|
48
|
+
chatWithGenerate?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface AgentSettingsType {
|
|
51
|
+
modelSettings: ModelSettings;
|
|
17
52
|
}
|
|
18
53
|
export interface ChatProps {
|
|
19
54
|
agentId: string;
|
|
@@ -22,10 +57,8 @@ export interface ChatProps {
|
|
|
22
57
|
initialMessages?: Message[];
|
|
23
58
|
memory?: boolean;
|
|
24
59
|
refreshThreadList?: () => void;
|
|
25
|
-
|
|
26
|
-
chatWithGenerate?: boolean;
|
|
60
|
+
settings?: AgentSettingsType;
|
|
27
61
|
runtimeContext?: Record<string, any>;
|
|
28
|
-
showFileSupport?: boolean;
|
|
29
62
|
}
|
|
30
63
|
export type SpanStatus = {
|
|
31
64
|
code: number;
|
package/dist/tokens.cjs.js
CHANGED
package/dist/tokens.es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-wrapping-tooltip-provider-runtime-context-20250716134707",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"components"
|
|
35
35
|
],
|
|
36
36
|
"author": "Mastra",
|
|
37
|
-
"license": "
|
|
37
|
+
"license": "Apache-2.0",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/ui-utils": "^1.2.11",
|
|
40
40
|
"@assistant-ui/react": "^0.7.91",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@autoform/core": "^2.2.0",
|
|
44
44
|
"@autoform/react": "^3.1.0",
|
|
45
45
|
"@autoform/zod": "^2.2.0",
|
|
46
|
-
"@codemirror/lang-json": "^6.0.
|
|
47
|
-
"@dagrejs/dagre": "^1.1.
|
|
46
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
47
|
+
"@dagrejs/dagre": "^1.1.5",
|
|
48
48
|
"@hookform/resolvers": "^3.10.0",
|
|
49
49
|
"@lezer/highlight": "^1.2.1",
|
|
50
50
|
"@lukeed/uuid": "^2.0.1",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
55
55
|
"@radix-ui/react-label": "^2.1.7",
|
|
56
56
|
"@radix-ui/react-popover": "^1.1.14",
|
|
57
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
57
58
|
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
58
59
|
"@radix-ui/react-select": "^2.2.5",
|
|
59
60
|
"@radix-ui/react-slider": "^1.3.5",
|
|
@@ -62,17 +63,19 @@
|
|
|
62
63
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
63
64
|
"@radix-ui/react-toggle": "^1.1.9",
|
|
64
65
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
66
|
+
"@tanstack/react-query": "^5.81.5",
|
|
65
67
|
"@tanstack/react-table": "^8.21.3",
|
|
66
68
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
67
|
-
"@uiw/codemirror-theme-dracula": "^4.23.
|
|
68
|
-
"@uiw/react-codemirror": "^4.23.
|
|
69
|
-
"@xyflow/react": "^12.
|
|
69
|
+
"@uiw/codemirror-theme-dracula": "^4.23.14",
|
|
70
|
+
"@uiw/react-codemirror": "^4.23.14",
|
|
71
|
+
"@xyflow/react": "^12.8.1",
|
|
70
72
|
"cmdk": "^1.1.1",
|
|
71
73
|
"date-fns": "^4.1.0",
|
|
72
74
|
"json-schema-to-zod": "^2.6.1",
|
|
73
|
-
"motion": "^12.
|
|
75
|
+
"motion": "^12.23.0",
|
|
76
|
+
"prettier": "^3.6.2",
|
|
74
77
|
"prism-react-renderer": "^2.4.1",
|
|
75
|
-
"react-code-block": "1.1.
|
|
78
|
+
"react-code-block": "1.1.3",
|
|
76
79
|
"react-day-picker": "^8.10.1",
|
|
77
80
|
"react-hook-form": "^7.57.0",
|
|
78
81
|
"react-markdown": "^9.1.0",
|
|
@@ -82,42 +85,41 @@
|
|
|
82
85
|
"remark-gfm": "^4.0.1",
|
|
83
86
|
"remark-parse": "^11.0.0",
|
|
84
87
|
"remark-rehype": "^11.1.2",
|
|
85
|
-
"remeda": "^2.23.0",
|
|
86
88
|
"shiki": "^1.29.2",
|
|
87
89
|
"sonner": "^2.0.5",
|
|
88
90
|
"superjson": "^2.2.2",
|
|
89
|
-
"swr": "^2.3.
|
|
91
|
+
"swr": "^2.3.4",
|
|
90
92
|
"tailwindcss-animate": "^1.0.7",
|
|
91
93
|
"unified": "^11.0.5",
|
|
92
94
|
"use-debounce": "^10.0.5",
|
|
93
|
-
"zod": "^3.25.
|
|
95
|
+
"zod": "^3.25.67",
|
|
94
96
|
"zustand": "^5.0.5",
|
|
95
|
-
"@mastra/client-js": "0.
|
|
97
|
+
"@mastra/client-js": "0.10.14"
|
|
96
98
|
},
|
|
97
99
|
"peerDependencies": {
|
|
98
100
|
"lucide-react": "^0.474.0",
|
|
99
101
|
"react": ">=19.0.0",
|
|
100
102
|
"react-dom": ">=19.0.0",
|
|
101
103
|
"tailwindcss": "^3.0.0",
|
|
102
|
-
"@mastra/core": "0.
|
|
104
|
+
"@mastra/core": "0.10.15"
|
|
103
105
|
},
|
|
104
106
|
"devDependencies": {
|
|
105
107
|
"@types/node": "^20.19.0",
|
|
106
|
-
"@types/react": "^19.1.
|
|
108
|
+
"@types/react": "^19.1.8",
|
|
107
109
|
"@types/react-dom": "^19.1.6",
|
|
108
|
-
"@vitejs/plugin-react": "^4.
|
|
110
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
109
111
|
"autoprefixer": "^10.4.21",
|
|
110
112
|
"class-variance-authority": "^0.7.1",
|
|
111
113
|
"clsx": "^2.1.1",
|
|
112
|
-
"postcss": "^8.5.
|
|
113
|
-
"rollup-plugin-node-externals": "^8.0.
|
|
114
|
+
"postcss": "^8.5.6",
|
|
115
|
+
"rollup-plugin-node-externals": "^8.0.1",
|
|
114
116
|
"tailwind-merge": "^3.3.1",
|
|
115
117
|
"tailwindcss": "^3.4.17",
|
|
116
118
|
"typescript": "^5.8.3",
|
|
117
119
|
"vite": "^6.3.5",
|
|
118
120
|
"vite-plugin-dts": "^3.9.1",
|
|
119
121
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
120
|
-
"@mastra/core": "0.
|
|
122
|
+
"@mastra/core": "0.10.15"
|
|
121
123
|
},
|
|
122
124
|
"scripts": {
|
|
123
125
|
"dev": "vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors-CBG_Mm7P.js","sources":["../src/ds/tokens/colors.ts"],"sourcesContent":["export const Colors = {\n surface1: '#000000',\n surface2: '#0F0F0F',\n surface3: '#141414',\n surface4: '#1A1A1A',\n surface5: 'rgba(46, 46, 46, 0.9)',\n accent1: '#1AFB6F',\n accent2: '#FF4931',\n accent3: '#267AD2',\n accent4: '#9E57B3',\n};\n\nexport const BorderColors = {\n border1: 'rgba(48, 48, 48, 1)',\n border2: 'rgba(66, 66, 66, 1)',\n};\n\nexport const IconColors = {\n icon1: '#5C5C5C',\n icon2: '#707070',\n icon3: '#939393',\n icon4: '#A9A9A9',\n icon5: '#E6E6E6',\n icon6: '#FFFFFF',\n};\n"],"names":[],"mappings":"AAAO,MAAM,MAAA,GAAS;AAAA,EACpB,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,uBAAA;AAAA,EACV,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS;AACX;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,OAAA,EAAS,qBAAA;AAAA,EACT,OAAA,EAAS;AACX;AAEO,MAAM,UAAA,GAAa;AAAA,EACxB,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO;AACT;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors-Du4i-E0i.cjs","sources":["../src/ds/tokens/colors.ts"],"sourcesContent":["export const Colors = {\n surface1: '#000000',\n surface2: '#0F0F0F',\n surface3: '#141414',\n surface4: '#1A1A1A',\n surface5: 'rgba(46, 46, 46, 0.9)',\n accent1: '#1AFB6F',\n accent2: '#FF4931',\n accent3: '#267AD2',\n accent4: '#9E57B3',\n};\n\nexport const BorderColors = {\n border1: 'rgba(48, 48, 48, 1)',\n border2: 'rgba(66, 66, 66, 1)',\n};\n\nexport const IconColors = {\n icon1: '#5C5C5C',\n icon2: '#707070',\n icon3: '#939393',\n icon4: '#A9A9A9',\n icon5: '#E6E6E6',\n icon6: '#FFFFFF',\n};\n"],"names":[],"mappings":";;AAAO,MAAM,MAAA,GAAS;AAAA,EACpB,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,uBAAA;AAAA,EACV,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS;AACX;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,OAAA,EAAS,qBAAA;AAAA,EACT,OAAA,EAAS;AACX;AAEO,MAAM,UAAA,GAAa;AAAA,EACxB,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO,SAAA;AAAA,EACP,KAAA,EAAO;AACT;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from '../../../../../node_modules/@types/react';
|
|
2
|
-
import { ModelSettings } from '../../../../types';
|
|
3
|
-
import { GetAgentResponse } from '@mastra/client-js';
|
|
4
|
-
|
|
5
|
-
type AgentContextType = {
|
|
6
|
-
modelSettings: ModelSettings;
|
|
7
|
-
chatWithGenerate: boolean;
|
|
8
|
-
setModelSettings: (modelSettings: ModelSettings) => void;
|
|
9
|
-
resetModelSettings: () => void;
|
|
10
|
-
setChatWithGenerate: (chatWithGenerate: boolean) => void;
|
|
11
|
-
};
|
|
12
|
-
export declare const AgentContext: import('../../../../../node_modules/@types/react').Context<AgentContextType>;
|
|
13
|
-
export declare function AgentProvider({ agentId, defaultGenerateOptions, defaultStreamOptions, children, }: {
|
|
14
|
-
agentId: string;
|
|
15
|
-
defaultGenerateOptions?: GetAgentResponse['defaultGenerateOptions'];
|
|
16
|
-
defaultStreamOptions?: GetAgentResponse['defaultStreamOptions'];
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ModelSettings } from '../types';
|
|
2
|
-
|
|
3
|
-
interface AgentStore {
|
|
4
|
-
modelSettings: Record<string, ModelSettings | null>;
|
|
5
|
-
setModelSettings: (modelSettings: Record<string, ModelSettings | null>) => void;
|
|
6
|
-
chatWithGenerate: Record<string, boolean>;
|
|
7
|
-
setChatWithGenerate: (chatWithGenerate: Record<string, boolean>) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const useAgentStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<AgentStore>, "persist"> & {
|
|
10
|
-
persist: {
|
|
11
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<AgentStore, AgentStore>>) => void;
|
|
12
|
-
clearStorage: () => void;
|
|
13
|
-
rehydrate: () => Promise<void> | void;
|
|
14
|
-
hasHydrated: () => boolean;
|
|
15
|
-
onHydrate: (fn: (state: AgentStore) => void) => () => void;
|
|
16
|
-
onFinishHydration: (fn: (state: AgentStore) => void) => () => void;
|
|
17
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<AgentStore, AgentStore>>;
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
export {};
|
/package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|