@arbidocs/blocks 0.4.80 → 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 (65) hide show
  1. package/dist/agents/index.cjs +280 -280
  2. package/dist/agents/index.js +5 -5
  3. package/dist/agents/workflows/WorkflowRunner.d.ts +35 -3
  4. package/dist/agents/workflows/run.d.ts +10 -0
  5. package/dist/agents/workflows/types.d.ts +4 -2
  6. package/dist/chat/index.cjs +125 -125
  7. package/dist/chat/index.js +3 -3
  8. package/dist/{chunk-MFDGNUKX.cjs → chunk-B3WCKBJ7.cjs} +3 -3
  9. package/dist/{chunk-MFDGNUKX.cjs.map → chunk-B3WCKBJ7.cjs.map} +1 -1
  10. package/dist/{chunk-2FEQGDW2.cjs → chunk-BX7JWZWE.cjs} +97 -5
  11. package/dist/chunk-BX7JWZWE.cjs.map +1 -0
  12. package/dist/{chunk-P5ST47VY.js → chunk-DDF5GPIJ.js} +3 -3
  13. package/dist/{chunk-P5ST47VY.js.map → chunk-DDF5GPIJ.js.map} +1 -1
  14. package/dist/{chunk-PFA43QNX.js → chunk-EWSEQEPL.js} +3 -3
  15. package/dist/{chunk-PFA43QNX.js.map → chunk-EWSEQEPL.js.map} +1 -1
  16. package/dist/{chunk-LGDX34UR.cjs → chunk-F5WIETZY.cjs} +66 -51
  17. package/dist/chunk-F5WIETZY.cjs.map +1 -0
  18. package/dist/{chunk-E367ZUHE.js → chunk-GJV2G4FC.js} +3 -3
  19. package/dist/{chunk-E367ZUHE.js.map → chunk-GJV2G4FC.js.map} +1 -1
  20. package/dist/{chunk-A5WCK6ZG.js → chunk-I56ORHPY.js} +28 -13
  21. package/dist/chunk-I56ORHPY.js.map +1 -0
  22. package/dist/{chunk-LBE36YNZ.js → chunk-ICBAFX5B.js} +3 -3
  23. package/dist/{chunk-LBE36YNZ.js.map → chunk-ICBAFX5B.js.map} +1 -1
  24. package/dist/{chunk-C3DRLFU7.cjs → chunk-IF6VAYIA.cjs} +5 -5
  25. package/dist/{chunk-C3DRLFU7.cjs.map → chunk-IF6VAYIA.cjs.map} +1 -1
  26. package/dist/{chunk-O5NDG4EA.cjs → chunk-MP6FK43E.cjs} +3 -3
  27. package/dist/{chunk-O5NDG4EA.cjs.map → chunk-MP6FK43E.cjs.map} +1 -1
  28. package/dist/{chunk-QFA3NCWL.js → chunk-THCFZKTM.js} +95 -6
  29. package/dist/chunk-THCFZKTM.js.map +1 -0
  30. package/dist/{chunk-HUJLKDWX.cjs → chunk-XMBYDLZQ.cjs} +4 -4
  31. package/dist/{chunk-HUJLKDWX.cjs.map → chunk-XMBYDLZQ.cjs.map} +1 -1
  32. package/dist/{chunk-WDD255XQ.js → chunk-XQDM6T6C.js} +3 -3
  33. package/dist/{chunk-WDD255XQ.js.map → chunk-XQDM6T6C.js.map} +1 -1
  34. package/dist/{chunk-ZV3BKLFY.cjs → chunk-Z5VUZ6YD.cjs} +3 -3
  35. package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-Z5VUZ6YD.cjs.map} +1 -1
  36. package/dist/connect/index.cjs +154 -75
  37. package/dist/connect/index.cjs.map +1 -1
  38. package/dist/connect/index.js +106 -27
  39. package/dist/connect/index.js.map +1 -1
  40. package/dist/connection/ConnectedWorkflowRunner.d.ts +16 -5
  41. package/dist/facts/index.cjs +2 -2
  42. package/dist/facts/index.js +2 -2
  43. package/dist/files/index.cjs +2 -2
  44. package/dist/files/index.js +2 -2
  45. package/dist/home/index.cjs +18 -18
  46. package/dist/home/index.js +4 -4
  47. package/dist/index.cjs +503 -503
  48. package/dist/index.js +9 -9
  49. package/dist/retrieval/index.cjs +1 -1
  50. package/dist/retrieval/index.js +1 -1
  51. package/dist/settings/index.cjs +35 -35
  52. package/dist/settings/index.js +2 -2
  53. package/dist/shell/index.cjs +1 -1
  54. package/dist/shell/index.js +1 -1
  55. package/dist/studio/index.cjs +5 -5
  56. package/dist/studio/index.js +4 -4
  57. package/dist/workflow-canvas/index.cjs +48 -48
  58. package/dist/workflow-canvas/index.js +5 -5
  59. package/dist/workspaces/index.cjs +2 -2
  60. package/dist/workspaces/index.js +2 -2
  61. package/package.json +4 -4
  62. package/dist/chunk-2FEQGDW2.cjs.map +0 -1
  63. package/dist/chunk-A5WCK6ZG.js.map +0 -1
  64. package/dist/chunk-LGDX34UR.cjs.map +0 -1
  65. package/dist/chunk-QFA3NCWL.js.map +0 -1
@@ -1,23 +1,23 @@
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_LABEL_MAX_CURRENT, STEP_LABEL_MAX, STEP_EXTRA, STEP_PILL, stepPillTone } from './chunk-QFA3NCWL.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';
8
8
  import { SelectionBar, SelectionBarAction } from './chunk-NUNKSZKU.js';
9
9
  import { FilterInput } from './chunk-YU2KUMGE.js';
10
10
  import { GridView } from './chunk-ZPLG7QYF.js';
11
- import { QuickActionDialogHeader, AddFilesFirst, ScopePicker, StartTiles } from './chunk-P5ST47VY.js';
11
+ import { QuickActionDialogHeader, AddFilesFirst, ScopePicker, StartTiles } from './chunk-DDF5GPIJ.js';
12
12
  import { FoldSection } from './chunk-XD2M6LIG.js';
13
13
  import { ActionLink } from './chunk-S7PSMMRG.js';
14
+ import { useBlocksEnvironment } from './chunk-76JDDMSP.js';
14
15
  import { useMentionAutocomplete } from './chunk-HOXKR26S.js';
15
16
  import { toMessageMentions, extractMentions, MentionMenu } from './chunk-AA3PT6KR.js';
16
17
  import { useIsPhone } from './chunk-SLSBJRWW.js';
18
+ import { formatCount, initials } from './chunk-OXF2IFXG.js';
17
19
  import { ModalHeader } from './chunk-TX2ZICS7.js';
18
20
  import { testIdOr, prefixedTestId } from './chunk-7F6CBP3Z.js';
19
- import { useBlocksEnvironment } from './chunk-76JDDMSP.js';
20
- import { formatCount, initials } from './chunk-OXF2IFXG.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';
23
23
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -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(
@@ -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-A5WCK6ZG.js.map
10078
- //# sourceMappingURL=chunk-A5WCK6ZG.js.map
10092
+ //# sourceMappingURL=chunk-I56ORHPY.js.map
10093
+ //# sourceMappingURL=chunk-I56ORHPY.js.map