@arbidocs/blocks 0.5.122 → 0.5.123
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-QKHCYD6W.cjs +1 -1
- package/dist/{ConnectedPresentation-AU25OW25.cjs → ConnectedPresentation-5DOJ35XL.cjs} +7 -7
- package/dist/{ConnectedPresentation-AU25OW25.cjs.map → ConnectedPresentation-5DOJ35XL.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-I75LKKN7.cjs → ConnectedSlidesTab-7YMEDGUU.cjs} +40 -18
- package/dist/ConnectedSlidesTab-7YMEDGUU.cjs.map +1 -0
- package/dist/ConnectedStreamedWordArtifact-AG62232A.cjs +1 -1
- package/dist/{FilesViewerDialog-4352KIOG.cjs → FilesViewerDialog-2QCCRWF2.cjs} +7 -7
- package/dist/{FilesViewerDialog-4352KIOG.cjs.map → FilesViewerDialog-2QCCRWF2.cjs.map} +1 -1
- package/dist/agents/index.cjs +176 -176
- package/dist/{chunk-LHWOKOMP.cjs → chunk-46P7IDBX.cjs} +3 -3
- package/dist/chunk-46P7IDBX.cjs.map +1 -0
- package/dist/{chunk-USNTRL22.cjs → chunk-DWMWEALB.cjs} +288 -214
- package/dist/chunk-DWMWEALB.cjs.map +1 -0
- package/dist/{chunk-UTJ223TI.cjs → chunk-JD2HX2BR.cjs} +98 -78
- package/dist/chunk-JD2HX2BR.cjs.map +1 -0
- package/dist/{chunk-QG2U2JGX.cjs → chunk-L4CIFLCU.cjs} +4 -4
- package/dist/{chunk-QG2U2JGX.cjs.map → chunk-L4CIFLCU.cjs.map} +1 -1
- package/dist/{chunk-CQQQIZU4.cjs → chunk-NQML7IUC.cjs} +3 -3
- package/dist/{chunk-CQQQIZU4.cjs.map → chunk-NQML7IUC.cjs.map} +1 -1
- package/dist/{chunk-WRLGLZIA.cjs → chunk-SNPK3R3O.cjs} +5 -5
- package/dist/{chunk-WRLGLZIA.cjs.map → chunk-SNPK3R3O.cjs.map} +1 -1
- package/dist/{chunk-XGM4VVNV.cjs → chunk-WV7BCGCK.cjs} +19 -19
- package/dist/{chunk-XGM4VVNV.cjs.map → chunk-WV7BCGCK.cjs.map} +1 -1
- package/dist/connect/docx.cjs +1 -1
- package/dist/connect/index.cjs +161 -161
- package/dist/connect/viewer.cjs +5 -5
- package/dist/connection/presentation/ConnectedSlidesTab.js +35 -13
- package/dist/connection/presentation/ConnectedSlidesTab.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +51 -60
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/ViewerMoreMenu.d.ts +18 -0
- package/dist/connection/viewer/ViewerMoreMenu.js +45 -0
- package/dist/connection/viewer/ViewerMoreMenu.js.map +7 -0
- package/dist/connection/viewer/pdf/PdfPassageHighlights.js +3 -2
- package/dist/connection/viewer/pdf/PdfPassageHighlights.js.map +2 -2
- package/dist/document-tools/DocumentToolButtons.js +2 -2
- package/dist/document-tools/DocumentToolButtons.js.map +2 -2
- package/dist/document-tools/index.cjs +13 -13
- package/dist/embed/index.cjs +2 -2
- package/dist/index.cjs +234 -234
- package/dist/presentation/BoxActionBar.d.ts +2 -2
- package/dist/presentation/BoxActionBar.js +62 -30
- package/dist/presentation/BoxActionBar.js.map +2 -2
- package/dist/presentation/ClipActionBar.js +60 -7
- package/dist/presentation/ClipActionBar.js.map +2 -2
- package/dist/presentation/ClipViewControls.d.ts +3 -3
- package/dist/presentation/ClipViewControls.js +59 -64
- package/dist/presentation/ClipViewControls.js.map +2 -2
- package/dist/presentation/SlidesEditor.js +56 -42
- package/dist/presentation/SlidesEditor.js.map +2 -2
- package/dist/presentation/StageItem.js +0 -5
- package/dist/presentation/StageItem.js.map +2 -2
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +12 -12
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedSlidesTab-I75LKKN7.cjs.map +0 -1
- package/dist/chunk-LHWOKOMP.cjs.map +0 -1
- package/dist/chunk-USNTRL22.cjs.map +0 -1
- package/dist/chunk-UTJ223TI.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var chunkVWBYE3XY_cjs = require('../chunk-VWBYE3XY.cjs');
|
|
|
9
9
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
10
10
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
11
11
|
var chunk7L4X6QN2_cjs = require('../chunk-7L4X6QN2.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkWV7BCGCK_cjs = require('../chunk-WV7BCGCK.cjs');
|
|
13
13
|
var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
|
|
14
14
|
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
15
15
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
@@ -54,7 +54,7 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
54
54
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
55
55
|
require('../chunk-DTMBAFIL.cjs');
|
|
56
56
|
require('../chunk-ZESMRGDV.cjs');
|
|
57
|
-
var
|
|
57
|
+
var chunkSNPK3R3O_cjs = require('../chunk-SNPK3R3O.cjs');
|
|
58
58
|
var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
|
|
59
59
|
require('../chunk-NEGFHF3V.cjs');
|
|
60
60
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
@@ -78,16 +78,16 @@ require('../chunk-WQMR3O2D.cjs');
|
|
|
78
78
|
var chunkORELHENJ_cjs = require('../chunk-ORELHENJ.cjs');
|
|
79
79
|
require('../chunk-NWNVWO6L.cjs');
|
|
80
80
|
require('../chunk-SK6HQ46Q.cjs');
|
|
81
|
+
require('../chunk-TG2GM7WJ.cjs');
|
|
81
82
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
82
83
|
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
83
|
-
require('../chunk-TG2GM7WJ.cjs');
|
|
84
84
|
var chunkVKH3BEZE_cjs = require('../chunk-VKH3BEZE.cjs');
|
|
85
85
|
var chunkULPTSXXO_cjs = require('../chunk-ULPTSXXO.cjs');
|
|
86
86
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
87
87
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
88
88
|
require('../chunk-OEJQFPWO.cjs');
|
|
89
89
|
require('../chunk-BQOL4XNZ.cjs');
|
|
90
|
-
var
|
|
90
|
+
var chunkNQML7IUC_cjs = require('../chunk-NQML7IUC.cjs');
|
|
91
91
|
var chunkQECKDZ47_cjs = require('../chunk-QECKDZ47.cjs');
|
|
92
92
|
var chunkTP5PGWIO_cjs = require('../chunk-TP5PGWIO.cjs');
|
|
93
93
|
require('../chunk-I4IS6ST6.cjs');
|
|
@@ -101,9 +101,9 @@ require('../chunk-3YEXZX4H.cjs');
|
|
|
101
101
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
102
102
|
require('../chunk-WXUU3COI.cjs');
|
|
103
103
|
require('../chunk-AHDJXIUB.cjs');
|
|
104
|
+
var chunkYVCOQHCE_cjs = require('../chunk-YVCOQHCE.cjs');
|
|
104
105
|
var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
|
|
105
106
|
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
106
|
-
var chunkYVCOQHCE_cjs = require('../chunk-YVCOQHCE.cjs');
|
|
107
107
|
var chunkJV5TVUOU_cjs = require('../chunk-JV5TVUOU.cjs');
|
|
108
108
|
var chunkZVEW3JBT_cjs = require('../chunk-ZVEW3JBT.cjs');
|
|
109
109
|
var chunkU2FFG2B3_cjs = require('../chunk-U2FFG2B3.cjs');
|
|
@@ -264,7 +264,7 @@ function ConnectedWorkspaceActivity({
|
|
|
264
264
|
[feed.data]
|
|
265
265
|
);
|
|
266
266
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
267
|
-
|
|
267
|
+
chunkSNPK3R3O_cjs.WorkspaceActivityList,
|
|
268
268
|
{
|
|
269
269
|
...listProps,
|
|
270
270
|
items,
|
|
@@ -1586,7 +1586,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1586
1586
|
onChange: (e) => {
|
|
1587
1587
|
const file = e.target.files?.[0];
|
|
1588
1588
|
e.target.value = "";
|
|
1589
|
-
if (file) void add(() =>
|
|
1589
|
+
if (file) void add(() => chunkNQML7IUC_cjs.importSkillFile(file));
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
@@ -1611,7 +1611,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1611
1611
|
className: "space-y-2",
|
|
1612
1612
|
onSubmit: (e) => {
|
|
1613
1613
|
e.preventDefault();
|
|
1614
|
-
if (url.trim()) void add(() =>
|
|
1614
|
+
if (url.trim()) void add(() => chunkNQML7IUC_cjs.importSkillFromUrl(url));
|
|
1615
1615
|
},
|
|
1616
1616
|
children: [
|
|
1617
1617
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1679,9 +1679,9 @@ function ConnectedSkillsLibrary({
|
|
|
1679
1679
|
const [type, setType] = react$1.useState("all");
|
|
1680
1680
|
const [view, setView] = react$1.useState("gallery");
|
|
1681
1681
|
const [isBusy, setIsBusy] = react$1.useState(false);
|
|
1682
|
-
const all = react$1.useMemo(() =>
|
|
1682
|
+
const all = react$1.useMemo(() => chunkNQML7IUC_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1683
1683
|
const shown = react$1.useMemo(
|
|
1684
|
-
() =>
|
|
1684
|
+
() => chunkNQML7IUC_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1685
1685
|
[all, query, source, type]
|
|
1686
1686
|
);
|
|
1687
1687
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1692,21 +1692,21 @@ function ConnectedSkillsLibrary({
|
|
|
1692
1692
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1693
1693
|
const sourceOptions = [
|
|
1694
1694
|
{ id: "all", label: "All", count: all.length },
|
|
1695
|
-
{ id: "builtin", label:
|
|
1696
|
-
{ id: "mine", label:
|
|
1697
|
-
{ id: "shared", label:
|
|
1695
|
+
{ id: "builtin", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1696
|
+
{ id: "mine", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1697
|
+
{ id: "shared", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1698
1698
|
];
|
|
1699
1699
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1700
1700
|
const typeOptions = [
|
|
1701
1701
|
{ id: "all", label: "Any kind" },
|
|
1702
|
-
...types.map((t) => ({ id: t, label:
|
|
1702
|
+
...types.map((t) => ({ id: t, label: chunkNQML7IUC_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1703
1703
|
];
|
|
1704
1704
|
const pick = (slug) => {
|
|
1705
1705
|
setSelected(slug);
|
|
1706
1706
|
setMode("detail");
|
|
1707
1707
|
};
|
|
1708
1708
|
const markdownOf = async (skill) => {
|
|
1709
|
-
if (!skill.docExtId) return
|
|
1709
|
+
if (!skill.docExtId) return chunkNQML7IUC_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1710
1710
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1711
1711
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1712
1712
|
return response.text();
|
|
@@ -1770,7 +1770,7 @@ function ConnectedSkillsLibrary({
|
|
|
1770
1770
|
try {
|
|
1771
1771
|
documentTools.downloadBlob(
|
|
1772
1772
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1773
|
-
|
|
1773
|
+
chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME
|
|
1774
1774
|
);
|
|
1775
1775
|
} catch (error) {
|
|
1776
1776
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1811,10 +1811,10 @@ function ConnectedSkillsLibrary({
|
|
|
1811
1811
|
}
|
|
1812
1812
|
)
|
|
1813
1813
|
] }),
|
|
1814
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1815
1815
|
] }),
|
|
1816
1816
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1817
|
-
|
|
1817
|
+
chunkNQML7IUC_cjs.SkillFilterChips,
|
|
1818
1818
|
{
|
|
1819
1819
|
label: "Show",
|
|
1820
1820
|
value: source,
|
|
@@ -1823,7 +1823,7 @@ function ConnectedSkillsLibrary({
|
|
|
1823
1823
|
}
|
|
1824
1824
|
),
|
|
1825
1825
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1826
|
-
|
|
1826
|
+
chunkNQML7IUC_cjs.SkillFilterChips,
|
|
1827
1827
|
{
|
|
1828
1828
|
label: "Kind",
|
|
1829
1829
|
value: type,
|
|
@@ -1870,12 +1870,12 @@ function ConnectedSkillsLibrary({
|
|
|
1870
1870
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1871
1871
|
),
|
|
1872
1872
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1873
|
-
|
|
1873
|
+
chunkNQML7IUC_cjs.SkillTile,
|
|
1874
1874
|
{
|
|
1875
1875
|
name: skill.title,
|
|
1876
1876
|
testId: `skill-tile-${skill.slug}`,
|
|
1877
1877
|
description: skill.description,
|
|
1878
|
-
sourceLabel: skill.isShared ? `${
|
|
1878
|
+
sourceLabel: skill.isShared ? `${chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1879
1879
|
type: skill.type,
|
|
1880
1880
|
icon,
|
|
1881
1881
|
layout: view,
|
|
@@ -1910,7 +1910,7 @@ function ConnectedSkillsLibrary({
|
|
|
1910
1910
|
}
|
|
1911
1911
|
),
|
|
1912
1912
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1913
|
-
|
|
1913
|
+
chunkNQML7IUC_cjs.SkillGenerateForm,
|
|
1914
1914
|
{
|
|
1915
1915
|
icon,
|
|
1916
1916
|
onGenerate: (desc) => {
|
|
@@ -1937,11 +1937,11 @@ function ConnectedSkillsLibrary({
|
|
|
1937
1937
|
),
|
|
1938
1938
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1939
1939
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1940
|
-
|
|
1940
|
+
chunkNQML7IUC_cjs.SkillLibraryDetail,
|
|
1941
1941
|
{
|
|
1942
1942
|
skill: current,
|
|
1943
1943
|
icon,
|
|
1944
|
-
instructions: current.docExtId ? currentText ?
|
|
1944
|
+
instructions: current.docExtId ? currentText ? chunkNQML7IUC_cjs.parseSkillFrontmatter(currentText, chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1945
1945
|
isLoading: !!current.docExtId && textLoading,
|
|
1946
1946
|
actions: {
|
|
1947
1947
|
onRun: () => onRun(current.slug),
|
|
@@ -1976,7 +1976,7 @@ function SkillEditor({
|
|
|
1976
1976
|
const [seeded, setSeeded] = react$1.useState(!isEditing);
|
|
1977
1977
|
const [nameError, setNameError] = react$1.useState(null);
|
|
1978
1978
|
if (isEditing && !seeded && text !== void 0) {
|
|
1979
|
-
const parsed =
|
|
1979
|
+
const parsed = chunkNQML7IUC_cjs.parseSkillFrontmatter(text, chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME);
|
|
1980
1980
|
setDescription(parsed.description ?? "");
|
|
1981
1981
|
setBody(parsed.content ?? "");
|
|
1982
1982
|
setSeeded(true);
|
|
@@ -1990,15 +1990,15 @@ function SkillEditor({
|
|
|
1990
1990
|
notify19("Add a short description.", "error");
|
|
1991
1991
|
return;
|
|
1992
1992
|
}
|
|
1993
|
-
const slug =
|
|
1993
|
+
const slug = chunkNQML7IUC_cjs.skillSlug(name);
|
|
1994
1994
|
try {
|
|
1995
|
-
await onSave(slug,
|
|
1995
|
+
await onSave(slug, chunkNQML7IUC_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1996
1996
|
} catch (err) {
|
|
1997
1997
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1998
1998
|
}
|
|
1999
1999
|
};
|
|
2000
2000
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2001
|
-
|
|
2001
|
+
chunkNQML7IUC_cjs.SkillEditForm,
|
|
2002
2002
|
{
|
|
2003
2003
|
name,
|
|
2004
2004
|
onNameChange: setName,
|
|
@@ -2091,7 +2091,7 @@ function ConnectedSkillsBrowser({
|
|
|
2091
2091
|
}
|
|
2092
2092
|
) }),
|
|
2093
2093
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2094
|
-
|
|
2094
|
+
chunkWV7BCGCK_cjs.ConnectedTaskComposer,
|
|
2095
2095
|
{
|
|
2096
2096
|
kind: "workflow",
|
|
2097
2097
|
open: true,
|
|
@@ -2115,9 +2115,9 @@ function ConnectedAgentCreator({
|
|
|
2115
2115
|
agent,
|
|
2116
2116
|
initialName,
|
|
2117
2117
|
onSaved,
|
|
2118
|
-
capabilities =
|
|
2119
|
-
templates =
|
|
2120
|
-
types =
|
|
2118
|
+
capabilities = chunkNQML7IUC_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2119
|
+
templates = chunkNQML7IUC_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2120
|
+
types = chunkNQML7IUC_cjs.DEFAULT_AGENT_TYPES,
|
|
2121
2121
|
canRevokeWorkspaces = false,
|
|
2122
2122
|
labels
|
|
2123
2123
|
}) {
|
|
@@ -2159,7 +2159,7 @@ function ConnectedAgentCreator({
|
|
|
2159
2159
|
const initialValues = react$1.useMemo(
|
|
2160
2160
|
() => ({
|
|
2161
2161
|
name: agent?.given_name ?? initialName ?? "",
|
|
2162
|
-
persona: isEdit ?
|
|
2162
|
+
persona: isEdit ? chunkNQML7IUC_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2163
2163
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2164
2164
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2165
2165
|
type: "builtin",
|
|
@@ -2178,7 +2178,7 @@ function ConnectedAgentCreator({
|
|
|
2178
2178
|
try {
|
|
2179
2179
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2180
2180
|
if (!agentExtId) {
|
|
2181
|
-
if (!
|
|
2181
|
+
if (!chunkNQML7IUC_cjs.isValidAgentName(values.name)) {
|
|
2182
2182
|
notify19("Give the agent a name first.", "error");
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
@@ -2214,7 +2214,7 @@ function ConnectedAgentCreator({
|
|
|
2214
2214
|
title: `agent-${name}`,
|
|
2215
2215
|
sections: {
|
|
2216
2216
|
Agents: {
|
|
2217
|
-
PERSONA:
|
|
2217
|
+
PERSONA: chunkNQML7IUC_cjs.composePersona(name, values.persona),
|
|
2218
2218
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2219
2219
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2220
2220
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2237,7 +2237,7 @@ function ConnectedAgentCreator({
|
|
|
2237
2237
|
};
|
|
2238
2238
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2239
2239
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2240
|
-
|
|
2240
|
+
chunkNQML7IUC_cjs.AgentCreator,
|
|
2241
2241
|
{
|
|
2242
2242
|
open: ready,
|
|
2243
2243
|
onOpenChange,
|
|
@@ -2253,11 +2253,11 @@ function ConnectedAgentCreator({
|
|
|
2253
2253
|
) : void 0,
|
|
2254
2254
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2255
2255
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2256
|
-
|
|
2256
|
+
chunkNQML7IUC_cjs.AgentAvatarField,
|
|
2257
2257
|
{
|
|
2258
2258
|
picture,
|
|
2259
2259
|
isBusy: avatarBusy,
|
|
2260
|
-
canGenerate: isEdit ||
|
|
2260
|
+
canGenerate: isEdit || chunkNQML7IUC_cjs.isValidAgentName(values.name),
|
|
2261
2261
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2262
2262
|
}
|
|
2263
2263
|
),
|
|
@@ -2309,7 +2309,7 @@ function ConnectedAgentCreator({
|
|
|
2309
2309
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2310
2310
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2311
2311
|
] }),
|
|
2312
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2312
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2313
2313
|
]
|
|
2314
2314
|
}
|
|
2315
2315
|
) })
|
|
@@ -2701,7 +2701,7 @@ function useMemoryCount(enabled) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2703
2703
|
const { notify: notify19, openConversation, openDocument } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2704
|
-
const people =
|
|
2704
|
+
const people = chunkWV7BCGCK_cjs.useTaskPeople();
|
|
2705
2705
|
const canEditShared = react.useCanEditShared();
|
|
2706
2706
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2707
2707
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2727,7 +2727,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2727
2727
|
}, [documents]);
|
|
2728
2728
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2729
2729
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2730
|
-
|
|
2730
|
+
chunkNQML7IUC_cjs.TaskTable,
|
|
2731
2731
|
{
|
|
2732
2732
|
tasks,
|
|
2733
2733
|
isLoading,
|
|
@@ -2754,7 +2754,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2754
2754
|
}
|
|
2755
2755
|
),
|
|
2756
2756
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2757
|
-
|
|
2757
|
+
chunkWV7BCGCK_cjs.ConnectedTaskActivityDialog,
|
|
2758
2758
|
{
|
|
2759
2759
|
conversationId: activityFor.external_id,
|
|
2760
2760
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2793,7 +2793,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2793
2793
|
[workflows, skills, l.skillFiles]
|
|
2794
2794
|
);
|
|
2795
2795
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2796
|
-
const values =
|
|
2796
|
+
const values = chunkNQML7IUC_cjs.defaultTaskComposerValues(launchable, {
|
|
2797
2797
|
workflowId: workflow.id,
|
|
2798
2798
|
assignee: "agent",
|
|
2799
2799
|
inputs,
|
|
@@ -2913,7 +2913,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2913
2913
|
children,
|
|
2914
2914
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2915
2915
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2916
|
-
|
|
2916
|
+
chunkWV7BCGCK_cjs.ConnectedTaskComposer,
|
|
2917
2917
|
{
|
|
2918
2918
|
open: true,
|
|
2919
2919
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2935,7 +2935,7 @@ function AgentsGallery() {
|
|
|
2935
2935
|
cardTestIds
|
|
2936
2936
|
} = agentOptions;
|
|
2937
2937
|
const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2938
|
-
const tasksByAgent = react$1.useMemo(() =>
|
|
2938
|
+
const tasksByAgent = react$1.useMemo(() => chunkNQML7IUC_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2939
2939
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2940
2940
|
const { agents } = management;
|
|
2941
2941
|
const cardDetails = (agent) => details.map(
|
|
@@ -2950,7 +2950,7 @@ function AgentsGallery() {
|
|
|
2950
2950
|
) : 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)
|
|
2951
2951
|
);
|
|
2952
2952
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2953
|
-
|
|
2953
|
+
chunkNQML7IUC_cjs.AgentGallery,
|
|
2954
2954
|
{
|
|
2955
2955
|
count: agents.length,
|
|
2956
2956
|
onCreate: management.create,
|
|
@@ -2960,9 +2960,9 @@ function AgentsGallery() {
|
|
|
2960
2960
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2961
2961
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2962
2962
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2963
|
-
const progress = agentTasks[0] ?
|
|
2963
|
+
const progress = agentTasks[0] ? chunkNQML7IUC_cjs.goalProgress(agentTasks[0]) : null;
|
|
2964
2964
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2965
|
-
|
|
2965
|
+
chunkNQML7IUC_cjs.AgentCard,
|
|
2966
2966
|
{
|
|
2967
2967
|
name: displayName(agent),
|
|
2968
2968
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3374,7 +3374,7 @@ function ConnectedTagTable({
|
|
|
3374
3374
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3375
3375
|
const snapshot2 = (data) => {
|
|
3376
3376
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3377
|
-
const bytes =
|
|
3377
|
+
const bytes = chunkSNPK3R3O_cjs.tagTableDocx(data, {
|
|
3378
3378
|
title,
|
|
3379
3379
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3380
3380
|
});
|
|
@@ -3383,7 +3383,7 @@ function ConnectedTagTable({
|
|
|
3383
3383
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3384
3384
|
};
|
|
3385
3385
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3386
|
-
|
|
3386
|
+
chunkSNPK3R3O_cjs.TagTable,
|
|
3387
3387
|
{
|
|
3388
3388
|
...props,
|
|
3389
3389
|
table,
|
|
@@ -3760,9 +3760,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3760
3760
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3761
3761
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3762
3762
|
const download = (format) => {
|
|
3763
|
-
const entries =
|
|
3764
|
-
const blob = format === "docx" ? new Blob([
|
|
3765
|
-
documentTools.downloadBlob(blob,
|
|
3763
|
+
const entries = chunkSNPK3R3O_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3764
|
+
const blob = format === "docx" ? new Blob([chunkSNPK3R3O_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkSNPK3R3O_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3765
|
+
documentTools.downloadBlob(blob, chunkSNPK3R3O_cjs.glossaryFileName(title, format));
|
|
3766
3766
|
};
|
|
3767
3767
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3768
3768
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4291,7 +4291,7 @@ function KindSection({
|
|
|
4291
4291
|
{
|
|
4292
4292
|
testId: `tags-kind-${kind}`,
|
|
4293
4293
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4294
|
-
description:
|
|
4294
|
+
description: chunkSNPK3R3O_cjs.tagKindDescription(kind),
|
|
4295
4295
|
children: [
|
|
4296
4296
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4297
4297
|
"p",
|
|
@@ -4301,9 +4301,9 @@ function KindSection({
|
|
|
4301
4301
|
children: [
|
|
4302
4302
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4303
4303
|
"Extracting ",
|
|
4304
|
-
|
|
4304
|
+
chunkSNPK3R3O_cjs.entitiesPhrase().toLowerCase(),
|
|
4305
4305
|
" from ",
|
|
4306
|
-
|
|
4306
|
+
chunkSNPK3R3O_cjs.documentCount(extractingCount),
|
|
4307
4307
|
"\u2026"
|
|
4308
4308
|
]
|
|
4309
4309
|
}
|
|
@@ -4321,7 +4321,7 @@ function KindSection({
|
|
|
4321
4321
|
onOpenTag: ctx.onOpenTag,
|
|
4322
4322
|
onOpenRow: ctx.onOpenTag,
|
|
4323
4323
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4324
|
-
labels:
|
|
4324
|
+
labels: chunkSNPK3R3O_cjs.tagTableLabels(kind),
|
|
4325
4325
|
testId: `tags-table-${kind}`
|
|
4326
4326
|
}
|
|
4327
4327
|
)
|
|
@@ -4429,15 +4429,15 @@ function TagSection({
|
|
|
4429
4429
|
onOpenTag: ctx.onOpenTag,
|
|
4430
4430
|
onOpenRow: ctx.onOpenTag,
|
|
4431
4431
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4432
|
-
labels:
|
|
4432
|
+
labels: chunkSNPK3R3O_cjs.tagTableLabels(tag.kind),
|
|
4433
4433
|
testId: "tags-rows"
|
|
4434
4434
|
}
|
|
4435
4435
|
),
|
|
4436
4436
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4437
|
-
|
|
4437
|
+
chunkSNPK3R3O_cjs.TagDetail,
|
|
4438
4438
|
{
|
|
4439
4439
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4440
|
-
fieldLabels:
|
|
4440
|
+
fieldLabels: chunkSNPK3R3O_cjs.tagTableLabels(tag.kind),
|
|
4441
4441
|
row: detailRow,
|
|
4442
4442
|
fields: schema.data?.fields ?? [],
|
|
4443
4443
|
isLoading: detail.isLoading,
|
|
@@ -4451,7 +4451,7 @@ function TagSection({
|
|
|
4451
4451
|
throw e;
|
|
4452
4452
|
})
|
|
4453
4453
|
),
|
|
4454
|
-
labels:
|
|
4454
|
+
labels: chunkSNPK3R3O_cjs.tagDetailLabels(),
|
|
4455
4455
|
testId: "tags-detail"
|
|
4456
4456
|
}
|
|
4457
4457
|
)
|
|
@@ -4526,7 +4526,7 @@ function ConnectedTagsPage() {
|
|
|
4526
4526
|
const onDelete = async (t) => {
|
|
4527
4527
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4528
4528
|
const uses = browser.tagUseCount(t);
|
|
4529
|
-
const n2 =
|
|
4529
|
+
const n2 = chunkSNPK3R3O_cjs.tagsPageNouns();
|
|
4530
4530
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4531
4531
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4532
4532
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4547,11 +4547,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4547
4547
|
try {
|
|
4548
4548
|
await extract.mutateAsync(docIds);
|
|
4549
4549
|
notify19(
|
|
4550
|
-
`Extracting ${
|
|
4550
|
+
`Extracting ${chunkSNPK3R3O_cjs.entitiesPhrase().toLowerCase()} from ${chunkSNPK3R3O_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4551
4551
|
"info"
|
|
4552
4552
|
);
|
|
4553
4553
|
} catch (error) {
|
|
4554
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
4554
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkSNPK3R3O_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4555
4555
|
throw error;
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
@@ -4565,10 +4565,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4565
4565
|
onOpenTag: openTag,
|
|
4566
4566
|
onOpenTaggedItems
|
|
4567
4567
|
};
|
|
4568
|
-
const n =
|
|
4568
|
+
const n = chunkSNPK3R3O_cjs.tagsPageNouns();
|
|
4569
4569
|
const action = view === "person" || view === "organisation" ? {
|
|
4570
4570
|
label: "Extract",
|
|
4571
|
-
title: `Extract ${
|
|
4571
|
+
title: `Extract ${chunkSNPK3R3O_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4572
4572
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4573
4573
|
run: () => setExtracting(true),
|
|
4574
4574
|
testId: "tags-extract-entities"
|
|
@@ -4737,7 +4737,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4737
4737
|
}
|
|
4738
4738
|
),
|
|
4739
4739
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4740
|
-
|
|
4740
|
+
chunkSNPK3R3O_cjs.ExtractEntitiesDialog,
|
|
4741
4741
|
{
|
|
4742
4742
|
open: extracting,
|
|
4743
4743
|
onOpenChange: setExtracting,
|
|
@@ -7739,7 +7739,7 @@ function ConnectedFactsPage() {
|
|
|
7739
7739
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7740
7740
|
navSlotRef: setNavSlot,
|
|
7741
7741
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7742
|
-
|
|
7742
|
+
chunkSNPK3R3O_cjs.GridRowNavigator,
|
|
7743
7743
|
{
|
|
7744
7744
|
gridApi,
|
|
7745
7745
|
selectedId: editingId,
|
|
@@ -12760,13 +12760,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12760
12760
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12761
12761
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12762
12762
|
if (!workspace) {
|
|
12763
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12764
12764
|
}
|
|
12765
12765
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12766
12766
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
|
|
12767
12767
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
|
|
12768
12768
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12769
|
-
|
|
12769
|
+
chunkSNPK3R3O_cjs.EntityIdentityBar,
|
|
12770
12770
|
{
|
|
12771
12771
|
testId: "workspace-identity-bar",
|
|
12772
12772
|
canEdit: isOwner,
|
|
@@ -12783,7 +12783,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12783
12783
|
label: "Name",
|
|
12784
12784
|
value: workspace.name,
|
|
12785
12785
|
placeholder: "Untitled",
|
|
12786
|
-
maxLength:
|
|
12786
|
+
maxLength: chunkSNPK3R3O_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12787
12787
|
valueClassName: "truncate text-base font-semibold",
|
|
12788
12788
|
testId: "workspace-home-title",
|
|
12789
12789
|
hideLabel: true,
|
|
@@ -14468,36 +14468,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
14468
14468
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
14469
14469
|
const { apiBaseUrl } = chunkTKHCIHE2_cjs.useBlocksEnvironment().runtimeConfig;
|
|
14470
14470
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
14471
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14471
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { size: "md", children: [
|
|
14472
14472
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14473
|
-
|
|
14473
|
+
chunkNQML7IUC_cjs.ConsentHeader,
|
|
14474
14474
|
{
|
|
14475
14475
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
14476
14476
|
title: "Approve ARBI for SharePoint access",
|
|
14477
14477
|
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."
|
|
14478
14478
|
}
|
|
14479
14479
|
),
|
|
14480
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14481
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14482
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14480
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_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." }),
|
|
14481
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_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." }),
|
|
14482
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
14483
14483
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14484
|
-
|
|
14484
|
+
chunkNQML7IUC_cjs.ConsentBulletList,
|
|
14485
14485
|
{
|
|
14486
14486
|
items: [
|
|
14487
14487
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14488
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14488
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
14489
14489
|
" \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."
|
|
14490
14490
|
] }),
|
|
14491
14491
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14492
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14492
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
14493
14493
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
14494
14494
|
] })
|
|
14495
14495
|
]
|
|
14496
14496
|
}
|
|
14497
14497
|
),
|
|
14498
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14498
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_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." }),
|
|
14499
14499
|
/* @__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" }) }),
|
|
14500
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14500
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_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." })
|
|
14501
14501
|
] })
|
|
14502
14502
|
] }) });
|
|
14503
14503
|
}
|
|
@@ -17231,7 +17231,7 @@ function ConnectedWorkspaceList({
|
|
|
17231
17231
|
}
|
|
17232
17232
|
);
|
|
17233
17233
|
}
|
|
17234
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17234
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17235
17235
|
if (list.error) {
|
|
17236
17236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17237
17237
|
chunkH7PHOTX2_cjs.HomeLoadError,
|
|
@@ -17304,7 +17304,7 @@ function ConnectedWorkspaceList({
|
|
|
17304
17304
|
workspaceState
|
|
17305
17305
|
}
|
|
17306
17306
|
) })
|
|
17307
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17307
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17308
17308
|
WorkspaceTableView,
|
|
17309
17309
|
{
|
|
17310
17310
|
list,
|
|
@@ -17494,7 +17494,7 @@ function ConnectedProjectsListPage({
|
|
|
17494
17494
|
};
|
|
17495
17495
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17496
17496
|
const [search, setSearch] = react$1.useState("");
|
|
17497
|
-
const { projects, isLoading } =
|
|
17497
|
+
const { projects, isLoading } = chunkWV7BCGCK_cjs.useProjectSummaries();
|
|
17498
17498
|
const rows = react$1.useMemo(() => {
|
|
17499
17499
|
const q = search.trim().toLowerCase();
|
|
17500
17500
|
if (!q) return projects;
|
|
@@ -17565,7 +17565,7 @@ function ConnectedProjectsListPage({
|
|
|
17565
17565
|
}
|
|
17566
17566
|
),
|
|
17567
17567
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17568
|
-
|
|
17568
|
+
chunkSNPK3R3O_cjs.Toolbar,
|
|
17569
17569
|
{
|
|
17570
17570
|
search,
|
|
17571
17571
|
onSearch: setSearch,
|
|
@@ -17627,7 +17627,7 @@ function ProjectDetailsForm({
|
|
|
17627
17627
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17628
17628
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17629
17629
|
const update = react.useUpdateProjectFields();
|
|
17630
|
-
const workspace =
|
|
17630
|
+
const workspace = chunkWV7BCGCK_cjs.primaryProjectWorkspace(project);
|
|
17631
17631
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17632
17632
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17633
17633
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -18689,11 +18689,11 @@ function ConnectedProjectPage({
|
|
|
18689
18689
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18690
18690
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18691
18691
|
};
|
|
18692
|
-
const { project, usage, isLoading } =
|
|
18692
|
+
const { project, usage, isLoading } = chunkWV7BCGCK_cjs.useProjectSummary(projectId);
|
|
18693
18693
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
18694
18694
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
18695
18695
|
const selectWorkspace = chunk7NLO7ASW_cjs.useSelectWorkspace();
|
|
18696
|
-
const workspace = project ?
|
|
18696
|
+
const workspace = project ? chunkWV7BCGCK_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18697
18697
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18698
18698
|
react$1.useEffect(() => {
|
|
18699
18699
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -21403,7 +21403,7 @@ function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
|
21403
21403
|
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkOHHKBURG_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
21404
21404
|
[]
|
|
21405
21405
|
);
|
|
21406
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21406
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
21407
21407
|
}
|
|
21408
21408
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
21409
21409
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
@@ -21520,7 +21520,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21520
21520
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
21521
21521
|
if (editAgent) {
|
|
21522
21522
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21523
|
-
|
|
21523
|
+
chunkNQML7IUC_cjs.AgentEditView,
|
|
21524
21524
|
{
|
|
21525
21525
|
agentName: editAgent.name,
|
|
21526
21526
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21536,7 +21536,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21536
21536
|
}
|
|
21537
21537
|
if (view === "main") {
|
|
21538
21538
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21539
|
-
|
|
21539
|
+
chunkNQML7IUC_cjs.AgentMainView,
|
|
21540
21540
|
{
|
|
21541
21541
|
onConnectExternal: () => setView("connect"),
|
|
21542
21542
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21552,11 +21552,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21552
21552
|
}
|
|
21553
21553
|
if (result) {
|
|
21554
21554
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21555
|
-
|
|
21555
|
+
chunkNQML7IUC_cjs.AgentCreatedView,
|
|
21556
21556
|
{
|
|
21557
21557
|
email: result.email,
|
|
21558
21558
|
signingKey: result.signingKey,
|
|
21559
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21559
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
21560
21560
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
21561
21561
|
isConfigOpen: configOpen,
|
|
21562
21562
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -21565,7 +21565,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21565
21565
|
);
|
|
21566
21566
|
}
|
|
21567
21567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21568
|
-
|
|
21568
|
+
chunkNQML7IUC_cjs.AgentCreateView,
|
|
21569
21569
|
{
|
|
21570
21570
|
name,
|
|
21571
21571
|
onNameChange: setName,
|
|
@@ -21760,7 +21760,7 @@ function ConnectedNewThreadDialog({
|
|
|
21760
21760
|
});
|
|
21761
21761
|
const parentOptions = react$1.useMemo(() => {
|
|
21762
21762
|
const leaf = { external_id: "__new__" };
|
|
21763
|
-
return
|
|
21763
|
+
return chunkNQML7IUC_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
21764
21764
|
id: t.external_id,
|
|
21765
21765
|
name: t.title?.trim() || "Untitled task"
|
|
21766
21766
|
}));
|
|
@@ -21807,7 +21807,7 @@ function ConnectedNewThreadDialog({
|
|
|
21807
21807
|
}
|
|
21808
21808
|
};
|
|
21809
21809
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21810
|
-
|
|
21810
|
+
chunkNQML7IUC_cjs.NewThreadDialog,
|
|
21811
21811
|
{
|
|
21812
21812
|
open,
|
|
21813
21813
|
onOpenChange,
|
|
@@ -21985,7 +21985,7 @@ function recentConversations(conversations) {
|
|
|
21985
21985
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
21986
21986
|
id: c.external_id,
|
|
21987
21987
|
title: c.title?.trim() || "Untitled thread",
|
|
21988
|
-
subtitle: c.status ? [
|
|
21988
|
+
subtitle: c.status ? [chunkNQML7IUC_cjs.STATUS_LABELS[chunkNQML7IUC_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"}`,
|
|
21989
21989
|
time: timeAndDate(c.updated_at)
|
|
21990
21990
|
}));
|
|
21991
21991
|
}
|
|
@@ -22442,7 +22442,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22442
22442
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
22443
22443
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
22444
22444
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
22445
|
-
|
|
22445
|
+
chunkNQML7IUC_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
22446
22446
|
};
|
|
22447
22447
|
const setFilesView = (mode) => () => chunkADDQKZ5I_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
22448
22448
|
const actions = [
|
|
@@ -26980,7 +26980,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
26980
26980
|
}
|
|
26981
26981
|
})();
|
|
26982
26982
|
}, [authenticated, claimId, key]);
|
|
26983
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26983
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
26984
26984
|
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: [
|
|
26985
26985
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
26986
26986
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -33110,7 +33110,7 @@ function useBatchCompleteToasts() {
|
|
|
33110
33110
|
}
|
|
33111
33111
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33112
33112
|
} else if (message.batch_type === "entity_extract") {
|
|
33113
|
-
say(`${
|
|
33113
|
+
say(`${chunkSNPK3R3O_cjs.entitiesPhrase()} extracted from ${chunkSNPK3R3O_cjs.documentCount(docIds.length)}`, "success", {
|
|
33114
33114
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33115
33115
|
});
|
|
33116
33116
|
} else if (message.batch_type === "upload") {
|
|
@@ -33925,10 +33925,10 @@ var DocumentReviewCard = react$1.lazy(
|
|
|
33925
33925
|
() => import('../DocumentReviewCard-M53XFLI2.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
33926
33926
|
);
|
|
33927
33927
|
var FilesViewerDialog = react$1.lazy(
|
|
33928
|
-
() => import('../FilesViewerDialog-
|
|
33928
|
+
() => import('../FilesViewerDialog-2QCCRWF2.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
33929
33929
|
);
|
|
33930
33930
|
function defaultReviewCard(props) {
|
|
33931
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33931
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
33932
33932
|
}
|
|
33933
33933
|
function ConnectedFilesPage({
|
|
33934
33934
|
isModal = false,
|
|
@@ -34506,7 +34506,7 @@ function ConnectedFilesPage({
|
|
|
34506
34506
|
viewMode === "grid" ? (
|
|
34507
34507
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
34508
34508
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34509
|
-
|
|
34509
|
+
chunkSNPK3R3O_cjs.GridRowNavigator,
|
|
34510
34510
|
{
|
|
34511
34511
|
gridApi,
|
|
34512
34512
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -34809,7 +34809,7 @@ function ProcessingSection({
|
|
|
34809
34809
|
tasks,
|
|
34810
34810
|
onDelete
|
|
34811
34811
|
}) {
|
|
34812
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34812
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
34813
34813
|
}
|
|
34814
34814
|
function ConnectedDocumentProcessingPanel({
|
|
34815
34815
|
workspaceId,
|
|
@@ -36943,7 +36943,7 @@ function GuidedRuns() {
|
|
|
36943
36943
|
chunkOHHKBURG_cjs.useRemoteControlSessionReset();
|
|
36944
36944
|
const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
|
|
36945
36945
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36946
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36946
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
36947
36947
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
36948
36948
|
] });
|
|
36949
36949
|
}
|
|
@@ -36977,7 +36977,7 @@ function ConnectedAppRuntime({
|
|
|
36977
36977
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
36978
36978
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
36979
36979
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
36980
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
36980
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkSNPK3R3O_cjs.KIT_CHUNK_LOADERS] }),
|
|
36981
36981
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
36982
36982
|
] });
|
|
36983
36983
|
}
|
|
@@ -37999,7 +37999,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
37999
37999
|
function useWorkflowLaunch() {
|
|
38000
38000
|
const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
|
|
38001
38001
|
const launch = react$1.useCallback(
|
|
38002
|
-
(workflowId, options = {}) =>
|
|
38002
|
+
(workflowId, options = {}) => chunkNQML7IUC_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
38003
38003
|
[]
|
|
38004
38004
|
);
|
|
38005
38005
|
const itemsFor = react$1.useCallback(
|
|
@@ -38028,8 +38028,8 @@ function useWorkflowLaunch() {
|
|
|
38028
38028
|
return { launch, itemsFor, scopeItemsFor };
|
|
38029
38029
|
}
|
|
38030
38030
|
function Inner() {
|
|
38031
|
-
const request =
|
|
38032
|
-
const close =
|
|
38031
|
+
const request = chunkNQML7IUC_cjs.useWorkflowLaunchRequest();
|
|
38032
|
+
const close = chunkNQML7IUC_cjs.closeWorkflowLaunch;
|
|
38033
38033
|
const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
|
|
38034
38034
|
const run = chunk2F57IO7S_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
38035
38035
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -38067,7 +38067,7 @@ function Inner() {
|
|
|
38067
38067
|
);
|
|
38068
38068
|
}
|
|
38069
38069
|
function WorkflowLaunchHost() {
|
|
38070
|
-
return
|
|
38070
|
+
return chunkNQML7IUC_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
38071
38071
|
}
|
|
38072
38072
|
function isNeedsConfirmationDetail(detail) {
|
|
38073
38073
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -38512,7 +38512,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
38512
38512
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
38513
38513
|
};
|
|
38514
38514
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38515
|
-
|
|
38515
|
+
chunkNQML7IUC_cjs.WorkflowRunStatus,
|
|
38516
38516
|
{
|
|
38517
38517
|
steps,
|
|
38518
38518
|
states,
|
|
@@ -38546,7 +38546,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
38546
38546
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
38547
38547
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
38548
38548
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38549
|
-
|
|
38549
|
+
chunkNQML7IUC_cjs.ThreadStatusLine,
|
|
38550
38550
|
{
|
|
38551
38551
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
38552
38552
|
className: "h-full",
|
|
@@ -39005,7 +39005,7 @@ function AgentBarShell({
|
|
|
39005
39005
|
}, [isStepsExpanded, steps]);
|
|
39006
39006
|
const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
39007
39007
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39008
|
-
|
|
39008
|
+
chunkNQML7IUC_cjs.AgentBar,
|
|
39009
39009
|
{
|
|
39010
39010
|
className,
|
|
39011
39011
|
testId,
|
|
@@ -39078,7 +39078,7 @@ function AgentControlBar({
|
|
|
39078
39078
|
}
|
|
39079
39079
|
);
|
|
39080
39080
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
39081
|
-
|
|
39081
|
+
chunkNQML7IUC_cjs.AgentBarStatus,
|
|
39082
39082
|
{
|
|
39083
39083
|
state: showState ? controlState : void 0,
|
|
39084
39084
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -39120,7 +39120,7 @@ function AgentControlBar({
|
|
|
39120
39120
|
];
|
|
39121
39121
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39122
39122
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39123
|
-
|
|
39123
|
+
chunkNQML7IUC_cjs.AgentBarIconButton,
|
|
39124
39124
|
{
|
|
39125
39125
|
onClick: onStop,
|
|
39126
39126
|
title: "Stop",
|
|
@@ -39129,22 +39129,22 @@ function AgentControlBar({
|
|
|
39129
39129
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
39130
39130
|
}
|
|
39131
39131
|
),
|
|
39132
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39132
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentBarMenu, { items: menuItems })
|
|
39133
39133
|
] });
|
|
39134
39134
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
39135
39135
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
39136
39136
|
);
|
|
39137
39137
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
39138
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39138
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.AgentBarNotes, { children: [
|
|
39139
39139
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39140
|
-
|
|
39140
|
+
chunkNQML7IUC_cjs.AgentBarQueuedNote,
|
|
39141
39141
|
{
|
|
39142
39142
|
text: message.content ?? "",
|
|
39143
39143
|
isAcknowledged: message.acknowledged
|
|
39144
39144
|
},
|
|
39145
39145
|
index
|
|
39146
39146
|
)),
|
|
39147
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39147
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
39148
39148
|
] }) : null;
|
|
39149
39149
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39150
39150
|
AgentBarShell,
|
|
@@ -40285,7 +40285,7 @@ function ConversationThread({
|
|
|
40285
40285
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
40286
40286
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40287
40287
|
] })
|
|
40288
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40288
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkOHHKBURG_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
40289
40289
|
ConnectedConversationEmpty,
|
|
40290
40290
|
{
|
|
40291
40291
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -40728,7 +40728,7 @@ function ConnectedThreadsPage({
|
|
|
40728
40728
|
};
|
|
40729
40729
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
40730
40730
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40731
|
-
|
|
40731
|
+
chunkNQML7IUC_cjs.ConversationListView,
|
|
40732
40732
|
{
|
|
40733
40733
|
showHeader,
|
|
40734
40734
|
conversations: tasks,
|
|
@@ -40747,7 +40747,7 @@ function ConnectedThreadsPage({
|
|
|
40747
40747
|
renderLabels: threadLabels.renderLabels,
|
|
40748
40748
|
labelText: threadLabels.labelText,
|
|
40749
40749
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40750
|
-
|
|
40750
|
+
chunkNQML7IUC_cjs.ConversationTurnSpeaker,
|
|
40751
40751
|
{
|
|
40752
40752
|
variant: "icon",
|
|
40753
40753
|
role: row2.last_message_role,
|
|
@@ -41628,7 +41628,7 @@ function ConnectedConversationPage({
|
|
|
41628
41628
|
);
|
|
41629
41629
|
const { data: workspaceTags = [] } = react.useTags();
|
|
41630
41630
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
41631
|
-
const historyCount =
|
|
41631
|
+
const historyCount = chunkNQML7IUC_cjs.filterConversationRows(
|
|
41632
41632
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
41633
41633
|
threadFilter,
|
|
41634
41634
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -41710,7 +41710,7 @@ function ConnectedConversationPage({
|
|
|
41710
41710
|
] })
|
|
41711
41711
|
}
|
|
41712
41712
|
),
|
|
41713
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41713
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkWV7BCGCK_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
41714
41714
|
] }),
|
|
41715
41715
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41716
41716
|
ConversationThread,
|
|
@@ -41919,7 +41919,7 @@ function SsoResendVerificationButton({
|
|
|
41919
41919
|
onClick: async () => handleResendEmailVerification(),
|
|
41920
41920
|
disabled: loading || disabled,
|
|
41921
41921
|
"aria-label": "Resend verification email",
|
|
41922
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
41922
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkSNPK3R3O_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
41923
41923
|
"Didn't get a verification email? ",
|
|
41924
41924
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
41925
41925
|
] })
|
|
@@ -42610,27 +42610,27 @@ function ConnectedOAuthConsentPage({
|
|
|
42610
42610
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
42611
42611
|
}
|
|
42612
42612
|
if (error && !params) {
|
|
42613
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42613
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
42614
42614
|
}
|
|
42615
42615
|
if (!params) {
|
|
42616
42616
|
return null;
|
|
42617
42617
|
}
|
|
42618
42618
|
if (clientInfo?.isLocalAgentFlow) {
|
|
42619
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42619
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_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." }) });
|
|
42620
42620
|
}
|
|
42621
42621
|
if (!isAuthenticated2) {
|
|
42622
42622
|
return null;
|
|
42623
42623
|
}
|
|
42624
42624
|
if (callbackUrl) {
|
|
42625
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42626
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42625
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { size: "md", children: [
|
|
42626
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
42627
42627
|
"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",
|
|
42628
42628
|
" ",
|
|
42629
42629
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
42630
42630
|
] }),
|
|
42631
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42632
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42633
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42631
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
42632
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
42633
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentText, { variant: "hint", children: [
|
|
42634
42634
|
"In Claude Code, paste the URL at the prompt that says",
|
|
42635
42635
|
" ",
|
|
42636
42636
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -42639,17 +42639,17 @@ function ConnectedOAuthConsentPage({
|
|
|
42639
42639
|
] })
|
|
42640
42640
|
] }) });
|
|
42641
42641
|
}
|
|
42642
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42643
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42644
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42642
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { children: [
|
|
42643
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
42644
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
42645
42645
|
" is requesting access to your ",
|
|
42646
42646
|
appName,
|
|
42647
42647
|
" workspace."
|
|
42648
42648
|
] }),
|
|
42649
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42650
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42651
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42652
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42649
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
42650
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
42651
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
42652
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentFootnote, { children: footnote })
|
|
42653
42653
|
] }) });
|
|
42654
42654
|
}
|
|
42655
42655
|
function ConnectedSharedFilesPage({
|
|
@@ -43190,7 +43190,7 @@ function ShellNavigationProvider({
|
|
|
43190
43190
|
);
|
|
43191
43191
|
}
|
|
43192
43192
|
var ConnectedPresentation = react$1.lazy(
|
|
43193
|
-
() => import('../ConnectedPresentation-
|
|
43193
|
+
() => import('../ConnectedPresentation-5DOJ35XL.cjs').then((m) => ({ default: m.ConnectedPresentation }))
|
|
43194
43194
|
);
|
|
43195
43195
|
function PresentationSlot() {
|
|
43196
43196
|
const session = react.useArbiSessionStore();
|
|
@@ -43374,7 +43374,7 @@ function ConnectedTipBar({
|
|
|
43374
43374
|
workspaceOpen,
|
|
43375
43375
|
...state
|
|
43376
43376
|
};
|
|
43377
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
43377
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkSNPK3R3O_cjs.useTipsPlacement({
|
|
43378
43378
|
registry,
|
|
43379
43379
|
context,
|
|
43380
43380
|
state: situation,
|
|
@@ -43794,83 +43794,83 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
43794
43794
|
});
|
|
43795
43795
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43796
43796
|
enumerable: true,
|
|
43797
|
-
get: function () { return
|
|
43797
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedTaskActivityDialog; }
|
|
43798
43798
|
});
|
|
43799
43799
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43800
43800
|
enumerable: true,
|
|
43801
|
-
get: function () { return
|
|
43801
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedTaskComposer; }
|
|
43802
43802
|
});
|
|
43803
43803
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
43804
43804
|
enumerable: true,
|
|
43805
|
-
get: function () { return
|
|
43805
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedThreadTaskBar; }
|
|
43806
43806
|
});
|
|
43807
43807
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43808
43808
|
enumerable: true,
|
|
43809
|
-
get: function () { return
|
|
43809
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedWorkflowHistory; }
|
|
43810
43810
|
});
|
|
43811
43811
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
43812
43812
|
enumerable: true,
|
|
43813
|
-
get: function () { return
|
|
43813
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedWorkflowRunPage; }
|
|
43814
43814
|
});
|
|
43815
43815
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
43816
43816
|
enumerable: true,
|
|
43817
|
-
get: function () { return
|
|
43817
|
+
get: function () { return chunkWV7BCGCK_cjs.ConnectedWorkflowRunner; }
|
|
43818
43818
|
});
|
|
43819
43819
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
43820
43820
|
enumerable: true,
|
|
43821
|
-
get: function () { return
|
|
43821
|
+
get: function () { return chunkWV7BCGCK_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
43822
43822
|
});
|
|
43823
43823
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
43824
43824
|
enumerable: true,
|
|
43825
|
-
get: function () { return
|
|
43825
|
+
get: function () { return chunkWV7BCGCK_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
43826
43826
|
});
|
|
43827
43827
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
43828
43828
|
enumerable: true,
|
|
43829
|
-
get: function () { return
|
|
43829
|
+
get: function () { return chunkWV7BCGCK_cjs.WorkflowRunThread; }
|
|
43830
43830
|
});
|
|
43831
43831
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
43832
43832
|
enumerable: true,
|
|
43833
|
-
get: function () { return
|
|
43833
|
+
get: function () { return chunkWV7BCGCK_cjs.WorkflowRunWorkspaceChangedError; }
|
|
43834
43834
|
});
|
|
43835
43835
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
43836
43836
|
enumerable: true,
|
|
43837
|
-
get: function () { return
|
|
43837
|
+
get: function () { return chunkWV7BCGCK_cjs.buildProjectSummaries; }
|
|
43838
43838
|
});
|
|
43839
43839
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
43840
43840
|
enumerable: true,
|
|
43841
|
-
get: function () { return
|
|
43841
|
+
get: function () { return chunkWV7BCGCK_cjs.primaryProjectWorkspace; }
|
|
43842
43842
|
});
|
|
43843
43843
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
43844
43844
|
enumerable: true,
|
|
43845
|
-
get: function () { return
|
|
43845
|
+
get: function () { return chunkWV7BCGCK_cjs.useEnsureRequiredLabels; }
|
|
43846
43846
|
});
|
|
43847
43847
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
43848
43848
|
enumerable: true,
|
|
43849
|
-
get: function () { return
|
|
43849
|
+
get: function () { return chunkWV7BCGCK_cjs.useProjectSummaries; }
|
|
43850
43850
|
});
|
|
43851
43851
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
43852
43852
|
enumerable: true,
|
|
43853
|
-
get: function () { return
|
|
43853
|
+
get: function () { return chunkWV7BCGCK_cjs.useProjectSummary; }
|
|
43854
43854
|
});
|
|
43855
43855
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43856
43856
|
enumerable: true,
|
|
43857
|
-
get: function () { return
|
|
43857
|
+
get: function () { return chunkWV7BCGCK_cjs.useRenderTaskPerson; }
|
|
43858
43858
|
});
|
|
43859
43859
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
43860
43860
|
enumerable: true,
|
|
43861
|
-
get: function () { return
|
|
43861
|
+
get: function () { return chunkWV7BCGCK_cjs.useRequiredLabels; }
|
|
43862
43862
|
});
|
|
43863
43863
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43864
43864
|
enumerable: true,
|
|
43865
|
-
get: function () { return
|
|
43865
|
+
get: function () { return chunkWV7BCGCK_cjs.useTaskPeople; }
|
|
43866
43866
|
});
|
|
43867
43867
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43868
43868
|
enumerable: true,
|
|
43869
|
-
get: function () { return
|
|
43869
|
+
get: function () { return chunkWV7BCGCK_cjs.useWorkflowsPageState; }
|
|
43870
43870
|
});
|
|
43871
43871
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43872
43872
|
enumerable: true,
|
|
43873
|
-
get: function () { return
|
|
43873
|
+
get: function () { return chunkWV7BCGCK_cjs.workflowRunView; }
|
|
43874
43874
|
});
|
|
43875
43875
|
Object.defineProperty(exports, "AgentSteps", {
|
|
43876
43876
|
enumerable: true,
|