@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.
- package/dist/agents/index.cjs +280 -280
- package/dist/agents/index.js +5 -5
- package/dist/agents/workflows/WorkflowRunner.d.ts +35 -3
- package/dist/agents/workflows/run.d.ts +10 -0
- package/dist/agents/workflows/types.d.ts +4 -2
- package/dist/chat/index.cjs +125 -125
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-MFDGNUKX.cjs → chunk-B3WCKBJ7.cjs} +3 -3
- package/dist/{chunk-MFDGNUKX.cjs.map → chunk-B3WCKBJ7.cjs.map} +1 -1
- package/dist/{chunk-2FEQGDW2.cjs → chunk-BX7JWZWE.cjs} +97 -5
- package/dist/chunk-BX7JWZWE.cjs.map +1 -0
- package/dist/{chunk-P5ST47VY.js → chunk-DDF5GPIJ.js} +3 -3
- package/dist/{chunk-P5ST47VY.js.map → chunk-DDF5GPIJ.js.map} +1 -1
- package/dist/{chunk-PFA43QNX.js → chunk-EWSEQEPL.js} +3 -3
- package/dist/{chunk-PFA43QNX.js.map → chunk-EWSEQEPL.js.map} +1 -1
- package/dist/{chunk-LGDX34UR.cjs → chunk-F5WIETZY.cjs} +66 -51
- package/dist/chunk-F5WIETZY.cjs.map +1 -0
- package/dist/{chunk-E367ZUHE.js → chunk-GJV2G4FC.js} +3 -3
- package/dist/{chunk-E367ZUHE.js.map → chunk-GJV2G4FC.js.map} +1 -1
- package/dist/{chunk-A5WCK6ZG.js → chunk-I56ORHPY.js} +28 -13
- package/dist/chunk-I56ORHPY.js.map +1 -0
- package/dist/{chunk-LBE36YNZ.js → chunk-ICBAFX5B.js} +3 -3
- package/dist/{chunk-LBE36YNZ.js.map → chunk-ICBAFX5B.js.map} +1 -1
- package/dist/{chunk-C3DRLFU7.cjs → chunk-IF6VAYIA.cjs} +5 -5
- package/dist/{chunk-C3DRLFU7.cjs.map → chunk-IF6VAYIA.cjs.map} +1 -1
- package/dist/{chunk-O5NDG4EA.cjs → chunk-MP6FK43E.cjs} +3 -3
- package/dist/{chunk-O5NDG4EA.cjs.map → chunk-MP6FK43E.cjs.map} +1 -1
- package/dist/{chunk-QFA3NCWL.js → chunk-THCFZKTM.js} +95 -6
- package/dist/chunk-THCFZKTM.js.map +1 -0
- package/dist/{chunk-HUJLKDWX.cjs → chunk-XMBYDLZQ.cjs} +4 -4
- package/dist/{chunk-HUJLKDWX.cjs.map → chunk-XMBYDLZQ.cjs.map} +1 -1
- package/dist/{chunk-WDD255XQ.js → chunk-XQDM6T6C.js} +3 -3
- package/dist/{chunk-WDD255XQ.js.map → chunk-XQDM6T6C.js.map} +1 -1
- package/dist/{chunk-ZV3BKLFY.cjs → chunk-Z5VUZ6YD.cjs} +3 -3
- package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-Z5VUZ6YD.cjs.map} +1 -1
- package/dist/connect/index.cjs +154 -75
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +106 -27
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedWorkflowRunner.d.ts +16 -5
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +18 -18
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +503 -503
- package/dist/index.js +9 -9
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +2 -2
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +5 -5
- package/dist/studio/index.js +4 -4
- package/dist/workflow-canvas/index.cjs +48 -48
- package/dist/workflow-canvas/index.js +5 -5
- package/dist/workspaces/index.cjs +2 -2
- package/dist/workspaces/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-2FEQGDW2.cjs.map +0 -1
- package/dist/chunk-A5WCK6ZG.js.map +0 -1
- package/dist/chunk-LGDX34UR.cjs.map +0 -1
- package/dist/chunk-QFA3NCWL.js.map +0 -1
package/dist/agents/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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';
|
|
@@ -10,17 +10,17 @@ import '../chunk-EVUEIBNU.js';
|
|
|
10
10
|
import '../chunk-NUNKSZKU.js';
|
|
11
11
|
import '../chunk-YU2KUMGE.js';
|
|
12
12
|
import '../chunk-ZPLG7QYF.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-DDF5GPIJ.js';
|
|
14
14
|
import '../chunk-XD2M6LIG.js';
|
|
15
15
|
import '../chunk-S7PSMMRG.js';
|
|
16
|
+
import '../chunk-76JDDMSP.js';
|
|
16
17
|
import '../chunk-HOXKR26S.js';
|
|
17
18
|
import '../chunk-AA3PT6KR.js';
|
|
18
19
|
import '../chunk-SLSBJRWW.js';
|
|
19
20
|
import '../chunk-NPLYHR2E.js';
|
|
21
|
+
import '../chunk-OXF2IFXG.js';
|
|
20
22
|
import '../chunk-TX2ZICS7.js';
|
|
21
23
|
import '../chunk-7F6CBP3Z.js';
|
|
22
|
-
import '../chunk-76JDDMSP.js';
|
|
23
|
-
import '../chunk-OXF2IFXG.js';
|
|
24
24
|
import '../chunk-VUNV25KB.js';
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -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
|
-
/**
|
|
57
|
-
|
|
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
|
|
@@ -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
|
|
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
|
|
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>;
|