@arbidocs/blocks 0.4.38 → 0.4.40

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 (57) hide show
  1. package/dist/agents/index.cjs +226 -224
  2. package/dist/agents/index.js +7 -5
  3. package/dist/agents/tasks/TaskInbox.d.ts +1 -1
  4. package/dist/agents/tasks/TaskStartDialog.d.ts +11 -3
  5. package/dist/agents/tasks/taskRequest.d.ts +3 -0
  6. package/dist/chat/index.cjs +127 -126
  7. package/dist/chat/index.js +3 -2
  8. package/dist/chunk-3VQYJBOI.js +76 -0
  9. package/dist/chunk-3VQYJBOI.js.map +1 -0
  10. package/dist/{chunk-SWON6O45.js → chunk-7L3KPYD2.js} +3 -3
  11. package/dist/{chunk-SWON6O45.js.map → chunk-7L3KPYD2.js.map} +1 -1
  12. package/dist/{chunk-LQITIYBN.js → chunk-CA7JD6IX.js} +3 -3
  13. package/dist/{chunk-LQITIYBN.js.map → chunk-CA7JD6IX.js.map} +1 -1
  14. package/dist/{chunk-ZXYHBQFW.js → chunk-E3U5GYAP.js} +5 -72
  15. package/dist/chunk-E3U5GYAP.js.map +1 -0
  16. package/dist/{chunk-VZGBCBYB.js → chunk-HTJXMA26.js} +3 -3
  17. package/dist/{chunk-VZGBCBYB.js.map → chunk-HTJXMA26.js.map} +1 -1
  18. package/dist/{chunk-XDTYENKC.cjs → chunk-LEJGV4KQ.cjs} +158 -40
  19. package/dist/chunk-LEJGV4KQ.cjs.map +1 -0
  20. package/dist/{chunk-SKFSJHVU.cjs → chunk-LR54PQ7N.cjs} +4 -4
  21. package/dist/{chunk-SKFSJHVU.cjs.map → chunk-LR54PQ7N.cjs.map} +1 -1
  22. package/dist/{chunk-VUEZARW5.cjs → chunk-MDW5YCHZ.cjs} +3 -3
  23. package/dist/{chunk-VUEZARW5.cjs.map → chunk-MDW5YCHZ.cjs.map} +1 -1
  24. package/dist/{chunk-EEGPWOOG.cjs → chunk-NT3WEHL5.cjs} +5 -5
  25. package/dist/{chunk-EEGPWOOG.cjs.map → chunk-NT3WEHL5.cjs.map} +1 -1
  26. package/dist/{chunk-EA6YX3GR.js → chunk-RFCQPDEP.js} +158 -40
  27. package/dist/chunk-RFCQPDEP.js.map +1 -0
  28. package/dist/{chunk-KMYLQIOH.cjs → chunk-UW3IHMYA.cjs} +4 -72
  29. package/dist/chunk-UW3IHMYA.cjs.map +1 -0
  30. package/dist/chunk-V3L5DONY.cjs +78 -0
  31. package/dist/chunk-V3L5DONY.cjs.map +1 -0
  32. package/dist/connect/index.cjs +34 -33
  33. package/dist/connect/index.cjs.map +1 -1
  34. package/dist/connect/index.js +5 -4
  35. package/dist/connect/index.js.map +1 -1
  36. package/dist/files/index.cjs +3 -3
  37. package/dist/files/index.js +3 -3
  38. package/dist/index.cjs +458 -457
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.js +10 -9
  41. package/dist/index.js.map +1 -1
  42. package/dist/settings/index.cjs +31 -31
  43. package/dist/settings/index.js +2 -2
  44. package/dist/studio/index.cjs +4 -3
  45. package/dist/studio/index.cjs.map +1 -1
  46. package/dist/studio/index.js +3 -2
  47. package/dist/studio/index.js.map +1 -1
  48. package/dist/workspaces/WorkspaceSettingsParts.d.ts +2 -0
  49. package/dist/workspaces/index.cjs +6 -3
  50. package/dist/workspaces/index.cjs.map +1 -1
  51. package/dist/workspaces/index.js +7 -4
  52. package/dist/workspaces/index.js.map +1 -1
  53. package/package.json +4 -4
  54. package/dist/chunk-EA6YX3GR.js.map +0 -1
  55. package/dist/chunk-KMYLQIOH.cjs.map +0 -1
  56. package/dist/chunk-XDTYENKC.cjs.map +0 -1
  57. package/dist/chunk-ZXYHBQFW.js.map +0 -1
@@ -1,20 +1,22 @@
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_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, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskReviewActions, TaskReviewDialog, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLaunch, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composeWorkflowPrompt, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultInputs, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, 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-EA6YX3GR.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_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, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskReviewActions, TaskReviewDialog, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowsTable, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLaunch, buildRRule, buildTaskRows, buildWorkflowScopeSource, compactThreadActivity, composePersona, composeWorkflowPrompt, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createWorkflowColumns, createsWork, defaultInputs, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, 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-RFCQPDEP.js';
3
3
  import '../chunk-P6GHJSLR.js';
4
4
  import '../chunk-RFXJYIDV.js';
5
5
  import '../chunk-BUHKUKKB.js';
6
6
  import '../chunk-LFGJAZ5H.js';
7
- import '../chunk-YU2KUMGE.js';
8
- import '../chunk-S7PSMMRG.js';
9
7
  import '../chunk-CKB64Z4R.js';
10
8
  import '../chunk-DPLRHEJZ.js';
9
+ import '../chunk-YU2KUMGE.js';
10
+ import '../chunk-S7PSMMRG.js';
11
11
  import '../chunk-4WWM3GQ5.js';
12
+ import '../chunk-3VQYJBOI.js';
12
13
  import '../chunk-SLSBJRWW.js';
13
14
  import '../chunk-NPLYHR2E.js';
14
- import '../chunk-76JDDMSP.js';
15
- import '../chunk-OXF2IFXG.js';
16
15
  import '../chunk-CPMNAJLF.js';
17
16
  import '../chunk-TJMKFY5P.js';
17
+ import '../chunk-76JDDMSP.js';
18
+ import '../chunk-OXF2IFXG.js';
19
+ import '../chunk-AA3PT6KR.js';
18
20
  import '../chunk-7F6CBP3Z.js';
19
21
  //# sourceMappingURL=index.js.map
20
22
  //# sourceMappingURL=index.js.map
@@ -17,7 +17,7 @@ export interface TaskInboxWorkflowActions {
17
17
  onDeleteWorkflow?: (id: string) => void;
18
18
  onWorkflowHistory?: (id: string) => void;
19
19
  }
20
- export interface TaskInboxProps<T extends TaskListRow> extends Omit<TaskTableProps<T>, 'onApprove' | 'onRequestChanges' | 'onRequestApproval'>, TaskInboxWorkflowActions {
20
+ export interface TaskInboxProps<T extends TaskListRow> extends Omit<TaskTableProps<T>, 'onApprove' | 'onRequestChanges'>, TaskInboxWorkflowActions {
21
21
  onFilterTextChange?: (text: string) => void;
22
22
  onCreate?: () => void;
23
23
  onNotify?: (task: T) => void;
@@ -1,8 +1,13 @@
1
+ import { type MentionCandidate, type MessageMentionRef } from '../../chat/mentions';
1
2
  export interface TaskStartValues {
2
3
  prompt: string;
3
4
  workflowId: string | null;
4
5
  todo: boolean;
5
6
  shared: boolean;
7
+ /** The people @mentioned in the prompt. */
8
+ mentions: MessageMentionRef[];
9
+ /** A to-do for someone else; absent means it is for me. */
10
+ assigneeId?: string;
6
11
  }
7
12
  export interface TaskStartDialogProps {
8
13
  open: boolean;
@@ -11,14 +16,17 @@ export interface TaskStartDialogProps {
11
16
  external_id: string;
12
17
  name: string;
13
18
  }[];
14
- people?: readonly {
19
+ /** Who can be @mentioned in the prompt: the workspace's people (the assistant is not one). */
20
+ people?: ReadonlyArray<MentionCandidate>;
21
+ /** Who a "People only" to-do can be assigned to (workspace collaborators, not me). */
22
+ assignees?: ReadonlyArray<{
15
23
  id: string;
16
24
  label: string;
17
- }[];
25
+ }>;
18
26
  isPending?: boolean;
19
27
  error?: string | null;
20
28
  onStart: (values: TaskStartValues) => void | Promise<void>;
21
29
  onLater: (values: TaskStartValues) => void;
22
30
  }
23
31
  /** One entry point: write a prompt, run a saved recipe, or keep a simple to-do. */
24
- export declare function TaskStartDialog({ open, onOpenChange, workflows, isPending, error, onStart, onLater, }: TaskStartDialogProps): import("react").JSX.Element;
32
+ export declare function TaskStartDialog({ open, onOpenChange, workflows, people, assignees, isPending, error, onStart, onLater, }: TaskStartDialogProps): import("react").JSX.Element;
@@ -10,6 +10,7 @@ import type { components } from '@arbidocs/client';
10
10
  import { type WorkflowComposeContext } from '../workflows/workflow';
11
11
  import type { WorkflowDefinition, WorkflowInputs } from '../workflows/types';
12
12
  import type { TaskComposerValues, TaskWhen } from './taskComposerTypes';
13
+ import type { MessageMentionRef } from '../../chat/mentions';
13
14
  type Schemas = components['schemas'];
14
15
  type ConversationResponse = Schemas['ConversationResponse'];
15
16
  type CreateWorkRequest = Schemas['CreateWorkRequest'];
@@ -88,6 +89,8 @@ export interface TaskQuery {
88
89
  workspaceId: string;
89
90
  /** Files the run is bound to (the ids under any input's `documents`). */
90
91
  docIds: string[];
92
+ /** People @mentioned in the prompt: the server shares the thread with them and notifies them. */
93
+ mentions?: MessageMentionRef[];
91
94
  task: TaskOptions;
92
95
  }
93
96
  /** A thread to start: a task's query, or (no `task`) a plain conversation. */