@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,8 +1,8 @@
1
1
  "use client";
2
- 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, 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 } from '../chunk-BMOL5DN6.js';
2
+ 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, 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 } from '../chunk-I56ORHPY.js';
3
3
  import '../chunk-CKB64Z4R.js';
4
4
  import '../chunk-P6GHJSLR.js';
5
- export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-6GXF62XN.js';
5
+ export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-THCFZKTM.js';
6
6
  import '../chunk-4WWM3GQ5.js';
7
7
  import '../chunk-RFXJYIDV.js';
8
8
  import '../chunk-DPLRHEJZ.js';
@@ -14,12 +14,12 @@ import '../chunk-DDF5GPIJ.js';
14
14
  import '../chunk-XD2M6LIG.js';
15
15
  import '../chunk-S7PSMMRG.js';
16
16
  import '../chunk-76JDDMSP.js';
17
- import '../chunk-TX2ZICS7.js';
18
17
  import '../chunk-HOXKR26S.js';
19
18
  import '../chunk-AA3PT6KR.js';
20
19
  import '../chunk-SLSBJRWW.js';
21
20
  import '../chunk-NPLYHR2E.js';
22
21
  import '../chunk-OXF2IFXG.js';
22
+ import '../chunk-TX2ZICS7.js';
23
23
  import '../chunk-7F6CBP3Z.js';
24
24
  import '../chunk-VUNV25KB.js';
25
25
  //# sourceMappingURL=index.js.map
@@ -37,10 +37,16 @@ export declare const DEFAULT_STEP_BAR_LABELS: StepBarLabels;
37
37
  /** A pill's colours: the status shows in the text colour as well as the icon. */
38
38
  export declare function stepPillTone(phase: WorkflowStepPhase, current: boolean): string;
39
39
  export declare const STEP_PILL = "flex min-w-0 items-center gap-1.5 whitespace-nowrap rounded-full border px-2.5 py-1 text-xs font-medium transition-colors";
40
- /** A label is the full title, cut with an ellipsis only when very long (in full in `title`). */
40
+ /**
41
+ * A label is the full title, cut with an ellipsis only when very long (in full in `title`) or when
42
+ * the bar is out of room — connectors give up their room first. Its widest is `LABEL_MAX_PX`
43
+ * (20rem); the step in view's is wider.
44
+ */
41
45
  export declare const STEP_LABEL = "min-w-[2.5rem] truncate";
46
+ export declare const STEP_LABEL_MAX = "max-w-[20rem]";
47
+ export declare const STEP_LABEL_MAX_CURRENT = "max-w-[26rem]";
42
48
  /** What follows a name on its pill ("Waiting for …"): cut before the name is. */
43
- export declare const STEP_EXTRA = "min-w-0 shrink-[6] truncate font-normal opacity-80";
49
+ export declare const STEP_EXTRA = "min-w-[3rem] shrink-[1000] truncate font-normal opacity-80";
44
50
  /** A step in the frame's lists: its title, for naming it. */
45
51
  export interface StepBarStep extends StepWindowStep {
46
52
  title: string;
@@ -45,6 +45,25 @@ export interface WorkflowRunnerLabels {
45
45
  fileFailed: string;
46
46
  /** Continue on an upload step while its files are read; `{current}` and `{count}` are replaced. */
47
47
  readingFiles: string;
48
+ /** Continue on an upload step while its files are sent; `{count}` is replaced (more than one). */
49
+ uploadingFiles: string;
50
+ uploadingFile: string;
51
+ /** Continue while the host is uploading files it does not list one by one. */
52
+ uploadingAny: string;
53
+ /** Continue on an upload step with files that did not upload; `{count}` is replaced (more than one). */
54
+ uploadsFailed: string;
55
+ uploadFailed: string;
56
+ /** A file's row while it is sent, and when it did not upload (its error follows). */
57
+ fileUploading: string;
58
+ fileUploadFailed: string;
59
+ retryUpload: string;
60
+ removeUpload: string;
61
+ /**
62
+ * An agent step waiting for documents to finish processing before its turn starts; `{count}` is
63
+ * replaced (more than one).
64
+ */
65
+ waitingForDocuments: string;
66
+ waitingForDocument: string;
48
67
  /** The primary button on an email step waiting to be sent. */
49
68
  markSent: string;
50
69
  }
@@ -53,8 +72,13 @@ export declare const DEFAULT_WORKFLOW_RUNNER_LABELS: WorkflowRunnerLabels;
53
72
  export interface WorkflowRunnerFile {
54
73
  id: string;
55
74
  name: string;
56
- /** Where its processing is; absent = not known (shown as is). */
57
- status?: 'processing' | 'ready' | 'failed';
75
+ /**
76
+ * Where it is: still being sent (`uploading`; no document yet), not sent (`upload-failed`, with
77
+ * `error`), being read (`processing`), `ready`, or not readable (`failed`). Absent = not known.
78
+ */
79
+ status?: 'uploading' | 'upload-failed' | 'processing' | 'ready' | 'failed';
80
+ /** Why it did not upload (`upload-failed`). */
81
+ error?: string;
58
82
  /** The upload step it was added on in this run (listed first there, and holds it while read). */
59
83
  addedFor?: string;
60
84
  }
@@ -67,9 +91,17 @@ export interface WorkflowRunnerProps extends Pick<SchemaFormProps, 'renderScope'
67
91
  renderReview?: (step: WorkflowReviewStep) => ReactNode;
68
92
  /** Upload step: the host performs the upload into the run's workspace. */
69
93
  onUpload?: (files: File[], step: WorkflowUploadStep) => void | Promise<void>;
94
+ /**
95
+ * The host is uploading files (the step cannot be completed until they are back). A host that
96
+ * lists them one by one (`files` with `uploading` / `upload-failed`) need not set it.
97
+ */
70
98
  uploading?: boolean;
71
99
  /** What the run's workspace holds, listed on the upload step. */
72
100
  files?: WorkflowRunnerFile[];
101
+ /** A file that did not upload: send it again. Absent: no retry. */
102
+ onRetryUpload?: (file: WorkflowRunnerFile) => void;
103
+ /** A file that did not upload: drop it, so the step can go on without it. */
104
+ onRemoveUpload?: (file: WorkflowRunnerFile) => void;
73
105
  /** Replaces an upload step's body. */
74
106
  renderUpload?: (step: WorkflowUploadStep) => ReactNode;
75
107
  /** Extra content under a step's body (e.g. what a commit created). */
@@ -94,6 +126,6 @@ export interface WorkflowRunnerProps extends Pick<SchemaFormProps, 'renderScope'
94
126
  testIdPrefix?: string;
95
127
  className?: string;
96
128
  }
97
- export declare function WorkflowRunner({ workflow, run, renderAgentOutput, renderReview, onUpload, uploading, files, renderUpload, renderStepNote, renderComplete, renderScope, renderDocuments, renderIcon, people, actions, nameOfDoc, hideStepBar, compact, labels, partsLabels, testIdPrefix, className, }: WorkflowRunnerProps): import("react").JSX.Element;
129
+ export declare function WorkflowRunner({ workflow, run, renderAgentOutput, renderReview, onUpload, uploading, files, onRetryUpload, onRemoveUpload, renderUpload, renderStepNote, renderComplete, renderScope, renderDocuments, renderIcon, people, actions, nameOfDoc, hideStepBar, compact, labels, partsLabels, testIdPrefix, className, }: WorkflowRunnerProps): import("react").JSX.Element;
98
130
  /** m:ss (h:mm:ss past an hour). */
99
131
  export declare function formatElapsed(ms: number): string;
@@ -48,6 +48,16 @@ export interface WorkflowActivityEvent {
48
48
  actor_ext_id?: string | null;
49
49
  created_at?: string;
50
50
  }
51
+ /**
52
+ * The documents (ids) a `waiting` step waits on to finish processing before its turn starts
53
+ * (`waiting.documents`, from `step_waiting` and then `step_progress` as the set shrinks); none for
54
+ * any other step. Action steps wait on people, not documents.
55
+ */
56
+ export declare function waitingDocuments(state: WorkflowStepState | undefined): string[];
57
+ /** The documents a `step_waiting` / `step_progress` event names, if it names any. */
58
+ export declare function eventWaitingDocuments(detail: Record<string, unknown> | null | undefined): string[] | undefined;
59
+ /** "Waiting for 3 documents to finish processing" (one: "1 document"). */
60
+ export declare function waitingForDocumentsText(count: number): string;
51
61
  /**
52
62
  * Each step's state from the thread's activity log (oldest first): its latest step event wins.
53
63
  * A send-back reopens the steps it lists as pending (only the one it went `to` is `sentBack`); a
@@ -6,6 +6,13 @@
6
6
  * (`WorkflowStepBar` in a runner, `WorkflowThreadStrip` on a thread) render from it.
7
7
  */
8
8
  import type { WorkflowStepPhase } from './run';
9
+ /** A step label's widest before it is cut (px): 20rem; the step in view's is wider (26rem). */
10
+ export declare const LABEL_MAX_PX = 320;
11
+ /**
12
+ * The room a level needs to show its name uncut (up to `LABEL_MAX_PX`): a bar shows a flow whole
13
+ * only when every level has this, so names are never squeezed for the sake of showing it all.
14
+ */
15
+ export declare function levelRoomPx(titles: string[]): number;
9
16
  /** A step as far as the window is concerned. */
10
17
  export interface StepWindowStep {
11
18
  id: string;
@@ -284,8 +284,10 @@ export interface WorkflowCompletion {
284
284
  * `skipped`, or `failed` (it can be retried or skipped).
285
285
  */
286
286
  export type WorkflowStepStatus = 'pending' | 'running' | 'waiting' | 'done' | 'skipped' | 'failed';
287
- /** What an action step waits on (ids only), as its latest event says. */
287
+ /** What a waiting step waits on (ids only), as its latest event says. */
288
288
  export interface WorkflowActionWaiting {
289
+ /** An agent step: the documents to finish processing before its turn starts. */
290
+ documents?: string[];
289
291
  /** A signature: the document and version to sign, who signs, who has signed. */
290
292
  doc_ext_id?: string;
291
293
  version?: number;
@@ -318,7 +320,7 @@ export interface WorkflowStepState {
318
320
  startedAt?: string;
319
321
  /** An action step's type, once it has started. */
320
322
  action?: WorkflowActionType;
321
- /** What a `waiting` action step waits on. */
323
+ /** What a `waiting` step waits on (an action step's people, an agent step's documents). */
322
324
  waiting?: WorkflowActionWaiting;
323
325
  /** What a done action step produced (ids: the signed version, the draft, the reviewed labels). */
324
326
  output?: Record<string, unknown>;
@@ -2,8 +2,8 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkADOKTJHV_cjs = require('./chunk-ADOKTJHV.cjs');
5
- var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
6
5
  var chunkKDG6FER6_cjs = require('./chunk-KDG6FER6.cjs');
6
+ var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
7
7
  var chunkMHVNT4J3_cjs = require('./chunk-MHVNT4J3.cjs');
8
8
  var react = require('react');
9
9
  var lucideReact = require('lucide-react');
@@ -1455,5 +1455,5 @@ exports.toActiveSessionViews = toActiveSessionViews;
1455
1455
  exports.toDeleteBlockerViews = toDeleteBlockerViews;
1456
1456
  exports.toLogoutSessionViews = toLogoutSessionViews;
1457
1457
  exports.toNotificationCategories = toNotificationCategories;
1458
- //# sourceMappingURL=chunk-5XVWGJ2H.cjs.map
1459
- //# sourceMappingURL=chunk-5XVWGJ2H.cjs.map
1458
+ //# sourceMappingURL=chunk-B3WCKBJ7.cjs.map
1459
+ //# sourceMappingURL=chunk-B3WCKBJ7.cjs.map