@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
@@ -186,6 +186,8 @@ var enUS = {
186
186
  settings: "Agent Settings",
187
187
  allAgents: "All Agents",
188
188
  recentSessions: "Recent Sessions",
189
+ chatbot: "Chatbot",
190
+ agent: "Agent",
189
191
  builtIn: "Built-in",
190
192
  noDescription: "No description",
191
193
  loading: "Loading...",
@@ -930,6 +932,13 @@ function SessionAvatar({ item }) {
930
932
  }
931
933
  return /* @__PURE__ */ jsx(Image, { className: "size-5", "aria-hidden": "true" });
932
934
  }
935
+ function SessionMeta({ item, locale }) {
936
+ const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
937
+ return /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
938
+ /* @__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)) }),
939
+ 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
940
+ ] });
941
+ }
933
942
  function CollectionState({
934
943
  status,
935
944
  empty,
@@ -1169,13 +1178,13 @@ function AgentWorkbenchSidebar({
1169
1178
  }
1170
1179
  }
1171
1180
  ),
1172
- /* @__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)) })
1181
+ /* @__PURE__ */ jsx(SessionMeta, { item, locale })
1173
1182
  ] })
1174
1183
  ] }) : /* @__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: [
1175
1184
  /* @__PURE__ */ jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsx(SessionAvatar, { item }) }),
1176
1185
  /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
1177
1186
  /* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-medium", children: item.title }),
1178
- /* @__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)) })
1187
+ /* @__PURE__ */ jsx(SessionMeta, { item, locale })
1179
1188
  ] })
1180
1189
  ] }),
1181
1190
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [