@mastra/react 0.0.0-error-handler-fix-20251020202607 → 0.0.0-execa-dynamic-import-20260304221256

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 (110) hide show
  1. package/CHANGELOG.md +1172 -3
  2. package/LICENSE.md +15 -0
  3. package/dist/agent/hooks.d.ts +66 -0
  4. package/dist/agent/hooks.d.ts.map +1 -0
  5. package/dist/{src/agent → agent}/types.d.ts +2 -0
  6. package/dist/agent/types.d.ts.map +1 -0
  7. package/dist/index.cjs +1515 -293
  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 +1506 -286
  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/lib/ai-sdk/memory/resolveInitialMessages.d.ts +13 -0
  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/lib/ai-sdk/types.d.ts +116 -0
  22. package/dist/lib/ai-sdk/types.d.ts.map +1 -0
  23. package/dist/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +11 -0
  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/lib/use-mutation.d.ts +28 -0
  30. package/dist/lib/use-mutation.d.ts.map +1 -0
  31. package/dist/mastra-client-context.d.ts +14 -0
  32. package/dist/mastra-client-context.d.ts.map +1 -0
  33. package/dist/mastra-react-provider.d.ts +5 -0
  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/workflows/hooks.d.ts +34 -0
  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/workflows/types.d.ts +122 -0
  85. package/dist/workflows/types.d.ts.map +1 -0
  86. package/dist/workflows/use-stream-workflow.d.ts +39 -0
  87. package/dist/workflows/use-stream-workflow.d.ts.map +1 -0
  88. package/package.json +34 -23
  89. package/dist/src/agent/hooks.d.ts +0 -46
  90. package/dist/src/index.d.ts +0 -6
  91. package/dist/src/lib/ai-sdk/index.d.ts +0 -3
  92. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.d.ts +0 -2
  93. package/dist/src/lib/ai-sdk/transformers/types.d.ts +0 -10
  94. package/dist/src/lib/ai-sdk/types.d.ts +0 -14
  95. package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.test.d.ts +0 -1
  96. package/dist/src/mastra-client-context.d.ts +0 -10
  97. package/dist/src/mastra-react-provider.d.ts +0 -4
  98. package/dist/src/ui/Code/highlight.d.ts +0 -3
  99. package/dist/src/ui/Code/index.d.ts +0 -1
  100. package/dist/src/ui/Entity/Entity.stories.d.ts +0 -22
  101. package/dist/src/ui/Entity/index.d.ts +0 -4
  102. package/dist/src/ui/Icon/index.d.ts +0 -1
  103. package/dist/src/ui/IconButton/IconButton.stories.d.ts +0 -12
  104. package/dist/src/ui/IconButton/index.d.ts +0 -1
  105. package/dist/src/ui/Icons/index.d.ts +0 -3
  106. package/dist/src/ui/Message/Message.stories.d.ts +0 -13
  107. package/dist/src/ui/Message/index.d.ts +0 -1
  108. package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +0 -12
  109. package/dist/src/ui/Tooltip/index.d.ts +0 -1
  110. package/dist/src/ui/index.d.ts +0 -7
@@ -1,4 +1,4 @@
1
- import { BundledLanguage } from 'shiki/bundle/web';
1
+ import type { BundledLanguage } from 'shiki/bundle/web';
2
2
  export interface CodeBlockProps {
3
3
  code: string;
4
4
  language: BundledLanguage;
@@ -11,3 +11,4 @@ export interface CodeCopyButtonProps {
11
11
  code: string;
12
12
  }
13
13
  export declare const CodeCopyButton: ({ code }: CodeCopyButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=Code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/Code.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,cAAc,0IAC8G,CAAC;AAE1I,eAAO,MAAM,SAAS,GAAI,oCAAoC,cAAc,4CAa3E,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,mBAAmB,4CAe3D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { JSX } from 'react';
2
+ import type { BundledLanguage } from 'shiki/bundle/web';
3
+ export declare function highlight(code: string, lang: BundledLanguage): Promise<JSX.Element>;
4
+ //# sourceMappingURL=highlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/highlight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,wBAWlE"}
@@ -0,0 +1,2 @@
1
+ export * from './Code.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Code/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { EntityVariant } from './types';
1
+ import type { EntityVariant } from './types.js';
2
2
  export interface EntityProps extends React.ComponentPropsWithoutRef<'div'> {
3
3
  variant?: EntityVariant;
4
4
  initialExpanded?: boolean;
@@ -11,3 +11,4 @@ export declare const EntityTrigger: ({ className, children, ...props }: React.Co
11
11
  export declare const EntityContentClass: string;
12
12
  export declare const EntityContent: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element | null;
13
13
  export declare const EntityCaret: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=Entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/Entity.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,GAAI,6DAMpB,WAAW,4CAQb,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAM9B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAMrE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,mCAAmC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,4CAoBxG,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAI9B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,mDAM3F,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAejF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import type { ElementType } from 'react';
2
2
  export declare const EntryClass = "mastra:space-y-2";
3
3
  export declare const Entry: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
4
4
  type EntryTitleProps = React.ComponentPropsWithoutRef<'div'> & {
@@ -7,3 +7,4 @@ type EntryTitleProps = React.ComponentPropsWithoutRef<'div'> & {
7
7
  export declare const EntryTitleClass = "mastra:font-mono mastra:text-sm mastra:text-text3";
8
8
  export declare const EntryTitle: ({ className, as: Root, ...props }: EntryTitleProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
10
+ //# sourceMappingURL=Entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Entry.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/Entry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAC7C,eAAO,MAAM,KAAK,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEnF,CAAC;AAEF,KAAK,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,eAAe,sDAAsD,CAAC;AACnF,eAAO,MAAM,UAAU,GAAI,mCAA0C,eAAe,4CAEnF,CAAC"}
@@ -8,3 +8,4 @@ export declare const ToolApprovalContentClass: string;
8
8
  export declare const ToolApprovalContent: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const ToolApprovalActionsClass: string;
10
10
  export declare const ToolApprovalActions: ({ className, ...props }: React.ComponentPropsWithoutRef<"div">) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=ToolApproval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolApproval.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/ToolApproval.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAG7B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAE1F,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAmF,CAAC;AACvH,eAAO,MAAM,iBAAiB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAE/F,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAGnC,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEhG,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAA0C,CAAC;AAChF,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEjG,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAA0D,CAAC;AAChG,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,4CAEjG,CAAC"}
@@ -1,10 +1,11 @@
1
- import { EntityVariant } from './types';
1
+ import type { EntityVariant } from './types.js';
2
2
  export type EntityContextType = {
3
3
  expanded: boolean;
4
4
  setExpanded: (expanded: boolean) => void;
5
5
  variant: EntityVariant;
6
6
  disabled: boolean;
7
7
  };
8
- export declare const EntityContext: import('react').Context<EntityContextType>;
9
- export declare const EntityProvider: import('react').Provider<EntityContextType>;
8
+ export declare const EntityContext: import("react").Context<EntityContextType>;
9
+ export declare const EntityProvider: import("react").Provider<EntityContextType>;
10
10
  export declare const useEntity: () => EntityContextType;
11
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa,4CAKxB,CAAC;AAEH,eAAO,MAAM,cAAc,6CAAyB,CAAC;AAErD,eAAO,MAAM,SAAS,yBAAkC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './Entity.js';
2
+ export { useEntity } from './context.js';
3
+ export * from './ToolApproval.js';
4
+ export * from './Entry.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
@@ -1 +1,2 @@
1
1
  export type EntityVariant = 'initial' | 'agent' | 'workflow' | 'tool' | 'memory';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/ui/Entity/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export interface IconProps extends React.ComponentPropsWithoutRef<'div'> {
3
3
  children: React.ReactNode;
4
4
  size?: 'sm' | 'md' | 'lg';
@@ -9,3 +9,4 @@ export declare const IconSizes: {
9
9
  lg: string;
10
10
  };
11
11
  export declare const Icon: ({ children, className, size, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACtE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,SAAS;;;;CAIrB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,yCAAgD,SAAS,4CAM7E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Icon.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IconProps } from '../Icon/Icon';
1
+ import type { IconProps } from '../Icon/Icon.js';
2
2
  export interface IconButtonProps extends React.ComponentPropsWithoutRef<'button'> {
3
3
  children: React.ReactNode;
4
4
  tooltip: React.ReactNode;
@@ -6,3 +6,4 @@ export interface IconButtonProps extends React.ComponentPropsWithoutRef<'button'
6
6
  }
7
7
  export declare const IconButtonClass = "mastra:text-text3 mastra:hover:text-text6 mastra:active:text-text6 mastra:hover:bg-surface4 mastra:active:bg-surface5 mastra:rounded-md mastra:cursor-pointer";
8
8
  export declare const IconButton: ({ children, tooltip, size, className, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=IconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IAC/E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,kKACqI,CAAC;AAElK,eAAO,MAAM,UAAU,GAAI,kDAAyD,eAAe,4CAiBlG,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './IconButton.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,2 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export declare const AgentIcon: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=AgentIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/AgentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,SAAS,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAqB/E,CAAC"}
@@ -1,2 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export declare const ToolsIcon: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=ToolsIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolsIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/ToolsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,SAAS,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAiB/E,CAAC"}
@@ -1,2 +1,3 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  export declare const WorkflowIcon: ({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=WorkflowIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowIcon.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/WorkflowIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,YAAY,GAAI,yBAAyB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAiBlF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './AgentIcon.js';
2
+ export * from './ToolsIcon.js';
3
+ export * from './WorkflowIcon.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  export interface MessageProps extends HTMLAttributes<HTMLDivElement> {
3
3
  position: 'left' | 'right';
4
4
  }
@@ -23,3 +23,4 @@ export declare const MessageListClass = "mastra:overflow-y-auto mastra:h-full ma
23
23
  export declare const MessageList: ({ children, className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
24
24
  export declare const MessageStreamingClass = "mastra:inline-block mastra:w-[2px] mastra:h-[1em] mastra:bg-text5 mastra:ml-0.5 mastra:align-text-bottom mastra:animate-pulse";
25
25
  export declare const MessageStreaming: ({ className, ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=Message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/ui/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,oFAAoF,CAAC;AAC9G,eAAO,MAAM,OAAO,GAAI,6CAA6C,YAAY,4CAiBhF,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACzE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,eAAO,MAAM,mBAAmB,2GAC0E,CAAC;AAC3G,eAAO,MAAM,cAAc,GAAI,gDAAgD,mBAAmB,4CAOjG,CAAC;AAEF,eAAO,MAAM,mBAAmB,uIACsG,CAAC;AACvI,eAAO,MAAM,cAAc,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAM/F,CAAC;AAEF,eAAO,MAAM,kBAAkB,iDAAiD,CAAC;AACjF,eAAO,MAAM,aAAa,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAM9F,CAAC;AAEF,eAAO,MAAM,iBAAiB,8IAC+G,CAAC;AAC9I,eAAO,MAAM,YAAY,GAAI,mCAAmC,cAAc,CAAC,gBAAgB,CAAC,4CAM/F,CAAC;AAEF,eAAO,MAAM,sBAAsB,kFAAkF,CAAC;AACtH,eAAO,MAAM,iBAAiB,GAAI,mCAAmC,cAAc,CAAC,eAAe,CAAC,4CAMnG,CAAC;AAEF,eAAO,MAAM,sBAAsB,qCAAqC,CAAC;AACzE,eAAO,MAAM,iBAAiB,GAAI,mCAAmC,cAAc,CAAC,eAAe,CAAC,4CAMnG,CAAC;AAEF,eAAO,MAAM,gBAAgB,qDAAqD,CAAC;AAEnF,eAAO,MAAM,WAAW,GAAI,mCAAmC,cAAc,CAAC,cAAc,CAAC,4CAkB5F,CAAC;AAEF,eAAO,MAAM,qBAAqB,kIAC+F,CAAC;AAElI,eAAO,MAAM,gBAAgB,GAAI,yBAAyB,cAAc,CAAC,eAAe,CAAC,4CAExF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Message.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Message/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import { TooltipTriggerProps, TooltipContentProps } from '@radix-ui/react-tooltip';
1
+ import type { TooltipTriggerProps, TooltipContentProps } from '@radix-ui/react-tooltip';
2
2
  export interface TooltipProps extends React.ComponentPropsWithoutRef<'div'> {
3
3
  children: React.ReactNode;
4
4
  }
@@ -6,3 +6,4 @@ export declare const Tooltip: ({ children }: TooltipProps) => import("react/jsx-
6
6
  export declare const TooltipContentClass = "mastra:bg-surface4 mastra:text-text6 mastra mastra:rounded-lg mastra:py-1 mastra:px-2 mastra:text-xs mastra:border mastra:border-border1 mastra-tooltip-enter";
7
7
  export declare const TooltipContent: ({ children, className, ...props }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const TooltipTrigger: (props: TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/ui/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AASxF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACzE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,4CAMjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,kKACiI,CAAC;AAClK,eAAO,MAAM,cAAc,GAAI,mCAAmC,mBAAmB,4CAQpF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAExD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Tooltip.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './Entity/index.js';
2
+ export * from './Code/index.js';
3
+ export * from './Icon/index.js';
4
+ export * from './IconButton/index.js';
5
+ export * from './Icons/index.js';
6
+ export * from './Tooltip/index.js';
7
+ export * from './Message/index.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { CreateWorkflowRunParams, CreateWorkflowRunResult, CancelWorkflowRunParams, CancelWorkflowRunResult } from './types.js';
2
+ export { useStreamWorkflow } from './use-stream-workflow.js';
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>;
34
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/workflows/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,yGAanC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,yGAanC"}
@@ -0,0 +1,3 @@
1
+ export * from './hooks.js';
2
+ export * from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,122 @@
1
+ import type { TimeTravelParams } from '@mastra/client-js';
2
+ import type { TracingOptions } from '@mastra/core/observability';
3
+ import type { 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
+ }
122
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,39 @@
1
+ import type { UseStreamWorkflowParams, WorkflowStreamResult, StreamWorkflowParams, ObserveWorkflowStreamParams, ResumeWorkflowStreamParams, TimeTravelWorkflowStreamParams } from './types.js';
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
+ };
39
+ //# sourceMappingURL=use-stream-workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-stream-workflow.d.ts","sourceRoot":"","sources":["../../src/workflows/use-stream-workflow.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,uBAAuB;;;;;;;;EA8ZhG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/react",
3
- "version": "0.0.0-error-handler-fix-20251020202607",
3
+ "version": "0.0.0-execa-dynamic-import-20260304221256",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mastra-ai/mastra.git",
@@ -33,51 +33,62 @@
33
33
  "CHANGELOG.md"
34
34
  ],
35
35
  "dependencies": {
36
+ "@lukeed/uuid": "^2.0.1",
36
37
  "@radix-ui/react-tooltip": "^1.2.7",
37
38
  "hast-util-to-jsx-runtime": "^2.3.6",
38
39
  "lucide-react": "^0.522.0",
39
40
  "shiki": "^1.29.2",
40
- "tailwind-merge": "^3.3.1",
41
- "@mastra/client-js": "0.0.0-error-handler-fix-20251020202607"
41
+ "tailwind-merge": "^3.4.1",
42
+ "@mastra/client-js": "0.0.0-execa-dynamic-import-20260304221256"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "react": ">=19.0.0",
45
- "react-dom": ">=19.0.0"
46
+ "react-dom": ">=19.0.0",
47
+ "zod": "^3.25.0 || ^4.0.0",
48
+ "@mastra/core": "0.0.0-execa-dynamic-import-20260304221256"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@ai-sdk/react": "^2.0.57",
49
- "@assistant-ui/react": "^0.10.45",
50
- "@storybook/react-vite": "^9.1.10",
51
- "@tailwindcss/vite": "^4.1.13",
52
+ "@assistant-ui/react": "^0.12.10",
53
+ "@storybook/react-vite": "^9.1.16",
54
+ "@tailwindcss/cli": "^4",
55
+ "@tailwindcss/vite": "^4.1.17",
52
56
  "@types/react": "^19.1.13",
53
57
  "@types/react-dom": "^19.1.9",
54
- "@vitejs/plugin-react": "^5.0.4",
55
- "@vitest/ui": "^3.2.4",
58
+ "@vitejs/plugin-react": "^5.1.4",
59
+ "@vitest/coverage-v8": "4.0.18",
60
+ "@vitest/ui": "4.0.18",
56
61
  "eslint": "^9.37.0",
57
- "eslint-plugin-storybook": "^9.1.12",
58
- "rollup-plugin-node-externals": "^8.0.1",
59
- "storybook": "^9.1.10",
60
- "tailwindcss": "^4",
61
- "typescript": "^5.8.3",
62
- "vite": "^7.1.9",
63
- "vite-plugin-dts": "^4.5.4",
64
- "vitest": "^3.2.4",
62
+ "eslint-plugin-storybook": "^10.1.11",
65
63
  "react": ">=19.0.0",
66
64
  "react-dom": ">=19.0.0",
67
- "@mastra/core": "0.0.0-error-handler-fix-20251020202607"
65
+ "storybook": "^9.1.10",
66
+ "tailwindcss": "^4",
67
+ "tsup": "^8.5.1",
68
+ "typescript": "^5.9.3",
69
+ "vite": "^7.3.1",
70
+ "vitest": "4.0.18",
71
+ "zod": "^3.25.0",
72
+ "@internal/types-builder": "0.0.0-execa-dynamic-import-20260304221256",
73
+ "@internal/lint": "0.0.0-execa-dynamic-import-20260304221256",
74
+ "@mastra/core": "0.0.0-execa-dynamic-import-20260304221256"
68
75
  },
69
76
  "eslintConfig": {
70
77
  "extends": [
71
78
  "plugin:storybook/recommended"
72
79
  ]
73
80
  },
81
+ "engines": {
82
+ "node": ">=22.13.0"
83
+ },
74
84
  "scripts": {
75
- "build": "vite build",
76
- "dev": "vite build --watch",
85
+ "lint": "eslint .",
86
+ "build": "echo 'Use turbo to run build'",
87
+ "build:js": "tsup --config tsup.config.ts",
88
+ "build:css": "tailwindcss -i src/ui/index.css -o dist/react.css",
89
+ "dev": "tsup --config tsup.config.ts --watch",
77
90
  "test": "vitest",
78
- "test:watch": "vitest --watch",
79
- "test:ui": "vitest --ui",
80
- "test:coverage": "vitest --coverage",
91
+ "test:unit": "vitest run",
81
92
  "storybook": "storybook dev -p 6006",
82
93
  "build-storybook": "storybook build"
83
94
  }