@synergenius/flow-weaver-pack-weaver 0.9.54 → 0.9.55
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/dist/ui/approval-card.js +24 -1
- package/dist/ui/bot-workspace.js +50 -147
- package/dist/ui/genesis-block.js +9 -2
- package/dist/ui/queue-input.js +24 -1
- package/dist/ui/session-bar.js +24 -1
- package/dist/ui/settings-section.js +24 -1
- package/package.json +1 -1
- package/src/ui/approval-card.tsx +2 -1
- package/src/ui/bot-workspace.tsx +9 -9
- package/src/ui/genesis-block.tsx +2 -2
- package/src/ui/queue-input.tsx +2 -1
- package/src/ui/session-bar.tsx +2 -1
- package/src/ui/settings-section.tsx +2 -1
package/dist/ui/approval-card.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
20
|
// src/ui/approval-card.tsx
|
|
21
|
+
var approval_card_exports = {};
|
|
22
|
+
__export(approval_card_exports, {
|
|
23
|
+
ApprovalCard: () => ApprovalCard,
|
|
24
|
+
default: () => approval_card_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(approval_card_exports);
|
|
4
27
|
var React = require("react");
|
|
5
28
|
var { useState, useCallback } = React;
|
|
6
29
|
var {
|
|
@@ -108,4 +131,4 @@ function ApprovalCard({ plan, callTool, onDecision }) {
|
|
|
108
131
|
)
|
|
109
132
|
);
|
|
110
133
|
}
|
|
111
|
-
|
|
134
|
+
var approval_card_default = ApprovalCard;
|
package/dist/ui/bot-workspace.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __esm = (fn, res) => function __init() {
|
|
7
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
8
|
-
};
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
2
|
|
|
23
3
|
// src/ui/session-bar.tsx
|
|
24
|
-
var
|
|
4
|
+
var React = require("react");
|
|
5
|
+
var { useState, useEffect, useCallback, useRef } = React;
|
|
6
|
+
var { Flex, Typography, Icon, Button, Badge, toast, formatDuration, formatCost } = require("@fw/plugin-ui-kit");
|
|
25
7
|
function SessionBar({ callTool, dispatchEvent }) {
|
|
26
8
|
const [session, setSession] = useState(null);
|
|
27
9
|
const [elapsed, setElapsed] = useState(0);
|
|
@@ -166,19 +148,11 @@ function SessionBar({ callTool, dispatchEvent }) {
|
|
|
166
148
|
)
|
|
167
149
|
);
|
|
168
150
|
}
|
|
169
|
-
var React, useState, useEffect, useCallback, useRef, Flex, Typography, Icon, Button, Badge, toast, formatDuration, formatCost;
|
|
170
|
-
var init_session_bar = __esm({
|
|
171
|
-
"src/ui/session-bar.tsx"() {
|
|
172
|
-
"use strict";
|
|
173
|
-
React = require("react");
|
|
174
|
-
({ useState, useEffect, useCallback, useRef } = React);
|
|
175
|
-
({ Flex, Typography, Icon, Button, Badge, toast, formatDuration, formatCost } = require("@fw/plugin-ui-kit"));
|
|
176
|
-
module.exports = SessionBar;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
151
|
|
|
180
152
|
// src/ui/settings-section.tsx
|
|
181
|
-
var
|
|
153
|
+
var React2 = require("react");
|
|
154
|
+
var { useState: useState2, useEffect: useEffect2, useCallback: useCallback2 } = React2;
|
|
155
|
+
var { Flex: Flex2, Typography: Typography2, Button: Button2, CollapsibleSection, KeyValueRow, toast: toast2 } = require("@fw/plugin-ui-kit");
|
|
182
156
|
function SettingsSection({ callTool, dispatchEvent }) {
|
|
183
157
|
const [providers, setProviders] = useState2([]);
|
|
184
158
|
const [insights, setInsights] = useState2(null);
|
|
@@ -253,19 +227,11 @@ function SettingsSection({ callTool, dispatchEvent }) {
|
|
|
253
227
|
)
|
|
254
228
|
);
|
|
255
229
|
}
|
|
256
|
-
var React2, useState2, useEffect2, useCallback2, Flex2, Typography2, Button2, CollapsibleSection, KeyValueRow, toast2;
|
|
257
|
-
var init_settings_section = __esm({
|
|
258
|
-
"src/ui/settings-section.tsx"() {
|
|
259
|
-
"use strict";
|
|
260
|
-
React2 = require("react");
|
|
261
|
-
({ useState: useState2, useEffect: useEffect2, useCallback: useCallback2 } = React2);
|
|
262
|
-
({ Flex: Flex2, Typography: Typography2, Button: Button2, CollapsibleSection, KeyValueRow, toast: toast2 } = require("@fw/plugin-ui-kit"));
|
|
263
|
-
module.exports = SettingsSection;
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
230
|
|
|
267
231
|
// src/ui/queue-input.tsx
|
|
268
|
-
var
|
|
232
|
+
var React3 = require("react");
|
|
233
|
+
var { useState: useState3, useCallback: useCallback3 } = React3;
|
|
234
|
+
var { Flex: Flex3, IconButton, Input, toast: toast3 } = require("@fw/plugin-ui-kit");
|
|
269
235
|
function QueueInput({ callTool, onTaskAdded }) {
|
|
270
236
|
const [newTask, setNewTask] = useState3("");
|
|
271
237
|
const [adding, setAdding] = useState3(false);
|
|
@@ -318,19 +284,27 @@ function QueueInput({ callTool, onTaskAdded }) {
|
|
|
318
284
|
})
|
|
319
285
|
);
|
|
320
286
|
}
|
|
321
|
-
var React3, useState3, useCallback3, Flex3, IconButton, Input, toast3;
|
|
322
|
-
var init_queue_input = __esm({
|
|
323
|
-
"src/ui/queue-input.tsx"() {
|
|
324
|
-
"use strict";
|
|
325
|
-
React3 = require("react");
|
|
326
|
-
({ useState: useState3, useCallback: useCallback3 } = React3);
|
|
327
|
-
({ Flex: Flex3, IconButton, Input, toast: toast3 } = require("@fw/plugin-ui-kit"));
|
|
328
|
-
module.exports = QueueInput;
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
287
|
|
|
332
288
|
// src/ui/genesis-block.tsx
|
|
333
|
-
var
|
|
289
|
+
var React4 = require("react");
|
|
290
|
+
var { useState: useState4, useCallback: useCallback4 } = React4;
|
|
291
|
+
var { CollapsibleBlock, Flex: Flex4, Typography: Typography3, Icon: Icon2, Badge: Badge2, Tag, Button: Button3, toast: toast4, formatTimestamp } = require("@fw/plugin-ui-kit");
|
|
292
|
+
var OUTCOME_BADGE_VARIANTS = {
|
|
293
|
+
applied: "success",
|
|
294
|
+
"rolled-back": "error",
|
|
295
|
+
rejected: "warning",
|
|
296
|
+
stabilized: "success",
|
|
297
|
+
"no-change": "default",
|
|
298
|
+
error: "error"
|
|
299
|
+
};
|
|
300
|
+
var OUTCOME_STATUS = {
|
|
301
|
+
applied: "completed",
|
|
302
|
+
stabilized: "completed",
|
|
303
|
+
"rolled-back": "error",
|
|
304
|
+
rejected: "error",
|
|
305
|
+
error: "error",
|
|
306
|
+
"no-change": "completed"
|
|
307
|
+
};
|
|
334
308
|
function GenesisBlock({ cycle, callTool }) {
|
|
335
309
|
const [expanded, setExpanded] = useState4(false);
|
|
336
310
|
const [rollingBack, setRollingBack] = useState4(false);
|
|
@@ -440,36 +414,19 @@ function GenesisBlock({ cycle, callTool }) {
|
|
|
440
414
|
)
|
|
441
415
|
);
|
|
442
416
|
}
|
|
443
|
-
var React4, useState4, useCallback4, CollapsibleBlock, Flex4, Typography3, Icon2, Badge2, Tag, Button3, toast4, formatTimestamp, OUTCOME_BADGE_VARIANTS, OUTCOME_STATUS;
|
|
444
|
-
var init_genesis_block = __esm({
|
|
445
|
-
"src/ui/genesis-block.tsx"() {
|
|
446
|
-
"use strict";
|
|
447
|
-
React4 = require("react");
|
|
448
|
-
({ useState: useState4, useCallback: useCallback4 } = React4);
|
|
449
|
-
({ CollapsibleBlock, Flex: Flex4, Typography: Typography3, Icon: Icon2, Badge: Badge2, Tag, Button: Button3, toast: toast4, formatTimestamp } = require("@fw/plugin-ui-kit"));
|
|
450
|
-
OUTCOME_BADGE_VARIANTS = {
|
|
451
|
-
applied: "success",
|
|
452
|
-
"rolled-back": "error",
|
|
453
|
-
rejected: "warning",
|
|
454
|
-
stabilized: "success",
|
|
455
|
-
"no-change": "default",
|
|
456
|
-
error: "error"
|
|
457
|
-
};
|
|
458
|
-
OUTCOME_STATUS = {
|
|
459
|
-
applied: "completed",
|
|
460
|
-
stabilized: "completed",
|
|
461
|
-
"rolled-back": "error",
|
|
462
|
-
rejected: "error",
|
|
463
|
-
error: "error",
|
|
464
|
-
"no-change": "completed"
|
|
465
|
-
};
|
|
466
|
-
module.exports = GenesisBlock;
|
|
467
|
-
module.exports.GenesisCycleData = void 0;
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
417
|
|
|
471
418
|
// src/ui/approval-card.tsx
|
|
472
|
-
var
|
|
419
|
+
var React5 = require("react");
|
|
420
|
+
var { useState: useState5, useCallback: useCallback5 } = React5;
|
|
421
|
+
var {
|
|
422
|
+
CollapsibleBlock: CollapsibleBlock2,
|
|
423
|
+
Flex: Flex5,
|
|
424
|
+
Typography: Typography4,
|
|
425
|
+
Badge: Badge3,
|
|
426
|
+
Tag: Tag2,
|
|
427
|
+
Button: Button4,
|
|
428
|
+
toast: toast5
|
|
429
|
+
} = require("@fw/plugin-ui-kit");
|
|
473
430
|
function ApprovalCard({ plan, callTool, onDecision }) {
|
|
474
431
|
const [deciding, setDeciding] = useState5(false);
|
|
475
432
|
const [decided, setDecided] = useState5(null);
|
|
@@ -566,30 +523,10 @@ function ApprovalCard({ plan, callTool, onDecision }) {
|
|
|
566
523
|
)
|
|
567
524
|
);
|
|
568
525
|
}
|
|
569
|
-
var React5, useState5, useCallback5, CollapsibleBlock2, Flex5, Typography4, Badge3, Tag2, Button4, toast5;
|
|
570
|
-
var init_approval_card = __esm({
|
|
571
|
-
"src/ui/approval-card.tsx"() {
|
|
572
|
-
"use strict";
|
|
573
|
-
React5 = require("react");
|
|
574
|
-
({ useState: useState5, useCallback: useCallback5 } = React5);
|
|
575
|
-
({
|
|
576
|
-
CollapsibleBlock: CollapsibleBlock2,
|
|
577
|
-
Flex: Flex5,
|
|
578
|
-
Typography: Typography4,
|
|
579
|
-
Badge: Badge3,
|
|
580
|
-
Tag: Tag2,
|
|
581
|
-
Button: Button4,
|
|
582
|
-
toast: toast5
|
|
583
|
-
} = require("@fw/plugin-ui-kit"));
|
|
584
|
-
module.exports = ApprovalCard;
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
526
|
|
|
588
527
|
// src/ui/use-stream-timeline.ts
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
useStreamTimeline: () => useStreamTimeline
|
|
592
|
-
});
|
|
528
|
+
var React6 = require("react");
|
|
529
|
+
var { useMemo, useState: useState6, useEffect: useEffect3, useRef: useRef2 } = React6;
|
|
593
530
|
function useStreamTimeline(events, isDone) {
|
|
594
531
|
const [elapsed, setElapsed] = useState6(0);
|
|
595
532
|
const startTimeRef = useRef2(null);
|
|
@@ -748,20 +685,8 @@ function useStreamTimeline(events, isDone) {
|
|
|
748
685
|
}, [events, isDone]);
|
|
749
686
|
return { timeline, phase, instruction, elapsed, cost, plan, awaitingApproval };
|
|
750
687
|
}
|
|
751
|
-
var React6, useMemo, useState6, useEffect3, useRef2;
|
|
752
|
-
var init_use_stream_timeline = __esm({
|
|
753
|
-
"src/ui/use-stream-timeline.ts"() {
|
|
754
|
-
"use strict";
|
|
755
|
-
React6 = require("react");
|
|
756
|
-
({ useMemo, useState: useState6, useEffect: useEffect3, useRef: useRef2 } = React6);
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
688
|
|
|
760
689
|
// src/ui/trace-to-timeline.ts
|
|
761
|
-
var trace_to_timeline_exports = {};
|
|
762
|
-
__export(trace_to_timeline_exports, {
|
|
763
|
-
traceToTimeline: () => traceToTimeline
|
|
764
|
-
});
|
|
765
690
|
function traceToTimeline(run) {
|
|
766
691
|
const entries = [];
|
|
767
692
|
let idCounter = 0;
|
|
@@ -853,28 +778,14 @@ function traceToTimeline(run) {
|
|
|
853
778
|
entries.sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime());
|
|
854
779
|
return entries;
|
|
855
780
|
}
|
|
856
|
-
var init_trace_to_timeline = __esm({
|
|
857
|
-
"src/ui/trace-to-timeline.ts"() {
|
|
858
|
-
"use strict";
|
|
859
|
-
}
|
|
860
|
-
});
|
|
861
781
|
|
|
862
782
|
// src/ui/steer-api.ts
|
|
863
|
-
var steer_api_exports = {};
|
|
864
|
-
__export(steer_api_exports, {
|
|
865
|
-
sendSteerCommand: () => sendSteerCommand
|
|
866
|
-
});
|
|
867
783
|
async function sendSteerCommand(callTool, command, payload) {
|
|
868
784
|
await callTool("fw_weaver_steer", {
|
|
869
785
|
command,
|
|
870
786
|
...payload ? { payload } : {}
|
|
871
787
|
});
|
|
872
788
|
}
|
|
873
|
-
var init_steer_api = __esm({
|
|
874
|
-
"src/ui/steer-api.ts"() {
|
|
875
|
-
"use strict";
|
|
876
|
-
}
|
|
877
|
-
});
|
|
878
789
|
|
|
879
790
|
// src/ui/bot-workspace.tsx
|
|
880
791
|
var React7 = require("react");
|
|
@@ -888,14 +799,6 @@ var {
|
|
|
888
799
|
usePackWorkspace,
|
|
889
800
|
useEventStream
|
|
890
801
|
} = require("@fw/plugin-ui-kit");
|
|
891
|
-
var SessionBar2 = (init_session_bar(), __toCommonJS(session_bar_exports));
|
|
892
|
-
var SettingsSection2 = (init_settings_section(), __toCommonJS(settings_section_exports));
|
|
893
|
-
var QueueInput2 = (init_queue_input(), __toCommonJS(queue_input_exports));
|
|
894
|
-
var GenesisBlock2 = (init_genesis_block(), __toCommonJS(genesis_block_exports));
|
|
895
|
-
var ApprovalCard2 = (init_approval_card(), __toCommonJS(approval_card_exports));
|
|
896
|
-
var { useStreamTimeline: useStreamTimeline2 } = (init_use_stream_timeline(), __toCommonJS(use_stream_timeline_exports));
|
|
897
|
-
var { traceToTimeline: traceToTimeline2 } = (init_trace_to_timeline(), __toCommonJS(trace_to_timeline_exports));
|
|
898
|
-
var { sendSteerCommand: sendSteerCommand2 } = (init_steer_api(), __toCommonJS(steer_api_exports));
|
|
899
802
|
function BotWorkspace() {
|
|
900
803
|
const ctx = usePackWorkspace();
|
|
901
804
|
const { callTool, windowData, dispatchEvent, onRefresh } = ctx;
|
|
@@ -911,7 +814,7 @@ function BotWorkspace() {
|
|
|
911
814
|
cost,
|
|
912
815
|
plan,
|
|
913
816
|
awaitingApproval
|
|
914
|
-
} =
|
|
817
|
+
} = useStreamTimeline(stream.events, stream.isDone);
|
|
915
818
|
useEffect4(() => {
|
|
916
819
|
if (!isLive || !windowData?.runId) return;
|
|
917
820
|
stream.start(packId, "fw_weaver_events", windowData.runId);
|
|
@@ -952,7 +855,7 @@ function BotWorkspace() {
|
|
|
952
855
|
const handlePause = useCallback6(async () => {
|
|
953
856
|
setPausing(true);
|
|
954
857
|
try {
|
|
955
|
-
await
|
|
858
|
+
await sendSteerCommand(callTool, "pause");
|
|
956
859
|
toast6("Pause signal sent", { type: "info" });
|
|
957
860
|
} catch (err) {
|
|
958
861
|
toast6(err instanceof Error ? err.message : "Failed to pause", { type: "error" });
|
|
@@ -962,7 +865,7 @@ function BotWorkspace() {
|
|
|
962
865
|
const handleStop = useCallback6(async () => {
|
|
963
866
|
setStopping(true);
|
|
964
867
|
try {
|
|
965
|
-
await
|
|
868
|
+
await sendSteerCommand(callTool, "cancel");
|
|
966
869
|
toast6("Stopping \u2014 will take effect after current node completes", { type: "info" });
|
|
967
870
|
} catch (err) {
|
|
968
871
|
toast6(err instanceof Error ? err.message : "Failed to stop", { type: "error" });
|
|
@@ -1044,7 +947,7 @@ function BotWorkspace() {
|
|
|
1044
947
|
const timelineItems = useMemo2(() => {
|
|
1045
948
|
const items = [];
|
|
1046
949
|
for (const run of history) {
|
|
1047
|
-
items.push({ kind: "run", timestamp: new Date(run.startedAt ?? 0).getTime(), run, runTimeline:
|
|
950
|
+
items.push({ kind: "run", timestamp: new Date(run.startedAt ?? 0).getTime(), run, runTimeline: traceToTimeline(run) });
|
|
1048
951
|
}
|
|
1049
952
|
for (const cycle of genesisCycles) {
|
|
1050
953
|
items.push({ kind: "genesis", timestamp: new Date(cycle.timestamp).getTime(), genesis: cycle });
|
|
@@ -1092,7 +995,7 @@ function BotWorkspace() {
|
|
|
1092
995
|
if (text.length > 120) text = text.slice(0, 117) + "...";
|
|
1093
996
|
return text;
|
|
1094
997
|
}
|
|
1095
|
-
const approvalSlot = awaitingApproval && plan ? React7.createElement(
|
|
998
|
+
const approvalSlot = awaitingApproval && plan ? React7.createElement(ApprovalCard, { plan, callTool }) : null;
|
|
1096
999
|
return React7.createElement(
|
|
1097
1000
|
Flex6,
|
|
1098
1001
|
{
|
|
@@ -1100,9 +1003,9 @@ function BotWorkspace() {
|
|
|
1100
1003
|
style: { width: "100%", height: "100%", overflow: "hidden" }
|
|
1101
1004
|
},
|
|
1102
1005
|
// Session bar
|
|
1103
|
-
React7.createElement(
|
|
1006
|
+
React7.createElement(SessionBar, { callTool, dispatchEvent }),
|
|
1104
1007
|
// Settings
|
|
1105
|
-
React7.createElement(
|
|
1008
|
+
React7.createElement(SettingsSection, { callTool, dispatchEvent }),
|
|
1106
1009
|
// Main scrollable timeline
|
|
1107
1010
|
React7.createElement(
|
|
1108
1011
|
Flex6,
|
|
@@ -1121,7 +1024,7 @@ function BotWorkspace() {
|
|
|
1121
1024
|
}),
|
|
1122
1025
|
...timelineItems.map((item) => {
|
|
1123
1026
|
if (item.kind === "genesis" && item.genesis) {
|
|
1124
|
-
return React7.createElement(
|
|
1027
|
+
return React7.createElement(GenesisBlock, {
|
|
1125
1028
|
key: `genesis-${item.genesis.id}`,
|
|
1126
1029
|
cycle: item.genesis,
|
|
1127
1030
|
callTool
|
|
@@ -1178,7 +1081,7 @@ function BotWorkspace() {
|
|
|
1178
1081
|
)
|
|
1179
1082
|
),
|
|
1180
1083
|
// Input bar
|
|
1181
|
-
React7.createElement(
|
|
1084
|
+
React7.createElement(QueueInput, { callTool, onTaskAdded: refreshData })
|
|
1182
1085
|
);
|
|
1183
1086
|
}
|
|
1184
1087
|
module.exports = BotWorkspace;
|
package/dist/ui/genesis-block.js
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,6 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/ui/genesis-block.tsx
|
|
17
21
|
var genesis_block_exports = {};
|
|
22
|
+
__export(genesis_block_exports, {
|
|
23
|
+
GenesisBlock: () => GenesisBlock,
|
|
24
|
+
default: () => genesis_block_default
|
|
25
|
+
});
|
|
18
26
|
module.exports = __toCommonJS(genesis_block_exports);
|
|
19
27
|
var React = require("react");
|
|
20
28
|
var { useState, useCallback } = React;
|
|
@@ -144,5 +152,4 @@ function GenesisBlock({ cycle, callTool }) {
|
|
|
144
152
|
)
|
|
145
153
|
);
|
|
146
154
|
}
|
|
147
|
-
|
|
148
|
-
module.exports.GenesisCycleData = void 0;
|
|
155
|
+
var genesis_block_default = GenesisBlock;
|
package/dist/ui/queue-input.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
20
|
// src/ui/queue-input.tsx
|
|
21
|
+
var queue_input_exports = {};
|
|
22
|
+
__export(queue_input_exports, {
|
|
23
|
+
QueueInput: () => QueueInput,
|
|
24
|
+
default: () => queue_input_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(queue_input_exports);
|
|
4
27
|
var React = require("react");
|
|
5
28
|
var { useState, useCallback } = React;
|
|
6
29
|
var { Flex, IconButton, Input, toast } = require("@fw/plugin-ui-kit");
|
|
@@ -56,4 +79,4 @@ function QueueInput({ callTool, onTaskAdded }) {
|
|
|
56
79
|
})
|
|
57
80
|
);
|
|
58
81
|
}
|
|
59
|
-
|
|
82
|
+
var queue_input_default = QueueInput;
|
package/dist/ui/session-bar.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
20
|
// src/ui/session-bar.tsx
|
|
21
|
+
var session_bar_exports = {};
|
|
22
|
+
__export(session_bar_exports, {
|
|
23
|
+
SessionBar: () => SessionBar,
|
|
24
|
+
default: () => session_bar_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(session_bar_exports);
|
|
4
27
|
var React = require("react");
|
|
5
28
|
var { useState, useEffect, useCallback, useRef } = React;
|
|
6
29
|
var { Flex, Typography, Icon, Button, Badge, toast, formatDuration, formatCost } = require("@fw/plugin-ui-kit");
|
|
@@ -148,4 +171,4 @@ function SessionBar({ callTool, dispatchEvent }) {
|
|
|
148
171
|
)
|
|
149
172
|
);
|
|
150
173
|
}
|
|
151
|
-
|
|
174
|
+
var session_bar_default = SessionBar;
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
20
|
// src/ui/settings-section.tsx
|
|
21
|
+
var settings_section_exports = {};
|
|
22
|
+
__export(settings_section_exports, {
|
|
23
|
+
SettingsSection: () => SettingsSection,
|
|
24
|
+
default: () => settings_section_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(settings_section_exports);
|
|
4
27
|
var React = require("react");
|
|
5
28
|
var { useState, useEffect, useCallback } = React;
|
|
6
29
|
var { Flex, Typography, Button, CollapsibleSection, KeyValueRow, toast } = require("@fw/plugin-ui-kit");
|
|
@@ -78,4 +101,4 @@ function SettingsSection({ callTool, dispatchEvent }) {
|
|
|
78
101
|
)
|
|
79
102
|
);
|
|
80
103
|
}
|
|
81
|
-
|
|
104
|
+
var settings_section_default = SettingsSection;
|
package/package.json
CHANGED
package/src/ui/approval-card.tsx
CHANGED
package/src/ui/bot-workspace.tsx
CHANGED
|
@@ -23,15 +23,15 @@ const {
|
|
|
23
23
|
Flex, ScrollArea, EmptyState, TaskBlock, toast, usePackWorkspace, useEventStream,
|
|
24
24
|
} = require('@fw/plugin-ui-kit');
|
|
25
25
|
|
|
26
|
-
// Local pack-specific components and utilities
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
// Local pack-specific components and utilities (bundled by esbuild)
|
|
27
|
+
import { SessionBar } from './session-bar';
|
|
28
|
+
import { SettingsSection } from './settings-section';
|
|
29
|
+
import { QueueInput } from './queue-input';
|
|
30
|
+
import { GenesisBlock } from './genesis-block';
|
|
31
|
+
import { ApprovalCard } from './approval-card';
|
|
32
|
+
import { useStreamTimeline } from './use-stream-timeline';
|
|
33
|
+
import { traceToTimeline } from './trace-to-timeline';
|
|
34
|
+
import { sendSteerCommand } from './steer-api';
|
|
35
35
|
|
|
36
36
|
// ---------------------------------------------------------------------------
|
|
37
37
|
// Types
|
package/src/ui/genesis-block.tsx
CHANGED
package/src/ui/queue-input.tsx
CHANGED
package/src/ui/session-bar.tsx
CHANGED