@axiom-lattice/react-sdk 4.8.0 → 4.9.0

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 (54) hide show
  1. package/dist/{AgentDetailSideApp-4UGDF4QB.mjs → AgentDetailSideApp-ACWJRNBF.mjs} +6 -6
  2. package/dist/{AgentGovernanceWorkbench-56Z7UUQN.mjs → AgentGovernanceWorkbench-WPFLPKX2.mjs} +7 -7
  3. package/dist/{MessageGraph-HTWOBMZV.mjs → MessageGraph-ATBGFDKC.mjs} +2 -2
  4. package/dist/{ReactChart-IITPCEFC.mjs → ReactChart-MVMTUCC2.mjs} +2 -2
  5. package/dist/{TasksSideApp-PJPVJS52.mjs → TasksSideApp-4D57XVVN.mjs} +3 -3
  6. package/dist/{TeamWorkspace-SX5IWDIT.mjs → TeamWorkspace-CKDGQXDK.mjs} +2 -2
  7. package/dist/{TopologyRuntimeView-V6SNGJT2.mjs → TopologyRuntimeView-VQHTSHS7.mjs} +3 -3
  8. package/dist/{WorkflowAutomationView-3ZDY5PMI.mjs → WorkflowAutomationView-ML2C3UJ6.mjs} +5 -5
  9. package/dist/{chunk-PJSEGY7Q.mjs → chunk-2XFDXZBC.mjs} +36 -12
  10. package/dist/chunk-2XFDXZBC.mjs.map +1 -0
  11. package/dist/{chunk-O4BTXTXR.mjs → chunk-4OHEHIO2.mjs} +4 -4
  12. package/dist/{chunk-TFLFOX6K.mjs → chunk-6TVIQLUM.mjs} +4 -4
  13. package/dist/{chunk-YTRF4QIO.mjs → chunk-CXXXJ65D.mjs} +2 -2
  14. package/dist/{chunk-HZKKJGH2.mjs → chunk-H4KWXUGY.mjs} +5 -5
  15. package/dist/{chunk-4PZUJE3W.mjs → chunk-ZFTTVO6A.mjs} +2 -2
  16. package/dist/{chunk-S4KNSBKS.mjs → chunk-ZMSYTPCA.mjs} +2 -2
  17. package/dist/{embed-page-AgentDetailSideApp-S5N76UPU.js → embed-page-AgentDetailSideApp-BVJK7WIS.js} +1 -1
  18. package/dist/{embed-page-AgentGovernanceWorkbench-QFMP2M73.js → embed-page-AgentGovernanceWorkbench-L2YHPRNE.js} +1 -1
  19. package/dist/{embed-page-MessageGraph-H3HPZKOH.js → embed-page-MessageGraph-JOQ46UE2.js} +1 -1
  20. package/dist/{embed-page-ReactChart-ZFMANJCT.js → embed-page-ReactChart-I5AYTSII.js} +1 -1
  21. package/dist/{embed-page-SkillFlow-HY7PD43P.js → embed-page-SkillFlow-YLB5XPFH.js} +1 -1
  22. package/dist/{embed-page-TasksSideApp-QKEXMHCT.js → embed-page-TasksSideApp-QLJVB7UK.js} +1 -1
  23. package/dist/{embed-page-TeamWorkspace-ZFVAFZXZ.js → embed-page-TeamWorkspace-BZZEAYSB.js} +1 -1
  24. package/dist/{embed-page-TopologyRuntimeView-2BS4OYEZ.js → embed-page-TopologyRuntimeView-FRA3AXQQ.js} +1 -1
  25. package/dist/{embed-page-WorkflowAutomationView-WUI7BSQP.js → embed-page-WorkflowAutomationView-D745PK3W.js} +1 -1
  26. package/dist/{embed-page-chunk-5WYDCL3B.js → embed-page-chunk-4WBAN7QL.js} +7 -7
  27. package/dist/{embed-page-chunk-4T4QMOUS.js → embed-page-chunk-FVMSMU4J.js} +1 -1
  28. package/dist/{embed-page-chunk-VJTO6SG6.js → embed-page-chunk-FWGNJMXD.js} +1 -1
  29. package/dist/{embed-page-chunk-MSHEVUK3.js → embed-page-chunk-K5YYUAPL.js} +1 -1
  30. package/dist/{embed-page-chunk-6HM7ZERK.js → embed-page-chunk-M2PV36MX.js} +1 -1
  31. package/dist/{embed-page-chunk-XKQ6YPUW.js → embed-page-chunk-P5PFV3N7.js} +1 -1
  32. package/dist/{embed-page-chunk-7ZBZKXBU.js → embed-page-chunk-WMLR2GQK.js} +4 -4
  33. package/dist/embed-page.js +1 -1
  34. package/dist/index.d.mts +2 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +25 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +7 -7
  39. package/package.json +3 -3
  40. package/dist/chunk-PJSEGY7Q.mjs.map +0 -1
  41. /package/dist/{AgentDetailSideApp-4UGDF4QB.mjs.map → AgentDetailSideApp-ACWJRNBF.mjs.map} +0 -0
  42. /package/dist/{AgentGovernanceWorkbench-56Z7UUQN.mjs.map → AgentGovernanceWorkbench-WPFLPKX2.mjs.map} +0 -0
  43. /package/dist/{MessageGraph-HTWOBMZV.mjs.map → MessageGraph-ATBGFDKC.mjs.map} +0 -0
  44. /package/dist/{ReactChart-IITPCEFC.mjs.map → ReactChart-MVMTUCC2.mjs.map} +0 -0
  45. /package/dist/{TasksSideApp-PJPVJS52.mjs.map → TasksSideApp-4D57XVVN.mjs.map} +0 -0
  46. /package/dist/{TeamWorkspace-SX5IWDIT.mjs.map → TeamWorkspace-CKDGQXDK.mjs.map} +0 -0
  47. /package/dist/{TopologyRuntimeView-V6SNGJT2.mjs.map → TopologyRuntimeView-VQHTSHS7.mjs.map} +0 -0
  48. /package/dist/{WorkflowAutomationView-3ZDY5PMI.mjs.map → WorkflowAutomationView-ML2C3UJ6.mjs.map} +0 -0
  49. /package/dist/{chunk-O4BTXTXR.mjs.map → chunk-4OHEHIO2.mjs.map} +0 -0
  50. /package/dist/{chunk-TFLFOX6K.mjs.map → chunk-6TVIQLUM.mjs.map} +0 -0
  51. /package/dist/{chunk-YTRF4QIO.mjs.map → chunk-CXXXJ65D.mjs.map} +0 -0
  52. /package/dist/{chunk-HZKKJGH2.mjs.map → chunk-H4KWXUGY.mjs.map} +0 -0
  53. /package/dist/{chunk-4PZUJE3W.mjs.map → chunk-ZFTTVO6A.mjs.map} +0 -0
  54. /package/dist/{chunk-S4KNSBKS.mjs.map → chunk-ZMSYTPCA.mjs.map} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  AgentDetailView
3
- } from "./chunk-HZKKJGH2.mjs";
4
- import "./chunk-YTRF4QIO.mjs";
5
- import "./chunk-4PZUJE3W.mjs";
3
+ } from "./chunk-H4KWXUGY.mjs";
4
+ import "./chunk-CXXXJ65D.mjs";
5
+ import "./chunk-ZFTTVO6A.mjs";
6
6
  import "./chunk-7QQKL657.mjs";
7
- import "./chunk-S4KNSBKS.mjs";
7
+ import "./chunk-ZMSYTPCA.mjs";
8
8
  import "./chunk-7FWCKQNB.mjs";
9
9
  import {
10
10
  ProjectScopeProvider_default,
11
11
  useSideAppOpener
12
- } from "./chunk-PJSEGY7Q.mjs";
12
+ } from "./chunk-2XFDXZBC.mjs";
13
13
  import "./chunk-HLVE2SB7.mjs";
14
14
  import "./chunk-XC6TB6PI.mjs";
15
15
  import "./chunk-XAGSG72Y.mjs";
@@ -155,4 +155,4 @@ var AgentDetailSideApp = ({ data }) => {
155
155
  export {
156
156
  AgentDetailSideApp
157
157
  };
158
- //# sourceMappingURL=AgentDetailSideApp-4UGDF4QB.mjs.map
158
+ //# sourceMappingURL=AgentDetailSideApp-ACWJRNBF.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  AgentGovernanceWorkbench
3
- } from "./chunk-O4BTXTXR.mjs";
4
- import "./chunk-HZKKJGH2.mjs";
5
- import "./chunk-YTRF4QIO.mjs";
6
- import "./chunk-4PZUJE3W.mjs";
3
+ } from "./chunk-4OHEHIO2.mjs";
4
+ import "./chunk-H4KWXUGY.mjs";
5
+ import "./chunk-CXXXJ65D.mjs";
6
+ import "./chunk-ZFTTVO6A.mjs";
7
7
  import "./chunk-7QQKL657.mjs";
8
- import "./chunk-S4KNSBKS.mjs";
8
+ import "./chunk-ZMSYTPCA.mjs";
9
9
  import "./chunk-7FWCKQNB.mjs";
10
- import "./chunk-PJSEGY7Q.mjs";
10
+ import "./chunk-2XFDXZBC.mjs";
11
11
  import "./chunk-HLVE2SB7.mjs";
12
12
  import "./chunk-XC6TB6PI.mjs";
13
13
  import "./chunk-XAGSG72Y.mjs";
@@ -16,4 +16,4 @@ import "./chunk-SH6YXSHR.mjs";
16
16
  export {
17
17
  AgentGovernanceWorkbench
18
18
  };
19
- //# sourceMappingURL=AgentGovernanceWorkbench-56Z7UUQN.mjs.map
19
+ //# sourceMappingURL=AgentGovernanceWorkbench-WPFLPKX2.mjs.map
@@ -11,7 +11,7 @@ import {
11
11
  collapseOlderPhases,
12
12
  formatToolName,
13
13
  toolResponseText
14
- } from "./chunk-PJSEGY7Q.mjs";
14
+ } from "./chunk-2XFDXZBC.mjs";
15
15
  import "./chunk-HLVE2SB7.mjs";
16
16
  import {
17
17
  Handle,
@@ -380,4 +380,4 @@ var MessageGraph = ({
380
380
  export {
381
381
  MessageGraph
382
382
  };
383
- //# sourceMappingURL=MessageGraph-HTWOBMZV.mjs.map
383
+ //# sourceMappingURL=MessageGraph-ATBGFDKC.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GenericDataTable
3
- } from "./chunk-PJSEGY7Q.mjs";
3
+ } from "./chunk-2XFDXZBC.mjs";
4
4
  import "./chunk-HLVE2SB7.mjs";
5
5
  import "./chunk-3VRRRJHP.mjs";
6
6
  import "./chunk-SH6YXSHR.mjs";
@@ -452,4 +452,4 @@ var ReactChart = (props) => {
452
452
  export {
453
453
  ReactChart
454
454
  };
455
- //# sourceMappingURL=ReactChart-IITPCEFC.mjs.map
455
+ //# sourceMappingURL=ReactChart-MVMTUCC2.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TaskOutlineList
3
- } from "./chunk-S4KNSBKS.mjs";
3
+ } from "./chunk-ZMSYTPCA.mjs";
4
4
  import {
5
5
  WorkflowGraphBase,
6
6
  applyDagreLayout
@@ -19,7 +19,7 @@ import {
19
19
  useOpenTaskChat,
20
20
  useTaskCommands,
21
21
  useWorkspaceContext
22
- } from "./chunk-PJSEGY7Q.mjs";
22
+ } from "./chunk-2XFDXZBC.mjs";
23
23
  import "./chunk-HLVE2SB7.mjs";
24
24
  import {
25
25
  Handle,
@@ -1164,4 +1164,4 @@ var TasksSideApp = ({ statusFilter, getOwnerLabel, showProjectFilter = true, ini
1164
1164
  export {
1165
1165
  TasksSideApp
1166
1166
  };
1167
- //# sourceMappingURL=TasksSideApp-PJPVJS52.mjs.map
1167
+ //# sourceMappingURL=TasksSideApp-4D57XVVN.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  Chating,
4
4
  MailboxPanel,
5
5
  useAgentState
6
- } from "./chunk-PJSEGY7Q.mjs";
6
+ } from "./chunk-2XFDXZBC.mjs";
7
7
  import "./chunk-HLVE2SB7.mjs";
8
8
  import {
9
9
  Background,
@@ -2409,4 +2409,4 @@ export {
2409
2409
  TeamWorkspace,
2410
2410
  TeamWorkspace_default as default
2411
2411
  };
2412
- //# sourceMappingURL=TeamWorkspace-SX5IWDIT.mjs.map
2412
+ //# sourceMappingURL=TeamWorkspace-CKDGQXDK.mjs.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WorkflowCanvas,
3
3
  expandWorkflow
4
- } from "./chunk-4PZUJE3W.mjs";
4
+ } from "./chunk-ZFTTVO6A.mjs";
5
5
  import "./chunk-7FWCKQNB.mjs";
6
6
  import {
7
7
  MDResponse
8
- } from "./chunk-PJSEGY7Q.mjs";
8
+ } from "./chunk-2XFDXZBC.mjs";
9
9
  import "./chunk-HLVE2SB7.mjs";
10
10
  import {
11
11
  Background,
@@ -811,4 +811,4 @@ var TopologyRuntimeView = () => {
811
811
  export {
812
812
  TopologyRuntimeView
813
813
  };
814
- //# sourceMappingURL=TopologyRuntimeView-V6SNGJT2.mjs.map
814
+ //# sourceMappingURL=TopologyRuntimeView-VQHTSHS7.mjs.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WorkflowAutomationView,
3
3
  WorkflowAutomationView_default
4
- } from "./chunk-TFLFOX6K.mjs";
5
- import "./chunk-YTRF4QIO.mjs";
6
- import "./chunk-4PZUJE3W.mjs";
4
+ } from "./chunk-6TVIQLUM.mjs";
5
+ import "./chunk-CXXXJ65D.mjs";
6
+ import "./chunk-ZFTTVO6A.mjs";
7
7
  import "./chunk-7FWCKQNB.mjs";
8
- import "./chunk-PJSEGY7Q.mjs";
8
+ import "./chunk-2XFDXZBC.mjs";
9
9
  import "./chunk-HLVE2SB7.mjs";
10
10
  import "./chunk-XC6TB6PI.mjs";
11
11
  import "./chunk-XAGSG72Y.mjs";
@@ -15,4 +15,4 @@ export {
15
15
  WorkflowAutomationView,
16
16
  WorkflowAutomationView_default as default
17
17
  };
18
- //# sourceMappingURL=WorkflowAutomationView-3ZDY5PMI.mjs.map
18
+ //# sourceMappingURL=WorkflowAutomationView-ML2C3UJ6.mjs.map
@@ -9978,6 +9978,18 @@ function ScopedProjectRoomProvider({ projectId, client, userId, children }) {
9978
9978
  throw toUiError(error);
9979
9979
  }
9980
9980
  },
9981
+ ensure: async (membershipId) => {
9982
+ const generation = generationRef.current;
9983
+ const pid = requireProject();
9984
+ try {
9985
+ const ensured = await client.projectRooms.bots.ensure(pid, membershipId);
9986
+ if (generation === generationRef.current) await refreshResource("bots", generation);
9987
+ return ensured;
9988
+ } catch (error) {
9989
+ if (generation !== generationRef.current) throw error;
9990
+ throw toUiError(error);
9991
+ }
9992
+ },
9981
9993
  update: async (membershipId, patch) => {
9982
9994
  const generation = generationRef.current;
9983
9995
  const pid = requireProject();
@@ -14439,6 +14451,18 @@ var ProjectRoomRoster = () => {
14439
14451
  },
14440
14452
  [botActions]
14441
14453
  );
14454
+ const handleViewAgentWork = useCallback33(
14455
+ async (bot) => {
14456
+ setActionError(null);
14457
+ try {
14458
+ const ensured = bot.provisional === true ? await botActions.ensure(bot.id) : bot;
14459
+ openSideApp(buildAgentWorkCard(ensured));
14460
+ } catch (error) {
14461
+ setActionError(errorText2(error));
14462
+ }
14463
+ },
14464
+ [botActions, openSideApp]
14465
+ );
14442
14466
  const addMenuItems = [
14443
14467
  { key: "add-member", icon: /* @__PURE__ */ jsx47(UserPlus, { size: 14, "aria-hidden": true }), label: "Add human", onClick: () => openDialog({ type: "add-member" }) },
14444
14468
  { key: "add-bot", icon: /* @__PURE__ */ jsx47(Bot, { size: 14, "aria-hidden": true }), label: "Add bot", onClick: () => openDialog({ type: "add-bot" }) }
@@ -14561,7 +14585,7 @@ var ProjectRoomRoster = () => {
14561
14585
  "data-testid": `view-agent-work-${bot.id}`,
14562
14586
  "aria-label": `View agent work for ${bot.title}`,
14563
14587
  icon: /* @__PURE__ */ jsx47(MessageSquare, { size: 16, "aria-hidden": true }),
14564
- onClick: () => openSideApp(buildAgentWorkCard(bot))
14588
+ onClick: () => void handleViewAgentWork(bot)
14565
14589
  }
14566
14590
  ) }),
14567
14591
  canManage && /* @__PURE__ */ jsx47(Dropdown4, { trigger: ["click"], placement: "bottomRight", menu: { items: botMenuItems(bot, isCoordinator) }, children: /* @__PURE__ */ jsx47(
@@ -28928,7 +28952,7 @@ import { Spin as Spin21 } from "antd";
28928
28952
  import { ListChecks as ListChecks2 } from "lucide-react";
28929
28953
  import { jsx as jsx106 } from "react/jsx-runtime";
28930
28954
  var TasksSideApp = lazy2(
28931
- () => import("./TasksSideApp-PJPVJS52.mjs").then((m) => ({ default: m.TasksSideApp }))
28955
+ () => import("./TasksSideApp-4D57XVVN.mjs").then((m) => ({ default: m.TasksSideApp }))
28932
28956
  );
28933
28957
  var TasksButton = () => {
28934
28958
  const { openSideApp, sideAppVisible, sideAppSelectedCard } = useChatUIContext();
@@ -29201,7 +29225,7 @@ ${JSON.stringify(
29201
29225
  // src/components/Chat/MessageViewPanel.tsx
29202
29226
  import { jsx as jsx108 } from "react/jsx-runtime";
29203
29227
  var MessageGraph = React77.lazy(
29204
- () => import("./MessageGraph-HTWOBMZV.mjs").then((m) => ({ default: m.MessageGraph }))
29228
+ () => import("./MessageGraph-ATBGFDKC.mjs").then((m) => ({ default: m.MessageGraph }))
29205
29229
  );
29206
29230
  var MessageViewPanel = ({
29207
29231
  messages,
@@ -37760,19 +37784,19 @@ var DEFAULT_WORKSPACE_MENU_ITEMS = [
37760
37784
  ];
37761
37785
  var PanelSuspenseFallback = () => /* @__PURE__ */ jsx151("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", minHeight: 120 }, children: /* @__PURE__ */ jsx151(Spin32, {}) });
37762
37786
  var AgentGovernanceWorkbench = lazy3(
37763
- () => import("./AgentGovernanceWorkbench-56Z7UUQN.mjs").then((m) => ({ default: m.AgentGovernanceWorkbench }))
37787
+ () => import("./AgentGovernanceWorkbench-WPFLPKX2.mjs").then((m) => ({ default: m.AgentGovernanceWorkbench }))
37764
37788
  );
37765
37789
  var TopologyRuntimeView = lazy3(
37766
- () => import("./TopologyRuntimeView-V6SNGJT2.mjs").then((m) => ({ default: m.TopologyRuntimeView }))
37790
+ () => import("./TopologyRuntimeView-VQHTSHS7.mjs").then((m) => ({ default: m.TopologyRuntimeView }))
37767
37791
  );
37768
37792
  var WorkflowAutomationView = lazy3(
37769
- () => import("./WorkflowAutomationView-3ZDY5PMI.mjs").then((m) => ({ default: m.WorkflowAutomationView }))
37793
+ () => import("./WorkflowAutomationView-ML2C3UJ6.mjs").then((m) => ({ default: m.WorkflowAutomationView }))
37770
37794
  );
37771
37795
  var TasksSideApp2 = lazy3(
37772
- () => import("./TasksSideApp-PJPVJS52.mjs").then((m) => ({ default: m.TasksSideApp }))
37796
+ () => import("./TasksSideApp-4D57XVVN.mjs").then((m) => ({ default: m.TasksSideApp }))
37773
37797
  );
37774
37798
  var AgentDetailSideApp = lazy3(
37775
- () => import("./AgentDetailSideApp-4UGDF4QB.mjs").then((m) => ({ default: m.AgentDetailSideApp }))
37799
+ () => import("./AgentDetailSideApp-ACWJRNBF.mjs").then((m) => ({ default: m.AgentDetailSideApp }))
37776
37800
  );
37777
37801
  var createWrapper = (Component2) => {
37778
37802
  return () => /* @__PURE__ */ jsx151(Suspense4, { fallback: /* @__PURE__ */ jsx151(PanelSuspenseFallback, {}), children: /* @__PURE__ */ jsx151(Component2, { ...{} }) });
@@ -46924,10 +46948,10 @@ var McpAppCard = ({ data, component_key }) => {
46924
46948
  // src/components/GenUI/elements/builtIns.tsx
46925
46949
  import { jsx as jsx189 } from "react/jsx-runtime";
46926
46950
  var TasksSideApp3 = lazy4(
46927
- () => import("./TasksSideApp-PJPVJS52.mjs").then((m) => ({ default: m.TasksSideApp }))
46951
+ () => import("./TasksSideApp-4D57XVVN.mjs").then((m) => ({ default: m.TasksSideApp }))
46928
46952
  );
46929
46953
  var TeamWorkspace = lazy4(
46930
- () => import("./TeamWorkspace-SX5IWDIT.mjs").then((m) => ({ default: m.TeamWorkspace }))
46954
+ () => import("./TeamWorkspace-CKDGQXDK.mjs").then((m) => ({ default: m.TeamWorkspace }))
46931
46955
  );
46932
46956
  var elements = {
46933
46957
  action_show_attachments_uploader: {
@@ -47249,7 +47273,7 @@ var LazyReactInfographic = lazy5(
47249
47273
  () => import("./ReactInfographic-ONUZIC7W.mjs").then((m) => ({ default: m.ReactInfographic }))
47250
47274
  );
47251
47275
  var LazyReactChart = lazy5(
47252
- () => import("./ReactChart-IITPCEFC.mjs").then((m) => ({ default: m.ReactChart }))
47276
+ () => import("./ReactChart-MVMTUCC2.mjs").then((m) => ({ default: m.ReactChart }))
47253
47277
  );
47254
47278
  function BlockLoading() {
47255
47279
  return /* @__PURE__ */ jsx191(
@@ -48161,4 +48185,4 @@ export {
48161
48185
  http://jedwatson.github.io/classnames
48162
48186
  *)
48163
48187
  */
48164
- //# sourceMappingURL=chunk-PJSEGY7Q.mjs.map
48188
+ //# sourceMappingURL=chunk-2XFDXZBC.mjs.map