@arbidocs/blocks 0.4.135 → 0.4.137

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 (123) hide show
  1. package/dist/agents/index.cjs +422 -367
  2. package/dist/agents/index.js +8 -9
  3. package/dist/agents/skills/index.d.ts +2 -0
  4. package/dist/agents/skills/skillFiles.d.ts +65 -0
  5. package/dist/agents/skills/skillImport.d.ts +36 -0
  6. package/dist/agents/workflows/WorkflowDocumentsField.d.ts +42 -5
  7. package/dist/agents/workflows/index.d.ts +3 -3
  8. package/dist/agents/workflows/workflow.d.ts +19 -0
  9. package/dist/agents/workflows/workspaceScope.d.ts +12 -0
  10. package/dist/chat/index.cjs +138 -138
  11. package/dist/chat/index.js +3 -3
  12. package/dist/chunk-2KUCVSFF.js +51 -0
  13. package/dist/chunk-2KUCVSFF.js.map +1 -0
  14. package/dist/{chunk-GDBDHOI4.js → chunk-3RJN2VTL.js} +36 -6
  15. package/dist/chunk-3RJN2VTL.js.map +1 -0
  16. package/dist/{chunk-6AALMYPS.cjs → chunk-6F7SZCVL.cjs} +23 -2
  17. package/dist/chunk-6F7SZCVL.cjs.map +1 -0
  18. package/dist/{chunk-PUCY3UXN.js → chunk-7M4C6CK7.js} +3 -3
  19. package/dist/{chunk-PUCY3UXN.js.map → chunk-7M4C6CK7.js.map} +1 -1
  20. package/dist/{chunk-2PNNCEPH.js → chunk-ATJUVHVB.js} +1545 -8
  21. package/dist/chunk-ATJUVHVB.js.map +1 -0
  22. package/dist/{chunk-4S5IDT5F.cjs → chunk-BUNZWOPX.cjs} +5 -5
  23. package/dist/{chunk-4S5IDT5F.cjs.map → chunk-BUNZWOPX.cjs.map} +1 -1
  24. package/dist/{chunk-KYDRUFWT.cjs → chunk-C3ZRLULA.cjs} +5 -5
  25. package/dist/{chunk-KYDRUFWT.cjs.map → chunk-C3ZRLULA.cjs.map} +1 -1
  26. package/dist/{chunk-SARREDFP.cjs → chunk-CHVCTKF4.cjs} +1620 -47
  27. package/dist/chunk-CHVCTKF4.cjs.map +1 -0
  28. package/dist/chunk-CQCC7LE7.js +210 -0
  29. package/dist/chunk-CQCC7LE7.js.map +1 -0
  30. package/dist/{chunk-4UMXQPNA.js → chunk-E5OYHJMU.js} +3 -3
  31. package/dist/{chunk-4UMXQPNA.js.map → chunk-E5OYHJMU.js.map} +1 -1
  32. package/dist/{chunk-PJJY6CYL.cjs → chunk-EHOPZBAX.cjs} +11 -11
  33. package/dist/{chunk-PJJY6CYL.cjs.map → chunk-EHOPZBAX.cjs.map} +1 -1
  34. package/dist/{chunk-4QIIDXLF.cjs → chunk-HDYWXEQU.cjs} +8 -8
  35. package/dist/{chunk-4QIIDXLF.cjs.map → chunk-HDYWXEQU.cjs.map} +1 -1
  36. package/dist/{chunk-GZPTWHP5.cjs → chunk-HLB4DIYV.cjs} +5 -5
  37. package/dist/{chunk-GZPTWHP5.cjs.map → chunk-HLB4DIYV.cjs.map} +1 -1
  38. package/dist/{chunk-TT6XV6WM.cjs → chunk-JY73DJOS.cjs} +78 -1274
  39. package/dist/chunk-JY73DJOS.cjs.map +1 -0
  40. package/dist/{chunk-ARDHLU73.cjs → chunk-KDUGTKVI.cjs} +21 -2
  41. package/dist/chunk-KDUGTKVI.cjs.map +1 -0
  42. package/dist/{chunk-UMIY4SQS.js → chunk-KMNZ2RVO.js} +17 -1191
  43. package/dist/chunk-KMNZ2RVO.js.map +1 -0
  44. package/dist/{chunk-6S5FLMWG.js → chunk-KSHKTOY2.js} +203 -7
  45. package/dist/chunk-KSHKTOY2.js.map +1 -0
  46. package/dist/{chunk-4RLCRFZS.js → chunk-L2PAPOZ5.js} +21 -3
  47. package/dist/chunk-L2PAPOZ5.js.map +1 -0
  48. package/dist/{chunk-QYTYW74G.js → chunk-L3T7OJRX.js} +4 -4
  49. package/dist/{chunk-QYTYW74G.js.map → chunk-L3T7OJRX.js.map} +1 -1
  50. package/dist/{chunk-ENDP7JER.js → chunk-M33QUNFH.js} +3 -3
  51. package/dist/{chunk-ENDP7JER.js.map → chunk-M33QUNFH.js.map} +1 -1
  52. package/dist/chunk-RFIBUWLF.cjs +232 -0
  53. package/dist/chunk-RFIBUWLF.cjs.map +1 -0
  54. package/dist/{chunk-N26CXGXC.cjs → chunk-RQ2Y7USX.cjs} +201 -3
  55. package/dist/chunk-RQ2Y7USX.cjs.map +1 -0
  56. package/dist/chunk-UUHUQHXR.cjs +56 -0
  57. package/dist/chunk-UUHUQHXR.cjs.map +1 -0
  58. package/dist/{chunk-SZX44LCT.js → chunk-VMESMX7N.js} +3 -3
  59. package/dist/{chunk-SZX44LCT.js.map → chunk-VMESMX7N.js.map} +1 -1
  60. package/dist/{chunk-QDEODGXE.cjs → chunk-WS5EX7DN.cjs} +37 -6
  61. package/dist/chunk-WS5EX7DN.cjs.map +1 -0
  62. package/dist/{chunk-2DFDFOM7.js → chunk-YOMPLCP6.js} +22 -3
  63. package/dist/chunk-YOMPLCP6.js.map +1 -0
  64. package/dist/connect/docx.cjs +4 -4
  65. package/dist/connect/docx.js +3 -3
  66. package/dist/connect/index.cjs +463 -97
  67. package/dist/connect/index.cjs.map +1 -1
  68. package/dist/connect/index.d.ts +5 -2
  69. package/dist/connect/index.js +387 -49
  70. package/dist/connect/index.js.map +1 -1
  71. package/dist/connection/ConnectedSkillUpload.d.ts +26 -2
  72. package/dist/connection/ConnectedWorkflowBuilder.d.ts +24 -12
  73. package/dist/connection/ConnectedWorkflowLauncher.d.ts +35 -0
  74. package/dist/connection/ConnectedWorkflowsTable.d.ts +62 -0
  75. package/dist/connection/ConnectionProvider.d.ts +17 -0
  76. package/dist/connection/workspaceData.d.ts +45 -0
  77. package/dist/facts/index.cjs +1 -1
  78. package/dist/facts/index.js +1 -1
  79. package/dist/files/index.cjs +1 -1
  80. package/dist/files/index.js +1 -1
  81. package/dist/home/index.cjs +20 -21
  82. package/dist/home/index.cjs.map +1 -1
  83. package/dist/home/index.js +2 -3
  84. package/dist/home/index.js.map +1 -1
  85. package/dist/index.cjs +610 -555
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.js +14 -15
  88. package/dist/index.js.map +1 -1
  89. package/dist/settings/index.cjs +11 -11
  90. package/dist/settings/index.js +2 -2
  91. package/dist/shell/index.cjs +1 -1
  92. package/dist/shell/index.js +1 -1
  93. package/dist/site/index.cjs +5 -5
  94. package/dist/site/index.js +1 -1
  95. package/dist/studio/index.cjs +7 -7
  96. package/dist/studio/index.js +5 -5
  97. package/dist/workflow-canvas/index.cjs +122 -96
  98. package/dist/workflow-canvas/index.cjs.map +1 -1
  99. package/dist/workflow-canvas/index.d.ts +1 -1
  100. package/dist/workflow-canvas/index.js +73 -48
  101. package/dist/workflow-canvas/index.js.map +1 -1
  102. package/node_modules/@arbidocs/coedit/package.json +1 -1
  103. package/package.json +4 -4
  104. package/dist/chunk-2DFDFOM7.js.map +0 -1
  105. package/dist/chunk-2PNNCEPH.js.map +0 -1
  106. package/dist/chunk-4RLCRFZS.js.map +0 -1
  107. package/dist/chunk-4XJZ6AAY.js +0 -407
  108. package/dist/chunk-4XJZ6AAY.js.map +0 -1
  109. package/dist/chunk-6AALMYPS.cjs.map +0 -1
  110. package/dist/chunk-6S5FLMWG.js.map +0 -1
  111. package/dist/chunk-7D737FLE.cjs +0 -43
  112. package/dist/chunk-7D737FLE.cjs.map +0 -1
  113. package/dist/chunk-ARDHLU73.cjs.map +0 -1
  114. package/dist/chunk-GDBDHOI4.js.map +0 -1
  115. package/dist/chunk-N26CXGXC.cjs.map +0 -1
  116. package/dist/chunk-QDEODGXE.cjs.map +0 -1
  117. package/dist/chunk-S5HZBXZA.cjs +0 -430
  118. package/dist/chunk-S5HZBXZA.cjs.map +0 -1
  119. package/dist/chunk-SARREDFP.cjs.map +0 -1
  120. package/dist/chunk-TT6XV6WM.cjs.map +0 -1
  121. package/dist/chunk-UMIY4SQS.js.map +0 -1
  122. package/dist/chunk-XD2M6LIG.js +0 -41
  123. package/dist/chunk-XD2M6LIG.js.map +0 -1
@@ -1,20 +1,19 @@
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_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-UMIY4SQS.js';
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_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_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, 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, 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-KMNZ2RVO.js';
3
3
  import '../chunk-RFXJYIDV.js';
4
- import '../chunk-4XJZ6AAY.js';
4
+ import '../chunk-CQCC7LE7.js';
5
5
  import '../chunk-5LXQPP2K.js';
6
- import '../chunk-P6GHJSLR.js';
7
- 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-2PNNCEPH.js';
6
+ export { ActionStepBody, AgentSelect, ApprovalEvidence, AssigneeLine, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_SCHEMA_FORM_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_MAIN_FILENAME, SKILL_TYPES, SchemaForm, SendBackControl, TaskActivityTimeline, TaskTriggerChip, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowRunner, WorkflowsTable, activeStepId, buildWorkflowScopeSource, buildZipSkillImport, createWorkflowColumns, documentScopeLabels, 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-ATJUVHVB.js';
8
7
  import '../chunk-EVUEIBNU.js';
9
- import '../chunk-6S5FLMWG.js';
8
+ import '../chunk-KSHKTOY2.js';
9
+ import '../chunk-P6GHJSLR.js';
10
+ import '../chunk-3RJN2VTL.js';
11
+ import '../chunk-444XKG46.js';
10
12
  import '../chunk-NUNKSZKU.js';
11
13
  import '../chunk-YU2KUMGE.js';
12
14
  import '../chunk-N5YEF3LC.js';
13
- import '../chunk-GDBDHOI4.js';
14
- import '../chunk-444XKG46.js';
15
- import '../chunk-XD2M6LIG.js';
16
15
  import '../chunk-4WWM3GQ5.js';
17
- 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-2DFDFOM7.js';
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-YOMPLCP6.js';
18
17
  import '../chunk-AUS3KBHJ.js';
19
18
  import '../chunk-AA3PT6KR.js';
20
19
  import '../chunk-SLSBJRWW.js';
@@ -3,3 +3,5 @@ export { SkillRow, DEFAULT_SKILL_ROW_LABELS, type SkillRowProps, type SkillRowLa
3
3
  export { SkillTypeBadge, SkillGlobalBadge, SkillActionButton, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, type SkillGlobalBadgeLabels, type SkillActionButtonProps, } from './SkillParts';
4
4
  export { SkillGenerateForm, SkillEditForm, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, type SkillGenerateFormLabels, type SkillGenerateFormTestIds, type SkillEditFormLabels, type SkillEditFormTestIds, type SkillGenerateFormProps, type SkillEditFormProps, } from './SkillForms';
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
+ export { parseSkillFrontmatter, serializeSkill, isMainSkillFile, SKILL_MAIN_FILENAME, SKILL_TYPES, type SkillType, type ParsedSkill, } from './skillFiles';
7
+ export { importSkillFile, importSkillFromUrl, importMarkdownSkill, buildZipSkillImport, readSkillArchive, type SkillImportResult, type SkillUploadEntry, type SkillArchiveEntry, } from './skillImport';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Skill files: the SKILL.md frontmatter parser / serializer.
3
+ *
4
+ * Mirrors the backend parser at
5
+ * `ARBI/src/core/instruments/skills.py::parse_skill_frontmatter` exactly so
6
+ * that SKILL.md files created by this UI round-trip through the backend skill
7
+ * loader without surprises.
8
+ *
9
+ * Backend rules we replicate:
10
+ * - Frontmatter is delimited by a leading `---` and a closing `---`.
11
+ * - It is parsed line-by-line (NOT a real YAML parser): each line is split
12
+ * on the first `:`, key is lowercased, value is trimmed.
13
+ * - `name` / `description` are metadata.
14
+ * - `model` (string), `temperature` (float 0..2), `agent` (truthy string),
15
+ * `tools` (comma-separated -> list), `type` (alias-mapped) are config.
16
+ * - Skill type is detected from frontmatter `type`, then filename extension,
17
+ * then shebang. Default is `markdown`.
18
+ * - Main file is `SKILL.md` / `skill.{py,sh,js,ts}` (case-insensitive) or
19
+ * `{skill-name}.{ext}` (stem matches the skill folder name).
20
+ *
21
+ * A skill's slug is `skillSlug` (`re.sub(r"[^a-z0-9-]", "", name.lower())`).
22
+ */
23
+ export type SkillType = 'markdown' | 'python' | 'shell' | 'javascript' | 'typescript';
24
+ export declare const SKILL_TYPES: SkillType[];
25
+ /** Canonical primary file name for a skill (Claude-Code compatible). */
26
+ export declare const SKILL_MAIN_FILENAME = "SKILL.md";
27
+ export interface ParsedSkill {
28
+ /** Skill body with frontmatter removed (trimmed, matches backend). */
29
+ content: string;
30
+ name: string;
31
+ description: string;
32
+ skillType: SkillType;
33
+ config: {
34
+ model?: string;
35
+ temperature?: number;
36
+ agent?: boolean;
37
+ tools?: string[];
38
+ };
39
+ }
40
+ /**
41
+ * Mirrors backend `_is_main_file`: a filename is the skill's primary entry
42
+ * point if it's `SKILL.md`/`skill.{ext}` (case-insensitive) or its stem
43
+ * equals the skill folder name.
44
+ */
45
+ export declare function isMainSkillFile(filename: string, skillName: string): boolean;
46
+ /**
47
+ * Parse skill frontmatter. Behaviourally equivalent to the backend
48
+ * `parse_skill_frontmatter`.
49
+ */
50
+ export declare function parseSkillFrontmatter(raw: string, filename?: string): ParsedSkill;
51
+ /**
52
+ * Serialize a skill back to a SKILL.md string. The output is intentionally in
53
+ * the simple `key: value` form the backend's line-based parser expects:
54
+ * - `tools` is written as a comma-separated string (`tools: a, b`) because
55
+ * the backend splits on `,` — a YAML list would NOT round-trip.
56
+ * - `type` is only emitted when not `markdown` (markdown is the default and
57
+ * needs no annotation).
58
+ * - `name` / `description` are always written (metadata, Claude Code compatible).
59
+ */
60
+ export declare function serializeSkill(input: {
61
+ name: string;
62
+ description: string;
63
+ body: string;
64
+ type?: SkillType;
65
+ }): string;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Skill import: turn a `.md` or `.zip` someone gave you (a file, or a link to one) into the upload
3
+ * entries `{ folder, fileName, content }` of the skill storage contract:
4
+ *
5
+ * - `.md` → one `skills/{slug}/SKILL.md`. The slug is the frontmatter `name`, else the file name.
6
+ * - `.zip` → every file under `skills/{slug}/<relpath>`, subpaths kept. The slug is the archive's
7
+ * single top-level folder, else the main file's frontmatter `name`, else the archive
8
+ * name. The main file is renamed `SKILL.md`.
9
+ *
10
+ * Junk entries (`__MACOSX/`, dotfiles, folders) are skipped. The upload itself is
11
+ * `useUploadSkillFiles` (`@arbidocs/react`).
12
+ */
13
+ export interface SkillUploadEntry {
14
+ folder: string;
15
+ fileName: string;
16
+ content: string;
17
+ }
18
+ export interface SkillImportResult {
19
+ slug: string;
20
+ entries: SkillUploadEntry[];
21
+ }
22
+ /** A file read out of an archive: its path inside it (forward slashes) and its text. */
23
+ export interface SkillArchiveEntry {
24
+ path: string;
25
+ text: string;
26
+ }
27
+ /** One Markdown skill. Slug: the frontmatter `name`, else the file name. */
28
+ export declare function importMarkdownSkill(fileName: string, text: string): SkillImportResult;
29
+ /** The upload entries of an archive's files (already read). */
30
+ export declare function buildZipSkillImport(archiveName: string, rawEntries: SkillArchiveEntry[]): SkillImportResult;
31
+ /** The files of a `.zip` (off the main thread where the browser allows it). */
32
+ export declare function readSkillArchive(file: Blob): Promise<SkillArchiveEntry[]>;
33
+ /** A skill from a file: `.md` / `.markdown`, or a `.zip`. Throws for anything else. */
34
+ export declare function importSkillFile(file: File): Promise<SkillImportResult>;
35
+ /** A skill from a link: its text, named after the last part of the path. */
36
+ export declare function importSkillFromUrl(url: string): Promise<SkillImportResult>;
@@ -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
- documents: PickerDocument[];
9
- addFilesAction?: ReactNode;
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
- /** 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;
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;
@@ -1,12 +1,12 @@
1
1
  export * from './types';
2
- export { composeWorkflowPrompt, buildLaunch, defaultInputs, validateInputs, isWorkflowScope, isEmptyWorkflowScope, skillToWorkflow, promptFieldName, SKILL_PROMPT_LABEL, SKILL_PROMPT_FALLBACK_PLACEHOLDER, workflowFromFrontmatter, fieldToFrontmatter, workflowAccepts, workflowsAccepting, workflowsForHost, inputsFromContext, type SkillLike, type WorkflowComposeContext, type WorkflowContext, } from './workflow';
2
+ export { composeWorkflowPrompt, buildLaunch, defaultInputs, validateInputs, isWorkflowScope, isEmptyWorkflowScope, skillToWorkflow, skillTitle, mergeSkillWorkflows, promptFieldName, SKILL_PROMPT_LABEL, SKILL_PROMPT_FALLBACK_PLACEHOLDER, workflowFromFrontmatter, fieldToFrontmatter, workflowAccepts, workflowsAccepting, workflowsForHost, inputsFromContext, type SkillLike, type SkillListing, type WorkflowComposeContext, type WorkflowContext, } from './workflow';
3
3
  export { SchemaForm, DEFAULT_SCHEMA_FORM_LABELS, type SchemaFormProps, type SchemaFormLabels, } from './SchemaForm';
4
4
  export { AgentSelect, DEFAULT_AGENT_SELECT_LABELS, type AgentSelectProps, type AgentSelectLabels, type AgentOption, } from './AgentSelect';
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';
@@ -55,6 +55,25 @@ export declare const SKILL_PROMPT_FALLBACK_PLACEHOLDER = "Describe what you want
55
55
  * nothing is never offered; text typed after the slash pre-fills the field.
56
56
  */
57
57
  export declare function skillToWorkflow(skill: SkillLike): WorkflowDefinition;
58
+ /** A skill named like its slug ("deep-research") reads as a title ("Deep research"); a written name is kept. */
59
+ export declare function skillTitle(name: string): string;
60
+ /** A skill as the skills list returns it (`GET /v1/assistant/skills`). */
61
+ export interface SkillListing extends Omit<SkillLike, 'arg_hint' | 'description'> {
62
+ description?: string | null;
63
+ arg_hint?: string | null;
64
+ /** `builtin` ships with ARBI; `mine` and `global` are documents someone uploaded. */
65
+ visibility?: string | null;
66
+ }
67
+ /**
68
+ * The host's own workflows together with the skills the user can run, as one list of workflows:
69
+ * `host` (in its order) and `skills` (by slug, each a one-field form, icon `skill`). An uploaded skill with a
70
+ * host workflow's id replaces it (your own copy is used instead of the original); a built-in skill
71
+ * the host already offers keeps the host's richer form, so nothing is listed twice.
72
+ */
73
+ export declare function mergeSkillWorkflows(host: WorkflowDefinition[], listings: SkillListing[]): {
74
+ host: WorkflowDefinition[];
75
+ skills: WorkflowDefinition[];
76
+ };
58
77
  /**
59
78
  * Build a workflow from parsed SKILL.md frontmatter (snake_case keys) and its body (the prompt
60
79
  * template). The inverse of what the backend will publish; seeded workflows use the same shape.
@@ -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. */