@arbidocs/blocks 0.5.198 → 0.5.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-CJTL2FDV.cjs → ConnectedCallDock-UCNWTCTS.cjs} +23 -23
- package/dist/{ConnectedCallDock-CJTL2FDV.cjs.map → ConnectedCallDock-UCNWTCTS.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-DXUZXFZX.cjs → ConnectedCallRoom-BN2EMZ7A.cjs} +16 -16
- package/dist/{ConnectedCallRoom-DXUZXFZX.cjs.map → ConnectedCallRoom-BN2EMZ7A.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-FDBAVRFO.cjs → ConnectedNativeDocxComparison-4DTDQQXI.cjs} +15 -15
- package/dist/{ConnectedNativeDocxComparison-FDBAVRFO.cjs.map → ConnectedNativeDocxComparison-4DTDQQXI.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-VGWCLJKM.cjs → ConnectedPresentation-OIMVGUAZ.cjs} +17 -17
- package/dist/{ConnectedPresentation-VGWCLJKM.cjs.map → ConnectedPresentation-OIMVGUAZ.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-R7FVJ4X7.cjs → ConnectedProductionSetDialog-ENRCLFAF.cjs} +6 -6
- package/dist/{ConnectedProductionSetDialog-R7FVJ4X7.cjs.map → ConnectedProductionSetDialog-ENRCLFAF.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-PCJTMD3W.cjs → ConnectedSlidesTab-NSNOGSE7.cjs} +14 -14
- package/dist/{ConnectedSlidesTab-PCJTMD3W.cjs.map → ConnectedSlidesTab-NSNOGSE7.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-JET44WCX.cjs → ConnectedStreamedWordArtifact-FHEHPYUO.cjs} +15 -15
- package/dist/{ConnectedStreamedWordArtifact-JET44WCX.cjs.map → ConnectedStreamedWordArtifact-FHEHPYUO.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-CJHMIMSM.cjs → DocumentReviewCard-XCEFFM2E.cjs} +16 -16
- package/dist/{DocumentReviewCard-CJHMIMSM.cjs.map → DocumentReviewCard-XCEFFM2E.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-NOHWHFKC.cjs → FilesViewerDialog-J4XHAODW.cjs} +51 -51
- package/dist/{FilesViewerDialog-NOHWHFKC.cjs.map → FilesViewerDialog-J4XHAODW.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-XK7L4MU6.cjs → WorkspaceTableView-DIM3XSI7.cjs} +9 -9
- package/dist/{WorkspaceTableView-XK7L4MU6.cjs.map → WorkspaceTableView-DIM3XSI7.cjs.map} +1 -1
- package/dist/agents/index.cjs +445 -428
- package/dist/agents/tasks/TaskComposer.js +4 -3
- package/dist/agents/tasks/TaskComposer.js.map +2 -2
- package/dist/agents/tasks/WorkflowComposer.d.ts +1 -1
- package/dist/agents/tasks/WorkflowComposer.js +5 -4
- package/dist/agents/tasks/WorkflowComposer.js.map +2 -2
- package/dist/agents/tasks/index.d.ts +1 -1
- package/dist/agents/tasks/index.js +9 -1
- package/dist/agents/tasks/index.js.map +2 -2
- package/dist/agents/tasks/taskComposerTypes.d.ts +20 -3
- package/dist/agents/tasks/taskComposerTypes.js +25 -4
- package/dist/agents/tasks/taskComposerTypes.js.map +2 -2
- package/dist/agents/tasks/taskRequest.d.ts +5 -4
- package/dist/agents/tasks/taskRequest.js +9 -2
- package/dist/agents/tasks/taskRequest.js.map +2 -2
- package/dist/agents/workflows/planSteps.js +6 -3
- package/dist/agents/workflows/planSteps.js.map +2 -2
- package/dist/{ai-RIR36YJR.cjs → ai-BUYAHCUP.cjs} +37 -27
- package/dist/ai-BUYAHCUP.cjs.map +1 -0
- package/dist/auth/index.cjs +12 -12
- package/dist/calls/index.cjs +125 -125
- package/dist/chat/AssistantDock.d.ts +2 -2
- package/dist/chat/AssistantDock.js +3 -1
- package/dist/chat/AssistantDock.js.map +2 -2
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/ChatPage.js +19 -1
- package/dist/chat/ChatPage.js.map +2 -2
- package/dist/chat/chat-page-types.d.ts +12 -0
- package/dist/chat/chat-page-types.js.map +2 -2
- package/dist/chat/index.cjs +29 -29
- package/dist/{chunk-V4362YKU.cjs → chunk-2A3LUSU6.cjs} +4 -4
- package/dist/{chunk-V4362YKU.cjs.map → chunk-2A3LUSU6.cjs.map} +1 -1
- package/dist/{chunk-RIGCKOUY.cjs → chunk-2GSNYENP.cjs} +4 -4
- package/dist/{chunk-RIGCKOUY.cjs.map → chunk-2GSNYENP.cjs.map} +1 -1
- package/dist/{chunk-QFSFTO7I.cjs → chunk-2NAYUIT4.cjs} +153 -4
- package/dist/chunk-2NAYUIT4.cjs.map +1 -0
- package/dist/{chunk-OVUI43LB.cjs → chunk-33DJDPVL.cjs} +4 -4
- package/dist/{chunk-OVUI43LB.cjs.map → chunk-33DJDPVL.cjs.map} +1 -1
- package/dist/{chunk-4N2IKS6V.cjs → chunk-3IYVFQO7.cjs} +118 -79
- package/dist/chunk-3IYVFQO7.cjs.map +1 -0
- package/dist/{chunk-5OD6DRG7.cjs → chunk-3P6KGC46.cjs} +3 -3
- package/dist/{chunk-5OD6DRG7.cjs.map → chunk-3P6KGC46.cjs.map} +1 -1
- package/dist/{chunk-ZMGPE43A.cjs → chunk-3V7IAS52.cjs} +6 -6
- package/dist/{chunk-ZMGPE43A.cjs.map → chunk-3V7IAS52.cjs.map} +1 -1
- package/dist/{chunk-OGQXIFIL.cjs → chunk-4IDPBMZQ.cjs} +8 -8
- package/dist/{chunk-OGQXIFIL.cjs.map → chunk-4IDPBMZQ.cjs.map} +1 -1
- package/dist/{chunk-T44BYZNJ.cjs → chunk-4SPLVRCR.cjs} +3 -3
- package/dist/{chunk-T44BYZNJ.cjs.map → chunk-4SPLVRCR.cjs.map} +1 -1
- package/dist/{chunk-PIM7D4BJ.cjs → chunk-55DGUHLE.cjs} +4 -4
- package/dist/{chunk-PIM7D4BJ.cjs.map → chunk-55DGUHLE.cjs.map} +1 -1
- package/dist/{chunk-QPSLGOIH.cjs → chunk-ADICO4AG.cjs} +4 -4
- package/dist/{chunk-QPSLGOIH.cjs.map → chunk-ADICO4AG.cjs.map} +1 -1
- package/dist/{chunk-DHDIFLU4.cjs → chunk-AJUCQ3A4.cjs} +18 -18
- package/dist/{chunk-DHDIFLU4.cjs.map → chunk-AJUCQ3A4.cjs.map} +1 -1
- package/dist/{chunk-Q6GTI427.cjs → chunk-BLVSAXZR.cjs} +8 -8
- package/dist/{chunk-Q6GTI427.cjs.map → chunk-BLVSAXZR.cjs.map} +1 -1
- package/dist/{chunk-5ISSFIVO.cjs → chunk-CFOI2FTZ.cjs} +5 -5
- package/dist/{chunk-5ISSFIVO.cjs.map → chunk-CFOI2FTZ.cjs.map} +1 -1
- package/dist/{chunk-YKEI4XPI.cjs → chunk-CVJNHZHK.cjs} +25 -25
- package/dist/{chunk-YKEI4XPI.cjs.map → chunk-CVJNHZHK.cjs.map} +1 -1
- package/dist/{chunk-2FB2TP2R.cjs → chunk-D2EU67W3.cjs} +23 -23
- package/dist/{chunk-2FB2TP2R.cjs.map → chunk-D2EU67W3.cjs.map} +1 -1
- package/dist/{chunk-7QFMDMWA.cjs → chunk-DU6LNXN7.cjs} +6 -6
- package/dist/{chunk-7QFMDMWA.cjs.map → chunk-DU6LNXN7.cjs.map} +1 -1
- package/dist/{chunk-GV35U5OG.cjs → chunk-EUY4G2EF.cjs} +223 -632
- package/dist/chunk-EUY4G2EF.cjs.map +1 -0
- package/dist/{chunk-IOGN5UAT.cjs → chunk-FQ365MON.cjs} +11 -557
- package/dist/chunk-FQ365MON.cjs.map +1 -0
- package/dist/{chunk-DEL7BS25.cjs → chunk-IPVRLNOP.cjs} +37 -37
- package/dist/{chunk-DEL7BS25.cjs.map → chunk-IPVRLNOP.cjs.map} +1 -1
- package/dist/{chunk-SZF4CR4O.cjs → chunk-IVZNTOHU.cjs} +6 -6
- package/dist/{chunk-SZF4CR4O.cjs.map → chunk-IVZNTOHU.cjs.map} +1 -1
- package/dist/{chunk-XE3PKEBU.cjs → chunk-J4DOSC7N.cjs} +3 -3
- package/dist/{chunk-XE3PKEBU.cjs.map → chunk-J4DOSC7N.cjs.map} +1 -1
- package/dist/chunk-JPPNI7U2.cjs +561 -0
- package/dist/chunk-JPPNI7U2.cjs.map +1 -0
- package/dist/chunk-JZH7TTW7.cjs +429 -0
- package/dist/chunk-JZH7TTW7.cjs.map +1 -0
- package/dist/{chunk-ZGT6M5C5.cjs → chunk-KE7VBTGB.cjs} +6 -6
- package/dist/{chunk-ZGT6M5C5.cjs.map → chunk-KE7VBTGB.cjs.map} +1 -1
- package/dist/{chunk-SOVYCUML.cjs → chunk-KU5QWNN7.cjs} +10 -10
- package/dist/{chunk-SOVYCUML.cjs.map → chunk-KU5QWNN7.cjs.map} +1 -1
- package/dist/{chunk-XKKY2RF2.cjs → chunk-LBQKFWTB.cjs} +3 -3
- package/dist/{chunk-XKKY2RF2.cjs.map → chunk-LBQKFWTB.cjs.map} +1 -1
- package/dist/{chunk-G7JESVKJ.cjs → chunk-LF5OBP36.cjs} +28 -31
- package/dist/chunk-LF5OBP36.cjs.map +1 -0
- package/dist/{chunk-QTNIFFBJ.cjs → chunk-N53CRS65.cjs} +3 -3
- package/dist/{chunk-QTNIFFBJ.cjs.map → chunk-N53CRS65.cjs.map} +1 -1
- package/dist/{chunk-KD37PODE.cjs → chunk-NEOJMU7F.cjs} +3 -3
- package/dist/{chunk-KD37PODE.cjs.map → chunk-NEOJMU7F.cjs.map} +1 -1
- package/dist/{chunk-SAQ7ZAMK.cjs → chunk-O5QHQ5ML.cjs} +14 -14
- package/dist/{chunk-SAQ7ZAMK.cjs.map → chunk-O5QHQ5ML.cjs.map} +1 -1
- package/dist/{chunk-SI3YRTW4.cjs → chunk-O66HB7KI.cjs} +6 -6
- package/dist/{chunk-SI3YRTW4.cjs.map → chunk-O66HB7KI.cjs.map} +1 -1
- package/dist/{chunk-75UNBJVM.cjs → chunk-OA76PXL7.cjs} +10 -10
- package/dist/{chunk-75UNBJVM.cjs.map → chunk-OA76PXL7.cjs.map} +1 -1
- package/dist/{chunk-R6HGMPF4.cjs → chunk-OQODCEEH.cjs} +9 -9
- package/dist/{chunk-R6HGMPF4.cjs.map → chunk-OQODCEEH.cjs.map} +1 -1
- package/dist/{chunk-XCQDQSZL.cjs → chunk-PCOXZATI.cjs} +7 -3
- package/dist/chunk-PCOXZATI.cjs.map +1 -0
- package/dist/{chunk-CV2YOGBW.cjs → chunk-PHNHOJ7N.cjs} +28 -28
- package/dist/{chunk-CV2YOGBW.cjs.map → chunk-PHNHOJ7N.cjs.map} +1 -1
- package/dist/{chunk-WRYNJNC6.cjs → chunk-PNPZBRDE.cjs} +4 -4
- package/dist/{chunk-WRYNJNC6.cjs.map → chunk-PNPZBRDE.cjs.map} +1 -1
- package/dist/{chunk-AX26HWDZ.cjs → chunk-PSQGJPC3.cjs} +10 -10
- package/dist/{chunk-AX26HWDZ.cjs.map → chunk-PSQGJPC3.cjs.map} +1 -1
- package/dist/{chunk-WFMG5AUF.cjs → chunk-Q4DQR5HP.cjs} +80 -205
- package/dist/chunk-Q4DQR5HP.cjs.map +1 -0
- package/dist/{chunk-MYSWMYQE.cjs → chunk-SDCJV5I3.cjs} +75 -75
- package/dist/{chunk-MYSWMYQE.cjs.map → chunk-SDCJV5I3.cjs.map} +1 -1
- package/dist/{chunk-ZINJWTUD.cjs → chunk-T2IEHV75.cjs} +4 -4
- package/dist/{chunk-ZINJWTUD.cjs.map → chunk-T2IEHV75.cjs.map} +1 -1
- package/dist/{chunk-YI26A7SN.cjs → chunk-TIHTORWL.cjs} +21 -3
- package/dist/chunk-TIHTORWL.cjs.map +1 -0
- package/dist/{chunk-KLEH67QD.cjs → chunk-TPTCTNDE.cjs} +48 -48
- package/dist/{chunk-KLEH67QD.cjs.map → chunk-TPTCTNDE.cjs.map} +1 -1
- package/dist/{chunk-L35JYXOP.cjs → chunk-UF657A36.cjs} +9 -7
- package/dist/chunk-UF657A36.cjs.map +1 -0
- package/dist/chunk-USFM2L6T.cjs +21 -0
- package/dist/chunk-USFM2L6T.cjs.map +1 -0
- package/dist/{chunk-T6KYE3TR.cjs → chunk-WWIWW7IH.cjs} +3 -3
- package/dist/{chunk-T6KYE3TR.cjs.map → chunk-WWIWW7IH.cjs.map} +1 -1
- package/dist/{chunk-QSY2VW7V.cjs → chunk-WXRAU2FF.cjs} +6 -6
- package/dist/{chunk-QSY2VW7V.cjs.map → chunk-WXRAU2FF.cjs.map} +1 -1
- package/dist/{chunk-HUAABZ2C.cjs → chunk-X6EG33C7.cjs} +3 -3
- package/dist/{chunk-HUAABZ2C.cjs.map → chunk-X6EG33C7.cjs.map} +1 -1
- package/dist/{chunk-NZBPVCQ5.cjs → chunk-XW2PSBGE.cjs} +11 -11
- package/dist/{chunk-NZBPVCQ5.cjs.map → chunk-XW2PSBGE.cjs.map} +1 -1
- package/dist/{chunk-GHEKXPES.cjs → chunk-YJN3JWDZ.cjs} +9 -8
- package/dist/chunk-YJN3JWDZ.cjs.map +1 -0
- package/dist/connect/docx.cjs +18 -18
- package/dist/connect/index.cjs +1254 -1251
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +38 -38
- package/dist/connection/ConnectedWorkflowBuilder.js +8 -9
- package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
- package/dist/connection/WorkflowRunThread.js +2 -0
- package/dist/connection/WorkflowRunThread.js.map +2 -2
- package/dist/connection/ai.js +2 -1
- package/dist/connection/ai.js.map +2 -2
- package/dist/connection/renderChatSteps.d.ts +6 -0
- package/dist/connection/renderChatSteps.js +18 -0
- package/dist/connection/renderChatSteps.js.map +7 -0
- package/dist/connection/tasks/ConnectedTaskComposer.js +57 -18
- package/dist/connection/tasks/ConnectedTaskComposer.js.map +2 -2
- package/dist/connection/workflows/useWorkflowTasks.js +14 -17
- package/dist/connection/workflows/useWorkflowTasks.js.map +2 -2
- package/dist/connection/workflows/useWorkflowsPageState.d.ts +6 -0
- package/dist/dashboards/index.cjs +1 -1
- package/dist/databases/index.cjs +71 -71
- package/dist/document-tools/FileShareDialog.js +5 -1
- package/dist/document-tools/FileShareDialog.js.map +2 -2
- package/dist/document-tools/index.cjs +13 -13
- package/dist/document-tools/viewer/SignatureRequestEditor.js +2 -1
- package/dist/document-tools/viewer/SignatureRequestEditor.js.map +2 -2
- package/dist/document-tools/viewer/index.cjs +2 -1
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/embed/index.cjs +45 -43
- package/dist/facts/index.cjs +8 -8
- package/dist/files/index.cjs +221 -221
- package/dist/home/index.cjs +9 -9
- package/dist/index.cjs +1819 -1802
- package/dist/index.cjs.map +1 -1
- package/dist/pages/index.cjs +35 -35
- package/dist/settings/index.cjs +135 -135
- package/dist/shell/index.cjs +81 -81
- package/dist/studio/index.cjs +38 -28
- package/dist/studio/index.cjs.map +1 -1
- package/dist/workflow-canvas/TriggerInspector.d.ts +1 -1
- package/dist/workflow-canvas/TriggerInspector.js +4 -3
- package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +86 -76
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/trigger.d.ts +3 -2
- package/dist/workflow-canvas/trigger.js +10 -2
- package/dist/workflow-canvas/trigger.js.map +2 -2
- package/dist/workspaces/index.cjs +5 -5
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-RIR36YJR.cjs.map +0 -1
- package/dist/chunk-4N2IKS6V.cjs.map +0 -1
- package/dist/chunk-G7JESVKJ.cjs.map +0 -1
- package/dist/chunk-GHEKXPES.cjs.map +0 -1
- package/dist/chunk-GV35U5OG.cjs.map +0 -1
- package/dist/chunk-IOGN5UAT.cjs.map +0 -1
- package/dist/chunk-L35JYXOP.cjs.map +0 -1
- package/dist/chunk-QFSFTO7I.cjs.map +0 -1
- package/dist/chunk-WFMG5AUF.cjs.map +0 -1
- package/dist/chunk-XCQDQSZL.cjs.map +0 -1
- package/dist/chunk-YI26A7SN.cjs.map +0 -1
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { components } from '@arbidocs/client';
|
|
8
8
|
import { type StepComposeOptions, type WorkflowDefinition } from '../agents';
|
|
9
|
+
import { type TaskAccessMode } from '../agents/tasks/taskComposerTypes';
|
|
9
10
|
type Schemas = components['schemas'];
|
|
10
11
|
type CreateWorkflowRequest = Schemas['CreateWorkflowRequest'];
|
|
11
12
|
type UpdateWorkflowRequest = Schemas['UpdateWorkflowRequest'];
|
|
@@ -34,8 +35,8 @@ export interface WorkflowTrigger {
|
|
|
34
35
|
afterTaskId: string;
|
|
35
36
|
/** The agent that runs it (`agt-…`); `''` = the owner's own assistant. */
|
|
36
37
|
agentId: string;
|
|
37
|
-
/** Unattended starts:
|
|
38
|
-
access:
|
|
38
|
+
/** Unattended starts: ask the owner each run, or run on a timed authorization (7, 30 or 90 days). */
|
|
39
|
+
access: TaskAccessMode;
|
|
39
40
|
}
|
|
40
41
|
export declare const DEFAULT_WORKFLOW_TRIGGER: WorkflowTrigger;
|
|
41
42
|
/** A builder's whole value: the steps (a stepped workflow) and what starts it. */
|
|
@@ -7,6 +7,11 @@ import {
|
|
|
7
7
|
toPlanSteps
|
|
8
8
|
} from "../agents/index.js";
|
|
9
9
|
import { isoToLocalInput, localInputToIso, workflowWhen } from "../agents/index.js";
|
|
10
|
+
import {
|
|
11
|
+
accessModeOf,
|
|
12
|
+
accessSecondsFor,
|
|
13
|
+
isGrantAccess
|
|
14
|
+
} from "../agents/tasks/taskComposerTypes.js";
|
|
10
15
|
const WORKFLOW_SIGNAL_EVENT = "workflow_signal";
|
|
11
16
|
const DEFAULT_WORKFLOW_TRIGGER = {
|
|
12
17
|
start: "manual",
|
|
@@ -47,7 +52,8 @@ function triggerFields(trigger, clearOthers) {
|
|
|
47
52
|
on_demand: trigger.start === "manual"
|
|
48
53
|
};
|
|
49
54
|
}
|
|
50
|
-
const authMode = (trigger) => trigger.start === "manual" ? "run_now_temp" : trigger.access
|
|
55
|
+
const authMode = (trigger) => trigger.start === "manual" ? "run_now_temp" : isGrantAccess(trigger.access) ? "scheduled_grant" : "scheduled_require_auth";
|
|
56
|
+
const accessFields = (trigger) => authMode(trigger) === "scheduled_grant" ? { access_seconds: accessSecondsFor(trigger.access) } : {};
|
|
51
57
|
const withoutUndefined = (o) => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== void 0));
|
|
52
58
|
function plan(value, options) {
|
|
53
59
|
return {
|
|
@@ -73,6 +79,7 @@ function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
|
73
79
|
skill_inputs: null,
|
|
74
80
|
agent_ext_id: value.trigger.agentId || null,
|
|
75
81
|
auth_mode: authMode(value.trigger),
|
|
82
|
+
...accessFields(value.trigger),
|
|
76
83
|
plan: plan(value, options)
|
|
77
84
|
});
|
|
78
85
|
}
|
|
@@ -87,6 +94,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
87
94
|
skill_inputs: null,
|
|
88
95
|
agent_ext_id: value.trigger.agentId || null,
|
|
89
96
|
auth_mode: authMode(value.trigger),
|
|
97
|
+
...accessFields(value.trigger),
|
|
90
98
|
plan: plan(value, options)
|
|
91
99
|
});
|
|
92
100
|
}
|
|
@@ -122,7 +130,7 @@ function workflowRecordToBuilder(record) {
|
|
|
122
130
|
eventFilter: record.event_kind && record.event_kind !== WORKFLOW_SIGNAL_EVENT && record.event_filter ? record.event_filter : void 0,
|
|
123
131
|
afterTaskId: record.after_conversation_ext_id ?? "",
|
|
124
132
|
agentId: record.agent_ext_id ?? "",
|
|
125
|
-
access: record.auth_mode
|
|
133
|
+
access: accessModeOf(record.auth_mode, record.access_seconds)
|
|
126
134
|
}
|
|
127
135
|
};
|
|
128
136
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/workflow-canvas/trigger.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * What starts a workflow and who runs it: the builder's trigger node, and the mapping between a\n * builder's value (steps + trigger) and a saved workflow (`CreateWorkflowRequest` /\n * `WorkflowResponse`). The steps travel in the workflow's plan (`toPlanSteps`); every firing creates\n * a work thread that runs them.\n */\n\nimport type { components } from '@arbidocs/client'\nimport {\n fromPlanInputs,\n fromPlanSteps,\n layoutFromPlanSteps,\n toPlanInputs,\n toPlanSteps,\n type StepComposeOptions,\n type WorkflowDefinition,\n} from '../agents'\nimport { isoToLocalInput, localInputToIso, workflowWhen } from '../agents'\n\ntype Schemas = components['schemas']\ntype CreateWorkflowRequest = Schemas['CreateWorkflowRequest']\ntype UpdateWorkflowRequest = Schemas['UpdateWorkflowRequest']\ntype WorkflowResponse = Schemas['WorkflowResponse']\n\n/** The event a step's signal raises (`TaskPlanStep.signals`): \"When a step signals\". */\nexport const WORKFLOW_SIGNAL_EVENT = 'workflow_signal'\n\n/**\n * When a workflow starts: `manual` when someone presses Run, `once` at a date, `repeat` on a\n * schedule, `event` when something happens in the workspace, `task` when another task is done.\n */\nexport type WorkflowStart = 'manual' | 'once' | 'repeat' | 'event' | 'task'\n\nexport interface WorkflowTrigger {\n start: WorkflowStart\n /** `once`: a `datetime-local` value. */\n runAt: string\n /** `repeat`: an RFC 5545 rule. */\n rrule: string\n timezone: string\n /** `event`: a notification type. */\n eventKind: string\n /** `event` on `workflow_signal`: the signal name it starts on (its `event_filter.signal`). */\n signal: string\n /** `event` on any other kind: the saved equality filter, kept as it was. */\n eventFilter?: Record<string, string | number | boolean> | null\n /** `task`: the task (`con-\u2026`) it waits on. */\n afterTaskId: string\n /** The agent that runs it (`agt-\u2026`); `''` = the owner's own assistant. */\n agentId: string\n /** Unattended starts: keep standing access, or ask the owner each run. */\n access: 'ask_each_run' | 'standing'\n}\n\nexport const DEFAULT_WORKFLOW_TRIGGER: WorkflowTrigger = {\n start: 'manual',\n runAt: '',\n rrule: '',\n timezone: typeof Intl !== 'undefined' ? Intl.DateTimeFormat().resolvedOptions().timeZone : 'UTC',\n eventKind: '',\n signal: '',\n afterTaskId: '',\n agentId: '',\n access: 'ask_each_run',\n}\n\n/** A builder's whole value: the steps (a stepped workflow) and what starts it. */\nexport interface WorkflowBuilderValue {\n workflow: WorkflowDefinition\n trigger: WorkflowTrigger\n}\n\n/** What is missing before the trigger can be saved; `null` when it can. */\nexport function triggerProblem(\n trigger: WorkflowTrigger\n): 'runAt' | 'rrule' | 'event' | 'signal' | 'task' | null {\n if (trigger.start === 'once' && !trigger.runAt) return 'runAt'\n if (trigger.start === 'repeat' && !trigger.rrule.trim()) return 'rrule'\n if (trigger.start === 'event' && !trigger.eventKind.trim()) return 'event'\n if (isSignalTrigger(trigger) && !trigger.signal.trim()) return 'signal'\n if (trigger.start === 'task' && !trigger.afterTaskId) return 'task'\n return null\n}\n\n/** Does the workflow start when a step (of any workflow) raises a signal? */\nexport const isSignalTrigger = (trigger: WorkflowTrigger): boolean =>\n trigger.start === 'event' && trigger.eventKind.trim() === WORKFLOW_SIGNAL_EVENT\n\nfunction eventFilter(trigger: WorkflowTrigger) {\n if (trigger.start !== 'event') return null\n if (isSignalTrigger(trigger)) return { signal: trigger.signal.trim() }\n return trigger.eventFilter && Object.keys(trigger.eventFilter).length ? trigger.eventFilter : null\n}\n\nfunction triggerFields(trigger: WorkflowTrigger, clearOthers: boolean) {\n const none = clearOthers ? null : undefined\n const filter = eventFilter(trigger)\n return {\n timezone: trigger.timezone,\n rrule: trigger.start === 'repeat' ? trigger.rrule.trim() : none,\n run_at: trigger.start === 'once' ? localInputToIso(trigger.runAt) : none,\n event_kind: trigger.start === 'event' ? trigger.eventKind.trim() : none,\n // A step signal is `workflow_signal` narrowed to one signal name.\n event_filter: filter ?? none,\n after_conversation_ext_id: trigger.start === 'task' ? trigger.afterTaskId : none,\n on_demand: trigger.start === 'manual',\n }\n}\n\nconst authMode = (trigger: WorkflowTrigger) =>\n trigger.start === 'manual'\n ? ('run_now_temp' as const)\n : trigger.access === 'standing'\n ? ('scheduled_permanent' as const)\n : ('scheduled_require_auth' as const)\n\nconst withoutUndefined = <T extends object>(o: T): T =>\n Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined)) as T\n\nfunction plan(value: WorkflowBuilderValue, options: StepComposeOptions) {\n return {\n goal: value.workflow.description,\n criteria: [],\n max_passes: 3,\n documents: [],\n steps: toPlanSteps(value.workflow, options),\n // What a run is started with (checked by the server when one starts).\n inputs: toPlanInputs(value.workflow.inputs),\n }\n}\n\n/**\n * A new saved workflow: its steps in the plan (prompts keep `{{field}}` for each run to fill). It is\n * saved private to its creator: sharing is one-way and asks first, so it is a step of its own (the\n * workflows table's share pill), never a side effect of saving.\n */\nexport function builderToWorkflowRequest(\n value: WorkflowBuilderValue,\n workspaceId: string,\n options: StepComposeOptions = {}\n): CreateWorkflowRequest {\n return withoutUndefined({\n workspace_ext_id: workspaceId,\n name: value.workflow.title,\n description: value.workflow.description,\n active: true,\n shared: false,\n ...triggerFields(value.trigger, false),\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as CreateWorkflowRequest\n}\n\n/** An edit of a saved workflow: the steps and the trigger as the builder now has them. */\nexport function builderToWorkflowUpdate(\n value: WorkflowBuilderValue,\n options: StepComposeOptions = {}\n): UpdateWorkflowRequest {\n return withoutUndefined({\n name: value.workflow.title,\n description: value.workflow.description,\n ...triggerFields(value.trigger, true),\n // The steps are what runs (a classic automation's single prompt or skill becomes its one step).\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as UpdateWorkflowRequest\n}\n\n/**\n * A saved workflow back in the builder. A classic automation (one prompt or one skill, no steps)\n * opens as a workflow of that one agent step; saving it keeps it as steps.\n */\nexport function workflowRecordToBuilder(record: WorkflowResponse): WorkflowBuilderValue {\n const planned = (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>\n const steps = planned.length\n ? fromPlanSteps(planned)\n : record.prompt || record.skill_ref\n ? [\n {\n id: 'work',\n kind: 'agent' as const,\n title: record.name,\n ...(record.skill_ref\n ? { workflow: record.skill_ref }\n : { run: { kind: 'prompt' as const, promptTemplate: record.prompt } }),\n },\n ]\n : []\n const when = workflowWhen(record)\n return {\n workflow: {\n id: record.external_id,\n title: record.name,\n description: record.description ?? '',\n inputs: fromPlanInputs(record.plan?.inputs),\n landing: 'chat',\n schedulable: false,\n run: { kind: 'steps', steps, layout: layoutFromPlanSteps(planned ?? []) },\n },\n trigger: {\n ...DEFAULT_WORKFLOW_TRIGGER,\n start: when === 'now' ? 'manual' : when,\n runAt: isoToLocalInput(record.run_at),\n rrule: record.rrule ?? '',\n timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,\n eventKind: record.event_kind ?? '',\n signal:\n record.event_kind === WORKFLOW_SIGNAL_EVENT &&\n typeof record.event_filter?.signal === 'string'\n ? record.event_filter.signal\n : '',\n eventFilter:\n record.event_kind && record.event_kind !== WORKFLOW_SIGNAL_EVENT && record.event_filter\n ? (record.event_filter as WorkflowTrigger['eventFilter'])\n : undefined,\n afterTaskId: record.after_conversation_ext_id ?? '',\n agentId: record.agent_ext_id ?? '',\n access: record.auth_mode === 'scheduled_permanent' ? 'standing' : 'ask_each_run',\n },\n }\n}\n\n/** A signal a firm's workflow declares, as the \"When a step signals\" picker offers it. */\nexport interface DeclaredSignal {\n value: string\n /** Where it is raised: `<workflow> \u203A <step>` (the first place, when several raise it). */\n label: string\n}\n\n/**\n * Every signal the given workflows' steps declare (saved records, plus the one being built), each\n * name once, in the order first seen: the picker's options. Free text stays allowed.\n */\nexport function declaredSignals(\n records: ReadonlyArray<Pick<WorkflowResponse, 'name' | 'plan'>>,\n current?: WorkflowDefinition\n): DeclaredSignal[] {\n const out = new Map<string, DeclaredSignal>()\n const add = (\n workflow: string,\n steps: ReadonlyArray<{ title: string; signals?: Array<{ name: string }> | null }>\n ) => {\n for (const step of steps)\n for (const signal of step.signals ?? [])\n if (signal.name && !out.has(signal.name))\n out.set(signal.name, { value: signal.name, label: `${workflow} \u203A ${step.title}` })\n }\n for (const record of records)\n add(record.name, (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>)\n if (current?.run.kind === 'steps') add(current.title, current.run.steps)\n return [...out.values()]\n}\n"],
|
|
5
|
-
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,iBAAiB,iBAAiB,oBAAoB;
|
|
4
|
+
"sourcesContent": ["/**\n * What starts a workflow and who runs it: the builder's trigger node, and the mapping between a\n * builder's value (steps + trigger) and a saved workflow (`CreateWorkflowRequest` /\n * `WorkflowResponse`). The steps travel in the workflow's plan (`toPlanSteps`); every firing creates\n * a work thread that runs them.\n */\n\nimport type { components } from '@arbidocs/client'\nimport {\n fromPlanInputs,\n fromPlanSteps,\n layoutFromPlanSteps,\n toPlanInputs,\n toPlanSteps,\n type StepComposeOptions,\n type WorkflowDefinition,\n} from '../agents'\nimport { isoToLocalInput, localInputToIso, workflowWhen } from '../agents'\nimport {\n accessModeOf,\n accessSecondsFor,\n isGrantAccess,\n type TaskAccessMode,\n} from '../agents/tasks/taskComposerTypes'\n\ntype Schemas = components['schemas']\ntype CreateWorkflowRequest = Schemas['CreateWorkflowRequest']\ntype UpdateWorkflowRequest = Schemas['UpdateWorkflowRequest']\ntype WorkflowResponse = Schemas['WorkflowResponse']\n\n/** The event a step's signal raises (`TaskPlanStep.signals`): \"When a step signals\". */\nexport const WORKFLOW_SIGNAL_EVENT = 'workflow_signal'\n\n/**\n * When a workflow starts: `manual` when someone presses Run, `once` at a date, `repeat` on a\n * schedule, `event` when something happens in the workspace, `task` when another task is done.\n */\nexport type WorkflowStart = 'manual' | 'once' | 'repeat' | 'event' | 'task'\n\nexport interface WorkflowTrigger {\n start: WorkflowStart\n /** `once`: a `datetime-local` value. */\n runAt: string\n /** `repeat`: an RFC 5545 rule. */\n rrule: string\n timezone: string\n /** `event`: a notification type. */\n eventKind: string\n /** `event` on `workflow_signal`: the signal name it starts on (its `event_filter.signal`). */\n signal: string\n /** `event` on any other kind: the saved equality filter, kept as it was. */\n eventFilter?: Record<string, string | number | boolean> | null\n /** `task`: the task (`con-\u2026`) it waits on. */\n afterTaskId: string\n /** The agent that runs it (`agt-\u2026`); `''` = the owner's own assistant. */\n agentId: string\n /** Unattended starts: ask the owner each run, or run on a timed authorization (7, 30 or 90 days). */\n access: TaskAccessMode\n}\n\nexport const DEFAULT_WORKFLOW_TRIGGER: WorkflowTrigger = {\n start: 'manual',\n runAt: '',\n rrule: '',\n timezone: typeof Intl !== 'undefined' ? Intl.DateTimeFormat().resolvedOptions().timeZone : 'UTC',\n eventKind: '',\n signal: '',\n afterTaskId: '',\n agentId: '',\n access: 'ask_each_run',\n}\n\n/** A builder's whole value: the steps (a stepped workflow) and what starts it. */\nexport interface WorkflowBuilderValue {\n workflow: WorkflowDefinition\n trigger: WorkflowTrigger\n}\n\n/** What is missing before the trigger can be saved; `null` when it can. */\nexport function triggerProblem(\n trigger: WorkflowTrigger\n): 'runAt' | 'rrule' | 'event' | 'signal' | 'task' | null {\n if (trigger.start === 'once' && !trigger.runAt) return 'runAt'\n if (trigger.start === 'repeat' && !trigger.rrule.trim()) return 'rrule'\n if (trigger.start === 'event' && !trigger.eventKind.trim()) return 'event'\n if (isSignalTrigger(trigger) && !trigger.signal.trim()) return 'signal'\n if (trigger.start === 'task' && !trigger.afterTaskId) return 'task'\n return null\n}\n\n/** Does the workflow start when a step (of any workflow) raises a signal? */\nexport const isSignalTrigger = (trigger: WorkflowTrigger): boolean =>\n trigger.start === 'event' && trigger.eventKind.trim() === WORKFLOW_SIGNAL_EVENT\n\nfunction eventFilter(trigger: WorkflowTrigger) {\n if (trigger.start !== 'event') return null\n if (isSignalTrigger(trigger)) return { signal: trigger.signal.trim() }\n return trigger.eventFilter && Object.keys(trigger.eventFilter).length ? trigger.eventFilter : null\n}\n\nfunction triggerFields(trigger: WorkflowTrigger, clearOthers: boolean) {\n const none = clearOthers ? null : undefined\n const filter = eventFilter(trigger)\n return {\n timezone: trigger.timezone,\n rrule: trigger.start === 'repeat' ? trigger.rrule.trim() : none,\n run_at: trigger.start === 'once' ? localInputToIso(trigger.runAt) : none,\n event_kind: trigger.start === 'event' ? trigger.eventKind.trim() : none,\n // A step signal is `workflow_signal` narrowed to one signal name.\n event_filter: filter ?? none,\n after_conversation_ext_id: trigger.start === 'task' ? trigger.afterTaskId : none,\n on_demand: trigger.start === 'manual',\n }\n}\n\nconst authMode = (trigger: WorkflowTrigger) =>\n trigger.start === 'manual'\n ? ('run_now_temp' as const)\n : isGrantAccess(trigger.access)\n ? ('scheduled_grant' as const)\n : ('scheduled_require_auth' as const)\n\n/** A timed workflow's authorization length (nothing for any other start). */\nconst accessFields = (trigger: WorkflowTrigger) =>\n authMode(trigger) === 'scheduled_grant'\n ? { access_seconds: accessSecondsFor(trigger.access) }\n : {}\n\nconst withoutUndefined = <T extends object>(o: T): T =>\n Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined)) as T\n\nfunction plan(value: WorkflowBuilderValue, options: StepComposeOptions) {\n return {\n goal: value.workflow.description,\n criteria: [],\n max_passes: 3,\n documents: [],\n steps: toPlanSteps(value.workflow, options),\n // What a run is started with (checked by the server when one starts).\n inputs: toPlanInputs(value.workflow.inputs),\n }\n}\n\n/**\n * A new saved workflow: its steps in the plan (prompts keep `{{field}}` for each run to fill). It is\n * saved private to its creator: sharing is one-way and asks first, so it is a step of its own (the\n * workflows table's share pill), never a side effect of saving.\n */\nexport function builderToWorkflowRequest(\n value: WorkflowBuilderValue,\n workspaceId: string,\n options: StepComposeOptions = {}\n): CreateWorkflowRequest {\n return withoutUndefined({\n workspace_ext_id: workspaceId,\n name: value.workflow.title,\n description: value.workflow.description,\n active: true,\n shared: false,\n ...triggerFields(value.trigger, false),\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n ...accessFields(value.trigger),\n plan: plan(value, options),\n }) as CreateWorkflowRequest\n}\n\n/** An edit of a saved workflow: the steps and the trigger as the builder now has them. */\nexport function builderToWorkflowUpdate(\n value: WorkflowBuilderValue,\n options: StepComposeOptions = {}\n): UpdateWorkflowRequest {\n return withoutUndefined({\n name: value.workflow.title,\n description: value.workflow.description,\n ...triggerFields(value.trigger, true),\n // The steps are what runs (a classic automation's single prompt or skill becomes its one step).\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n ...accessFields(value.trigger),\n plan: plan(value, options),\n }) as UpdateWorkflowRequest\n}\n\n/**\n * A saved workflow back in the builder. A classic automation (one prompt or one skill, no steps)\n * opens as a workflow of that one agent step; saving it keeps it as steps.\n */\nexport function workflowRecordToBuilder(record: WorkflowResponse): WorkflowBuilderValue {\n const planned = (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>\n const steps = planned.length\n ? fromPlanSteps(planned)\n : record.prompt || record.skill_ref\n ? [\n {\n id: 'work',\n kind: 'agent' as const,\n title: record.name,\n ...(record.skill_ref\n ? { workflow: record.skill_ref }\n : { run: { kind: 'prompt' as const, promptTemplate: record.prompt } }),\n },\n ]\n : []\n const when = workflowWhen(record)\n return {\n workflow: {\n id: record.external_id,\n title: record.name,\n description: record.description ?? '',\n inputs: fromPlanInputs(record.plan?.inputs),\n landing: 'chat',\n schedulable: false,\n run: { kind: 'steps', steps, layout: layoutFromPlanSteps(planned ?? []) },\n },\n trigger: {\n ...DEFAULT_WORKFLOW_TRIGGER,\n start: when === 'now' ? 'manual' : when,\n runAt: isoToLocalInput(record.run_at),\n rrule: record.rrule ?? '',\n timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,\n eventKind: record.event_kind ?? '',\n signal:\n record.event_kind === WORKFLOW_SIGNAL_EVENT &&\n typeof record.event_filter?.signal === 'string'\n ? record.event_filter.signal\n : '',\n eventFilter:\n record.event_kind && record.event_kind !== WORKFLOW_SIGNAL_EVENT && record.event_filter\n ? (record.event_filter as WorkflowTrigger['eventFilter'])\n : undefined,\n afterTaskId: record.after_conversation_ext_id ?? '',\n agentId: record.agent_ext_id ?? '',\n access: accessModeOf(record.auth_mode, record.access_seconds),\n },\n }\n}\n\n/** A signal a firm's workflow declares, as the \"When a step signals\" picker offers it. */\nexport interface DeclaredSignal {\n value: string\n /** Where it is raised: `<workflow> \u203A <step>` (the first place, when several raise it). */\n label: string\n}\n\n/**\n * Every signal the given workflows' steps declare (saved records, plus the one being built), each\n * name once, in the order first seen: the picker's options. Free text stays allowed.\n */\nexport function declaredSignals(\n records: ReadonlyArray<Pick<WorkflowResponse, 'name' | 'plan'>>,\n current?: WorkflowDefinition\n): DeclaredSignal[] {\n const out = new Map<string, DeclaredSignal>()\n const add = (\n workflow: string,\n steps: ReadonlyArray<{ title: string; signals?: Array<{ name: string }> | null }>\n ) => {\n for (const step of steps)\n for (const signal of step.signals ?? [])\n if (signal.name && !out.has(signal.name))\n out.set(signal.name, { value: signal.name, label: `${workflow} \u203A ${step.title}` })\n }\n for (const record of records)\n add(record.name, (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>)\n if (current?.run.kind === 'steps') add(current.title, current.run.steps)\n return [...out.values()]\n}\n"],
|
|
5
|
+
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,iBAAiB,iBAAiB,oBAAoB;AAC/D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAQA,MAAM,wBAAwB;AA6B9B,MAAM,2BAA4C;AAAA,EACvD,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP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yB,OAAO,eACtE,OAAO,eACR;AAAA,MACN,aAAa,OAAO,6BAA6B;AAAA,MACjD,SAAS,OAAO,gBAAgB;AAAA,MAChC,QAAQ,aAAa,OAAO,WAAW,OAAO,cAAc;AAAA,IAC9D;AAAA,EACF;AACF;AAaO,SAAS,gBACd,SACA,SACkB;AAClB,QAAM,MAAM,oBAAI,IAA4B;AAC5C,QAAM,MAAM,CACV,UACA,UACG;AACH,eAAW,QAAQ;AACjB,iBAAW,UAAU,KAAK,WAAW,CAAC;AACpC,YAAI,OAAO,QAAQ,CAAC,IAAI,IAAI,OAAO,IAAI;AACrC,cAAI,IAAI,OAAO,MAAM,EAAE,OAAO,OAAO,MAAM,OAAO,GAAG,QAAQ,WAAM,KAAK,KAAK,GAAG,CAAC;AAAA,EACzF;AACA,aAAW,UAAU;AACnB,QAAI,OAAO,MAAO,OAAO,MAAM,SAAS,CAAC,CAAsD;AACjG,MAAI,SAAS,IAAI,SAAS,QAAS,KAAI,QAAQ,OAAO,QAAQ,IAAI,KAAK;AACvE,SAAO,CAAC,GAAG,IAAI,OAAO,CAAC;AACzB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk3LPHCJPB_cjs = require('../chunk-3LPHCJPB.cjs');
|
|
5
|
-
var chunkDWRUGOTQ_cjs = require('../chunk-DWRUGOTQ.cjs');
|
|
6
5
|
var chunkMAZCQPEE_cjs = require('../chunk-MAZCQPEE.cjs');
|
|
7
6
|
var chunk6OPDKROP_cjs = require('../chunk-6OPDKROP.cjs');
|
|
7
|
+
var chunkDWRUGOTQ_cjs = require('../chunk-DWRUGOTQ.cjs');
|
|
8
8
|
var chunkKD66CBYO_cjs = require('../chunk-KD66CBYO.cjs');
|
|
9
9
|
require('../chunk-UMMZNZV3.cjs');
|
|
10
10
|
require('../chunk-AEQT2QQX.cjs');
|
|
@@ -140,10 +140,6 @@ Object.defineProperty(exports, "WorkspaceProjectSlot", {
|
|
|
140
140
|
enumerable: true,
|
|
141
141
|
get: function () { return chunk3LPHCJPB_cjs.WorkspaceProjectSlot; }
|
|
142
142
|
});
|
|
143
|
-
Object.defineProperty(exports, "WorkspaceTypeBadge", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () { return chunkDWRUGOTQ_cjs.WorkspaceTypeBadge; }
|
|
146
|
-
});
|
|
147
143
|
Object.defineProperty(exports, "FormActions", {
|
|
148
144
|
enumerable: true,
|
|
149
145
|
get: function () { return chunkMAZCQPEE_cjs.FormActions; }
|
|
@@ -216,6 +212,10 @@ Object.defineProperty(exports, "workspaceGroupStats", {
|
|
|
216
212
|
enumerable: true,
|
|
217
213
|
get: function () { return chunk6OPDKROP_cjs.workspaceGroupStats; }
|
|
218
214
|
});
|
|
215
|
+
Object.defineProperty(exports, "WorkspaceTypeBadge", {
|
|
216
|
+
enumerable: true,
|
|
217
|
+
get: function () { return chunkDWRUGOTQ_cjs.WorkspaceTypeBadge; }
|
|
218
|
+
});
|
|
219
219
|
Object.defineProperty(exports, "getHumanUserCount", {
|
|
220
220
|
enumerable: true,
|
|
221
221
|
get: function () { return chunkKD66CBYO_cjs.getHumanUserCount; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.200",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.200",
|
|
4
4
|
"description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -362,9 +362,9 @@
|
|
|
362
362
|
"custom-site:test:e2e": "playwright test -c examples/custom-site/playwright.config.ts"
|
|
363
363
|
},
|
|
364
364
|
"dependencies": {
|
|
365
|
-
"@arbidocs/client": "0.5.
|
|
366
|
-
"@arbidocs/coedit": "0.5.
|
|
367
|
-
"@arbidocs/sdk": "0.5.
|
|
365
|
+
"@arbidocs/client": "0.5.200",
|
|
366
|
+
"@arbidocs/coedit": "0.5.200",
|
|
367
|
+
"@arbidocs/sdk": "0.5.200",
|
|
368
368
|
"@auth0/auth0-react": "^2.19.0",
|
|
369
369
|
"@dnd-kit/core": "^6.3.1",
|
|
370
370
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"y-protocols": "^1.0.6"
|
|
418
418
|
},
|
|
419
419
|
"peerDependencies": {
|
|
420
|
-
"@arbidocs/react": "0.5.
|
|
420
|
+
"@arbidocs/react": "0.5.200",
|
|
421
421
|
"@lexical/html": "0.35.0",
|
|
422
422
|
"@lexical/link": "0.35.0",
|
|
423
423
|
"@lexical/list": "0.35.0",
|
package/dist/ai-RIR36YJR.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ai-RIR36YJR.cjs"}
|