@qredence/fleet 0.5.5 → 0.5.7
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.
- package/CHANGELOG.md +12 -0
- package/dist/web/client/assets/action-swap-roll-BB8DFMuf.js +1 -0
- package/dist/web/client/assets/agent-activity-CDcDNVC6.js +1 -0
- package/dist/web/client/assets/agent-disclosure-B8SnhQXL.js +1 -0
- package/dist/web/client/assets/analytics-stub-B8MIkiDB.js +1 -0
- package/dist/web/client/assets/artifacts-panel-CmHYXfoo.js +1 -0
- package/dist/web/client/assets/button-BV9NafmI.js +1 -0
- package/dist/web/client/assets/chat-command-palette-DiG-i3uJ.js +1 -0
- package/dist/web/client/assets/check-JjHKAZas.js +1 -0
- package/dist/web/client/assets/chevron-up-CnSvySGH.js +1 -0
- package/dist/web/client/assets/circle-alert-CONlFReH.js +1 -0
- package/dist/web/client/assets/circle-x-CkKCB__4.js +1 -0
- package/dist/web/client/assets/citations-CpTFUvx7.js +2 -0
- package/dist/web/client/assets/collapsible-BoXtZZWN.js +1 -0
- package/dist/web/client/assets/command-Cx-UYeQ9.js +1 -0
- package/dist/web/client/assets/createBaseUIEventDetails-DV0dQrBX.js +1 -0
- package/dist/web/client/assets/dialog-Dh7WpGIu.js +1 -0
- package/dist/web/client/assets/dist-BPaFisIZ.js +41 -0
- package/dist/web/client/assets/earth-DGZXAN5r.js +1 -0
- package/dist/web/client/assets/ease-u56MhKYS.js +1 -0
- package/dist/web/client/assets/file-text-T-NcAlZs.js +1 -0
- package/dist/web/client/assets/fleet-message-queue-B6zAK-hX.js +1 -0
- package/dist/web/client/assets/{fleet-pi-tool-renderer-B0Y7ou0U.js → fleet-pi-tool-renderer-Btq9mDUe.js} +28 -28
- package/dist/web/client/assets/fleet-reasoning-panel-MtbSdoCv.js +1 -0
- package/dist/web/client/assets/fleet-subagent-list-iszvrvy_.js +1 -0
- package/dist/web/client/assets/fleet-tool-timeline-COzPrwr8.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-C2cVJUbf.js → fork-picker-dialog-CAhWx0G5.js} +1 -1
- package/dist/web/client/assets/gauge-DNpstbBn.js +1 -0
- package/dist/web/client/assets/generative-text-renderer-C1JrmYfx.js +6 -0
- package/dist/web/client/assets/globals-Bfr0jrPq.css +2 -0
- package/dist/web/client/assets/horizontal-resize-Bl3AyBJg.js +1 -0
- package/dist/web/client/assets/image-BbPmlw-n.js +1 -0
- package/dist/web/client/assets/index-QgUwd4m8.js +12 -0
- package/dist/web/client/assets/input-Bol3TP4v.js +1 -0
- package/dist/web/client/assets/input-group-D5gi9zBK.js +1 -0
- package/dist/web/client/assets/{markdown-DG7pUdsX.js → markdown-RD_ydkyD.js} +2 -2
- package/dist/web/client/assets/{markdown-code-BgMzpy7O.js → markdown-code-ETqXqY8E.js} +1 -1
- package/dist/web/client/assets/message-square-hbDao-A1.js +1 -0
- package/dist/web/client/assets/model-selector-list-CJY9pyt2.js +1 -0
- package/dist/web/client/assets/notify-DKTqXChG.js +1 -0
- package/dist/web/client/assets/{openui-renderer-CCfQqUfE.js → openui-renderer-BZMghkzQ.js} +7 -7
- package/dist/web/client/assets/prompt-suggestions-CXM6knMK.js +1 -0
- package/dist/web/client/assets/provider-catalog-CHKFGwHr.js +1 -0
- package/dist/web/client/assets/provider-label-KkqVX1CI.js +1 -0
- package/dist/web/client/assets/range-BWOHiLNe.js +1 -0
- package/dist/web/client/assets/refresh-cw-IThTJ3j-.js +1 -0
- package/dist/web/client/assets/{resource-helpers-ULlyU8qK.js → resource-helpers-Q2T0YCMO.js} +1 -1
- package/dist/web/client/assets/resources-panel-Bo8dfUdm.js +1 -0
- package/dist/web/client/assets/right-panel-context-B2VAZ2p4.js +1 -0
- package/dist/web/client/assets/right-panel-registry-C5fQcBKw.js +2 -0
- package/dist/web/client/assets/routes-C1hRkRkv.js +16 -0
- package/dist/web/client/assets/safe-external-url-D3PJJIcM.js +1 -0
- package/dist/web/client/assets/settings-dialog-CvvM6T0m.js +1 -0
- package/dist/web/client/assets/{sparkles-C5H3Jtgf.js → shield-check-CkA2viVW.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-fStjEeRP.js → skeleton-loaders-DjGv9LLA.js} +1 -1
- package/dist/web/client/assets/sparkles-DuclzqlE.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-D-qw4uWb.js → subagent-chat-panel-tGCg6gcn.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-NO0PR8RU.js +1 -0
- package/dist/web/client/assets/subagent-utils-CQbaJ1g-.js +1 -0
- package/dist/web/client/assets/subagents-panel-BkFLsQQY.js +1 -0
- package/dist/web/client/assets/surfaces-cW-gp56p.js +1 -0
- package/dist/web/client/assets/switch-CcOFiQBK.js +1 -0
- package/dist/web/client/assets/terminal-DOS1s1gm.js +1 -0
- package/dist/web/client/assets/toast-ATq44uAL.js +1 -0
- package/dist/web/client/assets/tool-result-pklnrxSW.js +4 -0
- package/dist/web/client/assets/use-reduced-motion-eORd7fqW.js +9 -0
- package/dist/web/client/assets/useBaseUiId-CHqXB2UQ.js +1 -0
- package/dist/web/client/assets/useControlled-CJJ9BOQB.js +1 -0
- package/dist/web/client/assets/workspace-panel-BmMW7h7b.js +1 -0
- package/dist/web/client/assets/wrench-BJNNe07k.js +1 -0
- package/dist/web/client/assets/x-CsRC_tCI.js +1 -0
- package/dist/web/client/bundle-budget.json +10 -0
- package/dist/web/server/{_tanstack-start-manifest_v-DZc7dwm7-6ZQLGXB7.js → _tanstack-start-manifest_v-B4BnRTa_-DR7WQTT5.js} +35 -27
- package/dist/web/server/agent-activity-Dx6AlDhN-JXOL2EXK.js +514 -0
- package/dist/web/server/{artifacts-panel-Bt7YUzm4-NCBMXJ25.js → artifacts-panel-CloS3-ij-XWYXKL6A.js} +26 -18
- package/dist/web/server/{chat-command-palette-Co1L3rUY-RQLNME4T.js → chat-command-palette-Cc0uGvNm-GKENKTO7.js} +23 -18
- package/dist/web/server/{chunk-2V6B62OF.js → chunk-3B6M63AO.js} +12 -15
- package/dist/web/server/chunk-3D4Z32XA.js +22 -0
- package/dist/web/server/{chunk-SR65ARVS.js → chunk-3SSHBMDS.js} +16 -12
- package/dist/web/server/chunk-4PQ6OD6J.js +22 -0
- package/dist/web/server/chunk-56SEDI5N.js +19 -0
- package/dist/web/server/chunk-6QNW66XR.js +19 -0
- package/dist/web/server/chunk-744IIIDL.js +19 -0
- package/dist/web/server/{chunk-52SJQXO4.js → chunk-7PQTPSEE.js} +568 -568
- package/dist/web/server/{chunk-LSIHVSUT.js → chunk-7SR6WDM2.js} +2 -2
- package/dist/web/server/chunk-ANL4B775.js +60 -0
- package/dist/web/server/chunk-BNQWMQHD.js +35 -0
- package/dist/web/server/{chunk-BLVCDQ7E.js → chunk-C5X6G26O.js} +1 -19
- package/dist/web/server/chunk-C66BSNA6.js +42 -0
- package/dist/web/server/{chunk-XLCTCC4W.js → chunk-DEUBJJZN.js} +4 -59
- package/dist/web/server/chunk-E365EOXJ.js +35 -0
- package/dist/web/server/{chunk-5WZFFNFY.js → chunk-EFAGCVZ3.js} +2 -23
- package/dist/web/server/{chunk-56HSKUBD.js → chunk-EGQ6ZX4D.js} +23 -298
- package/dist/web/server/{chunk-TO3YPLNZ.js → chunk-EKBKGAWX.js} +12 -10
- package/dist/web/server/{chunk-5RQ6QAZX.js → chunk-F6MGAW3L.js} +2 -2
- package/dist/web/server/chunk-GABXCOY3.js +37 -0
- package/dist/web/server/chunk-GV7DJIHY.js +36 -0
- package/dist/web/server/{chunk-6D524OCJ.js → chunk-HSJMLO36.js} +6 -253
- package/dist/web/server/{chunk-46VQY7SG.js → chunk-HU4AIJV3.js} +4 -4
- package/dist/web/server/{chunk-PDRD2X5G.js → chunk-HZY3LBGP.js} +145 -1
- package/dist/web/server/{chunk-UKINNXJY.js → chunk-J6MRJXUH.js} +22 -15
- package/dist/web/server/{chunk-RX62LUDV.js → chunk-JOSTE7WK.js} +7 -5
- package/dist/web/server/{chunk-QJBEWT4E.js → chunk-K3BXQG3N.js} +27 -292
- package/dist/web/server/chunk-K4ESBQ3R.js +20 -0
- package/dist/web/server/{chunk-3HUI75QM.js → chunk-KZSM3BHO.js} +16 -107
- package/dist/web/server/chunk-L46H6IDX.js +13 -0
- package/dist/web/server/chunk-LNGWHEE6.js +206 -0
- package/dist/web/server/{chunk-WZNZQNI4.js → chunk-MOSVTKH5.js} +39 -36
- package/dist/web/server/{chunk-MDYA4NXK.js → chunk-NJRYX4A2.js} +4 -4
- package/dist/web/server/chunk-NNMZQN7Q.js +296 -0
- package/dist/web/server/{chunk-AWFOBHH4.js → chunk-NPPG2GTW.js} +7 -7
- package/dist/web/server/{chunk-Y4MHIA7B.js → chunk-PJNYH5SR.js} +7 -295
- package/dist/web/server/{chunk-7APYEQIO.js → chunk-QAE5SXDK.js} +1 -24
- package/dist/web/server/chunk-QTFCJGOY.js +189 -0
- package/dist/web/server/{chunk-AECEK3K7.js → chunk-RANJ6OJ3.js} +9 -9
- package/dist/web/server/chunk-RPBSDXJ4.js +62 -0
- package/dist/web/server/{chunk-VRLTWOVJ.js → chunk-RYHIJMFD.js} +57 -33
- package/dist/web/server/{chunk-NLIUTTKL.js → chunk-S3PQ6HKH.js} +1 -16
- package/dist/web/server/chunk-SG4W4SPQ.js +31 -0
- package/dist/web/server/{chunk-LESNF5O4.js → chunk-T23OO4SC.js} +2 -11
- package/dist/web/server/{chunk-BEMDNODD.js → chunk-UNZJQ7CY.js} +6 -4
- package/dist/web/server/chunk-V3S6BVXO.js +22 -0
- package/dist/web/server/{chunk-SZ65K4CO.js → chunk-W5GRNHV5.js} +6 -4
- package/dist/web/server/{chunk-FZRBAPUM.js → chunk-XKYEXPLQ.js} +2 -17
- package/dist/web/server/{chunk-6GMKRR3C.js → chunk-XNYQSCB2.js} +2 -2
- package/dist/web/server/chunk-YHXAXJ6I.js +22 -0
- package/dist/web/server/chunk-YLMXYMLG.js +86 -0
- package/dist/web/server/chunk-YNGDUWCF.js +56 -0
- package/dist/web/server/chunk-ZJFA4F5X.js +280 -0
- package/dist/web/server/fleet-message-queue-Bn0_3Efe-G4BZR2EU.js +74 -0
- package/dist/web/server/fleet-pi-tool-renderer-C52SZmPx-CIAH3IV7.js +51 -0
- package/dist/web/server/fleet-reasoning-panel-C_e7wzVm-SDHEWDQT.js +199 -0
- package/dist/web/server/fleet-subagent-list-CQltKswG-EKCMQHDI.js +18 -0
- package/dist/web/server/fleet-tool-timeline-KENErMKg-HTN7SW3D.js +16 -0
- package/dist/web/server/{fork-picker-dialog-DCzuGelH-TN2Q5OXI.js → fork-picker-dialog-DK9YGQuB-4QEFWRU4.js} +6 -5
- package/dist/web/server/{markdown-Boni3lHk-AZGKDNAR.js → markdown-QcSUaLyd-6DJUK5NC.js} +1 -1
- package/dist/web/server/{markdown-code-BrWukbg3-D2GN4Y77.js → markdown-code-Dyo1_13a-52ZQZSPE.js} +2 -2
- package/dist/web/server/model-selector-list-CEfWjRc--GBW2GUO6.js +289 -0
- package/dist/web/server/{openui-renderer-c36_GYes-HX46N4M5.js → openui-renderer-Dk0Ak9cW-MUJQHDAS.js} +16 -13
- package/dist/web/server/prompt-suggestions-BOmHi4-J-C563CHFU.js +30 -0
- package/dist/web/server/{resources-panel-CwKh4U9f-D3VDEMDW.js → resources-panel-B03M8bEp-SZG726N5.js} +7 -6
- package/dist/web/server/{router-_ZpegqiQ-QIE44PIB.js → router-BE9HcX2W-JMQ3JWE5.js} +39 -24
- package/dist/web/server/{routes-Ct81-8Tq-LHRMOS7R.js → routes-CJTRGB1Z-WJKXJFFT.js} +704 -1463
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{settings-dialog-B4uUS6f--AZ4I4ZOT.js → settings-dialog-yDibpbBH-TCLJ7NRJ.js} +42 -31
- package/dist/web/server/{subagent-chat-panel-C97S3WID-DLOAD5TG.js → subagent-chat-panel-B1YoZIKO-DFRUDQJ2.js} +39 -20
- package/dist/web/server/{subagents-panel-iHpvMIZy-LI6XK66M.js → subagents-panel-dJJwpsEL-FTWWCHND.js} +41 -22
- package/dist/web/server/{workspace-panel-CHPoiXEo-YB4WS3MK.js → workspace-panel-BC_H8Jri-5MHAEQQS.js} +22 -18
- package/package.json +1 -1
- package/dist/web/client/assets/action-swap-roll-DX5o_33Q.js +0 -1
- package/dist/web/client/assets/analytics-stub-Jh3lkb8P.js +0 -1
- package/dist/web/client/assets/artifacts-panel-C3yewUBP.js +0 -1
- package/dist/web/client/assets/button-0At5xSyU.js +0 -1
- package/dist/web/client/assets/chat-command-palette-D0xDK1j4.js +0 -1
- package/dist/web/client/assets/command-CQzrtjyj.js +0 -2
- package/dist/web/client/assets/dialog-DZ44tBtH.js +0 -1
- package/dist/web/client/assets/dist-MNgIFxqY.js +0 -41
- package/dist/web/client/assets/ease-vFBiNFNK.js +0 -9
- package/dist/web/client/assets/file-text-BhQ0ZnoU.js +0 -1
- package/dist/web/client/assets/generative-text-renderer-SS9c1kNX.js +0 -6
- package/dist/web/client/assets/globals-D_Hy9bT1.css +0 -2
- package/dist/web/client/assets/horizontal-resize-C1TpRLNC.js +0 -1
- package/dist/web/client/assets/index-C9FloFgj.js +0 -12
- package/dist/web/client/assets/input-CqC82Agz.js +0 -1
- package/dist/web/client/assets/input-group-H0TG-mkU.js +0 -1
- package/dist/web/client/assets/notify-Duj26eeZ.js +0 -1
- package/dist/web/client/assets/provider-catalog-BZhZuKSz.js +0 -1
- package/dist/web/client/assets/provider-label-jKm8v18u.js +0 -1
- package/dist/web/client/assets/range-65lubOFp.js +0 -2
- package/dist/web/client/assets/resources-panel-DSU7VGX2.js +0 -1
- package/dist/web/client/assets/routes-DSTyx_J0.js +0 -16
- package/dist/web/client/assets/safe-external-url-Bl_78dpZ.js +0 -1
- package/dist/web/client/assets/settings-dialog-CkfpTKfM.js +0 -1
- package/dist/web/client/assets/subagent-transcript-C7oRwEEP.js +0 -1
- package/dist/web/client/assets/subagents-panel-aSMWZP9p.js +0 -1
- package/dist/web/client/assets/switch-BFEBpUEU.js +0 -1
- package/dist/web/client/assets/toast-C4s7FYYa.js +0 -1
- package/dist/web/client/assets/tool-result-C2NvnN32.js +0 -4
- package/dist/web/client/assets/useBaseUiId-B9f7fokB.js +0 -1
- package/dist/web/client/assets/useControlled-CoY1jSuL.js +0 -1
- package/dist/web/client/assets/workspace-panel-CjdXlEvd.js +0 -1
- package/dist/web/client/assets/x-BgciQ7_C.js +0 -1
- package/dist/web/server/fleet-pi-tool-renderer-CE45vM6T-2UQN6RJM.js +0 -37
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MotionConfigContext,
|
|
3
|
+
useConstant,
|
|
4
|
+
useIsomorphicLayoutEffect
|
|
5
|
+
} from "./chunk-K3BXQG3N.js";
|
|
6
|
+
import {
|
|
7
|
+
LayoutGroupContext,
|
|
8
|
+
PresenceContext,
|
|
9
|
+
hasReducedMotionListener,
|
|
10
|
+
initPrefersReducedMotion,
|
|
11
|
+
isHTMLElement,
|
|
12
|
+
prefersReducedMotion,
|
|
13
|
+
usePresence
|
|
14
|
+
} from "./chunk-FAGDMGLK.js";
|
|
15
|
+
|
|
16
|
+
// web/app/dist/server/assets/use-reduced-motion-ewHWHKKI.js
|
|
17
|
+
import * as React$1 from "react";
|
|
18
|
+
import { Children, isValidElement, useContext, useId, useInsertionEffect, useMemo, useRef, useState } from "react";
|
|
19
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
20
|
+
function setRef(ref, value) {
|
|
21
|
+
if (typeof ref === "function") return ref(value);
|
|
22
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
23
|
+
}
|
|
24
|
+
function composeRefs(...refs) {
|
|
25
|
+
return (node) => {
|
|
26
|
+
let hasCleanup = false;
|
|
27
|
+
const cleanups = refs.map((ref) => {
|
|
28
|
+
const cleanup = setRef(ref, node);
|
|
29
|
+
if (!hasCleanup && typeof cleanup === "function") hasCleanup = true;
|
|
30
|
+
return cleanup;
|
|
31
|
+
});
|
|
32
|
+
if (hasCleanup) return () => {
|
|
33
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
34
|
+
const cleanup = cleanups[i];
|
|
35
|
+
if (typeof cleanup === "function") cleanup();
|
|
36
|
+
else setRef(refs[i], null);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function useComposedRefs(...refs) {
|
|
42
|
+
return React$1.useCallback(composeRefs(...refs), refs);
|
|
43
|
+
}
|
|
44
|
+
var PopChildMeasure = class extends React$1.Component {
|
|
45
|
+
getSnapshotBeforeUpdate(prevProps) {
|
|
46
|
+
const element = this.props.childRef.current;
|
|
47
|
+
if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {
|
|
48
|
+
const parent = element.offsetParent;
|
|
49
|
+
const parentWidth = isHTMLElement(parent) ? parent.offsetWidth || 0 : 0;
|
|
50
|
+
const parentHeight = isHTMLElement(parent) ? parent.offsetHeight || 0 : 0;
|
|
51
|
+
const computedStyle = getComputedStyle(element);
|
|
52
|
+
const size = this.props.sizeRef.current;
|
|
53
|
+
size.height = parseFloat(computedStyle.height);
|
|
54
|
+
size.width = parseFloat(computedStyle.width);
|
|
55
|
+
size.top = element.offsetTop;
|
|
56
|
+
size.left = element.offsetLeft;
|
|
57
|
+
size.right = parentWidth - size.width - size.left;
|
|
58
|
+
size.bottom = parentHeight - size.height - size.top;
|
|
59
|
+
size.direction = computedStyle.direction;
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
65
|
+
*/
|
|
66
|
+
componentDidUpdate() {
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return this.props.children;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
function PopChild({ children, isPresent, anchorX, anchorY, root, pop }) {
|
|
73
|
+
const id = useId();
|
|
74
|
+
const ref = useRef(null);
|
|
75
|
+
const size = useRef({
|
|
76
|
+
width: 0,
|
|
77
|
+
height: 0,
|
|
78
|
+
top: 0,
|
|
79
|
+
left: 0,
|
|
80
|
+
right: 0,
|
|
81
|
+
bottom: 0,
|
|
82
|
+
direction: "ltr"
|
|
83
|
+
});
|
|
84
|
+
const { nonce } = useContext(MotionConfigContext);
|
|
85
|
+
const composedRef = useComposedRefs(ref, pop !== false ? children.props?.ref ?? children?.ref : void 0);
|
|
86
|
+
useInsertionEffect(() => {
|
|
87
|
+
const { width, height, top, left, right, bottom, direction } = size.current;
|
|
88
|
+
if (isPresent || pop === false || !ref.current || !width || !height) return;
|
|
89
|
+
const isRTL = direction === "rtl";
|
|
90
|
+
const x = anchorX === "left" ? isRTL ? `right: ${right}` : `left: ${left}` : isRTL ? `left: ${left}` : `right: ${right}`;
|
|
91
|
+
const y = anchorY === "bottom" ? `bottom: ${bottom}` : `top: ${top}`;
|
|
92
|
+
ref.current.dataset.motionPopId = id;
|
|
93
|
+
const style = document.createElement("style");
|
|
94
|
+
if (nonce) style.nonce = nonce;
|
|
95
|
+
const parent = root ?? document.head;
|
|
96
|
+
parent.appendChild(style);
|
|
97
|
+
if (style.sheet) style.sheet.insertRule(`
|
|
98
|
+
[data-motion-pop-id="${id}"] {
|
|
99
|
+
position: absolute !important;
|
|
100
|
+
width: ${width}px !important;
|
|
101
|
+
height: ${height}px !important;
|
|
102
|
+
${x}px !important;
|
|
103
|
+
${y}px !important;
|
|
104
|
+
}
|
|
105
|
+
`);
|
|
106
|
+
return () => {
|
|
107
|
+
ref.current?.removeAttribute("data-motion-pop-id");
|
|
108
|
+
if (parent.contains(style)) parent.removeChild(style);
|
|
109
|
+
};
|
|
110
|
+
}, [isPresent]);
|
|
111
|
+
return jsx(PopChildMeasure, {
|
|
112
|
+
isPresent,
|
|
113
|
+
childRef: ref,
|
|
114
|
+
sizeRef: size,
|
|
115
|
+
pop,
|
|
116
|
+
children: pop === false ? children : React$1.cloneElement(children, { ref: composedRef })
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
var PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {
|
|
120
|
+
const presenceChildren = useConstant(newChildrenMap);
|
|
121
|
+
const id = useId();
|
|
122
|
+
const isPresentRef = useRef(isPresent);
|
|
123
|
+
const onExitCompleteRef = useRef(onExitComplete);
|
|
124
|
+
useIsomorphicLayoutEffect(() => {
|
|
125
|
+
isPresentRef.current = isPresent;
|
|
126
|
+
onExitCompleteRef.current = onExitComplete;
|
|
127
|
+
});
|
|
128
|
+
let isReusedContext = true;
|
|
129
|
+
let context = useMemo(() => {
|
|
130
|
+
isReusedContext = false;
|
|
131
|
+
return {
|
|
132
|
+
id,
|
|
133
|
+
initial,
|
|
134
|
+
isPresent,
|
|
135
|
+
custom,
|
|
136
|
+
onExitComplete: (childId) => {
|
|
137
|
+
presenceChildren.set(childId, true);
|
|
138
|
+
for (const isComplete of presenceChildren.values()) if (!isComplete) return;
|
|
139
|
+
onExitComplete && onExitComplete();
|
|
140
|
+
},
|
|
141
|
+
register: (childId) => {
|
|
142
|
+
presenceChildren.set(childId, false);
|
|
143
|
+
return () => {
|
|
144
|
+
presenceChildren.delete(childId);
|
|
145
|
+
!isPresentRef.current && !presenceChildren.size && onExitCompleteRef.current?.();
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}, [
|
|
150
|
+
isPresent,
|
|
151
|
+
presenceChildren,
|
|
152
|
+
onExitComplete
|
|
153
|
+
]);
|
|
154
|
+
if (presenceAffectsLayout && isReusedContext) context = { ...context };
|
|
155
|
+
useMemo(() => {
|
|
156
|
+
presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
|
|
157
|
+
}, [isPresent]);
|
|
158
|
+
React$1.useEffect(() => {
|
|
159
|
+
!isPresent && !presenceChildren.size && onExitComplete && onExitComplete();
|
|
160
|
+
}, [isPresent]);
|
|
161
|
+
children = jsx(PopChild, {
|
|
162
|
+
pop: mode === "popLayout",
|
|
163
|
+
isPresent,
|
|
164
|
+
anchorX,
|
|
165
|
+
anchorY,
|
|
166
|
+
root,
|
|
167
|
+
children
|
|
168
|
+
});
|
|
169
|
+
return jsx(PresenceContext.Provider, {
|
|
170
|
+
value: context,
|
|
171
|
+
children
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
function newChildrenMap() {
|
|
175
|
+
return /* @__PURE__ */ new Map();
|
|
176
|
+
}
|
|
177
|
+
var getChildKey = (child) => child.key || "";
|
|
178
|
+
function onlyElements(children) {
|
|
179
|
+
const filtered = [];
|
|
180
|
+
Children.forEach(children, (child) => {
|
|
181
|
+
if (isValidElement(child)) filtered.push(child);
|
|
182
|
+
});
|
|
183
|
+
return filtered;
|
|
184
|
+
}
|
|
185
|
+
var AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = "sync", propagate = false, anchorX = "left", anchorY = "top", root }) => {
|
|
186
|
+
const [isParentPresent, safeToRemove] = usePresence(propagate);
|
|
187
|
+
const presentChildren = useMemo(() => onlyElements(children), [children]);
|
|
188
|
+
const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);
|
|
189
|
+
const isInitialRender = useRef(true);
|
|
190
|
+
const pendingPresentChildren = useRef(presentChildren);
|
|
191
|
+
const exitComplete = useConstant(() => /* @__PURE__ */ new Map());
|
|
192
|
+
const exitingComponents = useRef(/* @__PURE__ */ new Set());
|
|
193
|
+
const [diffedChildren, setDiffedChildren] = useState(presentChildren);
|
|
194
|
+
const [renderedChildren, setRenderedChildren] = useState(presentChildren);
|
|
195
|
+
useIsomorphicLayoutEffect(() => {
|
|
196
|
+
if (propagate && !isParentPresent && !renderedChildren.length) safeToRemove?.();
|
|
197
|
+
}, [
|
|
198
|
+
isParentPresent,
|
|
199
|
+
propagate,
|
|
200
|
+
renderedChildren.length,
|
|
201
|
+
safeToRemove
|
|
202
|
+
]);
|
|
203
|
+
useIsomorphicLayoutEffect(() => {
|
|
204
|
+
isInitialRender.current = false;
|
|
205
|
+
pendingPresentChildren.current = presentChildren;
|
|
206
|
+
for (let i = 0; i < renderedChildren.length; i++) {
|
|
207
|
+
const key = getChildKey(renderedChildren[i]);
|
|
208
|
+
if (!presentKeys.includes(key)) {
|
|
209
|
+
if (exitComplete.get(key) !== true) exitComplete.set(key, false);
|
|
210
|
+
} else {
|
|
211
|
+
exitComplete.delete(key);
|
|
212
|
+
exitingComponents.current.delete(key);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, [
|
|
216
|
+
renderedChildren,
|
|
217
|
+
presentKeys.length,
|
|
218
|
+
presentKeys.join("-")
|
|
219
|
+
]);
|
|
220
|
+
const exitingChildren = [];
|
|
221
|
+
if (presentChildren !== diffedChildren) {
|
|
222
|
+
let nextChildren = [...presentChildren];
|
|
223
|
+
let insertionIndex = 0;
|
|
224
|
+
for (const child of renderedChildren) {
|
|
225
|
+
const presentIndex = presentKeys.indexOf(getChildKey(child));
|
|
226
|
+
if (presentIndex === -1) {
|
|
227
|
+
nextChildren.splice(insertionIndex++, 0, child);
|
|
228
|
+
exitingChildren.push(child);
|
|
229
|
+
} else insertionIndex = presentIndex + exitingChildren.length + 1;
|
|
230
|
+
}
|
|
231
|
+
if (mode === "wait" && exitingChildren.length) nextChildren = exitingChildren;
|
|
232
|
+
setRenderedChildren(onlyElements(nextChildren));
|
|
233
|
+
setDiffedChildren(presentChildren);
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
const { forceRender } = useContext(LayoutGroupContext);
|
|
237
|
+
return jsx(Fragment$1, { children: renderedChildren.map((child) => {
|
|
238
|
+
const key = getChildKey(child);
|
|
239
|
+
const isPresent = propagate && !isParentPresent ? false : presentChildren === renderedChildren || presentKeys.includes(key);
|
|
240
|
+
const onExit = () => {
|
|
241
|
+
if (exitingComponents.current.has(key)) return;
|
|
242
|
+
if (exitComplete.has(key)) {
|
|
243
|
+
exitingComponents.current.add(key);
|
|
244
|
+
exitComplete.set(key, true);
|
|
245
|
+
} else return;
|
|
246
|
+
let isEveryExitComplete = true;
|
|
247
|
+
exitComplete.forEach((isExitComplete) => {
|
|
248
|
+
if (!isExitComplete) isEveryExitComplete = false;
|
|
249
|
+
});
|
|
250
|
+
if (isEveryExitComplete) {
|
|
251
|
+
forceRender?.();
|
|
252
|
+
setRenderedChildren(pendingPresentChildren.current);
|
|
253
|
+
propagate && safeToRemove?.();
|
|
254
|
+
onExitComplete && onExitComplete();
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
return jsx(PresenceChild, {
|
|
258
|
+
isPresent,
|
|
259
|
+
initial: !isInitialRender.current || initial ? void 0 : false,
|
|
260
|
+
custom,
|
|
261
|
+
presenceAffectsLayout,
|
|
262
|
+
mode,
|
|
263
|
+
root,
|
|
264
|
+
onExitComplete: isPresent ? void 0 : onExit,
|
|
265
|
+
anchorX,
|
|
266
|
+
anchorY,
|
|
267
|
+
children: child
|
|
268
|
+
}, key);
|
|
269
|
+
}) });
|
|
270
|
+
};
|
|
271
|
+
function useReducedMotion() {
|
|
272
|
+
!hasReducedMotionListener.current && initPrefersReducedMotion();
|
|
273
|
+
const [shouldReduceMotion] = useState(prefersReducedMotion.current);
|
|
274
|
+
return shouldReduceMotion;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export {
|
|
278
|
+
AnimatePresence,
|
|
279
|
+
useReducedMotion
|
|
280
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
notify
|
|
3
|
+
} from "./chunk-K4ESBQ3R.js";
|
|
4
|
+
import "./chunk-W5GRNHV5.js";
|
|
5
|
+
import "./chunk-PKCTG7EW.js";
|
|
6
|
+
import "./chunk-F6MGAW3L.js";
|
|
7
|
+
import {
|
|
8
|
+
X
|
|
9
|
+
} from "./chunk-YHXAXJ6I.js";
|
|
10
|
+
import "./chunk-C5X6G26O.js";
|
|
11
|
+
import "./chunk-E26EAQIM.js";
|
|
12
|
+
import {
|
|
13
|
+
cn
|
|
14
|
+
} from "./chunk-DJMHPJBP.js";
|
|
15
|
+
import "./chunk-JDCCC7A7.js";
|
|
16
|
+
import "./chunk-L547YHC4.js";
|
|
17
|
+
import "./chunk-MLKGABMK.js";
|
|
18
|
+
|
|
19
|
+
// web/app/dist/server/assets/fleet-message-queue-Bn0_3Efe.js
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
var LANES = [{
|
|
22
|
+
key: "steering",
|
|
23
|
+
label: "Next"
|
|
24
|
+
}, {
|
|
25
|
+
key: "followUp",
|
|
26
|
+
label: "After run"
|
|
27
|
+
}];
|
|
28
|
+
function FleetMessageQueue({ queue, onDelete, className }) {
|
|
29
|
+
const count = queue.steering.length + queue.followUp.length;
|
|
30
|
+
if (count === 0) return null;
|
|
31
|
+
const handleDelete = async (lane, index, text) => {
|
|
32
|
+
try {
|
|
33
|
+
if (await onDelete?.(lane, index, text) === false) notify.error("Unable to remove queued message");
|
|
34
|
+
} catch {
|
|
35
|
+
notify.error("Unable to remove queued message");
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ jsx("section", {
|
|
39
|
+
"aria-label": "Queued messages",
|
|
40
|
+
className: cn("mx-auto mb-2 w-full max-w-an px-3", className),
|
|
41
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42
|
+
className: "rounded-xl border border-border/60 bg-muted/30 p-2",
|
|
43
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: "mb-1 flex items-baseline justify-between px-1 text-xs text-muted-foreground",
|
|
45
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [count, " queued"] }), /* @__PURE__ */ jsx("span", { children: "Sent when the run reaches its lane" })]
|
|
46
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: "space-y-1",
|
|
48
|
+
children: LANES.flatMap(({ key, label }) => queue[key].map((text, index) => /* @__PURE__ */ jsxs("div", {
|
|
49
|
+
className: "flex min-w-0 items-center gap-2 rounded-lg bg-background/80 px-2 py-1.5 text-sm",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx("span", {
|
|
52
|
+
className: "shrink-0 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
53
|
+
children: label
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: "min-w-0 flex-1 truncate text-foreground/80",
|
|
57
|
+
children: text
|
|
58
|
+
}),
|
|
59
|
+
onDelete ? /* @__PURE__ */ jsx("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
"aria-label": `Remove queued message: ${text}`,
|
|
62
|
+
onClick: () => void handleDelete(key, index, text),
|
|
63
|
+
className: "grid size-6 shrink-0 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
64
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-3.5" })
|
|
65
|
+
}) : null
|
|
66
|
+
]
|
|
67
|
+
}, `${key}:${index}:${text}`)))
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
FleetMessageQueue
|
|
74
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetPiToolRenderer,
|
|
3
|
+
fleet_pi_tool_renderer_exports
|
|
4
|
+
} from "./chunk-RYHIJMFD.js";
|
|
5
|
+
import "./chunk-KZSM3BHO.js";
|
|
6
|
+
import "./chunk-E365EOXJ.js";
|
|
7
|
+
import "./chunk-V3S6BVXO.js";
|
|
8
|
+
import "./chunk-ANL4B775.js";
|
|
9
|
+
import "./chunk-DBXYBYBP.js";
|
|
10
|
+
import "./chunk-EFAGCVZ3.js";
|
|
11
|
+
import "./chunk-BNQWMQHD.js";
|
|
12
|
+
import "./chunk-4PQ6OD6J.js";
|
|
13
|
+
import "./chunk-P66QQWUM.js";
|
|
14
|
+
import "./chunk-2H6A6Z7F.js";
|
|
15
|
+
import "./chunk-YRWVQ7BW.js";
|
|
16
|
+
import "./chunk-J6MRJXUH.js";
|
|
17
|
+
import "./chunk-LNGWHEE6.js";
|
|
18
|
+
import "./chunk-C66BSNA6.js";
|
|
19
|
+
import "./chunk-HSJMLO36.js";
|
|
20
|
+
import "./chunk-6RJYXDSD.js";
|
|
21
|
+
import "./chunk-744IIIDL.js";
|
|
22
|
+
import "./chunk-SG4W4SPQ.js";
|
|
23
|
+
import "./chunk-PKCTG7EW.js";
|
|
24
|
+
import "./chunk-ZJFA4F5X.js";
|
|
25
|
+
import "./chunk-7QCDOBZ3.js";
|
|
26
|
+
import "./chunk-K3BXQG3N.js";
|
|
27
|
+
import "./chunk-FAGDMGLK.js";
|
|
28
|
+
import "./chunk-T23OO4SC.js";
|
|
29
|
+
import "./chunk-L46H6IDX.js";
|
|
30
|
+
import "./chunk-QLY3L4A2.js";
|
|
31
|
+
import "./chunk-6QNW66XR.js";
|
|
32
|
+
import "./chunk-S3PQ6HKH.js";
|
|
33
|
+
import "./chunk-7SR6WDM2.js";
|
|
34
|
+
import "./chunk-YHXAXJ6I.js";
|
|
35
|
+
import "./chunk-C5X6G26O.js";
|
|
36
|
+
import "./chunk-ST5I2PLN.js";
|
|
37
|
+
import "./chunk-QAE5SXDK.js";
|
|
38
|
+
import "./chunk-GABXCOY3.js";
|
|
39
|
+
import "./chunk-VGDP4YDU.js";
|
|
40
|
+
import "./chunk-G5BCQQ5N.js";
|
|
41
|
+
import "./chunk-BYXBJQAS.js";
|
|
42
|
+
import "./chunk-E26EAQIM.js";
|
|
43
|
+
import "./chunk-DJMHPJBP.js";
|
|
44
|
+
import "./chunk-UQVZJSZZ.js";
|
|
45
|
+
import "./chunk-JDCCC7A7.js";
|
|
46
|
+
import "./chunk-L547YHC4.js";
|
|
47
|
+
import "./chunk-MLKGABMK.js";
|
|
48
|
+
export {
|
|
49
|
+
fleet_pi_tool_renderer_exports as n,
|
|
50
|
+
FleetPiToolRenderer as t
|
|
51
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import {
|
|
2
|
+
take
|
|
3
|
+
} from "./chunk-V3S6BVXO.js";
|
|
4
|
+
import {
|
|
5
|
+
ShimmerLabel,
|
|
6
|
+
SwapLabel,
|
|
7
|
+
collapsePanel
|
|
8
|
+
} from "./chunk-ANL4B775.js";
|
|
9
|
+
import {
|
|
10
|
+
Collapsible,
|
|
11
|
+
CollapsibleContent,
|
|
12
|
+
CollapsibleTrigger
|
|
13
|
+
} from "./chunk-HSJMLO36.js";
|
|
14
|
+
import {
|
|
15
|
+
ChevronDown
|
|
16
|
+
} from "./chunk-QLY3L4A2.js";
|
|
17
|
+
import "./chunk-S3PQ6HKH.js";
|
|
18
|
+
import "./chunk-7SR6WDM2.js";
|
|
19
|
+
import "./chunk-C5X6G26O.js";
|
|
20
|
+
import "./chunk-E26EAQIM.js";
|
|
21
|
+
import {
|
|
22
|
+
cn
|
|
23
|
+
} from "./chunk-DJMHPJBP.js";
|
|
24
|
+
import "./chunk-JDCCC7A7.js";
|
|
25
|
+
import "./chunk-MLKGABMK.js";
|
|
26
|
+
|
|
27
|
+
// web/app/dist/server/assets/fleet-reasoning-panel-C_e7wzVm.js
|
|
28
|
+
import { useMemo, useState } from "react";
|
|
29
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
+
var CELL_SHAPES = {
|
|
31
|
+
dots: "rounded-full",
|
|
32
|
+
squares: "rounded-[1px]",
|
|
33
|
+
rounded: "rounded-[3px]"
|
|
34
|
+
};
|
|
35
|
+
function GenerationLoader({ label, tick, variant = "dots", className, ...props }) {
|
|
36
|
+
const pixelOffset = Math.floor(tick / 3);
|
|
37
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
38
|
+
"data-slot": "generation-loader",
|
|
39
|
+
className: cn("flex flex-col items-center gap-4", className),
|
|
40
|
+
...props,
|
|
41
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
42
|
+
"aria-hidden": true,
|
|
43
|
+
className: "grid grid-cols-3 gap-1",
|
|
44
|
+
children: Array.from({ length: 9 }, (_, index) => {
|
|
45
|
+
const active = (index * 2 + pixelOffset) % 9 < 3;
|
|
46
|
+
return /* @__PURE__ */ jsx("span", { className: cn("bg-foreground size-2 transition-opacity duration-300 motion-reduce:transition-none", CELL_SHAPES[variant], active ? "opacity-90" : "opacity-15") }, index);
|
|
47
|
+
})
|
|
48
|
+
}), /* @__PURE__ */ jsx(ShimmerLabel, {
|
|
49
|
+
className: "text-foreground/55 relative inline-block text-sm",
|
|
50
|
+
children: label
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function ThinkingIndicator({ label, elapsed, className, ...props }) {
|
|
55
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56
|
+
"data-slot": "thinking-indicator",
|
|
57
|
+
className: cn("text-foreground/55 flex items-center gap-2.5 text-sm", className),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
"aria-hidden": true,
|
|
62
|
+
className: "size-1.5 shrink-0 animate-pulse rounded-full bg-blue-500 motion-reduce:animate-none dark:bg-blue-400"
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(ShimmerLabel, {
|
|
65
|
+
className: "fade-in slide-in-from-bottom-1 animate-in relative inline-block leading-none duration-300",
|
|
66
|
+
children: label
|
|
67
|
+
}, label),
|
|
68
|
+
elapsed !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
69
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-foreground/30 tabular-nums"),
|
|
70
|
+
children: elapsed
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function ReasoningPanel({ steps, visibleSteps, streaming, streamingLabel = "Thinking", open, onOpenChange, restingLabel, elapsed, className }) {
|
|
76
|
+
const shown = take(steps, visibleSteps);
|
|
77
|
+
return /* @__PURE__ */ jsxs(Collapsible, {
|
|
78
|
+
"data-slot": "reasoning-panel",
|
|
79
|
+
open,
|
|
80
|
+
onOpenChange,
|
|
81
|
+
className: cn("w-full max-w-sm", className),
|
|
82
|
+
children: [/* @__PURE__ */ jsxs(CollapsibleTrigger, {
|
|
83
|
+
className: "group/trigger text-foreground/55 hover:text-foreground/90 flex items-center gap-1.5 py-1 text-[13.5px] transition-[color,scale] outline-none active:scale-[0.98]",
|
|
84
|
+
children: [/* @__PURE__ */ jsxs(SwapLabel, {
|
|
85
|
+
active: streaming ? 0 : 1,
|
|
86
|
+
className: "text-start",
|
|
87
|
+
children: [/* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ShimmerLabel, {
|
|
88
|
+
active: streaming,
|
|
89
|
+
className: "relative inline-block leading-none",
|
|
90
|
+
children: streamingLabel
|
|
91
|
+
}), elapsed !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
92
|
+
className: cn("font-mono text-[11px] tracking-tight", "text-foreground/30 tabular-nums"),
|
|
93
|
+
children: elapsed
|
|
94
|
+
})] }), /* @__PURE__ */ jsx(Fragment$1, { children: restingLabel })]
|
|
95
|
+
}), /* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 shrink-0 opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-open/trigger:rotate-180 group-data-panel-open/trigger:rotate-180 motion-reduce:transition-none" })]
|
|
96
|
+
}), /* @__PURE__ */ jsx(CollapsibleContent, {
|
|
97
|
+
className: cn(collapsePanel, "outline-none"),
|
|
98
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
99
|
+
className: "flex flex-col gap-4 pt-3 pb-1",
|
|
100
|
+
children: shown.map((step, i) => {
|
|
101
|
+
const active = streaming && i === shown.length - 1;
|
|
102
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
103
|
+
className: "fade-in slide-in-from-bottom-1 animate-in fill-mode-both flex gap-3 duration-300",
|
|
104
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
105
|
+
"aria-hidden": true,
|
|
106
|
+
className: cn("mt-[7px] size-[5px] shrink-0 rounded-full transition-colors duration-300", active ? "animate-pulse bg-blue-500 dark:bg-blue-400" : "bg-foreground/20")
|
|
107
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
108
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
109
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
110
|
+
className: "text-foreground/90 text-[13.5px] font-medium",
|
|
111
|
+
children: step.title
|
|
112
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
113
|
+
className: "text-foreground/50 mt-0.5 text-[13px] leading-relaxed break-words",
|
|
114
|
+
children: step.body
|
|
115
|
+
})]
|
|
116
|
+
})]
|
|
117
|
+
}, step.id ?? `${step.title}-${i}`);
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function FleetReasoningPanel({ presentation, className, streamingOverride }) {
|
|
124
|
+
const [userOpen, setUserOpen] = useState(void 0);
|
|
125
|
+
const streaming = streamingOverride ?? presentation.streaming;
|
|
126
|
+
const open = userOpen ?? streaming;
|
|
127
|
+
const steps = useMemo(() => presentation.steps.map((step) => ({
|
|
128
|
+
id: step.id,
|
|
129
|
+
title: step.title,
|
|
130
|
+
body: step.body
|
|
131
|
+
})), [presentation.steps]);
|
|
132
|
+
if (!streaming && steps.length === 0) return null;
|
|
133
|
+
const visibleSteps = Math.min(Math.max(0, presentation.visibleSteps), steps.length);
|
|
134
|
+
const activeStep = steps.at(visibleSteps - 1);
|
|
135
|
+
const activeLabel = activeStep?.title ?? phaseLabel(presentation.phase);
|
|
136
|
+
const elapsed = formatElapsed(presentation.elapsedMs);
|
|
137
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
138
|
+
"data-slot": "fleet-reasoning-presentation",
|
|
139
|
+
"aria-label": "Safe reasoning progress",
|
|
140
|
+
className: cn("w-full max-w-xl rounded-xl border border-border/60 bg-muted/30 px-3 py-2.5 shadow-sm shadow-black/[0.02] dark:shadow-black/15", className),
|
|
141
|
+
children: [streaming ? /* @__PURE__ */ jsx("div", {
|
|
142
|
+
className: "mb-1.5 flex flex-col gap-1.5 border-b border-border/45 pb-2.5",
|
|
143
|
+
children: activeStep?.body ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ThinkingIndicator, {
|
|
144
|
+
label: activeLabel,
|
|
145
|
+
elapsed,
|
|
146
|
+
className: "text-[13px]"
|
|
147
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
148
|
+
className: "pl-4 text-xs font-normal text-muted-foreground",
|
|
149
|
+
children: activeStep.body
|
|
150
|
+
})] }) : /* @__PURE__ */ jsx(GenerationLoader, {
|
|
151
|
+
label: activeLabel,
|
|
152
|
+
tick: Math.floor((presentation.elapsedMs ?? 0) / 250),
|
|
153
|
+
variant: "dots",
|
|
154
|
+
className: "items-start gap-2 px-1 py-1 text-left"
|
|
155
|
+
})
|
|
156
|
+
}) : null, /* @__PURE__ */ jsx(ReasoningPanel, {
|
|
157
|
+
steps,
|
|
158
|
+
visibleSteps,
|
|
159
|
+
streaming,
|
|
160
|
+
streamingLabel: "Preparing response",
|
|
161
|
+
open,
|
|
162
|
+
onOpenChange: setUserOpen,
|
|
163
|
+
restingLabel: presentation.restingLabel,
|
|
164
|
+
elapsed,
|
|
165
|
+
className: "max-w-none"
|
|
166
|
+
})]
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function phaseLabel(phase) {
|
|
170
|
+
switch (phase) {
|
|
171
|
+
case "waiting":
|
|
172
|
+
return "Preparing run";
|
|
173
|
+
case "context":
|
|
174
|
+
return "Reviewing workspace context";
|
|
175
|
+
case "planning":
|
|
176
|
+
return "Organising the response";
|
|
177
|
+
case "executing":
|
|
178
|
+
return "Completing requested work";
|
|
179
|
+
case "responding":
|
|
180
|
+
return "Writing the response";
|
|
181
|
+
case "recovering":
|
|
182
|
+
return "Recovering the run";
|
|
183
|
+
case "error":
|
|
184
|
+
return "Run needs attention";
|
|
185
|
+
case "complete":
|
|
186
|
+
return "Completed";
|
|
187
|
+
default:
|
|
188
|
+
return "Working";
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function formatElapsed(elapsedMs) {
|
|
192
|
+
if (elapsedMs === void 0) return void 0;
|
|
193
|
+
const seconds = Math.max(0, Math.round(elapsedMs / 1e3));
|
|
194
|
+
if (seconds < 60) return String(seconds) + "s";
|
|
195
|
+
return String(Math.floor(seconds / 60)) + "m " + String(seconds % 60) + "s";
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
FleetReasoningPanel
|
|
199
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetSubagentList,
|
|
3
|
+
fleet_subagent_list_exports
|
|
4
|
+
} from "./chunk-YLMXYMLG.js";
|
|
5
|
+
import "./chunk-YNGDUWCF.js";
|
|
6
|
+
import "./chunk-SG4W4SPQ.js";
|
|
7
|
+
import "./chunk-PKCTG7EW.js";
|
|
8
|
+
import "./chunk-QLY3L4A2.js";
|
|
9
|
+
import "./chunk-GABXCOY3.js";
|
|
10
|
+
import "./chunk-E26EAQIM.js";
|
|
11
|
+
import "./chunk-DJMHPJBP.js";
|
|
12
|
+
import "./chunk-JDCCC7A7.js";
|
|
13
|
+
import "./chunk-L547YHC4.js";
|
|
14
|
+
import "./chunk-MLKGABMK.js";
|
|
15
|
+
export {
|
|
16
|
+
fleet_subagent_list_exports as n,
|
|
17
|
+
FleetSubagentList as t
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FleetToolTimeline,
|
|
3
|
+
fleet_tool_timeline_exports
|
|
4
|
+
} from "./chunk-QTFCJGOY.js";
|
|
5
|
+
import "./chunk-4PQ6OD6J.js";
|
|
6
|
+
import "./chunk-744IIIDL.js";
|
|
7
|
+
import "./chunk-QLY3L4A2.js";
|
|
8
|
+
import "./chunk-E26EAQIM.js";
|
|
9
|
+
import "./chunk-DJMHPJBP.js";
|
|
10
|
+
import "./chunk-JDCCC7A7.js";
|
|
11
|
+
import "./chunk-L547YHC4.js";
|
|
12
|
+
import "./chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
fleet_tool_timeline_exports as n,
|
|
15
|
+
FleetToolTimeline as t
|
|
16
|
+
};
|
|
@@ -4,17 +4,18 @@ import {
|
|
|
4
4
|
DialogDescription,
|
|
5
5
|
DialogHeader,
|
|
6
6
|
DialogTitle
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JOSTE7WK.js";
|
|
8
|
+
import "./chunk-F6MGAW3L.js";
|
|
9
|
+
import "./chunk-7SR6WDM2.js";
|
|
10
|
+
import "./chunk-YHXAXJ6I.js";
|
|
11
|
+
import "./chunk-C5X6G26O.js";
|
|
11
12
|
import "./chunk-E26EAQIM.js";
|
|
12
13
|
import "./chunk-DJMHPJBP.js";
|
|
13
14
|
import "./chunk-JDCCC7A7.js";
|
|
14
15
|
import "./chunk-L547YHC4.js";
|
|
15
16
|
import "./chunk-MLKGABMK.js";
|
|
16
17
|
|
|
17
|
-
// web/app/dist/server/assets/fork-picker-dialog-
|
|
18
|
+
// web/app/dist/server/assets/fork-picker-dialog-DK9YGQuB.js
|
|
18
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
20
|
function ForkPickerDialog({ entries, onOpenChange, onPick }) {
|
|
20
21
|
const open = entries !== null && entries.length > 0;
|