@inf-monkeys-tech/monkeys-design 1.0.81 → 1.0.84

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 (62) hide show
  1. package/dist/components/agent-workbench/index.d.mts +3 -0
  2. package/dist/components/agent-workbench/index.d.ts +3 -0
  3. package/dist/components/agent-workbench/index.js +82 -20
  4. package/dist/components/agent-workbench/index.js.map +1 -1
  5. package/dist/components/agent-workbench/index.mjs +83 -21
  6. package/dist/components/agent-workbench/index.mjs.map +1 -1
  7. package/dist/components/base/index.js +4 -1
  8. package/dist/components/base/index.js.map +1 -1
  9. package/dist/components/base/index.mjs +4 -1
  10. package/dist/components/base/index.mjs.map +1 -1
  11. package/dist/components/data-explorer/index.js +4 -1
  12. package/dist/components/data-explorer/index.js.map +1 -1
  13. package/dist/components/data-explorer/index.mjs +4 -1
  14. package/dist/components/data-explorer/index.mjs.map +1 -1
  15. package/dist/components/layout/index.js +4 -1
  16. package/dist/components/layout/index.js.map +1 -1
  17. package/dist/components/layout/index.mjs +4 -1
  18. package/dist/components/layout/index.mjs.map +1 -1
  19. package/dist/components/navigation-sidebar/index.js +4 -1
  20. package/dist/components/navigation-sidebar/index.js.map +1 -1
  21. package/dist/components/navigation-sidebar/index.mjs +4 -1
  22. package/dist/components/navigation-sidebar/index.mjs.map +1 -1
  23. package/dist/components/runtime/index.js +4 -1
  24. package/dist/components/runtime/index.js.map +1 -1
  25. package/dist/components/runtime/index.mjs +4 -1
  26. package/dist/components/runtime/index.mjs.map +1 -1
  27. package/dist/components/toast/index.d.mts +1 -1
  28. package/dist/components/toast/index.d.ts +1 -1
  29. package/dist/components/toast/index.js +4 -1
  30. package/dist/components/toast/index.js.map +1 -1
  31. package/dist/components/toast/index.mjs +4 -1
  32. package/dist/components/toast/index.mjs.map +1 -1
  33. package/dist/components/toolbar/index.js +4 -1
  34. package/dist/components/toolbar/index.js.map +1 -1
  35. package/dist/components/toolbar/index.mjs +4 -1
  36. package/dist/components/toolbar/index.mjs.map +1 -1
  37. package/dist/components/workbench/index.js +4 -1
  38. package/dist/components/workbench/index.js.map +1 -1
  39. package/dist/components/workbench/index.mjs +4 -1
  40. package/dist/components/workbench/index.mjs.map +1 -1
  41. package/dist/index.d.mts +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +44 -15
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +44 -15
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/locale/index.d.mts +8 -2
  48. package/dist/locale/index.d.ts +8 -2
  49. package/dist/locale/index.js +8 -2
  50. package/dist/locale/index.js.map +1 -1
  51. package/dist/locale/index.mjs +8 -2
  52. package/dist/locale/index.mjs.map +1 -1
  53. package/dist/provider/index.d.mts +2 -2
  54. package/dist/provider/index.d.ts +2 -2
  55. package/dist/provider/index.js +8 -2
  56. package/dist/provider/index.js.map +1 -1
  57. package/dist/provider/index.mjs +8 -2
  58. package/dist/provider/index.mjs.map +1 -1
  59. package/dist/styles.css +1 -1
  60. package/dist/{types-340390798922.d.mts → types-9c410e33a06b.d.mts} +3 -0
  61. package/dist/{types-340390798922.d.ts → types-9c410e33a06b.d.ts} +3 -0
  62. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -3145,7 +3145,10 @@ var enUS = {
3145
3145
  closeTab: ({ name }) => `Close ${name}`,
3146
3146
  closeWorkspace: "Close workspace",
3147
3147
  download: ({ name }) => `Download ${name}`,
3148
- openExternal: ({ name }) => `Open ${name} in a new window`
3148
+ openExternal: ({ name }) => `Open ${name} in a new window`,
3149
+ loading: "Loading preview...",
3150
+ failed: "Preview unavailable",
3151
+ retry: "Try again"
3149
3152
  },
3150
3153
  usage: {
3151
3154
  label: "Context usage",
@@ -3432,7 +3435,10 @@ var zhCN = {
3432
3435
  closeTab: ({ name }) => `\u5173\u95ED ${name}`,
3433
3436
  closeWorkspace: "\u5173\u95ED\u5DE5\u4F5C\u533A",
3434
3437
  download: ({ name }) => `\u4E0B\u8F7D ${name}`,
3435
- openExternal: ({ name }) => `\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${name}`
3438
+ openExternal: ({ name }) => `\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${name}`,
3439
+ loading: "\u6B63\u5728\u52A0\u8F7D\u9884\u89C8...",
3440
+ failed: "\u9884\u89C8\u4E0D\u53EF\u7528",
3441
+ retry: "\u91CD\u8BD5"
3436
3442
  },
3437
3443
  usage: {
3438
3444
  label: "\u4E0A\u4E0B\u6587\u7528\u91CF",
@@ -19460,7 +19466,7 @@ function JsonValue({ value }) {
19460
19466
  return /* @__PURE__ */ jsx(
19461
19467
  "pre",
19462
19468
  {
19463
- className: "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground",
19469
+ className: "max-h-48 max-w-full overflow-auto overscroll-contain whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground [overflow-wrap:anywhere]",
19464
19470
  tabIndex: 0,
19465
19471
  children: content
19466
19472
  }
@@ -19473,13 +19479,20 @@ function AgentWorkbenchApproval({ approval, className, onDecision }) {
19473
19479
  return /* @__PURE__ */ jsx(
19474
19480
  "article",
19475
19481
  {
19476
- className: cn2("rounded-lg border border-border bg-card p-3 text-card-foreground", className),
19482
+ className: cn2("min-w-0 overflow-hidden rounded-lg border border-border bg-card p-3 text-card-foreground", className),
19477
19483
  "data-agent-approval-status": approval.status,
19478
19484
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
19479
19485
  requested ? /* @__PURE__ */ jsx(Clock3, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": "true" }) : approved ? /* @__PURE__ */ jsx(Check, { className: "mt-0.5 size-4 shrink-0 text-primary", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(X, { className: "mt-0.5 size-4 shrink-0 text-destructive-text", "aria-hidden": "true" }),
19480
19486
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
19481
19487
  /* @__PURE__ */ jsx("h3", { className: "break-words text-sm font-medium", children: approval.title }),
19482
- approval.description ? /* @__PURE__ */ jsx("p", { className: "mt-1 whitespace-pre-wrap break-words text-sm text-muted-foreground", children: approval.description }) : null,
19488
+ approval.description ? /* @__PURE__ */ jsx(
19489
+ "p",
19490
+ {
19491
+ tabIndex: 0,
19492
+ className: "mt-1 max-h-32 overflow-auto whitespace-pre-wrap break-words text-sm text-muted-foreground [overflow-wrap:anywhere]",
19493
+ children: approval.description
19494
+ }
19495
+ ) : null,
19483
19496
  approval.requestedAction !== void 0 ? /* @__PURE__ */ jsx("div", { className: "mt-3 min-w-0", children: /* @__PURE__ */ jsx(JsonValue, { value: approval.requestedAction }) }) : null,
19484
19497
  requested ? /* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap gap-2", children: [
19485
19498
  /* @__PURE__ */ jsx(
@@ -19523,8 +19536,9 @@ function JsonValue2({ value, className }) {
19523
19536
  return /* @__PURE__ */ jsx(
19524
19537
  "pre",
19525
19538
  {
19539
+ tabIndex: 0,
19526
19540
  className: cn2(
19527
- "max-h-64 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground",
19541
+ "max-h-64 max-w-full overflow-auto overscroll-contain whitespace-pre-wrap break-words rounded-md bg-muted p-3 font-mono text-xs text-foreground [overflow-wrap:anywhere]",
19528
19542
  className
19529
19543
  ),
19530
19544
  children: content
@@ -19567,7 +19581,7 @@ function AgentWorkbenchTool({
19567
19581
  {
19568
19582
  open: isExpanded,
19569
19583
  className: cn2(
19570
- "group rounded-lg border border-border bg-card text-card-foreground",
19584
+ "group min-w-0 overflow-hidden rounded-lg border border-border bg-card text-card-foreground",
19571
19585
  classNames?.root,
19572
19586
  className
19573
19587
  ),
@@ -19601,7 +19615,7 @@ function AgentWorkbenchTool({
19601
19615
  ]
19602
19616
  }
19603
19617
  ),
19604
- /* @__PURE__ */ jsxs("div", { className: cn2("space-y-3 border-t border-border px-3 py-3 text-sm", classNames?.content), children: [
19618
+ /* @__PURE__ */ jsxs("div", { className: cn2("min-w-0 space-y-3 border-t border-border px-3 py-3 text-sm", classNames?.content), children: [
19605
19619
  event.payload.input !== void 0 ? /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
19606
19620
  /* @__PURE__ */ jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.input }),
19607
19621
  /* @__PURE__ */ jsx(JsonValue2, { value: event.payload.input, className: classNames?.input })
@@ -19610,7 +19624,15 @@ function AgentWorkbenchTool({
19610
19624
  /* @__PURE__ */ jsx("div", { className: "text-xs font-medium text-muted-foreground", children: messages.output }),
19611
19625
  /* @__PURE__ */ jsx(JsonValue2, { value: event.payload.output, className: classNames?.output })
19612
19626
  ] }) : null,
19613
- event.payload.error ? /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive-text", role: "alert", children: event.payload.error }) : null
19627
+ event.payload.error ? /* @__PURE__ */ jsx(
19628
+ "p",
19629
+ {
19630
+ tabIndex: 0,
19631
+ className: "max-h-32 overflow-auto whitespace-pre-wrap break-words text-sm text-destructive-text [overflow-wrap:anywhere]",
19632
+ role: "alert",
19633
+ children: event.payload.error
19634
+ }
19635
+ ) : null
19614
19636
  ] })
19615
19637
  ]
19616
19638
  }
@@ -19630,7 +19652,7 @@ function ActivityDetails({
19630
19652
  "details",
19631
19653
  {
19632
19654
  className: cn2(
19633
- "group rounded-lg border border-border bg-card text-card-foreground",
19655
+ "group min-w-0 overflow-hidden rounded-lg border border-border bg-card text-card-foreground",
19634
19656
  className
19635
19657
  ),
19636
19658
  open,
@@ -19659,7 +19681,7 @@ function ActivityDetails({
19659
19681
  "div",
19660
19682
  {
19661
19683
  className: cn2(
19662
- "border-t border-border px-3 py-3 text-sm",
19684
+ "min-w-0 border-t border-border px-3 py-3 text-sm",
19663
19685
  contentClassName
19664
19686
  ),
19665
19687
  children
@@ -19754,7 +19776,14 @@ function AgentWorkbenchActivity({
19754
19776
  className: classNames?.item,
19755
19777
  triggerClassName: classNames?.trigger,
19756
19778
  contentClassName: classNames?.content,
19757
- children: /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap text-muted-foreground", children: event.payload.text })
19779
+ children: /* @__PURE__ */ jsx(
19780
+ "div",
19781
+ {
19782
+ tabIndex: 0,
19783
+ className: "max-h-64 overflow-auto whitespace-pre-wrap break-words text-muted-foreground [overflow-wrap:anywhere]",
19784
+ children: event.payload.text
19785
+ }
19786
+ )
19758
19787
  },
19759
19788
  event.payload.reasoningId
19760
19789
  )),
@@ -19768,9 +19797,9 @@ function AgentWorkbenchActivity({
19768
19797
  className: classNames?.item,
19769
19798
  triggerClassName: classNames?.trigger,
19770
19799
  contentClassName: classNames?.content,
19771
- children: /* @__PURE__ */ jsx("ol", { className: "space-y-2", children: event.payload.steps.map((step) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2", children: [
19800
+ children: /* @__PURE__ */ jsx("ol", { className: "space-y-2", children: event.payload.steps.map((step) => /* @__PURE__ */ jsxs("li", { className: "flex min-w-0 items-start gap-2", children: [
19772
19801
  /* @__PURE__ */ jsx(StatusIcon, { status: step.status }),
19773
- /* @__PURE__ */ jsx("span", { children: step.title })
19802
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words [overflow-wrap:anywhere]", children: step.title })
19774
19803
  ] }, step.id)) })
19775
19804
  },
19776
19805
  event.payload.planId
@@ -19787,7 +19816,7 @@ function AgentWorkbenchActivity({
19787
19816
  contentClassName: classNames?.content,
19788
19817
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2", children: [
19789
19818
  /* @__PURE__ */ jsx(StatusIcon, { status: event.payload.status }),
19790
- /* @__PURE__ */ jsx("span", { className: "whitespace-pre-wrap text-muted-foreground", children: event.payload.detail || messages.taskNoDetail })
19819
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 whitespace-pre-wrap break-words text-muted-foreground [overflow-wrap:anywhere]", children: event.payload.detail || messages.taskNoDetail })
19791
19820
  ] })
19792
19821
  },
19793
19822
  event.payload.taskId