@arbidocs/blocks 0.4.79 → 0.4.81

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 (46) hide show
  1. package/dist/agents/index.cjs +278 -278
  2. package/dist/agents/index.js +3 -3
  3. package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
  4. package/dist/agents/workflows/WorkflowRunner.d.ts +35 -3
  5. package/dist/agents/workflows/run.d.ts +10 -0
  6. package/dist/agents/workflows/stepWindow.d.ts +7 -0
  7. package/dist/agents/workflows/types.d.ts +4 -2
  8. package/dist/{chunk-5XVWGJ2H.cjs → chunk-B3WCKBJ7.cjs} +3 -3
  9. package/dist/{chunk-5XVWGJ2H.cjs.map → chunk-B3WCKBJ7.cjs.map} +1 -1
  10. package/dist/{chunk-YGUKTFKW.cjs → chunk-BX7JWZWE.cjs} +122 -14
  11. package/dist/chunk-BX7JWZWE.cjs.map +1 -0
  12. package/dist/{chunk-3YET6D5E.cjs → chunk-F5WIETZY.cjs} +58 -43
  13. package/dist/chunk-F5WIETZY.cjs.map +1 -0
  14. package/dist/{chunk-O35LRB3P.js → chunk-GJV2G4FC.js} +3 -3
  15. package/dist/{chunk-O35LRB3P.js.map → chunk-GJV2G4FC.js.map} +1 -1
  16. package/dist/{chunk-BMOL5DN6.js → chunk-I56ORHPY.js} +27 -12
  17. package/dist/chunk-I56ORHPY.js.map +1 -0
  18. package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
  19. package/dist/chunk-SWSVPQNB.js.map +1 -0
  20. package/dist/{chunk-6GXF62XN.js → chunk-THCFZKTM.js} +118 -15
  21. package/dist/chunk-THCFZKTM.js.map +1 -0
  22. package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
  23. package/dist/chunk-UA2AMDR6.cjs.map +1 -0
  24. package/dist/connect/index.cjs +145 -62
  25. package/dist/connect/index.cjs.map +1 -1
  26. package/dist/connect/index.d.ts +1 -1
  27. package/dist/connect/index.js +106 -23
  28. package/dist/connect/index.js.map +1 -1
  29. package/dist/connection/ConnectedWorkflowRunner.d.ts +30 -4
  30. package/dist/files/index.cjs +2 -2
  31. package/dist/files/index.js +2 -2
  32. package/dist/index.cjs +467 -467
  33. package/dist/index.js +7 -7
  34. package/dist/settings/index.cjs +35 -35
  35. package/dist/settings/index.js +3 -3
  36. package/dist/workflow-canvas/index.cjs +46 -46
  37. package/dist/workflow-canvas/index.js +3 -3
  38. package/dist/workspaces/index.cjs +1 -1
  39. package/dist/workspaces/index.js +1 -1
  40. package/package.json +4 -4
  41. package/dist/chunk-3YET6D5E.cjs.map +0 -1
  42. package/dist/chunk-6GXF62XN.js.map +0 -1
  43. package/dist/chunk-BMOL5DN6.js.map +0 -1
  44. package/dist/chunk-CWAZNXC5.js.map +0 -1
  45. package/dist/chunk-MLAHDAN5.cjs.map +0 -1
  46. package/dist/chunk-YGUKTFKW.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { DocumentPicker, TriStateFilterMenu, MultiSelect } from './chunk-CKB64Z4R.js';
3
3
  import { EmptyState } from './chunk-P6GHJSLR.js';
4
- import { defaultInputs, validateInputs, SchemaForm, isWorkflowScope, fieldToFrontmatter, workflowFromFrontmatter, workflowSteps, initialRunInputs, stepPhase, composeStepPrompt, useWorkflowView, composeWorkflowPrompt, isRunFinished, StepBarFrame, stepLevels, buildLaunch, PhaseMark, STEP_LABEL, STEP_EXTRA, STEP_PILL, stepPillTone } from './chunk-6GXF62XN.js';
4
+ import { defaultInputs, validateInputs, SchemaForm, isWorkflowScope, fieldToFrontmatter, workflowFromFrontmatter, workflowSteps, initialRunInputs, stepPhase, composeStepPrompt, useWorkflowView, composeWorkflowPrompt, isRunFinished, StepBarFrame, stepLevels, eventWaitingDocuments, waitingForDocumentsText, buildLaunch, waitingDocuments, PhaseMark, STEP_LABEL, STEP_LABEL_MAX_CURRENT, STEP_LABEL_MAX, STEP_EXTRA, STEP_PILL, stepPillTone } from './chunk-THCFZKTM.js';
5
5
  import { TabHeader } from './chunk-4WWM3GQ5.js';
6
6
  import { CellHoverIcon } from './chunk-RFXJYIDV.js';
7
7
  import { ToneBadge } from './chunk-DPLRHEJZ.js';
@@ -12,11 +12,11 @@ import { QuickActionDialogHeader, AddFilesFirst, ScopePicker, StartTiles } from
12
12
  import { FoldSection } from './chunk-XD2M6LIG.js';
13
13
  import { ActionLink } from './chunk-S7PSMMRG.js';
14
14
  import { useBlocksEnvironment } from './chunk-76JDDMSP.js';
15
- import { ModalHeader } from './chunk-TX2ZICS7.js';
16
15
  import { useMentionAutocomplete } from './chunk-HOXKR26S.js';
17
16
  import { toMessageMentions, extractMentions, MentionMenu } from './chunk-AA3PT6KR.js';
18
17
  import { useIsPhone } from './chunk-SLSBJRWW.js';
19
18
  import { formatCount, initials } from './chunk-OXF2IFXG.js';
19
+ import { ModalHeader } from './chunk-TX2ZICS7.js';
20
20
  import { testIdOr, prefixedTestId } from './chunk-7F6CBP3Z.js';
21
21
  import { memo, forwardRef, useState, useMemo, useId, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
22
22
  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 } from '@arbidocs/react/ui';
@@ -6267,10 +6267,18 @@ function TaskActivityTimeline({
6267
6267
  return { headline: "Step done" };
6268
6268
  case "step_skipped":
6269
6269
  return { headline: "Step skipped" };
6270
- case "step_waiting":
6271
- return { headline: "Waiting on people" };
6272
- case "step_progress":
6273
- return { headline: detail.signed ? "Signed" : "Step moved on" };
6270
+ case "step_waiting": {
6271
+ const documents = eventWaitingDocuments(detail);
6272
+ return {
6273
+ headline: documents ? waitingForDocumentsText(documents.length) : "Waiting on people"
6274
+ };
6275
+ }
6276
+ case "step_progress": {
6277
+ const documents = eventWaitingDocuments(detail);
6278
+ return {
6279
+ headline: documents ? waitingForDocumentsText(documents.length) : detail.signed ? "Signed" : "Step moved on"
6280
+ };
6281
+ }
6274
6282
  case "step_sent_back":
6275
6283
  return { headline: "Sent the work back" };
6276
6284
  case "step_ready":
@@ -6630,6 +6638,8 @@ function WorkflowThreadStrip({
6630
6638
  const waitingOf = (id) => {
6631
6639
  const step = steps.find((s) => s.id === id);
6632
6640
  const phase = phaseOf(id);
6641
+ const documents = waitingDocuments(states[id]);
6642
+ if (documents.length) return waitingForDocumentsText(documents.length);
6633
6643
  const name = step && (phase === "ready" || phase === "waiting") ? assigneeOf?.(step) : void 0;
6634
6644
  return name ? l.waitingFor.replace("{name}", name) : void 0;
6635
6645
  };
@@ -6637,7 +6647,7 @@ function WorkflowThreadStrip({
6637
6647
  const phase = phaseOf(step.id);
6638
6648
  const happened = grouped.byStep[step.id] ?? [];
6639
6649
  const assignee = phase === "ready" || phase === "waiting" ? assigneeOf?.(step) : void 0;
6640
- const waiting = assignee ? l.waitingFor.replace("{name}", assignee) : void 0;
6650
+ const waiting = waitingOf(step.id);
6641
6651
  const sentBack = states[step.id]?.sentBack;
6642
6652
  return /* @__PURE__ */ jsxs(Popover, { open: open === step.id, onOpenChange: (o) => setOpen(o ? step.id : null), children: [
6643
6653
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
@@ -6651,7 +6661,7 @@ function WorkflowThreadStrip({
6651
6661
  "data-testid": `workflow-thread-step-${step.id}`,
6652
6662
  children: [
6653
6663
  /* @__PURE__ */ jsx(PhaseMark, { phase, icon: iconOf(step) }),
6654
- /* @__PURE__ */ jsx("span", { className: cn(STEP_LABEL, isCurrent ? "max-w-[16rem]" : "max-w-[11rem]"), children: step.title }),
6664
+ /* @__PURE__ */ jsx("span", { className: cn(STEP_LABEL, isCurrent ? STEP_LABEL_MAX_CURRENT : STEP_LABEL_MAX), children: step.title }),
6655
6665
  sentBack && /* @__PURE__ */ jsx(
6656
6666
  CornerUpLeft,
6657
6667
  {
@@ -6684,7 +6694,7 @@ function WorkflowThreadStrip({
6684
6694
  "data-testid": `workflow-thread-step-${step.id}-menu`,
6685
6695
  children: [
6686
6696
  /* @__PURE__ */ jsx("p", { className: "px-1 text-xs font-semibold", children: step.title }),
6687
- assignee && /* @__PURE__ */ jsx("p", { className: "px-1 text-xs", "data-testid": `workflow-thread-step-${step.id}-waiting-for`, children: waiting }),
6697
+ waiting && /* @__PURE__ */ jsx("p", { className: "px-1 text-xs", "data-testid": `workflow-thread-step-${step.id}-waiting-for`, children: waiting }),
6688
6698
  sentBack && /* @__PURE__ */ jsx("p", { className: "px-1 text-xs text-amber-700 dark:text-amber-300", children: l.sentBack }),
6689
6699
  /* @__PURE__ */ jsx("p", { className: "px-1 text-xs font-medium text-muted-foreground", children: happened.length ? l.happened.replace("{count}", String(happened.length)) : l.nothingYet }),
6690
6700
  happened.map((item) => /* @__PURE__ */ jsx(Entry, { item }, item.id)),
@@ -6809,7 +6819,12 @@ function compactThreadActivity(events) {
6809
6819
  const count = Math.max(1, entry.recipients.length);
6810
6820
  entry.label = `Notified ${count} ${count === 1 ? "user" : "users"}`;
6811
6821
  } else if (STEP_LABELS[event.kind]) {
6812
- result.push({ event, label: STEP_LABELS[event.kind], recipients: [] });
6822
+ const documents = eventWaitingDocuments(event.detail);
6823
+ result.push({
6824
+ event,
6825
+ label: documents ? waitingForDocumentsText(documents.length) : STEP_LABELS[event.kind],
6826
+ recipients: []
6827
+ });
6813
6828
  } else if (["artifact_created", "artifact_edited", "document_added", "document_removed"].includes(
6814
6829
  event.kind
6815
6830
  )) {
@@ -10074,5 +10089,5 @@ function AgentCreateView({
10074
10089
  }
10075
10090
 
10076
10091
  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_ACTIVITY_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_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_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, TaskActivityTimeline, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, 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 };
10077
- //# sourceMappingURL=chunk-BMOL5DN6.js.map
10078
- //# sourceMappingURL=chunk-BMOL5DN6.js.map
10092
+ //# sourceMappingURL=chunk-I56ORHPY.js.map
10093
+ //# sourceMappingURL=chunk-I56ORHPY.js.map