@arbidocs/blocks 0.5.199 → 0.5.200
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/{ConnectedCallDock-O5SAYRUM.cjs → ConnectedCallDock-UCNWTCTS.cjs} +22 -22
- package/dist/{ConnectedCallDock-O5SAYRUM.cjs.map → ConnectedCallDock-UCNWTCTS.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-Q4CEF2XK.cjs → ConnectedCallRoom-BN2EMZ7A.cjs} +15 -15
- package/dist/{ConnectedCallRoom-Q4CEF2XK.cjs.map → ConnectedCallRoom-BN2EMZ7A.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-FDBAVRFO.cjs → ConnectedNativeDocxComparison-4DTDQQXI.cjs} +15 -15
- package/dist/{ConnectedNativeDocxComparison-FDBAVRFO.cjs.map → ConnectedNativeDocxComparison-4DTDQQXI.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-VGWCLJKM.cjs → ConnectedPresentation-OIMVGUAZ.cjs} +17 -17
- package/dist/{ConnectedPresentation-VGWCLJKM.cjs.map → ConnectedPresentation-OIMVGUAZ.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-R7FVJ4X7.cjs → ConnectedProductionSetDialog-ENRCLFAF.cjs} +6 -6
- package/dist/{ConnectedProductionSetDialog-R7FVJ4X7.cjs.map → ConnectedProductionSetDialog-ENRCLFAF.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-PCJTMD3W.cjs → ConnectedSlidesTab-NSNOGSE7.cjs} +14 -14
- package/dist/{ConnectedSlidesTab-PCJTMD3W.cjs.map → ConnectedSlidesTab-NSNOGSE7.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-JET44WCX.cjs → ConnectedStreamedWordArtifact-FHEHPYUO.cjs} +15 -15
- package/dist/{ConnectedStreamedWordArtifact-JET44WCX.cjs.map → ConnectedStreamedWordArtifact-FHEHPYUO.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-CJHMIMSM.cjs → DocumentReviewCard-XCEFFM2E.cjs} +16 -16
- package/dist/{DocumentReviewCard-CJHMIMSM.cjs.map → DocumentReviewCard-XCEFFM2E.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-TKENBLEE.cjs → FilesViewerDialog-J4XHAODW.cjs} +51 -51
- package/dist/{FilesViewerDialog-TKENBLEE.cjs.map → FilesViewerDialog-J4XHAODW.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-XK7L4MU6.cjs → WorkspaceTableView-DIM3XSI7.cjs} +9 -9
- package/dist/{WorkspaceTableView-XK7L4MU6.cjs.map → WorkspaceTableView-DIM3XSI7.cjs.map} +1 -1
- package/dist/agents/index.cjs +366 -350
- package/dist/agents/tasks/TaskComposer.js +4 -3
- package/dist/agents/tasks/TaskComposer.js.map +2 -2
- package/dist/agents/tasks/WorkflowComposer.d.ts +1 -1
- package/dist/agents/tasks/WorkflowComposer.js +5 -4
- package/dist/agents/tasks/WorkflowComposer.js.map +2 -2
- package/dist/agents/tasks/index.d.ts +1 -1
- package/dist/agents/tasks/index.js +9 -1
- package/dist/agents/tasks/index.js.map +2 -2
- package/dist/agents/tasks/taskComposerTypes.d.ts +20 -3
- package/dist/agents/tasks/taskComposerTypes.js +25 -4
- package/dist/agents/tasks/taskComposerTypes.js.map +2 -2
- package/dist/agents/tasks/taskRequest.d.ts +5 -4
- package/dist/agents/tasks/taskRequest.js +9 -2
- package/dist/agents/tasks/taskRequest.js.map +2 -2
- package/dist/agents/workflows/planSteps.js +6 -3
- package/dist/agents/workflows/planSteps.js.map +2 -2
- package/dist/{ai-6PPZ35T6.cjs → ai-BUYAHCUP.cjs} +33 -33
- package/dist/ai-BUYAHCUP.cjs.map +1 -0
- package/dist/auth/index.cjs +12 -12
- package/dist/calls/index.cjs +125 -125
- package/dist/chat/index.cjs +6 -6
- package/dist/{chunk-V4362YKU.cjs → chunk-2A3LUSU6.cjs} +4 -4
- package/dist/{chunk-V4362YKU.cjs.map → chunk-2A3LUSU6.cjs.map} +1 -1
- package/dist/{chunk-RIGCKOUY.cjs → chunk-2GSNYENP.cjs} +4 -4
- package/dist/{chunk-RIGCKOUY.cjs.map → chunk-2GSNYENP.cjs.map} +1 -1
- package/dist/{chunk-QFSFTO7I.cjs → chunk-2NAYUIT4.cjs} +153 -4
- package/dist/chunk-2NAYUIT4.cjs.map +1 -0
- package/dist/{chunk-XJAOAAN6.cjs → chunk-33DJDPVL.cjs} +4 -4
- package/dist/{chunk-XJAOAAN6.cjs.map → chunk-33DJDPVL.cjs.map} +1 -1
- package/dist/{chunk-PGJJTERG.cjs → chunk-3IYVFQO7.cjs} +116 -79
- package/dist/chunk-3IYVFQO7.cjs.map +1 -0
- package/dist/{chunk-5OD6DRG7.cjs → chunk-3P6KGC46.cjs} +3 -3
- package/dist/{chunk-5OD6DRG7.cjs.map → chunk-3P6KGC46.cjs.map} +1 -1
- package/dist/{chunk-ZMGPE43A.cjs → chunk-3V7IAS52.cjs} +6 -6
- package/dist/{chunk-ZMGPE43A.cjs.map → chunk-3V7IAS52.cjs.map} +1 -1
- package/dist/{chunk-5KQBS4RS.cjs → chunk-4IDPBMZQ.cjs} +8 -8
- package/dist/{chunk-5KQBS4RS.cjs.map → chunk-4IDPBMZQ.cjs.map} +1 -1
- package/dist/{chunk-T44BYZNJ.cjs → chunk-4SPLVRCR.cjs} +3 -3
- package/dist/{chunk-T44BYZNJ.cjs.map → chunk-4SPLVRCR.cjs.map} +1 -1
- package/dist/{chunk-PIM7D4BJ.cjs → chunk-55DGUHLE.cjs} +4 -4
- package/dist/{chunk-PIM7D4BJ.cjs.map → chunk-55DGUHLE.cjs.map} +1 -1
- package/dist/{chunk-QPSLGOIH.cjs → chunk-ADICO4AG.cjs} +4 -4
- package/dist/{chunk-QPSLGOIH.cjs.map → chunk-ADICO4AG.cjs.map} +1 -1
- package/dist/{chunk-BDKAB2ND.cjs → chunk-AJUCQ3A4.cjs} +18 -18
- package/dist/{chunk-BDKAB2ND.cjs.map → chunk-AJUCQ3A4.cjs.map} +1 -1
- package/dist/{chunk-UO2IJNYC.cjs → chunk-BLVSAXZR.cjs} +9 -9
- package/dist/{chunk-UO2IJNYC.cjs.map → chunk-BLVSAXZR.cjs.map} +1 -1
- package/dist/{chunk-5ISSFIVO.cjs → chunk-CFOI2FTZ.cjs} +5 -5
- package/dist/{chunk-5ISSFIVO.cjs.map → chunk-CFOI2FTZ.cjs.map} +1 -1
- package/dist/{chunk-YKEI4XPI.cjs → chunk-CVJNHZHK.cjs} +25 -25
- package/dist/{chunk-YKEI4XPI.cjs.map → chunk-CVJNHZHK.cjs.map} +1 -1
- package/dist/{chunk-2FB2TP2R.cjs → chunk-D2EU67W3.cjs} +23 -23
- package/dist/{chunk-2FB2TP2R.cjs.map → chunk-D2EU67W3.cjs.map} +1 -1
- package/dist/{chunk-PFWIWVSP.cjs → chunk-EUY4G2EF.cjs} +54 -54
- package/dist/{chunk-PFWIWVSP.cjs.map → chunk-EUY4G2EF.cjs.map} +1 -1
- package/dist/{chunk-S4P52VEF.cjs → chunk-FQ365MON.cjs} +9 -6
- package/dist/chunk-FQ365MON.cjs.map +1 -0
- package/dist/{chunk-DEL7BS25.cjs → chunk-IPVRLNOP.cjs} +37 -37
- package/dist/{chunk-DEL7BS25.cjs.map → chunk-IPVRLNOP.cjs.map} +1 -1
- package/dist/{chunk-SZF4CR4O.cjs → chunk-IVZNTOHU.cjs} +6 -6
- package/dist/{chunk-SZF4CR4O.cjs.map → chunk-IVZNTOHU.cjs.map} +1 -1
- package/dist/{chunk-XE3PKEBU.cjs → chunk-J4DOSC7N.cjs} +3 -3
- package/dist/{chunk-XE3PKEBU.cjs.map → chunk-J4DOSC7N.cjs.map} +1 -1
- package/dist/{chunk-DBZMO33L.cjs → chunk-JZH7TTW7.cjs} +4 -4
- package/dist/{chunk-DBZMO33L.cjs.map → chunk-JZH7TTW7.cjs.map} +1 -1
- package/dist/{chunk-ZGT6M5C5.cjs → chunk-KE7VBTGB.cjs} +6 -6
- package/dist/{chunk-ZGT6M5C5.cjs.map → chunk-KE7VBTGB.cjs.map} +1 -1
- package/dist/{chunk-SOVYCUML.cjs → chunk-KU5QWNN7.cjs} +10 -10
- package/dist/{chunk-SOVYCUML.cjs.map → chunk-KU5QWNN7.cjs.map} +1 -1
- package/dist/{chunk-XKKY2RF2.cjs → chunk-LBQKFWTB.cjs} +3 -3
- package/dist/{chunk-XKKY2RF2.cjs.map → chunk-LBQKFWTB.cjs.map} +1 -1
- package/dist/{chunk-G7JESVKJ.cjs → chunk-LF5OBP36.cjs} +28 -31
- package/dist/chunk-LF5OBP36.cjs.map +1 -0
- package/dist/{chunk-QTNIFFBJ.cjs → chunk-N53CRS65.cjs} +3 -3
- package/dist/{chunk-QTNIFFBJ.cjs.map → chunk-N53CRS65.cjs.map} +1 -1
- package/dist/{chunk-KD37PODE.cjs → chunk-NEOJMU7F.cjs} +3 -3
- package/dist/{chunk-KD37PODE.cjs.map → chunk-NEOJMU7F.cjs.map} +1 -1
- package/dist/{chunk-SAQ7ZAMK.cjs → chunk-O5QHQ5ML.cjs} +14 -14
- package/dist/{chunk-SAQ7ZAMK.cjs.map → chunk-O5QHQ5ML.cjs.map} +1 -1
- package/dist/{chunk-SI3YRTW4.cjs → chunk-O66HB7KI.cjs} +6 -6
- package/dist/{chunk-SI3YRTW4.cjs.map → chunk-O66HB7KI.cjs.map} +1 -1
- package/dist/{chunk-75UNBJVM.cjs → chunk-OA76PXL7.cjs} +10 -10
- package/dist/{chunk-75UNBJVM.cjs.map → chunk-OA76PXL7.cjs.map} +1 -1
- package/dist/{chunk-R6HGMPF4.cjs → chunk-OQODCEEH.cjs} +9 -9
- package/dist/{chunk-R6HGMPF4.cjs.map → chunk-OQODCEEH.cjs.map} +1 -1
- package/dist/{chunk-XCQDQSZL.cjs → chunk-PCOXZATI.cjs} +7 -3
- package/dist/chunk-PCOXZATI.cjs.map +1 -0
- package/dist/{chunk-CV2YOGBW.cjs → chunk-PHNHOJ7N.cjs} +28 -28
- package/dist/{chunk-CV2YOGBW.cjs.map → chunk-PHNHOJ7N.cjs.map} +1 -1
- package/dist/{chunk-WRYNJNC6.cjs → chunk-PNPZBRDE.cjs} +4 -4
- package/dist/{chunk-WRYNJNC6.cjs.map → chunk-PNPZBRDE.cjs.map} +1 -1
- package/dist/{chunk-AX26HWDZ.cjs → chunk-PSQGJPC3.cjs} +10 -10
- package/dist/{chunk-AX26HWDZ.cjs.map → chunk-PSQGJPC3.cjs.map} +1 -1
- package/dist/{chunk-7OTRT6EV.cjs → chunk-Q4DQR5HP.cjs} +80 -205
- package/dist/chunk-Q4DQR5HP.cjs.map +1 -0
- package/dist/{chunk-TZQJ3HI6.cjs → chunk-SDCJV5I3.cjs} +75 -75
- package/dist/{chunk-TZQJ3HI6.cjs.map → chunk-SDCJV5I3.cjs.map} +1 -1
- package/dist/{chunk-ZINJWTUD.cjs → chunk-T2IEHV75.cjs} +4 -4
- package/dist/{chunk-ZINJWTUD.cjs.map → chunk-T2IEHV75.cjs.map} +1 -1
- package/dist/{chunk-KLEH67QD.cjs → chunk-TPTCTNDE.cjs} +48 -48
- package/dist/{chunk-KLEH67QD.cjs.map → chunk-TPTCTNDE.cjs.map} +1 -1
- package/dist/{chunk-H7S4DVSM.cjs → chunk-USFM2L6T.cjs} +4 -4
- package/dist/{chunk-H7S4DVSM.cjs.map → chunk-USFM2L6T.cjs.map} +1 -1
- package/dist/{chunk-T6KYE3TR.cjs → chunk-WWIWW7IH.cjs} +3 -3
- package/dist/{chunk-T6KYE3TR.cjs.map → chunk-WWIWW7IH.cjs.map} +1 -1
- package/dist/{chunk-QSY2VW7V.cjs → chunk-WXRAU2FF.cjs} +6 -6
- package/dist/{chunk-QSY2VW7V.cjs.map → chunk-WXRAU2FF.cjs.map} +1 -1
- package/dist/{chunk-HUAABZ2C.cjs → chunk-X6EG33C7.cjs} +3 -3
- package/dist/{chunk-HUAABZ2C.cjs.map → chunk-X6EG33C7.cjs.map} +1 -1
- package/dist/{chunk-NZBPVCQ5.cjs → chunk-XW2PSBGE.cjs} +11 -11
- package/dist/{chunk-NZBPVCQ5.cjs.map → chunk-XW2PSBGE.cjs.map} +1 -1
- package/dist/{chunk-3HBSKI7W.cjs → chunk-YJN3JWDZ.cjs} +9 -9
- package/dist/{chunk-3HBSKI7W.cjs.map → chunk-YJN3JWDZ.cjs.map} +1 -1
- package/dist/connect/docx.cjs +18 -18
- package/dist/connect/index.cjs +1223 -1223
- package/dist/connect/viewer.cjs +38 -38
- package/dist/connection/ConnectedWorkflowBuilder.js +8 -9
- package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
- package/dist/connection/tasks/ConnectedTaskComposer.js +57 -18
- package/dist/connection/tasks/ConnectedTaskComposer.js.map +2 -2
- package/dist/connection/workflows/useWorkflowTasks.js +14 -17
- package/dist/connection/workflows/useWorkflowTasks.js.map +2 -2
- package/dist/connection/workflows/useWorkflowsPageState.d.ts +6 -0
- package/dist/dashboards/index.cjs +1 -1
- package/dist/databases/index.cjs +71 -71
- package/dist/document-tools/FileShareDialog.js +5 -1
- package/dist/document-tools/FileShareDialog.js.map +2 -2
- package/dist/document-tools/index.cjs +13 -13
- package/dist/document-tools/viewer/SignatureRequestEditor.js +2 -1
- package/dist/document-tools/viewer/SignatureRequestEditor.js.map +2 -2
- package/dist/document-tools/viewer/index.cjs +2 -1
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/embed/index.cjs +44 -44
- package/dist/facts/index.cjs +8 -8
- package/dist/files/index.cjs +221 -221
- package/dist/home/index.cjs +9 -9
- package/dist/index.cjs +1826 -1810
- package/dist/pages/index.cjs +35 -35
- package/dist/settings/index.cjs +135 -135
- package/dist/shell/index.cjs +81 -81
- package/dist/studio/index.cjs +35 -35
- package/dist/workflow-canvas/TriggerInspector.d.ts +1 -1
- package/dist/workflow-canvas/TriggerInspector.js +4 -3
- package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +84 -82
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/trigger.d.ts +3 -2
- package/dist/workflow-canvas/trigger.js +10 -2
- package/dist/workflow-canvas/trigger.js.map +2 -2
- package/dist/workspaces/index.cjs +5 -5
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-6PPZ35T6.cjs.map +0 -1
- package/dist/chunk-7OTRT6EV.cjs.map +0 -1
- package/dist/chunk-G7JESVKJ.cjs.map +0 -1
- package/dist/chunk-PGJJTERG.cjs.map +0 -1
- package/dist/chunk-QFSFTO7I.cjs.map +0 -1
- package/dist/chunk-S4P52VEF.cjs.map +0 -1
- package/dist/chunk-XCQDQSZL.cjs.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var chunk3V7IAS52_cjs = require('./chunk-3V7IAS52.cjs');
|
|
4
5
|
var chunkCYN66TBO_cjs = require('./chunk-CYN66TBO.cjs');
|
|
5
|
-
var
|
|
6
|
-
var chunkS4P52VEF_cjs = require('./chunk-S4P52VEF.cjs');
|
|
6
|
+
var chunkFQ365MON_cjs = require('./chunk-FQ365MON.cjs');
|
|
7
7
|
var chunkI4IS6ST6_cjs = require('./chunk-I4IS6ST6.cjs');
|
|
8
|
-
var
|
|
9
|
-
var chunkIN6ILI5A_cjs = require('./chunk-IN6ILI5A.cjs');
|
|
10
|
-
var chunk3YGSCNXQ_cjs = require('./chunk-3YGSCNXQ.cjs');
|
|
8
|
+
var chunk2NAYUIT4_cjs = require('./chunk-2NAYUIT4.cjs');
|
|
11
9
|
var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
|
|
12
10
|
var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
|
|
13
11
|
var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
|
|
14
|
-
var
|
|
15
|
-
var chunkKD37PODE_cjs = require('./chunk-KD37PODE.cjs');
|
|
12
|
+
var chunkNEOJMU7F_cjs = require('./chunk-NEOJMU7F.cjs');
|
|
16
13
|
var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
|
|
17
|
-
var
|
|
14
|
+
var chunk4SPLVRCR_cjs = require('./chunk-4SPLVRCR.cjs');
|
|
18
15
|
var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
|
|
19
|
-
var chunkS3GVFAFB_cjs = require('./chunk-S3GVFAFB.cjs');
|
|
20
16
|
var chunkV27N2PTV_cjs = require('./chunk-V27N2PTV.cjs');
|
|
21
|
-
var
|
|
22
|
-
var chunkVOGIYFNN_cjs = require('./chunk-VOGIYFNN.cjs');
|
|
17
|
+
var chunkS3GVFAFB_cjs = require('./chunk-S3GVFAFB.cjs');
|
|
23
18
|
var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
|
|
24
19
|
var chunkFEM56BGP_cjs = require('./chunk-FEM56BGP.cjs');
|
|
25
|
-
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
26
20
|
var chunk6UZC4XVV_cjs = require('./chunk-6UZC4XVV.cjs');
|
|
27
21
|
var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
|
|
28
22
|
var chunkSJSGSHIT_cjs = require('./chunk-SJSGSHIT.cjs');
|
|
29
23
|
var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
|
|
24
|
+
var chunkIN6ILI5A_cjs = require('./chunk-IN6ILI5A.cjs');
|
|
25
|
+
var chunk3YGSCNXQ_cjs = require('./chunk-3YGSCNXQ.cjs');
|
|
26
|
+
var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
|
|
27
|
+
var chunkFSTIAEJW_cjs = require('./chunk-FSTIAEJW.cjs');
|
|
28
|
+
var chunkVOGIYFNN_cjs = require('./chunk-VOGIYFNN.cjs');
|
|
29
|
+
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
30
30
|
var chunkUCMUGS6F_cjs = require('./chunk-UCMUGS6F.cjs');
|
|
31
31
|
var chunkVJKUADA3_cjs = require('./chunk-VJKUADA3.cjs');
|
|
32
32
|
var chunkNAVFMFWM_cjs = require('./chunk-NAVFMFWM.cjs');
|
|
@@ -1739,7 +1739,7 @@ function WorkflowRunner({
|
|
|
1739
1739
|
}
|
|
1740
1740
|
) : null,
|
|
1741
1741
|
/* @__PURE__ */ jsxRuntime.jsx("fieldset", { disabled: run.isLocked(step.id), className: "contents", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1742
|
-
|
|
1742
|
+
chunk4SPLVRCR_cjs.SchemaForm,
|
|
1743
1743
|
{
|
|
1744
1744
|
fields: step.inputs,
|
|
1745
1745
|
values: run.inputs,
|
|
@@ -1789,7 +1789,7 @@ function WorkflowRunner({
|
|
|
1789
1789
|
/* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
|
|
1790
1790
|
!(run.phaseOf(step.id) === "done" && run.stateOf(step.id)?.by) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", "data-testid": tid(`${step.id}-status`), children: run.phaseOf(step.id) === "done" ? l.approved : run.phaseOf(step.id) === "skipped" ? l.skipped : l.awaitingReview }),
|
|
1791
1791
|
(step.fields ?? []).length > 0 && run.phaseOf(step.id) === "ready" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1792
|
-
|
|
1792
|
+
chunk4SPLVRCR_cjs.SchemaForm,
|
|
1793
1793
|
{
|
|
1794
1794
|
fields: step.fields ?? [],
|
|
1795
1795
|
values: run.inputs,
|
|
@@ -2571,7 +2571,7 @@ function StepAction({
|
|
|
2571
2571
|
const errors = chunkVOGIYFNN_cjs.validateInputs(asForm(step), values);
|
|
2572
2572
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 p-1", "data-testid": tid, children: [
|
|
2573
2573
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2574
|
-
|
|
2574
|
+
chunk4SPLVRCR_cjs.SchemaForm,
|
|
2575
2575
|
{
|
|
2576
2576
|
fields,
|
|
2577
2577
|
values,
|
|
@@ -4818,16 +4818,16 @@ var DEFAULT_RECURRENCE_BUILDER_LABELS = {
|
|
|
4818
4818
|
var pad2 = (n) => String(n).padStart(2, "0");
|
|
4819
4819
|
function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
4820
4820
|
const l = { ...DEFAULT_RECURRENCE_BUILDER_LABELS, ...labels };
|
|
4821
|
-
const [advanced, setAdvanced] = react.useState(() => !!rrule &&
|
|
4821
|
+
const [advanced, setAdvanced] = react.useState(() => !!rrule && chunkFQ365MON_cjs.parseRRule(rrule) === null);
|
|
4822
4822
|
const [preset, setPreset] = react.useState(
|
|
4823
|
-
() =>
|
|
4823
|
+
() => chunkFQ365MON_cjs.parseRRule(rrule) ?? chunkFQ365MON_cjs.DEFAULT_RECURRENCE
|
|
4824
4824
|
);
|
|
4825
4825
|
react.useEffect(() => {
|
|
4826
|
-
if (!rrule) onChange(
|
|
4826
|
+
if (!rrule) onChange(chunkFQ365MON_cjs.buildRRule(chunkFQ365MON_cjs.DEFAULT_RECURRENCE));
|
|
4827
4827
|
}, []);
|
|
4828
4828
|
const update = (next) => {
|
|
4829
4829
|
setPreset(next);
|
|
4830
|
-
onChange(
|
|
4830
|
+
onChange(chunkFQ365MON_cjs.buildRRule(next));
|
|
4831
4831
|
};
|
|
4832
4832
|
const toggleWeekday = (day) => {
|
|
4833
4833
|
const has = preset.weekdays.includes(day);
|
|
@@ -4857,9 +4857,9 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
|
4857
4857
|
type: "button",
|
|
4858
4858
|
className: "text-sm text-muted-foreground hover:text-foreground",
|
|
4859
4859
|
onClick: () => {
|
|
4860
|
-
const parsed =
|
|
4861
|
-
setPreset(parsed ??
|
|
4862
|
-
if (!parsed) onChange(
|
|
4860
|
+
const parsed = chunkFQ365MON_cjs.parseRRule(rrule);
|
|
4861
|
+
setPreset(parsed ?? chunkFQ365MON_cjs.DEFAULT_RECURRENCE);
|
|
4862
|
+
if (!parsed) onChange(chunkFQ365MON_cjs.buildRRule(chunkFQ365MON_cjs.DEFAULT_RECURRENCE));
|
|
4863
4863
|
setAdvanced(false);
|
|
4864
4864
|
},
|
|
4865
4865
|
"data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.simple, { testId: "task-recurrence-simple" }),
|
|
@@ -4937,7 +4937,7 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
|
4937
4937
|
] }),
|
|
4938
4938
|
preset.frequency === "weekly" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
4939
4939
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { children: l.on }),
|
|
4940
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children:
|
|
4940
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children: chunkFQ365MON_cjs.WEEKDAYS.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4941
4941
|
ui.Button,
|
|
4942
4942
|
{
|
|
4943
4943
|
type: "button",
|
|
@@ -5127,12 +5127,12 @@ function TaskStatusPill({
|
|
|
5127
5127
|
hint
|
|
5128
5128
|
}) {
|
|
5129
5129
|
const l = { ...DEFAULT_TASK_STATUS_PILL_LABELS, ...labels };
|
|
5130
|
-
const key =
|
|
5130
|
+
const key = chunk3V7IAS52_cjs.asTaskStatus(status);
|
|
5131
5131
|
const generating = key === "generating";
|
|
5132
5132
|
const now = useNow(generating && Boolean(runStartedAt));
|
|
5133
5133
|
const started = runStartedAt ? Date.parse(runStartedAt) : NaN;
|
|
5134
|
-
let text =
|
|
5135
|
-
let tone =
|
|
5134
|
+
let text = chunk3V7IAS52_cjs.STATUS_LABELS[key];
|
|
5135
|
+
let tone = chunk3V7IAS52_cjs.STATUS_TONE[key];
|
|
5136
5136
|
if (awaitingAccess) {
|
|
5137
5137
|
text = l.waitingForAccess;
|
|
5138
5138
|
tone = "danger";
|
|
@@ -5473,9 +5473,9 @@ var WIDTH_RULES = [
|
|
|
5473
5473
|
function statusHint(task, ctx) {
|
|
5474
5474
|
const { props: p, l } = ctx;
|
|
5475
5475
|
if (!p.formatRelative || !task.updated_at) return void 0;
|
|
5476
|
-
const key =
|
|
5476
|
+
const key = chunk3V7IAS52_cjs.asTaskStatus(task.status);
|
|
5477
5477
|
const pill = { ...DEFAULT_TASK_STATUS_PILL_LABELS, ...p.statusPillLabels };
|
|
5478
|
-
const label = task.pending_auth_request_id ? pill.waitingForAccess :
|
|
5478
|
+
const label = task.pending_auth_request_id ? pill.waitingForAccess : chunk3V7IAS52_cjs.STATUS_LABELS[key];
|
|
5479
5479
|
return l.statusHint(label, p.formatRelative(task.updated_at));
|
|
5480
5480
|
}
|
|
5481
5481
|
function TaskTable(props) {
|
|
@@ -5483,7 +5483,7 @@ function TaskTable(props) {
|
|
|
5483
5483
|
const l = {
|
|
5484
5484
|
...DEFAULT_TASK_LIST_LABELS,
|
|
5485
5485
|
...props.labels,
|
|
5486
|
-
status: { ...
|
|
5486
|
+
status: { ...chunk3V7IAS52_cjs.STATUS_LABELS, ...props.labels?.status }
|
|
5487
5487
|
};
|
|
5488
5488
|
const [filter, setFilter] = react.useState("all");
|
|
5489
5489
|
const [query, setQuery] = react.useState("");
|
|
@@ -5495,14 +5495,14 @@ function TaskTable(props) {
|
|
|
5495
5495
|
const apiRef = react.useRef(null);
|
|
5496
5496
|
const [narrow, setNarrow] = react.useState(false);
|
|
5497
5497
|
const rowCache = react.useRef(/* @__PURE__ */ new Map());
|
|
5498
|
-
const tree = react.useMemo(() =>
|
|
5498
|
+
const tree = react.useMemo(() => chunk3V7IAS52_cjs.indexTasks(tasks), [tasks]);
|
|
5499
5499
|
const peopleNames = react.useMemo(
|
|
5500
5500
|
() => new Map((props.people ?? []).map((p) => [p.id, p.label])),
|
|
5501
5501
|
[props.people]
|
|
5502
5502
|
);
|
|
5503
5503
|
const nameOf = (task) => task.title?.trim() || task.workflow_ext_id && props.workflowNames?.[task.workflow_ext_id] || l.untitled;
|
|
5504
5504
|
const owner = (task) => {
|
|
5505
|
-
const id =
|
|
5505
|
+
const id = chunk3V7IAS52_cjs.ownerExtId(task);
|
|
5506
5506
|
const mine = task.is_owner !== false;
|
|
5507
5507
|
return {
|
|
5508
5508
|
id,
|
|
@@ -5519,16 +5519,16 @@ function TaskTable(props) {
|
|
|
5519
5519
|
isMe: mine
|
|
5520
5520
|
};
|
|
5521
5521
|
};
|
|
5522
|
-
const renderPerson = (person) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5522
|
+
const renderPerson = (person) => /* @__PURE__ */ jsxRuntime.jsx(chunkNEOJMU7F_cjs.PersonPill, { person });
|
|
5523
5523
|
const q = (query.trim() || (props.filterText ?? "").trim()).toLowerCase();
|
|
5524
5524
|
const counts = react.useMemo(() => {
|
|
5525
|
-
const map = new Map(
|
|
5525
|
+
const map = new Map(chunk3V7IAS52_cjs.STATUS_ORDER.map((s) => [s, 0]));
|
|
5526
5526
|
let all = 0;
|
|
5527
5527
|
for (const task of tasks) {
|
|
5528
5528
|
const text = `${nameOf(task)} ${task.description ?? ""}`.toLowerCase();
|
|
5529
5529
|
if (q && !text.includes(q)) continue;
|
|
5530
5530
|
all += 1;
|
|
5531
|
-
const s =
|
|
5531
|
+
const s = chunk3V7IAS52_cjs.asTaskStatus(task.status);
|
|
5532
5532
|
map.set(s, (map.get(s) ?? 0) + 1);
|
|
5533
5533
|
}
|
|
5534
5534
|
map.set("all", all);
|
|
@@ -5550,7 +5550,7 @@ function TaskTable(props) {
|
|
|
5550
5550
|
case "due":
|
|
5551
5551
|
return t.due_at ? Date.parse(t.due_at) : Number.POSITIVE_INFINITY;
|
|
5552
5552
|
default:
|
|
5553
|
-
return
|
|
5553
|
+
return chunk3V7IAS52_cjs.STATUS_ORDER.indexOf(chunk3V7IAS52_cjs.asTaskStatus(t.status));
|
|
5554
5554
|
}
|
|
5555
5555
|
};
|
|
5556
5556
|
const key = (t) => {
|
|
@@ -5578,7 +5578,7 @@ function TaskTable(props) {
|
|
|
5578
5578
|
l.untitled
|
|
5579
5579
|
]);
|
|
5580
5580
|
const rows = react.useMemo(
|
|
5581
|
-
() =>
|
|
5581
|
+
() => chunk3V7IAS52_cjs.buildTaskRows(tasks, filter, collapsed, compare, {
|
|
5582
5582
|
query: query.trim() || props.filterText,
|
|
5583
5583
|
titleOf: nameOf,
|
|
5584
5584
|
cache: rowCache.current
|
|
@@ -5603,7 +5603,7 @@ function TaskTable(props) {
|
|
|
5603
5603
|
[selectedTasks, selectedIds, tree]
|
|
5604
5604
|
);
|
|
5605
5605
|
const markable = selectedTasks.filter(
|
|
5606
|
-
(t) => t.status != null && (t.is_owner !== false || props.canEditShared) &&
|
|
5606
|
+
(t) => t.status != null && (t.is_owner !== false || props.canEditShared) && chunk3V7IAS52_cjs.isPlainTodo(t) && chunk3V7IAS52_cjs.asTaskStatus(t.status) !== "done"
|
|
5607
5607
|
);
|
|
5608
5608
|
const deletable = selectedTasks.filter((t) => chunkDKY67DA6_cjs.canDeleteThread(t, Boolean(props.isWorkspaceOwner)));
|
|
5609
5609
|
const rowsRef = react.useRef(rows);
|
|
@@ -5618,11 +5618,11 @@ function TaskTable(props) {
|
|
|
5618
5618
|
const next = new Set(prev);
|
|
5619
5619
|
for (const id of added) {
|
|
5620
5620
|
next.add(id);
|
|
5621
|
-
for (const d of
|
|
5621
|
+
for (const d of chunk3V7IAS52_cjs.descendantIds(tree, id)) next.add(d);
|
|
5622
5622
|
}
|
|
5623
5623
|
for (const id of removed) {
|
|
5624
5624
|
next.delete(id);
|
|
5625
|
-
for (const d of
|
|
5625
|
+
for (const d of chunk3V7IAS52_cjs.descendantIds(tree, id)) next.delete(d);
|
|
5626
5626
|
for (let at = tree.parentOf.get(id); at; at = tree.parentOf.get(at)) next.delete(at);
|
|
5627
5627
|
}
|
|
5628
5628
|
return next;
|
|
@@ -5649,8 +5649,8 @@ function TaskTable(props) {
|
|
|
5649
5649
|
const { l: lb, props: p, nameOf: name } = latest.current;
|
|
5650
5650
|
const { task, depth, childStats, expanded } = row;
|
|
5651
5651
|
const id = task.external_id;
|
|
5652
|
-
const status =
|
|
5653
|
-
const goal =
|
|
5652
|
+
const status = chunk3V7IAS52_cjs.asTaskStatus(task.status);
|
|
5653
|
+
const goal = chunk3V7IAS52_cjs.goalProgress(task);
|
|
5654
5654
|
const workflowName = task.workflow_ext_id ? p.workflowNames?.[task.workflow_ext_id] : null;
|
|
5655
5655
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5656
5656
|
"div",
|
|
@@ -5749,7 +5749,7 @@ function TaskTable(props) {
|
|
|
5749
5749
|
const { l: lb, props: p } = latest.current;
|
|
5750
5750
|
const { task } = row;
|
|
5751
5751
|
const dueMs = task.due_at ? Date.parse(task.due_at) : NaN;
|
|
5752
|
-
const overdue =
|
|
5752
|
+
const overdue = chunk3V7IAS52_cjs.asTaskStatus(task.status) !== "done" && !Number.isNaN(dueMs) && dueMs < Date.now();
|
|
5753
5753
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5754
5754
|
"span",
|
|
5755
5755
|
{
|
|
@@ -5796,7 +5796,7 @@ function TaskTable(props) {
|
|
|
5796
5796
|
TaskStatusPill,
|
|
5797
5797
|
{
|
|
5798
5798
|
id: row.external_id,
|
|
5799
|
-
status:
|
|
5799
|
+
status: chunk3V7IAS52_cjs.asTaskStatus(row.task.status),
|
|
5800
5800
|
runStartedAt: row.task.run_started_at,
|
|
5801
5801
|
lastError: row.task.last_error,
|
|
5802
5802
|
awaitingAccess: Boolean(row.task.pending_auth_request_id),
|
|
@@ -5808,7 +5808,7 @@ function TaskTable(props) {
|
|
|
5808
5808
|
const { l: lb, props: p } = latest.current;
|
|
5809
5809
|
const { task } = row;
|
|
5810
5810
|
const id = task.external_id;
|
|
5811
|
-
const status =
|
|
5811
|
+
const status = chunk3V7IAS52_cjs.asTaskStatus(task.status);
|
|
5812
5812
|
const busy = p.busyId === id;
|
|
5813
5813
|
const isOwner = task.is_owner !== false;
|
|
5814
5814
|
const canEdit = isOwner || Boolean(p.canEditShared);
|
|
@@ -5923,7 +5923,7 @@ function TaskTable(props) {
|
|
|
5923
5923
|
[animate]
|
|
5924
5924
|
);
|
|
5925
5925
|
const clearSelection = () => setSelectedIds(/* @__PURE__ */ new Set());
|
|
5926
|
-
const filterKeys = ["all", ...
|
|
5926
|
+
const filterKeys = ["all", ...chunk3V7IAS52_cjs.STATUS_ORDER].filter(
|
|
5927
5927
|
(key) => key !== "chat" || (counts.get(key) ?? 0) > 0
|
|
5928
5928
|
);
|
|
5929
5929
|
const hasChildren = tree.kids.size > 0;
|
|
@@ -6081,7 +6081,7 @@ function TaskTable(props) {
|
|
|
6081
6081
|
{
|
|
6082
6082
|
open: true,
|
|
6083
6083
|
onOpenChange: (open) => !open && setMoving(null),
|
|
6084
|
-
options:
|
|
6084
|
+
options: chunk3V7IAS52_cjs.moveTargets(tasks, moving).map((t) => ({ id: t.external_id, label: nameOf(t) })),
|
|
6085
6085
|
currentParentId: moving.parent_conversation_ext_id,
|
|
6086
6086
|
onPick: (parentId) => props.onMove?.(moving, parentId),
|
|
6087
6087
|
labels: {
|
|
@@ -6203,7 +6203,7 @@ function ConversationListView(p) {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
),
|
|
6205
6205
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: liveProps.current.renderThread ? liveProps.current.renderThread(data) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6206
|
-
|
|
6206
|
+
chunkFQ365MON_cjs.EntityChip,
|
|
6207
6207
|
{
|
|
6208
6208
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { className: "size-4", "aria-hidden": true }),
|
|
6209
6209
|
label: data.title?.trim() || "Untitled thread",
|
|
@@ -7266,129 +7266,6 @@ function TaskRunsDialog({
|
|
|
7266
7266
|
}
|
|
7267
7267
|
) });
|
|
7268
7268
|
}
|
|
7269
|
-
|
|
7270
|
-
// src/agents/tasks/taskComposerTypes.ts
|
|
7271
|
-
var DEFAULT_TASK_COMPOSER_LABELS = {
|
|
7272
|
-
titleNew: "New task",
|
|
7273
|
-
titleEdit: "Edit task",
|
|
7274
|
-
description: "Add a task. Every task has an assistant; configure it to have it prepare the work.",
|
|
7275
|
-
titleNewWorkflow: "New workflow",
|
|
7276
|
-
/** The title while a template is picked: "Run Summarise". */
|
|
7277
|
-
titleRunTemplate: (name) => `Run ${name}`,
|
|
7278
|
-
titleEditWorkflow: "Edit workflow",
|
|
7279
|
-
descriptionWorkflow: "Run it now, or choose Run later to have it start on a date, repeat, or follow an event.",
|
|
7280
|
-
workflowNamePlaceholder: "Name this workflow",
|
|
7281
|
-
createWorkflow: "Create workflow",
|
|
7282
|
-
whenHeading: "When should it run?",
|
|
7283
|
-
whoHeading: "Which agent runs it?",
|
|
7284
|
-
runAs: "Run as",
|
|
7285
|
-
runLater: "Run later",
|
|
7286
|
-
addFilesReason: "This needs files to work on. Add some, then run it.",
|
|
7287
|
-
needDocument: "Pick or add a document",
|
|
7288
|
-
addPlan: "Add a plan",
|
|
7289
|
-
hidePlan: "Hide the plan",
|
|
7290
|
-
showPlan: "Show the plan",
|
|
7291
|
-
runAsMe: "Me",
|
|
7292
|
-
runAsAgentHint: "Nobody is there when a saved workflow runs, so an agent runs it. Your Assistant is the default.",
|
|
7293
|
-
needAgent: "Choose the agent that runs it.",
|
|
7294
|
-
runNow: "Run now",
|
|
7295
|
-
saveWorkflow: "Save workflow",
|
|
7296
|
-
needWhat: "Say what it should do: choose a template and fill it in, or write an instruction.",
|
|
7297
|
-
needRunAt: "Pick the date and time it should run.",
|
|
7298
|
-
needRrule: "Choose how often it repeats.",
|
|
7299
|
-
needEvent: "Say which event starts it.",
|
|
7300
|
-
needAfterTask: "Choose the task it follows.",
|
|
7301
|
-
moreOptions: "More options",
|
|
7302
|
-
fewerOptions: "Fewer options",
|
|
7303
|
-
nameHint: "Leave blank to use the name shown.",
|
|
7304
|
-
titleLabel: "Title",
|
|
7305
|
-
titlePlaceholder: "What needs doing?",
|
|
7306
|
-
descriptionLabel: "Description",
|
|
7307
|
-
descriptionPlaceholder: "Add details (optional)",
|
|
7308
|
-
due: "Due",
|
|
7309
|
-
dueNone: "No date",
|
|
7310
|
-
dueClear: "Clear date",
|
|
7311
|
-
parentTask: "Part of",
|
|
7312
|
-
parentTaskNone: "Nothing (top-level)",
|
|
7313
|
-
visibility: "Visibility",
|
|
7314
|
-
visibilityWorkspace: "Workspace",
|
|
7315
|
-
visibilityPrivate: "Only me",
|
|
7316
|
-
assistant: "Task Assistant",
|
|
7317
|
-
assistantStandby: "On standby. It replies when you @mention it in the task\u2019s thread.",
|
|
7318
|
-
assistantPreparing: (when) => `Will work on this task ${when}. You mark it done when it is.`,
|
|
7319
|
-
configure: "Configure",
|
|
7320
|
-
configureClose: "Done",
|
|
7321
|
-
what: "What should it do?",
|
|
7322
|
-
template: "Skill",
|
|
7323
|
-
whatPlaceholder: "Choose\u2026",
|
|
7324
|
-
plan: "Plan",
|
|
7325
|
-
planHint: "The checklist it is held to. You see how it did when it finishes.",
|
|
7326
|
-
start: "Start",
|
|
7327
|
-
whenOptions: {
|
|
7328
|
-
manual: "When asked",
|
|
7329
|
-
now: "Now",
|
|
7330
|
-
once: "On a date",
|
|
7331
|
-
repeat: "Repeat",
|
|
7332
|
-
event: "When something happens",
|
|
7333
|
-
task: "After another task"
|
|
7334
|
-
},
|
|
7335
|
-
runAt: "Start at",
|
|
7336
|
-
runAtPast: "Pick a time in the future.",
|
|
7337
|
-
event: "Event",
|
|
7338
|
-
eventPlaceholder: "mention",
|
|
7339
|
-
eventHint: "It starts whenever this kind of notification reaches you.",
|
|
7340
|
-
afterTask: "After",
|
|
7341
|
-
afterTaskPlaceholder: "Choose a task\u2026",
|
|
7342
|
-
which: "Assistant",
|
|
7343
|
-
myAssistant: "Mine",
|
|
7344
|
-
permission: "Access",
|
|
7345
|
-
runOptions: "Run options",
|
|
7346
|
-
runOptionsSummary: (agent, access) => `Runs as ${agent} \xB7 ${access.toLowerCase()}`,
|
|
7347
|
-
permissionHint: "It starts while you are away, so it needs your permission to use this workspace.",
|
|
7348
|
-
accessOptions: {
|
|
7349
|
-
ask_each_run: {
|
|
7350
|
-
label: "Ask me each time",
|
|
7351
|
-
hint: "When it is due, it waits until you allow it."
|
|
7352
|
-
},
|
|
7353
|
-
standing: {
|
|
7354
|
-
label: "Always allowed",
|
|
7355
|
-
hint: "It joins the workspace and can work while you are away. Only for assistants you trust."
|
|
7356
|
-
}
|
|
7357
|
-
},
|
|
7358
|
-
timezone: "Timezone",
|
|
7359
|
-
search: "Search\u2026",
|
|
7360
|
-
empty: "No match.",
|
|
7361
|
-
cancel: "Cancel",
|
|
7362
|
-
addTask: "Add task",
|
|
7363
|
-
addAndStart: "Start now",
|
|
7364
|
-
addAndSchedule: "Schedule",
|
|
7365
|
-
save: "Save changes",
|
|
7366
|
-
saving: "Saving\u2026"
|
|
7367
|
-
};
|
|
7368
|
-
function defaultTaskComposerValues(workflows, initial) {
|
|
7369
|
-
const workflowId = initial?.workflowId ?? workflows[0]?.id ?? "";
|
|
7370
|
-
const workflow = workflows.find((w) => w.id === workflowId);
|
|
7371
|
-
return {
|
|
7372
|
-
assignee: "me",
|
|
7373
|
-
workflowId,
|
|
7374
|
-
inputs: workflow ? { ...chunkVOGIYFNN_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
|
|
7375
|
-
when: "manual",
|
|
7376
|
-
runAt: "",
|
|
7377
|
-
rrule: "",
|
|
7378
|
-
timezone: "UTC",
|
|
7379
|
-
eventKind: "mention",
|
|
7380
|
-
afterTaskId: "",
|
|
7381
|
-
parentTaskId: "",
|
|
7382
|
-
shared: false,
|
|
7383
|
-
description: "",
|
|
7384
|
-
dueAt: "",
|
|
7385
|
-
agentId: "",
|
|
7386
|
-
name: "",
|
|
7387
|
-
notifyOnComplete: true,
|
|
7388
|
-
access: "ask_each_run",
|
|
7389
|
-
...initial
|
|
7390
|
-
};
|
|
7391
|
-
}
|
|
7392
7269
|
var GLYPH = "size-3.5 shrink-0";
|
|
7393
7270
|
function missingWhen(values, runAtPast) {
|
|
7394
7271
|
if (values.when === "now" || values.when === "manual") return null;
|
|
@@ -7414,7 +7291,7 @@ function WorkflowComposer({
|
|
|
7414
7291
|
eventOptions,
|
|
7415
7292
|
eventWorkflowOptions,
|
|
7416
7293
|
goal,
|
|
7417
|
-
|
|
7294
|
+
grantedAccess,
|
|
7418
7295
|
scopeSource,
|
|
7419
7296
|
renderDocuments,
|
|
7420
7297
|
addFilesAction,
|
|
@@ -7431,17 +7308,17 @@ function WorkflowComposer({
|
|
|
7431
7308
|
testId
|
|
7432
7309
|
}) {
|
|
7433
7310
|
const l = {
|
|
7434
|
-
...DEFAULT_TASK_COMPOSER_LABELS,
|
|
7311
|
+
...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS,
|
|
7435
7312
|
...labels,
|
|
7436
7313
|
whenOptions: {
|
|
7437
|
-
...DEFAULT_TASK_COMPOSER_LABELS.whenOptions,
|
|
7314
|
+
...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS.whenOptions,
|
|
7438
7315
|
...labels?.whenOptions,
|
|
7439
7316
|
...saveOnly ? { now: "When needed" } : {}
|
|
7440
7317
|
},
|
|
7441
|
-
accessOptions: { ...DEFAULT_TASK_COMPOSER_LABELS.accessOptions, ...labels?.accessOptions }
|
|
7318
|
+
accessOptions: { ...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS.accessOptions, ...labels?.accessOptions }
|
|
7442
7319
|
};
|
|
7443
7320
|
const seed = react.useMemo(
|
|
7444
|
-
() => defaultTaskComposerValues(workflows, initialValues),
|
|
7321
|
+
() => chunk2NAYUIT4_cjs.defaultTaskComposerValues(workflows, initialValues),
|
|
7445
7322
|
// Seeded once per open; the host re-keys the composer for a different workflow.
|
|
7446
7323
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7447
7324
|
[workflows, open]
|
|
@@ -7485,14 +7362,14 @@ function WorkflowComposer({
|
|
|
7485
7362
|
const scheduled = values.when !== "now" && values.when !== "manual";
|
|
7486
7363
|
const agentMissing = scheduled && values.agentId === "";
|
|
7487
7364
|
const canSubmit = !whatMissing && !noFiles && whenMissing === null && !agentMissing && !isPending && !planDrafting;
|
|
7488
|
-
const derivedName = workflow ?
|
|
7365
|
+
const derivedName = workflow ? chunk2NAYUIT4_cjs.deriveWorkflowName(workflow, values.inputs) : "";
|
|
7489
7366
|
const pickWorkflow = (next) => {
|
|
7490
7367
|
const def = workflows.find((w) => w.id === next);
|
|
7491
7368
|
setValues({
|
|
7492
7369
|
...values,
|
|
7493
7370
|
workflowId: next,
|
|
7494
7371
|
inputs: def ? chunkVOGIYFNN_cjs.defaultInputs(def) : {},
|
|
7495
|
-
...def?.documentAction ? { access: "
|
|
7372
|
+
...def?.documentAction ? { access: "grant_30" } : {}
|
|
7496
7373
|
});
|
|
7497
7374
|
};
|
|
7498
7375
|
const pickWhen = (next) => {
|
|
@@ -7596,7 +7473,7 @@ function WorkflowComposer({
|
|
|
7596
7473
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-what`, children: [
|
|
7597
7474
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.what }),
|
|
7598
7475
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7599
|
-
|
|
7476
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7600
7477
|
{
|
|
7601
7478
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH, "aria-hidden": true }),
|
|
7602
7479
|
prefix: l.template,
|
|
@@ -7629,7 +7506,7 @@ function WorkflowComposer({
|
|
|
7629
7506
|
}
|
|
7630
7507
|
),
|
|
7631
7508
|
!noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7632
|
-
|
|
7509
|
+
chunk4SPLVRCR_cjs.SchemaForm,
|
|
7633
7510
|
{
|
|
7634
7511
|
fields,
|
|
7635
7512
|
values: values.inputs,
|
|
@@ -7676,7 +7553,7 @@ function WorkflowComposer({
|
|
|
7676
7553
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-when-section`, children: [
|
|
7677
7554
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.whenHeading }),
|
|
7678
7555
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7679
|
-
|
|
7556
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7680
7557
|
{
|
|
7681
7558
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH, "aria-hidden": true }),
|
|
7682
7559
|
prefix: l.start,
|
|
@@ -7689,7 +7566,7 @@ function WorkflowComposer({
|
|
|
7689
7566
|
}
|
|
7690
7567
|
),
|
|
7691
7568
|
(values.when === "once" || values.when === "repeat") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7692
|
-
|
|
7569
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7693
7570
|
{
|
|
7694
7571
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH, "aria-hidden": true }),
|
|
7695
7572
|
prefix: "Schedule",
|
|
@@ -7748,7 +7625,7 @@ function WorkflowComposer({
|
|
|
7748
7625
|
values.when === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
7749
7626
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "task-composer-event", className: "sr-only", children: l.event }),
|
|
7750
7627
|
eventOptions ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7751
|
-
|
|
7628
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7752
7629
|
{
|
|
7753
7630
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH, "aria-hidden": true }),
|
|
7754
7631
|
prefix: l.event,
|
|
@@ -7779,7 +7656,7 @@ function WorkflowComposer({
|
|
|
7779
7656
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.eventHint })
|
|
7780
7657
|
] }),
|
|
7781
7658
|
values.when === "event" && values.eventKind === "workflow_completed" && eventWorkflowOptions && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7782
|
-
|
|
7659
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7783
7660
|
{
|
|
7784
7661
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH, "aria-hidden": true }),
|
|
7785
7662
|
prefix: "Automation",
|
|
@@ -7795,7 +7672,7 @@ function WorkflowComposer({
|
|
|
7795
7672
|
}
|
|
7796
7673
|
),
|
|
7797
7674
|
values.when === "task" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7798
|
-
|
|
7675
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7799
7676
|
{
|
|
7800
7677
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH, "aria-hidden": true }),
|
|
7801
7678
|
prefix: l.afterTask,
|
|
@@ -7846,7 +7723,7 @@ function WorkflowComposer({
|
|
|
7846
7723
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-who`, children: [
|
|
7847
7724
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.whoHeading }),
|
|
7848
7725
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7849
|
-
|
|
7726
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7850
7727
|
{
|
|
7851
7728
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH, "aria-hidden": true }),
|
|
7852
7729
|
prefix: l.runAs,
|
|
@@ -7878,7 +7755,7 @@ function WorkflowComposer({
|
|
|
7878
7755
|
] }),
|
|
7879
7756
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-config`, children: [
|
|
7880
7757
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7881
|
-
|
|
7758
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
7882
7759
|
{
|
|
7883
7760
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH, "aria-hidden": true }),
|
|
7884
7761
|
prefix: l.permission,
|
|
@@ -7906,7 +7783,7 @@ function WorkflowComposer({
|
|
|
7906
7783
|
" ",
|
|
7907
7784
|
l.accessOptions[values.access].hint
|
|
7908
7785
|
] }),
|
|
7909
|
-
values.access
|
|
7786
|
+
chunk2NAYUIT4_cjs.isGrantAccess(values.access) && (typeof grantedAccess === "function" ? grantedAccess(values) : grantedAccess)
|
|
7910
7787
|
]
|
|
7911
7788
|
}
|
|
7912
7789
|
)
|
|
@@ -8029,7 +7906,7 @@ function WorkTaskComposer({
|
|
|
8029
7906
|
onValuesChange,
|
|
8030
7907
|
timezones = [],
|
|
8031
7908
|
goal,
|
|
8032
|
-
|
|
7909
|
+
grantedAccess,
|
|
8033
7910
|
scopeSource,
|
|
8034
7911
|
renderDocuments,
|
|
8035
7912
|
isPending,
|
|
@@ -8042,13 +7919,13 @@ function WorkTaskComposer({
|
|
|
8042
7919
|
testId
|
|
8043
7920
|
}) {
|
|
8044
7921
|
const l = {
|
|
8045
|
-
...DEFAULT_TASK_COMPOSER_LABELS,
|
|
7922
|
+
...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS,
|
|
8046
7923
|
...labels,
|
|
8047
|
-
whenOptions: { ...DEFAULT_TASK_COMPOSER_LABELS.whenOptions, ...labels?.whenOptions },
|
|
8048
|
-
accessOptions: { ...DEFAULT_TASK_COMPOSER_LABELS.accessOptions, ...labels?.accessOptions }
|
|
7924
|
+
whenOptions: { ...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS.whenOptions, ...labels?.whenOptions },
|
|
7925
|
+
accessOptions: { ...chunk2NAYUIT4_cjs.DEFAULT_TASK_COMPOSER_LABELS.accessOptions, ...labels?.accessOptions }
|
|
8049
7926
|
};
|
|
8050
7927
|
const seed = react.useMemo(
|
|
8051
|
-
() => defaultTaskComposerValues(workflows, initialValues),
|
|
7928
|
+
() => chunk2NAYUIT4_cjs.defaultTaskComposerValues(workflows, initialValues),
|
|
8052
7929
|
// Seeded once per open; the host re-keys the composer for a different task.
|
|
8053
7930
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
8054
7931
|
[workflows, open]
|
|
@@ -8167,7 +8044,7 @@ function WorkTaskComposer({
|
|
|
8167
8044
|
}
|
|
8168
8045
|
) }),
|
|
8169
8046
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8170
|
-
|
|
8047
|
+
chunk3V7IAS52_cjs.DueDateMenu,
|
|
8171
8048
|
{
|
|
8172
8049
|
id: `${id}-due`,
|
|
8173
8050
|
label: l.due,
|
|
@@ -8178,7 +8055,7 @@ function WorkTaskComposer({
|
|
|
8178
8055
|
) })
|
|
8179
8056
|
] }),
|
|
8180
8057
|
tasks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8181
|
-
|
|
8058
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8182
8059
|
{
|
|
8183
8060
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true }),
|
|
8184
8061
|
prefix: l.parentTask,
|
|
@@ -8247,7 +8124,7 @@ function WorkTaskComposer({
|
|
|
8247
8124
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
8248
8125
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs text-muted-foreground", children: l.what }),
|
|
8249
8126
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8250
|
-
|
|
8127
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8251
8128
|
{
|
|
8252
8129
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
|
|
8253
8130
|
prefix: l.template,
|
|
@@ -8261,7 +8138,7 @@ function WorkTaskComposer({
|
|
|
8261
8138
|
)
|
|
8262
8139
|
] }),
|
|
8263
8140
|
workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8264
|
-
|
|
8141
|
+
chunk4SPLVRCR_cjs.SchemaForm,
|
|
8265
8142
|
{
|
|
8266
8143
|
fields,
|
|
8267
8144
|
values: values.inputs,
|
|
@@ -8282,7 +8159,7 @@ function WorkTaskComposer({
|
|
|
8282
8159
|
] }),
|
|
8283
8160
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
8284
8161
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8285
|
-
|
|
8162
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8286
8163
|
{
|
|
8287
8164
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH2, "aria-hidden": true }),
|
|
8288
8165
|
prefix: l.start,
|
|
@@ -8295,7 +8172,7 @@ function WorkTaskComposer({
|
|
|
8295
8172
|
}
|
|
8296
8173
|
),
|
|
8297
8174
|
agents.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8298
|
-
|
|
8175
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8299
8176
|
{
|
|
8300
8177
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
|
|
8301
8178
|
prefix: l.which,
|
|
@@ -8310,7 +8187,7 @@ function WorkTaskComposer({
|
|
|
8310
8187
|
}
|
|
8311
8188
|
),
|
|
8312
8189
|
unattended && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8313
|
-
|
|
8190
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8314
8191
|
{
|
|
8315
8192
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH2, "aria-hidden": true }),
|
|
8316
8193
|
prefix: l.permission,
|
|
@@ -8367,7 +8244,7 @@ function WorkTaskComposer({
|
|
|
8367
8244
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.eventHint })
|
|
8368
8245
|
] }),
|
|
8369
8246
|
values.when === "task" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8370
|
-
|
|
8247
|
+
chunk3V7IAS52_cjs.PillSelect,
|
|
8371
8248
|
{
|
|
8372
8249
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true }),
|
|
8373
8250
|
prefix: l.afterTask,
|
|
@@ -8391,7 +8268,7 @@ function WorkTaskComposer({
|
|
|
8391
8268
|
" ",
|
|
8392
8269
|
l.accessOptions[values.access].hint
|
|
8393
8270
|
] }),
|
|
8394
|
-
values.access
|
|
8271
|
+
chunk2NAYUIT4_cjs.isGrantAccess(values.access) && (typeof grantedAccess === "function" ? grantedAccess(values) : grantedAccess)
|
|
8395
8272
|
]
|
|
8396
8273
|
}
|
|
8397
8274
|
),
|
|
@@ -9756,7 +9633,6 @@ exports.DEFAULT_SKILL_VIEW_TOGGLE_LABELS = DEFAULT_SKILL_VIEW_TOGGLE_LABELS;
|
|
|
9756
9633
|
exports.DEFAULT_STEP_BAR_LABELS = DEFAULT_STEP_BAR_LABELS;
|
|
9757
9634
|
exports.DEFAULT_STEP_BRANCH_WORDS = DEFAULT_STEP_BRANCH_WORDS;
|
|
9758
9635
|
exports.DEFAULT_TASK_ACTIVITY_LABELS = DEFAULT_TASK_ACTIVITY_LABELS;
|
|
9759
|
-
exports.DEFAULT_TASK_COMPOSER_LABELS = DEFAULT_TASK_COMPOSER_LABELS;
|
|
9760
9636
|
exports.DEFAULT_TASK_LIST_LABELS = DEFAULT_TASK_LIST_LABELS;
|
|
9761
9637
|
exports.DEFAULT_TASK_OUTPUTS_CELL_LABELS = DEFAULT_TASK_OUTPUTS_CELL_LABELS;
|
|
9762
9638
|
exports.DEFAULT_TASK_PLAN_LABELS = DEFAULT_TASK_PLAN_LABELS;
|
|
@@ -9816,7 +9692,6 @@ exports.closeWorkflowLaunch = closeWorkflowLaunch;
|
|
|
9816
9692
|
exports.composePersona = composePersona;
|
|
9817
9693
|
exports.createTaskColumns = createTaskColumns;
|
|
9818
9694
|
exports.defaultScopeRenderer = defaultScopeRenderer;
|
|
9819
|
-
exports.defaultTaskComposerValues = defaultTaskComposerValues;
|
|
9820
9695
|
exports.deriveAgentName = deriveAgentName;
|
|
9821
9696
|
exports.filterConversationRows = filterConversationRows;
|
|
9822
9697
|
exports.filterLibrarySkills = filterLibrarySkills;
|
|
@@ -9859,5 +9734,5 @@ exports.withLabelIds = withLabelIds;
|
|
|
9859
9734
|
exports.withLabelInputs = withLabelInputs;
|
|
9860
9735
|
exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
|
|
9861
9736
|
exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
|
|
9862
|
-
//# sourceMappingURL=chunk-
|
|
9863
|
-
//# sourceMappingURL=chunk-
|
|
9737
|
+
//# sourceMappingURL=chunk-Q4DQR5HP.cjs.map
|
|
9738
|
+
//# sourceMappingURL=chunk-Q4DQR5HP.cjs.map
|