@arbidocs/blocks 0.4.39 → 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.
- package/dist/agents/index.cjs +224 -222
- package/dist/agents/index.js +5 -3
- package/dist/agents/tasks/TaskInbox.d.ts +1 -1
- package/dist/agents/tasks/TaskStartDialog.d.ts +11 -3
- package/dist/agents/tasks/taskRequest.d.ts +3 -0
- package/dist/chat/index.cjs +127 -126
- package/dist/chat/index.js +3 -2
- package/dist/chunk-3VQYJBOI.js +76 -0
- package/dist/chunk-3VQYJBOI.js.map +1 -0
- package/dist/{chunk-SWON6O45.js → chunk-7L3KPYD2.js} +3 -3
- package/dist/{chunk-SWON6O45.js.map → chunk-7L3KPYD2.js.map} +1 -1
- package/dist/{chunk-LQITIYBN.js → chunk-CA7JD6IX.js} +3 -3
- package/dist/{chunk-LQITIYBN.js.map → chunk-CA7JD6IX.js.map} +1 -1
- package/dist/{chunk-ZXYHBQFW.js → chunk-E3U5GYAP.js} +5 -72
- package/dist/chunk-E3U5GYAP.js.map +1 -0
- package/dist/{chunk-VZGBCBYB.js → chunk-HTJXMA26.js} +3 -3
- package/dist/{chunk-VZGBCBYB.js.map → chunk-HTJXMA26.js.map} +1 -1
- package/dist/{chunk-CHVFO74Y.cjs → chunk-LEJGV4KQ.cjs} +156 -38
- package/dist/chunk-LEJGV4KQ.cjs.map +1 -0
- package/dist/{chunk-SKFSJHVU.cjs → chunk-LR54PQ7N.cjs} +4 -4
- package/dist/{chunk-SKFSJHVU.cjs.map → chunk-LR54PQ7N.cjs.map} +1 -1
- package/dist/{chunk-VUEZARW5.cjs → chunk-MDW5YCHZ.cjs} +3 -3
- package/dist/{chunk-VUEZARW5.cjs.map → chunk-MDW5YCHZ.cjs.map} +1 -1
- package/dist/{chunk-EEGPWOOG.cjs → chunk-NT3WEHL5.cjs} +5 -5
- package/dist/{chunk-EEGPWOOG.cjs.map → chunk-NT3WEHL5.cjs.map} +1 -1
- package/dist/{chunk-KFR4GKHS.js → chunk-RFCQPDEP.js} +156 -38
- package/dist/chunk-RFCQPDEP.js.map +1 -0
- package/dist/{chunk-KMYLQIOH.cjs → chunk-UW3IHMYA.cjs} +4 -72
- package/dist/chunk-UW3IHMYA.cjs.map +1 -0
- package/dist/chunk-V3L5DONY.cjs +78 -0
- package/dist/chunk-V3L5DONY.cjs.map +1 -0
- package/dist/connect/index.cjs +34 -33
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +5 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/index.cjs +443 -442
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +31 -31
- package/dist/settings/index.js +2 -2
- package/dist/studio/index.cjs +4 -3
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +3 -2
- package/dist/studio/index.js.map +1 -1
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +2 -0
- package/dist/workspaces/index.cjs +6 -3
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +7 -4
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-CHVFO74Y.cjs.map +0 -1
- package/dist/chunk-KFR4GKHS.js.map +0 -1
- package/dist/chunk-KMYLQIOH.cjs.map +0 -1
- package/dist/chunk-ZXYHBQFW.js.map +0 -1
package/dist/agents/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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';
|
|
@@ -9,12 +9,14 @@ import '../chunk-DPLRHEJZ.js';
|
|
|
9
9
|
import '../chunk-YU2KUMGE.js';
|
|
10
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'
|
|
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
|
|
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. */
|