@inf-monkeys-tech/monkeys-design 1.0.28 → 1.0.29

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 (55) hide show
  1. package/dist/components/agent-workbench/index.js +11 -2
  2. package/dist/components/agent-workbench/index.js.map +1 -1
  3. package/dist/components/agent-workbench/index.mjs +11 -2
  4. package/dist/components/agent-workbench/index.mjs.map +1 -1
  5. package/dist/components/base/index.js +2 -0
  6. package/dist/components/base/index.js.map +1 -1
  7. package/dist/components/base/index.mjs +2 -0
  8. package/dist/components/base/index.mjs.map +1 -1
  9. package/dist/components/data-explorer/index.js +2 -0
  10. package/dist/components/data-explorer/index.js.map +1 -1
  11. package/dist/components/data-explorer/index.mjs +2 -0
  12. package/dist/components/data-explorer/index.mjs.map +1 -1
  13. package/dist/components/layout/index.js +2 -0
  14. package/dist/components/layout/index.js.map +1 -1
  15. package/dist/components/layout/index.mjs +2 -0
  16. package/dist/components/layout/index.mjs.map +1 -1
  17. package/dist/components/runtime/index.js +2 -0
  18. package/dist/components/runtime/index.js.map +1 -1
  19. package/dist/components/runtime/index.mjs +2 -0
  20. package/dist/components/runtime/index.mjs.map +1 -1
  21. package/dist/components/toast/index.d.mts +1 -1
  22. package/dist/components/toast/index.d.ts +1 -1
  23. package/dist/components/toast/index.js +2 -0
  24. package/dist/components/toast/index.js.map +1 -1
  25. package/dist/components/toast/index.mjs +2 -0
  26. package/dist/components/toast/index.mjs.map +1 -1
  27. package/dist/components/toolbar/index.js +2 -0
  28. package/dist/components/toolbar/index.js.map +1 -1
  29. package/dist/components/toolbar/index.mjs +2 -0
  30. package/dist/components/toolbar/index.mjs.map +1 -1
  31. package/dist/components/workbench/index.js +2 -0
  32. package/dist/components/workbench/index.js.map +1 -1
  33. package/dist/components/workbench/index.mjs +2 -0
  34. package/dist/components/workbench/index.mjs.map +1 -1
  35. package/dist/index.d.mts +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +13 -2
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.mjs +13 -2
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/locale/index.d.mts +6 -2
  42. package/dist/locale/index.d.ts +6 -2
  43. package/dist/locale/index.js +4 -0
  44. package/dist/locale/index.js.map +1 -1
  45. package/dist/locale/index.mjs +4 -0
  46. package/dist/locale/index.mjs.map +1 -1
  47. package/dist/provider/index.d.mts +2 -2
  48. package/dist/provider/index.d.ts +2 -2
  49. package/dist/provider/index.js +4 -0
  50. package/dist/provider/index.js.map +1 -1
  51. package/dist/provider/index.mjs +4 -0
  52. package/dist/provider/index.mjs.map +1 -1
  53. package/dist/{types-4c3363833cff.d.mts → types-5517c821235c.d.mts} +2 -0
  54. package/dist/{types-4c3363833cff.d.ts → types-5517c821235c.d.ts} +2 -0
  55. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -3123,6 +3123,8 @@ var enUS = {
3123
3123
  settings: "Agent Settings",
3124
3124
  allAgents: "All Agents",
3125
3125
  recentSessions: "Recent Sessions",
3126
+ chatbot: "Chatbot",
3127
+ agent: "Agent",
3126
3128
  builtIn: "Built-in",
3127
3129
  noDescription: "No description",
3128
3130
  loading: "Loading...",
@@ -3369,6 +3371,8 @@ var zhCN = {
3369
3371
  settings: "\u667A\u80FD\u4F53\u8BBE\u7F6E",
3370
3372
  allAgents: "\u5168\u90E8\u667A\u80FD\u4F53",
3371
3373
  recentSessions: "\u6700\u8FD1\u4F1A\u8BDD",
3374
+ chatbot: "Chatbot",
3375
+ agent: "Agent",
3372
3376
  builtIn: "\u5185\u7F6E",
3373
3377
  noDescription: "\u6682\u65E0\u63CF\u8FF0",
3374
3378
  loading: "\u52A0\u8F7D\u4E2D...",
@@ -17458,6 +17462,13 @@ function SessionAvatar({ item }) {
17458
17462
  }
17459
17463
  return /* @__PURE__ */ jsx(Image, { className: "size-5", "aria-hidden": "true" });
17460
17464
  }
17465
+ function SessionMeta({ item, locale }) {
17466
+ const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
17467
+ return /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
17468
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 truncate text-xs text-foreground/80", children: new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short" }).format(new Date(item.updatedAt)) }),
17469
+ item.mode ? /* @__PURE__ */ jsx("span", { className: cn2("shrink-0 rounded-full px-1.5 py-0.5 text-[10px] font-medium leading-none", item.mode === "agent" ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"), children: item.mode === "agent" ? messages.agent : messages.chatbot }) : null
17470
+ ] });
17471
+ }
17461
17472
  function CollectionState({
17462
17473
  status,
17463
17474
  empty,
@@ -17697,13 +17708,13 @@ function AgentWorkbenchSidebar({
17697
17708
  }
17698
17709
  }
17699
17710
  ),
17700
- /* @__PURE__ */ jsx("span", { className: "block truncate text-xs text-foreground/80", children: new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short" }).format(new Date(item.updatedAt)) })
17711
+ /* @__PURE__ */ jsx(SessionMeta, { item, locale })
17701
17712
  ] })
17702
17713
  ] }) : /* @__PURE__ */ jsxs("button", { type: "button", className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-session", sessionId: item.id }), children: [
17703
17714
  /* @__PURE__ */ jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsx(SessionAvatar, { item }) }),
17704
17715
  /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
17705
17716
  /* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-medium", children: item.title }),
17706
- /* @__PURE__ */ jsx("span", { className: "block truncate text-xs text-foreground/80", children: new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeStyle: "short" }).format(new Date(item.updatedAt)) })
17717
+ /* @__PURE__ */ jsx(SessionMeta, { item, locale })
17707
17718
  ] })
17708
17719
  ] }),
17709
17720
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [