@arbidocs/blocks 0.4.137 → 0.4.139
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/agents/definitions/AgentConnectInstructions.d.ts +12 -0
- package/dist/agents/definitions/defaults.d.ts +12 -0
- package/dist/agents/definitions/index.d.ts +2 -0
- package/dist/agents/index.cjs +457 -418
- package/dist/agents/index.js +12 -13
- package/dist/agents/skills/SkillLibraryDetail.d.ts +26 -0
- package/dist/agents/skills/index.d.ts +2 -0
- package/dist/agents/skills/skillLibrary.d.ts +46 -0
- package/dist/calendar/CalendarFormDialog.d.ts +13 -0
- package/dist/calendar/ProposeTimeDialog.d.ts +22 -0
- package/dist/calendar/WeeklyHoursEditor.d.ts +7 -0
- package/dist/calendar/access-setup.d.ts +8 -0
- package/dist/calendar/api-mapping.d.ts +22 -0
- package/dist/calendar/booking-form.d.ts +46 -0
- package/dist/calendar/conference.d.ts +11 -0
- package/dist/calendar/errors.d.ts +7 -0
- package/dist/calendar/feeds.d.ts +2 -0
- package/dist/calendar/freebusy.d.ts +22 -0
- package/dist/calendar/ics.d.ts +33 -0
- package/dist/calendar/index.cjs +472 -4293
- package/dist/calendar/index.cjs.map +1 -1
- package/dist/calendar/index.d.ts +17 -1
- package/dist/calendar/index.js +1 -4227
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/requests.d.ts +42 -0
- package/dist/calendar/room-window.d.ts +6 -0
- package/dist/calendar/settings-value.d.ts +4 -0
- package/dist/calls/index.cjs +4 -4
- package/dist/calls/index.js +3 -3
- package/dist/chat/index.cjs +141 -141
- package/dist/chat/index.js +6 -6
- package/dist/{chunk-M33QUNFH.js → chunk-22WFGXG2.js} +3 -3
- package/dist/{chunk-M33QUNFH.js.map → chunk-22WFGXG2.js.map} +1 -1
- package/dist/{chunk-VMESMX7N.js → chunk-453PNNNW.js} +3 -3
- package/dist/{chunk-VMESMX7N.js.map → chunk-453PNNNW.js.map} +1 -1
- package/dist/{chunk-2KUCVSFF.js → chunk-45LRMW54.js} +3 -3
- package/dist/{chunk-2KUCVSFF.js.map → chunk-45LRMW54.js.map} +1 -1
- package/dist/chunk-5FTIHRZH.cjs +177 -0
- package/dist/chunk-5FTIHRZH.cjs.map +1 -0
- package/dist/{chunk-FUTMU4FR.js → chunk-5HFPRI3W.js} +3 -3
- package/dist/{chunk-FUTMU4FR.js.map → chunk-5HFPRI3W.js.map} +1 -1
- package/dist/{chunk-JY73DJOS.cjs → chunk-5UXDUOOB.cjs} +84 -1211
- package/dist/chunk-5UXDUOOB.cjs.map +1 -0
- package/dist/{chunk-ATJUVHVB.js → chunk-6QMWP5IU.js} +1445 -11
- package/dist/chunk-6QMWP5IU.js.map +1 -0
- package/dist/chunk-6YTHQ73P.cjs +5334 -0
- package/dist/chunk-6YTHQ73P.cjs.map +1 -0
- package/dist/{chunk-KMNZ2RVO.js → chunk-7QUUZBQZ.js} +15 -1109
- package/dist/chunk-7QUUZBQZ.js.map +1 -0
- package/dist/{chunk-C3ZRLULA.cjs → chunk-7X255TOM.cjs} +5 -5
- package/dist/{chunk-C3ZRLULA.cjs.map → chunk-7X255TOM.cjs.map} +1 -1
- package/dist/chunk-A3XPS2EU.js +245 -0
- package/dist/chunk-A3XPS2EU.js.map +1 -0
- package/dist/chunk-B3AHCIV5.js +5206 -0
- package/dist/chunk-B3AHCIV5.js.map +1 -0
- package/dist/{chunk-2Q7FDZAY.js → chunk-BPBSSMRB.js} +5 -163
- package/dist/chunk-BPBSSMRB.js.map +1 -0
- package/dist/{chunk-KSHKTOY2.js → chunk-CKCBBYTA.js} +205 -5
- package/dist/chunk-CKCBBYTA.js.map +1 -0
- package/dist/chunk-CYNF5PZI.js +170 -0
- package/dist/chunk-CYNF5PZI.js.map +1 -0
- package/dist/{chunk-OPTBQSCV.cjs → chunk-DJM7DLCT.cjs} +3 -3
- package/dist/{chunk-OPTBQSCV.cjs.map → chunk-DJM7DLCT.cjs.map} +1 -1
- package/dist/{chunk-E5OYHJMU.js → chunk-DN55PRGS.js} +4 -4
- package/dist/{chunk-E5OYHJMU.js.map → chunk-DN55PRGS.js.map} +1 -1
- package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
- package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
- package/dist/{chunk-KDUGTKVI.cjs → chunk-GFNELPDP.cjs} +17 -6
- package/dist/chunk-GFNELPDP.cjs.map +1 -0
- package/dist/{chunk-OGBXV326.cjs → chunk-GFRQG36Y.cjs} +2 -243
- package/dist/chunk-GFRQG36Y.cjs.map +1 -0
- package/dist/{chunk-WXYQ66KC.cjs → chunk-HEMU73OP.cjs} +2 -166
- package/dist/chunk-HEMU73OP.cjs.map +1 -0
- package/dist/{chunk-UUHUQHXR.cjs → chunk-JZNXRMLH.cjs} +6 -6
- package/dist/{chunk-UUHUQHXR.cjs.map → chunk-JZNXRMLH.cjs.map} +1 -1
- package/dist/{chunk-HDYWXEQU.cjs → chunk-K3HNLWZZ.cjs} +8 -8
- package/dist/{chunk-HDYWXEQU.cjs.map → chunk-K3HNLWZZ.cjs.map} +1 -1
- package/dist/{chunk-7M4C6CK7.js → chunk-KTFDUSON.js} +4 -4
- package/dist/{chunk-7M4C6CK7.js.map → chunk-KTFDUSON.js.map} +1 -1
- package/dist/{chunk-HLB4DIYV.cjs → chunk-MABUMUCA.cjs} +6 -6
- package/dist/{chunk-HLB4DIYV.cjs.map → chunk-MABUMUCA.cjs.map} +1 -1
- package/dist/{chunk-RQ2Y7USX.cjs → chunk-MIDXCYZB.cjs} +235 -15
- package/dist/chunk-MIDXCYZB.cjs.map +1 -0
- package/dist/{chunk-L3T7OJRX.js → chunk-MTPWZQTL.js} +4 -4
- package/dist/{chunk-L3T7OJRX.js.map → chunk-MTPWZQTL.js.map} +1 -1
- package/dist/{chunk-BUNZWOPX.cjs → chunk-O4ZIQDUT.cjs} +5 -5
- package/dist/{chunk-BUNZWOPX.cjs.map → chunk-O4ZIQDUT.cjs.map} +1 -1
- package/dist/{chunk-W3VYZXNS.js → chunk-O6W6RW3B.js} +5 -240
- package/dist/chunk-O6W6RW3B.js.map +1 -0
- package/dist/{chunk-WS5EX7DN.cjs → chunk-OGP6MQXQ.cjs} +3 -3
- package/dist/{chunk-WS5EX7DN.cjs.map → chunk-OGP6MQXQ.cjs.map} +1 -1
- package/dist/{chunk-6F7SZCVL.cjs → chunk-OWCEQKAR.cjs} +3 -3
- package/dist/{chunk-6F7SZCVL.cjs.map → chunk-OWCEQKAR.cjs.map} +1 -1
- package/dist/{chunk-OQ7RUNOC.js → chunk-PC5KVHX3.js} +22 -6
- package/dist/chunk-PC5KVHX3.js.map +1 -0
- package/dist/{chunk-CHVCTKF4.cjs → chunk-ULEDHANM.cjs} +1543 -66
- package/dist/chunk-ULEDHANM.cjs.map +1 -0
- package/dist/{chunk-L2PAPOZ5.js → chunk-US3S4DCB.js} +17 -6
- package/dist/chunk-US3S4DCB.js.map +1 -0
- package/dist/chunk-V46W7YLI.cjs +252 -0
- package/dist/chunk-V46W7YLI.cjs.map +1 -0
- package/dist/{chunk-3RJN2VTL.js → chunk-XDQXDWE7.js} +3 -3
- package/dist/{chunk-3RJN2VTL.js.map → chunk-XDQXDWE7.js.map} +1 -1
- package/dist/{chunk-EHOPZBAX.cjs → chunk-XOC44HQY.cjs} +12 -12
- package/dist/{chunk-EHOPZBAX.cjs.map → chunk-XOC44HQY.cjs.map} +1 -1
- package/dist/{chunk-YOMPLCP6.js → chunk-Y5KTM3V5.js} +3 -3
- package/dist/{chunk-YOMPLCP6.js.map → chunk-Y5KTM3V5.js.map} +1 -1
- package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
- package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
- package/dist/{chunk-AAFX64WD.cjs → chunk-ZXAWOLBQ.cjs} +22 -5
- package/dist/chunk-ZXAWOLBQ.cjs.map +1 -0
- package/dist/citations/QuietMarks.d.ts +5 -2
- package/dist/citations/index.cjs +15 -14
- package/dist/citations/index.js +3 -2
- package/dist/collaboration/index.cjs +51 -51
- package/dist/collaboration/index.js +3 -3
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +5 -5
- package/dist/connect/index.cjs +6595 -1600
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +5 -0
- package/dist/connect/index.js +5064 -90
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedAgentCreator.d.ts +37 -0
- package/dist/connection/ConnectedSkillsLibrary.d.ts +26 -0
- package/dist/connection/ConnectedWorkflowHistory.d.ts +45 -0
- package/dist/connection/ConnectionProvider.d.ts +3 -1
- package/dist/connection/calendar/AddCalendarDialogs.d.ts +9 -0
- package/dist/connection/calendar/BookingPagesPanel.d.ts +13 -0
- package/dist/connection/calendar/CalendarAccountsPanel.d.ts +5 -0
- package/dist/connection/calendar/CalendarSettingsDialog.d.ts +12 -0
- package/dist/connection/calendar/ConnectedCalendar.d.ts +13 -0
- package/dist/connection/calendar/ConnectedMailInviteCard.d.ts +12 -0
- package/dist/connection/calendar/ConnectedPublicBooking.d.ts +9 -0
- package/dist/connection/calendar/ConnectedUpcomingEvents.d.ts +12 -0
- package/dist/connection/calendar/CopyField.d.ts +9 -0
- package/dist/connection/calendar/EventEditorDialog.d.ts +29 -0
- package/dist/connection/calendar/EventScheduling.d.ts +8 -0
- package/dist/connection/calendar/InvitationsPanel.d.ts +5 -0
- package/dist/connection/calendar/OpenAccessPanel.d.ts +7 -0
- package/dist/connection/calendar/PublishCalendarDialog.d.ts +8 -0
- package/dist/connection/calendar/RoomsDirectoryPanel.d.ts +8 -0
- package/dist/connection/calendar/ShareCalendarDialog.d.ts +6 -0
- package/dist/connection/calendar/copy.d.ts +2 -0
- package/dist/connection/calendar/index.d.ts +6 -0
- package/dist/connection/calendar/store.d.ts +47 -0
- package/dist/connection/calendar/types.d.ts +36 -0
- package/dist/connection/calendar/useWebinarAttendee.d.ts +3 -0
- package/dist/connection/notification-center/ConnectedNotificationCenter.d.ts +15 -0
- package/dist/connection/notification-center/NotificationCenter.d.ts +37 -0
- package/dist/connection/notification-center/NotificationEvent.d.ts +33 -0
- package/dist/connection/notification-center/index.d.ts +4 -0
- package/dist/connection/notification-center/items.d.ts +44 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +6 -6
- package/dist/facts/index.js +6 -6
- package/dist/files/index.cjs +6 -6
- package/dist/files/index.js +6 -6
- package/dist/home/index.cjs +20 -20
- package/dist/home/index.js +5 -5
- package/dist/index.cjs +969 -928
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -25
- package/dist/index.js.map +1 -1
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +58 -72
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +6 -23
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +61 -60
- package/dist/shell/index.js +5 -4
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +11 -11
- package/dist/studio/index.js +9 -9
- package/dist/workflow-canvas/index.cjs +69 -70
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +14 -15
- package/dist/workflow-canvas/index.js.map +1 -1
- package/dist/workspaces/index.cjs +2 -2
- package/dist/workspaces/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-2Q7FDZAY.js.map +0 -1
- package/dist/chunk-AAFX64WD.cjs.map +0 -1
- package/dist/chunk-ATJUVHVB.js.map +0 -1
- package/dist/chunk-CHVCTKF4.cjs.map +0 -1
- package/dist/chunk-CQCC7LE7.js +0 -210
- package/dist/chunk-CQCC7LE7.js.map +0 -1
- package/dist/chunk-JY73DJOS.cjs.map +0 -1
- package/dist/chunk-KDUGTKVI.cjs.map +0 -1
- package/dist/chunk-KMNZ2RVO.js.map +0 -1
- package/dist/chunk-KSHKTOY2.js.map +0 -1
- package/dist/chunk-L2PAPOZ5.js.map +0 -1
- package/dist/chunk-OGBXV326.cjs.map +0 -1
- package/dist/chunk-OQ7RUNOC.js.map +0 -1
- package/dist/chunk-RFIBUWLF.cjs +0 -232
- package/dist/chunk-RFIBUWLF.cjs.map +0 -1
- package/dist/chunk-RQ2Y7USX.cjs.map +0 -1
- package/dist/chunk-W3VYZXNS.js.map +0 -1
- package/dist/chunk-WXYQ66KC.cjs.map +0 -1
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkJZNXRMLH_cjs = require('../chunk-JZNXRMLH.cjs');
|
|
5
|
+
var chunkGFNELPDP_cjs = require('../chunk-GFNELPDP.cjs');
|
|
6
|
+
var chunk5UXDUOOB_cjs = require('../chunk-5UXDUOOB.cjs');
|
|
7
|
+
var chunkULEDHANM_cjs = require('../chunk-ULEDHANM.cjs');
|
|
8
|
+
require('../chunk-OGP6MQXQ.cjs');
|
|
9
|
+
require('../chunk-MIDXCYZB.cjs');
|
|
10
|
+
require('../chunk-ZW6FPIFC.cjs');
|
|
7
11
|
require('../chunk-3AFWGEDJ.cjs');
|
|
8
|
-
require('../chunk-RFIBUWLF.cjs');
|
|
9
12
|
require('../chunk-DVUZTGVL.cjs');
|
|
10
|
-
var chunkCHVCTKF4_cjs = require('../chunk-CHVCTKF4.cjs');
|
|
11
13
|
require('../chunk-DETZZBG2.cjs');
|
|
12
|
-
require('../chunk-RQ2Y7USX.cjs');
|
|
13
|
-
require('../chunk-ZW6FPIFC.cjs');
|
|
14
|
-
require('../chunk-WS5EX7DN.cjs');
|
|
15
14
|
require('../chunk-R26BK7YL.cjs');
|
|
16
15
|
require('../chunk-V4ISCZJ7.cjs');
|
|
17
16
|
require('../chunk-2EI7NCUA.cjs');
|
|
18
|
-
require('../chunk-
|
|
17
|
+
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
19
18
|
require('../chunk-7RGLTF76.cjs');
|
|
20
|
-
var
|
|
21
|
-
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
19
|
+
var chunkOWCEQKAR_cjs = require('../chunk-OWCEQKAR.cjs');
|
|
22
20
|
require('../chunk-7UTB4PHM.cjs');
|
|
23
|
-
require('../chunk-
|
|
21
|
+
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
24
22
|
require('../chunk-PPCATBOY.cjs');
|
|
25
|
-
require('../chunk-MHVNT4J3.cjs');
|
|
26
|
-
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
27
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
28
23
|
require('../chunk-KDG6FER6.cjs');
|
|
24
|
+
require('../chunk-C2CWWEHO.cjs');
|
|
25
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
26
|
+
require('../chunk-FX3K6LNZ.cjs');
|
|
27
|
+
require('../chunk-MHVNT4J3.cjs');
|
|
29
28
|
require('../chunk-DES3K4SD.cjs');
|
|
30
29
|
var react = require('react');
|
|
31
30
|
var react$2 = require('@arbidocs/react');
|
|
@@ -50,11 +49,11 @@ function withSteps(workflow, steps, layout) {
|
|
|
50
49
|
const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
|
|
51
50
|
return {
|
|
52
51
|
...workflow,
|
|
53
|
-
run: { ...run, steps:
|
|
52
|
+
run: { ...run, steps: chunkOWCEQKAR_cjs.orderSteps(steps), layout: layout ?? run.layout }
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
|
|
57
|
-
var explicit = (steps) => steps.map((s) => ({ ...s, after:
|
|
56
|
+
var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkOWCEQKAR_cjs.stepDependencies(steps, s.id) }));
|
|
58
57
|
function stepIdFor(steps, title) {
|
|
59
58
|
const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
|
|
60
59
|
const taken = new Set(steps.map((s) => s.id));
|
|
@@ -101,7 +100,7 @@ function blankStep(kind, id, title) {
|
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
function addStep(workflow, kind, options = {}) {
|
|
104
|
-
const steps = explicit(
|
|
103
|
+
const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
105
104
|
const title = options.title ?? DEFAULT_TITLES[kind];
|
|
106
105
|
const id = stepIdFor(steps, title);
|
|
107
106
|
const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
|
|
@@ -110,7 +109,7 @@ function addStep(workflow, kind, options = {}) {
|
|
|
110
109
|
return { workflow: withSteps(workflow, [...steps, step], layout), id };
|
|
111
110
|
}
|
|
112
111
|
function removeStep(workflow, id) {
|
|
113
|
-
const steps = explicit(
|
|
112
|
+
const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
114
113
|
const removed = steps.find((s) => s.id === id);
|
|
115
114
|
if (!removed) return workflow;
|
|
116
115
|
const bridged = steps.filter((s) => s.id !== id).map(
|
|
@@ -123,8 +122,8 @@ function removeStep(workflow, id) {
|
|
|
123
122
|
return withSteps(workflow, bridged, layout);
|
|
124
123
|
}
|
|
125
124
|
function connectSteps(workflow, from, to) {
|
|
126
|
-
const steps = explicit(
|
|
127
|
-
if (from === to || !steps.some((s) => s.id === from) ||
|
|
125
|
+
const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
126
|
+
if (from === to || !steps.some((s) => s.id === from) || chunkOWCEQKAR_cjs.dependsOn(steps, from, to)) {
|
|
128
127
|
return workflow;
|
|
129
128
|
}
|
|
130
129
|
return withSteps(
|
|
@@ -134,16 +133,16 @@ function connectSteps(workflow, from, to) {
|
|
|
134
133
|
)
|
|
135
134
|
);
|
|
136
135
|
}
|
|
137
|
-
var wouldCycle = (workflow, from, to) => from === to ||
|
|
136
|
+
var wouldCycle = (workflow, from, to) => from === to || chunkOWCEQKAR_cjs.dependsOn(chunkOWCEQKAR_cjs.workflowSteps(workflow), from, to);
|
|
138
137
|
function disconnectSteps(workflow, from, to) {
|
|
139
|
-
const steps = explicit(
|
|
138
|
+
const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
140
139
|
return withSteps(
|
|
141
140
|
workflow,
|
|
142
141
|
steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
|
|
143
142
|
);
|
|
144
143
|
}
|
|
145
144
|
function updateStep(workflow, id, patch) {
|
|
146
|
-
const steps = explicit(
|
|
145
|
+
const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
147
146
|
return withSteps(
|
|
148
147
|
workflow,
|
|
149
148
|
steps.map(
|
|
@@ -157,7 +156,7 @@ var renameIn = (text, from, to) => text.replace(
|
|
|
157
156
|
);
|
|
158
157
|
function renameInput(workflow, from, to) {
|
|
159
158
|
if (from === to) return workflow;
|
|
160
|
-
const steps =
|
|
159
|
+
const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow).map((s) => {
|
|
161
160
|
if (s.kind === "agent")
|
|
162
161
|
return {
|
|
163
162
|
...s,
|
|
@@ -206,13 +205,13 @@ function renameInput(workflow, from, to) {
|
|
|
206
205
|
var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
|
|
207
206
|
var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
|
|
208
207
|
function moveStep(workflow, id, position) {
|
|
209
|
-
return withSteps(workflow,
|
|
208
|
+
return withSteps(workflow, chunkOWCEQKAR_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
|
|
210
209
|
}
|
|
211
210
|
var COLUMN = 300;
|
|
212
211
|
var ROW = 140;
|
|
213
212
|
function autoLayout(steps) {
|
|
214
213
|
const layout = {};
|
|
215
|
-
|
|
214
|
+
chunkOWCEQKAR_cjs.stepLevels(steps).forEach(
|
|
216
215
|
(level, x) => level.forEach((s, y) => {
|
|
217
216
|
layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
|
|
218
217
|
})
|
|
@@ -220,7 +219,7 @@ function autoLayout(steps) {
|
|
|
220
219
|
return layout;
|
|
221
220
|
}
|
|
222
221
|
function layoutWithDefaults(workflow) {
|
|
223
|
-
const auto = autoLayout(
|
|
222
|
+
const auto = autoLayout(chunkOWCEQKAR_cjs.workflowSteps(workflow));
|
|
224
223
|
return { ...auto, ...layoutOf(workflow) };
|
|
225
224
|
}
|
|
226
225
|
var DEFAULT_SIGNALS_EDITOR_LABELS = {
|
|
@@ -317,9 +316,9 @@ function SignalsEditor({
|
|
|
317
316
|
{
|
|
318
317
|
className: ui.cn(
|
|
319
318
|
"space-y-1.5 rounded-md border p-2",
|
|
320
|
-
|
|
319
|
+
chunkULEDHANM_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
321
320
|
),
|
|
322
|
-
"data-incomplete":
|
|
321
|
+
"data-incomplete": chunkULEDHANM_cjs.isIncompleteSignal(signal) || void 0,
|
|
323
322
|
"data-testid": `${testId}-${i}`,
|
|
324
323
|
children: [
|
|
325
324
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1148,7 +1147,7 @@ function StepInspector({
|
|
|
1148
1147
|
}) {
|
|
1149
1148
|
const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
|
|
1150
1149
|
const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
|
|
1151
|
-
const steps =
|
|
1150
|
+
const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
|
|
1152
1151
|
const step = steps.find((s) => s.id === stepId);
|
|
1153
1152
|
const run = workflow.run.kind === "steps" ? workflow.run : void 0;
|
|
1154
1153
|
if (!step || !run) {
|
|
@@ -1175,8 +1174,8 @@ function StepInspector({
|
|
|
1175
1174
|
const patch = (p) => onChange(updateStep(workflow, step.id, p));
|
|
1176
1175
|
const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
|
|
1177
1176
|
const ctx = {
|
|
1178
|
-
earlier:
|
|
1179
|
-
fields:
|
|
1177
|
+
earlier: chunkOWCEQKAR_cjs.upstreamSteps(steps, step.id),
|
|
1178
|
+
fields: chunkOWCEQKAR_cjs.runFields(workflow),
|
|
1180
1179
|
people,
|
|
1181
1180
|
tags,
|
|
1182
1181
|
documents
|
|
@@ -1197,7 +1196,7 @@ function StepInspector({
|
|
|
1197
1196
|
)
|
|
1198
1197
|
);
|
|
1199
1198
|
};
|
|
1200
|
-
const deps =
|
|
1199
|
+
const deps = chunkOWCEQKAR_cjs.stepDependencies(steps, step.id);
|
|
1201
1200
|
const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
|
|
1202
1201
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
|
|
1203
1202
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
@@ -1278,7 +1277,7 @@ function StepInspector({
|
|
|
1278
1277
|
{
|
|
1279
1278
|
step,
|
|
1280
1279
|
workflows,
|
|
1281
|
-
fields:
|
|
1280
|
+
fields: chunkOWCEQKAR_cjs.runFields(workflow).map((f) => f.name),
|
|
1282
1281
|
patch,
|
|
1283
1282
|
l,
|
|
1284
1283
|
testId
|
|
@@ -1339,7 +1338,7 @@ function StepInspector({
|
|
|
1339
1338
|
testId: `${testId}-review-grid`
|
|
1340
1339
|
}
|
|
1341
1340
|
),
|
|
1342
|
-
|
|
1341
|
+
chunkOWCEQKAR_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
|
|
1343
1342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1344
1343
|
SignalsEditor,
|
|
1345
1344
|
{
|
|
@@ -1605,7 +1604,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1605
1604
|
return {
|
|
1606
1605
|
timezone: trigger.timezone,
|
|
1607
1606
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1608
|
-
run_at: trigger.start === "once" ?
|
|
1607
|
+
run_at: trigger.start === "once" ? chunk5UXDUOOB_cjs.localInputToIso(trigger.runAt) : none,
|
|
1609
1608
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1610
1609
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1611
1610
|
event_filter: filter ?? none,
|
|
@@ -1621,7 +1620,7 @@ function plan(value, options) {
|
|
|
1621
1620
|
criteria: [],
|
|
1622
1621
|
max_passes: 3,
|
|
1623
1622
|
documents: [],
|
|
1624
|
-
steps:
|
|
1623
|
+
steps: chunkULEDHANM_cjs.toPlanSteps(value.workflow, options)
|
|
1625
1624
|
};
|
|
1626
1625
|
}
|
|
1627
1626
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1656,7 +1655,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1656
1655
|
}
|
|
1657
1656
|
function workflowRecordToBuilder(record) {
|
|
1658
1657
|
const planned = record.plan?.steps ?? [];
|
|
1659
|
-
const steps = planned.length ?
|
|
1658
|
+
const steps = planned.length ? chunkULEDHANM_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1660
1659
|
{
|
|
1661
1660
|
id: "work",
|
|
1662
1661
|
kind: "agent",
|
|
@@ -1664,7 +1663,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1664
1663
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1665
1664
|
}
|
|
1666
1665
|
] : [];
|
|
1667
|
-
const when =
|
|
1666
|
+
const when = chunk5UXDUOOB_cjs.workflowWhen(record);
|
|
1668
1667
|
return {
|
|
1669
1668
|
workflow: {
|
|
1670
1669
|
id: record.external_id,
|
|
@@ -1673,12 +1672,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1673
1672
|
inputs: [],
|
|
1674
1673
|
landing: "chat",
|
|
1675
1674
|
schedulable: false,
|
|
1676
|
-
run: { kind: "steps", steps, layout:
|
|
1675
|
+
run: { kind: "steps", steps, layout: chunkULEDHANM_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1677
1676
|
},
|
|
1678
1677
|
trigger: {
|
|
1679
1678
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1680
1679
|
start: when === "now" ? "manual" : when,
|
|
1681
|
-
runAt:
|
|
1680
|
+
runAt: chunk5UXDUOOB_cjs.isoToLocalInput(record.run_at),
|
|
1682
1681
|
rrule: record.rrule ?? "",
|
|
1683
1682
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1684
1683
|
eventKind: record.event_kind ?? "",
|
|
@@ -1734,7 +1733,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1734
1733
|
case "once":
|
|
1735
1734
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1736
1735
|
case "repeat":
|
|
1737
|
-
return trigger.rrule ?
|
|
1736
|
+
return trigger.rrule ? chunk5UXDUOOB_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1738
1737
|
case "event":
|
|
1739
1738
|
if (isSignalTrigger(trigger))
|
|
1740
1739
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1793,7 +1792,7 @@ function TriggerInspector({
|
|
|
1793
1792
|
}
|
|
1794
1793
|
)
|
|
1795
1794
|
] }),
|
|
1796
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1795
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunk5UXDUOOB_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1797
1796
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1798
1797
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1799
1798
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1845,7 +1844,7 @@ function TriggerInspector({
|
|
|
1845
1844
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1846
1845
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
|
|
1847
1846
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1848
|
-
|
|
1847
|
+
chunkULEDHANM_cjs.AgentSelect,
|
|
1849
1848
|
{
|
|
1850
1849
|
agents,
|
|
1851
1850
|
value: trigger.agentId,
|
|
@@ -1913,7 +1912,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
|
|
|
1913
1912
|
};
|
|
1914
1913
|
}
|
|
1915
1914
|
var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
1916
|
-
...
|
|
1915
|
+
...chunkOWCEQKAR_cjs.DEFAULT_STEP_KIND_LABELS,
|
|
1917
1916
|
redline: "Tracked changes",
|
|
1918
1917
|
branch: "Branch",
|
|
1919
1918
|
kindHints: {
|
|
@@ -1944,7 +1943,7 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
|
1944
1943
|
fitView: "Fit view"
|
|
1945
1944
|
};
|
|
1946
1945
|
var TRIGGER_NODE = "__trigger";
|
|
1947
|
-
var KINDS =
|
|
1946
|
+
var KINDS = chunkOWCEQKAR_cjs.WORKFLOW_STEP_KINDS;
|
|
1948
1947
|
function AddNext({
|
|
1949
1948
|
from,
|
|
1950
1949
|
onAdd,
|
|
@@ -1966,7 +1965,7 @@ function AddNext({
|
|
|
1966
1965
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.PopoverContent, { side: "right", align: "start", className: "w-60 p-1.5", children: [
|
|
1967
1966
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 pt-0.5 text-xs font-medium text-muted-foreground", children: l.addNext }),
|
|
1968
1967
|
KINDS.map((kind) => {
|
|
1969
|
-
const Icon =
|
|
1968
|
+
const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
|
|
1970
1969
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1971
1970
|
"button",
|
|
1972
1971
|
{
|
|
@@ -2005,8 +2004,8 @@ function PhaseMark({ phase }) {
|
|
|
2005
2004
|
}
|
|
2006
2005
|
function StepNode({ data }) {
|
|
2007
2006
|
const { step, phase, summary, assignee, icon, l, onAdd, testId } = data;
|
|
2008
|
-
const kind =
|
|
2009
|
-
const KindIcon =
|
|
2007
|
+
const kind = chunkOWCEQKAR_cjs.stepKindOf(step);
|
|
2008
|
+
const KindIcon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
|
|
2010
2009
|
const redline = step.kind === "agent" && !!step.editDocument;
|
|
2011
2010
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2012
2011
|
"div",
|
|
@@ -2140,12 +2139,12 @@ function WorkflowCanvas({
|
|
|
2140
2139
|
testId = "workflow-canvas"
|
|
2141
2140
|
}) {
|
|
2142
2141
|
const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
|
|
2143
|
-
const steps =
|
|
2142
|
+
const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
|
|
2144
2143
|
const editable = !!onChange;
|
|
2145
2144
|
const built = react.useMemo(() => {
|
|
2146
2145
|
const layout = layoutWithDefaults(workflow);
|
|
2147
|
-
const all =
|
|
2148
|
-
const roots = all.filter((s) =>
|
|
2146
|
+
const all = chunkOWCEQKAR_cjs.workflowSteps(workflow);
|
|
2147
|
+
const roots = all.filter((s) => chunkOWCEQKAR_cjs.stepDependencies(all, s.id).length === 0);
|
|
2149
2148
|
const triggerNode = trigger ? [
|
|
2150
2149
|
{
|
|
2151
2150
|
id: TRIGGER_NODE,
|
|
@@ -2194,7 +2193,7 @@ function WorkflowCanvas({
|
|
|
2194
2193
|
react.useEffect(() => setNodes(built), [built]);
|
|
2195
2194
|
const edges = react.useMemo(
|
|
2196
2195
|
() => steps.flatMap((s) => {
|
|
2197
|
-
const deps =
|
|
2196
|
+
const deps = chunkOWCEQKAR_cjs.stepDependencies(steps, s.id);
|
|
2198
2197
|
const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
|
|
2199
2198
|
return from.map((d) => ({
|
|
2200
2199
|
id: `${d}->${s.id}`,
|
|
@@ -2364,7 +2363,7 @@ function WorkflowCanvas({
|
|
|
2364
2363
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: l.emptyTitle }),
|
|
2365
2364
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: l.emptyHint }),
|
|
2366
2365
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: KINDS.map((kind) => {
|
|
2367
|
-
const Icon =
|
|
2366
|
+
const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
|
|
2368
2367
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2369
2368
|
"button",
|
|
2370
2369
|
{
|
|
@@ -2414,7 +2413,7 @@ var DEFAULT_WORKFLOW_BUILDER_LABELS = {
|
|
|
2414
2413
|
}
|
|
2415
2414
|
};
|
|
2416
2415
|
var PANEL_WIDTH = 344;
|
|
2417
|
-
var KINDS2 =
|
|
2416
|
+
var KINDS2 = chunkOWCEQKAR_cjs.WORKFLOW_STEP_KINDS;
|
|
2418
2417
|
function WorkflowBuilder({
|
|
2419
2418
|
value,
|
|
2420
2419
|
onChange,
|
|
@@ -2446,12 +2445,12 @@ function WorkflowBuilder({
|
|
|
2446
2445
|
const [mode, setMode] = react.useState("design");
|
|
2447
2446
|
const [adding, setAdding] = react.useState(false);
|
|
2448
2447
|
const { workflow, trigger } = value;
|
|
2449
|
-
const steps =
|
|
2450
|
-
const problems =
|
|
2451
|
-
const missing =
|
|
2448
|
+
const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
|
|
2449
|
+
const problems = chunkOWCEQKAR_cjs.validateWorkflowGraph(steps);
|
|
2450
|
+
const missing = chunkOWCEQKAR_cjs.stepConfigProblems(steps);
|
|
2452
2451
|
const nameOf = (id) => people.find((p) => p.value === id)?.label;
|
|
2453
|
-
const fields =
|
|
2454
|
-
const assigneeOf = (step) =>
|
|
2452
|
+
const fields = chunkOWCEQKAR_cjs.runFields(workflow);
|
|
2453
|
+
const assigneeOf = (step) => chunkOWCEQKAR_cjs.canAssign(step) ? chunkOWCEQKAR_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
|
|
2455
2454
|
const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
|
|
2456
2455
|
const setWorkflow = (next) => onChange({ ...value, workflow: next });
|
|
2457
2456
|
const addAfter = (from, kind) => {
|
|
@@ -2520,7 +2519,7 @@ function WorkflowBuilder({
|
|
|
2520
2519
|
l.addStep
|
|
2521
2520
|
] }) }),
|
|
2522
2521
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-1.5", children: KINDS2.map((kind) => {
|
|
2523
|
-
const Icon =
|
|
2522
|
+
const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
|
|
2524
2523
|
const cls = { ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...canvasLabels };
|
|
2525
2524
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2526
2525
|
"button",
|
|
@@ -2682,13 +2681,13 @@ function WorkflowPreview({
|
|
|
2682
2681
|
renderIcon,
|
|
2683
2682
|
testId
|
|
2684
2683
|
}) {
|
|
2685
|
-
const run =
|
|
2684
|
+
const run = chunk5UXDUOOB_cjs.useWorkflowPreview(workflow, {
|
|
2686
2685
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2687
2686
|
compose,
|
|
2688
2687
|
answer
|
|
2689
2688
|
});
|
|
2690
2689
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2691
|
-
|
|
2690
|
+
chunkULEDHANM_cjs.WorkflowRunner,
|
|
2692
2691
|
{
|
|
2693
2692
|
workflow,
|
|
2694
2693
|
run,
|
|
@@ -2765,13 +2764,13 @@ function ConnectedWorkflowBuilder({
|
|
|
2765
2764
|
}) {
|
|
2766
2765
|
const l = { ...DEFAULT_CONNECTED_WORKFLOW_BUILDER_LABELS, ...connectedLabels };
|
|
2767
2766
|
const { notify, openConversation } = chunkC4WSHRR6_cjs.useBlocksEnvironment();
|
|
2768
|
-
const { workspaceId, live, ensureWorkspaceOpen } =
|
|
2767
|
+
const { workspaceId, live, ensureWorkspaceOpen } = chunkGFNELPDP_cjs.useConnectedWorkspace();
|
|
2769
2768
|
const members = react$2.useWorkspaceUsers(workspaceId ?? void 0, {
|
|
2770
2769
|
enabled: live && !!workspaceId,
|
|
2771
2770
|
beforeFetch: ensureWorkspaceOpen
|
|
2772
2771
|
});
|
|
2773
|
-
const { data: tagList } =
|
|
2774
|
-
const { data: docList } =
|
|
2772
|
+
const { data: tagList } = chunkJZNXRMLH_cjs.useConnectedTags();
|
|
2773
|
+
const { data: docList } = chunkJZNXRMLH_cjs.useConnectedDocuments();
|
|
2775
2774
|
const people = (members.data ?? []).map((m) => ({
|
|
2776
2775
|
value: m.user.external_id,
|
|
2777
2776
|
label: [m.user.given_name, m.user.family_name].filter(Boolean).join(" ") || m.user.email
|
|
@@ -2784,7 +2783,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2784
2783
|
const saved = react$2.useWorkflows();
|
|
2785
2784
|
const skills = react$2.useSkills();
|
|
2786
2785
|
const agentsQuery = react$2.useAgents();
|
|
2787
|
-
const { data: conversations } =
|
|
2786
|
+
const { data: conversations } = chunkJZNXRMLH_cjs.useConnectedConversations();
|
|
2788
2787
|
const create = react$2.useCreateWorkflow();
|
|
2789
2788
|
const update = react$2.useUpdateWorkflow();
|
|
2790
2789
|
const run = react$2.useRunWorkflow();
|
|
@@ -2801,7 +2800,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2801
2800
|
}
|
|
2802
2801
|
}, [record, loaded]);
|
|
2803
2802
|
const workflows = react.useMemo(() => {
|
|
2804
|
-
const merged =
|
|
2803
|
+
const merged = chunkOWCEQKAR_cjs.mergeSkillWorkflows(hostWorkflows, skills.data ?? []);
|
|
2805
2804
|
return [...merged.host, ...merged.skills];
|
|
2806
2805
|
}, [hostWorkflows, skills.data]);
|
|
2807
2806
|
const agents = (agentsQuery.data ?? []).map((a) => ({
|
|
@@ -2810,7 +2809,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2810
2809
|
}));
|
|
2811
2810
|
const tasks = conversations.filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || l.untitledTask }));
|
|
2812
2811
|
const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
|
|
2813
|
-
const problem = triggerProblem(value.trigger) ?? (
|
|
2812
|
+
const problem = triggerProblem(value.trigger) ?? (chunkOWCEQKAR_cjs.validateWorkflowGraph(chunkOWCEQKAR_cjs.workflowSteps(value.workflow)).length || chunkOWCEQKAR_cjs.stepConfigProblems(chunkOWCEQKAR_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
|
|
2814
2813
|
const busy = !!pending || create.isPending || update.isPending || run.isPending;
|
|
2815
2814
|
const save = async () => {
|
|
2816
2815
|
if (!workspaceId) return void 0;
|