@arbidocs/blocks 0.4.139 → 0.4.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/index.cjs +266 -266
- package/dist/agents/index.js +9 -9
- package/dist/calls/index.cjs +4 -4
- package/dist/calls/index.js +3 -3
- package/dist/chat/index.cjs +138 -138
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-ULEDHANM.cjs → chunk-2UUNSHDI.cjs} +13 -13
- package/dist/{chunk-ULEDHANM.cjs.map → chunk-2UUNSHDI.cjs.map} +1 -1
- package/dist/{chunk-K3HNLWZZ.cjs → chunk-3BFGL2JL.cjs} +4 -4
- package/dist/{chunk-K3HNLWZZ.cjs.map → chunk-3BFGL2JL.cjs.map} +1 -1
- package/dist/{chunk-XDQXDWE7.js → chunk-3RJN2VTL.js} +3 -3
- package/dist/{chunk-XDQXDWE7.js.map → chunk-3RJN2VTL.js.map} +1 -1
- package/dist/{chunk-22WFGXG2.js → chunk-3ZYOASAX.js} +3 -3
- package/dist/{chunk-22WFGXG2.js.map → chunk-3ZYOASAX.js.map} +1 -1
- package/dist/{chunk-453PNNNW.js → chunk-5BXEYYH6.js} +3 -3
- package/dist/{chunk-453PNNNW.js.map → chunk-5BXEYYH6.js.map} +1 -1
- package/dist/{chunk-MABUMUCA.cjs → chunk-7NDW4KF4.cjs} +3 -3
- package/dist/{chunk-MABUMUCA.cjs.map → chunk-7NDW4KF4.cjs.map} +1 -1
- package/dist/{chunk-XOC44HQY.cjs → chunk-7YLJHTDC.cjs} +3 -3
- package/dist/{chunk-XOC44HQY.cjs.map → chunk-7YLJHTDC.cjs.map} +1 -1
- package/dist/{chunk-5UXDUOOB.cjs → chunk-CQ4MFKFC.cjs} +37 -37
- package/dist/{chunk-5UXDUOOB.cjs.map → chunk-CQ4MFKFC.cjs.map} +1 -1
- package/dist/{chunk-ZAVEMQ37.cjs → chunk-DWZXSPMB.cjs} +3 -3
- package/dist/{chunk-ZAVEMQ37.cjs.map → chunk-DWZXSPMB.cjs.map} +1 -1
- package/dist/{chunk-DN55PRGS.js → chunk-ETXYVO6E.js} +3 -3
- package/dist/{chunk-DN55PRGS.js.map → chunk-ETXYVO6E.js.map} +1 -1
- package/dist/{chunk-5HFPRI3W.js → chunk-FUTMU4FR.js} +3 -3
- package/dist/{chunk-5HFPRI3W.js.map → chunk-FUTMU4FR.js.map} +1 -1
- package/dist/{chunk-KTFDUSON.js → chunk-JO3EMZ4X.js} +3 -3
- package/dist/{chunk-KTFDUSON.js.map → chunk-JO3EMZ4X.js.map} +1 -1
- package/dist/{chunk-O4ZIQDUT.cjs → chunk-OAL3B2ZU.cjs} +5 -5
- package/dist/{chunk-O4ZIQDUT.cjs.map → chunk-OAL3B2ZU.cjs.map} +1 -1
- package/dist/{chunk-7X255TOM.cjs → chunk-OAQEUTNJ.cjs} +5 -5
- package/dist/{chunk-7X255TOM.cjs.map → chunk-OAQEUTNJ.cjs.map} +1 -1
- package/dist/{chunk-PC5KVHX3.js → chunk-ON3TKY5Y.js} +4 -4
- package/dist/{chunk-PC5KVHX3.js.map → chunk-ON3TKY5Y.js.map} +1 -1
- package/dist/{chunk-DJM7DLCT.cjs → chunk-OPTBQSCV.cjs} +3 -3
- package/dist/{chunk-DJM7DLCT.cjs.map → chunk-OPTBQSCV.cjs.map} +1 -1
- package/dist/{chunk-ZXAWOLBQ.cjs → chunk-QIMVTGKS.cjs} +4 -4
- package/dist/{chunk-ZXAWOLBQ.cjs.map → chunk-QIMVTGKS.cjs.map} +1 -1
- package/dist/{chunk-MTPWZQTL.js → chunk-UGCKUXRV.js} +3 -3
- package/dist/{chunk-MTPWZQTL.js.map → chunk-UGCKUXRV.js.map} +1 -1
- package/dist/{chunk-ECERC6TI.js → chunk-VHJHY7TT.js} +3 -3
- package/dist/{chunk-ECERC6TI.js.map → chunk-VHJHY7TT.js.map} +1 -1
- package/dist/{chunk-OGP6MQXQ.cjs → chunk-WS5EX7DN.cjs} +3 -3
- package/dist/{chunk-OGP6MQXQ.cjs.map → chunk-WS5EX7DN.cjs.map} +1 -1
- package/dist/{chunk-6QMWP5IU.js → chunk-YFF3GTJQ.js} +7 -7
- package/dist/{chunk-6QMWP5IU.js.map → chunk-YFF3GTJQ.js.map} +1 -1
- package/dist/{chunk-7QUUZBQZ.js → chunk-YWY2KIX2.js} +9 -9
- package/dist/{chunk-7QUUZBQZ.js.map → chunk-YWY2KIX2.js.map} +1 -1
- package/dist/citations/index.cjs +1 -1
- package/dist/citations/index.js +1 -1
- package/dist/collaboration/index.cjs +42 -42
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +5 -5
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +104 -104
- package/dist/connect/index.js +17 -17
- package/dist/facts/index.cjs +5 -5
- package/dist/facts/index.js +5 -5
- package/dist/files/index.cjs +6 -6
- package/dist/files/index.js +6 -6
- package/dist/home/index.cjs +20 -20
- package/dist/home/index.js +5 -5
- package/dist/index.cjs +812 -812
- package/dist/index.js +21 -21
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +41 -41
- package/dist/settings/index.js +5 -5
- package/dist/shell/index.cjs +12 -12
- package/dist/shell/index.js +4 -4
- package/dist/studio/index.cjs +6 -6
- package/dist/studio/index.js +5 -5
- package/dist/workflow-canvas/index.cjs +22 -22
- package/dist/workflow-canvas/index.js +9 -9
- package/dist/workspaces/index.cjs +2 -2
- package/dist/workspaces/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
package/dist/connect/index.cjs
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkQIMVTGKS_cjs = require('../chunk-QIMVTGKS.cjs');
|
|
5
|
+
var chunk3BFGL2JL_cjs = require('../chunk-3BFGL2JL.cjs');
|
|
6
6
|
var chunkJZNXRMLH_cjs = require('../chunk-JZNXRMLH.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk7NDW4KF4_cjs = require('../chunk-7NDW4KF4.cjs');
|
|
8
8
|
var chunkGFNELPDP_cjs = require('../chunk-GFNELPDP.cjs');
|
|
9
9
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
10
10
|
require('../chunk-S24XEVPS.cjs');
|
|
11
11
|
require('../chunk-V5OAXIBN.cjs');
|
|
12
12
|
require('../chunk-5FYU7ZIU.cjs');
|
|
13
13
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkOAQEUTNJ_cjs = require('../chunk-OAQEUTNJ.cjs');
|
|
15
15
|
var chunkV46W7YLI_cjs = require('../chunk-V46W7YLI.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkO6IEZDRC_cjs = require('../chunk-O6IEZDRC.cjs');
|
|
17
17
|
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
18
18
|
require('../chunk-RC25WMVB.cjs');
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
require('../chunk-OGP6MQXQ.cjs');
|
|
19
|
+
var chunk2UUNSHDI_cjs = require('../chunk-2UUNSHDI.cjs');
|
|
20
|
+
require('../chunk-WS5EX7DN.cjs');
|
|
22
21
|
var chunkMIDXCYZB_cjs = require('../chunk-MIDXCYZB.cjs');
|
|
23
22
|
require('../chunk-ZW6FPIFC.cjs');
|
|
24
23
|
require('../chunk-DETZZBG2.cjs');
|
|
25
24
|
require('../chunk-R26BK7YL.cjs');
|
|
26
25
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
27
26
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
28
|
-
var
|
|
27
|
+
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
28
|
+
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
29
29
|
require('../chunk-ADOKTJHV.cjs');
|
|
30
30
|
var chunk6YTHQ73P_cjs = require('../chunk-6YTHQ73P.cjs');
|
|
31
31
|
var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
|
|
32
|
-
var
|
|
33
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
34
|
-
var chunkXOC44HQY_cjs = require('../chunk-XOC44HQY.cjs');
|
|
32
|
+
var chunk7YLJHTDC_cjs = require('../chunk-7YLJHTDC.cjs');
|
|
35
33
|
require('../chunk-B6MVQCXW.cjs');
|
|
36
34
|
var chunkJKB7WT7L_cjs = require('../chunk-JKB7WT7L.cjs');
|
|
37
35
|
var chunkOWCEQKAR_cjs = require('../chunk-OWCEQKAR.cjs');
|
|
38
36
|
require('../chunk-7UTB4PHM.cjs');
|
|
39
37
|
require('../chunk-32HW2Q33.cjs');
|
|
40
|
-
require('../chunk-PPCATBOY.cjs');
|
|
41
|
-
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
42
|
-
var chunkO6IEZDRC_cjs = require('../chunk-O6IEZDRC.cjs');
|
|
43
|
-
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
44
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
45
38
|
require('../chunk-FX3K6LNZ.cjs');
|
|
39
|
+
var chunkDWZXSPMB_cjs = require('../chunk-DWZXSPMB.cjs');
|
|
40
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
41
|
+
require('../chunk-PPCATBOY.cjs');
|
|
46
42
|
require('../chunk-MHVNT4J3.cjs');
|
|
43
|
+
var chunk5FTIHRZH_cjs = require('../chunk-5FTIHRZH.cjs');
|
|
44
|
+
var chunkC4WSHRR6_cjs = require('../chunk-C4WSHRR6.cjs');
|
|
45
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
46
|
+
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
47
47
|
require('../chunk-DES3K4SD.cjs');
|
|
48
48
|
var react = require('react');
|
|
49
49
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -135,7 +135,7 @@ function ConnectedWorkspaceActivity({
|
|
|
135
135
|
[feed.data]
|
|
136
136
|
);
|
|
137
137
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
138
|
-
|
|
138
|
+
chunkOAQEUTNJ_cjs.WorkspaceActivityList,
|
|
139
139
|
{
|
|
140
140
|
...listProps,
|
|
141
141
|
items,
|
|
@@ -563,7 +563,7 @@ function NotificationCenter({
|
|
|
563
563
|
}
|
|
564
564
|
];
|
|
565
565
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full bg-background", "data-testid": "notifications-page", children: [
|
|
566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
566
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
567
567
|
chunk7RGLTF76_cjs.TabHeader,
|
|
568
568
|
{
|
|
569
569
|
tabs,
|
|
@@ -808,7 +808,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
808
808
|
});
|
|
809
809
|
if (!workspaceId) return null;
|
|
810
810
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
811
|
-
|
|
811
|
+
chunkOAQEUTNJ_cjs.WorkspaceNotificationMenu,
|
|
812
812
|
{
|
|
813
813
|
...menuProps,
|
|
814
814
|
level,
|
|
@@ -827,7 +827,7 @@ function ConnectedThreadFollow({
|
|
|
827
827
|
enabled: status === "authenticated"
|
|
828
828
|
});
|
|
829
829
|
if (!conversationId) return null;
|
|
830
|
-
const Control = as === "menu-item" ?
|
|
830
|
+
const Control = as === "menu-item" ? chunkOAQEUTNJ_cjs.ThreadFollowMenuItem : chunkOAQEUTNJ_cjs.ThreadFollowButton;
|
|
831
831
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
832
832
|
Control,
|
|
833
833
|
{
|
|
@@ -867,7 +867,7 @@ var DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS = {
|
|
|
867
867
|
var messageOf = (error) => error instanceof Error ? error.message : "";
|
|
868
868
|
function ConnectedWorkflowsTable({
|
|
869
869
|
filter,
|
|
870
|
-
describeTrigger = (w) =>
|
|
870
|
+
describeTrigger = (w) => chunk2UUNSHDI_cjs.workflowTriggerType(w).replaceAll("_", " "),
|
|
871
871
|
formatDate: formatDate2 = chunkKDG6FER6_cjs.fmtDate,
|
|
872
872
|
onViewRuns,
|
|
873
873
|
connectedLabels,
|
|
@@ -929,7 +929,7 @@ function ConnectedWorkflowsTable({
|
|
|
929
929
|
await act(workflow, () => remove.mutateAsync(workflow.external_id));
|
|
930
930
|
};
|
|
931
931
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
932
|
-
|
|
932
|
+
chunk2UUNSHDI_cjs.WorkflowsTable,
|
|
933
933
|
{
|
|
934
934
|
...tableProps,
|
|
935
935
|
workflows,
|
|
@@ -990,7 +990,7 @@ function toWorkflowFieldDocument(doc) {
|
|
|
990
990
|
function useConnectedWorkflowScopeSource() {
|
|
991
991
|
const { data: docs } = chunkJZNXRMLH_cjs.useConnectedDocuments();
|
|
992
992
|
const { data: tags } = chunkJZNXRMLH_cjs.useConnectedTags();
|
|
993
|
-
return react.useMemo(() =>
|
|
993
|
+
return react.useMemo(() => chunk2UUNSHDI_cjs.buildWorkflowScopeSource(docs, chunk2UUNSHDI_cjs.documentScopeLabels(tags)), [docs, tags]);
|
|
994
994
|
}
|
|
995
995
|
function useConnectedAgentOptions() {
|
|
996
996
|
const { data: agents } = react$1.useAgents();
|
|
@@ -1048,7 +1048,7 @@ function ConnectedWorkflowDocumentsField({
|
|
|
1048
1048
|
}
|
|
1049
1049
|
),
|
|
1050
1050
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1051
|
-
|
|
1051
|
+
chunk2UUNSHDI_cjs.WorkflowDocumentsField,
|
|
1052
1052
|
{
|
|
1053
1053
|
field,
|
|
1054
1054
|
value,
|
|
@@ -1070,7 +1070,7 @@ function ConnectedWorkflowLauncher({
|
|
|
1070
1070
|
const scopeSource = useConnectedWorkflowScopeSource();
|
|
1071
1071
|
const agents = useConnectedAgentOptions();
|
|
1072
1072
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1073
|
-
|
|
1073
|
+
chunk2UUNSHDI_cjs.WorkflowLauncher,
|
|
1074
1074
|
{
|
|
1075
1075
|
...props,
|
|
1076
1076
|
scopeSource,
|
|
@@ -1149,7 +1149,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1149
1149
|
onChange: (e) => {
|
|
1150
1150
|
const file = e.target.files?.[0];
|
|
1151
1151
|
e.target.value = "";
|
|
1152
|
-
if (file) void add(() =>
|
|
1152
|
+
if (file) void add(() => chunk2UUNSHDI_cjs.importSkillFile(file));
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
),
|
|
@@ -1174,7 +1174,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1174
1174
|
className: "space-y-2",
|
|
1175
1175
|
onSubmit: (e) => {
|
|
1176
1176
|
e.preventDefault();
|
|
1177
|
-
if (url.trim()) void add(() =>
|
|
1177
|
+
if (url.trim()) void add(() => chunk2UUNSHDI_cjs.importSkillFromUrl(url));
|
|
1178
1178
|
},
|
|
1179
1179
|
children: [
|
|
1180
1180
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1238,9 +1238,9 @@ function ConnectedSkillsLibrary({
|
|
|
1238
1238
|
const [type, setType] = react.useState("all");
|
|
1239
1239
|
const [view, setView] = react.useState("gallery");
|
|
1240
1240
|
const [isBusy, setIsBusy] = react.useState(false);
|
|
1241
|
-
const all = react.useMemo(() =>
|
|
1241
|
+
const all = react.useMemo(() => chunk2UUNSHDI_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1242
1242
|
const shown = react.useMemo(
|
|
1243
|
-
() =>
|
|
1243
|
+
() => chunk2UUNSHDI_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1244
1244
|
[all, query, source, type]
|
|
1245
1245
|
);
|
|
1246
1246
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1251,21 +1251,21 @@ function ConnectedSkillsLibrary({
|
|
|
1251
1251
|
const count = (s) => all.filter((x) => x.source === s).length;
|
|
1252
1252
|
const sourceOptions = [
|
|
1253
1253
|
{ id: "all", label: "All", count: all.length },
|
|
1254
|
-
{ id: "builtin", label:
|
|
1255
|
-
{ id: "mine", label:
|
|
1256
|
-
{ id: "shared", label:
|
|
1254
|
+
{ id: "builtin", label: chunk2UUNSHDI_cjs.SKILL_SOURCE_LABELS.builtin, count: count("builtin") },
|
|
1255
|
+
{ id: "mine", label: chunk2UUNSHDI_cjs.SKILL_SOURCE_LABELS.mine, count: count("mine") },
|
|
1256
|
+
{ id: "shared", label: chunk2UUNSHDI_cjs.SKILL_SOURCE_LABELS.shared, count: count("shared") }
|
|
1257
1257
|
];
|
|
1258
1258
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1259
1259
|
const typeOptions = [
|
|
1260
1260
|
{ id: "all", label: "Any kind" },
|
|
1261
|
-
...types.map((t) => ({ id: t, label:
|
|
1261
|
+
...types.map((t) => ({ id: t, label: chunk2UUNSHDI_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1262
1262
|
];
|
|
1263
1263
|
const pick = (slug) => {
|
|
1264
1264
|
setSelected(slug);
|
|
1265
1265
|
setMode("detail");
|
|
1266
1266
|
};
|
|
1267
1267
|
const markdownOf = async (skill) => {
|
|
1268
|
-
if (!skill.docExtId) return
|
|
1268
|
+
if (!skill.docExtId) return chunk2UUNSHDI_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1269
1269
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1270
1270
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1271
1271
|
return response.text();
|
|
@@ -1273,7 +1273,7 @@ function ConnectedSkillsLibrary({
|
|
|
1273
1273
|
const saveAs = (slug, markdown, shared = false) => upload.mutateAsync([
|
|
1274
1274
|
{
|
|
1275
1275
|
folder: `${SKILL_FOLDER}${slug}`,
|
|
1276
|
-
fileName:
|
|
1276
|
+
fileName: chunk2UUNSHDI_cjs.SKILL_MAIN_FILENAME,
|
|
1277
1277
|
content: new Blob([markdown], { type: "text/markdown" }),
|
|
1278
1278
|
shared
|
|
1279
1279
|
}
|
|
@@ -1336,7 +1336,7 @@ function ConnectedSkillsLibrary({
|
|
|
1336
1336
|
try {
|
|
1337
1337
|
documentTools.downloadBlob(
|
|
1338
1338
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1339
|
-
|
|
1339
|
+
chunk2UUNSHDI_cjs.SKILL_MAIN_FILENAME
|
|
1340
1340
|
);
|
|
1341
1341
|
} catch (error) {
|
|
1342
1342
|
notify(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1377,10 +1377,10 @@ function ConnectedSkillsLibrary({
|
|
|
1377
1377
|
}
|
|
1378
1378
|
)
|
|
1379
1379
|
] }),
|
|
1380
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk2UUNSHDI_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1381
1381
|
] }),
|
|
1382
1382
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1383
|
-
|
|
1383
|
+
chunk2UUNSHDI_cjs.SkillFilterChips,
|
|
1384
1384
|
{
|
|
1385
1385
|
label: "Show",
|
|
1386
1386
|
value: source,
|
|
@@ -1389,7 +1389,7 @@ function ConnectedSkillsLibrary({
|
|
|
1389
1389
|
}
|
|
1390
1390
|
),
|
|
1391
1391
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1392
|
-
|
|
1392
|
+
chunk2UUNSHDI_cjs.SkillFilterChips,
|
|
1393
1393
|
{
|
|
1394
1394
|
label: "Kind",
|
|
1395
1395
|
value: type,
|
|
@@ -1436,12 +1436,12 @@ function ConnectedSkillsLibrary({
|
|
|
1436
1436
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1437
1437
|
),
|
|
1438
1438
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1439
|
-
|
|
1439
|
+
chunk2UUNSHDI_cjs.SkillTile,
|
|
1440
1440
|
{
|
|
1441
1441
|
name: skill.title,
|
|
1442
1442
|
testId: `skill-tile-${skill.slug}`,
|
|
1443
1443
|
description: skill.description,
|
|
1444
|
-
sourceLabel: skill.isShared ? `${
|
|
1444
|
+
sourceLabel: skill.isShared ? `${chunk2UUNSHDI_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunk2UUNSHDI_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1445
1445
|
type: skill.type,
|
|
1446
1446
|
icon,
|
|
1447
1447
|
layout: view,
|
|
@@ -1476,7 +1476,7 @@ function ConnectedSkillsLibrary({
|
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
1478
1478
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1479
|
-
|
|
1479
|
+
chunk2UUNSHDI_cjs.SkillGenerateForm,
|
|
1480
1480
|
{
|
|
1481
1481
|
icon,
|
|
1482
1482
|
onGenerate: (desc) => {
|
|
@@ -1503,11 +1503,11 @@ function ConnectedSkillsLibrary({
|
|
|
1503
1503
|
),
|
|
1504
1504
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1505
1505
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1506
|
-
|
|
1506
|
+
chunk2UUNSHDI_cjs.SkillLibraryDetail,
|
|
1507
1507
|
{
|
|
1508
1508
|
skill: current,
|
|
1509
1509
|
icon,
|
|
1510
|
-
instructions: current.docExtId ? currentText ?
|
|
1510
|
+
instructions: current.docExtId ? currentText ? chunk2UUNSHDI_cjs.parseSkillFrontmatter(currentText, chunk2UUNSHDI_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1511
1511
|
isLoading: !!current.docExtId && textLoading,
|
|
1512
1512
|
actions: {
|
|
1513
1513
|
onRun: () => onRun(current.slug),
|
|
@@ -1542,7 +1542,7 @@ function SkillEditor({
|
|
|
1542
1542
|
const [seeded, setSeeded] = react.useState(!isEditing);
|
|
1543
1543
|
const [nameError, setNameError] = react.useState(null);
|
|
1544
1544
|
if (isEditing && !seeded && text !== void 0) {
|
|
1545
|
-
const parsed =
|
|
1545
|
+
const parsed = chunk2UUNSHDI_cjs.parseSkillFrontmatter(text, chunk2UUNSHDI_cjs.SKILL_MAIN_FILENAME);
|
|
1546
1546
|
setDescription(parsed.description ?? "");
|
|
1547
1547
|
setBody(parsed.content ?? "");
|
|
1548
1548
|
setSeeded(true);
|
|
@@ -1556,15 +1556,15 @@ function SkillEditor({
|
|
|
1556
1556
|
notify("Add a short description.", "error");
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
|
-
const slug =
|
|
1559
|
+
const slug = chunk2UUNSHDI_cjs.skillSlug(name);
|
|
1560
1560
|
try {
|
|
1561
|
-
await onSave(slug,
|
|
1561
|
+
await onSave(slug, chunk2UUNSHDI_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1562
1562
|
} catch (err) {
|
|
1563
1563
|
notify(errorText(err, "Could not save the skill"), "error");
|
|
1564
1564
|
}
|
|
1565
1565
|
};
|
|
1566
1566
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1567
|
-
|
|
1567
|
+
chunk2UUNSHDI_cjs.SkillEditForm,
|
|
1568
1568
|
{
|
|
1569
1569
|
name,
|
|
1570
1570
|
onNameChange: setName,
|
|
@@ -1600,9 +1600,9 @@ function ConnectedAgentCreator({
|
|
|
1600
1600
|
agent,
|
|
1601
1601
|
initialName,
|
|
1602
1602
|
onSaved,
|
|
1603
|
-
capabilities =
|
|
1604
|
-
templates =
|
|
1605
|
-
types =
|
|
1603
|
+
capabilities = chunk2UUNSHDI_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
1604
|
+
templates = chunk2UUNSHDI_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
1605
|
+
types = chunk2UUNSHDI_cjs.DEFAULT_AGENT_TYPES,
|
|
1606
1606
|
canRevokeWorkspaces = false,
|
|
1607
1607
|
labels
|
|
1608
1608
|
}) {
|
|
@@ -1644,7 +1644,7 @@ function ConnectedAgentCreator({
|
|
|
1644
1644
|
const initialValues = react.useMemo(
|
|
1645
1645
|
() => ({
|
|
1646
1646
|
name: agent?.given_name ?? initialName ?? "",
|
|
1647
|
-
persona: isEdit ?
|
|
1647
|
+
persona: isEdit ? chunk2UUNSHDI_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
1648
1648
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
1649
1649
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
1650
1650
|
type: "builtin",
|
|
@@ -1663,7 +1663,7 @@ function ConnectedAgentCreator({
|
|
|
1663
1663
|
try {
|
|
1664
1664
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
1665
1665
|
if (!agentExtId) {
|
|
1666
|
-
if (!
|
|
1666
|
+
if (!chunk2UUNSHDI_cjs.isValidAgentName(values.name)) {
|
|
1667
1667
|
notify("Give the agent a name first.", "error");
|
|
1668
1668
|
return;
|
|
1669
1669
|
}
|
|
@@ -1699,7 +1699,7 @@ function ConnectedAgentCreator({
|
|
|
1699
1699
|
title: `agent-${name}`,
|
|
1700
1700
|
sections: {
|
|
1701
1701
|
Agents: {
|
|
1702
|
-
PERSONA:
|
|
1702
|
+
PERSONA: chunk2UUNSHDI_cjs.composePersona(name, values.persona),
|
|
1703
1703
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
1704
1704
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
1705
1705
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -1722,7 +1722,7 @@ function ConnectedAgentCreator({
|
|
|
1722
1722
|
};
|
|
1723
1723
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1724
1724
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1725
|
-
|
|
1725
|
+
chunk2UUNSHDI_cjs.AgentCreator,
|
|
1726
1726
|
{
|
|
1727
1727
|
open: ready,
|
|
1728
1728
|
onOpenChange,
|
|
@@ -1738,11 +1738,11 @@ function ConnectedAgentCreator({
|
|
|
1738
1738
|
) : void 0,
|
|
1739
1739
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
1740
1740
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1741
|
-
|
|
1741
|
+
chunk2UUNSHDI_cjs.AgentAvatarField,
|
|
1742
1742
|
{
|
|
1743
1743
|
picture,
|
|
1744
1744
|
isBusy: avatarBusy,
|
|
1745
|
-
canGenerate: isEdit ||
|
|
1745
|
+
canGenerate: isEdit || chunk2UUNSHDI_cjs.isValidAgentName(values.name),
|
|
1746
1746
|
onGenerate: () => handleGenerateAvatar(values)
|
|
1747
1747
|
}
|
|
1748
1748
|
),
|
|
@@ -1794,7 +1794,7 @@ function ConnectedAgentCreator({
|
|
|
1794
1794
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
1795
1795
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
1796
1796
|
] }),
|
|
1797
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1797
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunk2UUNSHDI_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
1798
1798
|
]
|
|
1799
1799
|
}
|
|
1800
1800
|
) })
|
|
@@ -1831,7 +1831,7 @@ function ConnectedWorkflowHistory({
|
|
|
1831
1831
|
const { openConversation } = chunkC4WSHRR6_cjs.useBlocksEnvironment();
|
|
1832
1832
|
const { data: runs = [], isLoading } = react$1.useWorkflowRuns(workflow?.external_id);
|
|
1833
1833
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1834
|
-
|
|
1834
|
+
chunk2UUNSHDI_cjs.TaskRunsDialog,
|
|
1835
1835
|
{
|
|
1836
1836
|
inline,
|
|
1837
1837
|
hideHeader,
|
|
@@ -1874,7 +1874,7 @@ function ConnectedTaskActivityDialog({
|
|
|
1874
1874
|
const member = members.find((m) => m.user.external_id === id)?.user;
|
|
1875
1875
|
const name = member && [member.given_name, member.family_name].filter(Boolean).join(" ") || member?.email;
|
|
1876
1876
|
const person = { id, label: isMe ? "You" : name || "Someone", isMe };
|
|
1877
|
-
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1877
|
+
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(chunk2UUNSHDI_cjs.PersonPill, { person });
|
|
1878
1878
|
},
|
|
1879
1879
|
[renderTaskPerson, userId, members]
|
|
1880
1880
|
);
|
|
@@ -1883,7 +1883,7 @@ function ConnectedTaskActivityDialog({
|
|
|
1883
1883
|
[agents]
|
|
1884
1884
|
);
|
|
1885
1885
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1886
|
-
|
|
1886
|
+
chunk2UUNSHDI_cjs.TaskActivityDialog,
|
|
1887
1887
|
{
|
|
1888
1888
|
open: true,
|
|
1889
1889
|
onOpenChange: (open) => !open && onClose(),
|
|
@@ -2029,7 +2029,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2029
2029
|
);
|
|
2030
2030
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
2031
2031
|
const steps = react.useMemo(
|
|
2032
|
-
() => chunkOWCEQKAR_cjs.workflowSteps(workflow).length > 0 ? chunkOWCEQKAR_cjs.workflowSteps(workflow) :
|
|
2032
|
+
() => chunkOWCEQKAR_cjs.workflowSteps(workflow).length > 0 ? chunkOWCEQKAR_cjs.workflowSteps(workflow) : chunk2UUNSHDI_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
2033
2033
|
[workflow, conversation?.plan?.steps]
|
|
2034
2034
|
);
|
|
2035
2035
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
@@ -2089,7 +2089,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2089
2089
|
criteria: [],
|
|
2090
2090
|
max_passes: 3,
|
|
2091
2091
|
documents: [],
|
|
2092
|
-
steps:
|
|
2092
|
+
steps: chunk2UUNSHDI_cjs.toPlanSteps(workflow, {
|
|
2093
2093
|
inputs: values,
|
|
2094
2094
|
resolveWorkflow: options.resolveWorkflow,
|
|
2095
2095
|
compose: options.compose
|
|
@@ -2176,7 +2176,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
2176
2176
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
2177
2177
|
const needsStart = !threadId || idle && !anyRunning;
|
|
2178
2178
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
2179
|
-
const view =
|
|
2179
|
+
const view = chunk2UUNSHDI_cjs.useWorkflowView({
|
|
2180
2180
|
steps,
|
|
2181
2181
|
states,
|
|
2182
2182
|
inputs,
|
|
@@ -2219,7 +2219,7 @@ function WorkflowRunThread({
|
|
|
2219
2219
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
2220
2220
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
2221
2221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2222
|
-
|
|
2222
|
+
chunk7YLJHTDC_cjs.ChatPage,
|
|
2223
2223
|
{
|
|
2224
2224
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
2225
2225
|
singleThread: true,
|
|
@@ -2344,7 +2344,7 @@ function WorkflowWordDialog({
|
|
|
2344
2344
|
title: title ?? labels.wordTitle,
|
|
2345
2345
|
size: "xl",
|
|
2346
2346
|
testId: "workflow-word-dialog",
|
|
2347
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2347
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunk7NDW4KF4_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
2348
2348
|
}
|
|
2349
2349
|
);
|
|
2350
2350
|
}
|
|
@@ -2653,7 +2653,7 @@ function ConnectedWorkflowRunner({
|
|
|
2653
2653
|
);
|
|
2654
2654
|
};
|
|
2655
2655
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2656
|
-
|
|
2656
|
+
chunk2UUNSHDI_cjs.WorkflowRunner,
|
|
2657
2657
|
{
|
|
2658
2658
|
people,
|
|
2659
2659
|
...runnerProps,
|
|
@@ -2699,7 +2699,7 @@ function ConnectedWorkflowRunner({
|
|
|
2699
2699
|
) }),
|
|
2700
2700
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2701
2701
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2702
|
-
|
|
2702
|
+
chunk2UUNSHDI_cjs.WorkflowStepBar,
|
|
2703
2703
|
{
|
|
2704
2704
|
run: view,
|
|
2705
2705
|
levels: chunkOWCEQKAR_cjs.stepLevels(view.steps),
|
|
@@ -2900,7 +2900,7 @@ function ConnectedTagTable({
|
|
|
2900
2900
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
2901
2901
|
const snapshot = (data) => {
|
|
2902
2902
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
2903
|
-
const bytes =
|
|
2903
|
+
const bytes = chunkOAQEUTNJ_cjs.tagTableDocx(data, {
|
|
2904
2904
|
title,
|
|
2905
2905
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
2906
2906
|
});
|
|
@@ -2910,7 +2910,7 @@ function ConnectedTagTable({
|
|
|
2910
2910
|
};
|
|
2911
2911
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2912
2912
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2913
|
-
|
|
2913
|
+
chunkOAQEUTNJ_cjs.TagTable,
|
|
2914
2914
|
{
|
|
2915
2915
|
...props,
|
|
2916
2916
|
table,
|
|
@@ -3052,13 +3052,13 @@ function ConnectedProfileCard({
|
|
|
3052
3052
|
}
|
|
3053
3053
|
});
|
|
3054
3054
|
const display = profile?.fullName || "Unnamed";
|
|
3055
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3055
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: [
|
|
3056
3056
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3057
|
-
|
|
3057
|
+
chunkQIMVTGKS_cjs.ProfileCard,
|
|
3058
3058
|
{
|
|
3059
3059
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3060
3060
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3061
|
-
|
|
3061
|
+
chunkQIMVTGKS_cjs.AvatarPicker,
|
|
3062
3062
|
{
|
|
3063
3063
|
pictureUrl: profile?.picture,
|
|
3064
3064
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -3105,9 +3105,9 @@ function ConnectedIdentityVerification({
|
|
|
3105
3105
|
onNameAccepted: () => notify("Name updated to match your ID", "success")
|
|
3106
3106
|
});
|
|
3107
3107
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3108
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3108
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.IdentityVerificationCard, { flow, labels, onManageBilling }),
|
|
3109
3109
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3110
|
-
|
|
3110
|
+
chunkQIMVTGKS_cjs.IdentityVerificationDialog,
|
|
3111
3111
|
{
|
|
3112
3112
|
flow,
|
|
3113
3113
|
accountName: profile?.fullName ?? "",
|
|
@@ -3120,7 +3120,7 @@ function ConnectedIdentityVerification({
|
|
|
3120
3120
|
function ConnectedRequireVerified({ children, labels }) {
|
|
3121
3121
|
const { data: profile } = react$1.useProfile();
|
|
3122
3122
|
const flow = react$1.useIdentityVerification();
|
|
3123
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3123
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
3124
3124
|
}
|
|
3125
3125
|
function defaultUnmetPasswordRequirement(password) {
|
|
3126
3126
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -3153,7 +3153,7 @@ function ConnectedPasswordChangeDialog({
|
|
|
3153
3153
|
onRecoveryComplete
|
|
3154
3154
|
});
|
|
3155
3155
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3156
|
-
|
|
3156
|
+
chunkQIMVTGKS_cjs.PasswordChangeDialog,
|
|
3157
3157
|
{
|
|
3158
3158
|
open,
|
|
3159
3159
|
onClose: form.onCancel,
|
|
@@ -3179,10 +3179,10 @@ function ConnectedSecuritySection({
|
|
|
3179
3179
|
children
|
|
3180
3180
|
}) {
|
|
3181
3181
|
const [open, setOpen] = react.useState(false);
|
|
3182
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3183
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3182
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
3183
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQIMVTGKS_cjs.SettingsCard, { padding: "sm", children: [
|
|
3184
3184
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
|
-
|
|
3185
|
+
chunkQIMVTGKS_cjs.SettingsActionRow,
|
|
3186
3186
|
{
|
|
3187
3187
|
title: "Change password",
|
|
3188
3188
|
description: "Used to sign in and to unlock your account key. Changing it keeps everything readable and re-encrypts nothing.",
|
|
@@ -3203,23 +3203,23 @@ function ConnectedSecuritySection({
|
|
|
3203
3203
|
] });
|
|
3204
3204
|
}
|
|
3205
3205
|
function ConnectedNotificationPreferences({
|
|
3206
|
-
categories =
|
|
3206
|
+
categories = chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
3207
3207
|
title = "Notifications"
|
|
3208
3208
|
}) {
|
|
3209
3209
|
const keys = react.useMemo(
|
|
3210
|
-
() => categories ===
|
|
3210
|
+
() => categories === chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkQIMVTGKS_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
3211
3211
|
[categories]
|
|
3212
3212
|
);
|
|
3213
3213
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
3214
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3215
|
-
|
|
3214
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkQIMVTGKS_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3215
|
+
chunkQIMVTGKS_cjs.NotificationCategoryList,
|
|
3216
3216
|
{
|
|
3217
3217
|
masterId: "emailNotifications",
|
|
3218
3218
|
masterTitle: "Email Notifications",
|
|
3219
3219
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
3220
3220
|
masterChecked: prefs.masterChecked,
|
|
3221
3221
|
onMasterChange: prefs.setAll,
|
|
3222
|
-
categories:
|
|
3222
|
+
categories: chunkQIMVTGKS_cjs.toNotificationCategories(prefs.checked, categories),
|
|
3223
3223
|
onCategoryChange: prefs.setCategory
|
|
3224
3224
|
}
|
|
3225
3225
|
) }) });
|
|
@@ -3230,14 +3230,14 @@ function ConnectedSessionsRow({ renderSessionIcon }) {
|
|
|
3230
3230
|
const sessions = react$1.useSessions({ enabled: open });
|
|
3231
3231
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
3232
3232
|
const terminate = react$1.useTerminateSession();
|
|
3233
|
-
const views =
|
|
3233
|
+
const views = chunkQIMVTGKS_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
3234
3234
|
currentSessionId,
|
|
3235
3235
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
3236
3236
|
renderIcon: renderSessionIcon
|
|
3237
3237
|
});
|
|
3238
3238
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3239
3239
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3240
|
-
|
|
3240
|
+
chunkQIMVTGKS_cjs.SettingsRow,
|
|
3241
3241
|
{
|
|
3242
3242
|
label: "Active sessions",
|
|
3243
3243
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -3259,7 +3259,7 @@ function ConnectedSessionsRow({ renderSessionIcon }) {
|
|
|
3259
3259
|
}
|
|
3260
3260
|
),
|
|
3261
3261
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3262
|
-
|
|
3262
|
+
chunkQIMVTGKS_cjs.ActiveSessionsDialog,
|
|
3263
3263
|
{
|
|
3264
3264
|
open,
|
|
3265
3265
|
onOpenChange: setOpen,
|
|
@@ -3301,7 +3301,7 @@ function ConnectedLogoutDialog({
|
|
|
3301
3301
|
signOut.mutate({ everywhere, reason: "manual" });
|
|
3302
3302
|
};
|
|
3303
3303
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3304
|
-
|
|
3304
|
+
chunkQIMVTGKS_cjs.LogoutDialog,
|
|
3305
3305
|
{
|
|
3306
3306
|
open,
|
|
3307
3307
|
onClose,
|
|
@@ -3309,7 +3309,7 @@ function ConnectedLogoutDialog({
|
|
|
3309
3309
|
onLogoutAll: () => void run(true),
|
|
3310
3310
|
canLogoutAll,
|
|
3311
3311
|
isOnline,
|
|
3312
|
-
sessions:
|
|
3312
|
+
sessions: chunkQIMVTGKS_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
3313
3313
|
renderSessionIcon
|
|
3314
3314
|
}
|
|
3315
3315
|
);
|
|
@@ -3331,7 +3331,7 @@ function ConnectedDangerZone({ renderSubscriptionLink }) {
|
|
|
3331
3331
|
});
|
|
3332
3332
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3333
3333
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3334
|
-
|
|
3334
|
+
chunkQIMVTGKS_cjs.SettingsDangerZone,
|
|
3335
3335
|
{
|
|
3336
3336
|
isOpen: zoneOpen,
|
|
3337
3337
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -3351,12 +3351,12 @@ function ConnectedDangerZone({ renderSubscriptionLink }) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
),
|
|
3353
3353
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3354
|
-
|
|
3354
|
+
chunkQIMVTGKS_cjs.DeleteAccountDialog,
|
|
3355
3355
|
{
|
|
3356
3356
|
open: dialogOpen,
|
|
3357
3357
|
onClose: flow.onClose,
|
|
3358
3358
|
step: flow.step,
|
|
3359
|
-
blockers:
|
|
3359
|
+
blockers: chunkQIMVTGKS_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
3360
3360
|
onContinue: flow.onContinue,
|
|
3361
3361
|
onBack: flow.onBack,
|
|
3362
3362
|
userEmail,
|
|
@@ -5340,7 +5340,7 @@ function ConnectedMailbox({
|
|
|
5340
5340
|
}
|
|
5341
5341
|
),
|
|
5342
5342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5343
|
-
|
|
5343
|
+
chunkDWZXSPMB_cjs.ConfirmDialog,
|
|
5344
5344
|
{
|
|
5345
5345
|
isOpen: confirmDelete !== null,
|
|
5346
5346
|
onClose: () => setConfirmDelete(null),
|
|
@@ -9077,7 +9077,7 @@ function ActiveChat({ agentId, workspaceId }) {
|
|
|
9077
9077
|
activeArtifact: () => chunkJKB7WT7L_cjs.takeOpenDocumentForTurn({ workspaceId })
|
|
9078
9078
|
});
|
|
9079
9079
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9080
|
-
|
|
9080
|
+
chunk7YLJHTDC_cjs.ChatPage,
|
|
9081
9081
|
{
|
|
9082
9082
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
9083
9083
|
documentsRequired: false,
|
|
@@ -9139,35 +9139,35 @@ function ConnectedAgentChatPanel({
|
|
|
9139
9139
|
|
|
9140
9140
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
9141
9141
|
enumerable: true,
|
|
9142
|
-
get: function () { return
|
|
9142
|
+
get: function () { return chunk3BFGL2JL_cjs.ConnectedAssistantDock; }
|
|
9143
9143
|
});
|
|
9144
9144
|
Object.defineProperty(exports, "redlineStats", {
|
|
9145
9145
|
enumerable: true,
|
|
9146
|
-
get: function () { return
|
|
9146
|
+
get: function () { return chunk3BFGL2JL_cjs.redlineStats; }
|
|
9147
9147
|
});
|
|
9148
9148
|
Object.defineProperty(exports, "textToArtifact", {
|
|
9149
9149
|
enumerable: true,
|
|
9150
|
-
get: function () { return
|
|
9150
|
+
get: function () { return chunk3BFGL2JL_cjs.textToArtifact; }
|
|
9151
9151
|
});
|
|
9152
9152
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
9153
9153
|
enumerable: true,
|
|
9154
|
-
get: function () { return
|
|
9154
|
+
get: function () { return chunk3BFGL2JL_cjs.toRedlineMarkdown; }
|
|
9155
9155
|
});
|
|
9156
9156
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
9157
9157
|
enumerable: true,
|
|
9158
|
-
get: function () { return
|
|
9158
|
+
get: function () { return chunk3BFGL2JL_cjs.useConnectedAiTask; }
|
|
9159
9159
|
});
|
|
9160
9160
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
9161
9161
|
enumerable: true,
|
|
9162
|
-
get: function () { return
|
|
9162
|
+
get: function () { return chunk3BFGL2JL_cjs.useConnectedChat; }
|
|
9163
9163
|
});
|
|
9164
9164
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
9165
9165
|
enumerable: true,
|
|
9166
|
-
get: function () { return
|
|
9166
|
+
get: function () { return chunk3BFGL2JL_cjs.useSemanticSearch; }
|
|
9167
9167
|
});
|
|
9168
9168
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
9169
9169
|
enumerable: true,
|
|
9170
|
-
get: function () { return
|
|
9170
|
+
get: function () { return chunk3BFGL2JL_cjs.useWorkspaceDocs; }
|
|
9171
9171
|
});
|
|
9172
9172
|
Object.defineProperty(exports, "ConnectedWorkspaceDataProvider", {
|
|
9173
9173
|
enumerable: true,
|