@flamingo-stack/openframe-frontend-core 0.0.824 → 0.0.825

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 (77) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/chat-protocol/events.d.ts +0 -3
  3. package/dist/chat-protocol/events.d.ts.map +1 -1
  4. package/dist/chat-protocol/frames.d.ts +10 -7
  5. package/dist/chat-protocol/frames.d.ts.map +1 -1
  6. package/dist/chat-protocol/index.cjs +238 -234
  7. package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
  8. package/dist/chat-protocol/leading-frames.js +6 -3
  9. package/dist/chat-protocol/progress.d.ts +13 -20
  10. package/dist/chat-protocol/progress.d.ts.map +1 -1
  11. package/dist/chat-protocol/progress.js +13 -11
  12. package/dist/{chunk-TQ7TUEK2.cjs → chunk-2U7GXE3T.cjs} +2754 -2784
  13. package/dist/{chunk-A3SR6HHX.cjs → chunk-47SHKOCY.cjs} +53 -53
  14. package/dist/{chunk-WSBAIZXL.cjs → chunk-4IY5FKYL.cjs} +11 -11
  15. package/dist/{chunk-M7EBCYKN.cjs → chunk-5S2GW6YG.cjs} +2 -2
  16. package/dist/{chunk-SOSVC6HB.cjs → chunk-6LVJKPR3.cjs} +3 -3
  17. package/dist/{chunk-HDOU3AXV.cjs → chunk-7DJWIVQC.cjs} +19 -19
  18. package/dist/{chunk-C3RAE7RO.cjs → chunk-AO6YVNAH.cjs} +104 -104
  19. package/dist/{chunk-EZTCN43H.cjs → chunk-APTFXX2C.cjs} +39 -39
  20. package/dist/{chunk-WMTV6M5B.cjs → chunk-AUBR3FGY.cjs} +9 -9
  21. package/dist/{chunk-GXBIYPDM.cjs → chunk-BN7QENV7.cjs} +4 -4
  22. package/dist/{chunk-2M4E2V25.cjs → chunk-DNZCSPMU.cjs} +7 -7
  23. package/dist/{chunk-J5U3XHFJ.cjs → chunk-IMMTH3F3.cjs} +10 -10
  24. package/dist/{chunk-2IHGR57J.cjs → chunk-MALCUN2G.cjs} +6 -6
  25. package/dist/{chunk-MROW2JWE.cjs → chunk-MHR4C465.cjs} +3 -3
  26. package/dist/{chunk-5N26M6CK.cjs → chunk-N7IDLF2G.cjs} +32 -32
  27. package/dist/{chunk-B2VRNRTY.cjs → chunk-NL34HKLS.cjs} +47 -47
  28. package/dist/{chunk-XUMZMIHR.cjs → chunk-P25RVNGX.cjs} +16 -16
  29. package/dist/{chunk-TTMTNG3U.cjs → chunk-XJMLZ63Y.cjs} +4 -4
  30. package/dist/{cloud-tenants-VYXMNISG.cjs → cloud-tenants-M4VFFN33.cjs} +4 -4
  31. package/dist/components/case-studies/index.cjs +16 -16
  32. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  33. package/dist/components/chat/embeddable-chat.js +0 -3
  34. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  35. package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
  36. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  37. package/dist/components/chat/hooks/use-unified-chat.js +0 -1
  38. package/dist/components/chat/index.cjs +3 -3
  39. package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
  40. package/dist/components/chat/stream/chat-dialog-store.js +0 -1
  41. package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
  42. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
  43. package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
  44. package/dist/components/chat/types/unified-chat-state.types.d.ts +0 -5
  45. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  46. package/dist/components/contact/index.cjs +5 -5
  47. package/dist/components/docs/index.cjs +8 -8
  48. package/dist/components/embeds/index.cjs +5 -5
  49. package/dist/components/faq/index.cjs +6 -6
  50. package/dist/components/features/index.cjs +4 -4
  51. package/dist/components/help-center-pages/index.cjs +61 -61
  52. package/dist/components/index.cjs +37 -37
  53. package/dist/components/meeting-scheduler/index.cjs +29 -29
  54. package/dist/components/navigation/index.cjs +7 -7
  55. package/dist/components/onboarding-guides/index.cjs +6 -6
  56. package/dist/components/product-demo/index.cjs +13 -13
  57. package/dist/components/tickets/index.cjs +9 -9
  58. package/dist/components/ui/index.cjs +4 -4
  59. package/dist/{devices-NTYNZEGJ.cjs → devices-DW5NDXMD.cjs} +5 -5
  60. package/dist/{embeddable-chat-JAUO4O2T.cjs → embeddable-chat-NBJMXEXB.cjs} +63 -66
  61. package/dist/index.cjs +8 -8
  62. package/dist/{knowledge-I2LW27EP.cjs → knowledge-EYJG2TNW.cjs} +5 -5
  63. package/dist/{logs-KLZHXSOU.cjs → logs-2LV7DTSL.cjs} +12 -12
  64. package/dist/{policies-SMDAHDKL.cjs → policies-HSDYIQBX.cjs} +8 -8
  65. package/dist/{scripts-OMBBPNTU.cjs → scripts-UI6V7ANQ.cjs} +9 -9
  66. package/dist/{software-update-ZIJYNJIC.cjs → software-update-WMLY7VHH.cjs} +7 -7
  67. package/package.json +1 -1
  68. package/src/chat-protocol/events.ts +0 -3
  69. package/src/chat-protocol/frames.ts +12 -8
  70. package/src/chat-protocol/leading-frames.ts +7 -4
  71. package/src/chat-protocol/progress.ts +31 -28
  72. package/src/components/chat/embeddable-chat.tsx +0 -5
  73. package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
  74. package/src/components/chat/hooks/use-unified-chat.ts +0 -1
  75. package/src/components/chat/stream/chat-dialog-store.ts +0 -1
  76. package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
  77. package/src/components/chat/types/unified-chat-state.types.ts +0 -6
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
8
8
  var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
9
9
 
10
10
 
11
- var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
11
+ var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
12
12
  require('./chunk-467T3LCG.cjs');
13
13
  require('./chunk-EHANO6UE.cjs');
14
14
  require('./chunk-IJCSQFLD.cjs');
@@ -21,10 +21,10 @@ require('./chunk-7Z536SPR.cjs');
21
21
  require('./chunk-7DNL734S.cjs');
22
22
  require('./chunk-MZ4KBSH7.cjs');
23
23
  require('./chunk-5SZ4ILU3.cjs');
24
- require('./chunk-XUMZMIHR.cjs');
24
+ require('./chunk-P25RVNGX.cjs');
25
25
 
26
26
 
27
- var _chunkTQ7TUEK2cjs = require('./chunk-TQ7TUEK2.cjs');
27
+ var _chunk2U7GXE3Tcjs = require('./chunk-2U7GXE3T.cjs');
28
28
  require('./chunk-OBQ5WUNG.cjs');
29
29
  require('./chunk-6CZVQ72C.cjs');
30
30
  require('./chunk-ZRDVFADQ.cjs');
@@ -1905,10 +1905,10 @@ function KnowledgeScreen(_props) {
1905
1905
  const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1906
1906
  const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
1907
1907
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1908
- _chunkC3RAE7ROcjs.KnowledgeBaseArticleView,
1908
+ _chunkAO6YVNAHcjs.KnowledgeBaseArticleView,
1909
1909
  {
1910
1910
  ...fixture.article,
1911
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTQ7TUEK2cjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
1911
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
1912
1912
  }
1913
1913
  ) });
1914
1914
  }
@@ -16,7 +16,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
19
+ var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
20
20
  require('./chunk-467T3LCG.cjs');
21
21
  require('./chunk-EHANO6UE.cjs');
22
22
  require('./chunk-IJCSQFLD.cjs');
@@ -31,8 +31,8 @@ require('./chunk-MZ4KBSH7.cjs');
31
31
  require('./chunk-5SZ4ILU3.cjs');
32
32
 
33
33
 
34
- var _chunkXUMZMIHRcjs = require('./chunk-XUMZMIHR.cjs');
35
- require('./chunk-TQ7TUEK2.cjs');
34
+ var _chunkP25RVNGXcjs = require('./chunk-P25RVNGX.cjs');
35
+ require('./chunk-2U7GXE3T.cjs');
36
36
  require('./chunk-OBQ5WUNG.cjs');
37
37
  require('./chunk-6CZVQ72C.cjs');
38
38
  require('./chunk-ZRDVFADQ.cjs');
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
1886
1886
  id: logId,
1887
1887
  logId,
1888
1888
  timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
1889
- status: { label: severity, variant: _chunkC3RAE7ROcjs.logSeverityVariant.call(void 0, severity) },
1889
+ status: { label: severity, variant: _chunkAO6YVNAHcjs.logSeverityVariant.call(void 0, severity) },
1890
1890
  source: { name: toolType, toolType },
1891
1891
  device: device2,
1892
1892
  description: { title: summary }
@@ -1958,13 +1958,13 @@ var NO_FILTERS = {};
1958
1958
  var ACTION_COLUMNS = ["copy", "quickView", "open"];
1959
1959
  var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
1960
1960
  var logHref = () => "#";
1961
- var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.LogCopyIconButton, {});
1961
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.LogCopyIconButton, {});
1962
1962
  function LogsScreen({ compact = false }) {
1963
1963
  const [dock, setDock] = _react.useState.call(void 0, null);
1964
1964
  const selected = LOGS_FIXTURE_SELECTED;
1965
1965
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
1966
1966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1967
- _chunkC3RAE7ROcjs.LogsPageView,
1967
+ _chunkAO6YVNAHcjs.LogsPageView,
1968
1968
  {
1969
1969
  showHeader: false,
1970
1970
  className: "p-[var(--spacing-system-l)]",
@@ -1972,7 +1972,7 @@ function LogsScreen({ compact = false }) {
1972
1972
  onSearchChange: noop,
1973
1973
  onOpenFilters: noop,
1974
1974
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1975
- _chunkC3RAE7ROcjs.LogsTableView,
1975
+ _chunkAO6YVNAHcjs.LogsTableView,
1976
1976
  {
1977
1977
  logs: LOGS_FIXTURE_ENTRIES,
1978
1978
  facets: LOGS_FIXTURE_FACETS,
@@ -1986,8 +1986,8 @@ function LogsScreen({ compact = false }) {
1986
1986
  )
1987
1987
  }
1988
1988
  ) }),
1989
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
- _chunkC3RAE7ROcjs.LogDrawer,
1989
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
+ _chunkAO6YVNAHcjs.LogDrawer,
1991
1991
  {
1992
1992
  docked: true,
1993
1993
  isOpen: true,
@@ -1999,12 +1999,12 @@ function LogsScreen({ compact = false }) {
1999
1999
  { label: "Log ID", value: selected.logId },
2000
2000
  {
2001
2001
  label: "Source",
2002
- value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.ToolBadge, { toolType: _chunkXUMZMIHRcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2002
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.ToolBadge, { toolType: _chunkP25RVNGXcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2003
2003
  },
2004
- { label: "Device", value: _chunkC3RAE7ROcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2004
+ { label: "Device", value: _chunkAO6YVNAHcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2005
2005
  ],
2006
2006
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkC3RAE7ROcjs.DeviceCard,
2007
+ _chunkAO6YVNAHcjs.DeviceCard,
2008
2008
  {
2009
2009
  ...LOGS_FIXTURE_DEVICE,
2010
2010
  actions: {
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
13
+ var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
14
14
  require('./chunk-467T3LCG.cjs');
15
15
  require('./chunk-EHANO6UE.cjs');
16
16
  require('./chunk-IJCSQFLD.cjs');
@@ -23,8 +23,8 @@ require('./chunk-7Z536SPR.cjs');
23
23
  require('./chunk-7DNL734S.cjs');
24
24
  require('./chunk-MZ4KBSH7.cjs');
25
25
  require('./chunk-5SZ4ILU3.cjs');
26
- require('./chunk-XUMZMIHR.cjs');
27
- require('./chunk-TQ7TUEK2.cjs');
26
+ require('./chunk-P25RVNGX.cjs');
27
+ require('./chunk-2U7GXE3T.cjs');
28
28
  require('./chunk-OBQ5WUNG.cjs');
29
29
  require('./chunk-6CZVQ72C.cjs');
30
30
  require('./chunk-ZRDVFADQ.cjs');
@@ -1891,14 +1891,14 @@ var POLICIES = [
1891
1891
  policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
1892
1892
  ];
1893
1893
  var POLICIES_FIXTURE = {
1894
- summary: _chunkC3RAE7ROcjs.computePolicySummary.call(void 0, POLICIES),
1894
+ summary: _chunkAO6YVNAHcjs.computePolicySummary.call(void 0, POLICIES),
1895
1895
  rows: POLICIES.map((item) => ({
1896
1896
  id: item.id,
1897
1897
  name: item.name,
1898
1898
  description: item.description,
1899
1899
  critical: item.critical,
1900
1900
  severityLabel: item.critical ? "Critical" : "Low",
1901
- status: _chunkC3RAE7ROcjs.getPolicyTableStatus.call(void 0, item),
1901
+ status: _chunkAO6YVNAHcjs.getPolicyTableStatus.call(void 0, item),
1902
1902
  actions: [
1903
1903
  { label: "Policy Details", onClick: noop },
1904
1904
  { label: "Delete Policy", onClick: noop }
@@ -1912,16 +1912,16 @@ var POLICIES_FIXTURE = {
1912
1912
  var _jsxruntime = require('react/jsx-runtime');
1913
1913
  function PoliciesScreen({ compact = false }) {
1914
1914
  const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1915
- _chunkC3RAE7ROcjs.PoliciesTable,
1915
+ _chunkAO6YVNAHcjs.PoliciesTable,
1916
1916
  {
1917
1917
  rows: POLICIES_FIXTURE.rows,
1918
1918
  rowAsLink: true,
1919
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.DataTable.RowCount, {}),
1919
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.DataTable.RowCount, {}),
1920
1920
  emptyMessage: "No policies found."
1921
1921
  }
1922
1922
  );
1923
1923
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
1924
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1924
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1925
1925
  table
1926
1926
  ] });
1927
1927
  }
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
16
+ var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
17
17
  require('./chunk-467T3LCG.cjs');
18
18
  require('./chunk-EHANO6UE.cjs');
19
19
 
@@ -28,8 +28,8 @@ require('./chunk-7Z536SPR.cjs');
28
28
  require('./chunk-7DNL734S.cjs');
29
29
  require('./chunk-MZ4KBSH7.cjs');
30
30
  require('./chunk-5SZ4ILU3.cjs');
31
- require('./chunk-XUMZMIHR.cjs');
32
- require('./chunk-TQ7TUEK2.cjs');
31
+ require('./chunk-P25RVNGX.cjs');
32
+ require('./chunk-2U7GXE3T.cjs');
33
33
  require('./chunk-OBQ5WUNG.cjs');
34
34
  require('./chunk-6CZVQ72C.cjs');
35
35
  require('./chunk-ZRDVFADQ.cjs');
@@ -1995,8 +1995,8 @@ function buildScriptsFixture(cast) {
1995
1995
  var _jsxruntime = require('react/jsx-runtime');
1996
1996
  var WIDE_HIDDEN_COLUMNS = ["result", "open"];
1997
1997
  var COMPACT_COLUMNS = [
1998
- { ..._chunkC3RAE7ROcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
- _chunkC3RAE7ROcjs.EXECUTION_COLUMNS.status
1998
+ { ..._chunkAO6YVNAHcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
+ _chunkAO6YVNAHcjs.EXECUTION_COLUMNS.status
2000
2000
  ];
2001
2001
  var COMPACT_ROWS = 4;
2002
2002
  var TOKEN_CLASS = {
@@ -2055,7 +2055,7 @@ function ScriptCodePicture({ script }) {
2055
2055
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
2056
2056
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIJCSQFLDcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
2057
2057
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2058
- _chunkC3RAE7ROcjs.ScriptShellBadge,
2058
+ _chunkAO6YVNAHcjs.ScriptShellBadge,
2059
2059
  {
2060
2060
  value: script.shellType,
2061
2061
  className: "shrink-0 text-ods-text-secondary text-h6",
@@ -2079,7 +2079,7 @@ function ScriptsScreen({ compact = false }) {
2079
2079
  return (
2080
2080
  // Four runs of the card's row height fill the frame; the padding is what is left round them.
2081
2081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2082
- _chunkC3RAE7ROcjs.ScriptExecutionsTable,
2082
+ _chunkAO6YVNAHcjs.ScriptExecutionsTable,
2083
2083
  {
2084
2084
  rows: fixture.executions.slice(0, COMPACT_ROWS),
2085
2085
  columns: COMPACT_COLUMNS,
@@ -2089,13 +2089,13 @@ function ScriptsScreen({ compact = false }) {
2089
2089
  ) })
2090
2090
  );
2091
2091
  }
2092
- const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkC3RAE7ROcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2092
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2093
2093
  return (
2094
2094
  // The frame's tighter padding and no header row: the output opened under a run needs the height.
2095
2095
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
2096
2096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
2097
2097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2098
- _chunkC3RAE7ROcjs.ScriptExecutionsTable,
2098
+ _chunkAO6YVNAHcjs.ScriptExecutionsTable,
2099
2099
  {
2100
2100
  rows: fixture.executions,
2101
2101
  hideColumns: WIDE_HIDDEN_COLUMNS,
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkC3RAE7ROcjs = require('./chunk-C3RAE7RO.cjs');
18
+ var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
19
19
  require('./chunk-467T3LCG.cjs');
20
20
  require('./chunk-EHANO6UE.cjs');
21
21
 
@@ -30,8 +30,8 @@ require('./chunk-7Z536SPR.cjs');
30
30
  require('./chunk-7DNL734S.cjs');
31
31
  require('./chunk-MZ4KBSH7.cjs');
32
32
  require('./chunk-5SZ4ILU3.cjs');
33
- require('./chunk-XUMZMIHR.cjs');
34
- require('./chunk-TQ7TUEK2.cjs');
33
+ require('./chunk-P25RVNGX.cjs');
34
+ require('./chunk-2U7GXE3T.cjs');
35
35
  require('./chunk-OBQ5WUNG.cjs');
36
36
  require('./chunk-6CZVQ72C.cjs');
37
37
  require('./chunk-ZRDVFADQ.cjs');
@@ -1922,12 +1922,12 @@ function StaticPackageField({ value }) {
1922
1922
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1923
1923
  _chunkIJCSQFLDcjs.Autocomplete,
1924
1924
  {
1925
- label: _chunkC3RAE7ROcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunkAO6YVNAHcjs.PACKAGE_SEARCH_LABEL,
1926
1926
  labelVariant: "large",
1927
1927
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1928
1928
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1929
1929
  onChange: noop,
1930
- placeholder: _chunkC3RAE7ROcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunkAO6YVNAHcjs.PACKAGE_SEARCH_PLACEHOLDER
1931
1931
  }
1932
1932
  );
1933
1933
  }
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1941
1941
  [fixture.devices, fixture.selectedIds]
1942
1942
  );
1943
1943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1944
- _chunkC3RAE7ROcjs.SoftwareActionForm,
1944
+ _chunkAO6YVNAHcjs.SoftwareActionForm,
1945
1945
  {
1946
1946
  action: fixture.action,
1947
1947
  showHeader: false,
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1953
1953
  initialValues: fixture.initialValues,
1954
1954
  renderPackageSearch,
1955
1955
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1956
- _chunkC3RAE7ROcjs.DeviceSelector,
1956
+ _chunkAO6YVNAHcjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.824",
3
+ "version": "0.0.825",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -17,7 +17,6 @@ import type { AskOptionData, ChatSource } from '../components/chat/types/message
17
17
  // The wire-frame shapes these events carry through are defined ONCE in
18
18
  // `./frames.ts` — reuse them here rather than restating their fields.
19
19
  import type { ApprovalRequestField, DecisionResolvedFrame, UsageTelemetry } from './frames';
20
- import type { ChatProgress } from './progress';
21
20
 
22
21
  /** Optional envelope on every event. `seq` carries the transport's
23
22
  * stream sequence (JetStream `streamSeq` on NATS; unused on SSE). */
@@ -73,8 +72,6 @@ export interface AskEvent extends ChatStreamEventBase {
73
72
  export interface StatusEvent extends ChatStreamEventBase {
74
73
  type: 'status';
75
74
  phase: 'thinking';
76
- /** What the turn is doing right now, when the server says (`./progress`). */
77
- progress?: ChatProgress;
78
75
  }
79
76
 
80
77
  /** NATS tool execution progress (EXECUTING_TOOL / EXECUTED_TOOL). */
@@ -18,8 +18,6 @@
18
18
  * Server-safe: no React, no browser APIs beyond TextEncoder/TextDecoder.
19
19
  */
20
20
 
21
- import type { ChatProgressStage } from './progress';
22
-
23
21
  // =============================================================================
24
22
  // Sentinel constants
25
23
  // =============================================================================
@@ -84,11 +82,16 @@ export interface RoutedAnswerBreakdown {
84
82
  * within ~200ms, before any upstream byte arrives. */
85
83
  export interface StatusThinkingFrame {
86
84
  status: 'thinking';
87
- /** What the turn is doing right now (`./progress`): a fixed vocabulary, shown
88
- * as one line while the user waits. May be sent again as the stage moves. */
89
- stage?: ChatProgressStage;
90
- /** How many of the thing the stage works on (sources searched, results read). */
91
- count?: number;
85
+ }
86
+
87
+ /** A step of the turn (`./progress`), in the chunk shape a NATS tool run has: the decoder reads it with
88
+ * `decodeNatsChunk` and the chat draws it as that run's row. */
89
+ export interface ToolExecutionFrame {
90
+ type: 'EXECUTING_TOOL' | 'EXECUTED_TOOL';
91
+ toolFunction: string;
92
+ title: string;
93
+ toolExecutionRequestId: string;
94
+ success?: boolean;
92
95
  }
93
96
 
94
97
  /** Per-turn metadata frame. The emitter sends `options.metadata`
@@ -231,7 +234,8 @@ export type SseLeadingFrame =
231
234
  | ToolErrorFrame
232
235
  | ApprovalRequestFrame
233
236
  | ApprovalBatchFrame
234
- | DecisionResolvedFrame;
237
+ | DecisionResolvedFrame
238
+ | ToolExecutionFrame;
235
239
 
236
240
  // =============================================================================
237
241
  // Trailing usage frame
@@ -9,8 +9,9 @@
9
9
  * Server-safe: no React, no browser APIs.
10
10
  */
11
11
 
12
+ import { MESSAGE_TYPE } from '../components/chat/types/message.types';
12
13
  import type { ChatStreamEvent } from './events';
13
- import { chatProgressOf } from './progress';
14
+ import { decodeNatsChunk } from './nats-decoder';
14
15
 
15
16
  /**
16
17
  * Escape `<` so markdown renderers that pass HTML through (rehypeRaw)
@@ -51,9 +52,11 @@ export function frameNum(value: unknown): number | undefined {
51
52
  */
52
53
  export function mapLeadingFrame(meta: Record<string, unknown>, out: ChatStreamEvent[]): void {
53
54
  if (meta.status === 'thinking') {
54
- // The frame may name the stage the turn is in; an unknown stage is a plain "thinking".
55
- const progress = chatProgressOf(meta);
56
- out.push(progress ? { type: 'status', phase: 'thinking', progress } : { type: 'status', phase: 'thinking' });
55
+ out.push({ type: 'status', phase: 'thinking' });
56
+ } else if (meta.type === MESSAGE_TYPE.EXECUTING_TOOL || meta.type === MESSAGE_TYPE.EXECUTED_TOOL) {
57
+ // A step of the turn, in the chunk shape a NATS tool run has, read by the NATS decoder itself.
58
+ const event = decodeNatsChunk(meta);
59
+ if (event) out.push(event);
57
60
  } else if (meta.kind === 'thinking-delta' && typeof meta.text === 'string') {
58
61
  // Wire is ALREADY delta — emit verbatim, append-only contract.
59
62
  out.push({ type: 'thinking-delta', text: meta.text });
@@ -1,23 +1,18 @@
1
1
  /**
2
- * What a turn is doing before its first answer token: the named stages a server
3
- * reports while it works, and the line a client shows for each.
2
+ * What a turn is doing before its first answer token: the named stages a server reports while it works, and the line
3
+ * a client shows for each.
4
4
  *
5
- * A retrieval chat spends seconds before any text exists (reading the question,
6
- * searching, reading what it found). A generic spinner for that whole time says
7
- * nothing; a line naming the real step ("Searching 28 sources") does, and people
8
- * wait more willingly for it. The stage is a FIXED vocabulary on the wire (never
9
- * model text, a rewritten query or a source name), so it is safe on a public
10
- * chat and the wording stays the client's: `chatProgressLabel` is the one place
11
- * the copy lives.
12
- *
13
- * Wire: the existing `{ status: 'thinking' }` leading frame, with an optional
14
- * `stage` and `count`. A client that predates the stage reads the frame exactly
15
- * as before; a client that knows it shows the line. A stage it does not know is
16
- * dropped (the frame is still a plain "thinking").
5
+ * A retrieval chat spends seconds before any text exists (reading the question, searching, reading what it found). Each
6
+ * stage is reported as a step of the turn, in the chunk shape a NATS tool run has (`ToolExecutionFrame`), so the chat
7
+ * draws it as the row it draws for a tool run: working while the stage runs, done when it ends. The stage is a FIXED
8
+ * vocabulary (never model text, a rewritten query or a source name), so it is safe on a public chat, and its line lives
9
+ * here only (`chatProgressLabel`).
17
10
  *
18
11
  * Server-safe: no React, no browser APIs.
19
12
  */
20
13
 
14
+ import type { ToolExecutionFrame } from './frames';
15
+
21
16
  export const CHAT_PROGRESS_STAGES = ['understanding', 'searching', 'searching_again', 'reading'] as const;
22
17
 
23
18
  export type ChatProgressStage = (typeof CHAT_PROGRESS_STAGES)[number];
@@ -28,20 +23,6 @@ export interface ChatProgress {
28
23
  count?: number;
29
24
  }
30
25
 
31
- export function isChatProgressStage(value: unknown): value is ChatProgressStage {
32
- return typeof value === 'string' && (CHAT_PROGRESS_STAGES as readonly string[]).includes(value);
33
- }
34
-
35
- /** A parsed status frame's progress, or null when it carries no stage this client knows. */
36
- export function chatProgressOf(frame: { stage?: unknown; count?: unknown }): ChatProgress | null {
37
- if (!isChatProgressStage(frame.stage)) return null;
38
- const count =
39
- typeof frame.count === 'number' && Number.isFinite(frame.count) && frame.count > 0
40
- ? Math.floor(frame.count)
41
- : undefined;
42
- return count === undefined ? { stage: frame.stage } : { stage: frame.stage, count };
43
- }
44
-
45
26
  const PROGRESS_LABEL: Record<ChatProgressStage, (count: number | undefined) => string> = {
46
27
  understanding: () => 'Understanding your question',
47
28
  searching: count => (count ? `Searching ${count} ${count === 1 ? 'source' : 'sources'}` : 'Searching'),
@@ -53,3 +34,25 @@ const PROGRESS_LABEL: Record<ChatProgressStage, (count: number | undefined) => s
53
34
  export function chatProgressLabel(progress: ChatProgress): string {
54
35
  return PROGRESS_LABEL[progress.stage](progress.count);
55
36
  }
37
+
38
+ /**
39
+ * The frame for a stage of one turn: `running` opens its row, `done` or `failed` closes it. `turnId` keeps the row's id
40
+ * unique to the turn, since a closing frame updates the open row of the same id anywhere in the thread.
41
+ */
42
+ export function chatProgressFrame(
43
+ progress: ChatProgress,
44
+ state: 'running' | 'done' | 'failed',
45
+ turnId: string,
46
+ ): ToolExecutionFrame {
47
+ const id = `${turnId}:${progress.stage}`;
48
+ const title = chatProgressLabel(progress);
49
+ return state === 'running'
50
+ ? { type: 'EXECUTING_TOOL', toolFunction: progress.stage, title, toolExecutionRequestId: id }
51
+ : {
52
+ type: 'EXECUTED_TOOL',
53
+ toolFunction: progress.stage,
54
+ title,
55
+ toolExecutionRequestId: id,
56
+ success: state === 'done',
57
+ };
58
+ }
@@ -40,7 +40,6 @@ import { usePreventScroll } from '@react-aria/overlays';
40
40
  import { isIOS } from '@react-aria/utils';
41
41
  import { MessageSquare } from 'lucide-react';
42
42
  import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
43
- import { chatProgressLabel } from '../../chat-protocol/progress';
44
43
  import { useRequiredChatRuntime } from '../../contexts/chat-runtime-context';
45
44
  import { useIsHydrated } from '../../hooks/ui/use-is-hydrated';
46
45
  import { cn } from '../../utils/cn';
@@ -1278,7 +1277,6 @@ function EmbeddableChatInner({
1278
1277
  const {
1279
1278
  messages: rawMessages,
1280
1279
  isLoading: chatLoading,
1281
- streamingProgress,
1282
1280
  sendMessage: sendMessageRaw,
1283
1281
  discussRef,
1284
1282
  stopMessage,
@@ -2912,9 +2910,6 @@ function EmbeddableChatInner({
2912
2910
  // faces, 16px between messages (shared with fae v2).
2913
2911
  appearance={appearance}
2914
2912
  isTyping={chatLoading}
2915
- // The stage the turn reports while the user waits
2916
- // ("Searching 28 sources"); the generic phrase otherwise.
2917
- typingMessage={streamingProgress ? chatProgressLabel(streamingProgress) : undefined}
2918
2913
  // Sticky footer for approvals the host lifted out of the
2919
2914
  // thread — see the prop's docblock.
2920
2915
  pendingApprovals={pendingApprovals}
@@ -846,8 +846,6 @@ export function useSseChatAdapter(
846
846
  stopMessage,
847
847
  clearMessages,
848
848
  streamingPhase,
849
- /** The stage the pending turn reports before its first token, or null. */
850
- streamingProgress: state.streamingProgress,
851
849
  /** True while the mount-time rebuild from the server transcript runs. */
852
850
  isHydratingHistory,
853
851
  /** Provider key for the lib's `<ModelDisplay>` icon. */
@@ -214,7 +214,6 @@ export function useUnifiedChat(options: UseUnifiedChatOptions): UnifiedChatState
214
214
  messages: activeState.messages,
215
215
  isLoading: activeState.isLoading,
216
216
  streamingPhase: activeState.streamingPhase,
217
- streamingProgress: activeState.streamingProgress ?? null,
218
217
  sendMessage,
219
218
  stopMessage,
220
219
  clearMessages,
@@ -199,7 +199,6 @@ export interface EvictedReducerState {
199
199
  const EMPTY_STATE: ChatReducerState = Object.freeze({
200
200
  messages: Object.freeze([]) as unknown as ChatReducerState['messages'],
201
201
  streamingPhase: 'idle',
202
- streamingProgress: null,
203
202
  turnMeta: Object.freeze({
204
203
  meta: new Map(),
205
204
  sources: new Map(),
@@ -60,7 +60,6 @@ import {
60
60
  type UsageEvent,
61
61
  } from '../../../chat-protocol/events';
62
62
  import { escapeThinkingTags } from '../../../chat-protocol/leading-frames';
63
- import type { ChatProgress } from '../../../chat-protocol/progress';
64
63
  import { mergeSourceMetadata, type SourceMetadata } from '../../../chat-protocol/source-metadata';
65
64
  import type {
66
65
  ApprovalBatchSegment,
@@ -156,9 +155,6 @@ export interface ChatTurnMetaState {
156
155
  export interface ChatReducerState {
157
156
  messages: UnifiedChatMessage[];
158
157
  streamingPhase: StreamingPhase;
159
- /** What the pending turn is doing, while it is still thinking and the server
160
- * has said (`chat-protocol/progress`). Null once text streams or the turn ends. */
161
- streamingProgress: ChatProgress | null;
162
158
  turnMeta: ChatTurnMetaState;
163
159
  dialogTokenUsage?: DialogTokenUsage | null;
164
160
  liveModel?: {
@@ -534,7 +530,6 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
534
530
  // ── Mutable internals ──────────────────────────────────────────────────
535
531
  let messages: UnifiedChatMessage[] = [];
536
532
  let streamingPhase: StreamingPhase = 'idle';
537
- let streamingProgress: ChatProgress | null = null;
538
533
  let dialogTokenUsage: DialogTokenUsage | null = null;
539
534
  let liveModel: ChatReducerState['liveModel'] = null;
540
535
  let approvalStatuses: Record<string, ChatApprovalStatus> = {
@@ -694,8 +689,6 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
694
689
  stateCache = {
695
690
  messages,
696
691
  streamingPhase,
697
- // A stage describes the wait before the first token only.
698
- streamingProgress: streamingPhase === 'thinking' ? streamingProgress : null,
699
692
  turnMeta: { meta: metaMap, sources: sourcesMap, sendCount },
700
693
  dialogTokenUsage,
701
694
  liveModel,
@@ -1589,10 +1582,6 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
1589
1582
  const sendIdx = sendCount - 1;
1590
1583
  switch (event.type) {
1591
1584
  case 'status':
1592
- if (event.progress) {
1593
- streamingProgress = event.progress;
1594
- invalidate();
1595
- }
1596
1585
  setPhaseInternal('thinking');
1597
1586
  break;
1598
1587
  case 'thinking-delta':
@@ -1697,10 +1686,12 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
1697
1686
  case 'usage':
1698
1687
  applySseUsage(event, sendIdx);
1699
1688
  break;
1700
- // NOTE: 'tool-execution' is intentionally NOT handled on the SSE
1701
- // kernel — the SSE wire never carries it, and routing it through the
1702
- // accumulator would invoke resolvePendingApprovalForExecution, which
1703
- // is a NATS-only semantic (observer streams without APPROVAL_RESULT).
1689
+ // A step the server reports before the answer (the hub's turn stages): the same row a NATS tool run is,
1690
+ // through the same message updater (it merges EXECUTED into its EXECUTING row). Not through the accumulator:
1691
+ // that would invoke resolvePendingApprovalForExecution, a NATS-only semantic.
1692
+ case 'tool-execution':
1693
+ setMessagesInternal(applyToolExecutionToMessages(messages, { type: 'tool_execution', data: event.data }));
1694
+ break;
1704
1695
  default:
1705
1696
  break;
1706
1697
  }
@@ -1913,7 +1904,6 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
1913
1904
  { id: nextId('assistant'), role: 'assistant', content: '', segments: [] },
1914
1905
  ];
1915
1906
  streamingPhase = 'thinking';
1916
- streamingProgress = null;
1917
1907
  invalidate();
1918
1908
  },
1919
1909
  clearThread() {
@@ -1961,7 +1951,6 @@ export function createChatStreamReducer(options: ChatStreamReducerOptions = {}):
1961
1951
  sendCount += 1;
1962
1952
  sseCurrentText = '';
1963
1953
  streamingPhase = 'thinking';
1964
- streamingProgress = null;
1965
1954
  invalidate();
1966
1955
  },
1967
1956
  endSseTurn() {
@@ -16,7 +16,6 @@
16
16
  * `sources`). In the off-mode they're null/undefined.
17
17
  */
18
18
 
19
- import type { ChatProgress } from '../../../chat-protocol/progress';
20
19
  import type { ChatRef } from '../chat-ref.types';
21
20
  import type { ChatAttachment } from '../utils/chat-attachment-markdown';
22
21
  import type { AuthorType } from './chat.types';
@@ -336,11 +335,6 @@ export interface UnifiedChatState {
336
335
  /** Granular phase for the "Thinking..."/"Streaming..." status row above input. */
337
336
  streamingPhase: StreamingPhase;
338
337
 
339
- /** What the pending turn is doing before its first token ("searching 28
340
- * sources"), when the transport reports it. Optional: a transport with no
341
- * stages leaves it out and the status row keeps its generic phrase. */
342
- streamingProgress?: ChatProgress | null;
343
-
344
338
  /** True while the adapter is rebuilding the message list from the
345
339
  * server-side transcript store (SSE/Guide mount-time hydration). Optional —
346
340
  * transports without server hydration (NATS manages its own dialog