@arbidocs/blocks 0.4.122 → 0.4.123

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 (113) hide show
  1. package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs → StreamedArtifactEditor-DNBDUNP2.cjs} +5 -5
  2. package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs.map → StreamedArtifactEditor-DNBDUNP2.cjs.map} +1 -1
  3. package/dist/{StreamedArtifactEditor-HTNPG4NB.js → StreamedArtifactEditor-WDHPTWX7.js} +3 -3
  4. package/dist/{StreamedArtifactEditor-HTNPG4NB.js.map → StreamedArtifactEditor-WDHPTWX7.js.map} +1 -1
  5. package/dist/agents/index.cjs +388 -324
  6. package/dist/agents/index.js +7 -7
  7. package/dist/agents/tasks/ConversationListView.d.ts +2 -1
  8. package/dist/agents/tasks/ConversationTurnSpeaker.d.ts +3 -1
  9. package/dist/agents/tasks/TaskFlow.d.ts +17 -0
  10. package/dist/agents/tasks/ThreadLauncher.d.ts +51 -0
  11. package/dist/agents/tasks/ThreadStatusLine.d.ts +33 -0
  12. package/dist/agents/tasks/WorkflowRunStatus.d.ts +32 -0
  13. package/dist/agents/tasks/WorkflowThreadStrip.d.ts +29 -3
  14. package/dist/agents/tasks/compact-thread-activity.d.ts +5 -2
  15. package/dist/agents/tasks/index.d.ts +3 -0
  16. package/dist/agents/workflows/StepBarFrame.d.ts +18 -17
  17. package/dist/agents/workflows/StepChip.d.ts +37 -0
  18. package/dist/agents/workflows/StepDocuments.d.ts +64 -0
  19. package/dist/agents/workflows/WorkflowStepBar.d.ts +1 -2
  20. package/dist/agents/workflows/index.d.ts +2 -0
  21. package/dist/agents/workflows/stepKinds.d.ts +24 -0
  22. package/dist/artifacts/VersionTimeline.d.ts +7 -0
  23. package/dist/artifacts/index.cjs +21 -21
  24. package/dist/artifacts/index.js +1 -1
  25. package/dist/chat/ChatPage.d.ts +1 -1
  26. package/dist/chat/DraftingDocChip.d.ts +22 -0
  27. package/dist/chat/WorkflowStepChip.d.ts +23 -5
  28. package/dist/chat/chat-page-types.d.ts +18 -2
  29. package/dist/chat/flashMessage.d.ts +6 -0
  30. package/dist/chat/index.cjs +144 -131
  31. package/dist/chat/index.d.ts +2 -0
  32. package/dist/chat/index.js +4 -3
  33. package/dist/{chunk-UDK553WP.cjs → chunk-4VCKYR4D.cjs} +4 -4
  34. package/dist/{chunk-UDK553WP.cjs.map → chunk-4VCKYR4D.cjs.map} +1 -1
  35. package/dist/{chunk-XSUOEJB3.cjs → chunk-7FZWNDPU.cjs} +162 -836
  36. package/dist/chunk-7FZWNDPU.cjs.map +1 -0
  37. package/dist/chunk-7HAM7Y5U.js +907 -0
  38. package/dist/chunk-7HAM7Y5U.js.map +1 -0
  39. package/dist/{chunk-TCNYKDYE.js → chunk-CXLVI3SB.js} +73 -40
  40. package/dist/chunk-CXLVI3SB.js.map +1 -0
  41. package/dist/chunk-HM23LXUP.cjs +976 -0
  42. package/dist/chunk-HM23LXUP.cjs.map +1 -0
  43. package/dist/{chunk-WN64RF46.js → chunk-HQH35JWC.js} +3 -3
  44. package/dist/{chunk-WN64RF46.js.map → chunk-HQH35JWC.js.map} +1 -1
  45. package/dist/{chunk-AY32GGKU.js → chunk-MD7RVFKA.js} +131 -751
  46. package/dist/chunk-MD7RVFKA.js.map +1 -0
  47. package/dist/{chunk-65HZ36MY.js → chunk-OTDGTBAS.js} +20 -3
  48. package/dist/chunk-OTDGTBAS.js.map +1 -0
  49. package/dist/{chunk-ZP4IFW2E.js → chunk-RARHNGKM.js} +731 -183
  50. package/dist/chunk-RARHNGKM.js.map +1 -0
  51. package/dist/{chunk-XFZ7HNPG.js → chunk-SOZNA52K.js} +3 -3
  52. package/dist/{chunk-XFZ7HNPG.js.map → chunk-SOZNA52K.js.map} +1 -1
  53. package/dist/{chunk-US5ASM4G.cjs → chunk-U2F4SSJR.cjs} +5 -5
  54. package/dist/{chunk-US5ASM4G.cjs.map → chunk-U2F4SSJR.cjs.map} +1 -1
  55. package/dist/{chunk-Z2NSU7D5.cjs → chunk-V4V2CVNE.cjs} +768 -214
  56. package/dist/chunk-V4V2CVNE.cjs.map +1 -0
  57. package/dist/{chunk-CK4C3IQR.cjs → chunk-VMZXFYHK.cjs} +47 -6
  58. package/dist/chunk-VMZXFYHK.cjs.map +1 -0
  59. package/dist/{chunk-SVJQWLOF.cjs → chunk-W4GXDARU.cjs} +20 -3
  60. package/dist/chunk-W4GXDARU.cjs.map +1 -0
  61. package/dist/{chunk-S2KVJYBD.cjs → chunk-WV4IDVDQ.cjs} +76 -43
  62. package/dist/chunk-WV4IDVDQ.cjs.map +1 -0
  63. package/dist/{chunk-2FUJXMGO.js → chunk-Y4X3RBFI.js} +44 -6
  64. package/dist/{chunk-CK4C3IQR.cjs.map → chunk-Y4X3RBFI.js.map} +1 -1
  65. package/dist/collaboration/index.cjs +1 -1
  66. package/dist/collaboration/index.js +1 -1
  67. package/dist/connect/index.cjs +63 -46
  68. package/dist/connect/index.cjs.map +1 -1
  69. package/dist/connect/index.js +33 -16
  70. package/dist/connect/index.js.map +1 -1
  71. package/dist/connection/WorkflowRunThread.d.ts +4 -4
  72. package/dist/connection/ai.d.ts +2 -0
  73. package/dist/facts/index.cjs +2 -2
  74. package/dist/facts/index.js +2 -2
  75. package/dist/files/index.cjs +3 -3
  76. package/dist/files/index.js +3 -3
  77. package/dist/home/index.cjs +1 -1
  78. package/dist/home/index.js +1 -1
  79. package/dist/index.cjs +840 -764
  80. package/dist/index.js +14 -14
  81. package/dist/retrieval/index.cjs +1 -1
  82. package/dist/retrieval/index.js +1 -1
  83. package/dist/settings/index.cjs +1 -1
  84. package/dist/settings/index.js +1 -1
  85. package/dist/shell/index.cjs +10 -10
  86. package/dist/shell/index.js +2 -2
  87. package/dist/studio/index.cjs +6 -5
  88. package/dist/studio/index.cjs.map +1 -1
  89. package/dist/studio/index.js +5 -4
  90. package/dist/studio/index.js.map +1 -1
  91. package/dist/workflow-canvas/WorkflowCanvas.d.ts +0 -9
  92. package/dist/workflow-canvas/edit.d.ts +2 -11
  93. package/dist/workflow-canvas/index.cjs +61 -85
  94. package/dist/workflow-canvas/index.cjs.map +1 -1
  95. package/dist/workflow-canvas/index.js +12 -36
  96. package/dist/workflow-canvas/index.js.map +1 -1
  97. package/node_modules/@arbidocs/coedit/package.json +1 -1
  98. package/package.json +4 -4
  99. package/src/blocks.css +168 -0
  100. package/src/workflow-canvas/canvas.css +2 -40
  101. package/dist/chunk-2FUJXMGO.js.map +0 -1
  102. package/dist/chunk-65HZ36MY.js.map +0 -1
  103. package/dist/chunk-AY32GGKU.js.map +0 -1
  104. package/dist/chunk-B4SRYJLM.cjs +0 -107
  105. package/dist/chunk-B4SRYJLM.cjs.map +0 -1
  106. package/dist/chunk-HOXKR26S.js +0 -103
  107. package/dist/chunk-HOXKR26S.js.map +0 -1
  108. package/dist/chunk-S2KVJYBD.cjs.map +0 -1
  109. package/dist/chunk-SVJQWLOF.cjs.map +0 -1
  110. package/dist/chunk-TCNYKDYE.js.map +0 -1
  111. package/dist/chunk-XSUOEJB3.cjs.map +0 -1
  112. package/dist/chunk-Z2NSU7D5.cjs.map +0 -1
  113. package/dist/chunk-ZP4IFW2E.js.map +0 -1
@@ -1,27 +1,27 @@
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_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, 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-ZP4IFW2E.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_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_THREAD_LAUNCHER_LABELS, DEFAULT_THREAD_STATE_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_RUN_STATUS_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, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunStatus, 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-RARHNGKM.js';
3
3
  import '../chunk-P5ST47VY.js';
4
4
  import '../chunk-4XJZ6AAY.js';
5
5
  import '../chunk-P6GHJSLR.js';
6
- export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, TaskActivityTimeline, 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, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-AY32GGKU.js';
6
+ export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, SchemaForm, SendBackControl, TaskActivityTimeline, WorkflowRunner, activeStepId, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, isIncompleteSignal, layoutFromPlanSteps, stepWindow, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, useWorkflowView } from '../chunk-MD7RVFKA.js';
7
7
  import '../chunk-XD2M6LIG.js';
8
8
  import '../chunk-6S5FLMWG.js';
9
9
  import '../chunk-RFXJYIDV.js';
10
10
  import '../chunk-5LXQPP2K.js';
11
11
  import '../chunk-S7PSMMRG.js';
12
12
  import '../chunk-EVUEIBNU.js';
13
- import '../chunk-AUS3KBHJ.js';
14
13
  import '../chunk-NUNKSZKU.js';
15
14
  import '../chunk-YU2KUMGE.js';
16
15
  import '../chunk-N5YEF3LC.js';
17
- import '../chunk-HOXKR26S.js';
18
- import '../chunk-AA3PT6KR.js';
19
- import '../chunk-SLSBJRWW.js';
20
16
  import '../chunk-4WWM3GQ5.js';
21
17
  import '../chunk-TX2ZICS7.js';
18
+ import '../chunk-76JDDMSP.js';
19
+ export { DEFAULT_ASSIGNEE_WORDING, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_KIND_LABELS, DEFAULT_STEP_RECORD_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, STEP_KIND_ICONS, StepDocumentButton, StepDocumentCards, StepRecord, WORKFLOW_STEP_KINDS, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepDocuments, stepFields, stepKindOf, stepLevels, stepPhase, stepStatesFromActivity, upstreamSteps, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-7HAM7Y5U.js';
20
+ import '../chunk-AA3PT6KR.js';
21
+ import '../chunk-AUS3KBHJ.js';
22
+ import '../chunk-SLSBJRWW.js';
22
23
  import '../chunk-NPLYHR2E.js';
23
24
  import '../chunk-7F6CBP3Z.js';
24
- import '../chunk-76JDDMSP.js';
25
25
  import '../chunk-OXF2IFXG.js';
26
26
  import '../chunk-VUNV25KB.js';
27
27
  //# sourceMappingURL=index.js.map
@@ -37,6 +37,8 @@ export interface ConversationListViewProps<T extends ConversationListRow> {
37
37
  meetingFilter?: 'include' | 'exclude' | null;
38
38
  filterText?: string;
39
39
  header?: ReactNode;
40
+ /** Below the list: the launcher that starts a new thread from here. */
41
+ footer?: ReactNode;
40
42
  showHeader?: boolean;
41
43
  formatDate: (iso: string) => string;
42
44
  renderThread?: (conversation: T) => ReactNode;
@@ -48,7 +50,6 @@ export interface ConversationListViewProps<T extends ConversationListRow> {
48
50
  onOpen: (conversation: T) => void;
49
51
  onRename: (conversation: T) => void;
50
52
  onDelete: (conversation: T) => void;
51
- onToggleShared?: (conversation: T, shared: boolean) => void;
52
53
  canEditShared?: boolean;
53
54
  isWorkspaceOwner?: boolean;
54
55
  selectionActions?: (selected: T[], compact: boolean, clear: () => void) => ReactNode;
@@ -6,11 +6,13 @@ export interface TurnSpeakerProfile {
6
6
  parent_ext_id?: string | null;
7
7
  }
8
8
  /** A last-turn speaker, using only metadata returned with the conversation list. */
9
- export declare function ConversationTurnSpeaker({ role, actor, currentUserId, colorClass, platformName, platformLogoSrc, }: {
9
+ export declare function ConversationTurnSpeaker({ role, actor, currentUserId, colorClass, platformName, platformLogoSrc, variant, }: {
10
10
  role?: string | null;
11
11
  actor?: TurnSpeakerProfile | null;
12
12
  currentUserId?: string;
13
13
  colorClass?: string;
14
14
  platformName?: string;
15
15
  platformLogoSrc?: string;
16
+ /** `icon`: the face alone (its name on hover), for a narrow column. */
17
+ variant?: 'icon' | 'pill';
16
18
  }): import("react").JSX.Element;
@@ -1,7 +1,24 @@
1
1
  import { type ReactNode } from 'react';
2
+ import type { WorkflowStepPhase } from '../workflows/run';
2
3
  export interface TaskFlowItem {
3
4
  id: string;
4
5
  avatar: ReactNode;
6
+ /** Who acted (a person's id, `assistant`…): their face shows once however often they acted. */
7
+ actor?: string;
8
+ /**
9
+ * A workflow step's event: drawn in the transcript as that step's chip (its kind's colour and
10
+ * icon, the phase the event put it in), as the thread's bar draws the step.
11
+ */
12
+ stepChip?: {
13
+ kind: string;
14
+ phase: WorkflowStepPhase;
15
+ icon?: ReactNode;
16
+ /** The document the event produced: opened from beside the chip. */
17
+ document?: {
18
+ name: string;
19
+ onOpen: () => void;
20
+ };
21
+ };
5
22
  label: string;
6
23
  description?: string;
7
24
  time: string;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The threads list's launcher: a composer at the bottom of the list that starts a thread where you
3
+ * are. Type what you need (@mention people), or pick a saved workflow or a to-do, and press Enter:
4
+ * the thread starts and joins the list, and the launcher offers to open it — it never takes you
5
+ * there by itself, so several can be started one after another, as agents are dispatched.
6
+ */
7
+ import { type MentionCandidate } from '../../chat/mentions';
8
+ import type { TaskStartValues } from './TaskStartDialog';
9
+ export interface ThreadLauncherLabels {
10
+ placeholder: string;
11
+ todoPlaceholder: string;
12
+ withArbi: string;
13
+ todo: string;
14
+ source: string;
15
+ start: string;
16
+ schedule: string;
17
+ /** A started thread; `{title}` is replaced. */
18
+ started: string;
19
+ open: string;
20
+ dismiss: string;
21
+ shared: string;
22
+ private: string;
23
+ }
24
+ export declare const DEFAULT_THREAD_LAUNCHER_LABELS: ThreadLauncherLabels;
25
+ /** What a start made, as the launcher offers it. */
26
+ export interface ThreadLauncherStarted {
27
+ id: string;
28
+ title: string;
29
+ }
30
+ export interface ThreadLauncherProps {
31
+ workflows: readonly {
32
+ external_id: string;
33
+ name: string;
34
+ }[];
35
+ /** Who can be @mentioned: the workspace's people. */
36
+ people?: ReadonlyArray<MentionCandidate>;
37
+ isPending?: boolean;
38
+ error?: string | null;
39
+ /** Replaces the start button's label (e.g. "Look again" while a thread is late). */
40
+ startLabel?: string;
41
+ /** Start it; resolves to the thread it made (offered with Open), or nothing. Throws to keep the draft. */
42
+ onStart: (values: TaskStartValues) => Promise<ThreadLauncherStarted | null | undefined>;
43
+ /** Start it later: the host's scheduler. */
44
+ onLater?: (values: TaskStartValues) => void;
45
+ onOpen: (id: string) => void;
46
+ /** Focus the field when the launcher appears (the header's New Task brought you here). */
47
+ autoFocus?: boolean;
48
+ labels?: Partial<ThreadLauncherLabels>;
49
+ className?: string;
50
+ }
51
+ export declare function ThreadLauncher({ workflows, people, isPending, error, startLabel, onStart, onLater, onOpen, autoFocus, labels, className, }: ThreadLauncherProps): import("react").JSX.Element;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Where a thread stands, in one word and one look for every row of a list — a plain chat, a to-do,
3
+ * a workflow run — as a list of agents says it: Generating, Needs you, Up next, Ready, To do,
4
+ * Done, Failed. An icon and the word in the state's colour, then what it is about (the next step).
5
+ */
6
+ import type { ReactNode } from 'react';
7
+ export type ThreadState = 'generating' | 'needs' | 'next' | 'ready' | 'todo' | 'done' | 'failed' | 'queued' | 'access';
8
+ export interface ThreadStateLabels {
9
+ generating: string;
10
+ /** `{name}` is replaced ("you", a person). */
11
+ needs: string;
12
+ next: string;
13
+ ready: string;
14
+ todo: string;
15
+ done: string;
16
+ failed: string;
17
+ queued: string;
18
+ access: string;
19
+ }
20
+ export declare const DEFAULT_THREAD_STATE_LABELS: ThreadStateLabels;
21
+ export interface ThreadStatusLineProps {
22
+ state: ThreadState;
23
+ /** Who a `needs` state waits for ("you", a name). */
24
+ name?: string;
25
+ /** What it is about, after the word (the next step's title). */
26
+ detail?: string;
27
+ /** After the word, e.g. a live elapsed time. */
28
+ extra?: ReactNode;
29
+ labels?: Partial<ThreadStateLabels>;
30
+ className?: string;
31
+ testId?: string;
32
+ }
33
+ export declare function ThreadStatusLine({ state, name, detail, extra, labels, className, testId, }: ThreadStatusLineProps): import("react").JSX.Element;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Where a workflow run is, in a line of a list (the threads list's status), on two lines. First a
3
+ * track with one segment per step in its kind's colour — filled once done, pulsing while it runs,
4
+ * outlined while still to come — centred on the step the run is at, with "…" where a long run has
5
+ * more before or after. Then where it stands, in words, about the NEXT step (what happens now):
6
+ * Generating, Needs you, Up next, Failed — or Ready once every step is done (Done once a person
7
+ * marked it so). The thread bar's chips in miniature, so a list of runs reads like a list of agents.
8
+ */
9
+ import type { WorkflowStep, WorkflowStepState } from '../workflows/types';
10
+ import { type ThreadStateLabels } from './ThreadStatusLine';
11
+ export interface WorkflowRunStatusLabels extends ThreadStateLabels {
12
+ /** A finished run's detail; `{count}` is replaced. */
13
+ allDone: string;
14
+ }
15
+ export declare const DEFAULT_WORKFLOW_RUN_STATUS_LABELS: Partial<WorkflowRunStatusLabels>;
16
+ export interface WorkflowRunStatusProps {
17
+ steps: WorkflowStep[];
18
+ /** Each step's state (from `stepStatesFromActivity`). */
19
+ states: Record<string, WorkflowStepState>;
20
+ /** Who a step is for, in words (`assigneeName`): a person's step "needs" them. */
21
+ assigneeOf?: (step: WorkflowStep) => string | undefined;
22
+ labels?: Partial<WorkflowRunStatusLabels>;
23
+ /** The states are still loading: the track shows the steps only, with no position yet. */
24
+ isLoading?: boolean;
25
+ /** The thread's own status (To do / Done), which a person sets: a finished run marked done is Done. */
26
+ workStatus?: string | null;
27
+ /** The most steps the track shows; a longer run is trimmed around the step it is at. */
28
+ maxSegments?: number;
29
+ className?: string;
30
+ testId?: string;
31
+ }
32
+ export declare function WorkflowRunStatus({ steps, states, assigneeOf, labels, isLoading, workStatus, maxSegments, className, testId, }: WorkflowRunStatusProps): import("react").JSX.Element;
@@ -1,10 +1,12 @@
1
1
  /**
2
- * The top bar of a thread that runs a workflow: where the run is — the previous, current and next
2
+ * The top bar of a thread that runs a workflow, in the builder canvas's own look (`StepChip`: each
3
+ * kind of step in its colour, the start as the canvas's start pill): where the run is — the previous, current and next
3
4
  * steps by name, the rest behind ‹ › and "…", parallel steps as a "+N" chip, and every running step
4
5
  * out of view as "Working: <title>" (`StepBarFrame`, the same model as the runner's stepper) — with
5
6
  * everything that actually happened in the thread attached to the step it happened
6
7
  * during — the assistant's turns, a draft sent back, people's messages and edits, notifications.
7
- * What happened before the first step or after the last stays as ordinary entries at either end.
8
+ * Each step shows who acted during it (their faces, and how many entries); what happened before the
9
+ * first step sits on the start pill, and what happened after the last on an "After" chip.
8
10
  * Linked runs show too: a signal a step raised and the linked thread it started (after the step),
9
11
  * and, for a thread a signal started, "Started by <step> in <thread>" (before the steps).
10
12
  * A thread without a workflow shows `TaskFlow` instead.
@@ -12,6 +14,8 @@
12
14
  import { type ReactNode } from 'react';
13
15
  import { type WorkflowStepPhase } from '../workflows/run';
14
16
  import { type StepBarLabels } from '../workflows/StepBarFrame';
17
+ import { type WorkflowStepKind } from '../workflows/stepKinds';
18
+ import { type StepDocumentLabels, type StepRecordLabels } from '../workflows/StepDocuments';
15
19
  import type { WorkflowStep, WorkflowStepState } from '../workflows/types';
16
20
  import type { TaskFlowItem } from './TaskFlow';
17
21
  /** An activity entry, with what the strip needs to place it. */
@@ -39,6 +43,8 @@ export declare function groupThreadActivity<T extends {
39
43
  export interface WorkflowThreadStripLabels {
40
44
  /** The popover heading of a step's entries; `{count}` is replaced. */
41
45
  happened: string;
46
+ /** What the count on a step is; `{count}` is replaced. */
47
+ updates: string;
42
48
  nothingYet: string;
43
49
  skip: string;
44
50
  /** A linked run's origin; `{step}` and `{thread}` are replaced. */
@@ -51,6 +57,17 @@ export interface WorkflowThreadStripLabels {
51
57
  waitingFor: string;
52
58
  /** A step the work was sent back to. */
53
59
  sentBack: string;
60
+ /** The start pill: the run began. */
61
+ started: string;
62
+ /** The chip of what happened once every step had finished. */
63
+ after: string;
64
+ /** The start pill's list, and the "After" chip's. */
65
+ beforeSteps: string;
66
+ afterSteps: string;
67
+ /** Each kind's name, on the step in view. */
68
+ kinds: Record<WorkflowStepKind, string>;
69
+ documents: StepDocumentLabels;
70
+ record: StepRecordLabels;
54
71
  }
55
72
  export declare const DEFAULT_WORKFLOW_THREAD_STRIP_LABELS: WorkflowThreadStripLabels;
56
73
  /** A linked thread a signal started, as the host names it. */
@@ -93,6 +110,15 @@ export interface WorkflowThreadStripProps {
93
110
  startedBy?: WorkflowThreadOrigin;
94
111
  /** Who a step is for, in words (`assigneeName`): shown on the step while it waits for them. */
95
112
  assigneeOf?: (step: WorkflowStep) => string | undefined;
113
+ /**
114
+ * The documents: a step's popover leads with the versions it drafted, or for an approval the
115
+ * versions it approves (`stepDocuments`), named by `nameOfDoc` and opened by `onOpenDocument`.
116
+ */
117
+ nameOfDoc?: (id: string) => string | undefined;
118
+ onOpenDocument?: (ref: string) => void;
119
+ /** The run's answers (`skill_inputs`) and people's names: a finished step shows what it recorded. */
120
+ inputs?: Record<string, unknown>;
121
+ nameOf?: (id: string) => string | undefined;
96
122
  labels?: Partial<WorkflowThreadStripLabels>;
97
123
  /** The bar's own wording (arrows, "…", "Working: <title>", status words). */
98
124
  barLabels?: Partial<StepBarLabels>;
@@ -103,4 +129,4 @@ export declare function WorkflowThreadStartedBy({ origin, labels, }: {
103
129
  origin: WorkflowThreadOrigin;
104
130
  labels?: Partial<WorkflowThreadStripLabels>;
105
131
  }): 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;
132
+ export declare function WorkflowThreadStrip({ steps, states, items, renderIcon, onSkip, renderStepAction, signals, startedBy, assigneeOf, nameOfDoc, onOpenDocument, inputs, nameOf, labels, barLabels, className, }: WorkflowThreadStripProps): import("react").JSX.Element;
@@ -4,5 +4,8 @@ export interface CompactThreadActivity {
4
4
  label: string;
5
5
  recipients: string[];
6
6
  }
7
- /** Only user-facing actions. Notification batches group by their persisted source message. */
8
- export declare function compactThreadActivity(events: readonly TaskActivityEvent[]): CompactThreadActivity[];
7
+ /**
8
+ * Only user-facing actions. Notification batches group by their persisted source message. A step's
9
+ * events are named after the step (`stepTitleOf`, from the run's plan) when it is known.
10
+ */
11
+ export declare function compactThreadActivity(events: readonly TaskActivityEvent[], stepTitleOf?: (stepId: string) => string | undefined): CompactThreadActivity[];
@@ -23,6 +23,9 @@ export { TaskStatusPill, DEFAULT_TASK_STATUS_PILL_LABELS, type TaskStatusPillPro
23
23
  export { TaskActivityTimeline, taskActivityHeadline, DEFAULT_TASK_ACTIVITY_LABELS, type TaskActivityEvent, type TaskActivityKind, type TaskActivityLabels, type TaskActivityTimelineProps, } from './TaskActivityTimeline';
24
24
  export { TaskActivityDialog, type TaskActivityDialogProps } from './TaskActivityDialog';
25
25
  export { TaskFlow, ThreadActivity, type TaskFlowItem } from './TaskFlow';
26
+ export { ThreadLauncher, DEFAULT_THREAD_LAUNCHER_LABELS, type ThreadLauncherProps, type ThreadLauncherLabels, type ThreadLauncherStarted, } from './ThreadLauncher';
27
+ export { ThreadStatusLine, DEFAULT_THREAD_STATE_LABELS, type ThreadState, type ThreadStateLabels, type ThreadStatusLineProps, } from './ThreadStatusLine';
28
+ export { WorkflowRunStatus, DEFAULT_WORKFLOW_RUN_STATUS_LABELS, type WorkflowRunStatusProps, type WorkflowRunStatusLabels, } from './WorkflowRunStatus';
26
29
  export { WorkflowThreadStrip, groupThreadActivity, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, type WorkflowThreadItem, type WorkflowThreadStripProps, type WorkflowThreadStripLabels, type GroupedThreadActivity, WorkflowThreadStartedBy, type WorkflowThreadSignal, type WorkflowThreadOrigin, type WorkflowThreadLinkedRun, } from './WorkflowThreadStrip';
27
30
  export { linkedRunsFromActivity, type WorkflowRunLinks, type WorkflowRaisedSignal, type WorkflowRunOrigin, type WorkflowLinkedRunRef, } from './linkedRuns';
28
31
  export { compactThreadActivity, type CompactThreadActivity } from './compact-thread-activity';
@@ -4,14 +4,12 @@
4
4
  * step by name (its pill is the host's), a parallel level adds a "+N" chip that lists the group,
5
5
  * "…" on either side lists every step, and every running step the window does not show gets a
6
6
  * "Working: <title>" pill at the end, every failed one a "Failed: <title>" pill. The bar is a nav landmark; ←/→ (Home/End) move the window.
7
+ * Steps look as they do on the builder's canvas (`StepChip`): each kind in its own colour, and the
8
+ * line out of a finished step in that step's colour.
7
9
  */
8
10
  import { type ReactNode } from 'react';
9
11
  import type { WorkflowStepPhase } from './run';
10
12
  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
13
  export interface StepBarLabels {
16
14
  nav: string;
17
15
  back: string;
@@ -36,9 +34,6 @@ export interface StepBarLabels {
36
34
  phases: Record<WorkflowStepPhase, string>;
37
35
  }
38
36
  export declare const DEFAULT_STEP_BAR_LABELS: StepBarLabels;
39
- /** A pill's colours: the status shows in the text colour as well as the icon. */
40
- export declare function stepPillTone(phase: WorkflowStepPhase, current: boolean): string;
41
- 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";
42
37
  /**
43
38
  * A label is the full title, cut with an ellipsis only when very long (in full in `title`) or when
44
39
  * the bar is out of room — connectors give up their room first. Its widest is `LABEL_MAX_PX`
@@ -47,11 +42,11 @@ export declare const STEP_PILL = "flex min-w-0 items-center gap-1.5 whitespace-n
47
42
  export declare const STEP_LABEL = "min-w-[2.5rem] truncate";
48
43
  export declare const STEP_LABEL_MAX = "max-w-[20rem]";
49
44
  /**
50
- * The step in view's label: wider (26rem), the last to give up room (what is around it shrinks a
51
- * million times harder, so it is not cut while anything else on its pill or the bar can still
52
- * give), and when it must, it wraps to a second line before it is cut.
45
+ * The step in view's label: wider (26rem), and the last to give up room (what is around it shrinks
46
+ * a million times harder, so it is not cut while anything else on its chip or the bar can still
47
+ * give). Its chip already has two lines (the kind above the name), so it is cut, not wrapped.
53
48
  */
54
- export declare const STEP_LABEL_CURRENT = "min-w-[2.5rem] max-w-[26rem] whitespace-normal text-left text-balance line-clamp-2";
49
+ export declare const STEP_LABEL_CURRENT = "block min-w-[2.5rem] max-w-[26rem] truncate";
55
50
  /**
56
51
  * What follows a name on its pill ("Waiting for …"): cut before the name is. Flex shares a shortage
57
52
  * in proportion, so the factor is huge: even a sliver taken from the name would show an ellipsis.
@@ -70,22 +65,28 @@ export interface StepBarFrameProps<T extends StepBarStep> {
70
65
  onSelect: (id: string) => void;
71
66
  /** The pill of a level's primary step (a button or a popover trigger). */
72
67
  renderStep: (step: T, level: StepWindowLevel<T>, win: StepWindow<T>, narrow: boolean) => ReactNode;
73
- /**
74
- * What the step in view waits on ("Waiting for …"): on its pill when wide, on a line of its own
75
- * when narrow (where the pill has room for its name only).
76
- */
77
- noteOf?: (id: string) => string | undefined;
78
68
  /** What follows a level's pill (signals it raised…). */
79
69
  renderAfter?: (level: StepWindowLevel<T>) => ReactNode;
80
70
  /** Before the steps / after them: shown while the window is at that end. */
81
71
  leading?: ReactNode;
82
72
  trailing?: ReactNode;
73
+ /**
74
+ * Room the bar needs beyond the levels' names: always (a wider step in view), and for `leading`
75
+ * and `trailing` while the window reaches that end. A window is only as wide as fits with it.
76
+ */
77
+ reservePx?: {
78
+ always?: number;
79
+ leading?: number;
80
+ trailing?: number;
81
+ };
83
82
  /** Steps that cannot be gone to (the completion marker). */
84
83
  isSelectable?: (id: string) => boolean;
85
84
  icon?: (step: T) => ReactNode;
85
+ /** A step's kind (`agent`, `review`…), for its colour; none = neutral. */
86
+ kindOf?: (step: T) => string;
86
87
  disabled?: boolean;
87
88
  labels?: Partial<StepBarLabels>;
88
89
  tid: (suffix: string) => string;
89
90
  className?: string;
90
91
  }
91
- 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;
92
+ export declare function StepBarFrame<T extends StepBarStep>({ levels, phaseOf, current, onSelect, renderStep, renderAfter, leading, trailing, reservePx, isSelectable, icon, kindOf, disabled, labels, tid, className, }: StepBarFrameProps<T>): import("react").JSX.Element;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A step on a bar — the runner's stepper, a thread's top bar, the threads list — drawn as the
3
+ * builder's canvas card in miniature (`.wf-chip` in `blocks.css`): its kind's accent and icon, its
4
+ * phase in the badge (a filled check once done, a spinner while running, an hourglass while it
5
+ * waits), and, for the step in view, the kind's name and what it waits on above its title, as a
6
+ * canvas card heads itself. A button, so it can open a popover (`PopoverTrigger asChild`).
7
+ */
8
+ import { type ButtonHTMLAttributes, type ReactNode } from 'react';
9
+ import type { WorkflowStepPhase } from './run';
10
+ /**
11
+ * What the badge shows: the kind's icon (filled in once done, as the canvas marks a done card), or
12
+ * the phase while the step moves or when it went wrong.
13
+ */
14
+ export declare function StepBadgeMark({ phase, icon }: {
15
+ phase: WorkflowStepPhase;
16
+ icon?: ReactNode;
17
+ }): import("react").JSX.Element;
18
+ export interface StepChipProps extends ButtonHTMLAttributes<HTMLButtonElement> {
19
+ /** The kind (`form`, `agent`…, `start`, `adhoc`): its accent. */
20
+ kind: string;
21
+ phase: WorkflowStepPhase;
22
+ /** The kind's icon (or the host's icon for the step). */
23
+ icon?: ReactNode;
24
+ label: string;
25
+ /** The step in view: ringed, and headed with `heading` above its label. */
26
+ current?: boolean;
27
+ /** The current chip's top line: the kind's name, and what the step waits on. */
28
+ heading?: ReactNode;
29
+ /** The label's classes (how it gives up room on a crowded bar). */
30
+ labelClassName?: string;
31
+ labelTestId?: string;
32
+ /** After the label: who acted in the step, a sent-back mark… */
33
+ children?: ReactNode;
34
+ /** A static chip (the completion marker): not a button. */
35
+ inert?: boolean;
36
+ }
37
+ export declare const StepChip: import("react").ForwardRefExoticComponent<StepChipProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * The documents a step is about — what most steps of real work hand on, review and approve is a
3
+ * document, not a message in the chat. A drafting step's are the versions it produced; an approval's
4
+ * are the drafts it approves (the versions of the steps it waits for while it is open, exactly the
5
+ * versions it recorded once approved). `StepDocumentCards` shows them as cards to open, and
6
+ * `StepRecord` what a finished step recorded: who did it, when, and its answers.
7
+ */
8
+ import type { WorkflowField, WorkflowStep, WorkflowStepState } from './types';
9
+ /** The document versions (`doc-…@v<n>`) a step is about, newest last, each once. */
10
+ export declare function stepDocuments(steps: WorkflowStep[], states: Record<string, WorkflowStepState>, id: string): string[];
11
+ export interface StepDocumentLabels {
12
+ open: string;
13
+ /** An approval's documents, before it is done. */
14
+ toApprove: string;
15
+ approved: string;
16
+ produced: string;
17
+ /** `{version}` is replaced. */
18
+ version: string;
19
+ }
20
+ export declare const DEFAULT_STEP_DOCUMENT_LABELS: StepDocumentLabels;
21
+ /** A step's documents as cards: the name, the version, and Open (the host's viewer or editor). */
22
+ export declare function StepDocumentCards({ refs, heading, nameOfDoc, onOpen, labels, testId, }: {
23
+ refs: string[];
24
+ heading: string;
25
+ nameOfDoc?: (id: string) => string | undefined;
26
+ onOpen?: (ref: string) => void;
27
+ labels?: Partial<StepDocumentLabels>;
28
+ testId: string;
29
+ }): import("react").JSX.Element | null;
30
+ export interface StepRecordLabels {
31
+ /** `{name}` is replaced. */
32
+ doneBy: string;
33
+ approvedBy: string;
34
+ someone: string;
35
+ }
36
+ export declare const DEFAULT_STEP_RECORD_LABELS: StepRecordLabels;
37
+ /** A recorded time, in the reader's locale. */
38
+ export declare const formatDate: (iso: string | undefined) => string;
39
+ /** A recorded answer as text: a person's name, an option's label, a tick… */
40
+ export declare const shownValue: (v: unknown, field: WorkflowField, nameOf?: (id: string) => string | undefined) => string;
41
+ /** What a finished step recorded: who did it (approved it) and when, and the answers it took. */
42
+ export declare function StepRecord({ step, state, inputs, nameOf, labels, className, testId, }: {
43
+ step: WorkflowStep;
44
+ state: WorkflowStepState | undefined;
45
+ inputs: Record<string, unknown>;
46
+ nameOf?: (id: string) => string | undefined;
47
+ labels?: Partial<StepRecordLabels>;
48
+ className?: string;
49
+ testId: string;
50
+ }): import("react").JSX.Element | null;
51
+ /**
52
+ * A step's document, one click from its chip: a button joined to the chip's right that opens the
53
+ * latest version — the drafted letter, or the draft an approval is for. Icon-only where room is
54
+ * short (the thread's bar), with the document's name in the chat.
55
+ */
56
+ export declare function StepDocumentButton({ kind, name, onOpen, showName, label, testId, }: {
57
+ kind: string;
58
+ name: string;
59
+ onOpen: () => void;
60
+ showName?: boolean;
61
+ /** Its accessible name; `{name}` is replaced. */
62
+ label?: string;
63
+ testId?: string;
64
+ }): import("react").JSX.Element;
@@ -7,8 +7,7 @@
7
7
  import type { ReactNode } from 'react';
8
8
  import type { WorkflowRunView } from './useWorkflowView';
9
9
  import type { WorkflowStep } from './types';
10
- import { PhaseMark, type StepBarLabels } from './StepBarFrame';
11
- export { PhaseMark };
10
+ import { type StepBarLabels } from './StepBarFrame';
12
11
  export interface WorkflowStepBarProps {
13
12
  run: WorkflowRunView;
14
13
  levels: WorkflowStep[][];
@@ -15,4 +15,6 @@ export { useWorkflowPreview, type UseWorkflowPreviewOptions } from './useWorkflo
15
15
  export { WorkflowRunner, DEFAULT_WORKFLOW_RUNNER_LABELS, type WorkflowRunnerProps, type WorkflowRunnerLabels, type WorkflowRunnerFile, } from './WorkflowRunner';
16
16
  export { stepWindow, activeStepId, type StepWindow, type StepWindowLevel, type StepWindowOptions, type StepWindowStep, } from './stepWindow';
17
17
  export { DEFAULT_STEP_BAR_LABELS, type StepBarLabels } from './StepBarFrame';
18
+ export { stepDocuments, StepDocumentCards, StepDocumentButton, StepRecord, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_RECORD_LABELS, type StepDocumentLabels, type StepRecordLabels, } from './StepDocuments';
19
+ export { WORKFLOW_STEP_KINDS, STEP_KIND_ICONS, DEFAULT_STEP_KIND_LABELS, stepKindOf, type WorkflowStepKind, } from './stepKinds';
18
20
  export { ActionStepBody, ApprovalEvidence, AssigneeLine, SendBackControl, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, type WorkflowRunnerActions, type WorkflowStepPartsLabels, } from './StepParts';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The kinds of step, as every view of a workflow shows them: the builder's canvas, the runner's
3
+ * stepper, a thread's top bar and the threads list. Each kind has one icon here and one colour in
4
+ * `blocks.css` (`.wf-kind-<kind>`, on the `--wf-*` variables), so a step looks the same wherever
5
+ * it appears.
6
+ */
7
+ import type { WorkflowStep } from './types';
8
+ /** Each kind of step, with each platform action (an `action` step) as a kind of its own. */
9
+ export type WorkflowStepKind = 'form' | 'upload' | 'agent' | 'review' | 'sign' | 'email_draft' | 'tabular_review';
10
+ /** Every kind, in the order the add menus list them. */
11
+ export declare const WORKFLOW_STEP_KINDS: readonly WorkflowStepKind[];
12
+ /** A step's kind: an action step is its action's type. */
13
+ export declare const stepKindOf: (step: WorkflowStep) => WorkflowStepKind;
14
+ export declare const STEP_KIND_ICONS: {
15
+ readonly form: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
16
+ readonly upload: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
+ readonly agent: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18
+ readonly review: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
19
+ readonly sign: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
20
+ readonly email_draft: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
21
+ readonly tabular_review: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
22
+ };
23
+ /** Each kind's name, as the canvas cards and the thread bar label a step. */
24
+ export declare const DEFAULT_STEP_KIND_LABELS: Record<WorkflowStepKind, string>;
@@ -12,6 +12,8 @@ export interface VersionTimelineLabels {
12
12
  reasons: Record<string, string>;
13
13
  open: string;
14
14
  compare: string;
15
+ /** Before the thread a version was made in: "in {thread}". */
16
+ madeIn: string;
15
17
  }
16
18
  export declare const DEFAULT_VERSION_TIMELINE_LABELS: VersionTimelineLabels;
17
19
  export interface VersionTimelineTestIds {
@@ -36,6 +38,11 @@ export interface VersionEntry {
36
38
  savedFromId?: string | null;
37
39
  /** Why the version exists: upload | edit | signed | sync. Shown as a label on the row. */
38
40
  reason?: string | null;
41
+ /** The thread whose turn made this version: named on the row, opening it at that turn. */
42
+ madeIn?: {
43
+ label: string;
44
+ onOpen: () => void;
45
+ } | null;
39
46
  }
40
47
  export interface VersionTimelineProps {
41
48
  /** Versions in creation order (oldest first). */