@qredence/fleet 0.5.11 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/web/client/assets/{artifacts-panel-CQmFEF_H.js → artifacts-panel-CJ75gQub.js} +1 -1
- package/dist/web/client/assets/chat-Ci2cEQrR.js +52 -0
- package/dist/web/client/assets/{chat-command-palette-CmHTS3rs.js → chat-command-palette-CkISHfKE.js} +1 -1
- package/dist/web/client/assets/{command-DPfiaYUL.js → command-_WjnervL.js} +1 -1
- package/dist/web/client/assets/fleet-message-queue-BCno4XP-.js +1 -0
- package/dist/web/client/assets/{horizontal-resize-qK6eRhIG.js → horizontal-resize-CwoDojST.js} +1 -1
- package/dist/web/client/assets/{index-C1zOjrMK.js → index-DJ1fFbQu.js} +2 -2
- package/dist/web/client/assets/input-group-Tb5TYbzi.js +1 -0
- package/dist/web/client/assets/{model-selector-list-DsKTuAgS.js → model-selector-list-Ch05B2nZ.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-J3dhPpL4.js → openui-renderer-Bf60nxNi.js} +5 -5
- package/dist/web/client/assets/pencil-DcUwsKLn.js +1 -0
- package/dist/web/client/assets/{provider-label-Dpr7djG9.js → provider-label-DDLRnZyC.js} +1 -1
- package/dist/web/client/assets/{right-panel-registry-DewpBWHM.js → right-panel-registry-Dp8yX-oL.js} +2 -2
- package/dist/web/client/assets/routes-DpgMJZ5n.js +16 -0
- package/dist/web/client/assets/settings-dialog-YJkvt5EB.js +2 -0
- package/dist/web/client/assets/{subagent-chat-panel-DkVUumrP.js → subagent-chat-panel-Yujplxpb.js} +1 -1
- package/dist/web/client/assets/{subagent-transcript-D8wmQxXe.js → subagent-transcript-CnI-mqN0.js} +1 -1
- package/dist/web/client/assets/{subagents-panel-BMp2Ego0.js → subagents-panel-CjXEdimj.js} +1 -1
- package/dist/web/client/assets/{virtualized-turn-list-DMJENRY0.js → virtualized-turn-list--Vynre4D.js} +2 -2
- package/dist/web/client/assets/{workspace-panel-G6yMpKJ8.js → workspace-panel-CPPIznT9.js} +1 -1
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/server/{_tanstack-start-manifest_v-po4woX6g-AUGCOEZ2.js → _tanstack-start-manifest_v-DS_CSIFQ-WB3VTKF3.js} +10 -9
- package/dist/web/server/{artifacts-panel-8GGUCtOd-X5TNKTY2.js → artifacts-panel-CaKrX2XC-R37I4BHF.js} +5 -5
- package/dist/web/server/{chat-command-palette-Dgl5tqWn-72LLEWUD.js → chat-command-palette-7gbqEnm9-6XICQZN7.js} +4 -4
- package/dist/web/server/{chunk-WILCIZYU.js → chunk-BBBS5AS7.js} +2 -2
- package/dist/web/server/{chunk-O4OTWWPF.js → chunk-CNXJN5HN.js} +4 -4
- package/dist/web/server/{chunk-XKKXXG6N.js → chunk-DI7XRK2H.js} +2 -2
- package/dist/web/server/{chunk-BXWAUTTH.js → chunk-DZ2IC3FH.js} +2 -2
- package/dist/web/server/{chunk-7MDZVLIY.js → chunk-EAE2QXRK.js} +1 -1
- package/dist/web/server/{chunk-JUROEEWM.js → chunk-EH4BZ6QM.js} +82 -4
- package/dist/web/server/{chunk-ABBWBBSS.js → chunk-KELEYPVK.js} +4 -4
- package/dist/web/server/{chunk-RNOJACWQ.js → chunk-LXJD6IGW.js} +2 -2
- package/dist/web/server/chunk-M5RSPNYN.js +22 -0
- package/dist/web/server/{chunk-P7H2OPKF.js → chunk-PIOFZUOU.js} +9 -1
- package/dist/web/server/chunk-PTCKOR23.js +39 -0
- package/dist/web/server/{chunk-MIW4LJTV.js → chunk-TWYHHG5N.js} +1 -9
- package/dist/web/server/{chunk-WKV2Z4KO.js → chunk-WHBVQJ4K.js} +2 -2
- package/dist/web/server/{chunk-GGT2ZKDB.js → chunk-YNUWKMNQ.js} +11 -4
- package/dist/web/server/fleet-message-queue-BS-cZ56r-GLZXUKDF.js +152 -0
- package/dist/web/server/{model-selector-list-OYnzNbyu-HBGCNF2L.js → model-selector-list-jBTZc2Mu-OXJOS5NA.js} +3 -3
- package/dist/web/server/{openui-renderer-Cj7kfqyL-EKJ6JTTQ.js → openui-renderer-Biyyjhjn-SJOEKPTJ.js} +4 -4
- package/dist/web/server/{router-Ci1wxI7I-E2AYMNON.js → router-DWALoX_M-I5CBL7FQ.js} +1228 -459
- package/dist/web/server/{routes-CRpm9-Sa-IYK6MUJO.js → routes-BBVirYfL-5WXMOT7M.js} +223 -49
- package/dist/web/server/server.js +2 -2
- package/dist/web/server/{settings-dialog-BvkgNflv-GPJ6COQO.js → settings-dialog-DndPbM-v-RFNXXEAN.js} +890 -567
- package/dist/web/server/{subagent-chat-panel-CMuvW9Sd-M5TEEGQW.js → subagent-chat-panel-C0RpnXav-J7VYO7QY.js} +3 -3
- package/dist/web/server/{subagents-panel-DgfB6_Yy-4INEPE3Y.js → subagents-panel-jDqIn9Nh-YEV6QLUY.js} +3 -3
- package/dist/web/server/{workspace-panel-bpwj-Veu-Q2CEJMN4.js → workspace-panel-CX_Vo6As-EWO6AMPI.js} +3 -3
- package/package.json +1 -1
- package/dist/web/client/assets/chat-yh02zgA7.js +0 -52
- package/dist/web/client/assets/fleet-message-queue-DUz6Hfrf.js +0 -1
- package/dist/web/client/assets/input-group-BFDsCVS9.js +0 -1
- package/dist/web/client/assets/routes-vNkVToAF.js +0 -16
- package/dist/web/client/assets/settings-dialog-B-v4me3Y.js +0 -1
- package/dist/web/server/chunk-QK4CHLVV.js +0 -17
- package/dist/web/server/fleet-message-queue-j0DCU5Xy-5HKBHMPV.js +0 -75
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Pencil
|
|
3
|
+
} from "./chunk-M5RSPNYN.js";
|
|
4
|
+
import {
|
|
5
|
+
notify
|
|
6
|
+
} from "./chunk-WYL2DW5R.js";
|
|
7
|
+
import "./chunk-KOUEJ3NU.js";
|
|
8
|
+
import "./chunk-TNL4YV63.js";
|
|
9
|
+
import "./chunk-LZ4Q5KUJ.js";
|
|
10
|
+
import {
|
|
11
|
+
X
|
|
12
|
+
} from "./chunk-JBLHIEVG.js";
|
|
13
|
+
import "./chunk-C5X6G26O.js";
|
|
14
|
+
import "./chunk-HFQZLPU2.js";
|
|
15
|
+
import "./chunk-4ZIEVI5O.js";
|
|
16
|
+
import {
|
|
17
|
+
cn
|
|
18
|
+
} from "./chunk-DJMHPJBP.js";
|
|
19
|
+
import "./chunk-JDCCC7A7.js";
|
|
20
|
+
import "./chunk-L547YHC4.js";
|
|
21
|
+
import "./chunk-MLKGABMK.js";
|
|
22
|
+
|
|
23
|
+
// web/app/dist/server/assets/fleet-message-queue-BS-cZ56r.js
|
|
24
|
+
import { useState } from "react";
|
|
25
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
var LANES = [{
|
|
27
|
+
key: "steering",
|
|
28
|
+
label: "Next"
|
|
29
|
+
}, {
|
|
30
|
+
key: "followUp",
|
|
31
|
+
label: "After run"
|
|
32
|
+
}];
|
|
33
|
+
function queueItemKey(lane, index) {
|
|
34
|
+
return `${lane}:${index}`;
|
|
35
|
+
}
|
|
36
|
+
function FleetMessageQueue({ queue, onDelete, onEdit, className }) {
|
|
37
|
+
const count = queue.steering.length + queue.followUp.length;
|
|
38
|
+
const [editingKey, setEditingKey] = useState(null);
|
|
39
|
+
const [draftText, setDraftText] = useState("");
|
|
40
|
+
if (count === 0) return null;
|
|
41
|
+
const cancelEdit = () => {
|
|
42
|
+
setEditingKey(null);
|
|
43
|
+
setDraftText("");
|
|
44
|
+
};
|
|
45
|
+
const startEdit = (lane, index, text) => {
|
|
46
|
+
setEditingKey(queueItemKey(lane, index));
|
|
47
|
+
setDraftText(text);
|
|
48
|
+
};
|
|
49
|
+
const handleDelete = async (lane, index, text) => {
|
|
50
|
+
if (editingKey === queueItemKey(lane, index)) cancelEdit();
|
|
51
|
+
try {
|
|
52
|
+
if (await onDelete?.(lane, index, text) === false) notify.error("Unable to remove queued message");
|
|
53
|
+
} catch {
|
|
54
|
+
notify.error("Unable to remove queued message");
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const handleSaveEdit = async (lane, index, expectedText) => {
|
|
58
|
+
const trimmed = draftText.trim();
|
|
59
|
+
if (trimmed.length === 0) {
|
|
60
|
+
await handleDelete(lane, index, expectedText);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (trimmed === expectedText) {
|
|
64
|
+
cancelEdit();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
if (await onEdit?.(lane, index, expectedText, trimmed) === false) notify.error("Unable to update queued message");
|
|
69
|
+
else cancelEdit();
|
|
70
|
+
} catch {
|
|
71
|
+
notify.error("Unable to update queued message");
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return /* @__PURE__ */ jsx("section", {
|
|
75
|
+
"aria-label": "Queued messages",
|
|
76
|
+
className: cn("mx-auto mb-2 w-full max-w-an px-3", className),
|
|
77
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
78
|
+
className: "rounded-xl border border-border/60 bg-muted/30 p-2",
|
|
79
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
80
|
+
className: "mb-1 flex items-baseline justify-between px-1 text-xs text-muted-foreground",
|
|
81
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [count, " queued"] }), /* @__PURE__ */ jsx("span", { children: "Sent when the run reaches its lane" })]
|
|
82
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
83
|
+
className: "space-y-1",
|
|
84
|
+
children: LANES.flatMap(({ key, label }) => queue[key].map((text, index) => {
|
|
85
|
+
const itemKey = queueItemKey(key, index);
|
|
86
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
87
|
+
className: "flex min-w-0 items-start gap-2 rounded-lg bg-background/80 px-2 py-1.5 text-sm",
|
|
88
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
89
|
+
className: "mt-0.5 shrink-0 text-[0.625rem] font-medium uppercase tracking-wide text-muted-foreground",
|
|
90
|
+
children: label
|
|
91
|
+
}), editingKey === itemKey ? /* @__PURE__ */ jsxs("div", {
|
|
92
|
+
className: "flex min-w-0 flex-1 flex-col gap-1.5",
|
|
93
|
+
children: [/* @__PURE__ */ jsx("textarea", {
|
|
94
|
+
value: draftText,
|
|
95
|
+
onChange: (event) => setDraftText(event.target.value),
|
|
96
|
+
onKeyDown: (event) => {
|
|
97
|
+
if (event.key === "Escape") {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
cancelEdit();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
handleSaveEdit(key, index, text);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"aria-label": `Edit queued message: ${text}`,
|
|
108
|
+
rows: 2,
|
|
109
|
+
className: "min-h-10 w-full resize-y rounded-md border border-border/70 bg-background px-2 py-1 text-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
110
|
+
autoFocus: true
|
|
111
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
112
|
+
className: "flex flex-wrap gap-1",
|
|
113
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
114
|
+
type: "button",
|
|
115
|
+
onClick: () => void handleSaveEdit(key, index, text),
|
|
116
|
+
className: "rounded-md bg-primary px-2 py-1 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
117
|
+
children: "Save"
|
|
118
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: cancelEdit,
|
|
121
|
+
className: "rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
122
|
+
children: "Cancel"
|
|
123
|
+
})]
|
|
124
|
+
})]
|
|
125
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
126
|
+
className: "min-w-0 flex-1 truncate text-foreground/80",
|
|
127
|
+
children: text
|
|
128
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
129
|
+
className: "flex shrink-0 items-center gap-0.5",
|
|
130
|
+
children: [onEdit ? /* @__PURE__ */ jsx("button", {
|
|
131
|
+
type: "button",
|
|
132
|
+
"aria-label": `Edit queued message: ${text}`,
|
|
133
|
+
onClick: () => startEdit(key, index, text),
|
|
134
|
+
className: "grid size-6 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",
|
|
135
|
+
children: /* @__PURE__ */ jsx(Pencil, { className: "size-3.5" })
|
|
136
|
+
}) : null, onDelete ? /* @__PURE__ */ jsx("button", {
|
|
137
|
+
type: "button",
|
|
138
|
+
"aria-label": `Remove queued message: ${text}`,
|
|
139
|
+
onClick: () => void handleDelete(key, index, text),
|
|
140
|
+
className: "grid size-6 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",
|
|
141
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-3.5" })
|
|
142
|
+
}) : null]
|
|
143
|
+
})] })]
|
|
144
|
+
}, `${key}:${index}:${text}`);
|
|
145
|
+
}))
|
|
146
|
+
})]
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
export {
|
|
151
|
+
FleetMessageQueue
|
|
152
|
+
};
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
CommandInput,
|
|
9
9
|
CommandItem,
|
|
10
10
|
CommandList
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DI7XRK2H.js";
|
|
12
|
+
import "./chunk-PIOFZUOU.js";
|
|
13
13
|
import "./chunk-JIULUYHT.js";
|
|
14
14
|
import {
|
|
15
15
|
SPRING_GLIDE,
|
|
@@ -35,7 +35,7 @@ import "./chunk-JDCCC7A7.js";
|
|
|
35
35
|
import "./chunk-L547YHC4.js";
|
|
36
36
|
import "./chunk-MLKGABMK.js";
|
|
37
37
|
|
|
38
|
-
// web/app/dist/server/assets/model-selector-list-
|
|
38
|
+
// web/app/dist/server/assets/model-selector-list-jBTZc2Mu.js
|
|
39
39
|
import { useId, useMemo, useState } from "react";
|
|
40
40
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
41
41
|
function clamp(value, min, max) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
GenerativeTextRenderer,
|
|
3
3
|
OpenUIHtmlArtifactView,
|
|
4
4
|
openui_renderer_exports
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KELEYPVK.js";
|
|
6
|
+
import "./chunk-DZ2IC3FH.js";
|
|
7
|
+
import "./chunk-EAE2QXRK.js";
|
|
8
|
+
import "./chunk-YNUWKMNQ.js";
|
|
9
9
|
import "./chunk-UAPNEWCA.js";
|
|
10
10
|
import "./chunk-WM4PUT6M.js";
|
|
11
11
|
import "./chunk-RJOANOT4.js";
|