@arbidocs/blocks 0.4.135 → 0.4.137

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.
Files changed (123) hide show
  1. package/dist/agents/index.cjs +422 -367
  2. package/dist/agents/index.js +8 -9
  3. package/dist/agents/skills/index.d.ts +2 -0
  4. package/dist/agents/skills/skillFiles.d.ts +65 -0
  5. package/dist/agents/skills/skillImport.d.ts +36 -0
  6. package/dist/agents/workflows/WorkflowDocumentsField.d.ts +42 -5
  7. package/dist/agents/workflows/index.d.ts +3 -3
  8. package/dist/agents/workflows/workflow.d.ts +19 -0
  9. package/dist/agents/workflows/workspaceScope.d.ts +12 -0
  10. package/dist/chat/index.cjs +138 -138
  11. package/dist/chat/index.js +3 -3
  12. package/dist/chunk-2KUCVSFF.js +51 -0
  13. package/dist/chunk-2KUCVSFF.js.map +1 -0
  14. package/dist/{chunk-GDBDHOI4.js → chunk-3RJN2VTL.js} +36 -6
  15. package/dist/chunk-3RJN2VTL.js.map +1 -0
  16. package/dist/{chunk-6AALMYPS.cjs → chunk-6F7SZCVL.cjs} +23 -2
  17. package/dist/chunk-6F7SZCVL.cjs.map +1 -0
  18. package/dist/{chunk-PUCY3UXN.js → chunk-7M4C6CK7.js} +3 -3
  19. package/dist/{chunk-PUCY3UXN.js.map → chunk-7M4C6CK7.js.map} +1 -1
  20. package/dist/{chunk-2PNNCEPH.js → chunk-ATJUVHVB.js} +1545 -8
  21. package/dist/chunk-ATJUVHVB.js.map +1 -0
  22. package/dist/{chunk-4S5IDT5F.cjs → chunk-BUNZWOPX.cjs} +5 -5
  23. package/dist/{chunk-4S5IDT5F.cjs.map → chunk-BUNZWOPX.cjs.map} +1 -1
  24. package/dist/{chunk-KYDRUFWT.cjs → chunk-C3ZRLULA.cjs} +5 -5
  25. package/dist/{chunk-KYDRUFWT.cjs.map → chunk-C3ZRLULA.cjs.map} +1 -1
  26. package/dist/{chunk-SARREDFP.cjs → chunk-CHVCTKF4.cjs} +1620 -47
  27. package/dist/chunk-CHVCTKF4.cjs.map +1 -0
  28. package/dist/chunk-CQCC7LE7.js +210 -0
  29. package/dist/chunk-CQCC7LE7.js.map +1 -0
  30. package/dist/{chunk-4UMXQPNA.js → chunk-E5OYHJMU.js} +3 -3
  31. package/dist/{chunk-4UMXQPNA.js.map → chunk-E5OYHJMU.js.map} +1 -1
  32. package/dist/{chunk-PJJY6CYL.cjs → chunk-EHOPZBAX.cjs} +11 -11
  33. package/dist/{chunk-PJJY6CYL.cjs.map → chunk-EHOPZBAX.cjs.map} +1 -1
  34. package/dist/{chunk-4QIIDXLF.cjs → chunk-HDYWXEQU.cjs} +8 -8
  35. package/dist/{chunk-4QIIDXLF.cjs.map → chunk-HDYWXEQU.cjs.map} +1 -1
  36. package/dist/{chunk-GZPTWHP5.cjs → chunk-HLB4DIYV.cjs} +5 -5
  37. package/dist/{chunk-GZPTWHP5.cjs.map → chunk-HLB4DIYV.cjs.map} +1 -1
  38. package/dist/{chunk-TT6XV6WM.cjs → chunk-JY73DJOS.cjs} +78 -1274
  39. package/dist/chunk-JY73DJOS.cjs.map +1 -0
  40. package/dist/{chunk-ARDHLU73.cjs → chunk-KDUGTKVI.cjs} +21 -2
  41. package/dist/chunk-KDUGTKVI.cjs.map +1 -0
  42. package/dist/{chunk-UMIY4SQS.js → chunk-KMNZ2RVO.js} +17 -1191
  43. package/dist/chunk-KMNZ2RVO.js.map +1 -0
  44. package/dist/{chunk-6S5FLMWG.js → chunk-KSHKTOY2.js} +203 -7
  45. package/dist/chunk-KSHKTOY2.js.map +1 -0
  46. package/dist/{chunk-4RLCRFZS.js → chunk-L2PAPOZ5.js} +21 -3
  47. package/dist/chunk-L2PAPOZ5.js.map +1 -0
  48. package/dist/{chunk-QYTYW74G.js → chunk-L3T7OJRX.js} +4 -4
  49. package/dist/{chunk-QYTYW74G.js.map → chunk-L3T7OJRX.js.map} +1 -1
  50. package/dist/{chunk-ENDP7JER.js → chunk-M33QUNFH.js} +3 -3
  51. package/dist/{chunk-ENDP7JER.js.map → chunk-M33QUNFH.js.map} +1 -1
  52. package/dist/chunk-RFIBUWLF.cjs +232 -0
  53. package/dist/chunk-RFIBUWLF.cjs.map +1 -0
  54. package/dist/{chunk-N26CXGXC.cjs → chunk-RQ2Y7USX.cjs} +201 -3
  55. package/dist/chunk-RQ2Y7USX.cjs.map +1 -0
  56. package/dist/chunk-UUHUQHXR.cjs +56 -0
  57. package/dist/chunk-UUHUQHXR.cjs.map +1 -0
  58. package/dist/{chunk-SZX44LCT.js → chunk-VMESMX7N.js} +3 -3
  59. package/dist/{chunk-SZX44LCT.js.map → chunk-VMESMX7N.js.map} +1 -1
  60. package/dist/{chunk-QDEODGXE.cjs → chunk-WS5EX7DN.cjs} +37 -6
  61. package/dist/chunk-WS5EX7DN.cjs.map +1 -0
  62. package/dist/{chunk-2DFDFOM7.js → chunk-YOMPLCP6.js} +22 -3
  63. package/dist/chunk-YOMPLCP6.js.map +1 -0
  64. package/dist/connect/docx.cjs +4 -4
  65. package/dist/connect/docx.js +3 -3
  66. package/dist/connect/index.cjs +463 -97
  67. package/dist/connect/index.cjs.map +1 -1
  68. package/dist/connect/index.d.ts +5 -2
  69. package/dist/connect/index.js +387 -49
  70. package/dist/connect/index.js.map +1 -1
  71. package/dist/connection/ConnectedSkillUpload.d.ts +26 -2
  72. package/dist/connection/ConnectedWorkflowBuilder.d.ts +24 -12
  73. package/dist/connection/ConnectedWorkflowLauncher.d.ts +35 -0
  74. package/dist/connection/ConnectedWorkflowsTable.d.ts +62 -0
  75. package/dist/connection/ConnectionProvider.d.ts +17 -0
  76. package/dist/connection/workspaceData.d.ts +45 -0
  77. package/dist/facts/index.cjs +1 -1
  78. package/dist/facts/index.js +1 -1
  79. package/dist/files/index.cjs +1 -1
  80. package/dist/files/index.js +1 -1
  81. package/dist/home/index.cjs +20 -21
  82. package/dist/home/index.cjs.map +1 -1
  83. package/dist/home/index.js +2 -3
  84. package/dist/home/index.js.map +1 -1
  85. package/dist/index.cjs +610 -555
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.js +14 -15
  88. package/dist/index.js.map +1 -1
  89. package/dist/settings/index.cjs +11 -11
  90. package/dist/settings/index.js +2 -2
  91. package/dist/shell/index.cjs +1 -1
  92. package/dist/shell/index.js +1 -1
  93. package/dist/site/index.cjs +5 -5
  94. package/dist/site/index.js +1 -1
  95. package/dist/studio/index.cjs +7 -7
  96. package/dist/studio/index.js +5 -5
  97. package/dist/workflow-canvas/index.cjs +122 -96
  98. package/dist/workflow-canvas/index.cjs.map +1 -1
  99. package/dist/workflow-canvas/index.d.ts +1 -1
  100. package/dist/workflow-canvas/index.js +73 -48
  101. package/dist/workflow-canvas/index.js.map +1 -1
  102. package/node_modules/@arbidocs/coedit/package.json +1 -1
  103. package/package.json +4 -4
  104. package/dist/chunk-2DFDFOM7.js.map +0 -1
  105. package/dist/chunk-2PNNCEPH.js.map +0 -1
  106. package/dist/chunk-4RLCRFZS.js.map +0 -1
  107. package/dist/chunk-4XJZ6AAY.js +0 -407
  108. package/dist/chunk-4XJZ6AAY.js.map +0 -1
  109. package/dist/chunk-6AALMYPS.cjs.map +0 -1
  110. package/dist/chunk-6S5FLMWG.js.map +0 -1
  111. package/dist/chunk-7D737FLE.cjs +0 -43
  112. package/dist/chunk-7D737FLE.cjs.map +0 -1
  113. package/dist/chunk-ARDHLU73.cjs.map +0 -1
  114. package/dist/chunk-GDBDHOI4.js.map +0 -1
  115. package/dist/chunk-N26CXGXC.cjs.map +0 -1
  116. package/dist/chunk-QDEODGXE.cjs.map +0 -1
  117. package/dist/chunk-S5HZBXZA.cjs +0 -430
  118. package/dist/chunk-S5HZBXZA.cjs.map +0 -1
  119. package/dist/chunk-SARREDFP.cjs.map +0 -1
  120. package/dist/chunk-TT6XV6WM.cjs.map +0 -1
  121. package/dist/chunk-UMIY4SQS.js.map +0 -1
  122. package/dist/chunk-XD2M6LIG.js +0 -41
  123. package/dist/chunk-XD2M6LIG.js.map +0 -1
@@ -1,307 +1,28 @@
1
1
  "use client";
2
2
  import { CellHoverIcon } from './chunk-RFXJYIDV.js';
3
- import { DocumentPicker, MultiSelect } from './chunk-4XJZ6AAY.js';
3
+ import { MultiSelect } from './chunk-CQCC7LE7.js';
4
4
  import { ToneBadge } from './chunk-5LXQPP2K.js';
5
+ import { useWorkflowView, useControllableState, PersonPill, DEFAULT_TASK_ACTIVITY_LABELS, TaskActivityTimeline, activeStepId, DEFAULT_STEP_BAR_LABELS, StepBarFrame, workflowRunStatusLabel, STEP_LABEL_CURRENT, STEP_LABEL, STEP_LABEL_MAX, SchemaForm } from './chunk-ATJUVHVB.js';
6
+ import { TriStateFilterMenu } from './chunk-KSHKTOY2.js';
5
7
  import { EmptyState } from './chunk-P6GHJSLR.js';
6
- import { SchemaForm, useWorkflowView, DEFAULT_TASK_ACTIVITY_LABELS, TaskActivityTimeline, activeStepId, DEFAULT_STEP_BAR_LABELS, StepBarFrame, STEP_LABEL_CURRENT, STEP_LABEL, STEP_LABEL_MAX } from './chunk-2PNNCEPH.js';
7
- import { TriStateFilterMenu } from './chunk-6S5FLMWG.js';
8
+ import { ScopePicker, FoldSection, AddFilesFirst } from './chunk-3RJN2VTL.js';
9
+ import { ActionLink } from './chunk-444XKG46.js';
8
10
  import { SelectionBar, SelectionBarAction } from './chunk-NUNKSZKU.js';
9
11
  import { FilterInput } from './chunk-YU2KUMGE.js';
10
12
  import { GridView } from './chunk-N5YEF3LC.js';
11
- import { QuickActionDialogHeader, AddFilesFirst, ScopePicker, StartTiles } from './chunk-GDBDHOI4.js';
12
- import { ActionLink } from './chunk-444XKG46.js';
13
- import { FoldSection } from './chunk-XD2M6LIG.js';
14
13
  import { TabHeader } from './chunk-4WWM3GQ5.js';
15
- import { DEFAULT_STEP_RECORD_LABELS, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_KIND_LABELS, defaultInputs, validateInputs, isWorkflowScope, fieldToFrontmatter, workflowFromFrontmatter, workflowSteps, initialRunInputs, stepPhase, composeStepPrompt, useMentionAutocomplete, composeWorkflowPrompt, StepChip, StepDocumentButton, stepLevels, isRunFinished, stepKindOf, stepDocuments, eventWaitingDocuments, waitingForDocumentsText, buildLaunch, STEP_KIND_ICONS, StepDocumentCards, StepRecord, splitDocRef, waitingDocuments } from './chunk-2DFDFOM7.js';
14
+ import { DEFAULT_STEP_RECORD_LABELS, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_KIND_LABELS, isWorkflowScope, workflowSteps, initialRunInputs, stepPhase, composeStepPrompt, useMentionAutocomplete, composeWorkflowPrompt, StepChip, StepDocumentButton, stepLevels, isRunFinished, stepKindOf, stepDocuments, eventWaitingDocuments, waitingForDocumentsText, defaultInputs, STEP_KIND_ICONS, StepDocumentCards, StepRecord, splitDocRef, validateInputs, waitingDocuments } from './chunk-YOMPLCP6.js';
16
15
  import { toMessageMentions, extractMentions, MentionMenu } from './chunk-AA3PT6KR.js';
17
16
  import { useIsPhone } from './chunk-SLSBJRWW.js';
18
17
  import { testIdOr, prefixedTestId } from './chunk-7F6CBP3Z.js';
19
18
  import { useBlocksEnvironment } from './chunk-YNIBUKV5.js';
20
19
  import { ModalHeader } from './chunk-TX2ZICS7.js';
21
- import { formatCount, initials } from './chunk-OXF2IFXG.js';
22
- import { memo, forwardRef, useState, useMemo, useId, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
23
- import { cn, Label, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Textarea, Input, Switch, Button, Collapsible, CollapsibleTrigger, CollapsibleContent, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Tooltip, TooltipTrigger, TooltipContent, Badge, Slider, UserEntity, getEntityColorStyles, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, VisibilityToggle, EntityPill, ThreadVisibilityIcon, DialogClose, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandItem, DropdownMenuSeparator, badgeVariants, Checkbox, PopoverClose } from '@arbidocs/react/ui';
20
+ import { formatCount } from './chunk-OXF2IFXG.js';
24
21
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
25
- import { ChevronDown, ChevronRight, Plus, Trash2, Loader2, Play, MessageSquare, Eye, ClipboardList, Pencil, Copy, Bot, Sparkles, Wand2, X, Globe, Download, Lock, ListChecks, AlertTriangle, FileX, SkipForward, Check, FileText, CornerDownRight, AlertCircle, KeyRound, Workflow, ChevronsUpDown, ChevronsDownUp, ListTodo, CheckCheck, MoreHorizontal, CalendarClock, History, ArrowUpRight, SendHorizontal, Zap, MessagesSquare, ChevronUp, Pause, Activity, Hourglass, MoreVertical, TriangleAlert, CheckSquare, Square, CheckCircle2, SquareArrowOutUpRight, ArrowLeft, LayoutGrid, List, CornerLeftUp, CornerUpLeft, CircleDashed, RotateCcw, ListPlus, Clock, CircleCheck, Hand, Link2, Bell, MousePointerClick, Flag } from 'lucide-react';
22
+ import { memo, forwardRef, useState, useMemo, useRef, useEffect, useCallback, useLayoutEffect } from 'react';
23
+ import { ChevronDown, ChevronRight, Plus, Trash2, MessageSquare, Eye, ClipboardList, Pencil, Copy, Bot, Sparkles, Loader2, Wand2, X, Globe, Download, Lock, ListChecks, AlertTriangle, FileX, SkipForward, Check, FileText, CornerDownRight, AlertCircle, KeyRound, Workflow, ChevronsUpDown, ChevronsDownUp, ListTodo, CheckCheck, MoreHorizontal, CalendarClock, ArrowUpRight, SendHorizontal, Zap, MessagesSquare, History, ChevronUp, Pause, Activity, Hourglass, MoreVertical, TriangleAlert, CheckSquare, Square, CheckCircle2, SquareArrowOutUpRight, ArrowLeft, LayoutGrid, List, CornerLeftUp, CornerUpLeft, CircleDashed, RotateCcw, ListPlus, Clock, CircleCheck, Hand, Flag, Play } from 'lucide-react';
24
+ import { cn, Label, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Textarea, Input, Switch, Button, Collapsible, CollapsibleTrigger, CollapsibleContent, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, Tooltip, TooltipTrigger, TooltipContent, Badge, Slider, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, VisibilityToggle, EntityPill, ThreadVisibilityIcon, DialogClose, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandItem, Checkbox, UserEntity, DropdownMenuSeparator, PopoverClose } from '@arbidocs/react/ui';
26
25
 
27
- function useControllableState(value, defaultValue, onChange) {
28
- const [inner, setInner] = useState(defaultValue);
29
- const isControlled = value !== void 0;
30
- const current = isControlled ? value : inner;
31
- const onChangeRef = useRef(onChange);
32
- onChangeRef.current = onChange;
33
- const set = useCallback(
34
- (next) => {
35
- if (!isControlled) setInner(next);
36
- onChangeRef.current?.(next);
37
- },
38
- [isControlled]
39
- );
40
- return [current, set];
41
- }
42
- var DEFAULT_AGENT_SELECT_LABELS = {
43
- label: "Run as",
44
- myAssistant: "My assistant"
45
- };
46
- var ME = "__me__";
47
- function AgentSelect({
48
- agents,
49
- value,
50
- defaultValue = "",
51
- onValueChange,
52
- hideLabel,
53
- disabled,
54
- className,
55
- labels,
56
- testId,
57
- optionTestId
58
- }) {
59
- const l = { ...DEFAULT_AGENT_SELECT_LABELS, ...labels };
60
- const triggerId = useId();
61
- const [current, setCurrent] = useControllableState(value, defaultValue, onValueChange);
62
- return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1.5", className), "data-slot": "agent-select", children: [
63
- /* @__PURE__ */ jsx(Label, { htmlFor: triggerId, className: hideLabel ? "sr-only" : void 0, children: l.label }),
64
- /* @__PURE__ */ jsxs(
65
- Select,
66
- {
67
- value: current === "" ? ME : current,
68
- onValueChange: (v) => setCurrent(v === ME ? "" : v),
69
- disabled,
70
- children: [
71
- /* @__PURE__ */ jsx(
72
- SelectTrigger,
73
- {
74
- id: triggerId,
75
- "data-testid": testIdOr(testId, { testId: "agent-select" }),
76
- className: "pointer-coarse:min-h-11",
77
- children: /* @__PURE__ */ jsx(SelectValue, {})
78
- }
79
- ),
80
- /* @__PURE__ */ jsxs(SelectContent, { children: [
81
- /* @__PURE__ */ jsx(
82
- SelectItem,
83
- {
84
- value: ME,
85
- "data-testid": prefixedTestId(optionTestId, "me", {
86
- testId: "agent-select-option-me"
87
- }),
88
- children: l.myAssistant
89
- }
90
- ),
91
- agents.map((agent) => /* @__PURE__ */ jsx(
92
- SelectItem,
93
- {
94
- value: agent.id,
95
- "data-testid": prefixedTestId(optionTestId, agent.id, {
96
- testId: `agent-select-option-${agent.id}`
97
- }),
98
- children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
99
- agent.avatar,
100
- /* @__PURE__ */ jsx("span", { children: agent.label }),
101
- agent.description && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: agent.description })
102
- ] })
103
- },
104
- agent.id
105
- ))
106
- ] })
107
- ]
108
- }
109
- )
110
- ] });
111
- }
112
- var DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS = {
113
- start: "Start",
114
- starting: "Starting\u2026",
115
- addFilesReason: "This reads your files, and there is nothing to read yet.",
116
- agentLabel: "Run as"
117
- };
118
- function WorkflowConfigDialog({
119
- workflow,
120
- open,
121
- onOpenChange,
122
- onLaunch,
123
- initialInputs,
124
- inputs: inputsProp,
125
- onInputsChange,
126
- scopeSource,
127
- renderScope,
128
- renderDocuments,
129
- renderIcon,
130
- addFilesAction,
131
- agents,
132
- agentId: agentIdProp,
133
- onAgentChange,
134
- isLaunching,
135
- submitLabel,
136
- fieldPlaceholder,
137
- renderNotice,
138
- labels,
139
- formLabels,
140
- agentLabels,
141
- testId,
142
- startTestId,
143
- className
144
- }) {
145
- const l = { ...DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, ...labels };
146
- const initialKey = JSON.stringify(initialInputs ?? {});
147
- const seedKey = JSON.stringify({ ...defaultInputs(workflow), ...JSON.parse(initialKey) });
148
- const seed = useMemo(() => JSON.parse(seedKey), [seedKey]);
149
- const [inputs, setInputs] = useControllableState(inputsProp, seed, onInputsChange);
150
- const [agentId, setAgentId] = useControllableState(
151
- agentIdProp,
152
- workflow.defaultAgentId ?? "",
153
- onAgentChange
154
- );
155
- useEffect(() => {
156
- if (open && inputsProp === void 0) setInputs(seed);
157
- }, [open, seed]);
158
- const setField = (name, value) => setInputs({ ...inputs, [name]: value });
159
- const errors = validateInputs(workflow, inputs);
160
- const valid = Object.keys(errors).length === 0;
161
- const visibleErrors = Object.fromEntries(
162
- Object.entries(errors).filter(([, e]) => e !== "required")
163
- );
164
- const scopeField = workflow.inputs.find((f) => f.type === "scope");
165
- const rawScope = scopeField ? inputs[scopeField.name] : void 0;
166
- const scopeValue = rawScope && typeof rawScope === "object" ? rawScope : { folders: [], labels: [] };
167
- const matchedCount = scopeSource && scopeField ? scopeSource.countMatching(scopeValue) : null;
168
- const noFiles = Boolean(workflow.requiresFiles && scopeSource && scopeSource.totalCount === 0);
169
- const blockedByScope = matchedCount !== null && matchedCount === 0 && Boolean(workflow.requiresFiles);
170
- const showAgent = workflow.run.kind === "prompt" && workflow.options?.agent !== false && agents !== void 0 && agents.length > 0;
171
- const launch = (values) => {
172
- Promise.resolve(onLaunch(buildLaunch(workflow, values, agentId))).catch(() => {
173
- });
174
- };
175
- const submit = () => {
176
- if (!valid || noFiles || blockedByScope || isLaunching) return;
177
- launch(inputs);
178
- };
179
- const fields = useMemo(
180
- () => workflow.inputs.map((f) => {
181
- const placeholder = fieldPlaceholder?.(f, inputs, workflow);
182
- return placeholder === void 0 ? f : { ...f, placeholder };
183
- }),
184
- [workflow, fieldPlaceholder, inputs]
185
- );
186
- const id = testIdOr(testId, { testId: "workflow-dialog" });
187
- const formRef = useRef(null);
188
- const firstField = workflow.inputs.find((f) => !f.advanced);
189
- const focusPromptFirst = firstField?.type === "text" || firstField?.type === "longtext";
190
- const defaultScopeRender = scopeSource ? (_field, value, onChange) => /* @__PURE__ */ jsx(
191
- ScopePicker,
192
- {
193
- folders: scopeSource.folders,
194
- unfiledCount: scopeSource.unfiledCount,
195
- labels: scopeSource.labels,
196
- totalCount: scopeSource.totalCount,
197
- matchedCount: scopeSource.countMatching(value),
198
- scope: value,
199
- onScopeChange: onChange
200
- }
201
- ) : void 0;
202
- return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
203
- DialogContent,
204
- {
205
- presentation: "sheet",
206
- className: `max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-xl ${className ?? ""}`,
207
- "data-testid": id,
208
- "data-workflow": workflow.id,
209
- onOpenAutoFocus: (event) => {
210
- if (!focusPromptFirst || !firstField) return;
211
- const control = formRef.current?.querySelector(
212
- `[data-testid="${id}-field-${firstField.name}"]`
213
- );
214
- if (!control) return;
215
- event.preventDefault();
216
- control.focus();
217
- if (control instanceof HTMLInputElement || control instanceof HTMLTextAreaElement) {
218
- const end = control.value.length;
219
- control.setSelectionRange(end, end);
220
- }
221
- },
222
- children: [
223
- /* @__PURE__ */ jsx(
224
- QuickActionDialogHeader,
225
- {
226
- icon: workflow.icon && renderIcon ? renderIcon(workflow.icon) : null,
227
- title: workflow.title,
228
- description: workflow.details ?? workflow.description,
229
- descriptionTestId: `${id}-description`
230
- }
231
- ),
232
- /* @__PURE__ */ jsx(
233
- "form",
234
- {
235
- ref: formRef,
236
- className: "mt-2 flex flex-col gap-4",
237
- onSubmit: (event) => {
238
- event.preventDefault();
239
- submit();
240
- },
241
- children: noFiles ? /* @__PURE__ */ jsx(
242
- AddFilesFirst,
243
- {
244
- reason: l.addFilesReason,
245
- action: addFilesAction,
246
- testId: `${id}-empty-state`
247
- }
248
- ) : /* @__PURE__ */ jsxs(Fragment, { children: [
249
- /* @__PURE__ */ jsx(
250
- SchemaForm,
251
- {
252
- fields,
253
- values: inputs,
254
- onChange: setField,
255
- errors: visibleErrors,
256
- renderScope: renderScope ?? defaultScopeRender,
257
- renderDocuments,
258
- renderIcon,
259
- labels: formLabels,
260
- onEnterSubmit: submit,
261
- testIdPrefix: `${id}-field`
262
- }
263
- ),
264
- renderNotice?.({ workflow, inputs }),
265
- /* @__PURE__ */ jsxs(
266
- "div",
267
- {
268
- className: "flex flex-col gap-3 border-t border-border pt-3 sm:flex-row sm:items-end sm:justify-between",
269
- "data-slot": "workflow-footer",
270
- children: [
271
- showAgent ? /* @__PURE__ */ jsx(
272
- AgentSelect,
273
- {
274
- agents: agents ?? [],
275
- value: agentId,
276
- onValueChange: setAgentId,
277
- labels: { label: l.agentLabel, ...agentLabels },
278
- testId: `${id}-agent`,
279
- className: "sm:w-56"
280
- }
281
- ) : /* @__PURE__ */ jsx("span", {}),
282
- /* @__PURE__ */ jsxs(
283
- Button,
284
- {
285
- type: "submit",
286
- className: "gap-1.5 px-5 pointer-coarse:min-h-11",
287
- disabled: !valid || blockedByScope || isLaunching,
288
- "data-testid": testIdOr(startTestId, { testId: "workflow-start-button" }),
289
- children: [
290
- isLaunching ? /* @__PURE__ */ jsx(Loader2, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsx(Play, { className: "size-4" }),
291
- isLaunching ? l.starting : submitLabel?.({ workflow, inputs, matchedCount }) ?? workflow.startLabel ?? l.start
292
- ]
293
- }
294
- )
295
- ]
296
- }
297
- )
298
- ] })
299
- }
300
- )
301
- ]
302
- }
303
- ) });
304
- }
305
26
  function defaultScopeRenderer(scopeSource) {
306
27
  if (!scopeSource) return void 0;
307
28
  return function renderScope(_field, value, onChange) {
@@ -330,219 +51,6 @@ function resolveScopeInputs(workflow, inputs, scopeSource) {
330
51
  }
331
52
  return next;
332
53
  }
333
- function WorkflowLauncher({
334
- workflows,
335
- tileWorkflows,
336
- onLaunch,
337
- showTiles = true,
338
- caption,
339
- captionTestId,
340
- tileTestId,
341
- disabledReason,
342
- activeId: activeIdProp,
343
- onActiveIdChange,
344
- initialInputsFor,
345
- testId,
346
- extraTiles = [],
347
- className,
348
- children,
349
- renderIcon,
350
- ...dialog
351
- }) {
352
- const [activeId, setActiveId] = useControllableState(
353
- activeIdProp,
354
- null,
355
- onActiveIdChange
356
- );
357
- const [isLaunching, setIsLaunching] = useState(false);
358
- const active = workflows.find((w) => w.id === activeId) ?? null;
359
- const run = async (launch) => {
360
- setIsLaunching(true);
361
- try {
362
- await onLaunch(launch);
363
- setActiveId(null);
364
- } finally {
365
- setIsLaunching(false);
366
- }
367
- };
368
- const select = (workflow) => {
369
- if (workflow.run.kind === "operation" && workflow.inputs.length === 0) {
370
- const inputs = defaultInputs(workflow);
371
- if (Object.keys(validateInputs(workflow, inputs)).length === 0) {
372
- Promise.resolve(onLaunch(buildLaunch(workflow, inputs, void 0))).catch(() => {
373
- });
374
- return;
375
- }
376
- }
377
- setActiveId(workflow.id);
378
- };
379
- const tiles = (tileWorkflows ?? workflows).map((workflow) => {
380
- const reason = disabledReason?.(workflow);
381
- return {
382
- id: workflow.id,
383
- iconNode: workflow.icon && renderIcon ? renderIcon(workflow.icon) : void 0,
384
- title: workflow.title,
385
- description: workflow.description,
386
- onSelect: () => select(workflow),
387
- disabled: reason !== void 0,
388
- disabledReason: reason,
389
- testId: tileTestId?.(workflow) ?? `workflow-tile-${workflow.id}`
390
- };
391
- });
392
- return /* @__PURE__ */ jsxs("div", { className, "data-slot": "workflow-launcher", children: [
393
- showTiles && /* @__PURE__ */ jsx(
394
- StartTiles,
395
- {
396
- items: [...tiles, ...extraTiles],
397
- caption,
398
- captionTestId,
399
- testId
400
- }
401
- ),
402
- children,
403
- active && /* @__PURE__ */ jsx(
404
- WorkflowConfigDialog,
405
- {
406
- ...dialog,
407
- renderIcon,
408
- workflow: active,
409
- open: true,
410
- onOpenChange: (open) => !open && setActiveId(null),
411
- onLaunch: run,
412
- isLaunching,
413
- initialInputs: initialInputsFor?.(active)
414
- }
415
- )
416
- ] });
417
- }
418
-
419
- // src/agents/workflows/workspaceScope.ts
420
- var canonical = (path) => (path ?? "").split("/").map((part) => part.trim()).filter(Boolean).join("/");
421
- function matchWorkflowScope(docs, scope) {
422
- if (scope.documents?.length) {
423
- const ids = new Set(scope.documents);
424
- return docs.filter((doc) => ids.has(doc.external_id));
425
- }
426
- if (!scope.folders.length && !scope.labels.length) return docs;
427
- const folders = scope.folders.map(canonical);
428
- const labels = new Set(scope.labels);
429
- return docs.filter((doc) => {
430
- const folder = canonical(doc.folder);
431
- return folders.some(
432
- (path) => path === "" ? folder === "" : folder === path || folder.startsWith(`${path}/`)
433
- ) || doc.doctags?.some((tag) => labels.has(tag.tag_ext_id));
434
- });
435
- }
436
- function buildWorkflowScopeSource(docs, labels = []) {
437
- const counts = /* @__PURE__ */ new Map();
438
- for (const doc of docs) {
439
- const parts = canonical(doc.folder).split("/").filter(Boolean);
440
- for (let i = 1; i <= parts.length; i++) {
441
- const path = parts.slice(0, i).join("/");
442
- counts.set(path, (counts.get(path) ?? 0) + 1);
443
- }
444
- }
445
- return {
446
- folders: [...counts].sort(([a], [b]) => a.localeCompare(b)).map(([path, count]) => ({
447
- path,
448
- count,
449
- label: path.split("/").at(-1),
450
- depth: path.split("/").length - 1
451
- })),
452
- unfiledCount: docs.filter((doc) => !canonical(doc.folder)).length,
453
- labels: labels.map((label) => ({
454
- id: label.external_id,
455
- name: label.name,
456
- color: label.color ?? "currentColor",
457
- count: docs.filter((doc) => doc.doctags?.some((tag) => tag.tag_ext_id === label.external_id)).length
458
- })),
459
- totalCount: docs.length,
460
- countMatching: (scope) => matchWorkflowScope(docs, scope).length,
461
- resolveDocuments: (scope) => matchWorkflowScope(docs, scope).map((doc) => doc.external_id)
462
- };
463
- }
464
- function WorkflowDocumentsField({
465
- field,
466
- value,
467
- onChange,
468
- documents,
469
- addFilesAction
470
- }) {
471
- const ids = value.documents ?? [];
472
- const max = field.max ?? 1;
473
- const set = (documents2) => onChange({ ...value, documents: documents2 });
474
- return /* @__PURE__ */ jsxs("div", { "data-testid": `workflow-documents-${field.name}`, className: "space-y-2", children: [
475
- /* @__PURE__ */ jsx(
476
- DocumentPicker,
477
- {
478
- groups: [{ id: "workspace", docs: documents }],
479
- value: ids[0] ?? "",
480
- selected: documents.find((doc) => doc.id === ids[0]),
481
- selectedIds: max > 1 ? ids : void 0,
482
- onValueChange: (id) => set(
483
- ids.includes(id) ? ids.filter((selected) => selected !== id) : [...ids, id].slice(-max)
484
- )
485
- }
486
- ),
487
- ids.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: ids.map((id) => /* @__PURE__ */ jsxs(
488
- Button,
489
- {
490
- type: "button",
491
- variant: "outline",
492
- size: "sm",
493
- onClick: () => set(ids.filter((selected) => selected !== id)),
494
- "aria-label": `Remove ${documents.find((doc) => doc.id === id)?.title ?? id}`,
495
- children: [
496
- documents.find((doc) => doc.id === id)?.title ?? id,
497
- " \xD7"
498
- ]
499
- },
500
- id
501
- )) }),
502
- addFilesAction
503
- ] });
504
- }
505
-
506
- // src/agents/workflows/skillMarkdown.ts
507
- var JSON_KEYS = /* @__PURE__ */ new Set(["inputs"]);
508
- var oneLine = (text2) => text2.replace(/\s*\n\s*/g, " ").trim();
509
- var skillSlug = (raw) => raw.toLowerCase().replace(/[^a-z0-9-]/g, "");
510
- function workflowToSkillMarkdown(workflow) {
511
- const { run } = workflow;
512
- if (run.kind !== "prompt") throw new Error("Only skills that start a chat can be copied");
513
- const lines = [
514
- "---",
515
- `name: ${skillSlug(workflow.id)}`,
516
- `description: ${oneLine(workflow.description)}`
517
- ];
518
- if (workflow.icon) lines.push(`icon: ${workflow.icon}`);
519
- if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
520
- if (workflow.requiresFiles) lines.push("requires_files: true");
521
- if (workflow.inputs.length > 0) {
522
- lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(fieldToFrontmatter))}`);
523
- }
524
- lines.push("---", "", run.promptTemplate.trim(), "");
525
- return lines.join("\n");
526
- }
527
- function workflowFromSkillMarkdown(id, text2) {
528
- const match = /^---\n([\s\S]*?)\n---\n?([\s\S]*)$/.exec(text2);
529
- const frontmatter = {};
530
- const body = match ? match[2] : text2;
531
- for (const line of (match ? match[1] : "").split("\n")) {
532
- const i = line.indexOf(":");
533
- if (i < 1) continue;
534
- const key = line.slice(0, i).trim();
535
- const value = line.slice(i + 1).trim();
536
- if (JSON_KEYS.has(key)) {
537
- try {
538
- frontmatter[key] = JSON.parse(value);
539
- } catch {
540
- }
541
- } else if (value === "true" || value === "false") frontmatter[key] = value === "true";
542
- else frontmatter[key] = value;
543
- }
544
- return workflowFromFrontmatter(id, frontmatter, body);
545
- }
546
54
  function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, resolveWorkflow, compose } = {}) {
547
55
  const steps = workflowSteps(workflow);
548
56
  const [inputs, setInputs] = useState(() => initialRunInputs(workflow));
@@ -2483,13 +1991,13 @@ function describeRRule(rrule) {
2483
1991
  if (!rrule) return "Recurring";
2484
1992
  const preset = parseRRule(rrule);
2485
1993
  if (!preset) return rrule;
2486
- const time2 = `${pad2(preset.hour)}:${pad2(preset.minute)}`;
2487
- if (preset.frequency === "daily") return `Daily at ${time2}`;
1994
+ const time = `${pad2(preset.hour)}:${pad2(preset.minute)}`;
1995
+ if (preset.frequency === "daily") return `Daily at ${time}`;
2488
1996
  if (preset.frequency === "weekly") {
2489
1997
  const days = preset.weekdays.map((d) => WEEKDAY_LABELS[d]).join(", ");
2490
- return `Weekly on ${days} at ${time2}`;
1998
+ return `Weekly on ${days} at ${time}`;
2491
1999
  }
2492
- return `Monthly on the ${ordinal(preset.monthDay)} at ${time2}`;
2000
+ return `Monthly on the ${ordinal(preset.monthDay)} at ${time}`;
2493
2001
  }
2494
2002
  var DEFAULT_RECURRENCE_BUILDER_LABELS = {
2495
2003
  rruleLabel: "Custom schedule (iCalendar rule)",
@@ -2687,22 +2195,6 @@ function goalProgress(task) {
2687
2195
  if (!gs || gs.criteria_total == null) return null;
2688
2196
  return { met: gs.criteria_met ?? 0, total: gs.criteria_total, done: gs.done === true };
2689
2197
  }
2690
- function PersonPill({ person, size = "sm", testId }) {
2691
- return /* @__PURE__ */ jsx("span", { "data-testid": testId, className: "inline-flex min-w-0", children: /* @__PURE__ */ jsx(
2692
- UserEntity,
2693
- {
2694
- variant: "pill",
2695
- size,
2696
- interactive: false,
2697
- showTooltip: false,
2698
- initials: initials(person.label),
2699
- displayName: person.label,
2700
- avatarStyle: person.id ? getEntityColorStyles(person.id) : void 0,
2701
- isAgent: person.isAgent,
2702
- isMe: person.isMe
2703
- }
2704
- ) });
2705
- }
2706
2198
  var DEFAULT_TASK_OUTPUTS_CELL_LABELS = {
2707
2199
  none: "\u2014",
2708
2200
  open: (count) => `${count} ${count === 1 ? "output" : "outputs"}`,
@@ -5576,672 +5068,6 @@ function NewThreadDialog({
5576
5068
  }
5577
5069
  ) });
5578
5070
  }
5579
- var DEFAULT_TASK_TRIGGER_CHIP_LABELS = {
5580
- after: (name) => `After \u201C${name}\u201D is done`,
5581
- afterUnknown: "After another task is done",
5582
- onDemand: "Manual"
5583
- };
5584
- function TriggerIcon({ type, chained }) {
5585
- const cls = "size-3.5 shrink-0 text-muted-foreground";
5586
- if (chained) return /* @__PURE__ */ jsx(Link2, { className: cls, "aria-hidden": true });
5587
- switch (type) {
5588
- case "on_demand":
5589
- return /* @__PURE__ */ jsx(MousePointerClick, { className: cls, "aria-hidden": true });
5590
- case "recurring":
5591
- return /* @__PURE__ */ jsx(Clock, { className: cls, "aria-hidden": true });
5592
- case "event":
5593
- return /* @__PURE__ */ jsx(Bell, { className: cls, "aria-hidden": true });
5594
- default:
5595
- return /* @__PURE__ */ jsx(Clock, { className: cls, "aria-hidden": true });
5596
- }
5597
- }
5598
- function TaskTriggerChip({
5599
- id,
5600
- triggerType,
5601
- summary,
5602
- afterTaskId,
5603
- afterTaskName,
5604
- testId,
5605
- labels
5606
- }) {
5607
- const l = { ...DEFAULT_TASK_TRIGGER_CHIP_LABELS, ...labels };
5608
- const chained = Boolean(afterTaskId);
5609
- const text2 = chained ? afterTaskName ? l.after(afterTaskName) : l.afterUnknown : triggerType === "on_demand" ? l.onDemand : summary;
5610
- return /* @__PURE__ */ jsxs(
5611
- "span",
5612
- {
5613
- className: "inline-flex min-w-0 max-w-full items-center gap-1.5 text-sm font-normal text-foreground",
5614
- "data-testid": testIdOr(testId, { testId: `task-trigger-${id}` }),
5615
- "data-trigger": chained ? "task" : triggerType,
5616
- children: [
5617
- /* @__PURE__ */ jsx(TriggerIcon, { type: triggerType, chained }),
5618
- /* @__PURE__ */ jsx("span", { className: "truncate", children: text2 })
5619
- ]
5620
- }
5621
- );
5622
- }
5623
-
5624
- // src/agents/tasks/workflowRows.ts
5625
- var isSkillRow = (row) => row.kind === "skill";
5626
- var hasTrigger = (row) => !row.on_demand && Boolean(row.rrule || row.run_at || row.event_kind || row.after_conversation_ext_id);
5627
- function workflowStatus(row) {
5628
- if (isSkillRow(row) || !hasTrigger(row)) return "on_demand";
5629
- return row.active ? "active" : "paused";
5630
- }
5631
- function workflowTriggerType(workflow) {
5632
- if (workflow.on_demand) return "on_demand";
5633
- if (workflow.after_conversation_ext_id) return "after";
5634
- if (workflow.event_kind) return "event";
5635
- if (workflow.rrule) return "recurring";
5636
- if (workflow.run_at) return "one_time";
5637
- return "on_demand";
5638
- }
5639
- function workflowRunStatusLabel(status) {
5640
- if (!status) return "None";
5641
- const labels = {
5642
- completed: "Success",
5643
- success: "Success",
5644
- failed: "Failed",
5645
- running: "In progress",
5646
- awaiting_authorization: "Awaiting access"
5647
- };
5648
- return labels[status] ?? status.replaceAll("_", " ");
5649
- }
5650
- function listedRunStatus(status, threadStatus) {
5651
- if (threadStatus === "done" && status === "running") return "completed";
5652
- return status;
5653
- }
5654
-
5655
- // src/agents/tasks/workflowColumns.tsx
5656
- var WORKFLOW_COLUMN_ORDER = [
5657
- "name",
5658
- "trigger",
5659
- "last_run",
5660
- "result",
5661
- "status",
5662
- "shared",
5663
- "actions"
5664
- ];
5665
- function cell2(render) {
5666
- return (params) => params.data ? render(params.data) : null;
5667
- }
5668
- var time = (iso) => iso ? Date.parse(iso) : Number.POSITIVE_INFINITY;
5669
- function createWorkflowColumns(o) {
5670
- const l = o.labels;
5671
- const base = {
5672
- sortable: false,
5673
- cellStyle: { display: "flex", alignItems: "center" }
5674
- };
5675
- return [
5676
- {
5677
- ...base,
5678
- colId: "name",
5679
- sortable: true,
5680
- headerName: l.colName,
5681
- flex: 3,
5682
- minWidth: 210,
5683
- valueGetter: (p) => p.data?.name.toLowerCase() ?? "",
5684
- cellRenderer: cell2(o.renderName)
5685
- },
5686
- {
5687
- ...base,
5688
- colId: "trigger",
5689
- headerName: l.colTrigger,
5690
- flex: 2.4,
5691
- minWidth: 185,
5692
- valueGetter: (p) => p.data ? o.getTriggerText(p.data) : "",
5693
- cellRenderer: cell2(o.renderTrigger)
5694
- },
5695
- {
5696
- ...base,
5697
- colId: "last_run",
5698
- sortable: true,
5699
- headerName: l.colLastRun,
5700
- flex: 1.4,
5701
- minWidth: 140,
5702
- cellStyle: { display: "flex", alignItems: "center", padding: 0 },
5703
- valueGetter: (p) => time(p.data?.last_fired_at),
5704
- cellRenderer: cell2(o.renderLastRun)
5705
- },
5706
- {
5707
- ...base,
5708
- colId: "result",
5709
- headerName: "Result",
5710
- width: 130,
5711
- valueGetter: (p) => p.data?.last_run_status ?? "",
5712
- cellStyle: { display: "flex", alignItems: "center", padding: 0 },
5713
- cellRenderer: cell2(o.renderResult)
5714
- },
5715
- {
5716
- ...base,
5717
- colId: "status",
5718
- sortable: true,
5719
- headerName: l.colStatus,
5720
- width: 120,
5721
- valueGetter: (p) => p.data ? workflowStatus(p.data) : "",
5722
- cellRenderer: cell2(o.renderStatus)
5723
- },
5724
- {
5725
- ...base,
5726
- colId: "shared",
5727
- headerName: l.colShared,
5728
- headerTooltip: l.shared,
5729
- width: 96,
5730
- cellStyle: { display: "flex", alignItems: "center", justifyContent: "center" },
5731
- valueGetter: (p) => p.data?.shared ?? false,
5732
- cellRenderer: cell2(o.renderShared)
5733
- },
5734
- {
5735
- ...base,
5736
- colId: "actions",
5737
- headerName: "",
5738
- width: 180,
5739
- minWidth: 180,
5740
- cellStyle: { display: "flex", alignItems: "center", justifyContent: "flex-end" },
5741
- cellRenderer: cell2(o.renderActions)
5742
- }
5743
- ];
5744
- }
5745
-
5746
- // src/agents/tasks/workflowTableLabels.ts
5747
- var DEFAULT_WORKFLOW_LIST_LABELS = {
5748
- colName: "Name",
5749
- colType: "Type",
5750
- colTrigger: "When",
5751
- colAction: "What it does",
5752
- colAgent: "Agent",
5753
- colStatus: "Active",
5754
- colShared: "Shared",
5755
- colLastRun: "Last run",
5756
- colNextRun: "Next run",
5757
- shared: "Shared with the workspace",
5758
- sharedOwnerOnly: "Only the creator can change who can see this",
5759
- deleteOwnerOnly: "Only the creator or workspace owner can delete this",
5760
- typeSkill: "Skill",
5761
- typeWorkflow: "Workflow",
5762
- statusActive: "Active",
5763
- statusPaused: "Inactive",
5764
- statusOnDemand: "On demand",
5765
- activeSwitch: (name) => `Active: \u201C${name}\u201D`,
5766
- agent: "Agent",
5767
- myAssistant: "My assistant",
5768
- me: "Me",
5769
- someone: "Someone",
5770
- never: "Never",
5771
- none: "\u2014",
5772
- reminder: "Reminder",
5773
- failed: "Failed",
5774
- lastRunFailed: "Last run failed",
5775
- openLastRun: "Open the task this run created",
5776
- editWorkflow: "Edit",
5777
- run: "Run",
5778
- runLater: "Run later",
5779
- runNow: "Run now",
5780
- runs: "Runs",
5781
- delete: "Delete",
5782
- moreActions: "More actions",
5783
- searchLabel: "Search workflows",
5784
- searchPlaceholder: "Search workflows and skills\u2026",
5785
- emptyTitle: "Nothing to run yet",
5786
- emptyMessage: "Skills and workflows you can run will appear here.",
5787
- firstRun: "Run a skill now, or choose Run later to save it as a workflow that runs on its own.",
5788
- noMatches: "Nothing in this view.",
5789
- filterAll: "All",
5790
- filterSkills: "Skills",
5791
- filterWorkflows: "Workflows",
5792
- filterActive: "Active",
5793
- filterPaused: "Inactive",
5794
- makeActive: "Make active",
5795
- makePaused: "Deactivate",
5796
- selectAll: "Select all",
5797
- selectWorkflow: (name) => `Select ${name}`
5798
- };
5799
- var ROW_HEIGHT2 = 40;
5800
- function WorkflowsTable(props) {
5801
- const { workflows, isLoading, busyId, header, testId } = props;
5802
- const l = { ...DEFAULT_WORKFLOW_LIST_LABELS, ...props.labels };
5803
- const [filterStates, setFilterStates] = useState(/* @__PURE__ */ new Map());
5804
- const [filterOpen, setFilterOpen] = useState(false);
5805
- const [query, setQuery] = useState("");
5806
- const [selected, setSelected] = useState([]);
5807
- const apiRef = useRef(null);
5808
- const q = query.trim().toLowerCase();
5809
- const matches = (w) => !q || `${w.name} ${w.description ?? ""} ${w.prompt ?? ""} ${w.skill_ref ?? ""}`.toLowerCase().includes(q);
5810
- const inFilter = (w, f) => f === "all" || f === "skills" && isSkillRow(w) || f === "workflows" && !isSkillRow(w) || f === "active" && workflowStatus(w) === "active" || f === "paused" && workflowStatus(w) === "paused";
5811
- const counts = useMemo(() => {
5812
- const out = { all: 0, skills: 0, workflows: 0, active: 0, paused: 0 };
5813
- for (const w of workflows) {
5814
- if (!matches(w)) continue;
5815
- for (const f of Object.keys(out)) if (inFilter(w, f)) out[f] += 1;
5816
- }
5817
- return out;
5818
- }, [workflows, q]);
5819
- const shown = useMemo(
5820
- () => workflows.filter((w) => {
5821
- if (!matches(w)) return false;
5822
- for (const group of [
5823
- ["skills", "workflows"],
5824
- ["active", "paused"]
5825
- ]) {
5826
- const included = group.filter((f) => filterStates.get(f) === "include");
5827
- if (included.length && !included.some((f) => inFilter(w, f))) return false;
5828
- if (group.some((f) => filterStates.get(f) === "exclude" && inFilter(w, f))) return false;
5829
- }
5830
- return true;
5831
- }),
5832
- [workflows, filterStates, q]
5833
- );
5834
- const renderPerson = props.renderPerson ?? ((p) => /* @__PURE__ */ jsx(PersonPill, { person: p }));
5835
- const actionText = (w) => {
5836
- if (w.action)
5837
- return w.action.type === "email_documents" ? "Email latest documents" : "AI Review";
5838
- if (isSkillRow(w))
5839
- return w.description || w.skill_ref && props.skillNames?.[w.skill_ref] || w.name;
5840
- return w.skill_ref ? props.skillNames?.[w.skill_ref] ?? w.skill_ref : w.prompt?.trim() || l.reminder;
5841
- };
5842
- const latest = useRef({ props, l, renderPerson, actionText });
5843
- latest.current = { props, l, renderPerson, actionText };
5844
- const columnDefs = useMemo(
5845
- () => createWorkflowColumns({
5846
- labels: l,
5847
- getTriggerText: (w) => isSkillRow(w) ? l.statusOnDemand : latest.current.props.describeTrigger(w),
5848
- renderName: (w) => {
5849
- const { l: lb } = latest.current;
5850
- const skill = isSkillRow(w);
5851
- const text2 = skill ? latest.current.actionText(w) : w.description || latest.current.actionText(w);
5852
- const stem = w.name.replace(/…$/, "").trim();
5853
- const about = text2 && text2.trim() !== w.name.trim() && text2.trim() !== stem ? text2 : "";
5854
- return /* @__PURE__ */ jsxs("div", { className: "min-w-0 leading-tight", children: [
5855
- /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
5856
- /* @__PURE__ */ jsx(
5857
- "span",
5858
- {
5859
- className: cn(
5860
- "truncate text-sm font-normal",
5861
- workflowStatus(w) === "paused" && "text-muted-foreground"
5862
- ),
5863
- "data-testid": `workflow-name-${w.external_id}`,
5864
- children: w.name
5865
- }
5866
- ),
5867
- skill && /* @__PURE__ */ jsx(
5868
- "span",
5869
- {
5870
- className: "shrink-0 rounded-full border border-border px-1.5 text-[11px] text-muted-foreground",
5871
- "data-testid": `workflow-type-${w.external_id}`,
5872
- children: lb.typeSkill
5873
- }
5874
- )
5875
- ] }),
5876
- about && !latest.current.props.automationsOnly && /* @__PURE__ */ jsx(
5877
- "p",
5878
- {
5879
- className: "truncate text-xs text-muted-foreground",
5880
- "data-testid": `workflow-action-${w.external_id}`,
5881
- children: about
5882
- }
5883
- )
5884
- ] });
5885
- },
5886
- renderTrigger: (w) => {
5887
- const { props: p } = latest.current;
5888
- const after = w.after_conversation_ext_id;
5889
- const skill = isSkillRow(w);
5890
- return /* @__PURE__ */ jsx("div", { className: "min-w-0 leading-tight", children: /* @__PURE__ */ jsx(
5891
- TaskTriggerChip,
5892
- {
5893
- id: w.external_id,
5894
- testId: `workflow-trigger-${w.external_id}`,
5895
- triggerType: workflowTriggerType(w),
5896
- summary: skill ? "" : p.describeTrigger(w),
5897
- afterTaskId: after,
5898
- afterTaskName: after ? p.taskNames?.[after] : void 0,
5899
- labels: p.triggerChipLabels
5900
- }
5901
- ) });
5902
- },
5903
- renderStatus: (w) => {
5904
- const { props: p, l: lb } = latest.current;
5905
- const canEdit = w.is_owner !== false || Boolean(p.canEditShared);
5906
- return /* @__PURE__ */ jsx(
5907
- Switch,
5908
- {
5909
- checked: hasTrigger(w) && !isSkillRow(w) && Boolean(w.active),
5910
- disabled: !hasTrigger(w) || isSkillRow(w) || !canEdit || p.busyId === w.external_id,
5911
- onCheckedChange: (next) => p.onToggleActive(w, next),
5912
- className: "disabled:data-[state=unchecked]:bg-muted dark:disabled:data-[state=unchecked]:bg-muted",
5913
- "aria-label": lb.activeSwitch(w.name),
5914
- "data-testid": `workflow-active-${w.external_id}`
5915
- }
5916
- );
5917
- },
5918
- renderShared: (w) => {
5919
- const { props: p, l: lb } = latest.current;
5920
- if (!p.onToggleShared || isSkillRow(w)) return null;
5921
- const isCreator = w.is_owner !== false;
5922
- return /* @__PURE__ */ jsx(
5923
- VisibilityToggle,
5924
- {
5925
- items: { shared: w.shared ?? false },
5926
- onToggle: (share) => latest.current.props.onToggleShared?.(w, share),
5927
- disabled: !isCreator || p.busyId === w.external_id,
5928
- disabledTooltip: lb.sharedOwnerOnly,
5929
- showLabel: false,
5930
- "data-testid": `workflow-shared-${w.external_id}`
5931
- }
5932
- );
5933
- },
5934
- renderLastRun: (w) => {
5935
- const { props: p, l: lb } = latest.current;
5936
- const at = w.last_fired_at ?? p.lastRuns?.[w.external_id]?.at;
5937
- return /* @__PURE__ */ jsx(
5938
- "button",
5939
- {
5940
- type: "button",
5941
- className: "h-full w-full truncate px-4 text-left text-sm hover:text-primary",
5942
- onClick: () => p.onViewRuns?.(w),
5943
- title: "View run history",
5944
- "data-testid": `workflow-last-run-${w.external_id}`,
5945
- children: at ? p.formatDate(at) : lb.never
5946
- }
5947
- );
5948
- },
5949
- renderResult: (w) => {
5950
- const status = listedRunStatus(
5951
- w.last_run_status,
5952
- latest.current.props.lastRuns?.[w.external_id]?.threadStatus
5953
- );
5954
- const label = workflowRunStatusLabel(status);
5955
- return /* @__PURE__ */ jsx(
5956
- "button",
5957
- {
5958
- type: "button",
5959
- onClick: () => latest.current.props.onViewRuns?.(w),
5960
- title: "View run history",
5961
- className: cn(
5962
- badgeVariants({ variant: "outline" }),
5963
- "mx-4 cursor-pointer text-xs font-medium",
5964
- status === "failed" ? "border-red-border bg-red-bg text-red-text hover:bg-red-bg/80" : status === "completed" || status === "success" ? "border-green-border bg-green-bg text-green-text hover:bg-green-bg/80" : status ? "border-primary/20 bg-primary/10 text-primary hover:bg-primary/15" : "border-border bg-muted text-muted-foreground hover:bg-muted/80"
5965
- ),
5966
- "data-testid": `workflow-result-${w.external_id}`,
5967
- children: label
5968
- }
5969
- );
5970
- },
5971
- renderActions: (w) => {
5972
- const { props: p, l: lb } = latest.current;
5973
- const id = w.external_id;
5974
- const skill = isSkillRow(w);
5975
- const busy = p.busyId === id;
5976
- const isOwner = w.is_owner !== false;
5977
- const canEdit = isOwner || Boolean(p.canEditShared);
5978
- const canAdmin = isOwner || Boolean(p.isWorkspaceOwner);
5979
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-1", children: [
5980
- (skill || canEdit) && /* @__PURE__ */ jsxs(
5981
- Button,
5982
- {
5983
- size: "sm",
5984
- variant: "outline",
5985
- className: "h-8 gap-1.5 pointer-coarse:h-11",
5986
- disabled: busy,
5987
- onClick: () => p.onRun(w),
5988
- "data-testid": `workflow-run-btn-${id}`,
5989
- children: [
5990
- /* @__PURE__ */ jsx(Play, { className: "size-3.5", "aria-hidden": true }),
5991
- lb.run
5992
- ]
5993
- }
5994
- ),
5995
- /* @__PURE__ */ jsxs(DropdownMenu, { children: [
5996
- /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
5997
- Button,
5998
- {
5999
- variant: "ghost",
6000
- size: "icon",
6001
- className: "size-8 pointer-coarse:size-11",
6002
- "aria-label": lb.moreActions,
6003
- "data-testid": `workflow-menu-${id}`,
6004
- children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4", "aria-hidden": true })
6005
- }
6006
- ) }),
6007
- /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", children: [
6008
- skill && p.onRunLater && /* @__PURE__ */ jsxs(
6009
- DropdownMenuItem,
6010
- {
6011
- onSelect: () => p.onRunLater?.(w),
6012
- "data-testid": `workflow-run-later-${id}`,
6013
- children: [
6014
- /* @__PURE__ */ jsx(History, { className: "mr-2 size-4", "aria-hidden": true }),
6015
- lb.runLater
6016
- ]
6017
- }
6018
- ),
6019
- !skill && canEdit && /* @__PURE__ */ jsxs(
6020
- DropdownMenuItem,
6021
- {
6022
- onSelect: () => p.onEdit(w),
6023
- "data-testid": `workflow-edit-${id}`,
6024
- children: [
6025
- /* @__PURE__ */ jsx(Pencil, { className: "mr-2 size-4", "aria-hidden": true }),
6026
- lb.editWorkflow
6027
- ]
6028
- }
6029
- ),
6030
- !skill && p.onViewRuns && /* @__PURE__ */ jsxs(
6031
- DropdownMenuItem,
6032
- {
6033
- onSelect: () => p.onViewRuns?.(w),
6034
- "data-testid": `workflow-runs-${id}`,
6035
- children: [
6036
- /* @__PURE__ */ jsx(History, { className: "mr-2 size-4", "aria-hidden": true }),
6037
- lb.runs
6038
- ]
6039
- }
6040
- ),
6041
- !skill && canEdit && /* @__PURE__ */ jsxs(Fragment, { children: [
6042
- /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
6043
- /* @__PURE__ */ jsxs(
6044
- DropdownMenuItem,
6045
- {
6046
- disabled: busy || !canAdmin,
6047
- onSelect: () => p.onDelete(w),
6048
- title: canAdmin ? void 0 : lb.deleteOwnerOnly,
6049
- className: "text-destructive focus:text-destructive",
6050
- "data-testid": `workflow-delete-${id}`,
6051
- children: [
6052
- /* @__PURE__ */ jsx(Trash2, { className: "mr-2 size-4", "aria-hidden": true }),
6053
- lb.delete
6054
- ]
6055
- }
6056
- )
6057
- ] })
6058
- ] })
6059
- ] })
6060
- ] });
6061
- }
6062
- }),
6063
- // Stable on purpose: only the header texts rebuild the columns (see `latest`).
6064
- // eslint-disable-next-line react-hooks/exhaustive-deps
6065
- [
6066
- l.colName,
6067
- l.colType,
6068
- l.colTrigger,
6069
- l.colAction,
6070
- l.colAgent,
6071
- l.colStatus,
6072
- l.colShared,
6073
- l.shared,
6074
- l.colLastRun,
6075
- l.colNextRun
6076
- ]
6077
- );
6078
- useEffect(() => {
6079
- apiRef.current?.refreshCells({ force: true });
6080
- }, [
6081
- busyId,
6082
- props.agentNames,
6083
- props.skillNames,
6084
- props.taskNames,
6085
- props.lastRuns,
6086
- props.renderPerson,
6087
- props.labels,
6088
- props.canEditShared,
6089
- props.isWorkspaceOwner
6090
- ]);
6091
- const mine = selected.filter((w) => !isSkillRow(w));
6092
- const adminSelected = mine.filter((w) => w.is_owner !== false || props.isWorkspaceOwner);
6093
- const editableSelected = mine.filter(
6094
- (w) => hasTrigger(w) && (w.is_owner !== false || props.canEditShared)
6095
- );
6096
- const clearSelection = () => setSelected([]);
6097
- return /* @__PURE__ */ jsxs(
6098
- "div",
6099
- {
6100
- className: "flex min-h-0 flex-1 flex-col",
6101
- "data-testid": testIdOr(testId, { testId: "workflow-list" }),
6102
- children: [
6103
- /* @__PURE__ */ jsx(
6104
- TabHeader,
6105
- {
6106
- testId: "automations-tab-header",
6107
- tabs: [
6108
- {
6109
- id: "automations",
6110
- label: "",
6111
- count: shown.length,
6112
- countIcon: /* @__PURE__ */ jsx(Workflow, { className: "size-3.5" }),
6113
- countPlacement: "leading",
6114
- presentation: "count",
6115
- hasActiveFilters: !!q || [...filterStates.values()].some(Boolean)
6116
- },
6117
- ...props.tabs ?? []
6118
- ],
6119
- activeTabId: props.activeTabId ?? "automations",
6120
- onTabChange: props.onTabChange ?? (() => {
6121
- }),
6122
- firstTabContent: /* @__PURE__ */ jsx(
6123
- FilterInput,
6124
- {
6125
- value: query,
6126
- onChange: setQuery,
6127
- fields: ["text"],
6128
- onFieldsChange: () => {
6129
- },
6130
- hideFieldPicker: true,
6131
- ariaLabel: l.searchLabel,
6132
- testIds: { input: "workflow-search" },
6133
- filter: /* @__PURE__ */ jsx(
6134
- TriStateFilterMenu,
6135
- {
6136
- testId: "automations-filter-button",
6137
- open: filterOpen,
6138
- onOpenChange: setFilterOpen,
6139
- filterStates,
6140
- onFiltersChange: setFilterStates,
6141
- triggerClassName: "flex h-5 items-center gap-0.5 rounded px-1 text-muted-foreground hover:text-foreground pointer-coarse:h-11! pointer-coarse:min-w-11 pointer-coarse:justify-center",
6142
- renderChevron: true,
6143
- disableHoverOpen: true,
6144
- options: [
6145
- ...!props.automationsOnly ? [
6146
- { id: "skills", label: l.filterSkills, count: counts.skills },
6147
- {
6148
- id: "workflows",
6149
- label: l.filterWorkflows,
6150
- count: counts.workflows
6151
- }
6152
- ] : [],
6153
- { id: "active", label: l.filterActive, count: counts.active },
6154
- { id: "paused", label: l.filterPaused, count: counts.paused }
6155
- ]
6156
- }
6157
- )
6158
- }
6159
- ),
6160
- rightContent: header
6161
- }
6162
- ),
6163
- props.content ? props.content : workflows.length === 0 && !isLoading ? /* @__PURE__ */ jsx(
6164
- EmptyState,
6165
- {
6166
- icon: Workflow,
6167
- title: l.emptyTitle,
6168
- description: l.emptyMessage,
6169
- testId: "workflow-list-empty"
6170
- }
6171
- ) : /* @__PURE__ */ jsx("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsx(
6172
- GridView,
6173
- {
6174
- testId: "workflow-grid",
6175
- gridId: props.gridId ?? "workflows-grid-v2",
6176
- items: shown,
6177
- columnDefs,
6178
- getItemId: (w) => w.external_id,
6179
- getRowTestId: (w) => `workflow-row-${w.external_id}`,
6180
- isLoading,
6181
- showEmpty: shown.length === 0,
6182
- emptyState: { title: l.noMatches },
6183
- rowHeight: ROW_HEIGHT2,
6184
- height: "100%",
6185
- onGridReady: ({ api }) => {
6186
- apiRef.current = api;
6187
- },
6188
- onRowClick: (row) => props.onOpenRow?.(row),
6189
- selection: { mode: "multiple", selected, onSelectionChange: setSelected },
6190
- gridOptions: GRID_OPTIONS
6191
- }
6192
- ) }),
6193
- !props.content && /* @__PURE__ */ jsx(SelectionBar, { count: selected.length, onClear: clearSelection, children: (isCompact) => /* @__PURE__ */ jsxs(Fragment, { children: [
6194
- props.onToggleActiveMany && /* @__PURE__ */ jsxs(Fragment, { children: [
6195
- /* @__PURE__ */ jsx(
6196
- SelectionBarAction,
6197
- {
6198
- icon: Play,
6199
- label: l.makeActive,
6200
- onClick: () => {
6201
- props.onToggleActiveMany?.(editableSelected, true);
6202
- clearSelection();
6203
- },
6204
- disabled: editableSelected.length === 0,
6205
- isCompact,
6206
- testId: "workflow-bulk-activate"
6207
- }
6208
- ),
6209
- /* @__PURE__ */ jsx(
6210
- SelectionBarAction,
6211
- {
6212
- icon: Workflow,
6213
- label: l.makePaused,
6214
- onClick: () => {
6215
- props.onToggleActiveMany?.(editableSelected, false);
6216
- clearSelection();
6217
- },
6218
- disabled: editableSelected.length === 0,
6219
- isCompact,
6220
- testId: "workflow-bulk-pause"
6221
- }
6222
- )
6223
- ] }),
6224
- props.onDeleteMany && /* @__PURE__ */ jsx(
6225
- SelectionBarAction,
6226
- {
6227
- icon: Trash2,
6228
- label: l.delete,
6229
- onClick: () => {
6230
- props.onDeleteMany?.(adminSelected);
6231
- clearSelection();
6232
- },
6233
- disabled: adminSelected.length === 0,
6234
- isCompact,
6235
- className: "border-red-border text-red-text hover:bg-red-bg hover:text-red-text",
6236
- testId: "workflow-bulk-delete"
6237
- }
6238
- )
6239
- ] }) })
6240
- ]
6241
- }
6242
- );
6243
- }
6244
- var GRID_OPTIONS = { suppressClickEdit: true };
6245
5071
  function TaskActivityDialog({
6246
5072
  open,
6247
5073
  onOpenChange,
@@ -10471,6 +9297,6 @@ function AgentCreateView({
10471
9297
  ] });
10472
9298
  }
10473
9299
 
10474
- export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_THREAD_LAUNCHER_LABELS, DEFAULT_THREAD_STATE_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_RUN_STATUS_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunStatus, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, skillSlug, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowFromSkillMarkdown, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowTriggerType, workflowWhen };
10475
- //# sourceMappingURL=chunk-UMIY4SQS.js.map
10476
- //# sourceMappingURL=chunk-UMIY4SQS.js.map
9300
+ export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_THREAD_LAUNCHER_LABELS, DEFAULT_THREAD_STATE_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_RUN_STATUS_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillActionButton, SkillCard, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillRow, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TASK_COLUMN_ORDER, TRIGGER_LABELS, TaskActivityDialog, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WorkflowRunStatus, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowTaskFields, workflowToComposerValues, workflowWhen };
9301
+ //# sourceMappingURL=chunk-KMNZ2RVO.js.map
9302
+ //# sourceMappingURL=chunk-KMNZ2RVO.js.map