@arbidocs/blocks 0.4.38 → 0.4.40
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 +226 -224
- package/dist/agents/index.js +7 -5
- package/dist/agents/tasks/TaskInbox.d.ts +1 -1
- package/dist/agents/tasks/TaskStartDialog.d.ts +11 -3
- package/dist/agents/tasks/taskRequest.d.ts +3 -0
- package/dist/chat/index.cjs +127 -126
- package/dist/chat/index.js +3 -2
- package/dist/chunk-3VQYJBOI.js +76 -0
- package/dist/chunk-3VQYJBOI.js.map +1 -0
- package/dist/{chunk-SWON6O45.js → chunk-7L3KPYD2.js} +3 -3
- package/dist/{chunk-SWON6O45.js.map → chunk-7L3KPYD2.js.map} +1 -1
- package/dist/{chunk-LQITIYBN.js → chunk-CA7JD6IX.js} +3 -3
- package/dist/{chunk-LQITIYBN.js.map → chunk-CA7JD6IX.js.map} +1 -1
- package/dist/{chunk-ZXYHBQFW.js → chunk-E3U5GYAP.js} +5 -72
- package/dist/chunk-E3U5GYAP.js.map +1 -0
- package/dist/{chunk-VZGBCBYB.js → chunk-HTJXMA26.js} +3 -3
- package/dist/{chunk-VZGBCBYB.js.map → chunk-HTJXMA26.js.map} +1 -1
- package/dist/{chunk-XDTYENKC.cjs → chunk-LEJGV4KQ.cjs} +158 -40
- package/dist/chunk-LEJGV4KQ.cjs.map +1 -0
- package/dist/{chunk-SKFSJHVU.cjs → chunk-LR54PQ7N.cjs} +4 -4
- package/dist/{chunk-SKFSJHVU.cjs.map → chunk-LR54PQ7N.cjs.map} +1 -1
- package/dist/{chunk-VUEZARW5.cjs → chunk-MDW5YCHZ.cjs} +3 -3
- package/dist/{chunk-VUEZARW5.cjs.map → chunk-MDW5YCHZ.cjs.map} +1 -1
- package/dist/{chunk-EEGPWOOG.cjs → chunk-NT3WEHL5.cjs} +5 -5
- package/dist/{chunk-EEGPWOOG.cjs.map → chunk-NT3WEHL5.cjs.map} +1 -1
- package/dist/{chunk-EA6YX3GR.js → chunk-RFCQPDEP.js} +158 -40
- package/dist/chunk-RFCQPDEP.js.map +1 -0
- package/dist/{chunk-KMYLQIOH.cjs → chunk-UW3IHMYA.cjs} +4 -72
- package/dist/chunk-UW3IHMYA.cjs.map +1 -0
- package/dist/chunk-V3L5DONY.cjs +78 -0
- package/dist/chunk-V3L5DONY.cjs.map +1 -0
- package/dist/connect/index.cjs +34 -33
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +5 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/index.cjs +458 -457
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +31 -31
- package/dist/settings/index.js +2 -2
- package/dist/studio/index.cjs +4 -3
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +3 -2
- package/dist/studio/index.js.map +1 -1
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +2 -0
- package/dist/workspaces/index.cjs +6 -3
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +7 -4
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-EA6YX3GR.js.map +0 -1
- package/dist/chunk-KMYLQIOH.cjs.map +0 -1
- package/dist/chunk-XDTYENKC.cjs.map +0 -1
- package/dist/chunk-ZXYHBQFW.js.map +0 -1
|
@@ -3,14 +3,16 @@ import { EmptyState } from './chunk-P6GHJSLR.js';
|
|
|
3
3
|
import { CellHoverIcon } from './chunk-RFXJYIDV.js';
|
|
4
4
|
import { GridView, SelectionBar, SelectionBarAction } from './chunk-BUHKUKKB.js';
|
|
5
5
|
import { FoldSection, QuickActionDialogHeader, AddFilesFirst, ScopePicker, StartTiles } from './chunk-LFGJAZ5H.js';
|
|
6
|
-
import { FilterInput } from './chunk-YU2KUMGE.js';
|
|
7
|
-
import { ActionLink } from './chunk-S7PSMMRG.js';
|
|
8
6
|
import { DocumentPicker, TriStateFilterMenu, MultiSelect } from './chunk-CKB64Z4R.js';
|
|
9
7
|
import { ToneBadge } from './chunk-DPLRHEJZ.js';
|
|
8
|
+
import { FilterInput } from './chunk-YU2KUMGE.js';
|
|
9
|
+
import { ActionLink } from './chunk-S7PSMMRG.js';
|
|
10
10
|
import { TabHeader } from './chunk-4WWM3GQ5.js';
|
|
11
|
+
import { useMentionAutocomplete } from './chunk-3VQYJBOI.js';
|
|
12
|
+
import { ModalHeader } from './chunk-CPMNAJLF.js';
|
|
11
13
|
import { useBlocksEnvironment } from './chunk-76JDDMSP.js';
|
|
12
14
|
import { formatCount, initials } from './chunk-OXF2IFXG.js';
|
|
13
|
-
import {
|
|
15
|
+
import { toMessageMentions, extractMentions, MentionMenu } from './chunk-AA3PT6KR.js';
|
|
14
16
|
import { testIdOr, prefixedTestId } from './chunk-7F6CBP3Z.js';
|
|
15
17
|
import { memo, forwardRef, useState, useMemo, useId, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
|
|
16
18
|
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, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandItem, VisibilityToggle, EntityPill, ThreadVisibilityIcon, DialogClose, DropdownMenuSeparator, badgeVariants, Checkbox } from '@arbidocs/react/ui';
|
|
@@ -4292,6 +4294,7 @@ function TaskTable(props) {
|
|
|
4292
4294
|
const isOwner = task.is_owner !== false;
|
|
4293
4295
|
const canEdit = isOwner || Boolean(p.canEditShared);
|
|
4294
4296
|
const canAdmin = isOwner || Boolean(p.isWorkspaceOwner);
|
|
4297
|
+
const canAskReview = status !== "done" && status !== "chat" && canEdit && Boolean(p.onRequestApproval && p.people?.length);
|
|
4295
4298
|
const reviewActions = (closeMenu) => status === "ready_for_review" ? /* @__PURE__ */ jsx(
|
|
4296
4299
|
TaskReviewActions,
|
|
4297
4300
|
{
|
|
@@ -4316,6 +4319,23 @@ function TaskTable(props) {
|
|
|
4316
4319
|
compact: true,
|
|
4317
4320
|
labels: p.reviewLabels
|
|
4318
4321
|
}
|
|
4322
|
+
) : canAskReview ? /* @__PURE__ */ jsx(
|
|
4323
|
+
TaskReviewActions,
|
|
4324
|
+
{
|
|
4325
|
+
id,
|
|
4326
|
+
busy,
|
|
4327
|
+
canApprove: false,
|
|
4328
|
+
canRequestChanges: false,
|
|
4329
|
+
onApprove: () => void 0,
|
|
4330
|
+
onRequestChanges: () => void 0,
|
|
4331
|
+
onRequestApproval: (userId, note) => {
|
|
4332
|
+
p.onRequestApproval?.(task, userId, note);
|
|
4333
|
+
closeMenu?.();
|
|
4334
|
+
},
|
|
4335
|
+
people: p.people,
|
|
4336
|
+
compact: true,
|
|
4337
|
+
labels: p.reviewLabels
|
|
4338
|
+
}
|
|
4319
4339
|
) : null;
|
|
4320
4340
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
4321
4341
|
!latest.current.narrow && reviewActions(),
|
|
@@ -4335,7 +4355,7 @@ function TaskTable(props) {
|
|
|
4335
4355
|
/* @__PURE__ */ jsx(
|
|
4336
4356
|
TaskRowMenu,
|
|
4337
4357
|
{
|
|
4338
|
-
reviewActions: latest.current.narrow && status === "ready_for_review" ? reviewActions : void 0,
|
|
4358
|
+
reviewActions: latest.current.narrow && (status === "ready_for_review" || canAskReview) ? reviewActions : void 0,
|
|
4339
4359
|
task,
|
|
4340
4360
|
status,
|
|
4341
4361
|
busy,
|
|
@@ -4784,6 +4804,21 @@ function TaskInbox(p) {
|
|
|
4784
4804
|
children: "Allow access"
|
|
4785
4805
|
}
|
|
4786
4806
|
),
|
|
4807
|
+
p.onRequestApproval && status !== "done" && canEdit(task) && /* @__PURE__ */ jsx(
|
|
4808
|
+
TaskReviewActions,
|
|
4809
|
+
{
|
|
4810
|
+
id,
|
|
4811
|
+
busy,
|
|
4812
|
+
compact: true,
|
|
4813
|
+
canApprove: false,
|
|
4814
|
+
canRequestChanges: false,
|
|
4815
|
+
onApprove: () => void 0,
|
|
4816
|
+
onRequestChanges: () => void 0,
|
|
4817
|
+
onRequestApproval: (userId, note) => p.onRequestApproval?.(task, userId, note),
|
|
4818
|
+
people: p.people,
|
|
4819
|
+
labels: p.reviewLabels
|
|
4820
|
+
}
|
|
4821
|
+
),
|
|
4787
4822
|
/* @__PURE__ */ jsx(
|
|
4788
4823
|
TaskRowMenu,
|
|
4789
4824
|
{
|
|
@@ -5161,7 +5196,7 @@ function ConversationListView(p) {
|
|
|
5161
5196
|
...liveProps.current.renderBy || liveProps.current.renderOwner ? [
|
|
5162
5197
|
{
|
|
5163
5198
|
colId: liveProps.current.renderBy ? "by" : "owner",
|
|
5164
|
-
headerName: liveProps.current.renderBy ? "
|
|
5199
|
+
headerName: liveProps.current.renderBy ? "Last message by" : "Owner",
|
|
5165
5200
|
width: 160,
|
|
5166
5201
|
cellRenderer: ({ data }) => data && (liveProps.current.renderBy || liveProps.current.renderOwner)?.(data)
|
|
5167
5202
|
}
|
|
@@ -5185,7 +5220,7 @@ function ConversationListView(p) {
|
|
|
5185
5220
|
{
|
|
5186
5221
|
colId: "visibility",
|
|
5187
5222
|
headerName: "Visibility",
|
|
5188
|
-
width:
|
|
5223
|
+
width: 170,
|
|
5189
5224
|
cellClass: "cell-hcenter",
|
|
5190
5225
|
sortable: false,
|
|
5191
5226
|
resizable: false,
|
|
@@ -5193,7 +5228,8 @@ function ConversationListView(p) {
|
|
|
5193
5228
|
VisibilityToggle,
|
|
5194
5229
|
{
|
|
5195
5230
|
items: [data],
|
|
5196
|
-
showLabel:
|
|
5231
|
+
showLabel: true,
|
|
5232
|
+
label: data.is_shared ? "Workspace" : "Only Me",
|
|
5197
5233
|
disabled: data.is_owner === false,
|
|
5198
5234
|
onToggle: () => liveProps.current.onToggleShared?.(data, !data.is_shared)
|
|
5199
5235
|
}
|
|
@@ -5292,10 +5328,14 @@ function ConversationListView(p) {
|
|
|
5292
5328
|
p.selectionActions && /* @__PURE__ */ jsx(SelectionBar, { count: selectedRows.length, onClear: () => setSelected(/* @__PURE__ */ new Set()), children: (compact) => p.selectionActions?.(selectedRows, compact, () => setSelected(/* @__PURE__ */ new Set())) })
|
|
5293
5329
|
] });
|
|
5294
5330
|
}
|
|
5331
|
+
var NO_PEOPLE = [];
|
|
5332
|
+
var NO_ASSIGNEES = [];
|
|
5295
5333
|
function TaskStartDialog({
|
|
5296
5334
|
open,
|
|
5297
5335
|
onOpenChange,
|
|
5298
5336
|
workflows,
|
|
5337
|
+
people = NO_PEOPLE,
|
|
5338
|
+
assignees = NO_ASSIGNEES,
|
|
5299
5339
|
isPending,
|
|
5300
5340
|
error,
|
|
5301
5341
|
onStart,
|
|
@@ -5304,14 +5344,35 @@ function TaskStartDialog({
|
|
|
5304
5344
|
const [prompt, setPrompt] = useState("");
|
|
5305
5345
|
const [choice, setChoice] = useState("prompt");
|
|
5306
5346
|
const [shared, setShared] = useState(false);
|
|
5347
|
+
const [sourceOpen, setSourceOpen] = useState(false);
|
|
5348
|
+
const [assignee, setAssignee] = useState("");
|
|
5349
|
+
useEffect(() => {
|
|
5350
|
+
if (open) return;
|
|
5351
|
+
setPrompt("");
|
|
5352
|
+
setChoice("prompt");
|
|
5353
|
+
setShared(false);
|
|
5354
|
+
setSourceOpen(false);
|
|
5355
|
+
setAssignee("");
|
|
5356
|
+
}, [open]);
|
|
5357
|
+
const textareaRef = useRef(null);
|
|
5358
|
+
const mention = useMentionAutocomplete({
|
|
5359
|
+
value: prompt,
|
|
5360
|
+
onValueChange: setPrompt,
|
|
5361
|
+
candidates: people,
|
|
5362
|
+
textareaRef
|
|
5363
|
+
});
|
|
5307
5364
|
const todo = choice === "todo";
|
|
5308
5365
|
const workflowId = choice === "prompt" || todo ? null : choice;
|
|
5366
|
+
const assigneeId = todo ? assignee : "";
|
|
5367
|
+
const sharedNow = shared || assigneeId !== "";
|
|
5309
5368
|
const valid = workflowId ? workflows.some((w) => w.external_id === workflowId) : Boolean(prompt.trim());
|
|
5310
5369
|
const values = {
|
|
5311
5370
|
prompt: prompt.trim(),
|
|
5312
5371
|
workflowId,
|
|
5313
5372
|
todo,
|
|
5314
|
-
shared
|
|
5373
|
+
shared: sharedNow,
|
|
5374
|
+
mentions: toMessageMentions(extractMentions(prompt, people)),
|
|
5375
|
+
...assigneeId ? { assigneeId } : {}
|
|
5315
5376
|
};
|
|
5316
5377
|
return /* @__PURE__ */ jsx(Dialog, { modal: false, open, onOpenChange: (next) => !isPending && onOpenChange(next), children: /* @__PURE__ */ jsxs(
|
|
5317
5378
|
DialogContent,
|
|
@@ -5319,6 +5380,11 @@ function TaskStartDialog({
|
|
|
5319
5380
|
presentation: "right",
|
|
5320
5381
|
hideCloseButton: true,
|
|
5321
5382
|
onInteractOutside: (event) => event.preventDefault(),
|
|
5383
|
+
onEscapeKeyDown: (event) => {
|
|
5384
|
+
if (!sourceOpen) return;
|
|
5385
|
+
event.preventDefault();
|
|
5386
|
+
setSourceOpen(false);
|
|
5387
|
+
},
|
|
5322
5388
|
className: "flex flex-col gap-0 overflow-hidden p-0 shadow-lg",
|
|
5323
5389
|
"data-testid": "task-start-dialog",
|
|
5324
5390
|
children: [
|
|
@@ -5337,35 +5403,90 @@ function TaskStartDialog({
|
|
|
5337
5403
|
/* @__PURE__ */ jsxs("div", { className: "min-h-0 flex-1 overflow-y-auto px-3 py-3", children: [
|
|
5338
5404
|
!workflowId ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5339
5405
|
/* @__PURE__ */ jsx(Label, { className: "sr-only", htmlFor: "task-start-prompt", children: todo ? "What needs doing?" : "What should ARBI do?" }),
|
|
5340
|
-
/* @__PURE__ */
|
|
5341
|
-
|
|
5406
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
5407
|
+
/* @__PURE__ */ jsx(
|
|
5408
|
+
Textarea,
|
|
5409
|
+
{
|
|
5410
|
+
id: "task-start-prompt",
|
|
5411
|
+
ref: textareaRef,
|
|
5412
|
+
autoFocus: true,
|
|
5413
|
+
value: prompt,
|
|
5414
|
+
onChange: (event) => mention.onValueChange(event.target.value),
|
|
5415
|
+
onKeyDown: mention.nav.handleKeyDown,
|
|
5416
|
+
...mention.isOpen ? mention.nav.comboboxProps : {},
|
|
5417
|
+
...mention.textareaProps,
|
|
5418
|
+
disabled: isPending,
|
|
5419
|
+
placeholder: "What needs doing?",
|
|
5420
|
+
className: "min-h-44 resize-y shadow-none"
|
|
5421
|
+
}
|
|
5422
|
+
),
|
|
5423
|
+
/* @__PURE__ */ jsx(
|
|
5424
|
+
MentionMenu,
|
|
5425
|
+
{
|
|
5426
|
+
open: mention.isOpen,
|
|
5427
|
+
placement: "below",
|
|
5428
|
+
items: mention.items,
|
|
5429
|
+
selectedIndex: mention.nav.selectedIndex,
|
|
5430
|
+
setSelectedIndex: mention.nav.setSelectedIndex,
|
|
5431
|
+
listboxId: mention.nav.listboxId,
|
|
5432
|
+
onSelect: mention.pick
|
|
5433
|
+
}
|
|
5434
|
+
)
|
|
5435
|
+
] })
|
|
5436
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm", children: workflows.find((workflow) => workflow.external_id === workflowId)?.name }),
|
|
5437
|
+
/* @__PURE__ */ jsxs(
|
|
5438
|
+
Select,
|
|
5439
|
+
{
|
|
5440
|
+
value: choice,
|
|
5441
|
+
onValueChange: setChoice,
|
|
5442
|
+
open: sourceOpen,
|
|
5443
|
+
onOpenChange: setSourceOpen,
|
|
5444
|
+
disabled: isPending,
|
|
5445
|
+
children: [
|
|
5446
|
+
/* @__PURE__ */ jsx(
|
|
5447
|
+
SelectTrigger,
|
|
5448
|
+
{
|
|
5449
|
+
id: "task-start-source",
|
|
5450
|
+
"aria-label": "Who does the work",
|
|
5451
|
+
className: "mt-3 h-7 w-auto max-w-full border-0 bg-transparent px-1 text-xs font-normal text-muted-foreground shadow-none hover:bg-muted",
|
|
5452
|
+
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
5453
|
+
}
|
|
5454
|
+
),
|
|
5455
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
5456
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "prompt", children: "With ARBI" }),
|
|
5457
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "todo", children: "People only" }),
|
|
5458
|
+
workflows.map((workflow) => /* @__PURE__ */ jsx(SelectItem, { value: workflow.external_id, children: workflow.name }, workflow.external_id))
|
|
5459
|
+
] })
|
|
5460
|
+
]
|
|
5461
|
+
}
|
|
5462
|
+
),
|
|
5463
|
+
todo && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
5464
|
+
/* @__PURE__ */ jsx("span", { children: "Assigned to" }),
|
|
5465
|
+
/* @__PURE__ */ jsxs(
|
|
5466
|
+
Select,
|
|
5342
5467
|
{
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
value: prompt,
|
|
5346
|
-
onChange: (event) => setPrompt(event.target.value),
|
|
5468
|
+
value: assigneeId || "me",
|
|
5469
|
+
onValueChange: (next) => setAssignee(next === "me" ? "" : next),
|
|
5347
5470
|
disabled: isPending,
|
|
5348
|
-
|
|
5349
|
-
|
|
5471
|
+
children: [
|
|
5472
|
+
/* @__PURE__ */ jsx(
|
|
5473
|
+
SelectTrigger,
|
|
5474
|
+
{
|
|
5475
|
+
id: "task-start-assignee",
|
|
5476
|
+
"aria-label": "Assigned to",
|
|
5477
|
+
className: "h-7 w-auto max-w-full border-0 bg-transparent px-1 text-xs font-normal text-foreground shadow-none hover:bg-muted",
|
|
5478
|
+
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
5479
|
+
}
|
|
5480
|
+
),
|
|
5481
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
5482
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "me", children: "Me" }),
|
|
5483
|
+
assignees.map((person) => /* @__PURE__ */ jsx(SelectItem, { value: person.id, children: person.label }, person.id))
|
|
5484
|
+
] })
|
|
5485
|
+
]
|
|
5350
5486
|
}
|
|
5351
5487
|
)
|
|
5352
|
-
] }) : /* @__PURE__ */ jsx("p", { className: "text-sm", children: workflows.find((workflow) => workflow.external_id === workflowId)?.name }),
|
|
5353
|
-
/* @__PURE__ */ jsxs(Select, { value: choice, onValueChange: setChoice, disabled: isPending, children: [
|
|
5354
|
-
/* @__PURE__ */ jsx(
|
|
5355
|
-
SelectTrigger,
|
|
5356
|
-
{
|
|
5357
|
-
id: "task-start-source",
|
|
5358
|
-
"aria-label": "Who does the work",
|
|
5359
|
-
className: "mt-3 h-7 w-auto max-w-full border-0 bg-transparent px-1 text-xs font-normal text-muted-foreground shadow-none hover:bg-muted",
|
|
5360
|
-
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
5361
|
-
}
|
|
5362
|
-
),
|
|
5363
|
-
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
5364
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "prompt", children: "With ARBI" }),
|
|
5365
|
-
/* @__PURE__ */ jsx(SelectItem, { value: "todo", children: "People only" }),
|
|
5366
|
-
workflows.map((workflow) => /* @__PURE__ */ jsx(SelectItem, { value: workflow.external_id, children: workflow.name }, workflow.external_id))
|
|
5367
|
-
] })
|
|
5368
5488
|
] }),
|
|
5489
|
+
todo && assignees.length === 0 && /* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: "Invite a workspace collaborator to assign this to them." }),
|
|
5369
5490
|
error && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-3 text-sm text-destructive", children: error })
|
|
5370
5491
|
] }),
|
|
5371
5492
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-t px-3 py-2", children: [
|
|
@@ -5384,10 +5505,10 @@ function TaskStartDialog({
|
|
|
5384
5505
|
/* @__PURE__ */ jsx(
|
|
5385
5506
|
VisibilityToggle,
|
|
5386
5507
|
{
|
|
5387
|
-
items: { shared },
|
|
5508
|
+
items: { shared: sharedNow },
|
|
5388
5509
|
onToggle: setShared,
|
|
5389
|
-
label:
|
|
5390
|
-
disabled: isPending,
|
|
5510
|
+
label: sharedNow ? "Workspace" : "Only Me",
|
|
5511
|
+
disabled: isPending || assigneeId !== "",
|
|
5391
5512
|
"data-testid": "task-start-visibility"
|
|
5392
5513
|
}
|
|
5393
5514
|
),
|
|
@@ -5400,9 +5521,6 @@ function TaskStartDialog({
|
|
|
5400
5521
|
onClick: async () => {
|
|
5401
5522
|
try {
|
|
5402
5523
|
await onStart(values);
|
|
5403
|
-
setPrompt("");
|
|
5404
|
-
setChoice("prompt");
|
|
5405
|
-
setShared(false);
|
|
5406
5524
|
} catch {
|
|
5407
5525
|
}
|
|
5408
5526
|
},
|
|
@@ -10530,5 +10648,5 @@ function AgentCreateView({
|
|
|
10530
10648
|
}
|
|
10531
10649
|
|
|
10532
10650
|
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_SCHEMA_FORM_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_ACTIVITY_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_REVIEW_ACTIONS_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_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, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EMPTY_WORKFLOW_SCOPE, EntityChip, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SchemaForm, 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, TaskActivityTimeline, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskReviewActions, TaskReviewDialog, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLaunch, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composeWorkflowPrompt, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultInputs, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, inputsFromContext, isAgenticWorkflow, isEmptyWorkflowScope, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isWorkflowScope, isoToLocalInput, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, promptFieldName, resolveScopeInputs, skillToWorkflow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, validateInputs, workflowAccepts, workflowFromFrontmatter, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowTriggerType, workflowWhen, workflowsAccepting, workflowsForHost };
|
|
10533
|
-
//# sourceMappingURL=chunk-
|
|
10534
|
-
//# sourceMappingURL=chunk-
|
|
10651
|
+
//# sourceMappingURL=chunk-RFCQPDEP.js.map
|
|
10652
|
+
//# sourceMappingURL=chunk-RFCQPDEP.js.map
|