@arbidocs/blocks 0.4.77 → 0.4.78
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 +289 -277
- package/dist/agents/index.js +5 -5
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +9 -4
- package/dist/agents/workflows/StepBarFrame.d.ts +75 -0
- package/dist/agents/workflows/WorkflowRunner.d.ts +5 -1
- package/dist/agents/workflows/WorkflowStepBar.d.ts +9 -11
- package/dist/agents/workflows/index.d.ts +2 -0
- package/dist/agents/workflows/stepWindow.d.ts +59 -0
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/chat-page-types.d.ts +5 -0
- package/dist/chat/index.cjs +124 -124
- package/dist/chat/index.js +2 -2
- package/dist/{chunk-HEVVT6IT.js → chunk-5OC5CGYX.js} +128 -124
- package/dist/chunk-5OC5CGYX.js.map +1 -0
- package/dist/chunk-CWAZNXC5.js +441 -0
- package/dist/chunk-CWAZNXC5.js.map +1 -0
- package/dist/{chunk-NIP5BOP7.js → chunk-EWSEQEPL.js} +5 -4
- package/dist/chunk-EWSEQEPL.js.map +1 -0
- package/dist/{chunk-UEU23PTW.js → chunk-ICBAFX5B.js} +3 -3
- package/dist/{chunk-UEU23PTW.js.map → chunk-ICBAFX5B.js.map} +1 -1
- package/dist/{chunk-EKIUMNCN.cjs → chunk-IF6VAYIA.cjs} +5 -5
- package/dist/{chunk-EKIUMNCN.cjs.map → chunk-IF6VAYIA.cjs.map} +1 -1
- package/dist/chunk-MLAHDAN5.cjs +450 -0
- package/dist/chunk-MLAHDAN5.cjs.map +1 -0
- package/dist/{chunk-HOD6OM7L.cjs → chunk-MP6FK43E.cjs} +5 -4
- package/dist/chunk-MP6FK43E.cjs.map +1 -0
- package/dist/{chunk-JFUN4D7D.cjs → chunk-SSDISIDW.cjs} +152 -148
- package/dist/chunk-SSDISIDW.cjs.map +1 -0
- package/dist/{chunk-3XR3IEGU.cjs → chunk-VFIZYSZB.cjs} +573 -168
- package/dist/chunk-VFIZYSZB.cjs.map +1 -0
- package/dist/{chunk-34UW6XUQ.js → chunk-WXRCMIAE.js} +567 -172
- package/dist/chunk-WXRCMIAE.js.map +1 -0
- package/dist/{chunk-GTXOV7IJ.cjs → chunk-XMBYDLZQ.cjs} +4 -4
- package/dist/{chunk-GTXOV7IJ.cjs.map → chunk-XMBYDLZQ.cjs.map} +1 -1
- package/dist/{chunk-OEM5ARVM.js → chunk-XQDM6T6C.js} +3 -3
- package/dist/{chunk-OEM5ARVM.js.map → chunk-XQDM6T6C.js.map} +1 -1
- package/dist/connect/index.cjs +209 -53
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +190 -36
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedTagMatrix.d.ts +20 -0
- package/dist/connection/ConnectedWorkflowRunner.d.ts +13 -1
- package/dist/connection/WorkflowRunThread.d.ts +21 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +492 -447
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +3 -3
- package/dist/tags/TagMatrix.d.ts +64 -0
- package/dist/tags/index.d.ts +3 -0
- package/dist/tags/tagMatrixModel.d.ts +39 -0
- package/dist/workflow-canvas/index.cjs +48 -48
- package/dist/workflow-canvas/index.js +5 -5
- package/package.json +4 -4
- package/dist/chunk-34UW6XUQ.js.map +0 -1
- package/dist/chunk-3XR3IEGU.cjs.map +0 -1
- package/dist/chunk-HEVVT6IT.js.map +0 -1
- package/dist/chunk-HOD6OM7L.cjs.map +0 -1
- package/dist/chunk-JFUN4D7D.cjs.map +0 -1
- package/dist/chunk-NIP5BOP7.js.map +0 -1
package/dist/agents/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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-5OC5CGYX.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_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, WorkflowRunner, 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, 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-WXRCMIAE.js';
|
|
6
6
|
import '../chunk-4WWM3GQ5.js';
|
|
7
|
+
import '../chunk-DDF5GPIJ.js';
|
|
8
|
+
import '../chunk-XD2M6LIG.js';
|
|
7
9
|
import '../chunk-RFXJYIDV.js';
|
|
8
10
|
import '../chunk-DPLRHEJZ.js';
|
|
9
11
|
import '../chunk-EVUEIBNU.js';
|
|
10
12
|
import '../chunk-NUNKSZKU.js';
|
|
11
13
|
import '../chunk-YU2KUMGE.js';
|
|
12
14
|
import '../chunk-ZPLG7QYF.js';
|
|
13
|
-
import '../chunk-DDF5GPIJ.js';
|
|
14
|
-
import '../chunk-XD2M6LIG.js';
|
|
15
15
|
import '../chunk-S7PSMMRG.js';
|
|
16
|
-
import '../chunk-76JDDMSP.js';
|
|
17
16
|
import '../chunk-HOXKR26S.js';
|
|
18
17
|
import '../chunk-AA3PT6KR.js';
|
|
19
18
|
import '../chunk-SLSBJRWW.js';
|
|
20
19
|
import '../chunk-NPLYHR2E.js';
|
|
20
|
+
import '../chunk-76JDDMSP.js';
|
|
21
21
|
import '../chunk-OXF2IFXG.js';
|
|
22
22
|
import '../chunk-TX2ZICS7.js';
|
|
23
23
|
import '../chunk-7F6CBP3Z.js';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The top bar of a thread that runs a workflow: the
|
|
3
|
-
*
|
|
2
|
+
* The top bar of a thread that runs a workflow: where the run is — the previous, current and next
|
|
3
|
+
* steps by name, the rest behind ‹ › and "…", parallel steps as a "+N" chip, and every running step
|
|
4
|
+
* out of view as "Working: <title>" (`StepBarFrame`, the same model as the runner's stepper) — with
|
|
5
|
+
* everything that actually happened in the thread attached to the step it happened
|
|
4
6
|
* during — the assistant's turns, a draft sent back, people's messages and edits, notifications.
|
|
5
7
|
* What happened before the first step or after the last stays as ordinary entries at either end.
|
|
6
8
|
* Linked runs show too: a signal a step raised and the linked thread it started (after the step),
|
|
7
9
|
* and, for a thread a signal started, "Started by <step> in <thread>" (before the steps).
|
|
8
10
|
* A thread without a workflow shows `TaskFlow` instead.
|
|
9
11
|
*/
|
|
10
|
-
import type
|
|
12
|
+
import { type ReactNode } from 'react';
|
|
11
13
|
import { type WorkflowStepPhase } from '../workflows/run';
|
|
14
|
+
import { type StepBarLabels } from '../workflows/StepBarFrame';
|
|
12
15
|
import type { WorkflowStep, WorkflowStepState } from '../workflows/types';
|
|
13
16
|
import type { TaskFlowItem } from './TaskFlow';
|
|
14
17
|
/** An activity entry, with what the strip needs to place it. */
|
|
@@ -91,6 +94,8 @@ export interface WorkflowThreadStripProps {
|
|
|
91
94
|
/** Who a step is for, in words (`assigneeName`): shown on the step while it waits for them. */
|
|
92
95
|
assigneeOf?: (step: WorkflowStep) => string | undefined;
|
|
93
96
|
labels?: Partial<WorkflowThreadStripLabels>;
|
|
97
|
+
/** The bar's own wording (arrows, "…", "Working: <title>", status words). */
|
|
98
|
+
barLabels?: Partial<StepBarLabels>;
|
|
94
99
|
className?: string;
|
|
95
100
|
}
|
|
96
101
|
/** "Started by <step> in <thread>": a linked run's way back to the thread that started it. */
|
|
@@ -98,4 +103,4 @@ export declare function WorkflowThreadStartedBy({ origin, labels, }: {
|
|
|
98
103
|
origin: WorkflowThreadOrigin;
|
|
99
104
|
labels?: Partial<WorkflowThreadStripLabels>;
|
|
100
105
|
}): import("react").JSX.Element;
|
|
101
|
-
export declare function WorkflowThreadStrip({ steps, states, items, renderIcon, onSkip, renderStepAction, signals, startedBy, assigneeOf, labels, className, }: WorkflowThreadStripProps): import("react").JSX.Element;
|
|
106
|
+
export declare function WorkflowThreadStrip({ steps, states, items, renderIcon, onSkip, renderStepAction, signals, startedBy, assigneeOf, labels, barLabels, className, }: WorkflowThreadStripProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The frame both step bars share (`WorkflowStepBar` in a runner, `WorkflowThreadStrip` on a
|
|
3
|
+
* thread): `‹ … [previous] [CURRENT] [next] … ›`, from `stepWindow`. Each visible level shows one
|
|
4
|
+
* step by name (its pill is the host's), a parallel level adds a "+N" chip that lists the group,
|
|
5
|
+
* "…" on either side lists every step, and every running step the window does not show gets a
|
|
6
|
+
* "Working: <title>" pill at the end. The bar is a nav landmark; ←/→ (Home/End) move the window.
|
|
7
|
+
*/
|
|
8
|
+
import { type ReactNode } from 'react';
|
|
9
|
+
import type { WorkflowStepPhase } from './run';
|
|
10
|
+
import { type StepWindow, type StepWindowLevel, type StepWindowStep } from './stepWindow';
|
|
11
|
+
export declare function PhaseMark({ phase, icon }: {
|
|
12
|
+
phase: WorkflowStepPhase;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export interface StepBarLabels {
|
|
16
|
+
nav: string;
|
|
17
|
+
back: string;
|
|
18
|
+
forward: string;
|
|
19
|
+
/** The "…" before the window; `{count}` is replaced. */
|
|
20
|
+
hiddenBefore: string;
|
|
21
|
+
/** The "…" after the window; `{count}` is replaced. */
|
|
22
|
+
hiddenAfter: string;
|
|
23
|
+
/** The full list's heading; `{position}` and `{total}` are replaced. */
|
|
24
|
+
position: string;
|
|
25
|
+
/** A parallel group's chip; `{count}` is replaced. */
|
|
26
|
+
parallel: string;
|
|
27
|
+
inParallel: string;
|
|
28
|
+
/** A running step out of view; `{title}` is replaced. */
|
|
29
|
+
working: string;
|
|
30
|
+
/** Several more running out of view; `{count}` is replaced. */
|
|
31
|
+
moreWorking: string;
|
|
32
|
+
/** A step that waits for someone; `{name}` is replaced. */
|
|
33
|
+
waitingFor: string;
|
|
34
|
+
phases: Record<WorkflowStepPhase, string>;
|
|
35
|
+
}
|
|
36
|
+
export declare const DEFAULT_STEP_BAR_LABELS: StepBarLabels;
|
|
37
|
+
/** A pill's colours: the status shows in the text colour as well as the icon. */
|
|
38
|
+
export declare function stepPillTone(phase: WorkflowStepPhase, current: boolean): string;
|
|
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`). */
|
|
41
|
+
export declare const STEP_LABEL = "min-w-[2.5rem] truncate";
|
|
42
|
+
/** 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";
|
|
44
|
+
/** A step in the frame's lists: its title, for naming it. */
|
|
45
|
+
export interface StepBarStep extends StepWindowStep {
|
|
46
|
+
title: string;
|
|
47
|
+
}
|
|
48
|
+
export interface StepBarFrameProps<T extends StepBarStep> {
|
|
49
|
+
levels: T[][];
|
|
50
|
+
phaseOf: (id: string) => WorkflowStepPhase;
|
|
51
|
+
/** The step in view (none = where the run is). */
|
|
52
|
+
current?: string | null;
|
|
53
|
+
/** Go to a step: from a group, the full list or a "Working" pill. */
|
|
54
|
+
onSelect: (id: string) => void;
|
|
55
|
+
/** The pill of a level's primary step (a button or a popover trigger). */
|
|
56
|
+
renderStep: (step: T, level: StepWindowLevel<T>, win: StepWindow<T>, narrow: boolean) => ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* What the step in view waits on ("Waiting for …"): on its pill when wide, on a line of its own
|
|
59
|
+
* when narrow (where the pill has room for its name only).
|
|
60
|
+
*/
|
|
61
|
+
noteOf?: (id: string) => string | undefined;
|
|
62
|
+
/** What follows a level's pill (signals it raised…). */
|
|
63
|
+
renderAfter?: (level: StepWindowLevel<T>) => ReactNode;
|
|
64
|
+
/** Before the steps / after them: shown while the window is at that end. */
|
|
65
|
+
leading?: ReactNode;
|
|
66
|
+
trailing?: ReactNode;
|
|
67
|
+
/** Steps that cannot be gone to (the completion marker). */
|
|
68
|
+
isSelectable?: (id: string) => boolean;
|
|
69
|
+
icon?: (step: T) => ReactNode;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
labels?: Partial<StepBarLabels>;
|
|
72
|
+
tid: (suffix: string) => string;
|
|
73
|
+
className?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare function StepBarFrame<T extends StepBarStep>({ levels, phaseOf, current, onSelect, renderStep, noteOf, renderAfter, leading, trailing, isSelectable, icon, disabled, labels, tid, className, }: StepBarFrameProps<T>): import("react").JSX.Element;
|
|
@@ -76,6 +76,10 @@ export interface WorkflowRunnerProps extends Pick<SchemaFormProps, 'renderScope'
|
|
|
76
76
|
renderStepNote?: (step: WorkflowStep, run: WorkflowRunView) => ReactNode;
|
|
77
77
|
/** Replaces the finish screen. */
|
|
78
78
|
renderComplete?: (run: WorkflowRunView) => ReactNode;
|
|
79
|
+
/** Leave out the stepper (the host shows it elsewhere, e.g. above the run's thread). */
|
|
80
|
+
hideStepBar?: boolean;
|
|
81
|
+
/** A narrow panel beside a thread: tighter cards, the full width they are given. */
|
|
82
|
+
compact?: boolean;
|
|
79
83
|
/** Where the runner hands off to the host: documents, the sign flow, mail, a review grid. */
|
|
80
84
|
actions?: WorkflowRunnerActions;
|
|
81
85
|
/** A document's name by id (chips show it instead of the id). */
|
|
@@ -90,6 +94,6 @@ export interface WorkflowRunnerProps extends Pick<SchemaFormProps, 'renderScope'
|
|
|
90
94
|
testIdPrefix?: string;
|
|
91
95
|
className?: string;
|
|
92
96
|
}
|
|
93
|
-
export declare function WorkflowRunner({ workflow, run, renderAgentOutput, renderReview, onUpload, uploading, files, renderUpload, renderStepNote, renderComplete, renderScope, renderDocuments, renderIcon, people, actions, nameOfDoc, labels, partsLabels, testIdPrefix, className, }: WorkflowRunnerProps): import("react").JSX.Element;
|
|
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;
|
|
94
98
|
/** m:ss (h:mm:ss past an hour). */
|
|
95
99
|
export declare function formatElapsed(ms: number): string;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The run's stepper:
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* The run's stepper: where you are, what is done, what is next and what is still running. It
|
|
3
|
+
* names the previous, current and next steps of the graph (`StepBarFrame` over `stepLevels`); the
|
|
4
|
+
* rest is a click away (‹ ›, "…"), a parallel level is one step plus a "+N" chip, and a running
|
|
5
|
+
* step out of view shows as "Working: <title>". The run's completion is the last step.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import type { WorkflowStepPhase } from './run';
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
9
8
|
import type { WorkflowRunView } from './useWorkflowView';
|
|
10
9
|
import type { WorkflowStep } from './types';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
icon?: ReactNode;
|
|
14
|
-
}): import("react").JSX.Element | null;
|
|
10
|
+
import { PhaseMark, type StepBarLabels } from './StepBarFrame';
|
|
11
|
+
export { PhaseMark };
|
|
15
12
|
export interface WorkflowStepBarProps {
|
|
16
13
|
run: WorkflowRunView;
|
|
17
14
|
levels: WorkflowStep[][];
|
|
@@ -19,5 +16,6 @@ export interface WorkflowStepBarProps {
|
|
|
19
16
|
doneIcon?: ReactNode;
|
|
20
17
|
icon: (key?: string) => ReactNode;
|
|
21
18
|
tid: (suffix: string) => string;
|
|
19
|
+
labels?: Partial<StepBarLabels>;
|
|
22
20
|
}
|
|
23
|
-
export declare function WorkflowStepBar({ run, levels, doneTitle, doneIcon, icon, tid, }: WorkflowStepBarProps): import("react").JSX.Element;
|
|
21
|
+
export declare function WorkflowStepBar({ run, levels, doneTitle, doneIcon, icon, tid, labels, }: WorkflowStepBarProps): import("react").JSX.Element;
|
|
@@ -13,4 +13,6 @@ export { workflowToSkillMarkdown, workflowFromSkillMarkdown, skillSlug } from '.
|
|
|
13
13
|
export { useWorkflowView, type UseWorkflowViewOptions, type WorkflowRunView, } from './useWorkflowView';
|
|
14
14
|
export { useWorkflowPreview, type UseWorkflowPreviewOptions } from './useWorkflowPreview';
|
|
15
15
|
export { WorkflowRunner, DEFAULT_WORKFLOW_RUNNER_LABELS, type WorkflowRunnerProps, type WorkflowRunnerLabels, type WorkflowRunnerFile, } from './WorkflowRunner';
|
|
16
|
+
export { stepWindow, activeStepId, type StepWindow, type StepWindowLevel, type StepWindowOptions, type StepWindowStep, } from './stepWindow';
|
|
17
|
+
export { DEFAULT_STEP_BAR_LABELS, type StepBarLabels } from './StepBarFrame';
|
|
16
18
|
export { ActionStepBody, ApprovalEvidence, AssigneeLine, SendBackControl, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, type WorkflowRunnerActions, type WorkflowStepPartsLabels, } from './StepParts';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a step bar shows of a run: a window of a few levels of the graph (`stepLevels`) around the
|
|
3
|
+
* step in view — previous, current, next — with how many steps it hides on either side, each
|
|
4
|
+
* parallel level collapsed to one primary step plus the rest, and the running steps the window
|
|
5
|
+
* does not show (so work that is still going on is never out of sight). Pure: both bars
|
|
6
|
+
* (`WorkflowStepBar` in a runner, `WorkflowThreadStrip` on a thread) render from it.
|
|
7
|
+
*/
|
|
8
|
+
import type { WorkflowStepPhase } from './run';
|
|
9
|
+
/** A step as far as the window is concerned. */
|
|
10
|
+
export interface StepWindowStep {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
/** One level of the graph: a step, or steps that run side by side (a parallel group). */
|
|
14
|
+
export interface StepWindowLevel<T extends StepWindowStep> {
|
|
15
|
+
index: number;
|
|
16
|
+
steps: T[];
|
|
17
|
+
/** The step the bar shows for the level: the running one, else the one in view, else … */
|
|
18
|
+
primary: T;
|
|
19
|
+
/** The level's other steps, behind a "+N" chip. */
|
|
20
|
+
others: T[];
|
|
21
|
+
/** Where the level stands relative to the step in view. */
|
|
22
|
+
role: 'previous' | 'current' | 'next' | 'other';
|
|
23
|
+
}
|
|
24
|
+
export interface StepWindow<T extends StepWindowStep> {
|
|
25
|
+
levels: StepWindowLevel<T>[];
|
|
26
|
+
/** The levels in the window, in order. */
|
|
27
|
+
visible: StepWindowLevel<T>[];
|
|
28
|
+
/** The window's first level and the one after its last. */
|
|
29
|
+
start: number;
|
|
30
|
+
end: number;
|
|
31
|
+
/** The level of the step in view. */
|
|
32
|
+
currentLevel: number;
|
|
33
|
+
/** Steps in the levels before and after the window. */
|
|
34
|
+
hiddenBefore: number;
|
|
35
|
+
hiddenAfter: number;
|
|
36
|
+
canBack: boolean;
|
|
37
|
+
canForward: boolean;
|
|
38
|
+
/** Running steps the bar does not show: outside the window, or collapsed in a group. */
|
|
39
|
+
runningHidden: T[];
|
|
40
|
+
/** 1-based position of the step in view among all steps, and how many there are. */
|
|
41
|
+
position: number;
|
|
42
|
+
total: number;
|
|
43
|
+
}
|
|
44
|
+
export interface StepWindowOptions<T extends StepWindowStep> {
|
|
45
|
+
levels: T[][];
|
|
46
|
+
phaseOf: (id: string) => WorkflowStepPhase;
|
|
47
|
+
/** The step in view; none (or unknown) = the step the run is at (`activeStepId`). */
|
|
48
|
+
current?: string | null;
|
|
49
|
+
/** The window's first level, as the arrows moved it; none = around the step in view. */
|
|
50
|
+
start?: number | null;
|
|
51
|
+
/** How many levels the window shows (3: previous, current, next). */
|
|
52
|
+
span?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The step a run is at, when nothing else says which step is in view: a running one, else one
|
|
56
|
+
* waiting on someone, else one that failed, else one ready to do, else the last one.
|
|
57
|
+
*/
|
|
58
|
+
export declare function activeStepId<T extends StepWindowStep>(levels: T[][], phaseOf: (id: string) => WorkflowStepPhase): string | undefined;
|
|
59
|
+
export declare function stepWindow<T extends StepWindowStep>({ levels: raw, phaseOf, current, start: requested, span, }: StepWindowOptions<T>): StepWindow<T>;
|
package/dist/chat/ChatPage.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ import { type ChatPageProps } from './chat-page-types';
|
|
|
16
16
|
* With `surface="page"` it claims the page-chat slot, so `useChatSurface()` tells the host's dock
|
|
17
17
|
* to yield: one chat on screen, never two.
|
|
18
18
|
*/
|
|
19
|
-
export declare function ChatPage({ chat, surface, header, headerActions, aside, prompts, documentsRequired, emptyTitle, emptyDescription, identity, renderContent, onOpenCitation, workflowStepTitle, targetMessageId, asideBreakpoint, fillHeight, minHeight, compactHeader, accept, labels, className, testIds, }: ChatPageProps): import("react").JSX.Element;
|
|
19
|
+
export declare function ChatPage({ chat, surface, header, headerActions, aside, prompts, documentsRequired, emptyTitle, emptyDescription, identity, renderContent, onOpenCitation, workflowStepTitle, singleThread, targetMessageId, asideBreakpoint, fillHeight, minHeight, compactHeader, accept, labels, className, testIds, }: ChatPageProps): import("react").JSX.Element;
|
|
@@ -192,6 +192,11 @@ export interface ChatPageProps {
|
|
|
192
192
|
fillHeight?: boolean;
|
|
193
193
|
/** Smallest height `fillHeight` gives, in px. Default 360. */
|
|
194
194
|
minHeight?: number;
|
|
195
|
+
/**
|
|
196
|
+
* One conversation only (e.g. a workflow run's thread): no conversation list, select or New
|
|
197
|
+
* chat; the host picks the thread (`chat.selectThread`).
|
|
198
|
+
*/
|
|
199
|
+
singleThread?: boolean;
|
|
195
200
|
/** Drop the heading from the header bar (the host's page header already names the chat). */
|
|
196
201
|
compactHeader?: boolean;
|
|
197
202
|
/** Accepted upload types for the file picker. */
|