@arbidocs/blocks 0.4.71 → 0.4.73
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 +404 -266
- package/dist/agents/index.js +10 -8
- package/dist/agents/tasks/TaskActivityTimeline.d.ts +1 -1
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +58 -0
- package/dist/agents/tasks/index.d.ts +1 -0
- package/dist/agents/workflows/WorkflowRunner.d.ts +70 -0
- package/dist/agents/workflows/index.d.ts +7 -1
- package/dist/agents/workflows/planSteps.d.ts +28 -0
- package/dist/agents/workflows/run.d.ts +97 -0
- package/dist/agents/workflows/skillMarkdown.d.ts +15 -0
- package/dist/agents/workflows/types.d.ts +109 -0
- package/dist/agents/workflows/useWorkflowPreview.d.ts +14 -0
- package/dist/agents/workflows/useWorkflowView.d.ts +54 -0
- package/dist/agents/workflows/workflow.d.ts +3 -1
- package/dist/calendar/CalendarGrid.d.ts +2 -0
- package/dist/calendar/CalendarList.d.ts +2 -0
- package/dist/calendar/CalendarSettingsForm.d.ts +2 -0
- package/dist/calendar/EventDetails.d.ts +2 -0
- package/dist/calendar/EventEditor.d.ts +2 -0
- package/dist/calendar/MiniMonth.d.ts +2 -0
- package/dist/calendar/RecurrenceEditor.d.ts +13 -0
- package/dist/calendar/RoomFinder.d.ts +2 -0
- package/dist/calendar/SchedulingAssistant.d.ts +2 -0
- package/dist/calendar/ScopeDialog.d.ts +2 -0
- package/dist/calendar/TimeZonePicker.d.ts +2 -0
- package/dist/calendar/colors.d.ts +4 -0
- package/dist/calendar/draft.d.ts +43 -0
- package/dist/calendar/format.d.ts +14 -0
- package/dist/calendar/grid-model.d.ts +24 -0
- package/dist/calendar/index.cjs +4122 -0
- package/dist/calendar/index.cjs.map +1 -0
- package/dist/calendar/index.d.ts +30 -0
- package/dist/calendar/index.js +4043 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/labels.d.ts +4 -0
- package/dist/calendar/recurrence-labels.d.ts +22 -0
- package/dist/calendar/recurrence.d.ts +66 -0
- package/dist/calendar/reminders.d.ts +26 -0
- package/dist/calendar/scheduling.d.ts +27 -0
- package/dist/calendar/types.d.ts +605 -0
- package/dist/calendar/ui.d.ts +16 -0
- package/dist/calendar/zone.d.ts +56 -0
- package/dist/chat/index.cjs +123 -123
- package/dist/chat/index.js +3 -3
- package/dist/chunk-2P3T23C7.js +1250 -0
- package/dist/chunk-2P3T23C7.js.map +1 -0
- package/dist/{chunk-XNRGCQPZ.cjs → chunk-3SFFTSOI.cjs} +5 -5
- package/dist/{chunk-XNRGCQPZ.cjs.map → chunk-3SFFTSOI.cjs.map} +1 -1
- package/dist/{chunk-7WM62NMM.cjs → chunk-6OL5S7MJ.cjs} +5 -2
- package/dist/chunk-6OL5S7MJ.cjs.map +1 -0
- package/dist/chunk-7D737FLE.cjs +43 -0
- package/dist/chunk-7D737FLE.cjs.map +1 -0
- package/dist/{chunk-VUEZARW5.cjs → chunk-B3WCKBJ7.cjs} +278 -5
- package/dist/chunk-B3WCKBJ7.cjs.map +1 -0
- package/dist/{chunk-L5UPP2HC.js → chunk-D46ZAPEE.js} +5 -2
- package/dist/chunk-D46ZAPEE.js.map +1 -0
- package/dist/{chunk-LFGJAZ5H.js → chunk-DDF5GPIJ.js} +6 -36
- package/dist/chunk-DDF5GPIJ.js.map +1 -0
- package/dist/chunk-DETZZBG2.cjs +91 -0
- package/dist/chunk-DETZZBG2.cjs.map +1 -0
- package/dist/chunk-EVUEIBNU.js +89 -0
- package/dist/chunk-EVUEIBNU.js.map +1 -0
- package/dist/{chunk-CXWESDIZ.cjs → chunk-F4RUCUXF.cjs} +6 -6
- package/dist/{chunk-CXWESDIZ.cjs.map → chunk-F4RUCUXF.cjs.map} +1 -1
- package/dist/{chunk-DABEWNL2.js → chunk-G5DP27DU.js} +3 -3
- package/dist/{chunk-DABEWNL2.js.map → chunk-G5DP27DU.js.map} +1 -1
- package/dist/{chunk-VZGBCBYB.js → chunk-GJV2G4FC.js} +276 -7
- package/dist/chunk-GJV2G4FC.js.map +1 -0
- package/dist/chunk-GTNUQBXI.cjs +1296 -0
- package/dist/chunk-GTNUQBXI.cjs.map +1 -0
- package/dist/{chunk-7M22KND4.cjs → chunk-IUR565UW.cjs} +303 -530
- package/dist/chunk-IUR565UW.cjs.map +1 -0
- package/dist/{chunk-5DM6VU4L.cjs → chunk-KJ3QEKOJ.cjs} +3 -3
- package/dist/{chunk-5DM6VU4L.cjs.map → chunk-KJ3QEKOJ.cjs.map} +1 -1
- package/dist/{chunk-THO7DZNN.cjs → chunk-MUMH3Z6K.cjs} +20 -15
- package/dist/chunk-MUMH3Z6K.cjs.map +1 -0
- package/dist/{chunk-3TVTG7FK.js → chunk-ORA2XE7U.js} +4 -4
- package/dist/{chunk-3TVTG7FK.js.map → chunk-ORA2XE7U.js.map} +1 -1
- package/dist/{chunk-5HOAOKZL.js → chunk-OYMWV45N.js} +21 -16
- package/dist/chunk-OYMWV45N.js.map +1 -0
- package/dist/{chunk-HLMFU7L2.js → chunk-QDNXEB3T.js} +272 -488
- package/dist/chunk-QDNXEB3T.js.map +1 -0
- package/dist/{chunk-ILGHS6ZV.js → chunk-SB5ZKOYN.js} +3 -3
- package/dist/{chunk-ILGHS6ZV.js.map → chunk-SB5ZKOYN.js.map} +1 -1
- package/dist/{chunk-CPMNAJLF.js → chunk-TX2ZICS7.js} +24 -4
- package/dist/chunk-TX2ZICS7.js.map +1 -0
- package/dist/{chunk-2ZTONLT5.cjs → chunk-ULWRNGGE.cjs} +25 -4
- package/dist/chunk-ULWRNGGE.cjs.map +1 -0
- package/dist/{chunk-BMWZTNZB.js → chunk-VRPRAU3J.js} +3 -3
- package/dist/{chunk-BMWZTNZB.js.map → chunk-VRPRAU3J.js.map} +1 -1
- package/dist/{chunk-LTA2IAQB.cjs → chunk-WOYUXVVQ.cjs} +8 -8
- package/dist/{chunk-LTA2IAQB.cjs.map → chunk-WOYUXVVQ.cjs.map} +1 -1
- package/dist/chunk-XD2M6LIG.js +41 -0
- package/dist/chunk-XD2M6LIG.js.map +1 -0
- package/dist/{chunk-WBDK4PIA.cjs → chunk-Z5VUZ6YD.cjs} +6 -37
- package/dist/chunk-Z5VUZ6YD.cjs.map +1 -0
- package/dist/collaboration/index.cjs +44 -45
- package/dist/collaboration/index.js +2 -3
- package/dist/connect/docx.cjs +2 -2
- package/dist/connect/docx.js +1 -1
- package/dist/connect/index.cjs +370 -48
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -1
- package/dist/connect/index.js +331 -12
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedSettings.d.ts +13 -0
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +44 -0
- package/dist/connection/ConnectedWorkflowRunner.d.ts +27 -0
- package/dist/connection/useWorkflowThread.d.ts +34 -0
- package/dist/document-tools/index.cjs +4 -5
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +1 -2
- package/dist/document-tools/index.js.map +1 -1
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/import/index.d.ts +0 -1
- package/dist/files/index.cjs +31 -169
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +8 -147
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +21 -20
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +3 -2
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +680 -542
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/dist/settings/Billing.d.ts +4 -0
- package/dist/settings/IdentityVerification.d.ts +83 -0
- package/dist/settings/PlanBadge.d.ts +2 -2
- package/dist/settings/PlanCard.d.ts +6 -1
- package/dist/settings/ProfileCard.d.ts +5 -1
- package/dist/settings/SubscriptionParts.d.ts +6 -2
- package/dist/settings/index.cjs +128 -95
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +64 -47
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/ActionCluster.d.ts +3 -1
- package/dist/shell/index.cjs +54 -54
- package/dist/shell/index.js +2 -2
- package/dist/studio/index.cjs +6 -6
- package/dist/studio/index.js +4 -4
- package/dist/workflow-canvas/StepInspector.d.ts +46 -0
- package/dist/workflow-canvas/TriggerInspector.d.ts +46 -0
- package/dist/workflow-canvas/WorkflowBuilder.d.ts +55 -0
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +65 -0
- package/dist/workflow-canvas/edit.d.ts +54 -0
- package/dist/workflow-canvas/index.cjs +1609 -0
- package/dist/workflow-canvas/index.cjs.map +1 -0
- package/dist/workflow-canvas/index.d.ts +13 -0
- package/dist/workflow-canvas/index.js +1579 -0
- package/dist/workflow-canvas/index.js.map +1 -0
- package/dist/workflow-canvas/trigger.d.ts +51 -0
- package/dist/workspaces/index.cjs +2 -3
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +1 -2
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +41 -12
- package/src/calendar/calendar.css +316 -0
- package/src/workflow-canvas/canvas.css +113 -0
- package/dist/chunk-2ZTONLT5.cjs.map +0 -1
- package/dist/chunk-5HOAOKZL.js.map +0 -1
- package/dist/chunk-7M22KND4.cjs.map +0 -1
- package/dist/chunk-7WM62NMM.cjs.map +0 -1
- package/dist/chunk-CPMNAJLF.js.map +0 -1
- package/dist/chunk-DCDVWPMB.cjs +0 -29
- package/dist/chunk-DCDVWPMB.cjs.map +0 -1
- package/dist/chunk-HLMFU7L2.js.map +0 -1
- package/dist/chunk-L5UPP2HC.js.map +0 -1
- package/dist/chunk-LFGJAZ5H.js.map +0 -1
- package/dist/chunk-THO7DZNN.cjs.map +0 -1
- package/dist/chunk-TJMKFY5P.js +0 -27
- package/dist/chunk-TJMKFY5P.js.map +0 -1
- package/dist/chunk-VUEZARW5.cjs.map +0 -1
- package/dist/chunk-VZGBCBYB.js.map +0 -1
- package/dist/chunk-WBDK4PIA.cjs.map +0 -1
- package/dist/files/import/CalendarImportRow.d.ts +0 -26
|
@@ -15,6 +15,8 @@ export interface ActionClusterProps {
|
|
|
15
15
|
report?: ReactNode;
|
|
16
16
|
/** Notification bell (the kit's NotificationBell, or a `Sidebar.BadgeRow`). */
|
|
17
17
|
mail?: ReactNode;
|
|
18
|
+
/** Calendar entry (a `Sidebar.BadgeRow`), right after mail. */
|
|
19
|
+
calendar?: ReactNode;
|
|
18
20
|
bell?: ReactNode;
|
|
19
21
|
/** Contacts / messages entry with its own badge (a `Sidebar.BadgeRow`). */
|
|
20
22
|
contacts?: ReactNode;
|
|
@@ -33,4 +35,4 @@ export interface ActionClusterProps {
|
|
|
33
35
|
* order, so nothing moves when the rail expands; the account menu holds everything else (help,
|
|
34
36
|
* settings, tips, processing).
|
|
35
37
|
*/
|
|
36
|
-
export declare function ActionCluster({ layout, status, report, mail, bell, contacts, account, label, 'data-testid': testId, }: ActionClusterProps): import("react").JSX.Element;
|
|
38
|
+
export declare function ActionCluster({ layout, status, report, mail, calendar, bell, contacts, account, label, 'data-testid': testId, }: ActionClusterProps): import("react").JSX.Element;
|
package/dist/shell/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk6OL5S7MJ_cjs = require('../chunk-6OL5S7MJ.cjs');
|
|
5
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
5
6
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
6
7
|
require('../chunk-OB5F4577.cjs');
|
|
7
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
8
8
|
var chunkXKSFJYOD_cjs = require('../chunk-XKSFJYOD.cjs');
|
|
9
9
|
var chunkVGOFFCMT_cjs = require('../chunk-VGOFFCMT.cjs');
|
|
10
10
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
@@ -17,179 +17,187 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "ActionCluster", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk6OL5S7MJ_cjs.ActionCluster; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "AskField", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk6OL5S7MJ_cjs.AskField; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "AskRow", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk6OL5S7MJ_cjs.AskRow; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "AskTrigger", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk6OL5S7MJ_cjs.AskTrigger; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DEFAULT_ASK_FIELD_LABELS", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_ASK_FIELD_LABELS; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "DEFAULT_INSTALL_PROMPT_LABELS", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_MOBILE_BARS_LABELS", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_MOBILE_BARS_LABELS; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "DEFAULT_OFFLINE_PILL_LABELS", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_OFFLINE_PILL_LABELS; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "DEFAULT_REMOTE_CONTROL_PILL_LABELS", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_REMOTE_CONTROL_PILL_LABELS; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "DEFAULT_SIDEBAR_LABELS", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_SIDEBAR_LABELS; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "DEFAULT_TIP_CARD_LABELS", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_TIP_CARD_LABELS; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_KIND_LABELS", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_WORKSPACE_KIND_LABELS; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_SWITCHER_LABELS", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk6OL5S7MJ_cjs.DEFAULT_WORKSPACE_SWITCHER_LABELS; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "INSTALL_PROMPT_DISMISSED_KEY", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk6OL5S7MJ_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "InfoBar", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk6OL5S7MJ_cjs.InfoBar; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "InstallPrompt", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk6OL5S7MJ_cjs.InstallPrompt; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "MobileAppBar", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk6OL5S7MJ_cjs.MobileAppBar; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "MobileTabBar", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk6OL5S7MJ_cjs.MobileTabBar; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "NotificationBell", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk6OL5S7MJ_cjs.NotificationBell; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "OfflinePill", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk6OL5S7MJ_cjs.OfflinePill; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "RemoteControlPill", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk6OL5S7MJ_cjs.RemoteControlPill; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "STATUS_ROW_BASE_CLASS", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk6OL5S7MJ_cjs.STATUS_ROW_BASE_CLASS; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "STATUS_ROW_TONES", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunk6OL5S7MJ_cjs.STATUS_ROW_TONES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "Sidebar", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunk6OL5S7MJ_cjs.Sidebar; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "SidebarBadgeRow", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunk6OL5S7MJ_cjs.SidebarBadgeRow; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "SidebarRowAction", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunk6OL5S7MJ_cjs.SidebarRowAction; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "SidebarRowHoverContext", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk6OL5S7MJ_cjs.SidebarRowHoverContext; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "SplitLayout", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk6OL5S7MJ_cjs.SplitLayout; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "StatusBadge", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk6OL5S7MJ_cjs.StatusBadge; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "StatusRow", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk6OL5S7MJ_cjs.StatusRow; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "TipCard", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk6OL5S7MJ_cjs.TipCard; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "UserMenu", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk6OL5S7MJ_cjs.UserMenu; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "WorkspaceIdentity", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk6OL5S7MJ_cjs.WorkspaceIdentity; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "WorkspaceSwitcher", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk6OL5S7MJ_cjs.WorkspaceSwitcher; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "getInstallInstructions", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk6OL5S7MJ_cjs.getInstallInstructions; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "initInstallPrompt", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk6OL5S7MJ_cjs.initInstallPrompt; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "isIosDevice", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk6OL5S7MJ_cjs.isIosDevice; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "promptAppInstall", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk6OL5S7MJ_cjs.promptAppInstall; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "resolveSidebarLayout", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk6OL5S7MJ_cjs.resolveSidebarLayout; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "useInstallPrompt", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk6OL5S7MJ_cjs.useInstallPrompt; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "useSidebarContext", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk6OL5S7MJ_cjs.useSidebarContext; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "useSidebarSettle", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk6OL5S7MJ_cjs.useSidebarSettle; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "workspaceKindColor", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk6OL5S7MJ_cjs.workspaceKindColor; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "workspaceKindMeta", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk6OL5S7MJ_cjs.workspaceKindMeta; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunk7RGLTF76_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "TabHeader", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunk7RGLTF76_cjs.TabHeader; }
|
|
193
201
|
});
|
|
194
202
|
Object.defineProperty(exports, "DEFAULT_FILTER_FIELDS", {
|
|
195
203
|
enumerable: true,
|
|
@@ -203,14 +211,6 @@ Object.defineProperty(exports, "FilterInput", {
|
|
|
203
211
|
enumerable: true,
|
|
204
212
|
get: function () { return chunk2EI7NCUA_cjs.FilterInput; }
|
|
205
213
|
});
|
|
206
|
-
Object.defineProperty(exports, "DEFAULT_TAB_HEADER_LABELS", {
|
|
207
|
-
enumerable: true,
|
|
208
|
-
get: function () { return chunk7RGLTF76_cjs.DEFAULT_TAB_HEADER_LABELS; }
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "TabHeader", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function () { return chunk7RGLTF76_cjs.TabHeader; }
|
|
213
|
-
});
|
|
214
214
|
Object.defineProperty(exports, "DEFAULT_DOCK_WIDTH", {
|
|
215
215
|
enumerable: true,
|
|
216
216
|
get: function () { return chunkXKSFJYOD_cjs.DEFAULT_DOCK_WIDTH; }
|
package/dist/shell/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from '../chunk-
|
|
2
|
+
export { ActionCluster, AskField, AskRow, AskTrigger, DEFAULT_ASK_FIELD_LABELS, DEFAULT_INSTALL_PROMPT_LABELS, DEFAULT_MOBILE_BARS_LABELS, DEFAULT_OFFLINE_PILL_LABELS, DEFAULT_REMOTE_CONTROL_PILL_LABELS, DEFAULT_SIDEBAR_LABELS, DEFAULT_TIP_CARD_LABELS, DEFAULT_WORKSPACE_KIND_LABELS, DEFAULT_WORKSPACE_SWITCHER_LABELS, INSTALL_PROMPT_DISMISSED_KEY, InfoBar, InstallPrompt, MobileAppBar, MobileTabBar, NotificationBell, OfflinePill, RemoteControlPill, STATUS_ROW_BASE_CLASS, STATUS_ROW_TONES, Sidebar, SidebarBadgeRow, SidebarRowAction, SidebarRowHoverContext, SplitLayout, StatusBadge, StatusRow, TipCard, UserMenu, WorkspaceIdentity, WorkspaceSwitcher, getInstallInstructions, initInstallPrompt, isIosDevice, promptAppInstall, resolveSidebarLayout, useInstallPrompt, useSidebarContext, useSidebarSettle, workspaceKindColor, workspaceKindMeta } from '../chunk-D46ZAPEE.js';
|
|
3
|
+
export { DEFAULT_TAB_HEADER_LABELS, TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
3
4
|
export { DEFAULT_FILTER_FIELDS, DEFAULT_FILTER_INPUT_LABELS, FilterInput } from '../chunk-YU2KUMGE.js';
|
|
4
5
|
import '../chunk-S7PSMMRG.js';
|
|
5
|
-
export { DEFAULT_TAB_HEADER_LABELS, TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
6
6
|
export { DEFAULT_DOCK_WIDTH, Toaster } from '../chunk-BV7FEMSI.js';
|
|
7
7
|
export { DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from '../chunk-KZJAG7T3.js';
|
|
8
8
|
export { BREAKPOINT_QUERIES, useIsNarrow, useIsPhone, useIsTouchScreen, useMediaQuery } from '../chunk-SLSBJRWW.js';
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkWOYUXVVQ_cjs = require('../chunk-WOYUXVVQ.cjs');
|
|
5
|
+
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
5
6
|
var chunk7QDX2CO4_cjs = require('../chunk-7QDX2CO4.cjs');
|
|
6
7
|
var chunkMJCCBMM5_cjs = require('../chunk-MJCCBMM5.cjs');
|
|
7
8
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
@@ -9,14 +10,13 @@ require('../chunk-VPPX5XUF.cjs');
|
|
|
9
10
|
var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
|
|
10
11
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
11
12
|
require('../chunk-OB5F4577.cjs');
|
|
12
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-KJ3QEKOJ.cjs');
|
|
13
14
|
require('../chunk-VGOFFCMT.cjs');
|
|
14
15
|
require('../chunk-V3L5DONY.cjs');
|
|
16
|
+
require('../chunk-7UTB4PHM.cjs');
|
|
15
17
|
require('../chunk-PPCATBOY.cjs');
|
|
16
18
|
var chunkC54XEN5T_cjs = require('../chunk-C54XEN5T.cjs');
|
|
17
19
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
18
|
-
var chunkTHO7DZNN_cjs = require('../chunk-THO7DZNN.cjs');
|
|
19
|
-
require('../chunk-7UTB4PHM.cjs');
|
|
20
20
|
require('../chunk-MHVNT4J3.cjs');
|
|
21
21
|
require('../chunk-DES3K4SD.cjs');
|
|
22
22
|
var lucideReact = require('lucide-react');
|
|
@@ -58,7 +58,7 @@ function WidgetPlaceholder({
|
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
function useActiveWorkspaceId() {
|
|
61
|
-
const { workspaceId, fallbackWorkspaceId } =
|
|
61
|
+
const { workspaceId, fallbackWorkspaceId } = chunkMUMH3Z6K_cjs.useConnection();
|
|
62
62
|
return workspaceId ?? fallbackWorkspaceId ?? void 0;
|
|
63
63
|
}
|
|
64
64
|
function timeAgo(iso) {
|
|
@@ -883,7 +883,7 @@ function latestImageDocId(artifacts) {
|
|
|
883
883
|
return null;
|
|
884
884
|
}
|
|
885
885
|
function useImageGen() {
|
|
886
|
-
const task =
|
|
886
|
+
const task = chunkWOYUXVVQ_cjs.useConnectedAiTask();
|
|
887
887
|
const { run } = task;
|
|
888
888
|
const generate = react.useCallback(
|
|
889
889
|
async (prompt, referenceDocIds = []) => {
|
package/dist/studio/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedAiTask } from '../chunk-
|
|
2
|
+
import { useConnectedAiTask } from '../chunk-ORA2XE7U.js';
|
|
3
|
+
import { useConnection } from '../chunk-OYMWV45N.js';
|
|
3
4
|
import { PageHeader, MetricCard, DataTableBlock, StatGroup } from '../chunk-ZCF2JJFA.js';
|
|
4
5
|
import { assetRefId, applyStoredTheme, AssetResolverProvider, ThemeEditor, applyThemeVars, tid, SectionHeading, PricingTable, Tabs as Tabs$1, Accordion, Gallery, VideoEmbed, ContactForm, Banner, MediaText, TeamGrid, Steps, TestimonialGrid, Columns, Spacer, Container, Hero, FeatureGrid, Testimonial, CTABanner, LogoCloud, FAQ, RichTextBlock, BlockImage, AvatarBlock, Navbar, Footer, ListBlock, isAssetRef, asAssetRef } from '../chunk-DLBUFHLY.js';
|
|
5
6
|
export { ASSET_REF_PREFIX, AssetResolverProvider, asAssetRef, assetRefId, isAssetRef, useAssetRenderer, useAssetResolverActive } from '../chunk-DLBUFHLY.js';
|
|
@@ -8,14 +9,13 @@ import '../chunk-4EZVCGRL.js';
|
|
|
8
9
|
import { Callout } from '../chunk-UJE32SST.js';
|
|
9
10
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
10
11
|
import '../chunk-S7PSMMRG.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-G5DP27DU.js';
|
|
12
13
|
import '../chunk-KZJAG7T3.js';
|
|
13
14
|
import '../chunk-3VQYJBOI.js';
|
|
15
|
+
import '../chunk-AA3PT6KR.js';
|
|
14
16
|
import '../chunk-NPLYHR2E.js';
|
|
15
17
|
import { useBlocksEnvironment } from '../chunk-76JDDMSP.js';
|
|
16
18
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
17
|
-
import { useConnection } from '../chunk-5HOAOKZL.js';
|
|
18
|
-
import '../chunk-AA3PT6KR.js';
|
|
19
19
|
import '../chunk-7F6CBP3Z.js';
|
|
20
20
|
import '../chunk-VUNV25KB.js';
|
|
21
21
|
import { MessageSquare, Cpu, Code, Cloud, Layers, Target, Award, MapPin, Phone, Mail, Lock, Globe, Heart, Star, Rocket, Shield, Zap, Sparkles, Gavel, Scale, Bell, Activity, BarChart3, DollarSign, TrendingUp, Info, AlertCircle, CheckCircle, Clock, Calendar, Briefcase, Users, Folder, FileText, ArrowLeft, Palette, Loader2, RotateCcw, ChevronUp, ChevronDown, BrainCircuit, Bot, LayoutGrid, FileJson, Download, Crop, ImagePlus, Upload, Link2, Check, MessagesSquare } from 'lucide-react';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The designer's side panel: the selected step's settings, or the workflow's own when nothing is
|
|
3
|
+
* selected. Every edit goes through the pure operations in `./edit`.
|
|
4
|
+
*/
|
|
5
|
+
import { type WorkflowDefinition } from '../agents';
|
|
6
|
+
export interface StepInspectorLabels {
|
|
7
|
+
workflow: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
waitsFor: string;
|
|
11
|
+
startsWithRun: string;
|
|
12
|
+
fields: string;
|
|
13
|
+
addField: string;
|
|
14
|
+
fieldLabel: string;
|
|
15
|
+
fieldType: string;
|
|
16
|
+
required: string;
|
|
17
|
+
runs: string;
|
|
18
|
+
ownPrompt: string;
|
|
19
|
+
prompt: string;
|
|
20
|
+
promptHint: string;
|
|
21
|
+
inputFor: string;
|
|
22
|
+
thread: string;
|
|
23
|
+
threadMain: string;
|
|
24
|
+
threadBranch: string;
|
|
25
|
+
output: string;
|
|
26
|
+
outputAnswer: string;
|
|
27
|
+
outputArtifact: string;
|
|
28
|
+
uploadRequired: string;
|
|
29
|
+
hint: string;
|
|
30
|
+
instructions: string;
|
|
31
|
+
instructionsHint: string;
|
|
32
|
+
deleteStep: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const DEFAULT_STEP_INSPECTOR_LABELS: StepInspectorLabels;
|
|
35
|
+
export interface StepInspectorProps {
|
|
36
|
+
workflow: WorkflowDefinition;
|
|
37
|
+
stepId: string | null;
|
|
38
|
+
onChange: (workflow: WorkflowDefinition) => void;
|
|
39
|
+
/** Deselect (after a delete). */
|
|
40
|
+
onSelect?: (stepId: string | null) => void;
|
|
41
|
+
/** What an agent step can run: skills and single-run workflows. */
|
|
42
|
+
workflows?: WorkflowDefinition[];
|
|
43
|
+
labels?: Partial<StepInspectorLabels>;
|
|
44
|
+
testId?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function StepInspector({ workflow, stepId, onChange, onSelect, workflows, labels, testId, }: StepInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The builder's trigger settings: what starts the workflow (someone pressing Run, a date, a
|
|
3
|
+
* schedule, something happening in the workspace, another task being done), who runs its agent
|
|
4
|
+
* steps, and, for a start nobody is there for, how the agent gets access.
|
|
5
|
+
*/
|
|
6
|
+
import { type AgentOption } from '../agents';
|
|
7
|
+
import type { WorkflowStart, WorkflowTrigger } from './trigger';
|
|
8
|
+
export interface TriggerInspectorLabels {
|
|
9
|
+
heading: string;
|
|
10
|
+
start: string;
|
|
11
|
+
starts: Record<WorkflowStart, string>;
|
|
12
|
+
runAt: string;
|
|
13
|
+
event: string;
|
|
14
|
+
eventPlaceholder: string;
|
|
15
|
+
afterTask: string;
|
|
16
|
+
afterTaskPlaceholder: string;
|
|
17
|
+
agent: string;
|
|
18
|
+
access: string;
|
|
19
|
+
accessAsk: string;
|
|
20
|
+
accessStanding: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const DEFAULT_TRIGGER_INSPECTOR_LABELS: TriggerInspectorLabels;
|
|
23
|
+
/** One line for the trigger node: what starts the workflow. */
|
|
24
|
+
export declare function triggerSummary(trigger: WorkflowTrigger, options?: {
|
|
25
|
+
labels?: Partial<TriggerInspectorLabels>;
|
|
26
|
+
eventLabel?: (kind: string) => string | undefined;
|
|
27
|
+
taskLabel?: (id: string) => string | undefined;
|
|
28
|
+
}): string;
|
|
29
|
+
export interface TriggerInspectorProps {
|
|
30
|
+
trigger: WorkflowTrigger;
|
|
31
|
+
onChange: (trigger: WorkflowTrigger) => void;
|
|
32
|
+
agents?: AgentOption[];
|
|
33
|
+
/** The workspace events a workflow can start on. */
|
|
34
|
+
eventKinds?: Array<{
|
|
35
|
+
value: string;
|
|
36
|
+
label: string;
|
|
37
|
+
}>;
|
|
38
|
+
/** Tasks a workflow can wait on. */
|
|
39
|
+
tasks?: Array<{
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}>;
|
|
43
|
+
labels?: Partial<TriggerInspectorLabels>;
|
|
44
|
+
testId?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function TriggerInspector({ trigger, onChange, agents, eventKinds, tasks, labels, testId, }: TriggerInspectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build a workflow visually: what starts it (the trigger node), its named steps (forms, uploads,
|
|
3
|
+
* agent steps running a skill or an instruction, branches, a person's approval), wired on a
|
|
4
|
+
* canvas, each set in the inspector; and a preview of a run (the real runner with a stand-in
|
|
5
|
+
* agent). The value saves as a workflow (`builderToWorkflowRequest`): every firing is a work
|
|
6
|
+
* thread that runs the steps.
|
|
7
|
+
*/
|
|
8
|
+
import { type ReactNode } from 'react';
|
|
9
|
+
import { type AgentOption, type StepComposeOptions, type WorkflowDefinition, type WorkflowGraphProblem } from '../agents';
|
|
10
|
+
import { type StepInspectorLabels } from './StepInspector';
|
|
11
|
+
import { type TriggerInspectorLabels } from './TriggerInspector';
|
|
12
|
+
import type { WorkflowBuilderValue } from './trigger';
|
|
13
|
+
import { type WorkflowCanvasLabels } from './WorkflowCanvas';
|
|
14
|
+
export interface WorkflowBuilderLabels {
|
|
15
|
+
addStep: string;
|
|
16
|
+
tidy: string;
|
|
17
|
+
settings: string;
|
|
18
|
+
closePanel: string;
|
|
19
|
+
design: string;
|
|
20
|
+
preview: string;
|
|
21
|
+
/** The trigger node's heading. */
|
|
22
|
+
start: string;
|
|
23
|
+
/** What the preview's stand-in agent answers; `{prompt}` is replaced. */
|
|
24
|
+
previewAnswer: string;
|
|
25
|
+
problems: Record<WorkflowGraphProblem['code'], string>;
|
|
26
|
+
}
|
|
27
|
+
export declare const DEFAULT_WORKFLOW_BUILDER_LABELS: WorkflowBuilderLabels;
|
|
28
|
+
export interface WorkflowBuilderProps extends Pick<StepComposeOptions, 'compose'> {
|
|
29
|
+
value: WorkflowBuilderValue;
|
|
30
|
+
onChange: (value: WorkflowBuilderValue) => void;
|
|
31
|
+
/** What agent steps can run (skills and other workflows); the preview composes from them. */
|
|
32
|
+
workflows?: WorkflowDefinition[];
|
|
33
|
+
/** Who can run it. */
|
|
34
|
+
agents?: AgentOption[];
|
|
35
|
+
/** The workspace events it can start on. */
|
|
36
|
+
eventKinds?: Array<{
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}>;
|
|
40
|
+
/** Tasks it can wait on. */
|
|
41
|
+
tasks?: Array<{
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}>;
|
|
45
|
+
renderIcon?: (key: string) => ReactNode;
|
|
46
|
+
/** The host's buttons (save, run). */
|
|
47
|
+
actions?: ReactNode;
|
|
48
|
+
labels?: Partial<WorkflowBuilderLabels>;
|
|
49
|
+
canvasLabels?: Partial<WorkflowCanvasLabels>;
|
|
50
|
+
inspectorLabels?: Partial<StepInspectorLabels>;
|
|
51
|
+
triggerLabels?: Partial<TriggerInspectorLabels>;
|
|
52
|
+
testId?: string;
|
|
53
|
+
className?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function WorkflowBuilder({ value, onChange, workflows, agents, eventKinds, tasks, compose, renderIcon, actions, labels, canvasLabels, inspectorLabels, triggerLabels, testId, className, }: WorkflowBuilderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A workflow as a graph on a canvas: its start, then each step a card, each "waits for" an edge.
|
|
3
|
+
* Build by clicking "+" on a card (the next step lands beside it), drag to arrange, draw from a
|
|
4
|
+
* card's right handle to another's left to make it wait, select and press Delete to remove.
|
|
5
|
+
* Read-only with live `phases` it shows a run's progress on the same graph.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import { type WorkflowDefinition, type WorkflowStepPhase } from '../agents';
|
|
9
|
+
import { type WorkflowStepKind } from './edit';
|
|
10
|
+
export interface WorkflowCanvasLabels {
|
|
11
|
+
form: string;
|
|
12
|
+
upload: string;
|
|
13
|
+
agent: string;
|
|
14
|
+
review: string;
|
|
15
|
+
/** An agent step that runs on a branch and delivers its result to the thread. */
|
|
16
|
+
branch: string;
|
|
17
|
+
/** What each kind is for, in the "+" menu. */
|
|
18
|
+
kindHints: Record<WorkflowStepKind, string>;
|
|
19
|
+
addNext: string;
|
|
20
|
+
/** Summaries on the cards. */
|
|
21
|
+
runs: string;
|
|
22
|
+
instruction: string;
|
|
23
|
+
fields: string;
|
|
24
|
+
noFields: string;
|
|
25
|
+
approvedBy: string;
|
|
26
|
+
emptyTitle: string;
|
|
27
|
+
emptyHint: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const DEFAULT_WORKFLOW_CANVAS_LABELS: WorkflowCanvasLabels;
|
|
30
|
+
export interface WorkflowCanvasProps {
|
|
31
|
+
workflow: WorkflowDefinition;
|
|
32
|
+
/** Edits (move, connect, disconnect, delete). Absent = read-only. */
|
|
33
|
+
onChange?: (workflow: WorkflowDefinition) => void;
|
|
34
|
+
selected?: string | null;
|
|
35
|
+
onSelect?: (stepId: string | null) => void;
|
|
36
|
+
/** Add a step after this one (`TRIGGER_NODE`: one that starts with the run). Absent = no "+". */
|
|
37
|
+
onAddAfter?: (stepId: string, kind: WorkflowStepKind) => void;
|
|
38
|
+
/** A run's progress, by step id: colours the nodes. */
|
|
39
|
+
phases?: Record<string, WorkflowStepPhase>;
|
|
40
|
+
/** Names the workflow an agent step runs (its card's summary). */
|
|
41
|
+
workflowTitle?: (id: string) => string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The workflow's start, drawn as the first node (id `TRIGGER_NODE`): an edge from it into each
|
|
44
|
+
* step that starts with the run. Drawing one from it into a step makes that step start the run.
|
|
45
|
+
*/
|
|
46
|
+
trigger?: {
|
|
47
|
+
title: string;
|
|
48
|
+
summary: string;
|
|
49
|
+
};
|
|
50
|
+
renderIcon?: (key: string) => ReactNode;
|
|
51
|
+
labels?: Partial<WorkflowCanvasLabels>;
|
|
52
|
+
className?: string;
|
|
53
|
+
/** Pixels on the right covered by a floating panel: the opening view keeps clear of them. */
|
|
54
|
+
reserveRight?: number;
|
|
55
|
+
testId?: string;
|
|
56
|
+
}
|
|
57
|
+
/** The id of the trigger node (selecting it selects the workflow's start). */
|
|
58
|
+
export declare const TRIGGER_NODE = "__trigger";
|
|
59
|
+
export declare const STEP_KIND_ICONS: {
|
|
60
|
+
readonly form: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
61
|
+
readonly upload: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
62
|
+
readonly agent: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
63
|
+
readonly review: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
64
|
+
};
|
|
65
|
+
export declare function WorkflowCanvas({ workflow, onChange, selected, onSelect, onAddAfter, phases, workflowTitle, trigger, renderIcon, labels, className, reserveRight, testId, }: WorkflowCanvasProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editing a stepped workflow as a graph: the designer's operations, pure so they are tested on
|
|
3
|
+
* their own. Every result keeps the steps in dependency order with every edge written out
|
|
4
|
+
* (`after`), so a reordering never changes what a step waits for.
|
|
5
|
+
*/
|
|
6
|
+
import { type WorkflowDefinition, type WorkflowStep } from '../agents';
|
|
7
|
+
type Steps = Extract<WorkflowDefinition['run'], {
|
|
8
|
+
kind: 'steps';
|
|
9
|
+
}>;
|
|
10
|
+
export type WorkflowLayout = NonNullable<Steps['layout']>;
|
|
11
|
+
export type WorkflowStepKind = WorkflowStep['kind'];
|
|
12
|
+
/** A new, empty stepped workflow. */
|
|
13
|
+
export declare function newSteppedWorkflow(id: string, title: string): WorkflowDefinition;
|
|
14
|
+
/** A step id from a title: lowercase words joined by hyphens, unique within the workflow. */
|
|
15
|
+
export declare function stepIdFor(steps: WorkflowStep[], title: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Add a step. With `after`, it waits for that step (the usual "add the next step"); otherwise it
|
|
18
|
+
* starts with the run. Resolves with the workflow and the new step's id.
|
|
19
|
+
*/
|
|
20
|
+
export declare function addStep(workflow: WorkflowDefinition, kind: WorkflowStepKind, options?: {
|
|
21
|
+
after?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
position?: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
27
|
+
}): {
|
|
28
|
+
workflow: WorkflowDefinition;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
/** Remove a step; what waited for it waits for what it waited for instead (the chain holds). */
|
|
32
|
+
export declare function removeStep(workflow: WorkflowDefinition, id: string): WorkflowDefinition;
|
|
33
|
+
/** `to` now waits for `from`. Refused (unchanged) when that would make a cycle. */
|
|
34
|
+
export declare function connectSteps(workflow: WorkflowDefinition, from: string, to: string): WorkflowDefinition;
|
|
35
|
+
export declare const wouldCycle: (workflow: WorkflowDefinition, from: string, to: string) => boolean;
|
|
36
|
+
/** `to` no longer waits for `from`. */
|
|
37
|
+
export declare function disconnectSteps(workflow: WorkflowDefinition, from: string, to: string): WorkflowDefinition;
|
|
38
|
+
/** Change a step's settings (its id and kind stay). */
|
|
39
|
+
export declare function updateStep(workflow: WorkflowDefinition, id: string, patch: Partial<WorkflowStep>): WorkflowDefinition;
|
|
40
|
+
/**
|
|
41
|
+
* A run input renamed (a form field's code following its label): every step that reads it is
|
|
42
|
+
* updated, so the workflow keeps working.
|
|
43
|
+
*/
|
|
44
|
+
export declare function renameInput(workflow: WorkflowDefinition, from: string, to: string): WorkflowDefinition;
|
|
45
|
+
/** Where a step sits on the canvas. */
|
|
46
|
+
export declare function moveStep(workflow: WorkflowDefinition, id: string, position: {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}): WorkflowDefinition;
|
|
50
|
+
/** Positions by depth: columns left to right, parallel steps stacked. */
|
|
51
|
+
export declare function autoLayout(steps: WorkflowStep[]): WorkflowLayout;
|
|
52
|
+
/** The workflow's layout, with any unplaced step placed by depth. */
|
|
53
|
+
export declare function layoutWithDefaults(workflow: WorkflowDefinition): WorkflowLayout;
|
|
54
|
+
export {};
|