@arbidocs/blocks 0.4.136 → 0.4.138
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 +384 -353
- package/dist/agents/index.js +8 -9
- package/dist/agents/skills/SkillLibraryDetail.d.ts +26 -0
- package/dist/agents/skills/index.d.ts +2 -0
- package/dist/agents/skills/skillLibrary.d.ts +46 -0
- package/dist/agents/workflows/WorkflowDocumentsField.d.ts +42 -5
- package/dist/agents/workflows/index.d.ts +2 -2
- package/dist/agents/workflows/workspaceScope.d.ts +12 -0
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +2 -2
- package/dist/chunk-2KUCVSFF.js +51 -0
- package/dist/chunk-2KUCVSFF.js.map +1 -0
- package/dist/{chunk-LIHRGG4M.cjs → chunk-3BI6EWKP.cjs} +2022 -89
- package/dist/chunk-3BI6EWKP.cjs.map +1 -0
- package/dist/{chunk-3FFRYZKV.js → chunk-3RJN2VTL.js} +36 -6
- package/dist/chunk-3RJN2VTL.js.map +1 -0
- package/dist/{chunk-OR4CO743.cjs → chunk-AAFX64WD.cjs} +3 -3
- package/dist/{chunk-OR4CO743.cjs.map → chunk-AAFX64WD.cjs.map} +1 -1
- package/dist/chunk-CQCC7LE7.js +210 -0
- package/dist/chunk-CQCC7LE7.js.map +1 -0
- package/dist/{chunk-ZAVEMQ37.cjs → chunk-DWZXSPMB.cjs} +3 -3
- package/dist/{chunk-ZAVEMQ37.cjs.map → chunk-DWZXSPMB.cjs.map} +1 -1
- package/dist/{chunk-VIU7AMHF.js → chunk-E5OYHJMU.js} +3 -3
- package/dist/{chunk-VIU7AMHF.js.map → chunk-E5OYHJMU.js.map} +1 -1
- package/dist/{chunk-RUB62J2X.js → chunk-ED4HHTIA.js} +3 -3
- package/dist/{chunk-RUB62J2X.js.map → chunk-ED4HHTIA.js.map} +1 -1
- package/dist/{chunk-5HFPRI3W.js → chunk-FUTMU4FR.js} +3 -3
- package/dist/{chunk-5HFPRI3W.js.map → chunk-FUTMU4FR.js.map} +1 -1
- package/dist/{chunk-C44D4WFG.cjs → chunk-HLB4DIYV.cjs} +3 -3
- package/dist/{chunk-C44D4WFG.cjs.map → chunk-HLB4DIYV.cjs.map} +1 -1
- package/dist/{chunk-N55UIXVT.cjs → chunk-JVL7HUIQ.cjs} +5 -5
- package/dist/{chunk-N55UIXVT.cjs.map → chunk-JVL7HUIQ.cjs.map} +1 -1
- package/dist/{chunk-6S5FLMWG.js → chunk-KSHKTOY2.js} +203 -7
- package/dist/chunk-KSHKTOY2.js.map +1 -0
- package/dist/{chunk-OZLWSNUC.cjs → chunk-MJKBVIV3.cjs} +83 -1650
- package/dist/chunk-MJKBVIV3.cjs.map +1 -0
- package/dist/{chunk-DJM7DLCT.cjs → chunk-OPTBQSCV.cjs} +3 -3
- package/dist/{chunk-DJM7DLCT.cjs.map → chunk-OPTBQSCV.cjs.map} +1 -1
- package/dist/{chunk-GFYGYME3.js → chunk-OQ7RUNOC.js} +3 -3
- package/dist/{chunk-GFYGYME3.js.map → chunk-OQ7RUNOC.js.map} +1 -1
- package/dist/chunk-RFIBUWLF.cjs +232 -0
- package/dist/chunk-RFIBUWLF.cjs.map +1 -0
- package/dist/{chunk-N26CXGXC.cjs → chunk-RQ2Y7USX.cjs} +201 -3
- package/dist/chunk-RQ2Y7USX.cjs.map +1 -0
- package/dist/{chunk-LT2X5N37.js → chunk-UBEI6WFJ.js} +58 -1592
- package/dist/chunk-UBEI6WFJ.js.map +1 -0
- package/dist/chunk-UUHUQHXR.cjs +56 -0
- package/dist/chunk-UUHUQHXR.cjs.map +1 -0
- package/dist/{chunk-ECERC6TI.js → chunk-VHJHY7TT.js} +3 -3
- package/dist/{chunk-ECERC6TI.js.map → chunk-VHJHY7TT.js.map} +1 -1
- package/dist/{chunk-44R3CCZT.cjs → chunk-WS5EX7DN.cjs} +37 -6
- package/dist/chunk-WS5EX7DN.cjs.map +1 -0
- package/dist/{chunk-IQU2GI6V.js → chunk-XVME4XYD.js} +1982 -93
- package/dist/chunk-XVME4XYD.js.map +1 -0
- package/dist/collaboration/index.cjs +42 -42
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +5 -5
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +710 -51
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +4 -0
- package/dist/connect/index.js +655 -20
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedSkillsLibrary.d.ts +26 -0
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +1 -1
- package/dist/connection/ConnectedWorkflowLauncher.d.ts +35 -0
- package/dist/connection/ConnectedWorkflowsTable.d.ts +62 -0
- package/dist/connection/workspaceData.d.ts +45 -0
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +22 -23
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +4 -5
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +503 -472
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +49 -49
- package/dist/settings/index.js +6 -6
- package/dist/shell/index.cjs +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/studio/index.cjs +2 -2
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +32 -30
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +20 -18
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-3FFRYZKV.js.map +0 -1
- package/dist/chunk-44R3CCZT.cjs.map +0 -1
- package/dist/chunk-4XJZ6AAY.js +0 -407
- package/dist/chunk-4XJZ6AAY.js.map +0 -1
- package/dist/chunk-6S5FLMWG.js.map +0 -1
- package/dist/chunk-7D737FLE.cjs +0 -43
- package/dist/chunk-7D737FLE.cjs.map +0 -1
- package/dist/chunk-IQU2GI6V.js.map +0 -1
- package/dist/chunk-LIHRGG4M.cjs.map +0 -1
- package/dist/chunk-LT2X5N37.js.map +0 -1
- package/dist/chunk-N26CXGXC.cjs.map +0 -1
- package/dist/chunk-OZLWSNUC.cjs.map +0 -1
- package/dist/chunk-S5HZBXZA.cjs +0 -430
- package/dist/chunk-S5HZBXZA.cjs.map +0 -1
- package/dist/chunk-XD2M6LIG.js +0 -41
- package/dist/chunk-XD2M6LIG.js.map +0 -1
package/dist/agents/index.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView,
|
|
3
|
-
import '../chunk-
|
|
4
|
-
|
|
2
|
+
export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, 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_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_ROW_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_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_RUN_STATUS_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, GoalCriteria, MAX_TASK_DEPTH, NewThreadDialog, PillSelect, RecurrenceBuilder, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, SkillCard, SkillRow, 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, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WorkflowRunStatus, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsToolbar, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildRRule, buildTaskRows, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveWorkflowName, descendantIds, describeRRule, filterConversationRows, firstWords, formatElapsed, goalProgress, groupThreadActivity, hasTaskFields, humanizeSection, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isOutOfBounds, isPlainTodo, isValidAgentName, isoToLocalInput, linkedRunsFromActivity, localInputToIso, moveTargets, newThreadToRequest, nextCriterionId, ownerExtId, parseRRule, prettifyKey, resolveScopeInputs, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, useWorkflowPreview, workflowTaskFields, workflowToComposerValues, workflowWhen } from '../chunk-UBEI6WFJ.js';
|
|
3
|
+
import '../chunk-CQCC7LE7.js';
|
|
4
|
+
export { ActionStepBody, AgentSelect, ApprovalEvidence, AssigneeLine, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, PersonPill, SKILL_FIELD_TYPE_LABELS, SKILL_MAIN_FILENAME, SKILL_SOURCE_LABELS, SKILL_TYPES, SKILL_TYPE_LABELS, SchemaForm, SendBackControl, SkillActionButton, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillLibraryDetail, SkillTile, SkillTypeBadge, SkillViewToggle, TaskActivityTimeline, TaskTriggerChip, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunner, WorkflowsTable, activeStepId, buildLibrarySkills, buildWorkflowScopeSource, buildZipSkillImport, createWorkflowColumns, documentScopeLabels, filterLibrarySkills, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, hasTrigger, importMarkdownSkill, importSkillFile, importSkillFromUrl, isIncompleteSignal, isMainSkillFile, isSkillRow, layoutFromPlanSteps, matchWorkflowScope, parseSkillFrontmatter, readSkillArchive, serializeSkill, skillSlug, stepWindow, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, useWorkflowView, workflowFromSkillMarkdown, workflowStatus, workflowToSkillMarkdown, workflowTriggerType } from '../chunk-XVME4XYD.js';
|
|
5
|
+
import '../chunk-3RJN2VTL.js';
|
|
6
|
+
import '../chunk-KSHKTOY2.js';
|
|
5
7
|
import '../chunk-P6GHJSLR.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, SKILL_MAIN_FILENAME, SKILL_TYPES, SchemaForm, SendBackControl, TaskActivityTimeline, WorkflowRunner, activeStepId, buildZipSkillImport, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, importMarkdownSkill, importSkillFile, importSkillFromUrl, isIncompleteSignal, isMainSkillFile, layoutFromPlanSteps, parseSkillFrontmatter, readSkillArchive, serializeSkill, skillSlug, stepWindow, taskActivityHeadline, toPlanAssignee, toPlanDocumentRef, toPlanSteps, useWorkflowView, workflowFromSkillMarkdown, workflowToSkillMarkdown } from '../chunk-IQU2GI6V.js';
|
|
7
|
-
import '../chunk-XD2M6LIG.js';
|
|
8
|
-
import '../chunk-6S5FLMWG.js';
|
|
9
8
|
import '../chunk-RFXJYIDV.js';
|
|
10
9
|
import '../chunk-5LXQPP2K.js';
|
|
11
|
-
import '../chunk-444XKG46.js';
|
|
12
10
|
import '../chunk-EVUEIBNU.js';
|
|
11
|
+
import '../chunk-444XKG46.js';
|
|
13
12
|
import '../chunk-NUNKSZKU.js';
|
|
14
13
|
import '../chunk-YU2KUMGE.js';
|
|
15
14
|
import '../chunk-N5YEF3LC.js';
|
|
16
15
|
import '../chunk-4WWM3GQ5.js';
|
|
17
|
-
import '../chunk-YNIBUKV5.js';
|
|
18
|
-
import '../chunk-TX2ZICS7.js';
|
|
19
16
|
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, mergeSkillWorkflows, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillTitle, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepDocuments, stepFields, stepKindOf, stepLevels, stepPhase, stepStatesFromActivity, upstreamSteps, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-Y5KTM3V5.js';
|
|
20
17
|
import '../chunk-AA3PT6KR.js';
|
|
21
18
|
import '../chunk-AUS3KBHJ.js';
|
|
22
19
|
import '../chunk-SLSBJRWW.js';
|
|
23
20
|
import '../chunk-NPLYHR2E.js';
|
|
24
21
|
import '../chunk-7F6CBP3Z.js';
|
|
22
|
+
import '../chunk-YNIBUKV5.js';
|
|
23
|
+
import '../chunk-TX2ZICS7.js';
|
|
25
24
|
import '../chunk-OXF2IFXG.js';
|
|
26
25
|
import '../chunk-VUNV25KB.js';
|
|
27
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One skill of the library, in full: what it does, what it will ask you, its instructions, and what
|
|
3
|
+
* you can do with it. Everything is plain words: Run, Make a copy, Share with everyone, Export,
|
|
4
|
+
* Delete.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
import { type LibrarySkill } from './skillLibrary';
|
|
8
|
+
export interface SkillLibraryActions {
|
|
9
|
+
onRun: () => void;
|
|
10
|
+
onCopy: () => void;
|
|
11
|
+
onEdit: () => void;
|
|
12
|
+
onToggleShare: () => void;
|
|
13
|
+
onExport: () => void;
|
|
14
|
+
onDelete: () => void;
|
|
15
|
+
isBusy: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface SkillLibraryDetailProps {
|
|
18
|
+
skill: LibrarySkill;
|
|
19
|
+
/** Its instructions (a stored skill's are read on demand). */
|
|
20
|
+
instructions: string;
|
|
21
|
+
/** The instructions are still being read. */
|
|
22
|
+
isLoading?: boolean;
|
|
23
|
+
actions: SkillLibraryActions;
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare function SkillLibraryDetail({ skill, instructions, isLoading, actions, icon, }: SkillLibraryDetailProps): import("react").JSX.Element;
|
|
@@ -5,3 +5,5 @@ export { SkillGenerateForm, SkillEditForm, DEFAULT_SKILL_GENERATE_FORM_LABELS, D
|
|
|
5
5
|
export { SkillFilterChips, SkillViewToggle, SkillTile, SkillDetail, SkillDetailSection, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, type SkillFilterOption, type SkillFilterChipsProps, type SkillBrowserView, type SkillViewToggleLabels, type SkillViewToggleProps, type SkillTileProps, type SkillDetailProps, } from './SkillBrowserParts';
|
|
6
6
|
export { parseSkillFrontmatter, serializeSkill, isMainSkillFile, SKILL_MAIN_FILENAME, SKILL_TYPES, type SkillType, type ParsedSkill, } from './skillFiles';
|
|
7
7
|
export { importSkillFile, importSkillFromUrl, importMarkdownSkill, buildZipSkillImport, readSkillArchive, type SkillImportResult, type SkillUploadEntry, type SkillArchiveEntry, } from './skillImport';
|
|
8
|
+
export { buildLibrarySkills, filterLibrarySkills, SKILL_SOURCE_LABELS, SKILL_TYPE_LABELS, SKILL_FIELD_TYPE_LABELS, type LibrarySkill, type LibrarySkillListing, type SkillSource, type SkillFilters, } from './skillLibrary';
|
|
9
|
+
export { SkillLibraryDetail, type SkillLibraryDetailProps, type SkillLibraryActions, } from './SkillLibraryDetail';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The skills library's one list: the host's built-in skills (its own definitions), the user's own
|
|
3
|
+
* and the ones other people shared, each with where it comes from. Pure, so the filters and the
|
|
4
|
+
* "your copy replaces the original" rule are testable without a backend.
|
|
5
|
+
*/
|
|
6
|
+
import type { WorkflowDefinition, WorkflowFieldType } from '../workflows/types';
|
|
7
|
+
import { type SkillListing } from '../workflows/workflow';
|
|
8
|
+
export type SkillSource = 'builtin' | 'mine' | 'shared';
|
|
9
|
+
/** A skill as the skills list returns it, with what the library reads of it. */
|
|
10
|
+
export interface LibrarySkillListing extends SkillListing {
|
|
11
|
+
skill_type?: string | null;
|
|
12
|
+
is_owner?: boolean | null;
|
|
13
|
+
/** Its main file (SKILL.md); a built-in has none. */
|
|
14
|
+
doc_ext_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface LibrarySkill {
|
|
17
|
+
/** The slug: how it is typed after a slash, and what a copy keeps. */
|
|
18
|
+
slug: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
source: SkillSource;
|
|
22
|
+
/** `markdown` (plain instructions), `python`, ... */
|
|
23
|
+
type: string;
|
|
24
|
+
/** Yours and shared with everyone. */
|
|
25
|
+
isShared: boolean;
|
|
26
|
+
/** Yours, and it has the same name as a built-in one: yours is used instead. */
|
|
27
|
+
replacesBuiltin: boolean;
|
|
28
|
+
workflow: WorkflowDefinition;
|
|
29
|
+
/** Its main file; absent for a built-in. */
|
|
30
|
+
docExtId?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const SKILL_SOURCE_LABELS: Record<SkillSource, string>;
|
|
33
|
+
/** What a kind of skill is called to a reader. */
|
|
34
|
+
export declare const SKILL_TYPE_LABELS: Record<string, string>;
|
|
35
|
+
export declare const SKILL_FIELD_TYPE_LABELS: Record<WorkflowFieldType, string>;
|
|
36
|
+
/**
|
|
37
|
+
* @param builtins the host's built-in skills (prompt workflows with their own forms)
|
|
38
|
+
* @param listings the skills list (yours, shared, and the deployment's built-ins)
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildLibrarySkills(builtins: WorkflowDefinition[], listings: LibrarySkillListing[]): LibrarySkill[];
|
|
41
|
+
export interface SkillFilters {
|
|
42
|
+
query: string;
|
|
43
|
+
source: SkillSource | 'all';
|
|
44
|
+
type: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function filterLibrarySkills(skills: LibrarySkill[], f: SkillFilters): LibrarySkill[];
|
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import { type PickerDocument } from '../../settings/DocumentPicker';
|
|
3
2
|
import type { WorkflowField, WorkflowScope } from './types';
|
|
3
|
+
/** A workspace file a `documents` field can pick. */
|
|
4
|
+
export interface WorkflowFieldDocument extends PickerDocument {
|
|
5
|
+
/** Its processing status (`completed`, `processing`…); absent = ready. */
|
|
6
|
+
status?: string | null;
|
|
7
|
+
/** An image (for an image-only field, and its thumbnail). */
|
|
8
|
+
isImage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface WorkflowDocumentsFieldLabels {
|
|
11
|
+
pickOne: string;
|
|
12
|
+
pickMany: string;
|
|
13
|
+
/** The heading of the one list of files (a run has no conversation). */
|
|
14
|
+
allDocuments: string;
|
|
15
|
+
addFiles: string;
|
|
16
|
+
adding: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
remove: (name: string) => string;
|
|
19
|
+
/** A chosen file that is not ready yet: where it is, and that it can still be picked. */
|
|
20
|
+
pending: (name: string, status: string) => string;
|
|
21
|
+
status: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS: WorkflowDocumentsFieldLabels;
|
|
4
24
|
export interface WorkflowDocumentsFieldProps {
|
|
5
25
|
field: WorkflowField;
|
|
6
26
|
value: WorkflowScope;
|
|
7
27
|
onChange: (value: WorkflowScope) => void;
|
|
8
|
-
|
|
9
|
-
|
|
28
|
+
/** The workspace's files. */
|
|
29
|
+
documents: WorkflowFieldDocument[];
|
|
30
|
+
/** The list has arrived (until then an empty list is not "no files yet"). Default true. */
|
|
31
|
+
loaded?: boolean;
|
|
32
|
+
/** A chosen image's thumbnail (`data:` or URL), for the gallery of a several-files field. */
|
|
33
|
+
thumbnailOf?: (id: string) => string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Add files (dropped ones, or none: the host asks). Absent: no Add files and no drop. A file
|
|
36
|
+
* that appears in `documents` after this is chosen at once, even while it processes.
|
|
37
|
+
*/
|
|
38
|
+
onAddFiles?: (files?: File[]) => void;
|
|
39
|
+
/** Files are being added (the button waits). */
|
|
40
|
+
adding?: boolean;
|
|
41
|
+
labels?: Partial<WorkflowDocumentsFieldLabels>;
|
|
10
42
|
}
|
|
11
|
-
/**
|
|
12
|
-
|
|
43
|
+
/**
|
|
44
|
+
* A workflow `documents` field: an explicit pick of workspace files. One file is a combobox;
|
|
45
|
+
* several (`max` > 1) show the chosen ones as removable tiles, with a thumbnail for images, so you
|
|
46
|
+
* SEE what you are steering a run with. With `onAddFiles`, files can be added (or dropped) right
|
|
47
|
+
* here, and an empty workspace says so instead of offering an empty list.
|
|
48
|
+
*/
|
|
49
|
+
export declare function WorkflowDocumentsField({ field, value, onChange, documents, loaded, thumbnailOf, onAddFiles, adding, labels, }: WorkflowDocumentsFieldProps): import("react").JSX.Element;
|
|
@@ -5,8 +5,8 @@ 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';
|
|
8
|
+
export { buildWorkflowScopeSource, documentScopeLabels, matchWorkflowScope, type WorkflowScopeDocument, type WorkflowScopeLabel, type WorkflowScopeTag, } from './workspaceScope';
|
|
9
|
+
export { WorkflowDocumentsField, DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS, type WorkflowDocumentsFieldProps, type WorkflowDocumentsFieldLabels, type WorkflowFieldDocument, } from './WorkflowDocumentsField';
|
|
10
10
|
export { workflowSteps, isSteppedWorkflow, stepDependencies, dependsOn, orderSteps, validateWorkflowGraph, stepLevels, stepStatesFromActivity, runFields, initialRunInputs, stepPhase, isRunFinished, isPersonStep, nextAction, validateStep, fillRunText, fillStepInputs, runThreadTitle, reviewInstructions, composeStepPrompt, stepFields, runFieldsOf, isPersonAction, canAssign, upstreamSteps, sendBackTargets, stepConfigProblems, splitDocRef, assigneeName, DEFAULT_ASSIGNEE_WORDING, type AssigneeWording, type WorkflowStepProblem, type StepComposeOptions, type WorkflowActivityEvent, type WorkflowGraphProblem, type WorkflowStepPhase, type WorkflowNextAction, } from './run';
|
|
11
11
|
export { toPlanSteps, fromPlanSteps, layoutFromPlanSteps, isIncompleteSignal, toPlanAssignee, fromPlanAssignee, toPlanDocumentRef, fromPlanDocumentRef, type TaskPlanStep, type ToPlanOptions, } from './planSteps';
|
|
12
12
|
export { workflowToSkillMarkdown, workflowFromSkillMarkdown, skillSlug } from './skillMarkdown';
|
|
@@ -12,6 +12,18 @@ export interface WorkflowScopeLabel {
|
|
|
12
12
|
name: string;
|
|
13
13
|
color?: string;
|
|
14
14
|
}
|
|
15
|
+
/** A workspace tag, as far as the scope picker reads it. */
|
|
16
|
+
export interface WorkflowScopeTag extends WorkflowScopeLabel {
|
|
17
|
+
kind?: string | null;
|
|
18
|
+
doctag_count?: number | null;
|
|
19
|
+
facttag_count?: number | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The labels a scope picker offers: the workspace's document vocabulary, as the Files page's quick
|
|
23
|
+
* filter has it. Saved searches are not labels; a tag used only on facts is not a file label; one
|
|
24
|
+
* used nowhere yet is offered.
|
|
25
|
+
*/
|
|
26
|
+
export declare function documentScopeLabels<T extends WorkflowScopeTag>(tags: T[]): T[];
|
|
15
27
|
/** Match the same folder/label OR semantics as the document library; explicit file picks win. */
|
|
16
28
|
export declare function matchWorkflowScope<T extends WorkflowScopeDocument>(docs: T[], scope: WorkflowScope): T[];
|
|
17
29
|
/** Turn real workspace documents and labels into the shared workflow scope picker model. */
|
package/dist/calls/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkDWZXSPMB_cjs = require('../chunk-DWZXSPMB.cjs');
|
|
5
5
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
6
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
7
6
|
var chunkMWDW5UBW_cjs = require('../chunk-MWDW5UBW.cjs');
|
|
8
7
|
require('../chunk-PPCATBOY.cjs');
|
|
9
8
|
require('../chunk-MHVNT4J3.cjs');
|
|
9
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
10
10
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
11
11
|
require('../chunk-DES3K4SD.cjs');
|
|
12
12
|
var react = require('react');
|
|
@@ -1986,7 +1986,7 @@ function WebinarEndConfirm({
|
|
|
1986
1986
|
const { isPending, run } = usePending();
|
|
1987
1987
|
const ending = isPending("end");
|
|
1988
1988
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1989
|
-
|
|
1989
|
+
chunkDWZXSPMB_cjs.ConfirmDialog,
|
|
1990
1990
|
{
|
|
1991
1991
|
isOpen: open,
|
|
1992
1992
|
onClose: () => onOpenChange(false),
|
package/dist/calls/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ConfirmDialog } from '../chunk-
|
|
2
|
+
import { ConfirmDialog } from '../chunk-VHJHY7TT.js';
|
|
3
3
|
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
4
|
-
import '../chunk-TX2ZICS7.js';
|
|
5
4
|
import { NOTICE_MS, gridSlots, gridLayout, spotlightBox, CAPTION_TTL_MS, CAPTION_LINES, speakerAccent, formatElapsed, initialsOf, SPEAKING_LEVEL, nextSpotlight, INITIAL_SPOTLIGHT } from '../chunk-Z3AZ7Q5X.js';
|
|
6
5
|
export { CAPTION_LINES, CAPTION_TTL_MS, INITIAL_SPOTLIGHT, MAX_GRID_TILES, NOTICE_MS, SPEAKER_ACCENTS, SPEAKING_LEVEL, TILE_ASPECT, formatElapsed, gridLayout, gridSlots, initialsOf, nearestCorner, nextSpotlight, pickSpotlight, rowCounts, speakerAccent, speakerBorder, spotlightBox, stageContentHeight } from '../chunk-Z3AZ7Q5X.js';
|
|
7
6
|
import '../chunk-NPLYHR2E.js';
|
|
8
7
|
import '../chunk-7F6CBP3Z.js';
|
|
8
|
+
import '../chunk-TX2ZICS7.js';
|
|
9
9
|
import { fromNow } from '../chunk-OXF2IFXG.js';
|
|
10
10
|
import '../chunk-VUNV25KB.js';
|
|
11
11
|
import { forwardRef, useState, useRef, useMemo, useEffect, useSyncExternalStore, useCallback } from 'react';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useConnectedWorkspace } from './chunk-L2PAPOZ5.js';
|
|
3
|
+
import { createContext, useMemo, useContext } from 'react';
|
|
4
|
+
import { useDocuments, useTags, useConversations } from '@arbidocs/react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var WorkspaceDataContext = createContext({});
|
|
8
|
+
function ConnectedWorkspaceDataProvider({
|
|
9
|
+
documents,
|
|
10
|
+
tags,
|
|
11
|
+
conversations,
|
|
12
|
+
children
|
|
13
|
+
}) {
|
|
14
|
+
const value = useMemo(
|
|
15
|
+
() => ({ documents, tags, conversations }),
|
|
16
|
+
[documents, tags, conversations]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ jsx(WorkspaceDataContext.Provider, { value, children });
|
|
19
|
+
}
|
|
20
|
+
var EMPTY = [];
|
|
21
|
+
function useList(hosted, own) {
|
|
22
|
+
const source = hosted ?? own;
|
|
23
|
+
const data = source.data ?? EMPTY;
|
|
24
|
+
const refetch = hosted ? hosted.refetch : own.refetch;
|
|
25
|
+
return useMemo(
|
|
26
|
+
() => ({ data, loaded: source.isFetched, refetch }),
|
|
27
|
+
[data, source.isFetched, refetch]
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function useConnectedDocuments() {
|
|
31
|
+
const hosted = useContext(WorkspaceDataContext).documents;
|
|
32
|
+
const { workspaceId } = useConnectedWorkspace();
|
|
33
|
+
const own = useDocuments(workspaceId ?? void 0, { enabled: !hosted });
|
|
34
|
+
return useList(hosted, own);
|
|
35
|
+
}
|
|
36
|
+
function useConnectedTags() {
|
|
37
|
+
const hosted = useContext(WorkspaceDataContext).tags;
|
|
38
|
+
const { workspaceId } = useConnectedWorkspace();
|
|
39
|
+
const own = useTags(workspaceId ?? void 0, { enabled: !hosted });
|
|
40
|
+
return useList(hosted, own);
|
|
41
|
+
}
|
|
42
|
+
function useConnectedConversations(options) {
|
|
43
|
+
const hosted = useContext(WorkspaceDataContext).conversations;
|
|
44
|
+
const { workspaceId } = useConnectedWorkspace();
|
|
45
|
+
const own = useConversations(workspaceId ?? void 0, { enabled: !hosted, live: options?.live });
|
|
46
|
+
return useList(hosted, own);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { ConnectedWorkspaceDataProvider, useConnectedConversations, useConnectedDocuments, useConnectedTags };
|
|
50
|
+
//# sourceMappingURL=chunk-2KUCVSFF.js.map
|
|
51
|
+
//# sourceMappingURL=chunk-2KUCVSFF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connection/workspaceData.tsx"],"names":[],"mappings":";;;;;AA+BA,IAAM,oBAAA,GAAuB,aAAA,CAAsC,EAAE,CAAA;AAE9D,SAAS,8BAAA,CAA+B;AAAA,EAC7C,SAAA;AAAA,EACA,IAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF,CAAA,EAAqD;AACnD,EAAA,MAAM,KAAA,GAAQ,OAAA;AAAA,IACZ,OAAO,EAAE,SAAA,EAAW,IAAA,EAAM,aAAA,EAAc,CAAA;AAAA,IACxC,CAAC,SAAA,EAAW,IAAA,EAAM,aAAa;AAAA,GACjC;AACA,EAAA,uBAAO,GAAA,CAAC,oBAAA,CAAqB,QAAA,EAArB,EAA8B,OAAe,QAAA,EAAS,CAAA;AAChE;AASA,IAAM,QAAiB,EAAC;AAExB,SAAS,OAAA,CACP,QACA,GAAA,EACwB;AACxB,EAAA,MAAM,SAAS,MAAA,IAAU,GAAA;AACzB,EAAA,MAAM,IAAA,GAAO,OAAO,IAAA,IAAS,KAAA;AAC7B,EAAA,MAAM,OAAA,GAAU,MAAA,GAAS,MAAA,CAAO,OAAA,GAAU,GAAA,CAAI,OAAA;AAC9C,EAAA,OAAO,OAAA;AAAA,IACL,OAAO,EAAE,IAAA,EAAM,MAAA,EAAQ,MAAA,CAAO,WAAW,OAAA,EAAQ,CAAA;AAAA,IACjD,CAAC,IAAA,EAAM,MAAA,CAAO,SAAA,EAAW,OAAO;AAAA,GAClC;AACF;AAGO,SAAS,qBAAA,GAAgE;AAC9E,EAAA,MAAM,MAAA,GAAS,UAAA,CAAW,oBAAoB,CAAA,CAAE,SAAA;AAChD,EAAA,MAAM,EAAE,WAAA,EAAY,GAAI,qBAAA,EAAsB;AAC9C,EAAA,MAAM,GAAA,GAAM,aAAa,WAAA,IAAe,MAAA,EAAW,EAAE,OAAA,EAAS,CAAC,QAAQ,CAAA;AACvE,EAAA,OAAO,OAAA,CAAQ,QAAQ,GAAG,CAAA;AAC5B;AAGO,SAAS,gBAAA,GAAsD;AACpE,EAAA,MAAM,MAAA,GAAS,UAAA,CAAW,oBAAoB,CAAA,CAAE,IAAA;AAChD,EAAA,MAAM,EAAE,WAAA,EAAY,GAAI,qBAAA,EAAsB;AAC9C,EAAA,MAAM,GAAA,GAAM,QAAQ,WAAA,IAAe,MAAA,EAAW,EAAE,OAAA,EAAS,CAAC,QAAQ,CAAA;AAClE,EAAA,OAAO,OAAA,CAAQ,QAAQ,GAAG,CAAA;AAC5B;AAMO,SAAS,0BAA0B,OAAA,EAEK;AAC7C,EAAA,MAAM,MAAA,GAAS,UAAA,CAAW,oBAAoB,CAAA,CAAE,aAAA;AAChD,EAAA,MAAM,EAAE,WAAA,EAAY,GAAI,qBAAA,EAAsB;AAC9C,EAAA,MAAM,GAAA,GAAM,gBAAA,CAAiB,WAAA,IAAe,MAAA,EAAW,EAAE,OAAA,EAAS,CAAC,MAAA,EAAQ,IAAA,EAAM,OAAA,EAAS,IAAA,EAAM,CAAA;AAChG,EAAA,OAAO,OAAA,CAAQ,QAAQ,GAAG,CAAA;AAC5B","file":"chunk-2KUCVSFF.js","sourcesContent":["/**\n * The open workspace's documents, tags and conversations for the connected kits. By default each kit reads them\n * through the `@arbidocs/react` hooks. A host that already keeps these lists live in its own cache\n * (the ARBI app, with its progressive loader and WebSocket patches) passes them once through\n * `ConnectedWorkspaceDataProvider`, so the kits show the same list and nothing is fetched twice.\n */\n\nimport { createContext, useContext, useMemo, type ReactNode } from 'react'\nimport { useConversations, useDocuments, useTags } from '@arbidocs/react'\nimport { useConnectedWorkspace } from './ConnectionProvider'\n\nexport type ConnectedDocument = NonNullable<ReturnType<typeof useDocuments>['data']>[number]\nexport type ConnectedTag = NonNullable<ReturnType<typeof useTags>['data']>[number]\nexport type ConnectedConversation = NonNullable<ReturnType<typeof useConversations>['data']>[number]\n\n/**\n * A list the host keeps: its rows, whether it has arrived, and how to read it again (absent: the\n * host keeps it current itself, so a kit never re-reads it).\n */\nexport interface ConnectedList<T> {\n data: T[] | undefined\n isFetched: boolean\n refetch?: () => unknown\n}\n\nexport interface ConnectedWorkspaceData {\n documents?: ConnectedList<ConnectedDocument>\n tags?: ConnectedList<ConnectedTag>\n conversations?: ConnectedList<ConnectedConversation>\n}\n\nconst WorkspaceDataContext = createContext<ConnectedWorkspaceData>({})\n\nexport function ConnectedWorkspaceDataProvider({\n documents,\n tags,\n conversations,\n children,\n}: ConnectedWorkspaceData & { children: ReactNode }) {\n const value = useMemo(\n () => ({ documents, tags, conversations }),\n [documents, tags, conversations]\n )\n return <WorkspaceDataContext.Provider value={value}>{children}</WorkspaceDataContext.Provider>\n}\n\nexport interface ConnectedListResult<T> {\n data: T[]\n loaded: boolean\n /** Read the list again after a change made here; absent when the host keeps it current. */\n refetch?: () => unknown\n}\n\nconst EMPTY: never[] = []\n\nfunction useList<T>(\n hosted: ConnectedList<T> | undefined,\n own: { data?: T[]; isFetched: boolean; refetch: () => unknown }\n): ConnectedListResult<T> {\n const source = hosted ?? own\n const data = source.data ?? (EMPTY as T[])\n const refetch = hosted ? hosted.refetch : own.refetch\n return useMemo(\n () => ({ data, loaded: source.isFetched, refetch }),\n [data, source.isFetched, refetch]\n )\n}\n\n/** The open workspace's documents: the host's list when it gives one, else read here. */\nexport function useConnectedDocuments(): ConnectedListResult<ConnectedDocument> {\n const hosted = useContext(WorkspaceDataContext).documents\n const { workspaceId } = useConnectedWorkspace()\n const own = useDocuments(workspaceId ?? undefined, { enabled: !hosted })\n return useList(hosted, own)\n}\n\n/** The open workspace's tags: the host's list when it gives one, else read here. */\nexport function useConnectedTags(): ConnectedListResult<ConnectedTag> {\n const hosted = useContext(WorkspaceDataContext).tags\n const { workspaceId } = useConnectedWorkspace()\n const own = useTags(workspaceId ?? undefined, { enabled: !hosted })\n return useList(hosted, own)\n}\n\n/**\n * The open workspace's conversations (threads and tasks): the host's list when it gives one, else\n * read here (`live`: re-read while shown, as a run moves on by itself).\n */\nexport function useConnectedConversations(options?: {\n live?: boolean\n}): ConnectedListResult<ConnectedConversation> {\n const hosted = useContext(WorkspaceDataContext).conversations\n const { workspaceId } = useConnectedWorkspace()\n const own = useConversations(workspaceId ?? undefined, { enabled: !hosted, live: options?.live })\n return useList(hosted, own)\n}\n"]}
|