mtxuilib 0.1.989 → 0.6.2

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 (124) hide show
  1. package/dist/components/SlntTree/SlntTreeNode.d.ts +2 -2
  2. package/dist/components/schema-form/schema-form.z.d.ts +6 -6
  3. package/dist/data-table/data-table-toolbar.d.ts +2 -1
  4. package/dist/data-table/data-table.d.ts +4 -4
  5. package/dist/layouts/dash5/dash5.store.d.ts +2 -2
  6. package/dist/lib/react.d.ts +1 -1
  7. package/dist/lib/render.d.ts +1 -1
  8. package/dist/mt/IconButton.d.ts +1 -1
  9. package/dist/mt/MtSlider.js +1 -1
  10. package/dist/mt/confirm-dialog.d.ts +1 -1
  11. package/dist/routes/agent/index.js +1 -17
  12. package/dist/ui/command.d.ts +3 -3
  13. package/dist/ui/resizable.d.ts +1 -1
  14. package/dist/ui/tooltip.d.ts +1 -1
  15. package/dist/zod/common.z.d.ts +4 -4
  16. package/dist/zod/meta.d.ts +2 -2
  17. package/package.json +24 -4
  18. package/src/cli/build_tsc.ts +2 -1
  19. package/src/cli/main.ts +3 -1
  20. package/src/data-table/data-table-toolbar.tsx +2 -3
  21. package/src/data-table/data-table.tsx +4 -4
  22. package/src/icons/icons.tsx +495 -495
  23. package/src/lib/logger/pushToLoki.ts +5 -5
  24. package/src/lib/react.ts +6 -9
  25. package/src/lib/render.tsx +28 -31
  26. package/src/mt/IconButton.tsx +1 -1
  27. package/src/mt/MtSlider.tsx +7 -3
  28. package/src/mt/Slider.tsx +1 -1
  29. package/src/mt/confirm-dialog.tsx +1 -1
  30. package/src/routes/agent/{blogGraph.ts → blogGraph.ts--} +2 -1
  31. package/src/routes/agent/index.ts +16 -19
  32. package/src/ui/tooltip.tsx +1 -1
  33. package/src/workflows/hello-tooluse.ts +1 -1
  34. package/dist/agents/agentctx/agentctx.d.ts +0 -6
  35. package/dist/agents/agentctx/agentctx.js +0 -12
  36. package/dist/agents/agentctx/index.d.ts +0 -6
  37. package/dist/agents/agentctx/index.js +0 -1
  38. package/dist/agents/assisant.d.ts +0 -137
  39. package/dist/agents/assisant.js +0 -152
  40. package/dist/agents/runnable_config.d.ts +0 -7
  41. package/dist/agents/runnable_config.js +0 -4
  42. package/dist/agents/simulationGraph.d.ts +0 -12
  43. package/dist/agents/simulationGraph.js +0 -70
  44. package/dist/agents/testagent.d.ts +0 -7
  45. package/dist/agents/testagent.js +0 -23
  46. package/dist/agentutils/agentutils.d.ts +0 -1
  47. package/dist/agentutils/agentutils.js +0 -6
  48. package/dist/browser/browser.d.ts +0 -5
  49. package/dist/browser/browser.js +0 -62
  50. package/dist/browser/puppeteer-fetcher.d.ts +0 -3
  51. package/dist/browser/puppeteer-fetcher.js +0 -33
  52. package/dist/fetchers.d.ts +0 -6
  53. package/dist/fetchers.js +0 -11
  54. package/dist/lib/exec.d.ts +0 -7
  55. package/dist/lib/exec.js +0 -43
  56. package/dist/llm/llm.d.ts +0 -10
  57. package/dist/llm/llm.js +0 -134
  58. package/dist/mt/index.d.ts +0 -14
  59. package/dist/mt/index.js +0 -14
  60. package/dist/routes/agent/blogGraph.d.ts +0 -1692
  61. package/dist/routes/agent/blogGraph.js +0 -7
  62. package/dist/routes/agent/demo/react.d.ts +0 -13
  63. package/dist/routes/agent/demo/react.js +0 -69
  64. package/src/agents/agentUtils.ts +0 -235
  65. package/src/agents/agentctx/agentctx.ts +0 -17
  66. package/src/agents/agentctx/index.ts +0 -7
  67. package/src/agents/artible_gen_graph.ts +0 -89
  68. package/src/agents/assisant.ts +0 -265
  69. package/src/agents/assistant-ui-stockbroker/index.ts +0 -262
  70. package/src/agents/assistant-ui-stockbroker/tools.ts +0 -299
  71. package/src/agents/assistant-ui-stockbroker/types.ts +0 -149
  72. package/src/agents/blog_graph/blog_graph.ts +0 -112
  73. package/src/agents/graph_utils.ts +0 -416
  74. package/src/agents/mtmaiAgent/mtmaiAgent.ts-- +0 -67
  75. package/src/agents/open-canvas/index.ts +0 -116
  76. package/src/agents/open-canvas/nodes/customAction.ts +0 -138
  77. package/src/agents/open-canvas/nodes/generate-artifact/index.ts +0 -63
  78. package/src/agents/open-canvas/nodes/generate-artifact/schemas.ts +0 -33
  79. package/src/agents/open-canvas/nodes/generate-artifact/utils.ts +0 -39
  80. package/src/agents/open-canvas/nodes/generateArtifact.ts +0 -87
  81. package/src/agents/open-canvas/nodes/generateFollowup.ts +0 -71
  82. package/src/agents/open-canvas/nodes/generatePath.ts +0 -117
  83. package/src/agents/open-canvas/nodes/generateTitle.ts +0 -44
  84. package/src/agents/open-canvas/nodes/reflect.ts +0 -56
  85. package/src/agents/open-canvas/nodes/replyToGeneralInput.ts +0 -72
  86. package/src/agents/open-canvas/nodes/respondToQuery.ts +0 -63
  87. package/src/agents/open-canvas/nodes/rewrite-artifact/index.ts +0 -68
  88. package/src/agents/open-canvas/nodes/rewrite-artifact/schemas.ts +0 -22
  89. package/src/agents/open-canvas/nodes/rewrite-artifact/update-meta.ts +0 -53
  90. package/src/agents/open-canvas/nodes/rewrite-artifact/utils.ts +0 -110
  91. package/src/agents/open-canvas/nodes/rewriteArtifact.ts +0 -60
  92. package/src/agents/open-canvas/nodes/rewriteArtifactTheme.ts +0 -132
  93. package/src/agents/open-canvas/nodes/rewriteCodeArtifactTheme.ts +0 -104
  94. package/src/agents/open-canvas/nodes/updateArtifact.ts +0 -137
  95. package/src/agents/open-canvas/nodes/updateHighlightedText.ts +0 -133
  96. package/src/agents/open-canvas/prompts.ts +0 -394
  97. package/src/agents/open-canvas/state.ts +0 -72
  98. package/src/agents/open-canvas/utils.ts +0 -46
  99. package/src/agents/postiz/agent.categories.ts +0 -32
  100. package/src/agents/postiz/agent.graph.insert.service.ts +0 -135
  101. package/src/agents/postiz/agent.graph.service.ts +0 -420
  102. package/src/agents/postiz/agent.topics.ts +0 -82
  103. package/src/agents/reflection/index.ts +0 -107
  104. package/src/agents/reflection/prompts.ts +0 -40
  105. package/src/agents/reflection/state.ts +0 -17
  106. package/src/agents/runnable_config.ts +0 -4
  107. package/src/agents/simulationGraph.ts +0 -104
  108. package/src/agents/testagent.ts +0 -33
  109. package/src/agents/thread-title/index.ts +0 -101
  110. package/src/agents/thread-title/prompts.ts +0 -17
  111. package/src/agents/thread-title/state.ts +0 -17
  112. package/src/agents/utils.ts +0 -239
  113. package/src/agentutils/agentutils.ts +0 -14
  114. package/src/browser/browser.svc.ts +0 -62
  115. package/src/browser/browser.ts +0 -154
  116. package/src/browser/browserOpenType.ts +0 -4
  117. package/src/browser/examplePlugin.ts +0 -38
  118. package/src/browser/examples/withJquery.ts +0 -36
  119. package/src/browser/puppeteer-extra-init.ts +0 -38
  120. package/src/browser/puppeteer-fetcher.ts +0 -49
  121. package/src/browser/urlScreenHandler.ts +0 -60
  122. package/src/db/migrate-v1.ts-- +0 -29
  123. package/src/fetchers.ts +0 -14
  124. package/src/mt/index.ts +0 -28
@@ -6,8 +6,8 @@ export type SLNTProps = {
6
6
  export interface SlntState extends SLNTProps {
7
7
  }
8
8
  export declare const slntContext: import("react").Context<Omit<import("zustand").StoreApi<SlntState>, "setState"> & {
9
- setState(nextStateOrUpdater: SlntState | Partial<SlntState> | ((state: import("immer").WritableDraft<SlntState>) => void), shouldReplace?: false): void;
10
- setState(nextStateOrUpdater: SlntState | ((state: import("immer").WritableDraft<SlntState>) => void), shouldReplace: true): void;
9
+ setState(nextStateOrUpdater: SlntState | Partial<SlntState> | ((state: Draft<Exclude<A2[0], (...args: any[]) => any>>) => void), shouldReplace?: false): void;
10
+ setState(nextStateOrUpdater: SlntState | ((state: Draft<Exclude<A2[0], (...args: any[]) => any>>) => void), shouldReplace: true): void;
11
11
  }>;
12
12
  type ModalProviderProps = React.PropsWithChildren<SLNTProps>;
13
13
  export declare const MenuTreeProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,16 +10,16 @@ export declare const schemaField: z.ZodObject<{
10
10
  description: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  name?: string;
13
- type?: string;
14
13
  description?: string;
14
+ type?: string;
15
15
  defaultValue?: any;
16
16
  label?: string;
17
17
  placeholder?: string;
18
18
  valueType?: "string" | "number" | "date" | "email";
19
19
  }, {
20
20
  name?: string;
21
- type?: string;
22
21
  description?: string;
22
+ type?: string;
23
23
  defaultValue?: any;
24
24
  label?: string;
25
25
  placeholder?: string;
@@ -39,16 +39,16 @@ export declare const schemaFormSchema: z.ZodObject<{
39
39
  description: z.ZodOptional<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  name?: string;
42
- type?: string;
43
42
  description?: string;
43
+ type?: string;
44
44
  defaultValue?: any;
45
45
  label?: string;
46
46
  placeholder?: string;
47
47
  valueType?: "string" | "number" | "date" | "email";
48
48
  }, {
49
49
  name?: string;
50
- type?: string;
51
50
  description?: string;
51
+ type?: string;
52
52
  defaultValue?: any;
53
53
  label?: string;
54
54
  placeholder?: string;
@@ -62,8 +62,8 @@ export declare const schemaFormSchema: z.ZodObject<{
62
62
  action?: string;
63
63
  fields?: {
64
64
  name?: string;
65
- type?: string;
66
65
  description?: string;
66
+ type?: string;
67
67
  defaultValue?: any;
68
68
  label?: string;
69
69
  placeholder?: string;
@@ -77,8 +77,8 @@ export declare const schemaFormSchema: z.ZodObject<{
77
77
  action?: string;
78
78
  fields?: {
79
79
  name?: string;
80
- type?: string;
81
80
  description?: string;
81
+ type?: string;
82
82
  defaultValue?: any;
83
83
  label?: string;
84
84
  placeholder?: string;
@@ -1,4 +1,5 @@
1
1
  import type { Table } from "@tanstack/react-table";
2
+ import type React from "react";
2
3
  export interface FilterOption {
3
4
  label: string;
4
5
  value: string;
@@ -21,7 +22,7 @@ export type ToolbarFilters = {
21
22
  interface DataTableToolbarProps<TData> {
22
23
  table: Table<TData>;
23
24
  filters: ToolbarFilters;
24
- actions: JSX.Element[];
25
+ actions: React.ReactNode[];
25
26
  setSearch?: (search: string) => void;
26
27
  search?: string;
27
28
  showColumnToggle?: boolean;
@@ -5,7 +5,7 @@ export interface IDGetter {
5
5
  metadata: {
6
6
  id: string;
7
7
  };
8
- getRow?: () => JSX.Element;
8
+ getRow?: () => React.ReactNode;
9
9
  onClick?: () => void;
10
10
  isExpandable?: boolean;
11
11
  }
@@ -14,7 +14,7 @@ interface DataTableProps<TData extends IDGetter, TValue> {
14
14
  data: TData[];
15
15
  error?: Error | null;
16
16
  filters: ToolbarFilters;
17
- actions?: JSX.Element[];
17
+ actions?: React.ReactNode[];
18
18
  sorting?: SortingState;
19
19
  setSorting?: OnChangeFn<SortingState>;
20
20
  setSearch?: (search: string) => void;
@@ -37,10 +37,10 @@ interface DataTableProps<TData extends IDGetter, TValue> {
37
37
  manualFiltering?: boolean;
38
38
  }
39
39
  interface ExtraDataTableProps {
40
- emptyState?: JSX.Element;
40
+ emptyState?: React.ReactNode;
41
41
  card?: {
42
42
  containerStyle?: string;
43
- component: React.FC<any> | ((data: any) => JSX.Element);
43
+ component: React.FC<any> | ((data: any) => React.ReactNode);
44
44
  };
45
45
  }
46
46
  export declare function DataTable<TData extends IDGetter, TValue>({ columns, error, data, filters, actions, sorting, setSorting, setSearch, search, columnFilters, setColumnFilters, pagination, setPagination, pageCount, onSetPageSize, showColumnToggle, columnVisibility, setColumnVisibility, rowSelection, setRowSelection, isLoading, getRowId, emptyState, card, manualSorting, manualFiltering, }: DataTableProps<TData, TValue> & ExtraDataTableProps): import("react/jsx-runtime").JSX.Element;
@@ -57,13 +57,13 @@ export declare const gomtmContext: import("react").Context<Omit<Omit<Omit<import
57
57
  type: string;
58
58
  }): void;
59
59
  }, "setState"> & {
60
- setState(nextStateOrUpdater: Dash5LayoutState | Partial<Dash5LayoutState> | ((state: import("immer").WritableDraft<Dash5LayoutState>) => void), shouldReplace?: false, action?: string | {
60
+ setState(nextStateOrUpdater: Dash5LayoutState | Partial<Dash5LayoutState> | ((state: Draft<Exclude<A2[0], (...args: any[]) => any>>) => void), shouldReplace?: false, action?: string | {
61
61
  [x: string]: unknown;
62
62
  [x: number]: unknown;
63
63
  [x: symbol]: unknown;
64
64
  type: string;
65
65
  }): void;
66
- setState(nextStateOrUpdater: Dash5LayoutState | ((state: import("immer").WritableDraft<Dash5LayoutState>) => void), shouldReplace: true, action?: string | {
66
+ setState(nextStateOrUpdater: Dash5LayoutState | ((state: Draft<Exclude<A2[0], (...args: any[]) => any>>) => void), shouldReplace: true, action?: string | {
67
67
  [x: string]: unknown;
68
68
  [x: number]: unknown;
69
69
  [x: symbol]: unknown;
@@ -1,3 +1,3 @@
1
- export declare const genericMemo: <T extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>>(component: T, propsAreEqual?: (prevProps: React.ComponentProps<T>, nextProps: React.ComponentProps<T>) => boolean) => T & {
1
+ export declare const genericMemo: <T extends React.ComponentType<any>>(component: T, propsAreEqual?: (prevProps: React.ComponentProps<T>, nextProps: React.ComponentProps<T>) => boolean) => T & {
2
2
  displayName?: string;
3
3
  };
@@ -1,3 +1,3 @@
1
1
  export type Renderable<TProps = any> = React.ReactNode | React.ComponentType<TProps>;
2
- export declare function flexRender<TProps extends object>(Comp: Renderable<TProps>, props: TProps): React.ReactNode | JSX.Element;
2
+ export declare function flexRender<TProps extends object>(Comp: Renderable<TProps>, props: TProps): React.ReactNode | React.ReactElement;
3
3
  export declare function isReactComponent<TProps>(component: unknown): component is React.ComponentType<TProps>;
@@ -16,7 +16,7 @@ type IconButtonWithoutChildrenProps = {
16
16
  } & BaseIconButtonProps;
17
17
  type IconButtonWithChildrenProps = {
18
18
  icon?: undefined;
19
- children: string | JSX.Element | JSX.Element[];
19
+ children: React.ReactNode[];
20
20
  } & BaseIconButtonProps;
21
21
  type IconButtonProps = IconButtonWithoutChildrenProps | IconButtonWithChildrenProps;
22
22
  export declare const IconButton: React.MemoExoticComponent<({ icon, size, className, iconClassName, disabledClassName, disabled, title, onClick, children, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element>;
@@ -8,7 +8,7 @@ import { cubicEasingFn } from "./easings";
8
8
  export const MtSlider = genericMemo(({ selected, options, setSelected }) => {
9
9
  return (_jsx("div", { className: "flex items-center flex-wrap shrink-0 gap-1 bg-bolt-elements-background-depth-1 overflow-hidden rounded-full p-1", children: options.map((option) => (_jsx(SliderButton, { selected: selected === option.value, setSelected: () => setSelected?.(option.value), children: option.text }, String(option.value)))) }));
10
10
  });
11
- const SliderButton = memo(({ selected, children, setSelected }) => {
11
+ const SliderButton = memo(({ selected, children, setSelected, }) => {
12
12
  return (_jsxs("button", { type: "button", onClick: setSelected, className: classNames("bg-transparent text-sm px-2.5 py-0.5 rounded-full relative", selected
13
13
  ? "text-bolt-elements-item-contentAccent"
14
14
  : "text-bolt-elements-item-contentDefault hover:text-bolt-elements-item-contentActive"), children: [_jsx("span", { className: "relative z-10", children: children }), selected && (_jsx(motion.span, { layoutId: "pill-tab", transition: { duration: 0.2, ease: cubicEasingFn }, className: "absolute inset-0 z-0 bg-bolt-elements-item-backgroundAccent rounded-full" }))] }));
@@ -1,7 +1,7 @@
1
1
  import { type ButtonProps } from "../ui/button";
2
2
  interface ConfirmDialogProps {
3
3
  title: string;
4
- description: string | JSX.Element;
4
+ description: React.ReactNode;
5
5
  submitLabel: string;
6
6
  submitVariant?: ButtonProps["variant"];
7
7
  cancelLabel?: string;
@@ -1,13 +1,8 @@
1
1
  import { isAIMessageChunk } from "@langchain/core/messages";
2
2
  import { MemorySaver } from "@langchain/langgraph";
3
3
  import { Hono } from "hono";
4
- import { AgentCtx } from "../../agents/agentctx/agentctx";
5
- import { createAssistantGraph } from "../../agents/assisant";
6
- import { createSimulationGraph } from "../../agents/simulationGraph";
7
- import { TestAgent } from "../../agents/testagent";
8
4
  import { generateUUID } from "../../lib/s-utils";
9
5
  import { StreamingResponse, makeStream } from "../../lib/sse/sse";
10
- import { blogGraphRoute } from "./blogGraph";
11
6
  import { mtmaiAgentRoute } from "./mtmai";
12
7
  import { testAgentApp } from "./testagent";
13
8
  const checkpointer = new MemorySaver();
@@ -19,10 +14,7 @@ export const agentApp = new Hono()
19
14
  });
20
15
  })
21
16
  .all("/run", async (c) => handlerRunAgent(c.req.raw));
22
- agentApp
23
- .route("/testagent", testAgentApp)
24
- .route("/mtmai", mtmaiAgentRoute)
25
- .route("/blog", blogGraphRoute);
17
+ agentApp.route("/testagent", testAgentApp).route("/mtmai", mtmaiAgentRoute);
26
18
  export async function handlerRunAgent(req) {
27
19
  let input = {};
28
20
  if (req.method === "POST") {
@@ -85,18 +77,10 @@ export async function* makeRunableStreamEventLcRaw(input, config) {
85
77
  }
86
78
  async function getRunableByNodeName(name) {
87
79
  if (name === "simulationGraph") {
88
- const wf = createSimulationGraph();
89
- const graph = wf.compile({ checkpointer });
90
- return graph;
91
80
  }
92
81
  if (name === "assisant") {
93
- const wf = createAssistantGraph();
94
- const graph = wf.compile({ checkpointer });
95
- return graph;
96
82
  }
97
83
  if (name === "test") {
98
- const r = new TestAgent(new AgentCtx());
99
- return r.runnable();
100
84
  }
101
85
  throw new Error(`Graph ${name} not found`);
102
86
  }
@@ -24,7 +24,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
24
24
  ref?: React.Ref<HTMLInputElement>;
25
25
  } & {
26
26
  asChild?: boolean;
27
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "type" | "onChange"> & {
27
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
28
28
  value?: string;
29
29
  onValueChange?: (search: string) => void;
30
30
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -50,7 +50,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
50
50
  ref?: React.Ref<HTMLDivElement>;
51
51
  } & {
52
52
  asChild?: boolean;
53
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
53
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
54
54
  heading?: React.ReactNode;
55
55
  value?: string;
56
56
  forceMount?: boolean;
@@ -68,7 +68,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
68
68
  ref?: React.Ref<HTMLDivElement>;
69
69
  } & {
70
70
  asChild?: boolean;
71
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "onSelect" | "disabled"> & {
71
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
72
72
  disabled?: boolean;
73
73
  onSelect?: (value: string) => void;
74
74
  value?: string;
@@ -1,6 +1,6 @@
1
1
  import * as ResizablePrimitive from "react-resizable-panels";
2
2
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLTextAreaElement | HTMLTitleElement | HTMLButtonElement | HTMLDivElement | HTMLObjectElement | HTMLMapElement | HTMLDataElement | HTMLInputElement | HTMLSelectElement | HTMLLinkElement | HTMLStyleElement | HTMLSlotElement | HTMLImageElement | HTMLDialogElement | HTMLFormElement | HTMLOptionElement | HTMLTableElement | HTMLTimeElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLSpanElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement | HTMLAnchorElement | HTMLTextAreaElement | HTMLTitleElement | HTMLButtonElement | HTMLDivElement | HTMLObjectElement | HTMLDataElement | HTMLSelectElement | HTMLLinkElement | HTMLTableElement | HTMLMapElement | HTMLStyleElement | HTMLSlotElement | HTMLImageElement | HTMLDialogElement | HTMLFormElement | HTMLOptionElement | HTMLTimeElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLSpanElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
4
  className?: string | undefined;
5
5
  collapsedSize?: number | undefined;
6
6
  collapsible?: boolean | undefined;
@@ -6,6 +6,6 @@ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.T
6
6
  declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
7
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
8
8
  export declare const BetterTooltip: ({ content, children, align, ...props }: React.ComponentPropsWithoutRef<typeof Tooltip> & {
9
- content: JSX.Element | string;
9
+ content: React.ReactNode;
10
10
  align?: "center" | "end" | "start";
11
11
  }) => import("react/jsx-runtime").JSX.Element;
@@ -31,13 +31,13 @@ export declare const mutationCreateOutSchema: z.ZodObject<{
31
31
  description: z.ZodOptional<z.ZodString>;
32
32
  message: z.ZodOptional<z.ZodString>;
33
33
  }, "strip", z.ZodTypeAny, {
34
+ description?: string;
34
35
  code?: string;
35
36
  message?: string;
36
- description?: string;
37
37
  }, {
38
+ description?: string;
38
39
  code?: string;
39
40
  message?: string;
40
- description?: string;
41
41
  }>;
42
42
  export declare const env: z.SafeParseReturnType<{
43
43
  DATABASE_URL?: string;
@@ -59,13 +59,13 @@ export declare const ogImageSchema: z.ZodObject<{
59
59
  mode: z.ZodDefault<z.ZodEnum<["light", "dark"]>>;
60
60
  bountyPrice: z.ZodString;
61
61
  }, "strip", z.ZodTypeAny, {
62
- type?: string;
63
62
  mode?: "dark" | "light";
63
+ type?: string;
64
64
  heading?: string;
65
65
  bountyPrice?: string;
66
66
  }, {
67
- type?: string;
68
67
  mode?: "dark" | "light";
68
+ type?: string;
69
69
  heading?: string;
70
70
  bountyPrice?: string;
71
71
  }>;
@@ -14,13 +14,13 @@ export declare const metaListViewSchema: z.ZodObject<{
14
14
  listDefaultPageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
15
  initQueryParams: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- viewType?: "default" | "grid" | "table";
17
+ viewType?: "default" | "table" | "grid";
18
18
  titleFormat?: string;
19
19
  listPaginateType?: "default" | "infinite";
20
20
  listDefaultPageSize?: number;
21
21
  initQueryParams?: any;
22
22
  }, {
23
- viewType?: "default" | "grid" | "table";
23
+ viewType?: "default" | "table" | "grid";
24
24
  titleFormat?: string;
25
25
  listPaginateType?: "default" | "infinite";
26
26
  listDefaultPageSize?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.989",
4
+ "version": "0.6.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -9,6 +9,9 @@
9
9
  "files": ["dist", "src"],
10
10
  "types": "./dist/index.d.ts",
11
11
  "main": "./dist/index.js",
12
+ "repository": {
13
+ "url": "https://github.com/codeh007/mtxuilib"
14
+ },
12
15
  "typesVersions": {
13
16
  "*": {
14
17
  "*": [
@@ -84,7 +87,11 @@
84
87
  "@heroicons/react": "^2.0.18",
85
88
  "@hookform/resolvers": "^3.9.1",
86
89
  "@langchain/core": "^0.3.27",
90
+ "@langchain/langgraph": "^0.2.10",
91
+ "@langchain/langgraph-sdk": "^0.0.16",
92
+ "@langchain/openai": "^0.3.5",
87
93
  "@lukemorales/query-key-factory": "^1.3.2",
94
+ "@monaco-editor/react": "^4.6.0",
88
95
  "@radix-ui/react-accessible-icon": "^1.1.1",
89
96
  "@radix-ui/react-accordion": "^1.2.2",
90
97
  "@radix-ui/react-alert-dialog": "^1.1.4",
@@ -122,6 +129,7 @@
122
129
  "@tanstack/react-query-devtools": "^5.62.14",
123
130
  "@tanstack/react-query-next-experimental": "^5.62.14",
124
131
  "@tanstack/react-table": "^8.20.1",
132
+ "@tanstack/router-devtools": "^1.93.0",
125
133
  "@visx/axis": "^3.12.0",
126
134
  "@visx/brush": "^3.6.0",
127
135
  "@visx/curve": "^3.3.0",
@@ -145,11 +153,13 @@
145
153
  "compression": "^1.7.4",
146
154
  "date-fns": "^4.1.0",
147
155
  "dompurify": "^3.1.6",
156
+ "drizzle-orm": "^0.38.2",
148
157
  "embla-carousel-autoplay": "^8.1.8",
149
158
  "embla-carousel-react": "^8.1.8",
150
159
  "focus-trap-react": "^10.2.3",
151
160
  "framer-motion": "^11.15.0",
152
161
  "geist": "^1.3.1",
162
+ "github-slugger": "^2.0.0",
153
163
  "hono": "^4.6.16",
154
164
  "html-react-parser": "^5.1.12",
155
165
  "input-otp": "^1.2.4",
@@ -171,6 +181,7 @@
171
181
  "octokit": "^4.0",
172
182
  "openai": "^4.55.5",
173
183
  "path-to-regexp": "^6.2.2",
184
+ "postgres": "^3.4.4",
174
185
  "react": "^19.0.0",
175
186
  "react-day-picker": "^8.10.1",
176
187
  "react-dom": "^19.0.0",
@@ -190,6 +201,7 @@
190
201
  "react-use": "^17.5.1",
191
202
  "recharts": "^2.12.7",
192
203
  "rehype-external-links": "^3.0.0",
204
+ "rehype-katex": "^7.0.1",
193
205
  "rehype-sanitize": "^6.0.0",
194
206
  "remark-gfm": "^4.0.0",
195
207
  "remark-math": "^6.0.0",
@@ -206,10 +218,12 @@
206
218
  "devDependencies": {
207
219
  "@changesets/get-github-info": "^0.6.0",
208
220
  "@cloudflare/kv-asset-handler": "^0.3.4",
221
+ "@cloudflare/workers-types": "^4.20241216.0",
209
222
  "@shikijs/compat": "^1.12.1",
210
223
  "@sparticuz/chromium-min": "^131.0.1",
211
224
  "@tailwindcss/forms": "^0.5.7",
212
225
  "@tailwindcss/typography": "^0.5.14",
226
+ "@types/bun": "^1.1.16",
213
227
  "@types/jest": "^29.5.12",
214
228
  "@types/jquery": "^3.5.30",
215
229
  "@types/js-cookie": "^3.0.6",
@@ -217,12 +231,16 @@
217
231
  "@types/markdown-it": "^14.1.2",
218
232
  "@types/node": "^22",
219
233
  "@types/nprogress": "^0.2.3",
220
- "@types/react": "^19.0.0",
221
- "@types/react-dom": "^19.0.0",
234
+ "@types/react": "^19.0.4",
235
+ "@types/react-dom": "^19.0.2",
222
236
  "@types/react-syntax-highlighter": "^15.5.13",
237
+ "@vitejs/plugin-react": "^4.3.4",
223
238
  "autoprefixer": "^10.4.20",
239
+ "bun-types": "^1.1.36",
240
+ "commander": "^12.1.0",
224
241
  "css-loader": "^6.11.0",
225
242
  "d3-scale": "^4.0.2",
243
+ "drizzle-kit": "^0.30.1",
226
244
  "postcss": "^8.4.41",
227
245
  "postcss-loader": "^8.1.1",
228
246
  "postcss-preset-env": "^9.6.0",
@@ -234,7 +252,9 @@
234
252
  "tailwindcss": "^3.4.17",
235
253
  "tailwindcss-animate": "^1.0.7",
236
254
  "typescript": "^5.7",
237
- "vite-plugin-dts": "^4.4.0"
255
+ "vite": "^6.0.3",
256
+ "vite-plugin-dts": "^4.4.0",
257
+ "wrangler": "^3.88.0"
238
258
  },
239
259
  "other": {
240
260
  "vaul": "^0.9.1",
@@ -34,6 +34,7 @@ export const buildWithTsc = async () => {
34
34
 
35
35
  copyDir("src/styles", "dist/styles");
36
36
  } catch (e) {
37
- console.error("执行 compile-migrations 失败", e);
37
+ console.error("执行 buildWithTsc 失败", e);
38
+ process.exit(1);
38
39
  }
39
40
  };
package/src/cli/main.ts CHANGED
@@ -39,6 +39,7 @@ function loadEnv() {
39
39
  await compileMigrations();
40
40
  } catch (e) {
41
41
  console.error("执行 compile-migrations 失败", e);
42
+ process.exit(1);
42
43
  }
43
44
  });
44
45
  program.command("dp_workflow").action(async () => {
@@ -51,7 +52,8 @@ function loadEnv() {
51
52
  console.log("执行命令:", cmd);
52
53
  await exec(cmd);
53
54
  } catch (e) {
54
- console.error("启动 nextjs (mtmaiadmin) 失败", e);
55
+ console.error("执行 dp_workflow 失败", e);
56
+ process.exit(1);
55
57
  }
56
58
  });
57
59
  program.parse();
@@ -1,8 +1,7 @@
1
1
  "use client";
2
-
3
2
  import { Cross2Icon } from "@radix-ui/react-icons";
4
3
  import type { Table } from "@tanstack/react-table";
5
-
4
+ import type React from "react";
6
5
  import { DataTableViewOptions } from "./data-table-view-options";
7
6
 
8
7
  import { Spinner } from "../mt/mtloading";
@@ -32,7 +31,7 @@ export type ToolbarFilters = {
32
31
  interface DataTableToolbarProps<TData> {
33
32
  table: Table<TData>;
34
33
  filters: ToolbarFilters;
35
- actions: JSX.Element[];
34
+ actions: React.ReactNode[];
36
35
  setSearch?: (search: string) => void;
37
36
  search?: string;
38
37
  showColumnToggle?: boolean;
@@ -36,7 +36,7 @@ export interface IDGetter {
36
36
  metadata: {
37
37
  id: string;
38
38
  };
39
- getRow?: () => JSX.Element;
39
+ getRow?: () => React.ReactNode;
40
40
  onClick?: () => void;
41
41
  isExpandable?: boolean;
42
42
  }
@@ -46,7 +46,7 @@ interface DataTableProps<TData extends IDGetter, TValue> {
46
46
  data: TData[];
47
47
  error?: Error | null;
48
48
  filters: ToolbarFilters;
49
- actions?: JSX.Element[];
49
+ actions?: React.ReactNode[];
50
50
  sorting?: SortingState;
51
51
  setSorting?: OnChangeFn<SortingState>;
52
52
  setSearch?: (search: string) => void;
@@ -76,10 +76,10 @@ interface DataTableProps<TData extends IDGetter, TValue> {
76
76
  }
77
77
 
78
78
  interface ExtraDataTableProps {
79
- emptyState?: JSX.Element;
79
+ emptyState?: React.ReactNode;
80
80
  card?: {
81
81
  containerStyle?: string;
82
- component: React.FC<any> | ((data) => JSX.Element);
82
+ component: React.FC<any> | ((data) => React.ReactNode);
83
83
  };
84
84
  }
85
85