@qredence/fleet 0.5.0 → 0.5.5

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 (122) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +8 -1
  3. package/bin/fleet-prime.mjs +6 -0
  4. package/dist/web/client/assets/action-swap-roll-DX5o_33Q.js +1 -0
  5. package/dist/web/client/assets/artifacts-panel-C3yewUBP.js +1 -0
  6. package/dist/web/client/assets/artifacts-utils-N_kUFbz2.js +1 -0
  7. package/dist/web/client/assets/bot-Bs7QWJ2q.js +1 -0
  8. package/dist/web/client/assets/{chat-C64Sv6V-.js → chat-W-yOMyG_.js} +5 -5
  9. package/dist/web/client/assets/chat-command-palette-D0xDK1j4.js +1 -0
  10. package/dist/web/client/assets/command-CQzrtjyj.js +2 -0
  11. package/dist/web/client/assets/ease-vFBiNFNK.js +9 -0
  12. package/dist/web/client/assets/{fleet-pi-tool-renderer-ZKiX6Ob_.js → fleet-pi-tool-renderer-B0Y7ou0U.js} +28 -30
  13. package/dist/web/client/assets/generative-text-renderer-SS9c1kNX.js +6 -0
  14. package/dist/web/client/assets/globals-D_Hy9bT1.css +2 -0
  15. package/dist/web/client/assets/horizontal-resize-C1TpRLNC.js +1 -0
  16. package/dist/web/client/assets/index-C9FloFgj.js +12 -0
  17. package/dist/web/client/assets/{input-Clyn18XG.js → input-CqC82Agz.js} +1 -1
  18. package/dist/web/client/assets/{input-group-MxDAWX3j.js → input-group-H0TG-mkU.js} +1 -1
  19. package/dist/web/client/assets/ipython-tool-BrMePqD-.js +3 -0
  20. package/dist/web/client/assets/markdown-DG7pUdsX.js +2 -0
  21. package/dist/web/client/assets/{markdown-code-pIaEVDUU.js → markdown-code-BgMzpy7O.js} +1 -1
  22. package/dist/web/client/assets/notify-Duj26eeZ.js +1 -0
  23. package/dist/web/client/assets/{openui-renderer-NLUpAS3h.js → openui-renderer-CCfQqUfE.js} +5 -5
  24. package/dist/web/client/assets/openui-utils-DawGoQNp.js +1 -0
  25. package/dist/web/client/assets/prime-agent-artifacts-C-g1VPiW.js +5 -0
  26. package/dist/web/client/assets/{provider-catalog-Gx9qaHBM.js → provider-catalog-BZhZuKSz.js} +1 -1
  27. package/dist/web/client/assets/provider-label-jKm8v18u.js +1 -0
  28. package/dist/web/client/assets/range-65lubOFp.js +2 -0
  29. package/dist/web/client/assets/repl-panel-CCh4ly7J.js +1 -0
  30. package/dist/web/client/assets/resource-helpers-ULlyU8qK.js +2 -0
  31. package/dist/web/client/assets/resources-panel-DSU7VGX2.js +1 -0
  32. package/dist/web/client/assets/routes-DSTyx_J0.js +16 -0
  33. package/dist/web/client/assets/session-insights-panel-CQdT90Op.js +1 -0
  34. package/dist/web/client/assets/settings-dialog-CkfpTKfM.js +1 -0
  35. package/dist/web/client/assets/skeleton-loaders-fStjEeRP.js +1 -0
  36. package/dist/web/client/assets/square-terminal-BYTN_I86.js +1 -0
  37. package/dist/web/client/assets/subagent-chat-panel-D-qw4uWb.js +1 -0
  38. package/dist/web/client/assets/subagent-transcript-C7oRwEEP.js +1 -0
  39. package/dist/web/client/assets/subagents-panel-aSMWZP9p.js +1 -0
  40. package/dist/web/client/assets/{switch-ojzdMno9.js → switch-BFEBpUEU.js} +1 -1
  41. package/dist/web/client/assets/{tool-result-QvhjpNGX.js → tool-result-C2NvnN32.js} +3 -3
  42. package/dist/web/client/assets/ui-preferences-DUEFuJFj.js +1 -0
  43. package/dist/web/client/assets/workspace-panel-CjdXlEvd.js +1 -0
  44. package/dist/web/client/assets/workspace-path-nav-C0AQNZyy.js +1 -0
  45. package/dist/web/server/{_tanstack-start-manifest_v-uZddQetG-MNZGQOSA.js → _tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js} +23 -16
  46. package/dist/web/server/{artifacts-panel-knpQvJ-q-WJLZ76QB.js → artifacts-panel-Bt7YUzm4-NCBMXJ25.js} +39 -72
  47. package/dist/web/server/{chat-command-palette-CPv5GmGJ-22J32S6P.js → chat-command-palette-Co1L3rUY-RQLNME4T.js} +43 -20
  48. package/dist/web/server/{chunk-5277VI3D.js → chunk-2V6B62OF.js} +213 -275
  49. package/dist/web/server/{chunk-W7LNJCRJ.js → chunk-3HUI75QM.js} +75 -67
  50. package/dist/web/server/{chunk-I3FDTJFO.js → chunk-46VQY7SG.js} +6 -87
  51. package/dist/web/server/{chunk-PRT4QYOB.js → chunk-4UBOIY2S.js} +2 -35
  52. package/dist/web/server/{chunk-WTYNN6EV.js → chunk-54II5QXQ.js} +23 -1
  53. package/dist/web/server/chunk-56HSKUBD.js +1805 -0
  54. package/dist/web/server/{chunk-RPROZ2JC.js → chunk-5RQ6QAZX.js} +133 -133
  55. package/dist/web/server/{chunk-APN3LVRT.js → chunk-6D524OCJ.js} +201 -204
  56. package/dist/web/server/chunk-6GMKRR3C.js +161 -0
  57. package/dist/web/server/chunk-74QOI457.js +45 -0
  58. package/dist/web/server/{chunk-UBUXV2TW.js → chunk-AECEK3K7.js} +8 -8
  59. package/dist/web/server/chunk-AQ66E5OW.js +33 -0
  60. package/dist/web/server/{chunk-JD6EWZCU.js → chunk-AWFOBHH4.js} +50 -50
  61. package/dist/web/server/{chunk-MK3P3OBZ.js → chunk-BEMDNODD.js} +5 -5
  62. package/dist/web/server/{chunk-X2TUFLTP.js → chunk-BLVCDQ7E.js} +438 -438
  63. package/dist/web/server/chunk-FZRBAPUM.js +48 -0
  64. package/dist/web/server/chunk-G5BCQQ5N.js +34 -0
  65. package/dist/web/server/chunk-KOIPYBJF.js +3773 -0
  66. package/dist/web/server/{chunk-XYYNYFFD.js → chunk-LSIHVSUT.js} +2 -2
  67. package/dist/web/server/{chunk-KVHPE5XH.js → chunk-MDYA4NXK.js} +22 -8
  68. package/dist/web/server/chunk-NFRJDPB3.js +52 -0
  69. package/dist/web/server/chunk-P66QQWUM.js +67 -0
  70. package/dist/web/server/{chunk-4KFMONRT.js → chunk-PDRD2X5G.js} +9 -9
  71. package/dist/web/server/{chunk-XXNFEXDU.js → chunk-QJBEWT4E.js} +2 -70
  72. package/dist/web/server/{chunk-AQWTGP35.js → chunk-RX62LUDV.js} +8 -8
  73. package/dist/web/server/chunk-SR65ARVS.js +192 -0
  74. package/dist/web/server/{chunk-WK7CQS2N.js → chunk-SZ65K4CO.js} +48 -48
  75. package/dist/web/server/{chunk-C7EKOPZU.js → chunk-TO3YPLNZ.js} +89 -89
  76. package/dist/web/server/{chunk-IFV5M33X.js → chunk-UKINNXJY.js} +12 -26
  77. package/dist/web/server/chunk-VGDP4YDU.js +401 -0
  78. package/dist/web/server/{fleet-pi-tool-renderer-5vYFNeZS-IHKMLT7W.js → chunk-VRLTWOVJ.js} +46 -393
  79. package/dist/web/server/{chunk-KDSISV4P.js → chunk-WN77JNYY.js} +2 -50
  80. package/dist/web/server/{chunk-OADQILSQ.js → chunk-WZNZQNI4.js} +267 -3667
  81. package/dist/web/server/{chunk-KAWYGHDN.js → chunk-XFVL5ITL.js} +2354 -2314
  82. package/dist/web/server/{chunk-ZX3XOSYO.js → chunk-XLCTCC4W.js} +3 -3
  83. package/dist/web/server/{chunk-TTQ75CXC.js → chunk-Y4MHIA7B.js} +97 -40
  84. package/dist/web/server/fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js +37 -0
  85. package/dist/web/server/{fork-picker-dialog-BZzfxdQd-C6SPHFAW.js → fork-picker-dialog-DCzuGelH-TN2Q5OXI.js} +5 -5
  86. package/dist/web/server/{markdown-Ct_q4D-z-VFWZRBTY.js → markdown-Boni3lHk-AZGKDNAR.js} +1 -1
  87. package/dist/web/server/{markdown-code-C_ih1bX1-5CIWT3CH.js → markdown-code-BrWukbg3-D2GN4Y77.js} +2 -2
  88. package/dist/web/server/{openui-renderer-BT5jL0Yf-XYLLN5U6.js → openui-renderer-c36_GYes-HX46N4M5.js} +14 -13
  89. package/dist/web/server/repl-panel-D9E8nkQy-L45ZNG2V.js +118 -0
  90. package/dist/web/server/{resources-panel-DNCVHTIg-PJYMXVGE.js → resources-panel-CwKh4U9f-D3VDEMDW.js} +6 -6
  91. package/dist/web/server/{router-DDxOMz3K-HRBXILHM.js → router-_ZpegqiQ-QIE44PIB.js} +1811 -1334
  92. package/dist/web/server/{routes-BX4Tv-6R-FHIZYUWW.js → routes-Ct81-8Tq-LHRMOS7R.js} +3958 -4534
  93. package/dist/web/server/server.js +3 -3
  94. package/dist/web/server/{session-insights-panel-gYkkAE8H-W4O74Z7H.js → session-insights-panel-BHZyKDTo-LRMAMA3O.js} +5 -3
  95. package/dist/web/server/{settings-dialog-BTBFLQ1P-ZENQ4KWK.js → settings-dialog-B4uUS6f--AZ4I4ZOT.js} +179 -193
  96. package/dist/web/server/{start-CLAD7RcD-56S4BWMM.js → start-BYVnok_H-IA6TWGA3.js} +1 -1
  97. package/dist/web/server/subagent-chat-panel-C97S3WID-DLOAD5TG.js +63 -0
  98. package/dist/web/server/subagents-panel-iHpvMIZy-LI6XK66M.js +181 -0
  99. package/dist/web/server/{chunk-5SZXUN3Y.js → workspace-panel-CHPoiXEo-YB4WS3MK.js} +29 -16
  100. package/package.json +15 -7
  101. package/dist/web/client/assets/artifacts-panel-8TyrNBM_.js +0 -1
  102. package/dist/web/client/assets/chat-command-palette-HpsmKfLO.js +0 -1
  103. package/dist/web/client/assets/collapsible-WCSnxhr2.js +0 -1
  104. package/dist/web/client/assets/command-DgfiCKcY.js +0 -2
  105. package/dist/web/client/assets/globals-BmxtUHFx.css +0 -2
  106. package/dist/web/client/assets/horizontal-resize-B76jjn5v.js +0 -1
  107. package/dist/web/client/assets/index-0pBr_bKy.js +0 -12
  108. package/dist/web/client/assets/markdown-BXWmNJo7.js +0 -2
  109. package/dist/web/client/assets/prime-agent-artifacts-k9JiTDZM.js +0 -5
  110. package/dist/web/client/assets/provider-brand-icon-VCebsuTD.js +0 -1
  111. package/dist/web/client/assets/range-KAaLzImH.js +0 -2
  112. package/dist/web/client/assets/resources-panel-BWuKeyrb.js +0 -1
  113. package/dist/web/client/assets/routes-BPRw0UzV.js +0 -20
  114. package/dist/web/client/assets/session-insights-panel-CPymkzZT.js +0 -1
  115. package/dist/web/client/assets/settings-dialog-6p8mjg8t.js +0 -1
  116. package/dist/web/client/assets/shared-DAI9OAw0.js +0 -2
  117. package/dist/web/client/assets/skeleton-loaders-qxIkJKCA.js +0 -1
  118. package/dist/web/client/assets/workspace-panel-C67-fqw4.js +0 -1
  119. package/dist/web/client/assets/workspace-path-nav-BrQHo6es.js +0 -9
  120. package/dist/web/server/chunk-KJ4UUAEU.js +0 -83
  121. package/dist/web/server/chunk-NGI44XRR.js +0 -334
  122. package/dist/web/server/workspace-panel-BNAXF57q-EQCBPEG4.js +0 -28
@@ -3,13 +3,7 @@ import {
3
3
  } from "./chunk-5WZFFNFY.js";
4
4
  import {
5
5
  AgentDisclosure
6
- } from "./chunk-APN3LVRT.js";
7
- import {
8
- isSafeExternalUrl
9
- } from "./chunk-LESNF5O4.js";
10
- import {
11
- ChevronDown
12
- } from "./chunk-QLY3L4A2.js";
6
+ } from "./chunk-6D524OCJ.js";
13
7
  import {
14
8
  AnimatePresence,
15
9
  EASE_OUT,
@@ -17,7 +11,13 @@ import {
17
11
  SPRING_SWAP,
18
12
  m,
19
13
  useReducedMotion
20
- } from "./chunk-XXNFEXDU.js";
14
+ } from "./chunk-QJBEWT4E.js";
15
+ import {
16
+ isSafeExternalUrl
17
+ } from "./chunk-LESNF5O4.js";
18
+ import {
19
+ ChevronDown
20
+ } from "./chunk-QLY3L4A2.js";
21
21
  import {
22
22
  createLucideIcon
23
23
  } from "./chunk-E26EAQIM.js";
@@ -25,7 +25,7 @@ import {
25
25
  cn
26
26
  } from "./chunk-DJMHPJBP.js";
27
27
 
28
- // web/app/dist/server/assets/range-RW7EXtg5.js
28
+ // web/app/dist/server/assets/range-CqBJEIcv.js
29
29
  import { Suspense, lazy, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
30
30
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
31
31
  var BookOpenText = createLucideIcon("book-open-text", [
@@ -128,49 +128,13 @@ var MessageCircleQuestionMark = createLucideIcon("message-circle-question-mark",
128
128
  key: "p32p05"
129
129
  }]
130
130
  ]);
131
- var paper = "bg-background shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.12)] dark:bg-popover dark:shadow-none";
132
- var floating = "bg-background shadow-[0_2px_8px_rgba(0,0,0,0.05),0_20px_48px_-16px_rgba(0,0,0,0.18)] dark:bg-popover dark:shadow-[0_20px_48px_-16px_rgba(0,0,0,0.55)]";
133
- var field = "bg-foreground/[0.04] dark:bg-foreground/[0.06]";
134
- var labelSwap = "col-start-1 row-start-1 flex w-max items-center gap-1.5 leading-none transition-[opacity,filter] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none";
135
- var labelSwapIn = "opacity-100 blur-none";
136
- var labelSwapOut = "pointer-events-none select-none opacity-0 blur-[2px]";
137
- var collapsePanel = "h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] data-[ending-style]:h-0 data-[starting-style]:h-0 motion-reduce:transition-none";
138
- var mono = "font-mono text-[11px] tracking-tight";
139
- function ShimmerLabel({ active = true, className, ...props }) {
140
- return /* @__PURE__ */ jsx("span", {
141
- className: cn(active && "shimmer motion-reduce:animate-none", className),
142
- ...props
143
- });
144
- }
145
- function SwapLabel({ active, children, className }) {
146
- const firstLayerRef = useRef(null);
147
- const secondLayerRef = useRef(null);
148
- const [width, setWidth] = useState(null);
149
- useLayoutEffect(() => {
150
- const target = (active === 0 ? firstLayerRef : secondLayerRef).current;
151
- if (!target) return void 0;
152
- const measure = () => setWidth(Math.ceil(target.getBoundingClientRect().width));
153
- measure();
154
- const observer = new ResizeObserver(measure);
155
- observer.observe(target);
156
- return () => observer.disconnect();
157
- }, [active]);
158
- return /* @__PURE__ */ jsxs("span", {
159
- style: width === null ? void 0 : { width },
160
- className: cn("grid overflow-x-clip transition-[width] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none", className),
161
- children: [/* @__PURE__ */ jsx("span", {
162
- ref: firstLayerRef,
163
- "aria-hidden": active !== 0,
164
- className: cn(labelSwap, active === 0 ? labelSwapIn : labelSwapOut),
165
- children: children[0]
166
- }), /* @__PURE__ */ jsx("span", {
167
- ref: secondLayerRef,
168
- "aria-hidden": active !== 1,
169
- className: cn(labelSwap, active === 1 ? labelSwapIn : labelSwapOut),
170
- children: children[1]
171
- })]
172
- });
173
- }
131
+ var Terminal = createLucideIcon("terminal", [["path", {
132
+ d: "M12 19h8",
133
+ key: "baeox8"
134
+ }], ["path", {
135
+ d: "m4 17 6-6-6-6",
136
+ key: "1yngyt"
137
+ }]]);
174
138
  function useHoverCapable() {
175
139
  const [canHover, setCanHover] = useState(false);
176
140
  useEffect(() => {
@@ -183,6 +147,17 @@ function useHoverCapable() {
183
147
  }, []);
184
148
  return canHover;
185
149
  }
150
+ var MarkdownContent = lazy(() => import("./markdown-Boni3lHk-AZGKDNAR.js").then((n) => n.a).then(({ Markdown }) => ({ default: Markdown })));
151
+ function LazyMarkdown(props) {
152
+ return /* @__PURE__ */ jsx(Suspense, {
153
+ fallback: /* @__PURE__ */ jsx("div", {
154
+ className: props.className ? `${props.className} whitespace-pre-wrap` : "whitespace-pre-wrap",
155
+ children: props.content
156
+ }),
157
+ children: /* @__PURE__ */ jsx(MarkdownContent, { ...props })
158
+ });
159
+ }
160
+ var PI_TOOL_RENDERERS = {};
186
161
  function getFaviconUrl(value) {
187
162
  try {
188
163
  return new URL("/favicon.ico", value).toString();
@@ -344,17 +319,49 @@ function Citations({ citations, title = "Sources", open, defaultOpen = false, on
344
319
  })]
345
320
  });
346
321
  }
347
- var MarkdownContent = lazy(() => import("./markdown-Ct_q4D-z-VFWZRBTY.js").then((n) => n.a).then(({ Markdown }) => ({ default: Markdown })));
348
- function LazyMarkdown(props) {
349
- return /* @__PURE__ */ jsx(Suspense, {
350
- fallback: /* @__PURE__ */ jsx("div", {
351
- className: props.className ? `${props.className} whitespace-pre-wrap` : "whitespace-pre-wrap",
352
- children: props.content
353
- }),
354
- children: /* @__PURE__ */ jsx(MarkdownContent, { ...props })
322
+ var paper = "bg-background shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.12)] dark:bg-popover dark:shadow-none";
323
+ var floating = "bg-background shadow-[0_2px_8px_rgba(0,0,0,0.05),0_20px_48px_-16px_rgba(0,0,0,0.18)] dark:bg-popover dark:shadow-[0_20px_48px_-16px_rgba(0,0,0,0.55)]";
324
+ var field = "bg-foreground/[0.04] dark:bg-foreground/[0.06]";
325
+ var labelSwap = "col-start-1 row-start-1 flex w-max items-center gap-1.5 leading-none transition-[opacity,filter] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none";
326
+ var labelSwapIn = "opacity-100 blur-none";
327
+ var labelSwapOut = "pointer-events-none select-none opacity-0 blur-[2px]";
328
+ var collapsePanel = "h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] data-[ending-style]:h-0 data-[starting-style]:h-0 motion-reduce:transition-none";
329
+ var mono = "font-mono text-[11px] tracking-tight";
330
+ function ShimmerLabel({ active = true, className, ...props }) {
331
+ return /* @__PURE__ */ jsx("span", {
332
+ className: cn(active && "shimmer motion-reduce:animate-none", className),
333
+ ...props
334
+ });
335
+ }
336
+ function SwapLabel({ active, children, className }) {
337
+ const firstLayerRef = useRef(null);
338
+ const secondLayerRef = useRef(null);
339
+ const [width, setWidth] = useState(null);
340
+ useLayoutEffect(() => {
341
+ const target = (active === 0 ? firstLayerRef : secondLayerRef).current;
342
+ if (!target) return void 0;
343
+ const measure = () => setWidth(Math.ceil(target.getBoundingClientRect().width));
344
+ measure();
345
+ const observer = new ResizeObserver(measure);
346
+ observer.observe(target);
347
+ return () => observer.disconnect();
348
+ }, [active]);
349
+ return /* @__PURE__ */ jsxs("span", {
350
+ style: width === null ? void 0 : { width },
351
+ className: cn("grid overflow-x-clip transition-[width] duration-300 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none", className),
352
+ children: [/* @__PURE__ */ jsx("span", {
353
+ ref: firstLayerRef,
354
+ "aria-hidden": active !== 0,
355
+ className: cn(labelSwap, active === 0 ? labelSwapIn : labelSwapOut),
356
+ children: children[0]
357
+ }), /* @__PURE__ */ jsx("span", {
358
+ ref: secondLayerRef,
359
+ "aria-hidden": active !== 1,
360
+ className: cn(labelSwap, active === 1 ? labelSwapIn : labelSwapOut),
361
+ children: children[1]
362
+ })]
355
363
  });
356
364
  }
357
- var PI_TOOL_RENDERERS = {};
358
365
  function clamp(value, min, max) {
359
366
  if (Number.isNaN(value)) return min;
360
367
  return Math.min(max, Math.max(min, value));
@@ -377,6 +384,13 @@ export {
377
384
  ListTodo,
378
385
  LogOut,
379
386
  MessageCircleQuestionMark,
387
+ Terminal,
388
+ useHoverCapable,
389
+ LazyMarkdown,
390
+ PI_TOOL_RENDERERS,
391
+ CitationStack,
392
+ CitationList,
393
+ Citations,
380
394
  paper,
381
395
  floating,
382
396
  field,
@@ -384,12 +398,6 @@ export {
384
398
  mono,
385
399
  ShimmerLabel,
386
400
  SwapLabel,
387
- useHoverCapable,
388
- CitationStack,
389
- CitationList,
390
- Citations,
391
- LazyMarkdown,
392
- PI_TOOL_RENDERERS,
393
401
  take,
394
402
  pct,
395
403
  progressOf
@@ -1,18 +1,17 @@
1
1
  import {
2
2
  FileText
3
3
  } from "./chunk-7APYEQIO.js";
4
- import {
5
- Package
6
- } from "./chunk-ZGFQ7HIX.js";
7
4
  import {
8
5
  Plug
9
6
  } from "./chunk-BSFYTSN6.js";
7
+ import {
8
+ Package
9
+ } from "./chunk-ZGFQ7HIX.js";
10
10
  import {
11
11
  createLucideIcon
12
12
  } from "./chunk-E26EAQIM.js";
13
13
 
14
- // web/app/dist/server/assets/shared-Cb61Aqse.js
15
- import { jsx, jsxs } from "react/jsx-runtime";
14
+ // web/app/dist/server/assets/resource-helpers-fuGQ38iH.js
16
15
  var BookOpen = createLucideIcon("book-open", [["path", {
17
16
  d: "M12 5v16",
18
17
  key: "1f6ucr"
@@ -125,13 +124,6 @@ function getResourceGroups(resources, workspace) {
125
124
  }
126
125
  ];
127
126
  }
128
- function countWorkspaceFiles(nodes) {
129
- return nodes.reduce((count, node) => {
130
- if (node.type === "file") return count + 1;
131
- if (!node.children?.length) return count;
132
- return count + countWorkspaceFiles(node.children);
133
- }, 0);
134
- }
135
127
  function findWorkspaceNode(nodes, path) {
136
128
  for (const node of nodes) {
137
129
  if (node.path === path) return node;
@@ -172,78 +164,6 @@ function getResourceChipTitle(item) {
172
164
  function resourceKey(item) {
173
165
  return `${item.source ?? "resource"}:${item.path ?? item.name}`;
174
166
  }
175
- function ResourceNotice({ description, icon: Icon, title }) {
176
- return /* @__PURE__ */ jsxs("div", {
177
- className: "my-1.5 rounded-sm bg-foreground/5 px-2.5 py-2",
178
- children: [/* @__PURE__ */ jsxs("div", {
179
- className: "flex items-center gap-2 text-label font-medium text-foreground/65",
180
- children: [/* @__PURE__ */ jsx(Icon, { className: "size-3.5" }), /* @__PURE__ */ jsx("span", { children: title })]
181
- }), /* @__PURE__ */ jsx("p", {
182
- className: "mt-1 text-[11px] leading-4 text-foreground/40",
183
- children: description
184
- })]
185
- });
186
- }
187
- function ResourceChipSection({ id, icon: Icon, items, label }) {
188
- return /* @__PURE__ */ jsxs("section", {
189
- id: `resource-section-${id}`,
190
- className: "flex min-w-0 flex-col gap-2 py-2.5",
191
- "aria-label": `${label} resources`,
192
- children: [/* @__PURE__ */ jsxs("div", {
193
- className: "flex min-w-0 items-center text-body leading-5 text-foreground/45",
194
- children: [/* @__PURE__ */ jsx("span", {
195
- className: "truncate underline decoration-foreground/25 underline-offset-2",
196
- children: label
197
- }), /* @__PURE__ */ jsx("span", {
198
- className: "ml-1 shrink-0 text-[11px] leading-4 text-foreground/30 tabular-nums no-underline",
199
- children: items.length
200
- })]
201
- }), /* @__PURE__ */ jsx("ul", {
202
- className: "flex min-w-0 flex-col items-stretch gap-1.5",
203
- "data-testid": `resource-chip-section-${label.toLowerCase()}`,
204
- children: items.length === 0 ? /* @__PURE__ */ jsx("li", {
205
- className: "inline-flex h-7.5 items-center rounded-lg border border-border/60 bg-background px-3 text-body leading-5 text-foreground/35 shadow-[0_1px_4px_-1px_rgba(0,0,0,0.06)]",
206
- children: "Empty"
207
- }) : items.map((item) => /* @__PURE__ */ jsx(ResourceChip, {
208
- icon: Icon,
209
- item,
210
- stacked: true
211
- }, resourceKey(item)))
212
- })]
213
- });
214
- }
215
- function ResourceChip({ icon, item, stacked = false }) {
216
- const title = getResourceChipTitle(item);
217
- return /* @__PURE__ */ jsxs("li", {
218
- className: `max-w-full rounded-lg border border-border/70 bg-background px-2.5 text-body leading-5 text-foreground/80 shadow-[0_1px_4px_-1px_rgba(0,0,0,0.06)] ${stacked ? "flex min-h-9 w-full min-w-0 items-center gap-2 py-1.5" : "inline-flex h-7.5 items-center gap-1"}`,
219
- "aria-label": title,
220
- "data-testid": "resource-chip",
221
- title,
222
- children: [
223
- /* @__PURE__ */ jsxs("div", {
224
- className: "flex min-w-0 flex-1 items-center gap-2",
225
- children: [/* @__PURE__ */ jsx(ResourceChipIcon, { icon }), /* @__PURE__ */ jsx("span", {
226
- className: "min-w-0 truncate",
227
- children: item.name
228
- })]
229
- }),
230
- item.source && /* @__PURE__ */ jsx("span", {
231
- className: "max-w-20 shrink-0 truncate rounded-[5px] bg-foreground/5 px-1.5 py-0.5 text-[10px] leading-3 text-foreground/35",
232
- children: item.source
233
- }),
234
- item.activationStatus && /* @__PURE__ */ jsx("span", {
235
- className: "max-w-24 shrink-0 truncate rounded-[5px] bg-foreground/5 px-1.5 py-0.5 text-[10px] leading-3 text-foreground/35",
236
- children: item.activationStatus
237
- })
238
- ]
239
- });
240
- }
241
- function ResourceChipIcon({ icon: Icon }) {
242
- return /* @__PURE__ */ jsx("span", {
243
- className: "inline-flex size-5 shrink-0 items-center justify-center rounded-full bg-foreground/4 text-foreground/45",
244
- children: /* @__PURE__ */ jsx(Icon, { className: "size-3.5" })
245
- });
246
- }
247
167
  function mergeResourceItems(primary, secondary) {
248
168
  const seen = /* @__PURE__ */ new Set();
249
169
  return [...primary, ...secondary].filter((item) => {
@@ -256,10 +176,9 @@ function mergeResourceItems(primary, secondary) {
256
176
 
257
177
  export {
258
178
  getResourceGroups,
259
- countWorkspaceFiles,
260
179
  findWorkspaceNode,
261
- ResourceNotice,
262
- ResourceChipSection
180
+ getResourceChipTitle,
181
+ resourceKey
263
182
  };
264
183
  /**
265
184
  * @license lucide-react v1.33.0 - ISC
@@ -1,36 +1,4 @@
1
- import {
2
- segmentOpenUIContent
3
- } from "./chunk-KDSISV4P.js";
4
-
5
- // web/app/dist/server/assets/prime-agent-artifacts-BVZsmuR7.js
6
- var ARTIFACTS_SCOPE_SUFFIX = "artifacts";
7
- function getArtifactsScopePath(_root) {
8
- return ARTIFACTS_SCOPE_SUFFIX;
9
- }
10
- var ROOT_COMPONENT_PATTERN = /^root\s*=\s*([A-Za-z][A-Za-z0-9]*)/;
11
- var FIRST_STRING_LITERAL_PATTERN = /"((?:\\.|[^"\\]){1,80})"/;
12
- function openUIBlockLabel(content) {
13
- return FIRST_STRING_LITERAL_PATTERN.exec(content)?.[1] ?? ROOT_COMPONENT_PATTERN.exec(content)?.[1] ?? "Interface";
14
- }
15
- function collectSessionOpenUIBlocks(messages) {
16
- const blocks = [];
17
- for (const message of messages) {
18
- if (message.role !== "assistant") continue;
19
- for (const part of message.parts) {
20
- if (part.type !== "text" || typeof part.text !== "string") continue;
21
- for (const segment of segmentOpenUIContent(part.text)) {
22
- if (segment.type !== "openui") continue;
23
- blocks.push({
24
- blockId: `${message.id}:${segment.id}`,
25
- content: segment.content,
26
- component: openUIBlockLabel(segment.content),
27
- ordinal: blocks.length + 1
28
- });
29
- }
30
- }
31
- }
32
- return blocks;
33
- }
1
+ // web/app/dist/server/assets/prime-agent-artifacts-CCiZ1gKm.js
34
2
  function stablePresentationId(seed) {
35
3
  let hash = 2166136261;
36
4
  for (let index = 0; index < seed.length; index += 1) {
@@ -184,6 +152,7 @@ function artifactsFromMessages(messages, chatStatus) {
184
152
  status: statusFor(source, chatStatus),
185
153
  ...input !== void 0 ? { input } : {},
186
154
  ...output !== void 0 ? { output } : {},
155
+ ...typeof source.backgroundOutput === "string" ? { backgroundOutput: source.backgroundOutput } : {},
187
156
  timestamp
188
157
  });
189
158
  }
@@ -199,8 +168,6 @@ function derivePrimeAgentArtifactRuns(messages, presentation, chatStatus) {
199
168
  }
200
169
 
201
170
  export {
202
- getArtifactsScopePath,
203
- collectSessionOpenUIBlocks,
204
171
  primeAgentArtifactDiff,
205
172
  derivePrimeAgentArtifactRuns
206
173
  };
@@ -1,4 +1,23 @@
1
- // web/app/dist/server/assets/model-patterns-BOn3oCBF.js
1
+ // web/app/dist/server/assets/model-patterns-BueP0n_O.js
2
+ var UI_PREFERENCES_KEY = "fleet-prime:v1:ui-preferences";
3
+ var DEFAULT_UI_PREFERENCES = {
4
+ density: "comfortable",
5
+ motion: "system",
6
+ transcript: "follow",
7
+ confirmSessionDelete: true
8
+ };
9
+ function readUiPreferences() {
10
+ if (typeof window === "undefined") return DEFAULT_UI_PREFERENCES;
11
+ try {
12
+ const parsed = JSON.parse(window.localStorage.getItem("fleet-prime:v1:ui-preferences") ?? "null");
13
+ return {
14
+ ...DEFAULT_UI_PREFERENCES,
15
+ ...parsed
16
+ };
17
+ } catch {
18
+ return DEFAULT_UI_PREFERENCES;
19
+ }
20
+ }
2
21
  var THINKING_LEVELS = /* @__PURE__ */ new Set([
3
22
  "off",
4
23
  "minimal",
@@ -54,6 +73,9 @@ function modelPattern(provider, modelId) {
54
73
  }
55
74
 
56
75
  export {
76
+ UI_PREFERENCES_KEY,
77
+ DEFAULT_UI_PREFERENCES,
78
+ readUiPreferences,
57
79
  isModelPatternEnabled,
58
80
  modelMatchesPattern,
59
81
  modelPattern