@arbidocs/blocks 0.4.27 → 0.4.28

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 (103) hide show
  1. package/README.md +17 -0
  2. package/dist/agents/index.cjs +222 -210
  3. package/dist/agents/index.js +4 -4
  4. package/dist/agents/tasks/TaskRowMenu.d.ts +4 -1
  5. package/dist/agents/tasks/TaskRunsDialog.d.ts +3 -1
  6. package/dist/agents/tasks/taskRows.d.ts +2 -0
  7. package/dist/agents/workflows/WorkflowDocumentsField.d.ts +12 -0
  8. package/dist/agents/workflows/index.d.ts +2 -0
  9. package/dist/agents/workflows/workspaceScope.d.ts +18 -0
  10. package/dist/chat/ChatPage.d.ts +1 -1
  11. package/dist/chat/chat-page-types.d.ts +12 -1
  12. package/dist/chat/index.cjs +129 -129
  13. package/dist/chat/index.js +2 -2
  14. package/dist/{chunk-CQ6CYPV4.js → chunk-3NZR6PAG.js} +7 -119
  15. package/dist/chunk-3NZR6PAG.js.map +1 -0
  16. package/dist/chunk-4XJZ6AAY.js +407 -0
  17. package/dist/chunk-4XJZ6AAY.js.map +1 -0
  18. package/dist/{chunk-UOLMFC5K.js → chunk-6YVI74BC.js} +498 -108
  19. package/dist/chunk-6YVI74BC.js.map +1 -0
  20. package/dist/{chunk-ZEIOREJY.js → chunk-EHXSBH6U.js} +37 -6
  21. package/dist/chunk-EHXSBH6U.js.map +1 -0
  22. package/dist/chunk-EYPPB5CY.cjs +85 -0
  23. package/dist/chunk-EYPPB5CY.cjs.map +1 -0
  24. package/dist/{chunk-TL2DHSC5.cjs → chunk-FRRDPYBR.cjs} +5 -120
  25. package/dist/chunk-FRRDPYBR.cjs.map +1 -0
  26. package/dist/{chunk-557EU3G4.js → chunk-JLOYWXRB.js} +3 -3
  27. package/dist/{chunk-557EU3G4.js.map → chunk-JLOYWXRB.js.map} +1 -1
  28. package/dist/chunk-KF4EC5XU.js +68 -0
  29. package/dist/chunk-KF4EC5XU.js.map +1 -0
  30. package/dist/{chunk-3ZXXHROK.cjs → chunk-NSZAHL23.cjs} +156 -37
  31. package/dist/chunk-NSZAHL23.cjs.map +1 -0
  32. package/dist/{chunk-ENY6XXKR.js → chunk-QMUI2MGT.js} +153 -37
  33. package/dist/chunk-QMUI2MGT.js.map +1 -0
  34. package/dist/chunk-S5HZBXZA.cjs +430 -0
  35. package/dist/chunk-S5HZBXZA.cjs.map +1 -0
  36. package/dist/{chunk-JCVZKCXC.cjs → chunk-TLQQV7WW.cjs} +37 -6
  37. package/dist/chunk-TLQQV7WW.cjs.map +1 -0
  38. package/dist/{chunk-NNH7N62N.cjs → chunk-VMCOH3AY.cjs} +497 -105
  39. package/dist/chunk-VMCOH3AY.cjs.map +1 -0
  40. package/dist/{chunk-JLPYOPCX.js → chunk-WSJVHSGN.js} +225 -36
  41. package/dist/chunk-WSJVHSGN.js.map +1 -0
  42. package/dist/{chunk-DCEI37AX.cjs → chunk-YVIOCITQ.cjs} +3 -3
  43. package/dist/{chunk-DCEI37AX.cjs.map → chunk-YVIOCITQ.cjs.map} +1 -1
  44. package/dist/{chunk-J22DXUJY.cjs → chunk-ZHLMDJCO.cjs} +226 -34
  45. package/dist/chunk-ZHLMDJCO.cjs.map +1 -0
  46. package/dist/connect/docx.cjs +26 -8
  47. package/dist/connect/docx.cjs.map +1 -1
  48. package/dist/connect/docx.d.ts +1 -0
  49. package/dist/connect/docx.js +24 -7
  50. package/dist/connect/docx.js.map +1 -1
  51. package/dist/connect/index.cjs +303 -61
  52. package/dist/connect/index.cjs.map +1 -1
  53. package/dist/connect/index.d.ts +4 -0
  54. package/dist/connect/index.js +263 -25
  55. package/dist/connect/index.js.map +1 -1
  56. package/dist/connection/ConnectedAgentChatPanel.d.ts +7 -0
  57. package/dist/connection/ConnectedNativeDocxEditor.d.ts +2 -1
  58. package/dist/connection/ConnectedSkillUpload.d.ts +2 -0
  59. package/dist/connection/ConnectedStreamedWordArtifact.d.ts +4 -0
  60. package/dist/connection/ConnectedTaskAccessRequest.d.ts +4 -0
  61. package/dist/connection/ai.d.ts +4 -1
  62. package/dist/connection/useConnectedWorkNotifications.d.ts +21 -0
  63. package/dist/docx/DocxMentions.d.ts +9 -2
  64. package/dist/docx/NativeDocxEditor.d.ts +11 -3
  65. package/dist/docx/StreamedWordArtifact.d.ts +15 -0
  66. package/dist/docx/index.cjs +16 -8
  67. package/dist/docx/index.d.ts +3 -2
  68. package/dist/docx/index.js +2 -2
  69. package/dist/docx/streamWordDocument.d.ts +12 -0
  70. package/dist/files/index.cjs +2 -2
  71. package/dist/files/index.js +2 -2
  72. package/dist/index.cjs +444 -432
  73. package/dist/index.js +7 -7
  74. package/dist/settings/index.cjs +41 -231
  75. package/dist/settings/index.cjs.map +1 -1
  76. package/dist/settings/index.js +6 -202
  77. package/dist/settings/index.js.map +1 -1
  78. package/dist/studio/index.cjs +6 -5
  79. package/dist/studio/index.cjs.map +1 -1
  80. package/dist/studio/index.js +4 -3
  81. package/dist/studio/index.js.map +1 -1
  82. package/dist/workspaces/index.cjs +2 -2
  83. package/dist/workspaces/index.js +2 -2
  84. package/package.json +3 -3
  85. package/src/docx/styles.css +13 -0
  86. package/dist/chunk-3ZXXHROK.cjs.map +0 -1
  87. package/dist/chunk-5TRALRWN.js +0 -42
  88. package/dist/chunk-5TRALRWN.js.map +0 -1
  89. package/dist/chunk-CQ6CYPV4.js.map +0 -1
  90. package/dist/chunk-CQCC7LE7.js +0 -210
  91. package/dist/chunk-CQCC7LE7.js.map +0 -1
  92. package/dist/chunk-ENY6XXKR.js.map +0 -1
  93. package/dist/chunk-EUOGPUMJ.cjs +0 -59
  94. package/dist/chunk-EUOGPUMJ.cjs.map +0 -1
  95. package/dist/chunk-J22DXUJY.cjs.map +0 -1
  96. package/dist/chunk-JCVZKCXC.cjs.map +0 -1
  97. package/dist/chunk-JLPYOPCX.js.map +0 -1
  98. package/dist/chunk-NNH7N62N.cjs.map +0 -1
  99. package/dist/chunk-RFIBUWLF.cjs +0 -232
  100. package/dist/chunk-RFIBUWLF.cjs.map +0 -1
  101. package/dist/chunk-TL2DHSC5.cjs.map +0 -1
  102. package/dist/chunk-UOLMFC5K.js.map +0 -1
  103. package/dist/chunk-ZEIOREJY.js.map +0 -1
@@ -1,18 +1,18 @@
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, 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_SCHEMA_FORM_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_REVIEW_ACTIONS_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, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EMPTY_WORKFLOW_SCOPE, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SchemaForm, 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, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskReviewActions, TaskRunsDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowLauncher, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLaunch, buildRRule, buildTaskRows, composePersona, composeWorkflowPrompt, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultInputs, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, firstWords, formatElapsed, goalProgress, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, inputsFromContext, isAgenticWorkflow, isEmptyWorkflowScope, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isWorkflowScope, isoToLocalInput, localInputToIso, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, promptFieldName, resolveScopeInputs, skillToWorkflow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, validateInputs, workflowAccepts, workflowFromFrontmatter, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowTriggerType, workflowWhen, workflowsAccepting, workflowsForHost } from '../chunk-ENY6XXKR.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, 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_SCHEMA_FORM_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_REVIEW_ACTIONS_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, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EMPTY_WORKFLOW_SCOPE, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PersonPill, PillSelect, RecurrenceBuilder, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SchemaForm, 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, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskReviewActions, TaskRunsDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLaunch, buildRRule, buildTaskRows, buildWorkflowScopeSource, composePersona, composeWorkflowPrompt, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultInputs, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, firstWords, formatElapsed, goalProgress, hasTaskFields, hasTrigger, humanizeSection, indexTasks, inferType, inputDocumentIds, inputsFromContext, isAgenticWorkflow, isEmptyWorkflowScope, isOutOfBounds, isPlainTodo, isSkillRow, isValidAgentName, isWorkflowScope, isoToLocalInput, localInputToIso, matchWorkflowScope, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, promptFieldName, resolveScopeInputs, skillToWorkflow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, validateInputs, workflowAccepts, workflowFromFrontmatter, workflowStatus, workflowTaskFields, workflowToComposerValues, workflowTriggerType, workflowWhen, workflowsAccepting, workflowsForHost } from '../chunk-QMUI2MGT.js';
3
3
  import '../chunk-P6GHJSLR.js';
4
4
  import '../chunk-NUPVHEJW.js';
5
5
  import '../chunk-NJL4LIXX.js';
6
- import '../chunk-CQCC7LE7.js';
6
+ import '../chunk-4XJZ6AAY.js';
7
7
  import '../chunk-DPLRHEJZ.js';
8
8
  import '../chunk-S7PSMMRG.js';
9
9
  import '../chunk-UBNVIIBT.js';
10
10
  import '../chunk-SLSBJRWW.js';
11
11
  import '../chunk-NPLYHR2E.js';
12
- import '../chunk-CPMNAJLF.js';
13
- import '../chunk-TJMKFY5P.js';
14
12
  import '../chunk-76JDDMSP.js';
15
13
  import '../chunk-OXF2IFXG.js';
14
+ import '../chunk-CPMNAJLF.js';
15
+ import '../chunk-TJMKFY5P.js';
16
16
  import '../chunk-7F6CBP3Z.js';
17
17
  //# sourceMappingURL=index.js.map
18
18
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
+ import { type ReactNode } from 'react';
1
2
  import { type TaskListRow } from './taskRows';
2
3
  import type { TaskStatusKey } from './taskLabels';
3
4
  import type { TaskListLabels } from './taskTableLabels';
@@ -24,5 +25,7 @@ export interface TaskRowMenuProps {
24
25
  onOpenActivity?: () => void;
25
26
  /** Present only when a run is waiting for access. */
26
27
  onGrantAccess?: () => void;
28
+ /** Compact review controls shown inside the menu on narrow screens. */
29
+ reviewActions?: ReactNode | ((closeMenu: () => void) => ReactNode);
27
30
  }
28
- export declare function TaskRowMenu({ task, status, busy, isOwner, canAdmin, canEdit, labels, onMarkDone, onReopen, onAddSubtask, onEdit, onDelete, onMoveTo, onChangeOwner, onOpenActivity, onGrantAccess, }: TaskRowMenuProps): import("react").JSX.Element;
31
+ export declare function TaskRowMenu({ task, status, busy, isOwner, canAdmin, canEdit, labels, onMarkDone, onReopen, onAddSubtask, onEdit, onDelete, onMoveTo, onChangeOwner, onOpenActivity, onGrantAccess, reviewActions, }: TaskRowMenuProps): import("react").JSX.Element;
@@ -29,6 +29,8 @@ export interface TaskRunsDialogProps {
29
29
  open: boolean;
30
30
  onOpenChange: (open: boolean) => void;
31
31
  taskName?: string;
32
+ /** A workflow may fail before it creates a run conversation. */
33
+ error?: string | null;
32
34
  runs: TaskRunView[];
33
35
  isLoading: boolean;
34
36
  /**
@@ -54,4 +56,4 @@ export interface TaskRunsDialogProps {
54
56
  * A task's run history. History is derived server-side from the run bookend notifications; each
55
57
  * run links to the conversation where its steps / goal / answer stream in the Message timeline.
56
58
  */
57
- export declare function TaskRunsDialog({ open, onOpenChange, taskName, runs, isLoading, onOpenRun, getRunHref, testIds, labels, }: TaskRunsDialogProps): import("react").JSX.Element;
59
+ export declare function TaskRunsDialog({ open, onOpenChange, taskName, error, runs, isLoading, onOpenRun, getRunHref, testIds, labels, }: TaskRunsDialogProps): import("react").JSX.Element;
@@ -36,6 +36,8 @@ export interface TaskListRow {
36
36
  workflow_ext_id?: string | null;
37
37
  /** The agent that prepares the work (none for a plain to-do). */
38
38
  agent_ext_id?: string | null;
39
+ /** Work for the default assistant need not have a named agent. */
40
+ has_agent_action?: boolean;
39
41
  skill_ref?: string | null;
40
42
  /** The person who signs the task off; `can_signoff` is true when that is the viewer. */
41
43
  signoff_ext_id?: string | null;
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type PickerDocument } from '../../settings/DocumentPicker';
3
+ import type { WorkflowField, WorkflowScope } from './types';
4
+ export interface WorkflowDocumentsFieldProps {
5
+ field: WorkflowField;
6
+ value: WorkflowScope;
7
+ onChange: (value: WorkflowScope) => void;
8
+ documents: PickerDocument[];
9
+ addFilesAction?: ReactNode;
10
+ }
11
+ /** An explicit workspace-file input, with selection limits and removable choices. */
12
+ export declare function WorkflowDocumentsField({ field, value, onChange, documents, addFilesAction, }: WorkflowDocumentsFieldProps): import("react").JSX.Element;
@@ -5,3 +5,5 @@ export { AgentSelect, DEFAULT_AGENT_SELECT_LABELS, type AgentSelectProps, type A
5
5
  export { WorkflowConfigDialog, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, type WorkflowConfigDialogProps, type WorkflowConfigDialogLabels, type WorkflowScopeSource, } from './WorkflowConfigDialog';
6
6
  export { defaultScopeRenderer, resolveScopeInputs } from './scopeRender';
7
7
  export { WorkflowLauncher, type WorkflowLauncherProps } from './WorkflowLauncher';
8
+ export { buildWorkflowScopeSource, matchWorkflowScope, type WorkflowScopeDocument, type WorkflowScopeLabel, } from './workspaceScope';
9
+ export { WorkflowDocumentsField, type WorkflowDocumentsFieldProps } from './WorkflowDocumentsField';
@@ -0,0 +1,18 @@
1
+ import type { WorkflowScope } from './types';
2
+ import type { WorkflowScopeSource } from './WorkflowConfigDialog';
3
+ export interface WorkflowScopeDocument {
4
+ external_id: string;
5
+ folder?: string | null;
6
+ doctags?: Array<{
7
+ tag_ext_id: string;
8
+ }>;
9
+ }
10
+ export interface WorkflowScopeLabel {
11
+ external_id: string;
12
+ name: string;
13
+ color?: string;
14
+ }
15
+ /** Match the same folder/label OR semantics as the document library; explicit file picks win. */
16
+ export declare function matchWorkflowScope<T extends WorkflowScopeDocument>(docs: T[], scope: WorkflowScope): T[];
17
+ /** Turn real workspace documents and labels into the shared workflow scope picker model. */
18
+ export declare function buildWorkflowScopeSource(docs: WorkflowScopeDocument[], labels?: WorkflowScopeLabel[]): WorkflowScopeSource;
@@ -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, 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, targetMessageId, asideBreakpoint, fillHeight, minHeight, compactHeader, accept, labels, className, testIds, }: ChatPageProps): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { MentionCandidate, MessageMentionRef } from './mentions';
2
3
  /**
3
4
  * The view-model of a chat page. It is the shape `useArbiChat()` from `@arbidocs/react` returns,
4
5
  * so `<ChatPage chat={useArbiChat(...)} />` works without an adapter; any other source (a demo,
@@ -32,6 +33,7 @@ export interface ChatCitationTarget {
32
33
  citation: ChatPageCitation;
33
34
  }
34
35
  export interface ChatPageMessage {
36
+ senderName?: string;
35
37
  id: string;
36
38
  role: 'user' | 'assistant';
37
39
  /** Markdown for an assistant message, plain text for a user message. */
@@ -57,6 +59,11 @@ export interface ChatPageDocument {
57
59
  isSelected: boolean;
58
60
  }
59
61
  export interface ChatPageController {
62
+ assistantMode?: 'always' | 'mentioned';
63
+ setAssistantMode?: (mode: 'always' | 'mentioned') => void | Promise<void>;
64
+ isUpdatingAssistantMode?: boolean;
65
+ isPostingComment?: boolean;
66
+ mentionCandidates?: ReadonlyArray<MentionCandidate>;
60
67
  threads: ReadonlyArray<ChatPageThread>;
61
68
  activeThreadId: string;
62
69
  messages: ReadonlyArray<ChatPageMessage>;
@@ -73,7 +80,9 @@ export interface ChatPageController {
73
80
  isLoadingDocuments: boolean;
74
81
  isUploading: boolean;
75
82
  uploadError: string | null;
76
- send: (text: string) => void | Promise<void>;
83
+ send: (text: string, options?: {
84
+ mentions?: MessageMentionRef[];
85
+ }) => void | Promise<void>;
77
86
  retry: () => void | Promise<void>;
78
87
  /** Stops the running answer. Omit when the source cannot be aborted: no stop button then. */
79
88
  stop?: () => void;
@@ -129,6 +138,8 @@ export interface ChatPageLabels {
129
138
  }
130
139
  export declare const DEFAULT_CHAT_PAGE_LABELS: ChatPageLabels;
131
140
  export interface ChatPageProps {
141
+ /** Open a notification at its original message once history has loaded. */
142
+ targetMessageId?: string;
132
143
  chat: ChatPageController;
133
144
  /**
134
145
  * `page` (default): a full-page chat; while it is mounted the dock yields (see