@arbidocs/blocks 0.5.189 → 0.5.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedNativeDocxComparison-3KTHPCMT.cjs → ConnectedNativeDocxComparison-XE5NMZMY.cjs} +6 -6
- package/dist/{ConnectedNativeDocxComparison-3KTHPCMT.cjs.map → ConnectedNativeDocxComparison-XE5NMZMY.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-LUM6WE7F.cjs → ConnectedStreamedWordArtifact-EY3YWYDD.cjs} +6 -6
- package/dist/{ConnectedStreamedWordArtifact-LUM6WE7F.cjs.map → ConnectedStreamedWordArtifact-EY3YWYDD.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-6OCS7XMG.cjs → FilesViewerDialog-VO247UEI.cjs} +6 -6
- package/dist/{FilesViewerDialog-6OCS7XMG.cjs.map → FilesViewerDialog-VO247UEI.cjs.map} +1 -1
- package/dist/agents/index.cjs +171 -171
- package/dist/agents/tasks/WorkflowCatalogueSections.d.ts +3 -1
- package/dist/agents/tasks/WorkflowCatalogueSections.js +24 -5
- package/dist/agents/tasks/WorkflowCatalogueSections.js.map +2 -2
- package/dist/agents/tasks/WorkflowsTable.d.ts +2 -0
- package/dist/agents/tasks/WorkflowsTable.js +2 -1
- package/dist/agents/tasks/WorkflowsTable.js.map +2 -2
- package/dist/{chunk-SFKBQLFV.cjs → chunk-3GWYFQSI.cjs} +7 -7
- package/dist/{chunk-SFKBQLFV.cjs.map → chunk-3GWYFQSI.cjs.map} +1 -1
- package/dist/{chunk-4H5DPHZ2.cjs → chunk-AQYCL2IJ.cjs} +4 -4
- package/dist/{chunk-4H5DPHZ2.cjs.map → chunk-AQYCL2IJ.cjs.map} +1 -1
- package/dist/{chunk-AZP4ABNL.cjs → chunk-GW5LTX66.cjs} +4 -4
- package/dist/{chunk-AZP4ABNL.cjs.map → chunk-GW5LTX66.cjs.map} +1 -1
- package/dist/{chunk-4TCOUQMC.cjs → chunk-HZ35LMO3.cjs} +4 -4
- package/dist/{chunk-4TCOUQMC.cjs.map → chunk-HZ35LMO3.cjs.map} +1 -1
- package/dist/{chunk-2QGTWHPQ.cjs → chunk-JAKLLNLL.cjs} +5 -5
- package/dist/{chunk-2QGTWHPQ.cjs.map → chunk-JAKLLNLL.cjs.map} +1 -1
- package/dist/{chunk-OIYKKUAN.cjs → chunk-LHWFSXM5.cjs} +27 -7
- package/dist/chunk-LHWFSXM5.cjs.map +1 -0
- package/dist/{chunk-PPHXBDJP.cjs → chunk-NAEBNQTO.cjs} +25 -25
- package/dist/{chunk-PPHXBDJP.cjs.map → chunk-NAEBNQTO.cjs.map} +1 -1
- package/dist/{chunk-A4HOEGDI.cjs → chunk-QSVYI72E.cjs} +4 -4
- package/dist/{chunk-A4HOEGDI.cjs.map → chunk-QSVYI72E.cjs.map} +1 -1
- package/dist/{chunk-3YPVXIFF.cjs → chunk-VCCAG4GQ.cjs} +4 -4
- package/dist/{chunk-3YPVXIFF.cjs.map → chunk-VCCAG4GQ.cjs.map} +1 -1
- package/dist/connect/docx.cjs +9 -9
- package/dist/connect/index.cjs +251 -194
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +4 -4
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +1 -1
- package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
- package/dist/connection/projects/ConnectedProjectPage.d.ts +11 -0
- package/dist/connection/projects/ConnectedProjectPage.js +14 -6
- package/dist/connection/projects/ConnectedProjectPage.js.map +2 -2
- package/dist/connection/workflows/ConnectedWorkflowsPage.d.ts +6 -2
- package/dist/connection/workflows/ConnectedWorkflowsPage.js +6 -2
- package/dist/connection/workflows/ConnectedWorkflowsPage.js.map +2 -2
- package/dist/connection/workflows/useWorkflowsPageState.d.ts +1 -0
- package/dist/connection/workflows/useWorkflowsPageState.js.map +1 -1
- package/dist/connection/workspace-settings/ConnectedWorkspaceMembers.d.ts +17 -1
- package/dist/connection/workspace-settings/ConnectedWorkspaceMembers.js +73 -24
- package/dist/connection/workspace-settings/ConnectedWorkspaceMembers.js.map +2 -2
- package/dist/connection/workspace-settings/index.d.ts +1 -1
- package/dist/connection/workspace-settings/index.js.map +2 -2
- package/dist/index.cjs +219 -219
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/WorkflowBuilder.d.ts +8 -1
- package/dist/workflow-canvas/WorkflowBuilder.js +52 -8
- package/dist/workflow-canvas/WorkflowBuilder.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +63 -24
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/chunk-OIYKKUAN.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ var chunkXYN3RP5W_cjs = require('../chunk-XYN3RP5W.cjs');
|
|
|
12
12
|
var chunkHTH3XIFF_cjs = require('../chunk-HTH3XIFF.cjs');
|
|
13
13
|
require('../chunk-DWRUGOTQ.cjs');
|
|
14
14
|
var chunk5RUY5THD_cjs = require('../chunk-5RUY5THD.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkNAEBNQTO_cjs = require('../chunk-NAEBNQTO.cjs');
|
|
16
16
|
var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
|
|
17
17
|
var chunk6OPDKROP_cjs = require('../chunk-6OPDKROP.cjs');
|
|
18
18
|
require('../chunk-KD66CBYO.cjs');
|
|
@@ -49,7 +49,7 @@ var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
|
49
49
|
var chunk72O4YH5M_cjs = require('../chunk-72O4YH5M.cjs');
|
|
50
50
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
51
51
|
require('../chunk-DTMBAFIL.cjs');
|
|
52
|
-
var
|
|
52
|
+
var chunkHZ35LMO3_cjs = require('../chunk-HZ35LMO3.cjs');
|
|
53
53
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
54
54
|
require('../chunk-V3KLUWQQ.cjs');
|
|
55
55
|
require('../chunk-7NJKDJVO.cjs');
|
|
@@ -65,7 +65,7 @@ var chunkGISMY7J7_cjs = require('../chunk-GISMY7J7.cjs');
|
|
|
65
65
|
var chunkV5P5MRSR_cjs = require('../chunk-V5P5MRSR.cjs');
|
|
66
66
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
67
67
|
require('../chunk-LIJB6XOR.cjs');
|
|
68
|
-
var
|
|
68
|
+
var chunkJAKLLNLL_cjs = require('../chunk-JAKLLNLL.cjs');
|
|
69
69
|
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
70
70
|
var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
|
|
71
71
|
var chunkTLIZD6DV_cjs = require('../chunk-TLIZD6DV.cjs');
|
|
@@ -113,7 +113,7 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
|
113
113
|
require('../chunk-OEJQFPWO.cjs');
|
|
114
114
|
var chunkU46OGRCO_cjs = require('../chunk-U46OGRCO.cjs');
|
|
115
115
|
var chunk66IOCKWS_cjs = require('../chunk-66IOCKWS.cjs');
|
|
116
|
-
var
|
|
116
|
+
var chunkAQYCL2IJ_cjs = require('../chunk-AQYCL2IJ.cjs');
|
|
117
117
|
var chunkCYN66TBO_cjs = require('../chunk-CYN66TBO.cjs');
|
|
118
118
|
var chunkBH322H5B_cjs = require('../chunk-BH322H5B.cjs');
|
|
119
119
|
var chunk2K5DLB7B_cjs = require('../chunk-2K5DLB7B.cjs');
|
|
@@ -126,7 +126,7 @@ var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
|
126
126
|
require('../chunk-S237ORM3.cjs');
|
|
127
127
|
require('../chunk-II2OEXHW.cjs');
|
|
128
128
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
129
|
-
require('../chunk-
|
|
129
|
+
require('../chunk-LHWFSXM5.cjs');
|
|
130
130
|
require('../chunk-3YEXZX4H.cjs');
|
|
131
131
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
132
132
|
require('../chunk-5FSULBPE.cjs');
|
|
@@ -280,7 +280,7 @@ function ConnectedWorkspaceActivity({
|
|
|
280
280
|
[feed.data]
|
|
281
281
|
);
|
|
282
282
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
|
-
|
|
283
|
+
chunkJAKLLNLL_cjs.WorkspaceActivityList,
|
|
284
284
|
{
|
|
285
285
|
...listProps,
|
|
286
286
|
items,
|
|
@@ -1339,7 +1339,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1339
1339
|
onChange: (e) => {
|
|
1340
1340
|
const file = e.target.files?.[0];
|
|
1341
1341
|
e.target.value = "";
|
|
1342
|
-
if (file) void add(() =>
|
|
1342
|
+
if (file) void add(() => chunkAQYCL2IJ_cjs.importSkillFile(file));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
@@ -1364,7 +1364,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1364
1364
|
className: "space-y-2",
|
|
1365
1365
|
onSubmit: (e) => {
|
|
1366
1366
|
e.preventDefault();
|
|
1367
|
-
if (url.trim()) void add(() =>
|
|
1367
|
+
if (url.trim()) void add(() => chunkAQYCL2IJ_cjs.importSkillFromUrl(url));
|
|
1368
1368
|
},
|
|
1369
1369
|
children: [
|
|
1370
1370
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1432,9 +1432,9 @@ function ConnectedSkillsLibrary({
|
|
|
1432
1432
|
const [type, setType] = react.useState("all");
|
|
1433
1433
|
const [view, setView] = react.useState("gallery");
|
|
1434
1434
|
const [isBusy, setIsBusy] = react.useState(false);
|
|
1435
|
-
const all = react.useMemo(() =>
|
|
1435
|
+
const all = react.useMemo(() => chunkAQYCL2IJ_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1436
1436
|
const shown = react.useMemo(
|
|
1437
|
-
() =>
|
|
1437
|
+
() => chunkAQYCL2IJ_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1438
1438
|
[all, query, source, type]
|
|
1439
1439
|
);
|
|
1440
1440
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1445,21 +1445,21 @@ function ConnectedSkillsLibrary({
|
|
|
1445
1445
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1446
1446
|
const sourceOptions = [
|
|
1447
1447
|
{ id: "all", label: "All", count: all.length },
|
|
1448
|
-
{ id: "builtin", label:
|
|
1449
|
-
{ id: "mine", label:
|
|
1450
|
-
{ id: "shared", label:
|
|
1448
|
+
{ id: "builtin", label: chunkAQYCL2IJ_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1449
|
+
{ id: "mine", label: chunkAQYCL2IJ_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1450
|
+
{ id: "shared", label: chunkAQYCL2IJ_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1451
1451
|
];
|
|
1452
1452
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1453
1453
|
const typeOptions = [
|
|
1454
1454
|
{ id: "all", label: "Any kind" },
|
|
1455
|
-
...types.map((t) => ({ id: t, label:
|
|
1455
|
+
...types.map((t) => ({ id: t, label: chunkAQYCL2IJ_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1456
1456
|
];
|
|
1457
1457
|
const pick = (slug) => {
|
|
1458
1458
|
setSelected(slug);
|
|
1459
1459
|
setMode("detail");
|
|
1460
1460
|
};
|
|
1461
1461
|
const markdownOf = async (skill) => {
|
|
1462
|
-
if (!skill.docExtId) return
|
|
1462
|
+
if (!skill.docExtId) return chunkAQYCL2IJ_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1463
1463
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1464
1464
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1465
1465
|
return response.text();
|
|
@@ -1523,7 +1523,7 @@ function ConnectedSkillsLibrary({
|
|
|
1523
1523
|
try {
|
|
1524
1524
|
documentTools.downloadBlob(
|
|
1525
1525
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1526
|
-
|
|
1526
|
+
chunkAQYCL2IJ_cjs.SKILL_MAIN_FILENAME
|
|
1527
1527
|
);
|
|
1528
1528
|
} catch (error) {
|
|
1529
1529
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1564,10 +1564,10 @@ function ConnectedSkillsLibrary({
|
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
1566
1566
|
] }),
|
|
1567
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1567
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1568
1568
|
] }),
|
|
1569
1569
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
|
-
|
|
1570
|
+
chunkAQYCL2IJ_cjs.SkillFilterChips,
|
|
1571
1571
|
{
|
|
1572
1572
|
label: "Show",
|
|
1573
1573
|
value: source,
|
|
@@ -1576,7 +1576,7 @@ function ConnectedSkillsLibrary({
|
|
|
1576
1576
|
}
|
|
1577
1577
|
),
|
|
1578
1578
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1579
|
-
|
|
1579
|
+
chunkAQYCL2IJ_cjs.SkillFilterChips,
|
|
1580
1580
|
{
|
|
1581
1581
|
label: "Kind",
|
|
1582
1582
|
value: type,
|
|
@@ -1623,12 +1623,12 @@ function ConnectedSkillsLibrary({
|
|
|
1623
1623
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1624
1624
|
),
|
|
1625
1625
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1626
|
-
|
|
1626
|
+
chunkAQYCL2IJ_cjs.SkillTile,
|
|
1627
1627
|
{
|
|
1628
1628
|
name: skill.title,
|
|
1629
1629
|
testId: `skill-tile-${skill.slug}`,
|
|
1630
1630
|
description: skill.description,
|
|
1631
|
-
sourceLabel: skill.isShared ? `${
|
|
1631
|
+
sourceLabel: skill.isShared ? `${chunkAQYCL2IJ_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkAQYCL2IJ_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1632
1632
|
type: skill.type,
|
|
1633
1633
|
icon,
|
|
1634
1634
|
layout: view,
|
|
@@ -1663,7 +1663,7 @@ function ConnectedSkillsLibrary({
|
|
|
1663
1663
|
}
|
|
1664
1664
|
),
|
|
1665
1665
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
|
-
|
|
1666
|
+
chunkAQYCL2IJ_cjs.SkillGenerateForm,
|
|
1667
1667
|
{
|
|
1668
1668
|
icon,
|
|
1669
1669
|
onGenerate: (desc) => {
|
|
@@ -1690,11 +1690,11 @@ function ConnectedSkillsLibrary({
|
|
|
1690
1690
|
),
|
|
1691
1691
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1692
1692
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1693
|
-
|
|
1693
|
+
chunkAQYCL2IJ_cjs.SkillLibraryDetail,
|
|
1694
1694
|
{
|
|
1695
1695
|
skill: current,
|
|
1696
1696
|
icon,
|
|
1697
|
-
instructions: current.docExtId ? currentText ?
|
|
1697
|
+
instructions: current.docExtId ? currentText ? chunkAQYCL2IJ_cjs.parseSkillFrontmatter(currentText, chunkAQYCL2IJ_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1698
1698
|
isLoading: !!current.docExtId && textLoading,
|
|
1699
1699
|
actions: {
|
|
1700
1700
|
onRun: () => onRun(current.slug),
|
|
@@ -1729,7 +1729,7 @@ function SkillEditor({
|
|
|
1729
1729
|
const [seeded, setSeeded] = react.useState(!isEditing);
|
|
1730
1730
|
const [nameError, setNameError] = react.useState(null);
|
|
1731
1731
|
if (isEditing && !seeded && text2 !== void 0) {
|
|
1732
|
-
const parsed =
|
|
1732
|
+
const parsed = chunkAQYCL2IJ_cjs.parseSkillFrontmatter(text2, chunkAQYCL2IJ_cjs.SKILL_MAIN_FILENAME);
|
|
1733
1733
|
setDescription(parsed.description ?? "");
|
|
1734
1734
|
setBody(parsed.content ?? "");
|
|
1735
1735
|
setSeeded(true);
|
|
@@ -1743,15 +1743,15 @@ function SkillEditor({
|
|
|
1743
1743
|
notify19("Add a short description.", "error");
|
|
1744
1744
|
return;
|
|
1745
1745
|
}
|
|
1746
|
-
const slug =
|
|
1746
|
+
const slug = chunkAQYCL2IJ_cjs.skillSlug(name);
|
|
1747
1747
|
try {
|
|
1748
|
-
await onSave(slug,
|
|
1748
|
+
await onSave(slug, chunkAQYCL2IJ_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1749
1749
|
} catch (err) {
|
|
1750
1750
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
1753
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1754
|
-
|
|
1754
|
+
chunkAQYCL2IJ_cjs.SkillEditForm,
|
|
1755
1755
|
{
|
|
1756
1756
|
name,
|
|
1757
1757
|
onNameChange: setName,
|
|
@@ -1844,7 +1844,7 @@ function ConnectedSkillsBrowser({
|
|
|
1844
1844
|
}
|
|
1845
1845
|
) }),
|
|
1846
1846
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1847
|
-
|
|
1847
|
+
chunkNAEBNQTO_cjs.ConnectedTaskComposer,
|
|
1848
1848
|
{
|
|
1849
1849
|
kind: "workflow",
|
|
1850
1850
|
open: true,
|
|
@@ -1868,9 +1868,9 @@ function ConnectedAgentCreator({
|
|
|
1868
1868
|
agent,
|
|
1869
1869
|
initialName,
|
|
1870
1870
|
onSaved,
|
|
1871
|
-
capabilities =
|
|
1872
|
-
templates =
|
|
1873
|
-
types =
|
|
1871
|
+
capabilities = chunkAQYCL2IJ_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
1872
|
+
templates = chunkAQYCL2IJ_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
1873
|
+
types = chunkAQYCL2IJ_cjs.DEFAULT_AGENT_TYPES,
|
|
1874
1874
|
canRevokeWorkspaces = false,
|
|
1875
1875
|
labels
|
|
1876
1876
|
}) {
|
|
@@ -1922,7 +1922,7 @@ function ConnectedAgentCreator({
|
|
|
1922
1922
|
const initialValues = react.useMemo(
|
|
1923
1923
|
() => ({
|
|
1924
1924
|
name: agent?.given_name ?? initialName ?? "",
|
|
1925
|
-
persona: isEdit ?
|
|
1925
|
+
persona: isEdit ? chunkAQYCL2IJ_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
1926
1926
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
1927
1927
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
1928
1928
|
type: "builtin",
|
|
@@ -1942,7 +1942,7 @@ function ConnectedAgentCreator({
|
|
|
1942
1942
|
try {
|
|
1943
1943
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
1944
1944
|
if (!agentExtId) {
|
|
1945
|
-
if (!
|
|
1945
|
+
if (!chunkAQYCL2IJ_cjs.isValidAgentName(values.name)) {
|
|
1946
1946
|
notify19("Give the agent a name first.", "error");
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
@@ -1978,7 +1978,7 @@ function ConnectedAgentCreator({
|
|
|
1978
1978
|
title: `agent-${name}`,
|
|
1979
1979
|
sections: {
|
|
1980
1980
|
Agents: {
|
|
1981
|
-
PERSONA:
|
|
1981
|
+
PERSONA: chunkAQYCL2IJ_cjs.composePersona(name, values.persona),
|
|
1982
1982
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
1983
1983
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
1984
1984
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2002,7 +2002,7 @@ function ConnectedAgentCreator({
|
|
|
2002
2002
|
};
|
|
2003
2003
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2004
2004
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2005
|
-
|
|
2005
|
+
chunkAQYCL2IJ_cjs.AgentCreator,
|
|
2006
2006
|
{
|
|
2007
2007
|
callAvatars: callAvatarsEnabled ? [
|
|
2008
2008
|
{
|
|
@@ -2035,11 +2035,11 @@ function ConnectedAgentCreator({
|
|
|
2035
2035
|
) : void 0,
|
|
2036
2036
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2037
2037
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2038
|
-
|
|
2038
|
+
chunkAQYCL2IJ_cjs.AgentAvatarField,
|
|
2039
2039
|
{
|
|
2040
2040
|
picture,
|
|
2041
2041
|
isBusy: avatarBusy,
|
|
2042
|
-
canGenerate: isEdit ||
|
|
2042
|
+
canGenerate: isEdit || chunkAQYCL2IJ_cjs.isValidAgentName(values.name),
|
|
2043
2043
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
@@ -2091,7 +2091,7 @@ function ConnectedAgentCreator({
|
|
|
2091
2091
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2092
2092
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2093
2093
|
] }),
|
|
2094
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2094
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2095
2095
|
]
|
|
2096
2096
|
}
|
|
2097
2097
|
) })
|
|
@@ -2489,7 +2489,7 @@ function useMemoryCount(enabled) {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2491
2491
|
const { notify: notify19, confirm, openConversation, openDocument } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
2492
|
-
const people =
|
|
2492
|
+
const people = chunkNAEBNQTO_cjs.useTaskPeople();
|
|
2493
2493
|
const canEditShared = react$1.useCanEditShared();
|
|
2494
2494
|
const isWorkspaceOwner = react$1.useIsWorkspaceOwner();
|
|
2495
2495
|
const { data: workflows = [] } = react$1.useWorkflows({ live: true });
|
|
@@ -2515,7 +2515,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2515
2515
|
}, [documents]);
|
|
2516
2516
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2517
2517
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2518
|
-
|
|
2518
|
+
chunkAQYCL2IJ_cjs.TaskTable,
|
|
2519
2519
|
{
|
|
2520
2520
|
tasks,
|
|
2521
2521
|
isLoading,
|
|
@@ -2545,7 +2545,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
),
|
|
2547
2547
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2548
|
-
|
|
2548
|
+
chunkNAEBNQTO_cjs.ConnectedTaskActivityDialog,
|
|
2549
2549
|
{
|
|
2550
2550
|
conversationId: activityFor.external_id,
|
|
2551
2551
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2584,7 +2584,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2584
2584
|
[workflows, skills, l.skillFiles]
|
|
2585
2585
|
);
|
|
2586
2586
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2587
|
-
const values =
|
|
2587
|
+
const values = chunkAQYCL2IJ_cjs.defaultTaskComposerValues(launchable, {
|
|
2588
2588
|
workflowId: workflow.id,
|
|
2589
2589
|
assignee: "agent",
|
|
2590
2590
|
inputs,
|
|
@@ -2704,7 +2704,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2704
2704
|
children,
|
|
2705
2705
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2706
2706
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2707
|
-
|
|
2707
|
+
chunkNAEBNQTO_cjs.ConnectedTaskComposer,
|
|
2708
2708
|
{
|
|
2709
2709
|
open: true,
|
|
2710
2710
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2727,7 +2727,7 @@ function AgentsGallery() {
|
|
|
2727
2727
|
} = agentOptions;
|
|
2728
2728
|
const { openConversation } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
2729
2729
|
const { user } = react$1.useArbiSession();
|
|
2730
|
-
const tasksByAgent = react.useMemo(() =>
|
|
2730
|
+
const tasksByAgent = react.useMemo(() => chunkAQYCL2IJ_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2731
2731
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2732
2732
|
const { agents } = management;
|
|
2733
2733
|
const cardDetails = (agent) => details.map(
|
|
@@ -2743,7 +2743,7 @@ function AgentsGallery() {
|
|
|
2743
2743
|
) : 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)
|
|
2744
2744
|
);
|
|
2745
2745
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2746
|
-
|
|
2746
|
+
chunkAQYCL2IJ_cjs.AgentGallery,
|
|
2747
2747
|
{
|
|
2748
2748
|
count: agents.length,
|
|
2749
2749
|
onCreate: management.create,
|
|
@@ -2755,7 +2755,7 @@ function AgentsGallery() {
|
|
|
2755
2755
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2756
2756
|
const progress = agentTasks[0] ? chunkBH322H5B_cjs.goalProgress(agentTasks[0]) : null;
|
|
2757
2757
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2758
|
-
|
|
2758
|
+
chunkAQYCL2IJ_cjs.AgentCard,
|
|
2759
2759
|
{
|
|
2760
2760
|
name: displayName(agent),
|
|
2761
2761
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -2863,7 +2863,7 @@ function AgentsSectionBody({ id }) {
|
|
|
2863
2863
|
) });
|
|
2864
2864
|
case "scheduled":
|
|
2865
2865
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2866
|
-
|
|
2866
|
+
chunkHZ35LMO3_cjs.ConnectedWorkflowsTable,
|
|
2867
2867
|
{
|
|
2868
2868
|
filter: "scheduled",
|
|
2869
2869
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3167,7 +3167,7 @@ function ConnectedTagTable({
|
|
|
3167
3167
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3168
3168
|
const snapshot2 = (data) => {
|
|
3169
3169
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3170
|
-
const bytes =
|
|
3170
|
+
const bytes = chunkJAKLLNLL_cjs.tagTableDocx(data, {
|
|
3171
3171
|
title,
|
|
3172
3172
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3173
3173
|
});
|
|
@@ -3176,7 +3176,7 @@ function ConnectedTagTable({
|
|
|
3176
3176
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3177
3177
|
};
|
|
3178
3178
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3179
|
-
|
|
3179
|
+
chunkJAKLLNLL_cjs.TagTable,
|
|
3180
3180
|
{
|
|
3181
3181
|
...props,
|
|
3182
3182
|
table,
|
|
@@ -4301,9 +4301,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
4301
4301
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
4302
4302
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
4303
4303
|
const download = (format) => {
|
|
4304
|
-
const entries =
|
|
4305
|
-
const blob = format === "docx" ? new Blob([
|
|
4306
|
-
documentTools.downloadBlob(blob,
|
|
4304
|
+
const entries = chunkJAKLLNLL_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4305
|
+
const blob = format === "docx" ? new Blob([chunkJAKLLNLL_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkJAKLLNLL_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4306
|
+
documentTools.downloadBlob(blob, chunkJAKLLNLL_cjs.glossaryFileName(title, format));
|
|
4307
4307
|
};
|
|
4308
4308
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
4309
4309
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4833,7 +4833,7 @@ function KindSection({
|
|
|
4833
4833
|
{
|
|
4834
4834
|
testId: `tags-kind-${kind}`,
|
|
4835
4835
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4836
|
-
description:
|
|
4836
|
+
description: chunkJAKLLNLL_cjs.tagKindDescription(kind),
|
|
4837
4837
|
children: [
|
|
4838
4838
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4839
4839
|
"p",
|
|
@@ -4843,9 +4843,9 @@ function KindSection({
|
|
|
4843
4843
|
children: [
|
|
4844
4844
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4845
4845
|
"Extracting ",
|
|
4846
|
-
|
|
4846
|
+
chunkJAKLLNLL_cjs.entitiesPhrase().toLowerCase(),
|
|
4847
4847
|
" from ",
|
|
4848
|
-
|
|
4848
|
+
chunkJAKLLNLL_cjs.documentCount(extractingCount),
|
|
4849
4849
|
"\u2026"
|
|
4850
4850
|
]
|
|
4851
4851
|
}
|
|
@@ -4863,7 +4863,7 @@ function KindSection({
|
|
|
4863
4863
|
onOpenTag: ctx.onOpenTag,
|
|
4864
4864
|
onOpenRow: ctx.onOpenTag,
|
|
4865
4865
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4866
|
-
labels:
|
|
4866
|
+
labels: chunkJAKLLNLL_cjs.tagTableLabels(kind),
|
|
4867
4867
|
testId: `tags-table-${kind}`
|
|
4868
4868
|
}
|
|
4869
4869
|
)
|
|
@@ -4971,15 +4971,15 @@ function TagSection({
|
|
|
4971
4971
|
onOpenTag: ctx.onOpenTag,
|
|
4972
4972
|
onOpenRow: ctx.onOpenTag,
|
|
4973
4973
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4974
|
-
labels:
|
|
4974
|
+
labels: chunkJAKLLNLL_cjs.tagTableLabels(tag.kind),
|
|
4975
4975
|
testId: "tags-rows"
|
|
4976
4976
|
}
|
|
4977
4977
|
),
|
|
4978
4978
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4979
|
-
|
|
4979
|
+
chunkJAKLLNLL_cjs.TagDetail,
|
|
4980
4980
|
{
|
|
4981
4981
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4982
|
-
fieldLabels:
|
|
4982
|
+
fieldLabels: chunkJAKLLNLL_cjs.tagTableLabels(tag.kind),
|
|
4983
4983
|
row: detailRow,
|
|
4984
4984
|
fields: schema.data?.fields ?? [],
|
|
4985
4985
|
isLoading: detail.isLoading,
|
|
@@ -4993,7 +4993,7 @@ function TagSection({
|
|
|
4993
4993
|
throw e;
|
|
4994
4994
|
})
|
|
4995
4995
|
),
|
|
4996
|
-
labels:
|
|
4996
|
+
labels: chunkJAKLLNLL_cjs.tagDetailLabels(),
|
|
4997
4997
|
testId: "tags-detail"
|
|
4998
4998
|
}
|
|
4999
4999
|
)
|
|
@@ -5077,7 +5077,7 @@ function ConnectedTagsPage() {
|
|
|
5077
5077
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5078
5078
|
const uses = browser.tagUseCount(t);
|
|
5079
5079
|
const dbRows = t.dbrow_count ?? 0;
|
|
5080
|
-
const n2 =
|
|
5080
|
+
const n2 = chunkJAKLLNLL_cjs.tagsPageNouns();
|
|
5081
5081
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5082
5082
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5083
5083
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5100,11 +5100,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5100
5100
|
try {
|
|
5101
5101
|
await extract.mutateAsync(docIds);
|
|
5102
5102
|
notify19(
|
|
5103
|
-
`Extracting ${
|
|
5103
|
+
`Extracting ${chunkJAKLLNLL_cjs.entitiesPhrase().toLowerCase()} from ${chunkJAKLLNLL_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5104
5104
|
"info"
|
|
5105
5105
|
);
|
|
5106
5106
|
} catch (error) {
|
|
5107
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
5107
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkJAKLLNLL_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5108
5108
|
throw error;
|
|
5109
5109
|
}
|
|
5110
5110
|
};
|
|
@@ -5118,10 +5118,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5118
5118
|
onOpenTag: openTag,
|
|
5119
5119
|
onOpenTaggedItems
|
|
5120
5120
|
};
|
|
5121
|
-
const n =
|
|
5121
|
+
const n = chunkJAKLLNLL_cjs.tagsPageNouns();
|
|
5122
5122
|
const action = view === "person" || view === "organisation" ? {
|
|
5123
5123
|
label: "Extract",
|
|
5124
|
-
title: `Extract ${
|
|
5124
|
+
title: `Extract ${chunkJAKLLNLL_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5125
5125
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5126
5126
|
run: () => setExtracting(true),
|
|
5127
5127
|
testId: "tags-extract-entities"
|
|
@@ -5290,7 +5290,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5290
5290
|
}
|
|
5291
5291
|
),
|
|
5292
5292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5293
|
-
|
|
5293
|
+
chunkJAKLLNLL_cjs.ExtractEntitiesDialog,
|
|
5294
5294
|
{
|
|
5295
5295
|
open: extracting,
|
|
5296
5296
|
onOpenChange: setExtracting,
|
|
@@ -8279,7 +8279,7 @@ function ConnectedFactsPage({ scope = null, onScopeChange } = {}) {
|
|
|
8279
8279
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
8280
8280
|
navSlotRef: setNavSlot,
|
|
8281
8281
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8282
|
-
|
|
8282
|
+
chunkJAKLLNLL_cjs.GridRowNavigator,
|
|
8283
8283
|
{
|
|
8284
8284
|
gridApi,
|
|
8285
8285
|
selectedId: editingId,
|
|
@@ -13463,6 +13463,31 @@ var memberName = (user) => user.family_name ? `${user.given_name} ${user.family_
|
|
|
13463
13463
|
var ALL_ROLES = ["owner", "collaborator", "guest"].map((value) => ({ value, label: chunkCYN66TBO_cjs.formatRole(value), badgeClass: chunkCYN66TBO_cjs.getRoleBadgeClass(value) }));
|
|
13464
13464
|
var BULK_ROLES = ALL_ROLES.filter((r) => r.value !== "owner");
|
|
13465
13465
|
var ROLE_ORDER = { owner: 0, collaborator: 1, guest: 2 };
|
|
13466
|
+
var PENDING_PREFIX = "pending:";
|
|
13467
|
+
var isPendingRow = (row2) => row2.user.external_id.startsWith(PENDING_PREFIX);
|
|
13468
|
+
var pendingRow = (invitation) => ({
|
|
13469
|
+
user: {
|
|
13470
|
+
external_id: `${PENDING_PREFIX}${invitation.id}`,
|
|
13471
|
+
email: invitation.email,
|
|
13472
|
+
given_name: invitation.email,
|
|
13473
|
+
family_name: ""
|
|
13474
|
+
},
|
|
13475
|
+
role: invitation.expired ? "expired" : "invited",
|
|
13476
|
+
joined_at: invitation.invitedAt ?? "",
|
|
13477
|
+
conversation_count: 0,
|
|
13478
|
+
document_count: 0,
|
|
13479
|
+
files_mb: 0
|
|
13480
|
+
});
|
|
13481
|
+
function PendingBadge({ row: row2 }) {
|
|
13482
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13483
|
+
"span",
|
|
13484
|
+
{
|
|
13485
|
+
className: "inline-flex items-center rounded-md border border-border px-2 py-0.5 text-xs font-medium text-muted-foreground",
|
|
13486
|
+
"data-testid": `workspace-users-pending-${row2.user.email}`,
|
|
13487
|
+
children: row2.role === "expired" ? "Invitation expired" : "Invited"
|
|
13488
|
+
}
|
|
13489
|
+
);
|
|
13490
|
+
}
|
|
13466
13491
|
function roleLock(targetId, selfId, isOwner) {
|
|
13467
13492
|
if (!isOwner) return "Only owners can change roles";
|
|
13468
13493
|
if (targetId === selfId) return "Your role can only be changed by another owner";
|
|
@@ -13483,6 +13508,7 @@ function MemberNameRenderer({
|
|
|
13483
13508
|
selfId
|
|
13484
13509
|
}) {
|
|
13485
13510
|
if (!data) return null;
|
|
13511
|
+
if (isPendingRow(data)) return /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberMutedText, { children: "\u2014" });
|
|
13486
13512
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberNameCell, { children: /* @__PURE__ */ jsxRuntime.jsx(MemberChip, { member: data, selfId }) });
|
|
13487
13513
|
}
|
|
13488
13514
|
function MemberEmailRenderer({ data }) {
|
|
@@ -13496,6 +13522,7 @@ function MemberRoleRenderer({
|
|
|
13496
13522
|
changeRole
|
|
13497
13523
|
}) {
|
|
13498
13524
|
if (!row2) return null;
|
|
13525
|
+
if (isPendingRow(row2)) return /* @__PURE__ */ jsxRuntime.jsx(PendingBadge, { row: row2 });
|
|
13499
13526
|
const lock = roleLock(row2.user.external_id, selfId, isOwner);
|
|
13500
13527
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13501
13528
|
chunkTNVCTYZI_cjs.MemberRoleCell,
|
|
@@ -13511,13 +13538,14 @@ function MemberRoleRenderer({
|
|
|
13511
13538
|
);
|
|
13512
13539
|
}
|
|
13513
13540
|
function MemberJoinedRenderer({ data }) {
|
|
13514
|
-
|
|
13541
|
+
if (!data || !data.joined_at) return null;
|
|
13542
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberMutedText, { className: "cursor-default", children: isPendingRow(data) ? `Invited ${ui.formatFriendlyDate(data.joined_at)}` : ui.formatFriendlyDate(data.joined_at) });
|
|
13515
13543
|
}
|
|
13516
13544
|
function MemberCountRenderer({ data, value }) {
|
|
13517
|
-
return data ? /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberMutedText, { children: value }) : null;
|
|
13545
|
+
return data && !isPendingRow(data) ? /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberMutedText, { children: value }) : null;
|
|
13518
13546
|
}
|
|
13519
13547
|
function MemberStorageRenderer({ data }) {
|
|
13520
|
-
if (!data) return null;
|
|
13548
|
+
if (!data || isPendingRow(data)) return null;
|
|
13521
13549
|
const mb = data.files_mb ?? 0;
|
|
13522
13550
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkTNVCTYZI_cjs.MemberMutedText, { children: [
|
|
13523
13551
|
mb >= 100 ? Math.round(mb).toLocaleString("en-US") : mb.toFixed(1),
|
|
@@ -13532,8 +13560,11 @@ function ConnectedWorkspaceMembers({
|
|
|
13532
13560
|
isLoading = false,
|
|
13533
13561
|
readOnly = false,
|
|
13534
13562
|
gridState,
|
|
13535
|
-
onGridStateChange
|
|
13563
|
+
onGridStateChange,
|
|
13564
|
+
columnSizing = "fill",
|
|
13565
|
+
pendingInvitations
|
|
13536
13566
|
}) {
|
|
13567
|
+
const fitContent = columnSizing === "content";
|
|
13537
13568
|
const { confirm, notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
13538
13569
|
const isOwner = isOwnerRaw && !readOnly;
|
|
13539
13570
|
const [selected, setSelected] = react.useState([]);
|
|
@@ -13564,8 +13595,12 @@ function ConnectedWorkspaceMembers({
|
|
|
13564
13595
|
if (a.user.external_id === selfId) return -1;
|
|
13565
13596
|
if (b.user.external_id === selfId) return 1;
|
|
13566
13597
|
return (ROLE_ORDER[a.role] ?? 3) - (ROLE_ORDER[b.role] ?? 3);
|
|
13567
|
-
}),
|
|
13568
|
-
[members, selfId]
|
|
13598
|
+
}).concat((pendingInvitations ?? []).map(pendingRow)),
|
|
13599
|
+
[members, selfId, pendingInvitations]
|
|
13600
|
+
);
|
|
13601
|
+
const selectMembers = react.useCallback(
|
|
13602
|
+
(picked) => setSelected(picked.filter((row2) => !isPendingRow(row2))),
|
|
13603
|
+
[]
|
|
13569
13604
|
);
|
|
13570
13605
|
const setRolesRef = react.useRef(setRoles);
|
|
13571
13606
|
setRolesRef.current = setRoles;
|
|
@@ -13579,8 +13614,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13579
13614
|
{
|
|
13580
13615
|
colId: "name",
|
|
13581
13616
|
headerName: "Name",
|
|
13582
|
-
flex: 1,
|
|
13583
|
-
minWidth: 150,
|
|
13617
|
+
...fitContent ? { minWidth: 90 } : { flex: 1, minWidth: 150 },
|
|
13584
13618
|
sortable: true,
|
|
13585
13619
|
valueGetter: (p) => p.data ? memberName(p.data.user) : "",
|
|
13586
13620
|
cellRenderer: MemberNameRenderer,
|
|
@@ -13589,8 +13623,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13589
13623
|
{
|
|
13590
13624
|
colId: "email",
|
|
13591
13625
|
headerName: "Email",
|
|
13592
|
-
flex: 1,
|
|
13593
|
-
minWidth: 180,
|
|
13626
|
+
...fitContent ? { minWidth: 90 } : { flex: 1, minWidth: 180 },
|
|
13594
13627
|
sortable: true,
|
|
13595
13628
|
valueGetter: (p) => p.data?.user.email ?? "",
|
|
13596
13629
|
// Plain text, not a mailto: the row's click selects it.
|
|
@@ -13599,8 +13632,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13599
13632
|
{
|
|
13600
13633
|
colId: "role",
|
|
13601
13634
|
headerName: "Role",
|
|
13602
|
-
width: 145,
|
|
13603
|
-
minWidth: 130,
|
|
13635
|
+
...fitContent ? { minWidth: 60 } : { width: 145, minWidth: 130 },
|
|
13604
13636
|
sortable: true,
|
|
13605
13637
|
valueGetter: (p) => p.data?.role ?? "",
|
|
13606
13638
|
cellRenderer: MemberRoleRenderer,
|
|
@@ -13609,8 +13641,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13609
13641
|
{
|
|
13610
13642
|
colId: "joined_at",
|
|
13611
13643
|
headerName: "Joined",
|
|
13612
|
-
width: 145,
|
|
13613
|
-
minWidth: 125,
|
|
13644
|
+
...fitContent ? { minWidth: 60 } : { width: 145, minWidth: 125 },
|
|
13614
13645
|
sortable: true,
|
|
13615
13646
|
valueGetter: (p) => p.data ? new Date(p.data.joined_at).getTime() : "",
|
|
13616
13647
|
cellRenderer: MemberJoinedRenderer
|
|
@@ -13618,8 +13649,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13618
13649
|
{
|
|
13619
13650
|
colId: "conversation_count",
|
|
13620
13651
|
headerName: ui.getEntityLabel("CONVERSATION", "PLURAL"),
|
|
13621
|
-
width: 95,
|
|
13622
|
-
minWidth: 85,
|
|
13652
|
+
...fitContent ? { minWidth: 60 } : { width: 95, minWidth: 85 },
|
|
13623
13653
|
sortable: true,
|
|
13624
13654
|
type: "numericColumn",
|
|
13625
13655
|
valueGetter: (p) => p.data?.conversation_count ?? 0,
|
|
@@ -13628,8 +13658,7 @@ function ConnectedWorkspaceMembers({
|
|
|
13628
13658
|
{
|
|
13629
13659
|
colId: "document_count",
|
|
13630
13660
|
headerName: "Docs",
|
|
13631
|
-
width: 90,
|
|
13632
|
-
minWidth: 80,
|
|
13661
|
+
...fitContent ? { minWidth: 60 } : { width: 90, minWidth: 80 },
|
|
13633
13662
|
sortable: true,
|
|
13634
13663
|
type: "numericColumn",
|
|
13635
13664
|
valueGetter: (p) => p.data?.document_count ?? 0,
|
|
@@ -13638,15 +13667,14 @@ function ConnectedWorkspaceMembers({
|
|
|
13638
13667
|
{
|
|
13639
13668
|
colId: "files_mb",
|
|
13640
13669
|
headerName: "Storage",
|
|
13641
|
-
width: 110,
|
|
13642
|
-
minWidth: 95,
|
|
13670
|
+
...fitContent ? { minWidth: 60 } : { width: 110, minWidth: 95 },
|
|
13643
13671
|
sortable: true,
|
|
13644
13672
|
type: "numericColumn",
|
|
13645
13673
|
valueGetter: (p) => p.data?.files_mb ?? 0,
|
|
13646
13674
|
cellRenderer: MemberStorageRenderer
|
|
13647
13675
|
}
|
|
13648
13676
|
],
|
|
13649
|
-
[selfId, isOwner, isPending, changeRole]
|
|
13677
|
+
[selfId, isOwner, isPending, changeRole, fitContent]
|
|
13650
13678
|
);
|
|
13651
13679
|
const removeSelected = async () => {
|
|
13652
13680
|
const count2 = selected.length;
|
|
@@ -13678,6 +13706,16 @@ Note that ${members2} may have saved private content in the ${workspaceWord2} th
|
|
|
13678
13706
|
);
|
|
13679
13707
|
const canChangeRoleSelected = selected.some((m) => !roleLock(m.user.external_id, selfId, isOwner));
|
|
13680
13708
|
const ownerOnly = `Only available to ${workspaceWord2} owner`;
|
|
13709
|
+
const gridApi = react.useRef(null);
|
|
13710
|
+
const rowCount = rows.length;
|
|
13711
|
+
react.useEffect(() => {
|
|
13712
|
+
if (!fitContent || !rowCount) return;
|
|
13713
|
+
const timer = setTimeout(() => {
|
|
13714
|
+
const api = gridApi.current;
|
|
13715
|
+
if (api && !api.isDestroyed()) api.autoSizeAllColumns();
|
|
13716
|
+
}, 150);
|
|
13717
|
+
return () => clearTimeout(timer);
|
|
13718
|
+
}, [fitContent, rowCount]);
|
|
13681
13719
|
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkTNVCTYZI_cjs.MemberListLoading, {});
|
|
13682
13720
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "workspace-users", className: "relative flex flex-col", children: [
|
|
13683
13721
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13686,9 +13724,20 @@ Note that ${members2} may have saved private content in the ${workspaceWord2} th
|
|
|
13686
13724
|
items: rows,
|
|
13687
13725
|
columnDefs,
|
|
13688
13726
|
getItemId: (m) => m.user.external_id,
|
|
13689
|
-
selection: { mode: "multiple", selected, onSelectionChange:
|
|
13727
|
+
selection: { mode: "multiple", selected, onSelectionChange: selectMembers },
|
|
13690
13728
|
persistState: !!onGridStateChange,
|
|
13691
|
-
gridId: `workspace-users-${workspace.external_id}-v6`,
|
|
13729
|
+
gridId: `workspace-users-${workspace.external_id}-${fitContent ? "fit-v1" : "v6"}`,
|
|
13730
|
+
gridOptions: {
|
|
13731
|
+
// An invitation is not selected: its row shows no checkbox.
|
|
13732
|
+
getRowClass: (params) => params.data && isPendingRow(params.data) ? "[&_.ag-selection-checkbox]:invisible" : "",
|
|
13733
|
+
...fitContent ? {
|
|
13734
|
+
autoSizeStrategy: { type: "fitCellContents" },
|
|
13735
|
+
suppressColumnVirtualisation: true
|
|
13736
|
+
} : {}
|
|
13737
|
+
},
|
|
13738
|
+
onGridReady: ({ api }) => {
|
|
13739
|
+
gridApi.current = api;
|
|
13740
|
+
},
|
|
13692
13741
|
gridState,
|
|
13693
13742
|
onGridStateChange,
|
|
13694
13743
|
height: "300px",
|
|
@@ -15128,13 +15177,13 @@ function ConnectedWorkspaceSettings({
|
|
|
15128
15177
|
const [membersExpanded, setMembersExpanded] = react.useState(false);
|
|
15129
15178
|
const [shareOpen, setShareOpen] = react.useState(false);
|
|
15130
15179
|
if (!workspace) {
|
|
15131
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkWHHBEV4G_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15180
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWHHBEV4G_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
15132
15181
|
}
|
|
15133
15182
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15134
15183
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWHHBEV4G_cjs.WorkspacePageFrame, { testId, children: [
|
|
15135
15184
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWHHBEV4G_cjs.WorkspaceIdentityPanel, { children: [
|
|
15136
15185
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15137
|
-
|
|
15186
|
+
chunkJAKLLNLL_cjs.EntityIdentityBar,
|
|
15138
15187
|
{
|
|
15139
15188
|
testId: "workspace-identity-bar",
|
|
15140
15189
|
canEdit: isOwner,
|
|
@@ -15151,7 +15200,7 @@ function ConnectedWorkspaceSettings({
|
|
|
15151
15200
|
label: "Name",
|
|
15152
15201
|
value: workspace.name,
|
|
15153
15202
|
placeholder: "Untitled",
|
|
15154
|
-
maxLength:
|
|
15203
|
+
maxLength: chunkJAKLLNLL_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
15155
15204
|
valueClassName: "truncate text-base font-semibold",
|
|
15156
15205
|
testId: "workspace-home-title",
|
|
15157
15206
|
hideLabel: true,
|
|
@@ -16650,36 +16699,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
16650
16699
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
16651
16700
|
const { apiBaseUrl } = chunkHN56WWBR_cjs.useBlocksEnvironment().runtimeConfig;
|
|
16652
16701
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
16653
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16702
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentCard, { size: "md", children: [
|
|
16654
16703
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16655
|
-
|
|
16704
|
+
chunkAQYCL2IJ_cjs.ConsentHeader,
|
|
16656
16705
|
{
|
|
16657
16706
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
16658
16707
|
title: "Approve ARBI for SharePoint access",
|
|
16659
16708
|
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."
|
|
16660
16709
|
}
|
|
16661
16710
|
),
|
|
16662
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16663
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16664
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16711
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_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." }),
|
|
16712
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_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." }),
|
|
16713
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
16665
16714
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16666
|
-
|
|
16715
|
+
chunkAQYCL2IJ_cjs.ConsentBulletList,
|
|
16667
16716
|
{
|
|
16668
16717
|
items: [
|
|
16669
16718
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16670
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16719
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
16671
16720
|
" \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."
|
|
16672
16721
|
] }),
|
|
16673
16722
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16674
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16723
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
16675
16724
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
16676
16725
|
] })
|
|
16677
16726
|
]
|
|
16678
16727
|
}
|
|
16679
16728
|
),
|
|
16680
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16729
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_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." }),
|
|
16681
16730
|
/* @__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" }) }),
|
|
16682
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16731
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_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." })
|
|
16683
16732
|
] })
|
|
16684
16733
|
] }) });
|
|
16685
16734
|
}
|
|
@@ -19892,7 +19941,7 @@ function ConnectedWorkspaceList({
|
|
|
19892
19941
|
}
|
|
19893
19942
|
);
|
|
19894
19943
|
}
|
|
19895
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19944
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
19896
19945
|
if (list.error) {
|
|
19897
19946
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19898
19947
|
chunkDSLMJ24E_cjs.HomeLoadError,
|
|
@@ -19965,7 +20014,7 @@ function ConnectedWorkspaceList({
|
|
|
19965
20014
|
workspaceState
|
|
19966
20015
|
}
|
|
19967
20016
|
) })
|
|
19968
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
20017
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkDSLMJ24E_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19969
20018
|
WorkspaceTableView,
|
|
19970
20019
|
{
|
|
19971
20020
|
list,
|
|
@@ -20167,7 +20216,7 @@ function ConnectedProjectsListPage({
|
|
|
20167
20216
|
};
|
|
20168
20217
|
const { openProject } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
20169
20218
|
const [search, setSearch] = react.useState("");
|
|
20170
|
-
const { projects, isLoading } =
|
|
20219
|
+
const { projects, isLoading } = chunkNAEBNQTO_cjs.useProjectSummaries();
|
|
20171
20220
|
const rows = react.useMemo(() => {
|
|
20172
20221
|
const q = search.trim().toLowerCase();
|
|
20173
20222
|
if (!q) return projects;
|
|
@@ -20238,7 +20287,7 @@ function ConnectedProjectsListPage({
|
|
|
20238
20287
|
}
|
|
20239
20288
|
),
|
|
20240
20289
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20241
|
-
|
|
20290
|
+
chunkJAKLLNLL_cjs.Toolbar,
|
|
20242
20291
|
{
|
|
20243
20292
|
search,
|
|
20244
20293
|
onSearch: setSearch,
|
|
@@ -20300,7 +20349,7 @@ function ProjectDetailsForm({
|
|
|
20300
20349
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
20301
20350
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
20302
20351
|
const update = react$1.useUpdateProjectFields();
|
|
20303
|
-
const workspace =
|
|
20352
|
+
const workspace = chunkNAEBNQTO_cjs.primaryProjectWorkspace(project);
|
|
20304
20353
|
const { data: members = [] } = react$1.useWorkspaceUsers(workspace?.id);
|
|
20305
20354
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
20306
20355
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -20425,7 +20474,7 @@ var COMPACT_BELOW = 132;
|
|
|
20425
20474
|
var NO_DOCUMENTS = [];
|
|
20426
20475
|
function useFilesWorkspace() {
|
|
20427
20476
|
const { workspaceId, userId, live } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
20428
|
-
const { members, role } =
|
|
20477
|
+
const { members, role } = chunkHZ35LMO3_cjs.useConnectedWorkspaceRole();
|
|
20429
20478
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
20430
20479
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
20431
20480
|
return {
|
|
@@ -21330,6 +21379,9 @@ var DEFAULT_PROJECT_PAGE_LABELS = {
|
|
|
21330
21379
|
get opening() {
|
|
21331
21380
|
return `Opening the ${ui.entityNoun("PROJECT")}'s workspace\u2026`;
|
|
21332
21381
|
},
|
|
21382
|
+
get noWorkspace() {
|
|
21383
|
+
return `This ${ui.entityNoun("PROJECT")} has no workspace yet.`;
|
|
21384
|
+
},
|
|
21333
21385
|
threads: {
|
|
21334
21386
|
title: "Threads and runs",
|
|
21335
21387
|
loading: "Loading\u2026",
|
|
@@ -21362,20 +21414,22 @@ function ConnectedProjectPage({
|
|
|
21362
21414
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
21363
21415
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
21364
21416
|
};
|
|
21365
|
-
const { project, usage, isLoading } =
|
|
21417
|
+
const { project, usage, isLoading } = chunkNAEBNQTO_cjs.useProjectSummary(projectId);
|
|
21366
21418
|
const { workspaceId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
21367
21419
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
21368
21420
|
const selectWorkspace = chunkU4MJIYGD_cjs.useSelectWorkspace();
|
|
21369
|
-
const
|
|
21421
|
+
const openOne = project?.workspaces.find((w) => w.id === workspaceId);
|
|
21422
|
+
const workspace = openOne ?? (project ? chunkNAEBNQTO_cjs.primaryProjectWorkspace(project) : void 0);
|
|
21370
21423
|
const open = !!workspace && workspace.id === workspaceId;
|
|
21424
|
+
const switching = react$1.useArbiSessionState((s) => s.workspaceStatus) === "opening";
|
|
21371
21425
|
react.useEffect(() => {
|
|
21372
|
-
if (!workspace || workspace.id === workspaceId) return;
|
|
21426
|
+
if (!workspace || workspace.id === workspaceId || switching) return;
|
|
21373
21427
|
selectWorkspace(workspace.id).catch(
|
|
21374
21428
|
(e) => notify19(`Couldn't open the ${ui.entityNoun("PROJECT")}'s workspace`, "error", {
|
|
21375
21429
|
description: e instanceof Error ? e.message : void 0
|
|
21376
21430
|
})
|
|
21377
21431
|
);
|
|
21378
|
-
}, [workspace?.id, workspaceId]);
|
|
21432
|
+
}, [workspace?.id, workspaceId, switching]);
|
|
21379
21433
|
const [ownTab, setOwnTab] = react.useState(() => initialTab ?? tabs[0]?.id);
|
|
21380
21434
|
const tab = controlledTab ?? ownTab;
|
|
21381
21435
|
const setTab = (next) => {
|
|
@@ -21393,9 +21447,12 @@ function ConnectedProjectPage({
|
|
|
21393
21447
|
}
|
|
21394
21448
|
);
|
|
21395
21449
|
}
|
|
21396
|
-
const pending = /* @__PURE__ */ jsxRuntime.jsx(ProjectTabPending, { label: labels.opening, testId: `${testId}-opening` });
|
|
21450
|
+
const pending = workspace ? /* @__PURE__ */ jsxRuntime.jsx(ProjectTabPending, { label: labels.opening, testId: `${testId}-opening` }) : /* @__PURE__ */ jsxRuntime.jsx(chunkZW6FPIFC_cjs.EmptyState, { icon: lucideReact.FolderKanban, title: labels.noWorkspace, testId: `${testId}-no-workspace` });
|
|
21397
21451
|
const body = (t) => {
|
|
21398
|
-
if (!t.kind)
|
|
21452
|
+
if (!t.kind) {
|
|
21453
|
+
if (t.needsWorkspace === false) return t.render(project);
|
|
21454
|
+
return open && workspace ? t.render(project, workspace.id) : pending;
|
|
21455
|
+
}
|
|
21399
21456
|
switch (t.kind) {
|
|
21400
21457
|
case "details":
|
|
21401
21458
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -22317,7 +22374,7 @@ function AgentBarShell({
|
|
|
22317
22374
|
}, [isStepsExpanded, steps]);
|
|
22318
22375
|
const visibleStepCount = react.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
22319
22376
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22320
|
-
|
|
22377
|
+
chunkAQYCL2IJ_cjs.AgentBar,
|
|
22321
22378
|
{
|
|
22322
22379
|
className,
|
|
22323
22380
|
testId,
|
|
@@ -22364,7 +22421,7 @@ function DmAgentProgress({
|
|
|
22364
22421
|
steps,
|
|
22365
22422
|
className: compact ? "mx-4 my-2 rounded-none bg-transparent" : void 0,
|
|
22366
22423
|
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22367
|
-
|
|
22424
|
+
chunkAQYCL2IJ_cjs.AgentBarStatus,
|
|
22368
22425
|
{
|
|
22369
22426
|
stepLabel: label,
|
|
22370
22427
|
stepIcon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { "aria-label": "Working", className: "size-4 shrink-0 animate-spin text-primary" }),
|
|
@@ -24515,7 +24572,7 @@ function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
|
24515
24572
|
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkPGKCL6YA_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
24516
24573
|
[]
|
|
24517
24574
|
);
|
|
24518
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24575
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
24519
24576
|
}
|
|
24520
24577
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
24521
24578
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
@@ -24632,7 +24689,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24632
24689
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
24633
24690
|
if (editAgent) {
|
|
24634
24691
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24635
|
-
|
|
24692
|
+
chunkAQYCL2IJ_cjs.AgentEditView,
|
|
24636
24693
|
{
|
|
24637
24694
|
agentName: editAgent.name,
|
|
24638
24695
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -24648,7 +24705,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24648
24705
|
}
|
|
24649
24706
|
if (view === "main") {
|
|
24650
24707
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24651
|
-
|
|
24708
|
+
chunkAQYCL2IJ_cjs.AgentMainView,
|
|
24652
24709
|
{
|
|
24653
24710
|
onConnectExternal: () => setView("connect"),
|
|
24654
24711
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -24664,11 +24721,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24664
24721
|
}
|
|
24665
24722
|
if (result) {
|
|
24666
24723
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24667
|
-
|
|
24724
|
+
chunkAQYCL2IJ_cjs.AgentCreatedView,
|
|
24668
24725
|
{
|
|
24669
24726
|
email: result.email,
|
|
24670
24727
|
signingKey: result.signingKey,
|
|
24671
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24728
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
24672
24729
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
24673
24730
|
isConfigOpen: configOpen,
|
|
24674
24731
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -24677,7 +24734,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24677
24734
|
);
|
|
24678
24735
|
}
|
|
24679
24736
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24680
|
-
|
|
24737
|
+
chunkAQYCL2IJ_cjs.AgentCreateView,
|
|
24681
24738
|
{
|
|
24682
24739
|
name,
|
|
24683
24740
|
onNameChange: setName,
|
|
@@ -24902,7 +24959,7 @@ function createBuiltinActions(environment, session) {
|
|
|
24902
24959
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
24903
24960
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
24904
24961
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
24905
|
-
|
|
24962
|
+
chunkAQYCL2IJ_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
24906
24963
|
};
|
|
24907
24964
|
const setFilesView = (mode) => () => chunkGENUGV6V_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
24908
24965
|
const actions = [
|
|
@@ -29488,7 +29545,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
29488
29545
|
}
|
|
29489
29546
|
})();
|
|
29490
29547
|
}, [authenticated, claimId, key]);
|
|
29491
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
29548
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
29492
29549
|
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: [
|
|
29493
29550
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
29494
29551
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -35222,7 +35279,7 @@ function ConnectedFilesBulkActions({
|
|
|
35222
35279
|
const actions = react$1.useDocumentHostActions();
|
|
35223
35280
|
const isOnline = documentTools.useIsOnline();
|
|
35224
35281
|
const { userId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
35225
|
-
const { role } =
|
|
35282
|
+
const { role } = chunkHZ35LMO3_cjs.useConnectedWorkspaceRole();
|
|
35226
35283
|
const offlineIds = react$1.useOfflineDocumentIds();
|
|
35227
35284
|
const keepOffline = react$1.useKeepDocumentsOffline();
|
|
35228
35285
|
const removeOffline = react$1.useRemoveDocumentsOffline();
|
|
@@ -35600,7 +35657,7 @@ function useBatchCompleteToasts() {
|
|
|
35600
35657
|
}
|
|
35601
35658
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
35602
35659
|
} else if (message.batch_type === "entity_extract") {
|
|
35603
|
-
say(`${
|
|
35660
|
+
say(`${chunkJAKLLNLL_cjs.entitiesPhrase()} extracted from ${chunkJAKLLNLL_cjs.documentCount(docIds.length)}`, "success", {
|
|
35604
35661
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
35605
35662
|
});
|
|
35606
35663
|
} else if (message.batch_type === "upload") {
|
|
@@ -36476,10 +36533,10 @@ var DocumentReviewCard = react.lazy(
|
|
|
36476
36533
|
() => import('../DocumentReviewCard-RFE4THHR.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
36477
36534
|
);
|
|
36478
36535
|
var FilesViewerDialog = react.lazy(
|
|
36479
|
-
() => import('../FilesViewerDialog-
|
|
36536
|
+
() => import('../FilesViewerDialog-VO247UEI.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
36480
36537
|
);
|
|
36481
36538
|
function defaultReviewCard(props) {
|
|
36482
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36539
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
36483
36540
|
}
|
|
36484
36541
|
function ConnectedFilesPage({
|
|
36485
36542
|
isModal = false,
|
|
@@ -36522,7 +36579,7 @@ function ConnectedFilesPage({
|
|
|
36522
36579
|
const deleteDocuments = react$1.useDeleteDocuments();
|
|
36523
36580
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
36524
36581
|
const { workspaceId, userId, live } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
36525
|
-
const { role, members } =
|
|
36582
|
+
const { role, members } = chunkHZ35LMO3_cjs.useConnectedWorkspaceRole();
|
|
36526
36583
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
36527
36584
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
36528
36585
|
const workspaceName = workspace?.name;
|
|
@@ -37070,7 +37127,7 @@ function ConnectedFilesPage({
|
|
|
37070
37127
|
viewMode === "grid" ? (
|
|
37071
37128
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
37072
37129
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37073
|
-
|
|
37130
|
+
chunkJAKLLNLL_cjs.GridRowNavigator,
|
|
37074
37131
|
{
|
|
37075
37132
|
gridApi,
|
|
37076
37133
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -37365,7 +37422,7 @@ function ProcessingSection({
|
|
|
37365
37422
|
tasks,
|
|
37366
37423
|
onDelete
|
|
37367
37424
|
}) {
|
|
37368
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk72O4YH5M_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
37369
37426
|
}
|
|
37370
37427
|
function ConnectedDocumentProcessingPanel({
|
|
37371
37428
|
workspaceId,
|
|
@@ -41038,7 +41095,7 @@ function GuidedRuns() {
|
|
|
41038
41095
|
chunkPGKCL6YA_cjs.useRemoteControlSessionReset();
|
|
41039
41096
|
const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
|
|
41040
41097
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
41041
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41098
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
41042
41099
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
41043
41100
|
] });
|
|
41044
41101
|
}
|
|
@@ -41072,7 +41129,7 @@ function ConnectedAppRuntime({
|
|
|
41072
41129
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
41073
41130
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
41074
41131
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
41075
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
41132
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkJAKLLNLL_cjs.KIT_CHUNK_LOADERS] }),
|
|
41076
41133
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
41077
41134
|
] });
|
|
41078
41135
|
}
|
|
@@ -43240,7 +43297,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
43240
43297
|
function useWorkflowLaunch() {
|
|
43241
43298
|
const { skills } = chunkER2MRSLT_cjs.useWorkflowDefinitions();
|
|
43242
43299
|
const launch = react.useCallback(
|
|
43243
|
-
(workflowId, options = {}) =>
|
|
43300
|
+
(workflowId, options = {}) => chunkAQYCL2IJ_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
43244
43301
|
[]
|
|
43245
43302
|
);
|
|
43246
43303
|
const itemsFor = react.useCallback(
|
|
@@ -43269,8 +43326,8 @@ function useWorkflowLaunch() {
|
|
|
43269
43326
|
return { launch, itemsFor, scopeItemsFor };
|
|
43270
43327
|
}
|
|
43271
43328
|
function Inner() {
|
|
43272
|
-
const request =
|
|
43273
|
-
const close =
|
|
43329
|
+
const request = chunkAQYCL2IJ_cjs.useWorkflowLaunchRequest();
|
|
43330
|
+
const close = chunkAQYCL2IJ_cjs.closeWorkflowLaunch;
|
|
43274
43331
|
const { skills } = chunkER2MRSLT_cjs.useWorkflowDefinitions();
|
|
43275
43332
|
const run = chunkOHWYQI3B_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
43276
43333
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -43308,7 +43365,7 @@ function Inner() {
|
|
|
43308
43365
|
);
|
|
43309
43366
|
}
|
|
43310
43367
|
function WorkflowLaunchHost() {
|
|
43311
|
-
return
|
|
43368
|
+
return chunkAQYCL2IJ_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
43312
43369
|
}
|
|
43313
43370
|
function isNeedsConfirmationDetail(detail) {
|
|
43314
43371
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -43806,7 +43863,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
43806
43863
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
43807
43864
|
};
|
|
43808
43865
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43809
|
-
|
|
43866
|
+
chunkAQYCL2IJ_cjs.WorkflowRunStatus,
|
|
43810
43867
|
{
|
|
43811
43868
|
steps,
|
|
43812
43869
|
states,
|
|
@@ -43840,7 +43897,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
43840
43897
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
43841
43898
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
43842
43899
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43843
|
-
|
|
43900
|
+
chunkAQYCL2IJ_cjs.ThreadStatusLine,
|
|
43844
43901
|
{
|
|
43845
43902
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
43846
43903
|
className: "h-full",
|
|
@@ -44275,7 +44332,7 @@ function AgentControlBar({
|
|
|
44275
44332
|
}
|
|
44276
44333
|
);
|
|
44277
44334
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
44278
|
-
|
|
44335
|
+
chunkAQYCL2IJ_cjs.AgentBarStatus,
|
|
44279
44336
|
{
|
|
44280
44337
|
state: showState ? controlState : void 0,
|
|
44281
44338
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -44316,7 +44373,7 @@ function AgentControlBar({
|
|
|
44316
44373
|
];
|
|
44317
44374
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
44318
44375
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44319
|
-
|
|
44376
|
+
chunkAQYCL2IJ_cjs.AgentBarIconButton,
|
|
44320
44377
|
{
|
|
44321
44378
|
onClick: onStop,
|
|
44322
44379
|
title: "Stop",
|
|
@@ -44325,23 +44382,23 @@ function AgentControlBar({
|
|
|
44325
44382
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
44326
44383
|
}
|
|
44327
44384
|
),
|
|
44328
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44385
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.AgentBarMenu, { items: menuItems })
|
|
44329
44386
|
] });
|
|
44330
44387
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
44331
44388
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
44332
44389
|
);
|
|
44333
44390
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
44334
|
-
const below = probePending || probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44335
|
-
probePending && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44391
|
+
const below = probePending || probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.AgentBarNotes, { children: [
|
|
44392
|
+
probePending && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.AgentBarStatus, { isProbing: true }),
|
|
44336
44393
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
44337
|
-
|
|
44394
|
+
chunkAQYCL2IJ_cjs.AgentBarQueuedNote,
|
|
44338
44395
|
{
|
|
44339
44396
|
text: message.content ?? "",
|
|
44340
44397
|
isAcknowledged: message.acknowledged
|
|
44341
44398
|
},
|
|
44342
44399
|
index
|
|
44343
44400
|
)),
|
|
44344
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44401
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
44345
44402
|
] }) : null;
|
|
44346
44403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44347
44404
|
AgentBarShell,
|
|
@@ -45482,7 +45539,7 @@ function ConversationThread({
|
|
|
45482
45539
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSXC4ZIN4_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
45483
45540
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSXC4ZIN4_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
45484
45541
|
] })
|
|
45485
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
45542
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkPGKCL6YA_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
45486
45543
|
ConnectedConversationEmpty,
|
|
45487
45544
|
{
|
|
45488
45545
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -45922,7 +45979,7 @@ function ConnectedThreadsPage({
|
|
|
45922
45979
|
};
|
|
45923
45980
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
45924
45981
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45925
|
-
|
|
45982
|
+
chunkAQYCL2IJ_cjs.ConversationListView,
|
|
45926
45983
|
{
|
|
45927
45984
|
showHeader,
|
|
45928
45985
|
conversations: tasks,
|
|
@@ -45941,7 +45998,7 @@ function ConnectedThreadsPage({
|
|
|
45941
45998
|
renderLabels: threadLabels.renderLabels,
|
|
45942
45999
|
labelText: threadLabels.labelText,
|
|
45943
46000
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
45944
|
-
|
|
46001
|
+
chunkAQYCL2IJ_cjs.ConversationTurnSpeaker,
|
|
45945
46002
|
{
|
|
45946
46003
|
variant: "icon",
|
|
45947
46004
|
role: row2.last_message_role,
|
|
@@ -46822,7 +46879,7 @@ function ConnectedConversationPage({
|
|
|
46822
46879
|
);
|
|
46823
46880
|
const { data: workspaceTags = [] } = react$1.useTags();
|
|
46824
46881
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
46825
|
-
const historyCount =
|
|
46882
|
+
const historyCount = chunkAQYCL2IJ_cjs.filterConversationRows(
|
|
46826
46883
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
46827
46884
|
threadFilter,
|
|
46828
46885
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -46904,7 +46961,7 @@ function ConnectedConversationPage({
|
|
|
46904
46961
|
] })
|
|
46905
46962
|
}
|
|
46906
46963
|
),
|
|
46907
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
46964
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkNAEBNQTO_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
46908
46965
|
] }),
|
|
46909
46966
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
46910
46967
|
ConversationThread,
|
|
@@ -47113,7 +47170,7 @@ function SsoResendVerificationButton({
|
|
|
47113
47170
|
onClick: async () => handleResendEmailVerification(),
|
|
47114
47171
|
disabled: loading || disabled,
|
|
47115
47172
|
"aria-label": "Resend verification email",
|
|
47116
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
47173
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkJAKLLNLL_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
47117
47174
|
"Didn't get a verification email? ",
|
|
47118
47175
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
47119
47176
|
] })
|
|
@@ -47820,27 +47877,27 @@ function ConnectedOAuthConsentPage({
|
|
|
47820
47877
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
47821
47878
|
}
|
|
47822
47879
|
if (error && !params) {
|
|
47823
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47880
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
47824
47881
|
}
|
|
47825
47882
|
if (!params) {
|
|
47826
47883
|
return null;
|
|
47827
47884
|
}
|
|
47828
47885
|
if (clientInfo?.isLocalAgentFlow) {
|
|
47829
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47886
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_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." }) });
|
|
47830
47887
|
}
|
|
47831
47888
|
if (!isAuthenticated2) {
|
|
47832
47889
|
return null;
|
|
47833
47890
|
}
|
|
47834
47891
|
if (callbackUrl) {
|
|
47835
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47836
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47892
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentCard, { size: "md", children: [
|
|
47893
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
47837
47894
|
"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",
|
|
47838
47895
|
" ",
|
|
47839
47896
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
47840
47897
|
] }),
|
|
47841
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47842
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47843
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47898
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
47899
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
47900
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentText, { variant: "hint", children: [
|
|
47844
47901
|
"In Claude Code, paste the URL at the prompt that says",
|
|
47845
47902
|
" ",
|
|
47846
47903
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -47849,17 +47906,17 @@ function ConnectedOAuthConsentPage({
|
|
|
47849
47906
|
] })
|
|
47850
47907
|
] }) });
|
|
47851
47908
|
}
|
|
47852
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47853
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47854
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47909
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentCard, { children: [
|
|
47910
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkAQYCL2IJ_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
47911
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
47855
47912
|
" is requesting access to your ",
|
|
47856
47913
|
appName,
|
|
47857
47914
|
" workspace."
|
|
47858
47915
|
] }),
|
|
47859
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47860
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
47861
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47862
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47916
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
47917
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
47918
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
47919
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAQYCL2IJ_cjs.ConsentFootnote, { children: footnote })
|
|
47863
47920
|
] }) });
|
|
47864
47921
|
}
|
|
47865
47922
|
function ConnectedSharedFilesPage({
|
|
@@ -48571,7 +48628,7 @@ function ConnectedTipBar({
|
|
|
48571
48628
|
workspaceOpen,
|
|
48572
48629
|
...state
|
|
48573
48630
|
};
|
|
48574
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
48631
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkJAKLLNLL_cjs.useTipsPlacement({
|
|
48575
48632
|
registry,
|
|
48576
48633
|
context,
|
|
48577
48634
|
state: situation,
|
|
@@ -49123,83 +49180,83 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
49123
49180
|
});
|
|
49124
49181
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
49125
49182
|
enumerable: true,
|
|
49126
|
-
get: function () { return
|
|
49183
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedTaskActivityDialog; }
|
|
49127
49184
|
});
|
|
49128
49185
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
49129
49186
|
enumerable: true,
|
|
49130
|
-
get: function () { return
|
|
49187
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedTaskComposer; }
|
|
49131
49188
|
});
|
|
49132
49189
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
49133
49190
|
enumerable: true,
|
|
49134
|
-
get: function () { return
|
|
49191
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedThreadTaskBar; }
|
|
49135
49192
|
});
|
|
49136
49193
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
49137
49194
|
enumerable: true,
|
|
49138
|
-
get: function () { return
|
|
49195
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedWorkflowHistory; }
|
|
49139
49196
|
});
|
|
49140
49197
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
49141
49198
|
enumerable: true,
|
|
49142
|
-
get: function () { return
|
|
49199
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedWorkflowRunPage; }
|
|
49143
49200
|
});
|
|
49144
49201
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
49145
49202
|
enumerable: true,
|
|
49146
|
-
get: function () { return
|
|
49203
|
+
get: function () { return chunkNAEBNQTO_cjs.ConnectedWorkflowRunner; }
|
|
49147
49204
|
});
|
|
49148
49205
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
49149
49206
|
enumerable: true,
|
|
49150
|
-
get: function () { return
|
|
49207
|
+
get: function () { return chunkNAEBNQTO_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
49151
49208
|
});
|
|
49152
49209
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
49153
49210
|
enumerable: true,
|
|
49154
|
-
get: function () { return
|
|
49211
|
+
get: function () { return chunkNAEBNQTO_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
49155
49212
|
});
|
|
49156
49213
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
49157
49214
|
enumerable: true,
|
|
49158
|
-
get: function () { return
|
|
49215
|
+
get: function () { return chunkNAEBNQTO_cjs.WorkflowRunThread; }
|
|
49159
49216
|
});
|
|
49160
49217
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
49161
49218
|
enumerable: true,
|
|
49162
|
-
get: function () { return
|
|
49219
|
+
get: function () { return chunkNAEBNQTO_cjs.WorkflowRunWorkspaceChangedError; }
|
|
49163
49220
|
});
|
|
49164
49221
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
49165
49222
|
enumerable: true,
|
|
49166
|
-
get: function () { return
|
|
49223
|
+
get: function () { return chunkNAEBNQTO_cjs.buildProjectSummaries; }
|
|
49167
49224
|
});
|
|
49168
49225
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
49169
49226
|
enumerable: true,
|
|
49170
|
-
get: function () { return
|
|
49227
|
+
get: function () { return chunkNAEBNQTO_cjs.primaryProjectWorkspace; }
|
|
49171
49228
|
});
|
|
49172
49229
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
49173
49230
|
enumerable: true,
|
|
49174
|
-
get: function () { return
|
|
49231
|
+
get: function () { return chunkNAEBNQTO_cjs.useEnsureRequiredLabels; }
|
|
49175
49232
|
});
|
|
49176
49233
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
49177
49234
|
enumerable: true,
|
|
49178
|
-
get: function () { return
|
|
49235
|
+
get: function () { return chunkNAEBNQTO_cjs.useProjectSummaries; }
|
|
49179
49236
|
});
|
|
49180
49237
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
49181
49238
|
enumerable: true,
|
|
49182
|
-
get: function () { return
|
|
49239
|
+
get: function () { return chunkNAEBNQTO_cjs.useProjectSummary; }
|
|
49183
49240
|
});
|
|
49184
49241
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
49185
49242
|
enumerable: true,
|
|
49186
|
-
get: function () { return
|
|
49243
|
+
get: function () { return chunkNAEBNQTO_cjs.useRenderTaskPerson; }
|
|
49187
49244
|
});
|
|
49188
49245
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
49189
49246
|
enumerable: true,
|
|
49190
|
-
get: function () { return
|
|
49247
|
+
get: function () { return chunkNAEBNQTO_cjs.useRequiredLabels; }
|
|
49191
49248
|
});
|
|
49192
49249
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
49193
49250
|
enumerable: true,
|
|
49194
|
-
get: function () { return
|
|
49251
|
+
get: function () { return chunkNAEBNQTO_cjs.useTaskPeople; }
|
|
49195
49252
|
});
|
|
49196
49253
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
49197
49254
|
enumerable: true,
|
|
49198
|
-
get: function () { return
|
|
49255
|
+
get: function () { return chunkNAEBNQTO_cjs.useWorkflowsPageState; }
|
|
49199
49256
|
});
|
|
49200
49257
|
Object.defineProperty(exports, "workflowRunView", {
|
|
49201
49258
|
enumerable: true,
|
|
49202
|
-
get: function () { return
|
|
49259
|
+
get: function () { return chunkNAEBNQTO_cjs.workflowRunView; }
|
|
49203
49260
|
});
|
|
49204
49261
|
Object.defineProperty(exports, "AgentSteps", {
|
|
49205
49262
|
enumerable: true,
|
|
@@ -49611,23 +49668,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
|
|
|
49611
49668
|
});
|
|
49612
49669
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
49613
49670
|
enumerable: true,
|
|
49614
|
-
get: function () { return
|
|
49671
|
+
get: function () { return chunkHZ35LMO3_cjs.ConnectedWorkflowsTable; }
|
|
49615
49672
|
});
|
|
49616
49673
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
49617
49674
|
enumerable: true,
|
|
49618
|
-
get: function () { return
|
|
49675
|
+
get: function () { return chunkHZ35LMO3_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
49619
49676
|
});
|
|
49620
49677
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
49621
49678
|
enumerable: true,
|
|
49622
|
-
get: function () { return
|
|
49679
|
+
get: function () { return chunkHZ35LMO3_cjs.useConnectedWorkspaceRole; }
|
|
49623
49680
|
});
|
|
49624
49681
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
49625
49682
|
enumerable: true,
|
|
49626
|
-
get: function () { return
|
|
49683
|
+
get: function () { return chunkHZ35LMO3_cjs.useDocxCommentTarget; }
|
|
49627
49684
|
});
|
|
49628
49685
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
49629
49686
|
enumerable: true,
|
|
49630
|
-
get: function () { return
|
|
49687
|
+
get: function () { return chunkHZ35LMO3_cjs.useNativeDocxSupport; }
|
|
49631
49688
|
});
|
|
49632
49689
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
49633
49690
|
enumerable: true,
|