@arbidocs/blocks 0.5.95 → 0.5.97
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/README.md +21 -8
- package/dist/{ConnectedNativeDocxComparison-FNHQKY57.js → ConnectedNativeDocxComparison-6KL5XI3L.js} +6 -6
- package/dist/{ConnectedNativeDocxComparison-FNHQKY57.js.map → ConnectedNativeDocxComparison-6KL5XI3L.js.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-KIMSYQV2.cjs → ConnectedNativeDocxComparison-P346QOX5.cjs} +7 -7
- package/dist/{ConnectedNativeDocxComparison-KIMSYQV2.cjs.map → ConnectedNativeDocxComparison-P346QOX5.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-UOZGILPM.cjs → ConnectedNativeDocxEditor-7JHSQ6KI.cjs} +7 -7
- package/dist/{ConnectedNativeDocxEditor-UOZGILPM.cjs.map → ConnectedNativeDocxEditor-7JHSQ6KI.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-WFDFGJYW.js → ConnectedNativeDocxEditor-ATZ2TG2L.js} +5 -5
- package/dist/{ConnectedNativeDocxEditor-WFDFGJYW.js.map → ConnectedNativeDocxEditor-ATZ2TG2L.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-WFKYXIX5.cjs → ConnectedStreamedWordArtifact-5HI3WSAJ.cjs} +7 -7
- package/dist/ConnectedStreamedWordArtifact-5HI3WSAJ.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-SFELZUTS.js → ConnectedStreamedWordArtifact-FHSGQHXQ.js} +6 -6
- package/dist/{ConnectedStreamedWordArtifact-SFELZUTS.js.map → ConnectedStreamedWordArtifact-FHSGQHXQ.js.map} +1 -1
- package/dist/{DocumentReviewCard-X5DXEU2G.js → DocumentReviewCard-7UFQGDOG.js} +3 -3
- package/dist/{DocumentReviewCard-X5DXEU2G.js.map → DocumentReviewCard-7UFQGDOG.js.map} +1 -1
- package/dist/{DocumentReviewCard-7XUBPCQD.cjs → DocumentReviewCard-E3HB3K2G.cjs} +3 -3
- package/dist/{DocumentReviewCard-7XUBPCQD.cjs.map → DocumentReviewCard-E3HB3K2G.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-H4ZXFNLV.cjs → FilesViewerDialog-3KWTQARB.cjs} +41 -32
- package/dist/FilesViewerDialog-3KWTQARB.cjs.map +1 -0
- package/dist/{FilesViewerDialog-4Q6WJMSX.js → FilesViewerDialog-EQKBFAWI.js} +40 -31
- package/dist/FilesViewerDialog-EQKBFAWI.js.map +1 -0
- package/dist/WorkspaceTableView-DYABS53K.js +1 -1
- package/dist/WorkspaceTableView-ZIQ7JWT5.cjs +1 -1
- package/dist/agents/index.cjs +254 -254
- package/dist/agents/index.js +4 -4
- package/dist/agents/workflows/WorkflowStepAction.d.ts +9 -2
- package/dist/agents/workflows/requiredLabels.d.ts +7 -2
- package/dist/{chunk-CY2K4K5M.js → chunk-42IVGYNL.js} +4 -4
- package/dist/{chunk-CY2K4K5M.js.map → chunk-42IVGYNL.js.map} +1 -1
- package/dist/{chunk-45M4QWCM.js → chunk-4LTDELP2.js} +3 -3
- package/dist/{chunk-45M4QWCM.js.map → chunk-4LTDELP2.js.map} +1 -1
- package/dist/{chunk-NIXAAPIG.js → chunk-4RCLA52C.js} +5 -5
- package/dist/{chunk-NIXAAPIG.js.map → chunk-4RCLA52C.js.map} +1 -1
- package/dist/{chunk-CJBDBBN2.cjs → chunk-6IS3IRUF.cjs} +4 -4
- package/dist/{chunk-CJBDBBN2.cjs.map → chunk-6IS3IRUF.cjs.map} +1 -1
- package/dist/{chunk-I4PB257E.js → chunk-76O7J6IZ.js} +3 -3
- package/dist/{chunk-I4PB257E.js.map → chunk-76O7J6IZ.js.map} +1 -1
- package/dist/{chunk-ZSWMRG72.cjs → chunk-AINS6VU6.cjs} +4 -4
- package/dist/{chunk-ZSWMRG72.cjs.map → chunk-AINS6VU6.cjs.map} +1 -1
- package/dist/{chunk-U4ZLFL6M.cjs → chunk-CCALU47C.cjs} +5 -5
- package/dist/{chunk-U4ZLFL6M.cjs.map → chunk-CCALU47C.cjs.map} +1 -1
- package/dist/{chunk-5ZWEUUJN.cjs → chunk-ECCV4YOL.cjs} +8 -8
- package/dist/{chunk-5ZWEUUJN.cjs.map → chunk-ECCV4YOL.cjs.map} +1 -1
- package/dist/{chunk-D3ABKS7T.cjs → chunk-HDPT7D6F.cjs} +3 -3
- package/dist/{chunk-D3ABKS7T.cjs.map → chunk-HDPT7D6F.cjs.map} +1 -1
- package/dist/{chunk-MBXQSBG3.cjs → chunk-J4CXF4A7.cjs} +170 -12
- package/dist/chunk-J4CXF4A7.cjs.map +1 -0
- package/dist/{chunk-TG4S236F.js → chunk-LZI4EGOW.js} +206 -53
- package/dist/chunk-LZI4EGOW.js.map +1 -0
- package/dist/{chunk-AJ4TBTA3.js → chunk-PCAWLVHE.js} +3 -3
- package/dist/{chunk-AJ4TBTA3.js.map → chunk-PCAWLVHE.js.map} +1 -1
- package/dist/{chunk-O5MH74TI.js → chunk-QSBPOYWA.js} +3 -3
- package/dist/{chunk-O5MH74TI.js.map → chunk-QSBPOYWA.js.map} +1 -1
- package/dist/{chunk-H2DG5HIO.js → chunk-RZG4ALKZ.js} +3 -3
- package/dist/{chunk-H2DG5HIO.js.map → chunk-RZG4ALKZ.js.map} +1 -1
- package/dist/{chunk-CVYFX7AD.js → chunk-SEBNGA3F.js} +31 -15
- package/dist/chunk-SEBNGA3F.js.map +1 -0
- package/dist/{chunk-6HI5OXB6.cjs → chunk-SYWJNSPS.cjs} +3 -3
- package/dist/{chunk-6HI5OXB6.cjs.map → chunk-SYWJNSPS.cjs.map} +1 -1
- package/dist/{chunk-SOBLG72E.js → chunk-T7LLYVOW.js} +166 -8
- package/dist/chunk-T7LLYVOW.js.map +1 -0
- package/dist/{chunk-VVQEEHDV.cjs → chunk-V2CNHRLZ.cjs} +4 -4
- package/dist/{chunk-VVQEEHDV.cjs.map → chunk-V2CNHRLZ.cjs.map} +1 -1
- package/dist/{chunk-KTHBUDYQ.cjs → chunk-WN7XPEYK.cjs} +5 -5
- package/dist/{chunk-KTHBUDYQ.cjs.map → chunk-WN7XPEYK.cjs.map} +1 -1
- package/dist/{chunk-DCHNB7DF.cjs → chunk-XM4KRGCK.cjs} +246 -93
- package/dist/chunk-XM4KRGCK.cjs.map +1 -0
- package/dist/{chunk-CIXA5A65.cjs → chunk-YZ6YOOTF.cjs} +30 -14
- package/dist/chunk-YZ6YOOTF.cjs.map +1 -0
- package/dist/{chunk-HU3MX5PY.js → chunk-Z4IPTLRS.js} +3 -3
- package/dist/{chunk-HU3MX5PY.js.map → chunk-Z4IPTLRS.js.map} +1 -1
- package/dist/connect/docx.cjs +10 -10
- package/dist/connect/docx.js +6 -6
- package/dist/connect/index.cjs +279 -249
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +52 -22
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +3 -3
- package/dist/connect/viewer.js +2 -2
- package/dist/connection/files/page/ConnectedFilesPage.d.ts +11 -7
- package/dist/connection/viewer/DocumentViewerDialog.d.ts +3 -0
- package/dist/connection/viewer/documentPlace.d.ts +10 -4
- package/dist/connection/workflows/ConnectedWorkflowRunPage.d.ts +4 -3
- package/dist/connection/workflows/WorkflowRunPage.d.ts +18 -15
- package/dist/connection/workflows/index.d.ts +2 -1
- package/dist/connection/workflows/runProject.d.ts +47 -0
- package/dist/embed/index.cjs +2 -2
- package/dist/embed/index.js +2 -2
- package/dist/facts/index.cjs +43 -43
- package/dist/facts/index.js +2 -2
- package/dist/index.cjs +307 -307
- package/dist/index.js +6 -6
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/workflow-canvas/index.cjs +23 -23
- package/dist/workflow-canvas/index.js +8 -8
- package/dist/workspaces/index.cjs +8 -8
- package/dist/workspaces/index.js +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-WFKYXIX5.cjs.map +0 -1
- package/dist/FilesViewerDialog-4Q6WJMSX.js.map +0 -1
- package/dist/FilesViewerDialog-H4ZXFNLV.cjs.map +0 -1
- package/dist/chunk-CIXA5A65.cjs.map +0 -1
- package/dist/chunk-CVYFX7AD.js.map +0 -1
- package/dist/chunk-DCHNB7DF.cjs.map +0 -1
- package/dist/chunk-MBXQSBG3.cjs.map +0 -1
- package/dist/chunk-SOBLG72E.js.map +0 -1
- package/dist/chunk-TG4S236F.js.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -7,14 +7,14 @@ var chunkWVEYUH6C_cjs = require('../chunk-WVEYUH6C.cjs');
|
|
|
7
7
|
var chunkTBARSVW7_cjs = require('../chunk-TBARSVW7.cjs');
|
|
8
8
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
9
9
|
var chunkNZQZ2HFU_cjs = require('../chunk-NZQZ2HFU.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkXM4KRGCK_cjs = require('../chunk-XM4KRGCK.cjs');
|
|
11
11
|
var chunkC5CWKZ5D_cjs = require('../chunk-C5CWKZ5D.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
13
13
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
14
14
|
var chunkSDXK2COQ_cjs = require('../chunk-SDXK2COQ.cjs');
|
|
15
15
|
var chunkXTCNETMI_cjs = require('../chunk-XTCNETMI.cjs');
|
|
16
16
|
var chunkTZHLO7HF_cjs = require('../chunk-TZHLO7HF.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkHDPT7D6F_cjs = require('../chunk-HDPT7D6F.cjs');
|
|
18
18
|
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
19
19
|
var chunkECZXW346_cjs = require('../chunk-ECZXW346.cjs');
|
|
20
20
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
@@ -22,7 +22,7 @@ require('../chunk-UMMZNZV3.cjs');
|
|
|
22
22
|
require('../chunk-AEQT2QQX.cjs');
|
|
23
23
|
var chunkSFRKKPBB_cjs = require('../chunk-SFRKKPBB.cjs');
|
|
24
24
|
require('../chunk-XNW62J54.cjs');
|
|
25
|
-
var
|
|
25
|
+
var chunkECCV4YOL_cjs = require('../chunk-ECCV4YOL.cjs');
|
|
26
26
|
var chunk464YPRAE_cjs = require('../chunk-464YPRAE.cjs');
|
|
27
27
|
var chunkLCPU44GW_cjs = require('../chunk-LCPU44GW.cjs');
|
|
28
28
|
var chunkSIYNZR5B_cjs = require('../chunk-SIYNZR5B.cjs');
|
|
@@ -43,7 +43,7 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
43
43
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
44
44
|
require('../chunk-DTMBAFIL.cjs');
|
|
45
45
|
require('../chunk-ZESMRGDV.cjs');
|
|
46
|
-
var
|
|
46
|
+
var chunkCCALU47C_cjs = require('../chunk-CCALU47C.cjs');
|
|
47
47
|
var chunkYSCDHY53_cjs = require('../chunk-YSCDHY53.cjs');
|
|
48
48
|
require('../chunk-NEGFHF3V.cjs');
|
|
49
49
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
@@ -73,11 +73,11 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
|
73
73
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
74
74
|
require('../chunk-OEJQFPWO.cjs');
|
|
75
75
|
require('../chunk-BQOL4XNZ.cjs');
|
|
76
|
-
var
|
|
76
|
+
var chunkJ4CXF4A7_cjs = require('../chunk-J4CXF4A7.cjs');
|
|
77
77
|
var chunkKNC77LZZ_cjs = require('../chunk-KNC77LZZ.cjs');
|
|
78
78
|
require('../chunk-I4IS6ST6.cjs');
|
|
79
79
|
require('../chunk-EVZH6Z5O.cjs');
|
|
80
|
-
var
|
|
80
|
+
var chunkSYWJNSPS_cjs = require('../chunk-SYWJNSPS.cjs');
|
|
81
81
|
require('../chunk-3YEXZX4H.cjs');
|
|
82
82
|
var chunkZHUQYIV3_cjs = require('../chunk-ZHUQYIV3.cjs');
|
|
83
83
|
var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
@@ -93,6 +93,9 @@ var chunkU2FFG2B3_cjs = require('../chunk-U2FFG2B3.cjs');
|
|
|
93
93
|
var chunk25UUJRSJ_cjs = require('../chunk-25UUJRSJ.cjs');
|
|
94
94
|
var chunkVYJF4ZQY_cjs = require('../chunk-VYJF4ZQY.cjs');
|
|
95
95
|
var chunkM74FWYNL_cjs = require('../chunk-M74FWYNL.cjs');
|
|
96
|
+
var chunkI6SPGHFY_cjs = require('../chunk-I6SPGHFY.cjs');
|
|
97
|
+
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
98
|
+
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
96
99
|
var chunk4ZM3J3SL_cjs = require('../chunk-4ZM3J3SL.cjs');
|
|
97
100
|
require('../chunk-OAIOOVFN.cjs');
|
|
98
101
|
var chunkIOCEKN44_cjs = require('../chunk-IOCEKN44.cjs');
|
|
@@ -106,9 +109,6 @@ var chunkLUO46ELJ_cjs = require('../chunk-LUO46ELJ.cjs');
|
|
|
106
109
|
var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
|
|
107
110
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
108
111
|
require('../chunk-ZT5MIFLC.cjs');
|
|
109
|
-
var chunkI6SPGHFY_cjs = require('../chunk-I6SPGHFY.cjs');
|
|
110
|
-
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
111
|
-
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
112
112
|
var chunk32YCMXT2_cjs = require('../chunk-32YCMXT2.cjs');
|
|
113
113
|
require('../chunk-RT3M5WOS.cjs');
|
|
114
114
|
require('../chunk-7CSEMMDJ.cjs');
|
|
@@ -244,7 +244,7 @@ function ConnectedWorkspaceActivity({
|
|
|
244
244
|
[feed.data]
|
|
245
245
|
);
|
|
246
246
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
247
|
-
|
|
247
|
+
chunkCCALU47C_cjs.WorkspaceActivityList,
|
|
248
248
|
{
|
|
249
249
|
...listProps,
|
|
250
250
|
items,
|
|
@@ -1566,7 +1566,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1566
1566
|
onChange: (e) => {
|
|
1567
1567
|
const file = e.target.files?.[0];
|
|
1568
1568
|
e.target.value = "";
|
|
1569
|
-
if (file) void add(() =>
|
|
1569
|
+
if (file) void add(() => chunkJ4CXF4A7_cjs.importSkillFile(file));
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
),
|
|
@@ -1591,7 +1591,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1591
1591
|
className: "space-y-2",
|
|
1592
1592
|
onSubmit: (e) => {
|
|
1593
1593
|
e.preventDefault();
|
|
1594
|
-
if (url.trim()) void add(() =>
|
|
1594
|
+
if (url.trim()) void add(() => chunkJ4CXF4A7_cjs.importSkillFromUrl(url));
|
|
1595
1595
|
},
|
|
1596
1596
|
children: [
|
|
1597
1597
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1654,9 +1654,9 @@ function ConnectedSkillsLibrary({
|
|
|
1654
1654
|
const [type, setType] = react$1.useState("all");
|
|
1655
1655
|
const [view, setView] = react$1.useState("gallery");
|
|
1656
1656
|
const [isBusy, setIsBusy] = react$1.useState(false);
|
|
1657
|
-
const all = react$1.useMemo(() =>
|
|
1657
|
+
const all = react$1.useMemo(() => chunkJ4CXF4A7_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1658
1658
|
const shown = react$1.useMemo(
|
|
1659
|
-
() =>
|
|
1659
|
+
() => chunkJ4CXF4A7_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1660
1660
|
[all, query, source, type]
|
|
1661
1661
|
);
|
|
1662
1662
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1667,21 +1667,21 @@ function ConnectedSkillsLibrary({
|
|
|
1667
1667
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1668
1668
|
const sourceOptions = [
|
|
1669
1669
|
{ id: "all", label: "All", count: all.length },
|
|
1670
|
-
{ id: "builtin", label:
|
|
1671
|
-
{ id: "mine", label:
|
|
1672
|
-
{ id: "shared", label:
|
|
1670
|
+
{ id: "builtin", label: chunkJ4CXF4A7_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1671
|
+
{ id: "mine", label: chunkJ4CXF4A7_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1672
|
+
{ id: "shared", label: chunkJ4CXF4A7_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1673
1673
|
];
|
|
1674
1674
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1675
1675
|
const typeOptions = [
|
|
1676
1676
|
{ id: "all", label: "Any kind" },
|
|
1677
|
-
...types.map((t) => ({ id: t, label:
|
|
1677
|
+
...types.map((t) => ({ id: t, label: chunkJ4CXF4A7_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1678
1678
|
];
|
|
1679
1679
|
const pick = (slug) => {
|
|
1680
1680
|
setSelected(slug);
|
|
1681
1681
|
setMode("detail");
|
|
1682
1682
|
};
|
|
1683
1683
|
const markdownOf = async (skill) => {
|
|
1684
|
-
if (!skill.docExtId) return
|
|
1684
|
+
if (!skill.docExtId) return chunkJ4CXF4A7_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1685
1685
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1686
1686
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1687
1687
|
return response.text();
|
|
@@ -1745,7 +1745,7 @@ function ConnectedSkillsLibrary({
|
|
|
1745
1745
|
try {
|
|
1746
1746
|
documentTools.downloadBlob(
|
|
1747
1747
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1748
|
-
|
|
1748
|
+
chunkJ4CXF4A7_cjs.SKILL_MAIN_FILENAME
|
|
1749
1749
|
);
|
|
1750
1750
|
} catch (error) {
|
|
1751
1751
|
notify17(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1786,10 +1786,10 @@ function ConnectedSkillsLibrary({
|
|
|
1786
1786
|
}
|
|
1787
1787
|
)
|
|
1788
1788
|
] }),
|
|
1789
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1789
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1790
1790
|
] }),
|
|
1791
1791
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1792
|
-
|
|
1792
|
+
chunkJ4CXF4A7_cjs.SkillFilterChips,
|
|
1793
1793
|
{
|
|
1794
1794
|
label: "Show",
|
|
1795
1795
|
value: source,
|
|
@@ -1798,7 +1798,7 @@ function ConnectedSkillsLibrary({
|
|
|
1798
1798
|
}
|
|
1799
1799
|
),
|
|
1800
1800
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1801
|
-
|
|
1801
|
+
chunkJ4CXF4A7_cjs.SkillFilterChips,
|
|
1802
1802
|
{
|
|
1803
1803
|
label: "Kind",
|
|
1804
1804
|
value: type,
|
|
@@ -1845,12 +1845,12 @@ function ConnectedSkillsLibrary({
|
|
|
1845
1845
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1846
1846
|
),
|
|
1847
1847
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1848
|
-
|
|
1848
|
+
chunkJ4CXF4A7_cjs.SkillTile,
|
|
1849
1849
|
{
|
|
1850
1850
|
name: skill.title,
|
|
1851
1851
|
testId: `skill-tile-${skill.slug}`,
|
|
1852
1852
|
description: skill.description,
|
|
1853
|
-
sourceLabel: skill.isShared ? `${
|
|
1853
|
+
sourceLabel: skill.isShared ? `${chunkJ4CXF4A7_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkJ4CXF4A7_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1854
1854
|
type: skill.type,
|
|
1855
1855
|
icon,
|
|
1856
1856
|
layout: view,
|
|
@@ -1885,7 +1885,7 @@ function ConnectedSkillsLibrary({
|
|
|
1885
1885
|
}
|
|
1886
1886
|
),
|
|
1887
1887
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1888
|
-
|
|
1888
|
+
chunkJ4CXF4A7_cjs.SkillGenerateForm,
|
|
1889
1889
|
{
|
|
1890
1890
|
icon,
|
|
1891
1891
|
onGenerate: (desc) => {
|
|
@@ -1912,11 +1912,11 @@ function ConnectedSkillsLibrary({
|
|
|
1912
1912
|
),
|
|
1913
1913
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1914
1914
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1915
|
-
|
|
1915
|
+
chunkJ4CXF4A7_cjs.SkillLibraryDetail,
|
|
1916
1916
|
{
|
|
1917
1917
|
skill: current,
|
|
1918
1918
|
icon,
|
|
1919
|
-
instructions: current.docExtId ? currentText ?
|
|
1919
|
+
instructions: current.docExtId ? currentText ? chunkJ4CXF4A7_cjs.parseSkillFrontmatter(currentText, chunkJ4CXF4A7_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1920
1920
|
isLoading: !!current.docExtId && textLoading,
|
|
1921
1921
|
actions: {
|
|
1922
1922
|
onRun: () => onRun(current.slug),
|
|
@@ -1951,7 +1951,7 @@ function SkillEditor({
|
|
|
1951
1951
|
const [seeded, setSeeded] = react$1.useState(!isEditing);
|
|
1952
1952
|
const [nameError, setNameError] = react$1.useState(null);
|
|
1953
1953
|
if (isEditing && !seeded && text2 !== void 0) {
|
|
1954
|
-
const parsed =
|
|
1954
|
+
const parsed = chunkJ4CXF4A7_cjs.parseSkillFrontmatter(text2, chunkJ4CXF4A7_cjs.SKILL_MAIN_FILENAME);
|
|
1955
1955
|
setDescription(parsed.description ?? "");
|
|
1956
1956
|
setBody(parsed.content ?? "");
|
|
1957
1957
|
setSeeded(true);
|
|
@@ -1965,15 +1965,15 @@ function SkillEditor({
|
|
|
1965
1965
|
notify17("Add a short description.", "error");
|
|
1966
1966
|
return;
|
|
1967
1967
|
}
|
|
1968
|
-
const slug =
|
|
1968
|
+
const slug = chunkJ4CXF4A7_cjs.skillSlug(name);
|
|
1969
1969
|
try {
|
|
1970
|
-
await onSave(slug,
|
|
1970
|
+
await onSave(slug, chunkJ4CXF4A7_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1971
1971
|
} catch (err) {
|
|
1972
1972
|
notify17(errorText(err, "Could not save the skill"), "error");
|
|
1973
1973
|
}
|
|
1974
1974
|
};
|
|
1975
1975
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1976
|
-
|
|
1976
|
+
chunkJ4CXF4A7_cjs.SkillEditForm,
|
|
1977
1977
|
{
|
|
1978
1978
|
name,
|
|
1979
1979
|
onNameChange: setName,
|
|
@@ -2012,7 +2012,7 @@ var DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = {
|
|
|
2012
2012
|
function ConnectedSkillsBrowser({
|
|
2013
2013
|
props,
|
|
2014
2014
|
onClose: close,
|
|
2015
|
-
builtins =
|
|
2015
|
+
builtins = chunkJ4CXF4A7_cjs.BUILTIN_SKILLS,
|
|
2016
2016
|
renderEditor,
|
|
2017
2017
|
labels
|
|
2018
2018
|
}) {
|
|
@@ -2065,7 +2065,7 @@ function ConnectedSkillsBrowser({
|
|
|
2065
2065
|
}
|
|
2066
2066
|
) }),
|
|
2067
2067
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2068
|
-
|
|
2068
|
+
chunkXM4KRGCK_cjs.ConnectedTaskComposer,
|
|
2069
2069
|
{
|
|
2070
2070
|
kind: "workflow",
|
|
2071
2071
|
open: true,
|
|
@@ -2089,9 +2089,9 @@ function ConnectedAgentCreator({
|
|
|
2089
2089
|
agent,
|
|
2090
2090
|
initialName,
|
|
2091
2091
|
onSaved,
|
|
2092
|
-
capabilities =
|
|
2093
|
-
templates =
|
|
2094
|
-
types =
|
|
2092
|
+
capabilities = chunkJ4CXF4A7_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2093
|
+
templates = chunkJ4CXF4A7_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2094
|
+
types = chunkJ4CXF4A7_cjs.DEFAULT_AGENT_TYPES,
|
|
2095
2095
|
canRevokeWorkspaces = false,
|
|
2096
2096
|
labels
|
|
2097
2097
|
}) {
|
|
@@ -2133,7 +2133,7 @@ function ConnectedAgentCreator({
|
|
|
2133
2133
|
const initialValues = react$1.useMemo(
|
|
2134
2134
|
() => ({
|
|
2135
2135
|
name: agent?.given_name ?? initialName ?? "",
|
|
2136
|
-
persona: isEdit ?
|
|
2136
|
+
persona: isEdit ? chunkJ4CXF4A7_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2137
2137
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2138
2138
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2139
2139
|
type: "builtin",
|
|
@@ -2152,7 +2152,7 @@ function ConnectedAgentCreator({
|
|
|
2152
2152
|
try {
|
|
2153
2153
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2154
2154
|
if (!agentExtId) {
|
|
2155
|
-
if (!
|
|
2155
|
+
if (!chunkJ4CXF4A7_cjs.isValidAgentName(values.name)) {
|
|
2156
2156
|
notify17("Give the agent a name first.", "error");
|
|
2157
2157
|
return;
|
|
2158
2158
|
}
|
|
@@ -2188,7 +2188,7 @@ function ConnectedAgentCreator({
|
|
|
2188
2188
|
title: `agent-${name}`,
|
|
2189
2189
|
sections: {
|
|
2190
2190
|
Agents: {
|
|
2191
|
-
PERSONA:
|
|
2191
|
+
PERSONA: chunkJ4CXF4A7_cjs.composePersona(name, values.persona),
|
|
2192
2192
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2193
2193
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2194
2194
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2211,7 +2211,7 @@ function ConnectedAgentCreator({
|
|
|
2211
2211
|
};
|
|
2212
2212
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2213
2213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2214
|
-
|
|
2214
|
+
chunkJ4CXF4A7_cjs.AgentCreator,
|
|
2215
2215
|
{
|
|
2216
2216
|
open: ready,
|
|
2217
2217
|
onOpenChange,
|
|
@@ -2227,11 +2227,11 @@ function ConnectedAgentCreator({
|
|
|
2227
2227
|
) : void 0,
|
|
2228
2228
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2229
2229
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2230
|
-
|
|
2230
|
+
chunkJ4CXF4A7_cjs.AgentAvatarField,
|
|
2231
2231
|
{
|
|
2232
2232
|
picture,
|
|
2233
2233
|
isBusy: avatarBusy,
|
|
2234
|
-
canGenerate: isEdit ||
|
|
2234
|
+
canGenerate: isEdit || chunkJ4CXF4A7_cjs.isValidAgentName(values.name),
|
|
2235
2235
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2236
2236
|
}
|
|
2237
2237
|
),
|
|
@@ -2283,7 +2283,7 @@ function ConnectedAgentCreator({
|
|
|
2283
2283
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2284
2284
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2285
2285
|
] }),
|
|
2286
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2286
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2287
2287
|
]
|
|
2288
2288
|
}
|
|
2289
2289
|
) })
|
|
@@ -2675,7 +2675,7 @@ function useMemoryCount(enabled) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2677
2677
|
const { notify: notify17, openConversation, openDocument } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
2678
|
-
const people =
|
|
2678
|
+
const people = chunkXM4KRGCK_cjs.useTaskPeople();
|
|
2679
2679
|
const canEditShared = react.useCanEditShared();
|
|
2680
2680
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2681
2681
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2701,7 +2701,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2701
2701
|
}, [documents]);
|
|
2702
2702
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2703
2703
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2704
|
-
|
|
2704
|
+
chunkJ4CXF4A7_cjs.TaskTable,
|
|
2705
2705
|
{
|
|
2706
2706
|
tasks,
|
|
2707
2707
|
isLoading,
|
|
@@ -2728,7 +2728,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
),
|
|
2730
2730
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2731
|
-
|
|
2731
|
+
chunkXM4KRGCK_cjs.ConnectedTaskActivityDialog,
|
|
2732
2732
|
{
|
|
2733
2733
|
conversationId: activityFor.external_id,
|
|
2734
2734
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2744,7 +2744,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2744
2744
|
const { notify: notify17, openConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
2745
2745
|
const { workspaceId, ensureWorkspaceOpen } = chunkWV65MJ43_cjs.useConnectedWorkspace();
|
|
2746
2746
|
const { data: skills = [] } = react.useSkills({ enabled: !!workspaceId, live: true });
|
|
2747
|
-
const workflowTasks =
|
|
2747
|
+
const workflowTasks = chunkXM4KRGCK_cjs.useWorkflowTasks();
|
|
2748
2748
|
const launchable = react$1.useMemo(
|
|
2749
2749
|
() => [
|
|
2750
2750
|
...workflows,
|
|
@@ -2767,7 +2767,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2767
2767
|
[workflows, skills, l.skillFiles]
|
|
2768
2768
|
);
|
|
2769
2769
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2770
|
-
const values =
|
|
2770
|
+
const values = chunkJ4CXF4A7_cjs.defaultTaskComposerValues(launchable, {
|
|
2771
2771
|
workflowId: workflow.id,
|
|
2772
2772
|
assignee: "agent",
|
|
2773
2773
|
inputs,
|
|
@@ -2788,7 +2788,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
};
|
|
2790
2790
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2791
|
-
|
|
2791
|
+
chunkECCV4YOL_cjs.ConnectedWorkflowLauncher,
|
|
2792
2792
|
{
|
|
2793
2793
|
workflows: launchable,
|
|
2794
2794
|
onLaunch: launch,
|
|
@@ -2887,7 +2887,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2887
2887
|
children,
|
|
2888
2888
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2889
2889
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2890
|
-
|
|
2890
|
+
chunkXM4KRGCK_cjs.ConnectedTaskComposer,
|
|
2891
2891
|
{
|
|
2892
2892
|
open: true,
|
|
2893
2893
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2909,7 +2909,7 @@ function AgentsGallery() {
|
|
|
2909
2909
|
cardTestIds
|
|
2910
2910
|
} = agentOptions;
|
|
2911
2911
|
const { openConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
2912
|
-
const tasksByAgent = react$1.useMemo(() =>
|
|
2912
|
+
const tasksByAgent = react$1.useMemo(() => chunkJ4CXF4A7_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2913
2913
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2914
2914
|
const { agents } = management;
|
|
2915
2915
|
const cardDetails = (agent) => details.map(
|
|
@@ -2924,7 +2924,7 @@ function AgentsGallery() {
|
|
|
2924
2924
|
) : detail === "workspaces" ? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkspaceAccess, { agentExtId: agent.external_id, labels: l }, detail) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: behaviour.behaviourOf(agent.given_name) }, detail)
|
|
2925
2925
|
);
|
|
2926
2926
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2927
|
-
|
|
2927
|
+
chunkJ4CXF4A7_cjs.AgentGallery,
|
|
2928
2928
|
{
|
|
2929
2929
|
count: agents.length,
|
|
2930
2930
|
onCreate: management.create,
|
|
@@ -2934,9 +2934,9 @@ function AgentsGallery() {
|
|
|
2934
2934
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2935
2935
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2936
2936
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2937
|
-
const progress = agentTasks[0] ?
|
|
2937
|
+
const progress = agentTasks[0] ? chunkJ4CXF4A7_cjs.goalProgress(agentTasks[0]) : null;
|
|
2938
2938
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2939
|
-
|
|
2939
|
+
chunkJ4CXF4A7_cjs.AgentCard,
|
|
2940
2940
|
{
|
|
2941
2941
|
name: displayName(agent),
|
|
2942
2942
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3044,7 +3044,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3044
3044
|
) });
|
|
3045
3045
|
case "scheduled":
|
|
3046
3046
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3047
|
-
|
|
3047
|
+
chunkECCV4YOL_cjs.ConnectedWorkflowsTable,
|
|
3048
3048
|
{
|
|
3049
3049
|
filter: "scheduled",
|
|
3050
3050
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3348,7 +3348,7 @@ function ConnectedTagTable({
|
|
|
3348
3348
|
const fail2 = (fallback) => (e) => notify17(browser.refusalReason(e, fallback), "error");
|
|
3349
3349
|
const snapshot2 = (data) => {
|
|
3350
3350
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3351
|
-
const bytes =
|
|
3351
|
+
const bytes = chunkCCALU47C_cjs.tagTableDocx(data, {
|
|
3352
3352
|
title,
|
|
3353
3353
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3354
3354
|
});
|
|
@@ -3357,7 +3357,7 @@ function ConnectedTagTable({
|
|
|
3357
3357
|
return { blob: new Blob([bytes], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }), name };
|
|
3358
3358
|
};
|
|
3359
3359
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3360
|
-
|
|
3360
|
+
chunkCCALU47C_cjs.TagTable,
|
|
3361
3361
|
{
|
|
3362
3362
|
...props,
|
|
3363
3363
|
table,
|
|
@@ -3727,9 +3727,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3727
3727
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3728
3728
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3729
3729
|
const download = (format) => {
|
|
3730
|
-
const entries =
|
|
3731
|
-
const blob = format === "docx" ? new Blob([
|
|
3732
|
-
documentTools.downloadBlob(blob,
|
|
3730
|
+
const entries = chunkCCALU47C_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3731
|
+
const blob = format === "docx" ? new Blob([chunkCCALU47C_cjs.glossaryDocx(entries, { title })], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }) : new Blob([chunkCCALU47C_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3732
|
+
documentTools.downloadBlob(blob, chunkCCALU47C_cjs.glossaryFileName(title, format));
|
|
3733
3733
|
};
|
|
3734
3734
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3735
3735
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4258,7 +4258,7 @@ function KindSection({
|
|
|
4258
4258
|
{
|
|
4259
4259
|
testId: `tags-kind-${kind}`,
|
|
4260
4260
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4261
|
-
description:
|
|
4261
|
+
description: chunkCCALU47C_cjs.tagKindDescription(kind),
|
|
4262
4262
|
children: [
|
|
4263
4263
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4264
4264
|
"p",
|
|
@@ -4268,9 +4268,9 @@ function KindSection({
|
|
|
4268
4268
|
children: [
|
|
4269
4269
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4270
4270
|
"Extracting ",
|
|
4271
|
-
|
|
4271
|
+
chunkCCALU47C_cjs.entitiesPhrase().toLowerCase(),
|
|
4272
4272
|
" from ",
|
|
4273
|
-
|
|
4273
|
+
chunkCCALU47C_cjs.documentCount(extractingCount),
|
|
4274
4274
|
"\u2026"
|
|
4275
4275
|
]
|
|
4276
4276
|
}
|
|
@@ -4288,7 +4288,7 @@ function KindSection({
|
|
|
4288
4288
|
onOpenTag: ctx.onOpenTag,
|
|
4289
4289
|
onOpenRow: ctx.onOpenTag,
|
|
4290
4290
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4291
|
-
labels:
|
|
4291
|
+
labels: chunkCCALU47C_cjs.tagTableLabels(kind),
|
|
4292
4292
|
testId: `tags-table-${kind}`
|
|
4293
4293
|
}
|
|
4294
4294
|
)
|
|
@@ -4396,15 +4396,15 @@ function TagSection({
|
|
|
4396
4396
|
onOpenTag: ctx.onOpenTag,
|
|
4397
4397
|
onOpenRow: ctx.onOpenTag,
|
|
4398
4398
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4399
|
-
labels:
|
|
4399
|
+
labels: chunkCCALU47C_cjs.tagTableLabels(tag.kind),
|
|
4400
4400
|
testId: "tags-rows"
|
|
4401
4401
|
}
|
|
4402
4402
|
),
|
|
4403
4403
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4404
|
-
|
|
4404
|
+
chunkCCALU47C_cjs.TagDetail,
|
|
4405
4405
|
{
|
|
4406
4406
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4407
|
-
fieldLabels:
|
|
4407
|
+
fieldLabels: chunkCCALU47C_cjs.tagTableLabels(tag.kind),
|
|
4408
4408
|
row: detailRow,
|
|
4409
4409
|
fields: schema.data?.fields ?? [],
|
|
4410
4410
|
isLoading: detail.isLoading,
|
|
@@ -4412,7 +4412,7 @@ function TagSection({
|
|
|
4412
4412
|
tags: tagOptions,
|
|
4413
4413
|
onOpenTag: ctx.onOpenTag,
|
|
4414
4414
|
onChangeValue: (id, fieldId, value) => setValues.mutateAsync({ tagId: id, values: { [fieldId]: value } }).catch((e) => notify17(browser.refusalReason(e, "Could not save the value"), "error")),
|
|
4415
|
-
labels:
|
|
4415
|
+
labels: chunkCCALU47C_cjs.tagDetailLabels(),
|
|
4416
4416
|
testId: "tags-detail"
|
|
4417
4417
|
}
|
|
4418
4418
|
)
|
|
@@ -4487,7 +4487,7 @@ function ConnectedTagsPage() {
|
|
|
4487
4487
|
const onDelete = async (t) => {
|
|
4488
4488
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4489
4489
|
const uses = browser.tagUseCount(t);
|
|
4490
|
-
const n2 =
|
|
4490
|
+
const n2 = chunkCCALU47C_cjs.tagsPageNouns();
|
|
4491
4491
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4492
4492
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4493
4493
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4508,11 +4508,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4508
4508
|
try {
|
|
4509
4509
|
await extract.mutateAsync(docIds);
|
|
4510
4510
|
notify17(
|
|
4511
|
-
`Extracting ${
|
|
4511
|
+
`Extracting ${chunkCCALU47C_cjs.entitiesPhrase().toLowerCase()} from ${chunkCCALU47C_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4512
4512
|
"info"
|
|
4513
4513
|
);
|
|
4514
4514
|
} catch (error) {
|
|
4515
|
-
notify17(browser.refusalReason(error, `Could not extract ${
|
|
4515
|
+
notify17(browser.refusalReason(error, `Could not extract ${chunkCCALU47C_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4516
4516
|
throw error;
|
|
4517
4517
|
}
|
|
4518
4518
|
};
|
|
@@ -4526,10 +4526,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4526
4526
|
onOpenTag: openTag,
|
|
4527
4527
|
onOpenTaggedItems
|
|
4528
4528
|
};
|
|
4529
|
-
const n =
|
|
4529
|
+
const n = chunkCCALU47C_cjs.tagsPageNouns();
|
|
4530
4530
|
const action = view === "person" || view === "organisation" ? {
|
|
4531
4531
|
label: "Extract",
|
|
4532
|
-
title: `Extract ${
|
|
4532
|
+
title: `Extract ${chunkCCALU47C_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4533
4533
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4534
4534
|
run: () => setExtracting(true),
|
|
4535
4535
|
testId: "tags-extract-entities"
|
|
@@ -4698,7 +4698,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4698
4698
|
}
|
|
4699
4699
|
),
|
|
4700
4700
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4701
|
-
|
|
4701
|
+
chunkCCALU47C_cjs.ExtractEntitiesDialog,
|
|
4702
4702
|
{
|
|
4703
4703
|
open: extracting,
|
|
4704
4704
|
onOpenChange: setExtracting,
|
|
@@ -6175,7 +6175,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6175
6175
|
const runSearch = () => search().catch(() => notify17(`Could not search ${factsWord}. Please try again.`, "error"));
|
|
6176
6176
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
|
|
6177
6177
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6178
|
-
|
|
6178
|
+
chunkHDPT7D6F_cjs.FactSearchBar,
|
|
6179
6179
|
{
|
|
6180
6180
|
query,
|
|
6181
6181
|
onQueryChange: setQuery,
|
|
@@ -6184,7 +6184,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6184
6184
|
isSearching
|
|
6185
6185
|
}
|
|
6186
6186
|
),
|
|
6187
|
-
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6187
|
+
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkHDPT7D6F_cjs.FactSearchTotals, { children: [
|
|
6188
6188
|
hits.length.toLocaleString(),
|
|
6189
6189
|
" ",
|
|
6190
6190
|
hits.length === 1 ? factWord : factsWord,
|
|
@@ -6192,18 +6192,18 @@ function ConnectedFactsSmartSearch({
|
|
|
6192
6192
|
lastQuery,
|
|
6193
6193
|
"\u201D"
|
|
6194
6194
|
] }),
|
|
6195
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6195
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkHDPT7D6F_cjs.FactSearchPending, { children: [
|
|
6196
6196
|
"Searching ",
|
|
6197
6197
|
factsWord,
|
|
6198
6198
|
"\u2026"
|
|
6199
|
-
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6199
|
+
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkHDPT7D6F_cjs.FactSearchNoMatches, { children: [
|
|
6200
6200
|
"No ",
|
|
6201
6201
|
factsWord,
|
|
6202
6202
|
" matched \u201C",
|
|
6203
6203
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
|
|
6204
6204
|
"\u201D."
|
|
6205
6205
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6206
|
-
|
|
6206
|
+
chunkHDPT7D6F_cjs.FactSearchResult,
|
|
6207
6207
|
{
|
|
6208
6208
|
id: h.external_id,
|
|
6209
6209
|
rank: i + 1,
|
|
@@ -6303,7 +6303,7 @@ function FactSourcesPopover({
|
|
|
6303
6303
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
6304
6304
|
const cited = passagesOf(docId);
|
|
6305
6305
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6306
|
-
|
|
6306
|
+
chunkHDPT7D6F_cjs.FactSourceGroup,
|
|
6307
6307
|
{
|
|
6308
6308
|
docId,
|
|
6309
6309
|
isViewing,
|
|
@@ -6392,7 +6392,7 @@ function FactMarkdownEditor({
|
|
|
6392
6392
|
const editorRef = react$1.useRef(null);
|
|
6393
6393
|
react$1.useEffect(() => {
|
|
6394
6394
|
if (!editorRef.current) return;
|
|
6395
|
-
return
|
|
6395
|
+
return chunkHDPT7D6F_cjs.enableFactTableColumnResize(editorRef.current);
|
|
6396
6396
|
}, []);
|
|
6397
6397
|
react$1.useEffect(() => {
|
|
6398
6398
|
if (!editing) return;
|
|
@@ -7031,7 +7031,7 @@ function useFactFilters(notes, view, chat) {
|
|
|
7031
7031
|
const makeTagPicker = react$1.useCallback(
|
|
7032
7032
|
(selected, setSelected, opts) => {
|
|
7033
7033
|
const applied = new Set(selected);
|
|
7034
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7034
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7035
7035
|
chunk33MKOWSA_cjs.FieldLabelsSelect,
|
|
7036
7036
|
{
|
|
7037
7037
|
options: labelOptions,
|
|
@@ -7223,14 +7223,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
7223
7223
|
}
|
|
7224
7224
|
function renderSourcesCell(params) {
|
|
7225
7225
|
const fact = params.data;
|
|
7226
|
-
const count2 =
|
|
7226
|
+
const count2 = chunkHDPT7D6F_cjs.sourceDocCount(fact);
|
|
7227
7227
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
7228
7228
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7229
7229
|
"button",
|
|
7230
7230
|
{
|
|
7231
7231
|
type: "button",
|
|
7232
7232
|
onClick: () => params.context?.openEdit?.(fact),
|
|
7233
|
-
title:
|
|
7233
|
+
title: chunkHDPT7D6F_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
7234
7234
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
7235
7235
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
7236
7236
|
children: [
|
|
@@ -7287,14 +7287,14 @@ function createFactPageColumns({
|
|
|
7287
7287
|
onToggleConfirmed,
|
|
7288
7288
|
onToggleShared
|
|
7289
7289
|
}) {
|
|
7290
|
-
const columns =
|
|
7290
|
+
const columns = chunkHDPT7D6F_cjs.createFactColumns({
|
|
7291
7291
|
onToggleInChat,
|
|
7292
7292
|
isInChat,
|
|
7293
7293
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
7294
7294
|
renderRowActions: (fact, params) => {
|
|
7295
7295
|
const ctx = params.context;
|
|
7296
7296
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7297
|
-
|
|
7297
|
+
chunkHDPT7D6F_cjs.FactRowActions,
|
|
7298
7298
|
{
|
|
7299
7299
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
7300
7300
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -7424,7 +7424,7 @@ function useFactsGrid({
|
|
|
7424
7424
|
);
|
|
7425
7425
|
const renderFactTags = react$1.useCallback(
|
|
7426
7426
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7427
|
-
|
|
7427
|
+
chunkHDPT7D6F_cjs.FactLabelsCell,
|
|
7428
7428
|
{
|
|
7429
7429
|
options: labelOptions,
|
|
7430
7430
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -7789,7 +7789,7 @@ function ConnectedFactsPage() {
|
|
|
7789
7789
|
};
|
|
7790
7790
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
7791
7791
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7792
|
-
|
|
7792
|
+
chunkHDPT7D6F_cjs.FactsToolbar,
|
|
7793
7793
|
{
|
|
7794
7794
|
count: filteredNotes.length,
|
|
7795
7795
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -7818,7 +7818,7 @@ function ConnectedFactsPage() {
|
|
|
7818
7818
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7819
7819
|
navSlotRef: setNavSlot,
|
|
7820
7820
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7821
|
-
|
|
7821
|
+
chunkCCALU47C_cjs.GridRowNavigator,
|
|
7822
7822
|
{
|
|
7823
7823
|
gridApi,
|
|
7824
7824
|
selectedId: editingId,
|
|
@@ -7829,7 +7829,7 @@ function ConnectedFactsPage() {
|
|
|
7829
7829
|
) : null,
|
|
7830
7830
|
showToolbarRow: view !== "smart_search",
|
|
7831
7831
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7832
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7832
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
7833
7833
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7834
7834
|
chunk33MKOWSA_cjs.RowDensityControl,
|
|
7835
7835
|
{
|
|
@@ -7867,7 +7867,7 @@ function ConnectedFactsPage() {
|
|
|
7867
7867
|
}
|
|
7868
7868
|
) }),
|
|
7869
7869
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7870
|
-
|
|
7870
|
+
chunkHDPT7D6F_cjs.FactComposer,
|
|
7871
7871
|
{
|
|
7872
7872
|
isOpen: composing,
|
|
7873
7873
|
isEditing: !!editingId,
|
|
@@ -7897,7 +7897,7 @@ function ConnectedFactsPage() {
|
|
|
7897
7897
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
7898
7898
|
citationContainer: factSection,
|
|
7899
7899
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7900
|
-
|
|
7900
|
+
chunkHDPT7D6F_cjs.FactSourcesRow,
|
|
7901
7901
|
{
|
|
7902
7902
|
toggle: sourcesToggle,
|
|
7903
7903
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7943,7 +7943,7 @@ function ConnectedFactsPage() {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
),
|
|
7945
7945
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7946
|
-
|
|
7946
|
+
chunkHDPT7D6F_cjs.FactDateInput,
|
|
7947
7947
|
{
|
|
7948
7948
|
value: composer.draftDateFields,
|
|
7949
7949
|
onChange: composer.setDraftDateFields,
|
|
@@ -7953,7 +7953,7 @@ function ConnectedFactsPage() {
|
|
|
7953
7953
|
}
|
|
7954
7954
|
),
|
|
7955
7955
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
7956
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7956
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
|
|
7957
7957
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
7958
7958
|
// search UI is reachable even in an empty workspace.
|
|
7959
7959
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7966,7 +7966,7 @@ function ConnectedFactsPage() {
|
|
|
7966
7966
|
)
|
|
7967
7967
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
7968
7968
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7969
|
-
|
|
7969
|
+
chunkHDPT7D6F_cjs.FactsEmptyState,
|
|
7970
7970
|
{
|
|
7971
7971
|
onUseExample: (text2) => {
|
|
7972
7972
|
composer.setDraft(text2);
|
|
@@ -7977,7 +7977,7 @@ function ConnectedFactsPage() {
|
|
|
7977
7977
|
),
|
|
7978
7978
|
/* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
|
|
7979
7979
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7980
|
-
|
|
7980
|
+
chunkHDPT7D6F_cjs.FactsCalendar,
|
|
7981
7981
|
{
|
|
7982
7982
|
facts: filteredNotes,
|
|
7983
7983
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -7986,7 +7986,7 @@ function ConnectedFactsPage() {
|
|
|
7986
7986
|
navigatorTotal: filteredNotes.length
|
|
7987
7987
|
}
|
|
7988
7988
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7989
|
-
|
|
7989
|
+
chunkHDPT7D6F_cjs.FactsGanttPane,
|
|
7990
7990
|
{
|
|
7991
7991
|
items: ganttItems,
|
|
7992
7992
|
labelWidth: pageView.labelWidth,
|
|
@@ -8036,7 +8036,7 @@ function ConnectedFactsPage() {
|
|
|
8036
8036
|
)
|
|
8037
8037
|
] }),
|
|
8038
8038
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8039
|
-
|
|
8039
|
+
chunkHDPT7D6F_cjs.FactsBulkBar,
|
|
8040
8040
|
{
|
|
8041
8041
|
count: selection.selectedFacts.length,
|
|
8042
8042
|
onClear: selection.clearSelection,
|
|
@@ -11720,7 +11720,7 @@ function AddWorkspaceMembersForm({
|
|
|
11720
11720
|
)
|
|
11721
11721
|
}
|
|
11722
11722
|
),
|
|
11723
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11723
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkYZ6YOOTF_cjs.ModalActionRow, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: handleSubmit, disabled: selectedUsers.length === 0 || isAdding, children: isAdding ? labels.adding : labels.add(selectedUsers.length) }) })
|
|
11724
11724
|
] });
|
|
11725
11725
|
}
|
|
11726
11726
|
function WorkspaceAccessSummary({
|
|
@@ -12700,13 +12700,13 @@ function ConnectedProjectSelector({
|
|
|
12700
12700
|
}) {
|
|
12701
12701
|
const { stripeEnabled } = chunkDDIV3MYQ_cjs.useBillingSupport();
|
|
12702
12702
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12703
|
-
|
|
12703
|
+
chunkYZ6YOOTF_cjs.ProjectPicker,
|
|
12704
12704
|
{
|
|
12705
12705
|
value: projectExtId ?? void 0,
|
|
12706
12706
|
options: projectOptions.map((proj) => ({
|
|
12707
12707
|
id: proj.external_id,
|
|
12708
12708
|
content: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12709
|
-
|
|
12709
|
+
chunkYZ6YOOTF_cjs.ProjectOptionRow,
|
|
12710
12710
|
{
|
|
12711
12711
|
identity: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12712
12712
|
ConnectedProjectEntity,
|
|
@@ -12842,13 +12842,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12842
12842
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12843
12843
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12844
12844
|
if (!workspace) {
|
|
12845
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkC5CWKZ5D_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12845
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkC5CWKZ5D_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12846
12846
|
}
|
|
12847
12847
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12848
12848
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkC5CWKZ5D_cjs.WorkspacePageFrame, { testId, children: [
|
|
12849
12849
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkC5CWKZ5D_cjs.WorkspaceIdentityPanel, { children: [
|
|
12850
12850
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12851
|
-
|
|
12851
|
+
chunkCCALU47C_cjs.EntityIdentityBar,
|
|
12852
12852
|
{
|
|
12853
12853
|
testId: "workspace-identity-bar",
|
|
12854
12854
|
canEdit: isOwner,
|
|
@@ -12865,7 +12865,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12865
12865
|
label: "Name",
|
|
12866
12866
|
value: workspace.name,
|
|
12867
12867
|
placeholder: "Untitled",
|
|
12868
|
-
maxLength:
|
|
12868
|
+
maxLength: chunkCCALU47C_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12869
12869
|
valueClassName: "truncate text-base font-semibold",
|
|
12870
12870
|
testId: "workspace-home-title",
|
|
12871
12871
|
hideLabel: true,
|
|
@@ -13754,10 +13754,10 @@ function WorkspaceCreateForm({
|
|
|
13754
13754
|
}
|
|
13755
13755
|
};
|
|
13756
13756
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-5", "data-testid": "create-workspace-form", children: [
|
|
13757
|
-
errorMessage2 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13757
|
+
errorMessage2 && /* @__PURE__ */ jsxRuntime.jsx(chunkYZ6YOOTF_cjs.FormErrorBanner, { message: errorMessage2 }),
|
|
13758
13758
|
/* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: "flex flex-col gap-5", children: [
|
|
13759
13759
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13760
|
-
|
|
13760
|
+
chunkYZ6YOOTF_cjs.WorkspaceFieldsView,
|
|
13761
13761
|
{
|
|
13762
13762
|
name: localWorkspaceName,
|
|
13763
13763
|
description: localWorkspaceDescription,
|
|
@@ -13797,7 +13797,7 @@ function WorkspaceCreateForm({
|
|
|
13797
13797
|
] }) : void 0
|
|
13798
13798
|
}
|
|
13799
13799
|
),
|
|
13800
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13800
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkYZ6YOOTF_cjs.FormActions, { children: [
|
|
13801
13801
|
onCancel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13802
13802
|
ui.Button,
|
|
13803
13803
|
{
|
|
@@ -13847,7 +13847,7 @@ function ConnectedWorkspaceFormModal({
|
|
|
13847
13847
|
const canCreate = demoSeed ? true : allowed;
|
|
13848
13848
|
const workspaceLabel = ui.getEntityLabel("WORKSPACE");
|
|
13849
13849
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13850
|
-
|
|
13850
|
+
chunkYZ6YOOTF_cjs.WorkspaceFormModal,
|
|
13851
13851
|
{
|
|
13852
13852
|
...frame,
|
|
13853
13853
|
...canCreate === false ? {
|
|
@@ -14503,36 +14503,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
14503
14503
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
14504
14504
|
const { apiBaseUrl } = chunkUIXY4HKM_cjs.useBlocksEnvironment().runtimeConfig;
|
|
14505
14505
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
14506
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14506
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentCard, { size: "md", children: [
|
|
14507
14507
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14508
|
-
|
|
14508
|
+
chunkJ4CXF4A7_cjs.ConsentHeader,
|
|
14509
14509
|
{
|
|
14510
14510
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunk33MKOWSA_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
14511
14511
|
title: "Approve ARBI for SharePoint access",
|
|
14512
14512
|
children: "A member of your organization uses ARBI and wants to sync documents from SharePoint. Your Microsoft 365 organization requires an administrator to approve this once for the whole organization."
|
|
14513
14513
|
}
|
|
14514
14514
|
),
|
|
14515
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14516
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14517
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14515
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
|
|
14516
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
|
|
14517
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
14518
14518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14519
|
-
|
|
14519
|
+
chunkJ4CXF4A7_cjs.ConsentBulletList,
|
|
14520
14520
|
{
|
|
14521
14521
|
items: [
|
|
14522
14522
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14523
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14523
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
14524
14524
|
" \u2014 lets each user who connects their own account import documents from sites they already have access to. ARBI never gets more access than the user has."
|
|
14525
14525
|
] }),
|
|
14526
14526
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14527
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14527
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
14528
14528
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
14529
14529
|
] })
|
|
14530
14530
|
]
|
|
14531
14531
|
}
|
|
14532
14532
|
),
|
|
14533
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14533
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
|
|
14534
14534
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, className: "w-full pointer-coarse:h-11", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: consentUrl, children: "Review and approve in Microsoft" }) }),
|
|
14535
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14535
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
|
|
14536
14536
|
] })
|
|
14537
14537
|
] }) });
|
|
14538
14538
|
}
|
|
@@ -16880,7 +16880,7 @@ function ConnectedWelcomeDialog({
|
|
|
16880
16880
|
firstName,
|
|
16881
16881
|
hasReward: hasBalance,
|
|
16882
16882
|
projectPicker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16883
|
-
|
|
16883
|
+
chunkYZ6YOOTF_cjs.ProjectPicker,
|
|
16884
16884
|
{
|
|
16885
16885
|
variant: "welcome",
|
|
16886
16886
|
value: selectedProject.external_id,
|
|
@@ -17272,7 +17272,7 @@ function ConnectedWorkspaceList({
|
|
|
17272
17272
|
}
|
|
17273
17273
|
);
|
|
17274
17274
|
}
|
|
17275
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17275
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17276
17276
|
if (list.error) {
|
|
17277
17277
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17278
17278
|
chunkECZXW346_cjs.HomeLoadError,
|
|
@@ -17345,7 +17345,7 @@ function ConnectedWorkspaceList({
|
|
|
17345
17345
|
workspaceState
|
|
17346
17346
|
}
|
|
17347
17347
|
) })
|
|
17348
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17348
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkECZXW346_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17349
17349
|
WorkspaceTableView,
|
|
17350
17350
|
{
|
|
17351
17351
|
list,
|
|
@@ -17535,7 +17535,7 @@ function ConnectedProjectsListPage({
|
|
|
17535
17535
|
};
|
|
17536
17536
|
const { openProject } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
17537
17537
|
const [search, setSearch] = react$1.useState("");
|
|
17538
|
-
const { projects, isLoading } =
|
|
17538
|
+
const { projects, isLoading } = chunkXM4KRGCK_cjs.useProjectSummaries();
|
|
17539
17539
|
const rows = react$1.useMemo(() => {
|
|
17540
17540
|
const q = search.trim().toLowerCase();
|
|
17541
17541
|
if (!q) return projects;
|
|
@@ -17606,7 +17606,7 @@ function ConnectedProjectsListPage({
|
|
|
17606
17606
|
}
|
|
17607
17607
|
),
|
|
17608
17608
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17609
|
-
|
|
17609
|
+
chunkCCALU47C_cjs.Toolbar,
|
|
17610
17610
|
{
|
|
17611
17611
|
search,
|
|
17612
17612
|
onSearch: setSearch,
|
|
@@ -17668,7 +17668,7 @@ function ProjectDetailsForm({
|
|
|
17668
17668
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17669
17669
|
const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
17670
17670
|
const update = react.useUpdateProjectFields();
|
|
17671
|
-
const workspace =
|
|
17671
|
+
const workspace = chunkXM4KRGCK_cjs.primaryProjectWorkspace(project);
|
|
17672
17672
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17673
17673
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17674
17674
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -17793,7 +17793,7 @@ var COMPACT_BELOW = 132;
|
|
|
17793
17793
|
var NO_DOCUMENTS = [];
|
|
17794
17794
|
function useFilesWorkspace() {
|
|
17795
17795
|
const { workspaceId, userId, live } = chunkWV65MJ43_cjs.useConnectedWorkspace();
|
|
17796
|
-
const { members, role } =
|
|
17796
|
+
const { members, role } = chunkECCV4YOL_cjs.useConnectedWorkspaceRole();
|
|
17797
17797
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
17798
17798
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
17799
17799
|
return {
|
|
@@ -18553,7 +18553,7 @@ function ProjectChronology({
|
|
|
18553
18553
|
})),
|
|
18554
18554
|
[facts]
|
|
18555
18555
|
);
|
|
18556
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
18556
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
18557
18557
|
}
|
|
18558
18558
|
function ProjectThreads({
|
|
18559
18559
|
projectId,
|
|
@@ -18566,7 +18566,10 @@ function ProjectThreads({
|
|
|
18566
18566
|
const { data: saved = [] } = react.useWorkflows();
|
|
18567
18567
|
const spend = react.useProjectConversationUsage(projectId);
|
|
18568
18568
|
const { openConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
18569
|
-
const titleOf = (c) =>
|
|
18569
|
+
const titleOf = (c) => {
|
|
18570
|
+
const workflow = saved.find((w) => w.external_id === c.workflow_ext_id)?.name;
|
|
18571
|
+
return c.title || workflow && react.workflowRunTitle(workflow, c.created_at) || labels.untitled;
|
|
18572
|
+
};
|
|
18570
18573
|
const threads = conversations.slice().sort((a, b) => b.created_at.localeCompare(a.created_at));
|
|
18571
18574
|
const list = /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { className: aside ? "lg:col-span-2" : void 0, "data-testid": testId, children: [
|
|
18572
18575
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { children: labels.title }) }),
|
|
@@ -18727,11 +18730,11 @@ function ConnectedProjectPage({
|
|
|
18727
18730
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18728
18731
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18729
18732
|
};
|
|
18730
|
-
const { project, usage, isLoading } =
|
|
18733
|
+
const { project, usage, isLoading } = chunkXM4KRGCK_cjs.useProjectSummary(projectId);
|
|
18731
18734
|
const { workspaceId } = chunkWV65MJ43_cjs.useConnectedWorkspace();
|
|
18732
18735
|
const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
18733
18736
|
const selectWorkspace = chunkXTCNETMI_cjs.useSelectWorkspace();
|
|
18734
|
-
const workspace = project ?
|
|
18737
|
+
const workspace = project ? chunkXM4KRGCK_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18735
18738
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18736
18739
|
react$1.useEffect(() => {
|
|
18737
18740
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -21441,7 +21444,7 @@ function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
|
21441
21444
|
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkSDXK2COQ_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
21442
21445
|
[]
|
|
21443
21446
|
);
|
|
21444
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21447
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
21445
21448
|
}
|
|
21446
21449
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
21447
21450
|
const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
@@ -21558,7 +21561,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21558
21561
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify17]);
|
|
21559
21562
|
if (editAgent) {
|
|
21560
21563
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21561
|
-
|
|
21564
|
+
chunkJ4CXF4A7_cjs.AgentEditView,
|
|
21562
21565
|
{
|
|
21563
21566
|
agentName: editAgent.name,
|
|
21564
21567
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21574,7 +21577,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21574
21577
|
}
|
|
21575
21578
|
if (view === "main") {
|
|
21576
21579
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21577
|
-
|
|
21580
|
+
chunkJ4CXF4A7_cjs.AgentMainView,
|
|
21578
21581
|
{
|
|
21579
21582
|
onConnectExternal: () => setView("connect"),
|
|
21580
21583
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21590,11 +21593,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21590
21593
|
}
|
|
21591
21594
|
if (result) {
|
|
21592
21595
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21593
|
-
|
|
21596
|
+
chunkJ4CXF4A7_cjs.AgentCreatedView,
|
|
21594
21597
|
{
|
|
21595
21598
|
email: result.email,
|
|
21596
21599
|
signingKey: result.signingKey,
|
|
21597
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21600
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
21598
21601
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
21599
21602
|
isConfigOpen: configOpen,
|
|
21600
21603
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -21603,7 +21606,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21603
21606
|
);
|
|
21604
21607
|
}
|
|
21605
21608
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21606
|
-
|
|
21609
|
+
chunkJ4CXF4A7_cjs.AgentCreateView,
|
|
21607
21610
|
{
|
|
21608
21611
|
name,
|
|
21609
21612
|
onNameChange: setName,
|
|
@@ -21798,13 +21801,13 @@ function ConnectedNewThreadDialog({
|
|
|
21798
21801
|
});
|
|
21799
21802
|
const parentOptions = react$1.useMemo(() => {
|
|
21800
21803
|
const leaf = { external_id: "__new__" };
|
|
21801
|
-
return
|
|
21804
|
+
return chunkJ4CXF4A7_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
21802
21805
|
id: t.external_id,
|
|
21803
21806
|
name: t.title?.trim() || "Untitled task"
|
|
21804
21807
|
}));
|
|
21805
21808
|
}, [tasks]);
|
|
21806
21809
|
const submit = async (values) => {
|
|
21807
|
-
const request =
|
|
21810
|
+
const request = chunkJ4CXF4A7_cjs.newThreadToRequest(values);
|
|
21808
21811
|
try {
|
|
21809
21812
|
if (!workspaceId) throw new Error("Open a workspace to add a task.");
|
|
21810
21813
|
if (!request.startAssistant && request.todo) {
|
|
@@ -21845,7 +21848,7 @@ function ConnectedNewThreadDialog({
|
|
|
21845
21848
|
}
|
|
21846
21849
|
};
|
|
21847
21850
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21848
|
-
|
|
21851
|
+
chunkJ4CXF4A7_cjs.NewThreadDialog,
|
|
21849
21852
|
{
|
|
21850
21853
|
open,
|
|
21851
21854
|
onOpenChange,
|
|
@@ -21965,14 +21968,14 @@ var referencesOf = (inputs) => {
|
|
|
21965
21968
|
return value?.documents ?? [];
|
|
21966
21969
|
};
|
|
21967
21970
|
var PROMPT_BINDINGS = {
|
|
21968
|
-
[
|
|
21971
|
+
[chunkJ4CXF4A7_cjs.GENERATE_IMAGE_ID]: {
|
|
21969
21972
|
attachScope: false,
|
|
21970
21973
|
tools: (inputs) => {
|
|
21971
21974
|
const aspectRatio = typeof inputs.aspect_ratio === "string" ? inputs.aspect_ratio : "";
|
|
21972
21975
|
return {
|
|
21973
21976
|
retrieval_chunk: browser.buildRetrievalChunkTool([]),
|
|
21974
21977
|
retrieval_full_context: browser.buildRetrievalFullContextTool(referencesOf(inputs)),
|
|
21975
|
-
...aspectRatio && aspectRatio !==
|
|
21978
|
+
...aspectRatio && aspectRatio !== chunkJ4CXF4A7_cjs.IMAGE_ASPECT_AUTO ? {
|
|
21976
21979
|
image_generation: {
|
|
21977
21980
|
name: "image_generation",
|
|
21978
21981
|
description: "image generation",
|
|
@@ -21993,19 +21996,19 @@ var text = (inputs, name) => {
|
|
|
21993
21996
|
function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
21994
21997
|
const { data: documents = [] } = react.useDocuments();
|
|
21995
21998
|
const { data: workspaceTags = [] } = react.useTags();
|
|
21996
|
-
const tags = react$1.useMemo(() =>
|
|
21999
|
+
const tags = react$1.useMemo(() => chunkSYWJNSPS_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
21997
22000
|
const createTag = react.useCreateTag();
|
|
21998
22001
|
const updateTag = react.useUpdateTag();
|
|
21999
22002
|
const generate = react.useGenerateDocTags();
|
|
22000
|
-
const { create: createTask } =
|
|
22003
|
+
const { create: createTask } = chunkXM4KRGCK_cjs.useWorkflowTasks();
|
|
22001
22004
|
const applyModel = react.useApplyChatModel();
|
|
22002
22005
|
const session = react.useArbiSessionStore();
|
|
22003
22006
|
const { notify: notify17, openFiles, openNewConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
22004
22007
|
const annotate = react$1.useCallback(
|
|
22005
22008
|
async ({ inputs, scope }) => {
|
|
22006
22009
|
const description = text(inputs, "description");
|
|
22007
|
-
const name = text(inputs, "name") ||
|
|
22008
|
-
const matching =
|
|
22010
|
+
const name = text(inputs, "name") || chunkJ4CXF4A7_cjs.deriveAnnotationName(description);
|
|
22011
|
+
const matching = chunkSYWJNSPS_cjs.matchWorkflowScope(documents, scope);
|
|
22009
22012
|
if (!name || !description || matching.length === 0) return;
|
|
22010
22013
|
try {
|
|
22011
22014
|
const existing = tags.find((t) => t.name.toLowerCase() === name.toLowerCase());
|
|
@@ -22048,9 +22051,9 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
22048
22051
|
async (launch) => {
|
|
22049
22052
|
const { workflow, inputs, scope, agentId } = launch;
|
|
22050
22053
|
if (workflow.run.kind === "operation") {
|
|
22051
|
-
if (workflow.id ===
|
|
22054
|
+
if (workflow.id === chunkJ4CXF4A7_cjs.ANNOTATE_ID) {
|
|
22052
22055
|
await annotate(launch);
|
|
22053
|
-
|
|
22056
|
+
chunkJ4CXF4A7_cjs.recordWorkflowUse(workflow.id);
|
|
22054
22057
|
return;
|
|
22055
22058
|
}
|
|
22056
22059
|
throw new Error(`No host handler for workflow "${workflow.id}"`);
|
|
@@ -22060,7 +22063,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
22060
22063
|
);
|
|
22061
22064
|
const prompt = chunk5GQOIQCB_cjs.composeWorkflowPrompt(workflow, inputs, { documentTitles });
|
|
22062
22065
|
if (!prompt) return;
|
|
22063
|
-
|
|
22066
|
+
chunkJ4CXF4A7_cjs.recordWorkflowUse(workflow.id);
|
|
22064
22067
|
if (agentId) {
|
|
22065
22068
|
try {
|
|
22066
22069
|
const created = await createTask({
|
|
@@ -22105,7 +22108,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
22105
22108
|
const binding = PROMPT_BINDINGS[workflow.id];
|
|
22106
22109
|
if (!inPlace) openNewConversation();
|
|
22107
22110
|
if (binding?.attachScope !== false && !chunk5GQOIQCB_cjs.isEmptyWorkflowScope(scope)) {
|
|
22108
|
-
const ids =
|
|
22111
|
+
const ids = chunkSYWJNSPS_cjs.matchWorkflowScope(documents, scope).map((d) => d.external_id);
|
|
22109
22112
|
if (ids.length > 0) {
|
|
22110
22113
|
session.setConversationDocuments(
|
|
22111
22114
|
inPlace ? session.getState().conversationId ?? "new" : "new",
|
|
@@ -22140,30 +22143,30 @@ function ConnectedWorkflowStart({
|
|
|
22140
22143
|
const onLaunch = useLaunchWorkflow({ landing });
|
|
22141
22144
|
const { openUpload } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
22142
22145
|
const { data: workspaceTags = [] } = react.useTags();
|
|
22143
|
-
const tags = react$1.useMemo(() =>
|
|
22146
|
+
const tags = react$1.useMemo(() => chunkSYWJNSPS_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
22144
22147
|
const fieldPlaceholder = react$1.useCallback(
|
|
22145
22148
|
(field, inputs, workflow) => {
|
|
22146
|
-
if (workflow.id !==
|
|
22147
|
-
const derived =
|
|
22149
|
+
if (workflow.id !== chunkJ4CXF4A7_cjs.ANNOTATE_ID || field.name !== "name") return void 0;
|
|
22150
|
+
const derived = chunkJ4CXF4A7_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
22148
22151
|
return derived ? `Otherwise \u201C${derived}\u201D` : "Taken from the description";
|
|
22149
22152
|
},
|
|
22150
22153
|
[]
|
|
22151
22154
|
);
|
|
22152
22155
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22153
|
-
|
|
22156
|
+
chunkECCV4YOL_cjs.ConnectedWorkflowLauncher,
|
|
22154
22157
|
{
|
|
22155
22158
|
...rest,
|
|
22156
22159
|
workflows,
|
|
22157
22160
|
onLaunch,
|
|
22158
|
-
renderIcon:
|
|
22161
|
+
renderIcon: chunkJ4CXF4A7_cjs.renderWorkflowIcon,
|
|
22159
22162
|
onAddFiles: openUpload,
|
|
22160
22163
|
agentLabels: AGENT_LABELS,
|
|
22161
22164
|
addFilesAction,
|
|
22162
22165
|
fieldPlaceholder,
|
|
22163
|
-
submitLabel: ({ workflow, matchedCount }) => workflow.id ===
|
|
22166
|
+
submitLabel: ({ workflow, matchedCount }) => workflow.id === chunkJ4CXF4A7_cjs.ANNOTATE_ID && matchedCount !== null ? `Annotate ${matchedCount} document${matchedCount !== 1 ? "s" : ""}` : void 0,
|
|
22164
22167
|
renderNotice: ({ workflow, inputs }) => {
|
|
22165
|
-
if (workflow.id !==
|
|
22166
|
-
const name = String(inputs.name ?? "").trim() ||
|
|
22168
|
+
if (workflow.id !== chunkJ4CXF4A7_cjs.ANNOTATE_ID) return null;
|
|
22169
|
+
const name = String(inputs.name ?? "").trim() || chunkJ4CXF4A7_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
22167
22170
|
const existing = name ? tags.find((t) => t.name.toLowerCase() === name.toLowerCase()) : void 0;
|
|
22168
22171
|
if (!existing) return null;
|
|
22169
22172
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -22192,7 +22195,7 @@ var TILE_TEST_IDS = {
|
|
|
22192
22195
|
annotate: "workspace-dashboard-quick-action-annotate"
|
|
22193
22196
|
};
|
|
22194
22197
|
function DashboardStart({ addMenu, onCreateNew }) {
|
|
22195
|
-
const { dashboard: workflows } =
|
|
22198
|
+
const { dashboard: workflows } = chunkXM4KRGCK_cjs.useWorkflowDefinitions();
|
|
22196
22199
|
const { isMember, role } = react.useCurrentWorkspace();
|
|
22197
22200
|
const canWrite = isMember && role !== "guest";
|
|
22198
22201
|
const [activeId, setActiveId] = react$1.useState(null);
|
|
@@ -22218,7 +22221,7 @@ function DashboardStart({ addMenu, onCreateNew }) {
|
|
|
22218
22221
|
}
|
|
22219
22222
|
] : void 0,
|
|
22220
22223
|
tileTestId: (workflow) => TILE_TEST_IDS[workflow.id],
|
|
22221
|
-
disabledReason: (workflow) => !canWrite && workflow.id ===
|
|
22224
|
+
disabledReason: (workflow) => !canWrite && workflow.id === chunkJ4CXF4A7_cjs.ANNOTATE_ID ? "Only workspace members can annotate files" : void 0
|
|
22222
22225
|
}
|
|
22223
22226
|
);
|
|
22224
22227
|
}
|
|
@@ -22249,7 +22252,7 @@ function recentConversations(conversations) {
|
|
|
22249
22252
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
22250
22253
|
id: c.external_id,
|
|
22251
22254
|
title: c.title?.trim() || "Untitled thread",
|
|
22252
|
-
subtitle: c.status ? [
|
|
22255
|
+
subtitle: c.status ? [chunkJ4CXF4A7_cjs.STATUS_LABELS[chunkJ4CXF4A7_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
|
|
22253
22256
|
time: timeAndDate(c.updated_at)
|
|
22254
22257
|
}));
|
|
22255
22258
|
}
|
|
@@ -22625,7 +22628,7 @@ function parseTypedSkill(draft) {
|
|
|
22625
22628
|
return m ? { slug: m[1].toLowerCase(), text: (m[2] ?? "").trim() } : null;
|
|
22626
22629
|
}
|
|
22627
22630
|
function useSlashSkillWorkflows({ landing }) {
|
|
22628
|
-
const { skills, skillsEnabled } =
|
|
22631
|
+
const { skills, skillsEnabled } = chunkXM4KRGCK_cjs.useWorkflowDefinitions();
|
|
22629
22632
|
const { commands } = react.useBuiltinCommands();
|
|
22630
22633
|
const [active, setActive] = react$1.useState(null);
|
|
22631
22634
|
const open = (workflow, text2) => {
|
|
@@ -22684,7 +22687,7 @@ function ConnectedAskField({
|
|
|
22684
22687
|
filteredItems,
|
|
22685
22688
|
isOpen: isSlashMenuOpen,
|
|
22686
22689
|
canBrowseSkills
|
|
22687
|
-
} = chunkSDXK2COQ_cjs.useSlashItems(text2,
|
|
22690
|
+
} = chunkSDXK2COQ_cjs.useSlashItems(text2, chunkJ4CXF4A7_cjs.BUILTIN_SKILLS);
|
|
22688
22691
|
const slashWorkflows = useSlashSkillWorkflows({ landing: "chat" });
|
|
22689
22692
|
const insertSlashItem = (item) => {
|
|
22690
22693
|
if (slashWorkflows.openFor(item)) {
|
|
@@ -26274,7 +26277,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
26274
26277
|
}
|
|
26275
26278
|
})();
|
|
26276
26279
|
}, [authenticated, claimId, key]);
|
|
26277
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26280
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
26278
26281
|
return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
|
|
26279
26282
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
26280
26283
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -27665,7 +27668,7 @@ function EventEditorDialog({
|
|
|
27665
27668
|
const { notify: notify17, runtimeConfig } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
27666
27669
|
const attachmentDocuments = documents.map((document2) => ({
|
|
27667
27670
|
doc_id: document2.external_id,
|
|
27668
|
-
title:
|
|
27671
|
+
title: chunkECCV4YOL_cjs.toWorkflowFieldDocument(document2).title,
|
|
27669
27672
|
url: chunkLJJJ6CYH_cjs.buildDeepLinkUrl(
|
|
27670
27673
|
{ workspaceId: workspaceId ?? void 0, documentId: document2.external_id },
|
|
27671
27674
|
runtimeConfig.deploymentDomain
|
|
@@ -32271,7 +32274,7 @@ function useBatchCompleteToasts() {
|
|
|
32271
32274
|
}
|
|
32272
32275
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
32273
32276
|
} else if (message.batch_type === "entity_extract") {
|
|
32274
|
-
say(`${
|
|
32277
|
+
say(`${chunkCCALU47C_cjs.entitiesPhrase()} extracted from ${chunkCCALU47C_cjs.documentCount(docIds.length)}`, "success", {
|
|
32275
32278
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
32276
32279
|
});
|
|
32277
32280
|
} else if (message.batch_type === "upload") {
|
|
@@ -33074,15 +33077,16 @@ function useFilesPageSession(documents, workspaceId) {
|
|
|
33074
33077
|
}
|
|
33075
33078
|
|
|
33076
33079
|
// src/connection/viewer/documentPlace.ts
|
|
33077
|
-
function showDocumentPlace(session, { documentId, passageId, page }) {
|
|
33080
|
+
function showDocumentPlace(session, { documentId, passageId, page, tab }) {
|
|
33078
33081
|
session.setViewingDocument({ id: documentId, page: page ?? 1, passageId: passageId ?? null });
|
|
33079
|
-
session.setDocumentViewer({ tab: passageId || page ? "html" : "pdf" });
|
|
33082
|
+
session.setDocumentViewer({ tab: tab !== "pdf" && (passageId || page) ? "html" : "pdf" });
|
|
33080
33083
|
}
|
|
33081
33084
|
function documentPlaceKey(place) {
|
|
33082
33085
|
if (!place?.documentId) return null;
|
|
33083
|
-
return `${place.documentId}|${place.passageId ?? ""}|${place.page ?? ""}`;
|
|
33086
|
+
return `${place.documentId}|${place.passageId ?? ""}|${place.page ?? ""}|${place.tab ?? ""}`;
|
|
33084
33087
|
}
|
|
33085
33088
|
function dialogTabForPlace(place, tabs) {
|
|
33089
|
+
if (place.tab === "pdf" && tabs.includes("document")) return "document";
|
|
33086
33090
|
if (place.passageId && tabs.includes("review")) return "review";
|
|
33087
33091
|
if (place.page && !place.passageId && tabs.includes("document")) return "document";
|
|
33088
33092
|
return tabs[0];
|
|
@@ -33093,13 +33097,13 @@ var TABLET_TABLE_BELOW = 860;
|
|
|
33093
33097
|
var TABLET_VIEWPORT_BELOW = 1100;
|
|
33094
33098
|
var NO_CONVERSATION_DOCUMENTS2 = [];
|
|
33095
33099
|
var DocumentReviewCard = react$1.lazy(
|
|
33096
|
-
() => import('../DocumentReviewCard-
|
|
33100
|
+
() => import('../DocumentReviewCard-E3HB3K2G.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
33097
33101
|
);
|
|
33098
33102
|
var FilesViewerDialog = react$1.lazy(
|
|
33099
|
-
() => import('../FilesViewerDialog-
|
|
33103
|
+
() => import('../FilesViewerDialog-3KWTQARB.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
33100
33104
|
);
|
|
33101
33105
|
function defaultReviewCard(props) {
|
|
33102
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
33103
33107
|
}
|
|
33104
33108
|
function ConnectedFilesPage({
|
|
33105
33109
|
isModal = false,
|
|
@@ -33108,6 +33112,7 @@ function ConnectedFilesPage({
|
|
|
33108
33112
|
documentId: linkedDocumentId,
|
|
33109
33113
|
passageId: linkedPassageId,
|
|
33110
33114
|
page: linkedPage,
|
|
33115
|
+
documentTab: linkedTab,
|
|
33111
33116
|
onDocumentChange,
|
|
33112
33117
|
viewer,
|
|
33113
33118
|
onUpload: hostUpload,
|
|
@@ -33141,7 +33146,7 @@ function ConnectedFilesPage({
|
|
|
33141
33146
|
const deleteDocuments = react.useDeleteDocuments();
|
|
33142
33147
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
33143
33148
|
const { workspaceId, userId, live } = chunkWV65MJ43_cjs.useConnectedWorkspace();
|
|
33144
|
-
const { role, members } =
|
|
33149
|
+
const { role, members } = chunkECCV4YOL_cjs.useConnectedWorkspaceRole();
|
|
33145
33150
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
33146
33151
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
33147
33152
|
const workspaceName = workspace?.name;
|
|
@@ -33195,6 +33200,8 @@ function ConnectedFilesPage({
|
|
|
33195
33200
|
(fromLink) => {
|
|
33196
33201
|
setDialog(null);
|
|
33197
33202
|
shownPlaceRef.current = null;
|
|
33203
|
+
if (session.getState().documentViewer.compareId)
|
|
33204
|
+
session.setDocumentViewer({ compareId: null });
|
|
33198
33205
|
if (chunkHEM27NA3_cjs.filesViewMode(chunkHEM27NA3_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
|
|
33199
33206
|
session.setViewingDocument(null);
|
|
33200
33207
|
if (!fromLink) latest.current.onDocumentChange?.(null);
|
|
@@ -33225,8 +33232,25 @@ function ConnectedFilesPage({
|
|
|
33225
33232
|
shownPlaceRef.current = null;
|
|
33226
33233
|
}
|
|
33227
33234
|
}, [ownsViewer, dialog, viewingDocumentRef]);
|
|
33235
|
+
const viewingDraft = react.useArbiSessionState(
|
|
33236
|
+
(s) => !!s.viewingDocument && s.viewingDocument.id in s.draftDocuments
|
|
33237
|
+
);
|
|
33238
|
+
const compareId = react.useArbiSessionState((s) => s.documentViewer.compareId ?? null);
|
|
33239
|
+
const wholeViewerKey = !ownsViewer || !viewingDocumentRef ? null : viewingDraft ? `draft|${viewingDocumentRef}` : compareId ? `compare|${viewingDocumentRef}|${compareId}` : null;
|
|
33240
|
+
const wholeViewerKeyRef = react$1.useRef(null);
|
|
33241
|
+
react$1.useEffect(() => {
|
|
33242
|
+
const previous = wholeViewerKeyRef.current;
|
|
33243
|
+
wholeViewerKeyRef.current = wholeViewerKey;
|
|
33244
|
+
if (wholeViewerKey && wholeViewerKey !== previous)
|
|
33245
|
+
setDialog((open) => ({ tab: "document", seq: (open?.seq ?? 0) + 1 }));
|
|
33246
|
+
}, [wholeViewerKey]);
|
|
33228
33247
|
const linkedPlaceKey = documentPlaceKey(
|
|
33229
|
-
linkedDocumentId ? {
|
|
33248
|
+
linkedDocumentId ? {
|
|
33249
|
+
documentId: linkedDocumentId,
|
|
33250
|
+
passageId: linkedPassageId,
|
|
33251
|
+
page: linkedPage,
|
|
33252
|
+
tab: linkedTab
|
|
33253
|
+
} : null
|
|
33230
33254
|
);
|
|
33231
33255
|
const appliedLinkRef = react$1.useRef(null);
|
|
33232
33256
|
react$1.useEffect(() => {
|
|
@@ -33234,11 +33258,17 @@ function ConnectedFilesPage({
|
|
|
33234
33258
|
if (linkedPlaceKey === previous) return;
|
|
33235
33259
|
appliedLinkRef.current = linkedPlaceKey;
|
|
33236
33260
|
if (linkedDocumentId) {
|
|
33237
|
-
const place = {
|
|
33261
|
+
const place = {
|
|
33262
|
+
documentId: linkedDocumentId,
|
|
33263
|
+
passageId: linkedPassageId,
|
|
33264
|
+
page: linkedPage,
|
|
33265
|
+
tab: linkedTab
|
|
33266
|
+
};
|
|
33238
33267
|
if (!ownsViewer)
|
|
33239
33268
|
openDocument(linkedDocumentId, {
|
|
33240
33269
|
...linkedPassageId && { passageId: linkedPassageId },
|
|
33241
|
-
...linkedPage && { page: linkedPage }
|
|
33270
|
+
...linkedPage && { page: linkedPage },
|
|
33271
|
+
...linkedTab && { tab: linkedTab }
|
|
33242
33272
|
});
|
|
33243
33273
|
else if (linkedPlaceKey !== shownPlaceRef.current) showInDialog(place, true);
|
|
33244
33274
|
} else if (previous && ownsViewer && shownPlaceRef.current) closeDialog2(true);
|
|
@@ -33634,7 +33664,7 @@ function ConnectedFilesPage({
|
|
|
33634
33664
|
viewMode === "grid" ? (
|
|
33635
33665
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
33636
33666
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33637
|
-
|
|
33667
|
+
chunkCCALU47C_cjs.GridRowNavigator,
|
|
33638
33668
|
{
|
|
33639
33669
|
gridApi,
|
|
33640
33670
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -33937,7 +33967,7 @@ function ProcessingSection({
|
|
|
33937
33967
|
tasks,
|
|
33938
33968
|
onDelete
|
|
33939
33969
|
}) {
|
|
33940
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunk33MKOWSA_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33970
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk33MKOWSA_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
33941
33971
|
}
|
|
33942
33972
|
function ConnectedDocumentProcessingPanel({
|
|
33943
33973
|
workspaceId,
|
|
@@ -37059,9 +37089,9 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
37059
37089
|
return { ...fromContext, ...fromScope, ...request.inputs };
|
|
37060
37090
|
}
|
|
37061
37091
|
function useWorkflowLaunch() {
|
|
37062
|
-
const { skills } =
|
|
37092
|
+
const { skills } = chunkXM4KRGCK_cjs.useWorkflowDefinitions();
|
|
37063
37093
|
const launch = react$1.useCallback(
|
|
37064
|
-
(workflowId, options2 = {}) =>
|
|
37094
|
+
(workflowId, options2 = {}) => chunkJ4CXF4A7_cjs.openWorkflowLaunch({ workflowId, ...options2 }),
|
|
37065
37095
|
[]
|
|
37066
37096
|
);
|
|
37067
37097
|
const itemsFor = react$1.useCallback(
|
|
@@ -37090,9 +37120,9 @@ function useWorkflowLaunch() {
|
|
|
37090
37120
|
return { launch, itemsFor, scopeItemsFor };
|
|
37091
37121
|
}
|
|
37092
37122
|
function Inner() {
|
|
37093
|
-
const request =
|
|
37094
|
-
const close =
|
|
37095
|
-
const { skills } =
|
|
37123
|
+
const request = chunkJ4CXF4A7_cjs.useWorkflowLaunchRequest();
|
|
37124
|
+
const close = chunkJ4CXF4A7_cjs.closeWorkflowLaunch;
|
|
37125
|
+
const { skills } = chunkXM4KRGCK_cjs.useWorkflowDefinitions();
|
|
37096
37126
|
const run = useLaunchWorkflow({ landing: request?.landing });
|
|
37097
37127
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
37098
37128
|
const inputs = react$1.useMemo(
|
|
@@ -37129,7 +37159,7 @@ function Inner() {
|
|
|
37129
37159
|
);
|
|
37130
37160
|
}
|
|
37131
37161
|
function WorkflowLaunchHost() {
|
|
37132
|
-
return
|
|
37162
|
+
return chunkJ4CXF4A7_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
37133
37163
|
}
|
|
37134
37164
|
function isNeedsConfirmationDetail(detail) {
|
|
37135
37165
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -37577,7 +37607,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
37577
37607
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
37578
37608
|
};
|
|
37579
37609
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37580
|
-
|
|
37610
|
+
chunkJ4CXF4A7_cjs.WorkflowRunStatus,
|
|
37581
37611
|
{
|
|
37582
37612
|
steps,
|
|
37583
37613
|
states,
|
|
@@ -37611,7 +37641,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
37611
37641
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
37612
37642
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
37613
37643
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37614
|
-
|
|
37644
|
+
chunkJ4CXF4A7_cjs.ThreadStatusLine,
|
|
37615
37645
|
{
|
|
37616
37646
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
37617
37647
|
className: "h-full",
|
|
@@ -37940,7 +37970,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
37940
37970
|
var START_VISIBLE = 8;
|
|
37941
37971
|
var START_SEARCH_ABOVE = 8;
|
|
37942
37972
|
function ConnectedConversationStart() {
|
|
37943
|
-
const { start } =
|
|
37973
|
+
const { start } = chunkXM4KRGCK_cjs.useWorkflowDefinitions();
|
|
37944
37974
|
const { openSkillsBrowser } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
|
|
37945
37975
|
const [query, setQuery] = react$1.useState("");
|
|
37946
37976
|
const q = query.trim().toLowerCase();
|
|
@@ -37955,7 +37985,7 @@ function ConnectedConversationStart() {
|
|
|
37955
37985
|
const browse = openSkillsBrowser ? [
|
|
37956
37986
|
{
|
|
37957
37987
|
id: "browse-all",
|
|
37958
|
-
iconNode:
|
|
37988
|
+
iconNode: chunkJ4CXF4A7_cjs.renderWorkflowIcon("library"),
|
|
37959
37989
|
title: "Browse all",
|
|
37960
37990
|
description: "See every skill, make a copy, add your own",
|
|
37961
37991
|
onSelect: () => openSkillsBrowser(),
|
|
@@ -38061,7 +38091,7 @@ function AgentBarShell({
|
|
|
38061
38091
|
}, [isStepsExpanded, steps]);
|
|
38062
38092
|
const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
38063
38093
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38064
|
-
|
|
38094
|
+
chunkJ4CXF4A7_cjs.AgentBar,
|
|
38065
38095
|
{
|
|
38066
38096
|
className,
|
|
38067
38097
|
testId,
|
|
@@ -38134,7 +38164,7 @@ function AgentControlBar({
|
|
|
38134
38164
|
}
|
|
38135
38165
|
);
|
|
38136
38166
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
38137
|
-
|
|
38167
|
+
chunkJ4CXF4A7_cjs.AgentBarStatus,
|
|
38138
38168
|
{
|
|
38139
38169
|
state: showState ? controlState : void 0,
|
|
38140
38170
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -38176,7 +38206,7 @@ function AgentControlBar({
|
|
|
38176
38206
|
];
|
|
38177
38207
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38178
38208
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38179
|
-
|
|
38209
|
+
chunkJ4CXF4A7_cjs.AgentBarIconButton,
|
|
38180
38210
|
{
|
|
38181
38211
|
onClick: onStop,
|
|
38182
38212
|
title: "Stop",
|
|
@@ -38185,22 +38215,22 @@ function AgentControlBar({
|
|
|
38185
38215
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
38186
38216
|
}
|
|
38187
38217
|
),
|
|
38188
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38218
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.AgentBarMenu, { items: menuItems })
|
|
38189
38219
|
] });
|
|
38190
38220
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
38191
38221
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
38192
38222
|
);
|
|
38193
38223
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
38194
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
38224
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.AgentBarNotes, { children: [
|
|
38195
38225
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38196
|
-
|
|
38226
|
+
chunkJ4CXF4A7_cjs.AgentBarQueuedNote,
|
|
38197
38227
|
{
|
|
38198
38228
|
text: message.content ?? "",
|
|
38199
38229
|
isAcknowledged: message.acknowledged
|
|
38200
38230
|
},
|
|
38201
38231
|
index
|
|
38202
38232
|
)),
|
|
38203
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38233
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
38204
38234
|
] }) : null;
|
|
38205
38235
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38206
38236
|
AgentBarShell,
|
|
@@ -39135,7 +39165,7 @@ function ConversationThread({
|
|
|
39135
39165
|
}, [isGenerating]);
|
|
39136
39166
|
const slashWorkflows = useSlashSkillWorkflows({ landing: "current-chat" });
|
|
39137
39167
|
const composerSkills = react$1.useMemo(
|
|
39138
|
-
() => ({ builtin:
|
|
39168
|
+
() => ({ builtin: chunkJ4CXF4A7_cjs.BUILTIN_SKILLS, openFor: slashWorkflows.openFor }),
|
|
39139
39169
|
[slashWorkflows.openFor]
|
|
39140
39170
|
);
|
|
39141
39171
|
const browseSkills = react$1.useMemo(
|
|
@@ -39210,7 +39240,7 @@ function ConversationThread({
|
|
|
39210
39240
|
/* @__PURE__ */ jsxRuntime.jsx(chunk4ZM3J3SL_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
39211
39241
|
/* @__PURE__ */ jsxRuntime.jsx(chunk4ZM3J3SL_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
39212
39242
|
] })
|
|
39213
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
39243
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkSDXK2COQ_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
39214
39244
|
ConnectedConversationEmpty,
|
|
39215
39245
|
{
|
|
39216
39246
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -39621,7 +39651,7 @@ function ConnectedThreadsPage({
|
|
|
39621
39651
|
};
|
|
39622
39652
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
39623
39653
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39624
|
-
|
|
39654
|
+
chunkJ4CXF4A7_cjs.ConversationListView,
|
|
39625
39655
|
{
|
|
39626
39656
|
showHeader,
|
|
39627
39657
|
conversations: tasks,
|
|
@@ -39640,7 +39670,7 @@ function ConnectedThreadsPage({
|
|
|
39640
39670
|
renderLabels: threadLabels.renderLabels,
|
|
39641
39671
|
labelText: threadLabels.labelText,
|
|
39642
39672
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39643
|
-
|
|
39673
|
+
chunkJ4CXF4A7_cjs.ConversationTurnSpeaker,
|
|
39644
39674
|
{
|
|
39645
39675
|
variant: "icon",
|
|
39646
39676
|
role: row2.last_message_role,
|
|
@@ -40522,7 +40552,7 @@ function ConnectedConversationPage({
|
|
|
40522
40552
|
);
|
|
40523
40553
|
const { data: workspaceTags = [] } = react.useTags();
|
|
40524
40554
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
40525
|
-
const historyCount =
|
|
40555
|
+
const historyCount = chunkJ4CXF4A7_cjs.filterConversationRows(
|
|
40526
40556
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
40527
40557
|
threadFilter,
|
|
40528
40558
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -40581,7 +40611,7 @@ function ConnectedConversationPage({
|
|
|
40581
40611
|
] })
|
|
40582
40612
|
}
|
|
40583
40613
|
),
|
|
40584
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40614
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkXM4KRGCK_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
40585
40615
|
] }),
|
|
40586
40616
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40587
40617
|
ConversationThread,
|
|
@@ -40790,7 +40820,7 @@ function SsoResendVerificationButton({
|
|
|
40790
40820
|
onClick: async () => handleResendEmailVerification(),
|
|
40791
40821
|
disabled: loading || disabled,
|
|
40792
40822
|
"aria-label": "Resend verification email",
|
|
40793
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40823
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkCCALU47C_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
40794
40824
|
"Didn't get a verification email? ",
|
|
40795
40825
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
40796
40826
|
] })
|
|
@@ -41481,27 +41511,27 @@ function ConnectedOAuthConsentPage({
|
|
|
41481
41511
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
41482
41512
|
}
|
|
41483
41513
|
if (error && !params) {
|
|
41484
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41514
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
41485
41515
|
}
|
|
41486
41516
|
if (!params) {
|
|
41487
41517
|
return null;
|
|
41488
41518
|
}
|
|
41489
41519
|
if (clientInfo?.isLocalAgentFlow) {
|
|
41490
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41520
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
|
|
41491
41521
|
}
|
|
41492
41522
|
if (!isAuthenticated2) {
|
|
41493
41523
|
return null;
|
|
41494
41524
|
}
|
|
41495
41525
|
if (callbackUrl) {
|
|
41496
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41497
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
41526
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentCard, { size: "md", children: [
|
|
41527
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
41498
41528
|
"A new tab has opened to complete the connection. If it succeeded, you can close this page. If you see a connection error there, paste the URL below into Claude Cowork \u2014",
|
|
41499
41529
|
" ",
|
|
41500
41530
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
41501
41531
|
] }),
|
|
41502
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
41503
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41504
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
41532
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
41533
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
41534
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentText, { variant: "hint", children: [
|
|
41505
41535
|
"In Claude Code, paste the URL at the prompt that says",
|
|
41506
41536
|
" ",
|
|
41507
41537
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -41510,17 +41540,17 @@ function ConnectedOAuthConsentPage({
|
|
|
41510
41540
|
] })
|
|
41511
41541
|
] }) });
|
|
41512
41542
|
}
|
|
41513
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41514
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
41515
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41543
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentCard, { children: [
|
|
41544
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4CXF4A7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
41545
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
41516
41546
|
" is requesting access to your ",
|
|
41517
41547
|
appName,
|
|
41518
41548
|
" workspace."
|
|
41519
41549
|
] }),
|
|
41520
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41521
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41522
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41523
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41550
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
41551
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
41552
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
41553
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJ4CXF4A7_cjs.ConsentFootnote, { children: footnote })
|
|
41524
41554
|
] }) });
|
|
41525
41555
|
}
|
|
41526
41556
|
function ConnectedSharedFilesPage({
|
|
@@ -41935,7 +41965,7 @@ function ConnectedTipBar({
|
|
|
41935
41965
|
workspaceOpen,
|
|
41936
41966
|
...state
|
|
41937
41967
|
};
|
|
41938
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
41968
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkCCALU47C_cjs.useTipsPlacement({
|
|
41939
41969
|
registry,
|
|
41940
41970
|
context,
|
|
41941
41971
|
state: situation,
|
|
@@ -42347,95 +42377,95 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
42347
42377
|
});
|
|
42348
42378
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
42349
42379
|
enumerable: true,
|
|
42350
|
-
get: function () { return
|
|
42380
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedTaskActivityDialog; }
|
|
42351
42381
|
});
|
|
42352
42382
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
42353
42383
|
enumerable: true,
|
|
42354
|
-
get: function () { return
|
|
42384
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedTaskComposer; }
|
|
42355
42385
|
});
|
|
42356
42386
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
42357
42387
|
enumerable: true,
|
|
42358
|
-
get: function () { return
|
|
42388
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedThreadTaskBar; }
|
|
42359
42389
|
});
|
|
42360
42390
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
42361
42391
|
enumerable: true,
|
|
42362
|
-
get: function () { return
|
|
42392
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedWorkflowHistory; }
|
|
42363
42393
|
});
|
|
42364
42394
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
42365
42395
|
enumerable: true,
|
|
42366
|
-
get: function () { return
|
|
42396
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedWorkflowRunPage; }
|
|
42367
42397
|
});
|
|
42368
42398
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
42369
42399
|
enumerable: true,
|
|
42370
|
-
get: function () { return
|
|
42400
|
+
get: function () { return chunkXM4KRGCK_cjs.ConnectedWorkflowRunner; }
|
|
42371
42401
|
});
|
|
42372
42402
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
42373
42403
|
enumerable: true,
|
|
42374
|
-
get: function () { return
|
|
42404
|
+
get: function () { return chunkXM4KRGCK_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
42375
42405
|
});
|
|
42376
42406
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
42377
42407
|
enumerable: true,
|
|
42378
|
-
get: function () { return
|
|
42408
|
+
get: function () { return chunkXM4KRGCK_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
42379
42409
|
});
|
|
42380
42410
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
42381
42411
|
enumerable: true,
|
|
42382
|
-
get: function () { return
|
|
42412
|
+
get: function () { return chunkXM4KRGCK_cjs.WorkflowRunThread; }
|
|
42383
42413
|
});
|
|
42384
42414
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
42385
42415
|
enumerable: true,
|
|
42386
|
-
get: function () { return
|
|
42416
|
+
get: function () { return chunkXM4KRGCK_cjs.WorkflowRunWorkspaceChangedError; }
|
|
42387
42417
|
});
|
|
42388
42418
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
42389
42419
|
enumerable: true,
|
|
42390
|
-
get: function () { return
|
|
42420
|
+
get: function () { return chunkXM4KRGCK_cjs.buildProjectSummaries; }
|
|
42391
42421
|
});
|
|
42392
42422
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
42393
42423
|
enumerable: true,
|
|
42394
|
-
get: function () { return
|
|
42424
|
+
get: function () { return chunkXM4KRGCK_cjs.primaryProjectWorkspace; }
|
|
42395
42425
|
});
|
|
42396
42426
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
42397
42427
|
enumerable: true,
|
|
42398
|
-
get: function () { return
|
|
42428
|
+
get: function () { return chunkXM4KRGCK_cjs.useEnsureRequiredLabels; }
|
|
42399
42429
|
});
|
|
42400
42430
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
42401
42431
|
enumerable: true,
|
|
42402
|
-
get: function () { return
|
|
42432
|
+
get: function () { return chunkXM4KRGCK_cjs.useProjectSummaries; }
|
|
42403
42433
|
});
|
|
42404
42434
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
42405
42435
|
enumerable: true,
|
|
42406
|
-
get: function () { return
|
|
42436
|
+
get: function () { return chunkXM4KRGCK_cjs.useProjectSummary; }
|
|
42407
42437
|
});
|
|
42408
42438
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
42409
42439
|
enumerable: true,
|
|
42410
|
-
get: function () { return
|
|
42440
|
+
get: function () { return chunkXM4KRGCK_cjs.useRenderTaskPerson; }
|
|
42411
42441
|
});
|
|
42412
42442
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
42413
42443
|
enumerable: true,
|
|
42414
|
-
get: function () { return
|
|
42444
|
+
get: function () { return chunkXM4KRGCK_cjs.useRequiredLabels; }
|
|
42415
42445
|
});
|
|
42416
42446
|
Object.defineProperty(exports, "useSkillsEnabled", {
|
|
42417
42447
|
enumerable: true,
|
|
42418
|
-
get: function () { return
|
|
42448
|
+
get: function () { return chunkXM4KRGCK_cjs.useSkillsEnabled; }
|
|
42419
42449
|
});
|
|
42420
42450
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
42421
42451
|
enumerable: true,
|
|
42422
|
-
get: function () { return
|
|
42452
|
+
get: function () { return chunkXM4KRGCK_cjs.useTaskPeople; }
|
|
42423
42453
|
});
|
|
42424
42454
|
Object.defineProperty(exports, "useWorkflowDefinitions", {
|
|
42425
42455
|
enumerable: true,
|
|
42426
|
-
get: function () { return
|
|
42456
|
+
get: function () { return chunkXM4KRGCK_cjs.useWorkflowDefinitions; }
|
|
42427
42457
|
});
|
|
42428
42458
|
Object.defineProperty(exports, "useWorkflowTasks", {
|
|
42429
42459
|
enumerable: true,
|
|
42430
|
-
get: function () { return
|
|
42460
|
+
get: function () { return chunkXM4KRGCK_cjs.useWorkflowTasks; }
|
|
42431
42461
|
});
|
|
42432
42462
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
42433
42463
|
enumerable: true,
|
|
42434
|
-
get: function () { return
|
|
42464
|
+
get: function () { return chunkXM4KRGCK_cjs.useWorkflowsPageState; }
|
|
42435
42465
|
});
|
|
42436
42466
|
Object.defineProperty(exports, "workflowRunView", {
|
|
42437
42467
|
enumerable: true,
|
|
42438
|
-
get: function () { return
|
|
42468
|
+
get: function () { return chunkXM4KRGCK_cjs.workflowRunView; }
|
|
42439
42469
|
});
|
|
42440
42470
|
Object.defineProperty(exports, "AgentSteps", {
|
|
42441
42471
|
enumerable: true,
|
|
@@ -42643,39 +42673,39 @@ Object.defineProperty(exports, "SELECTED_WORKSPACE_KEY", {
|
|
|
42643
42673
|
});
|
|
42644
42674
|
Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
|
|
42645
42675
|
enumerable: true,
|
|
42646
|
-
get: function () { return
|
|
42676
|
+
get: function () { return chunkECCV4YOL_cjs.ConnectedWorkflowDocumentsField; }
|
|
42647
42677
|
});
|
|
42648
42678
|
Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
|
|
42649
42679
|
enumerable: true,
|
|
42650
|
-
get: function () { return
|
|
42680
|
+
get: function () { return chunkECCV4YOL_cjs.ConnectedWorkflowLauncher; }
|
|
42651
42681
|
});
|
|
42652
42682
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
42653
42683
|
enumerable: true,
|
|
42654
|
-
get: function () { return
|
|
42684
|
+
get: function () { return chunkECCV4YOL_cjs.ConnectedWorkflowsTable; }
|
|
42655
42685
|
});
|
|
42656
42686
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
42657
42687
|
enumerable: true,
|
|
42658
|
-
get: function () { return
|
|
42688
|
+
get: function () { return chunkECCV4YOL_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
42659
42689
|
});
|
|
42660
42690
|
Object.defineProperty(exports, "toWorkflowFieldDocument", {
|
|
42661
42691
|
enumerable: true,
|
|
42662
|
-
get: function () { return
|
|
42692
|
+
get: function () { return chunkECCV4YOL_cjs.toWorkflowFieldDocument; }
|
|
42663
42693
|
});
|
|
42664
42694
|
Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
|
|
42665
42695
|
enumerable: true,
|
|
42666
|
-
get: function () { return
|
|
42696
|
+
get: function () { return chunkECCV4YOL_cjs.useConnectedWorkflowScopeSource; }
|
|
42667
42697
|
});
|
|
42668
42698
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
42669
42699
|
enumerable: true,
|
|
42670
|
-
get: function () { return
|
|
42700
|
+
get: function () { return chunkECCV4YOL_cjs.useConnectedWorkspaceRole; }
|
|
42671
42701
|
});
|
|
42672
42702
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
42673
42703
|
enumerable: true,
|
|
42674
|
-
get: function () { return
|
|
42704
|
+
get: function () { return chunkECCV4YOL_cjs.useDocxCommentTarget; }
|
|
42675
42705
|
});
|
|
42676
42706
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
42677
42707
|
enumerable: true,
|
|
42678
|
-
get: function () { return
|
|
42708
|
+
get: function () { return chunkECCV4YOL_cjs.useNativeDocxSupport; }
|
|
42679
42709
|
});
|
|
42680
42710
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
42681
42711
|
enumerable: true,
|