@arbidocs/blocks 0.5.50 → 0.5.51
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/README.md +22 -0
- package/dist/{ConnectedCallDock-5OLBZED2.js → ConnectedCallDock-7NYH6DKB.js} +6 -6
- package/dist/{ConnectedCallDock-5OLBZED2.js.map → ConnectedCallDock-7NYH6DKB.js.map} +1 -1
- package/dist/{ConnectedCallDock-GHJTVUSQ.cjs → ConnectedCallDock-NBEAQYTJ.cjs} +7 -7
- package/dist/{ConnectedCallDock-GHJTVUSQ.cjs.map → ConnectedCallDock-NBEAQYTJ.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-SSSKBQA7.js → ConnectedCallRoom-CUV5VWGU.js} +6 -6
- package/dist/{ConnectedCallRoom-SSSKBQA7.js.map → ConnectedCallRoom-CUV5VWGU.js.map} +1 -1
- package/dist/{ConnectedCallRoom-GVNZ3S6R.cjs → ConnectedCallRoom-WRWKPC7R.cjs} +7 -7
- package/dist/{ConnectedCallRoom-GVNZ3S6R.cjs.map → ConnectedCallRoom-WRWKPC7R.cjs.map} +1 -1
- package/dist/agents/index.cjs +355 -343
- package/dist/agents/index.js +3 -3
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +2 -1
- package/dist/agents/workflows/ProgressChevron.d.ts +37 -0
- package/dist/agents/workflows/StepBarFrame.d.ts +5 -2
- package/dist/agents/workflows/index.d.ts +1 -0
- package/dist/agents/workflows/stepWindow.d.ts +9 -0
- package/dist/calls/index.cjs +2 -2
- package/dist/calls/index.js +2 -2
- package/dist/chat/index.cjs +80 -80
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-JGFBC66V.js → chunk-2J34E5AH.js} +3 -3
- package/dist/{chunk-JGFBC66V.js.map → chunk-2J34E5AH.js.map} +1 -1
- package/dist/{chunk-RTS3B2W7.cjs → chunk-2QV2SCEB.cjs} +5 -5
- package/dist/{chunk-RTS3B2W7.cjs.map → chunk-2QV2SCEB.cjs.map} +1 -1
- package/dist/{chunk-YRORPDIY.js → chunk-3YJZGYSL.js} +3 -3
- package/dist/{chunk-YRORPDIY.js.map → chunk-3YJZGYSL.js.map} +1 -1
- package/dist/{chunk-IQ3VDTR7.js → chunk-42UKJPIQ.js} +3 -3
- package/dist/{chunk-IQ3VDTR7.js.map → chunk-42UKJPIQ.js.map} +1 -1
- package/dist/{chunk-TQYEHARI.cjs → chunk-AAHLGSSR.cjs} +5 -5
- package/dist/{chunk-TQYEHARI.cjs.map → chunk-AAHLGSSR.cjs.map} +1 -1
- package/dist/{chunk-IOPGY3IP.cjs → chunk-AEG44LPK.cjs} +23 -23
- package/dist/{chunk-IOPGY3IP.cjs.map → chunk-AEG44LPK.cjs.map} +1 -1
- package/dist/{chunk-THNTNAYI.js → chunk-CHEU7XI5.js} +3 -2
- package/dist/chunk-CHEU7XI5.js.map +1 -0
- package/dist/{chunk-O4LORAFC.js → chunk-EIJHL6ZX.js} +135 -100
- package/dist/chunk-EIJHL6ZX.js.map +1 -0
- package/dist/{chunk-7G4N2HP7.js → chunk-EJVM5IVT.js} +4 -4
- package/dist/{chunk-7G4N2HP7.js.map → chunk-EJVM5IVT.js.map} +1 -1
- package/dist/{chunk-7QJNWQ7O.js → chunk-GXNHLM5R.js} +3 -3
- package/dist/{chunk-7QJNWQ7O.js.map → chunk-GXNHLM5R.js.map} +1 -1
- package/dist/{chunk-EZLZ3MDU.cjs → chunk-JWYWP5EE.cjs} +3 -2
- package/dist/chunk-JWYWP5EE.cjs.map +1 -0
- package/dist/{chunk-JYR55F3P.cjs → chunk-K6T255ST.cjs} +211 -173
- package/dist/chunk-K6T255ST.cjs.map +1 -0
- package/dist/{chunk-4FIYA764.cjs → chunk-KKAKZSCR.cjs} +9 -9
- package/dist/{chunk-4FIYA764.cjs.map → chunk-KKAKZSCR.cjs.map} +1 -1
- package/dist/{chunk-MBGV6JHG.cjs → chunk-KYOVVXAS.cjs} +4 -4
- package/dist/{chunk-MBGV6JHG.cjs.map → chunk-KYOVVXAS.cjs.map} +1 -1
- package/dist/{chunk-PP3LWBIH.js → chunk-TFF3NMPV.js} +3 -3
- package/dist/{chunk-PP3LWBIH.js.map → chunk-TFF3NMPV.js.map} +1 -1
- package/dist/{chunk-226ILMHW.cjs → chunk-W3AYIOK2.cjs} +11 -11
- package/dist/{chunk-226ILMHW.cjs.map → chunk-W3AYIOK2.cjs.map} +1 -1
- package/dist/connect/index.cjs +351 -294
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +66 -9
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/files/upload/ConnectedUpload.d.ts +3 -1
- package/dist/connection/files/upload/ProcessingSettingsFooter.d.ts +31 -0
- package/dist/index.cjs +486 -474
- package/dist/index.js +6 -6
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +3 -3
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +2 -0
- package/dist/workflow-canvas/index.cjs +54 -52
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +5 -3
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +143 -0
- package/src/workflow-canvas/canvas.css +46 -27
- package/dist/chunk-EZLZ3MDU.cjs.map +0 -1
- package/dist/chunk-JYR55F3P.cjs.map +0 -1
- package/dist/chunk-O4LORAFC.js.map +0 -1
- package/dist/chunk-THNTNAYI.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { Accordion, AvatarBlock, Banner, BlockImage, BlockLink, CTABanner, Colum
|
|
|
7
7
|
export { Timeline } from './chunk-OVEQERPO.js';
|
|
8
8
|
export { CitationEditor } from './chunk-7O3HHX6E.js';
|
|
9
9
|
export { ContactCard, DEFAULT_CONTACT_CARD_LABELS, contactToVCard, downloadVCard, vCardFilename } from './chunk-TTS353W2.js';
|
|
10
|
-
export { DEFAULT_GLOSSARY_LABELS, DEFAULT_TAG_COLUMNS_EDITOR_LABELS, DEFAULT_TAG_DETAIL_LABELS, DEFAULT_TAG_TABLE_DOCX_LABELS, DEFAULT_TAG_TABLE_LABELS, DEFAULT_THREAD_FOLLOW_LABELS, DEFAULT_WORKSPACE_ACTIVITY_LABELS, DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS, EXTRACT_LIMIT, EntityIdentityBar, ExtractEntitiesDialog, GridRowNavigator, IDENTITY_NAME_MAX_LENGTH, LoadingIndicator, TAG_TABLE_DOCX_LANDSCAPE_AFTER, TIPS_VISIBILITY_OVERRIDE, TagColumnsEditor, TagDetail, TagPicker, TagTable, TagTableCell, ThreadFollowButton, ThreadFollowMenuItem, Toolbar, WorkspaceActivityList, WorkspaceNotificationMenu, cellText, cellValue, documentCount, entitiesPhrase, fieldWrites, glossaryDocumentXml, glossaryDocx, glossaryEntries, glossaryFileName, glossaryMarkdown, isGap, parseCell, rowLinks, setHintsSessionOverride, tagDetailLabels, tagKindDescription, tagNoteLabel, tagTableDocumentXml, tagTableDocx, tagTableLabels, tagTableMarkdown, tagsPageNouns, workspaceActivityHeadline, workspaceActivityTarget } from './chunk-
|
|
10
|
+
export { DEFAULT_GLOSSARY_LABELS, DEFAULT_TAG_COLUMNS_EDITOR_LABELS, DEFAULT_TAG_DETAIL_LABELS, DEFAULT_TAG_TABLE_DOCX_LABELS, DEFAULT_TAG_TABLE_LABELS, DEFAULT_THREAD_FOLLOW_LABELS, DEFAULT_WORKSPACE_ACTIVITY_LABELS, DEFAULT_WORKSPACE_NOTIFICATION_MENU_LABELS, EXTRACT_LIMIT, EntityIdentityBar, ExtractEntitiesDialog, GridRowNavigator, IDENTITY_NAME_MAX_LENGTH, LoadingIndicator, TAG_TABLE_DOCX_LANDSCAPE_AFTER, TIPS_VISIBILITY_OVERRIDE, TagColumnsEditor, TagDetail, TagPicker, TagTable, TagTableCell, ThreadFollowButton, ThreadFollowMenuItem, Toolbar, WorkspaceActivityList, WorkspaceNotificationMenu, cellText, cellValue, documentCount, entitiesPhrase, fieldWrites, glossaryDocumentXml, glossaryDocx, glossaryEntries, glossaryFileName, glossaryMarkdown, isGap, parseCell, rowLinks, setHintsSessionOverride, tagDetailLabels, tagKindDescription, tagNoteLabel, tagTableDocumentXml, tagTableDocx, tagTableLabels, tagTableMarkdown, tagsPageNouns, workspaceActivityHeadline, workspaceActivityTarget } from './chunk-42UKJPIQ.js';
|
|
11
11
|
export { EntityTooltip, EntityTooltipHeader, EntityTooltipHint, EntityTooltipSection, EntityTooltipStats, SharedCell } from './chunk-C3VTWM74.js';
|
|
12
12
|
export { MemberAvatarStack } from './chunk-FUPAGAZB.js';
|
|
13
13
|
export { ApplyLabelButton, ApplyLabelDialog, DEFAULT_APPLY_LABEL_DIALOG_LABELS, DEFAULT_RELEVANCE_STEPS, DEFAULT_SEARCH_BAR_LABELS, DEFAULT_SEARCH_EMPTY_STATE_LABELS, DEFAULT_SEARCH_GROUP_HEADER_LABELS, DEFAULT_SEARCH_NO_RESULTS_LABELS, DEFAULT_SEARCH_PAGINATION_LABELS, DEFAULT_SEARCH_TOTALS_LABELS, DOCUMENT_SEARCH_NOUNS, RelevanceThreshold, SearchBar, SearchControlsBar, SearchEmptyState, SearchErrorBanner, SearchGroupCard, SearchGroupHeader, SearchNoResults, SearchPageBody, SearchPageFrame, SearchPageHeader, SearchPagination, SearchPillToggle, SearchResultList, SearchResultsInner, SearchResultsMain, SearchSnippet, SearchToolbarRow, SearchTotalsHeadline, extractHighlightTerms, extractQuotedTerms, getPageNumbers, getSearchMatchHint, groupSearchResults, highlightTerms, isMeaningMatch, passesRelevanceCutoff, renderSearchSnippet, searchNouns, stripMarkdownLinks } from './chunk-G4IYES7G.js';
|
|
@@ -29,8 +29,8 @@ export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from './chunk-K4BGOPGG.js'
|
|
|
29
29
|
export { DEFAULT_DETAIL_PANEL_LABELS, DetailBody, DetailEmpty, DetailField, DetailFields, DetailLinkItem, DetailLinkList, DetailLoading, DetailPanel, DetailSection } from './chunk-ZCOVDK2E.js';
|
|
30
30
|
export { DEFINITIONS_LABEL, DEFINITION_BOOKMARK_PREFIX, compareDefinitions, compareTerms, definitionBookmark, definitionIdOfBookmark, definitionLabels, filterTermGroups, findDefinitionsLabel, groupDefinitions, isDefinitionsLabel, parseDefinition, termKey, toDefinition, toDefinitionSource } from './chunk-IYUKJESY.js';
|
|
31
31
|
import './chunk-AF6RDAJF.js';
|
|
32
|
-
export { AgentCard, AgentGallery, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_ROW_LABELS, SkillCard, SkillRow, groupAgentTasks, useWorkflowPreview } from './chunk-
|
|
33
|
-
export { ANNOTATE, ANNOTATE_ID, AUTOMATION_EVENTS, ActionStepBody, AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentConnectInstructions, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentMainView, AgentTypeSelector, ApprovalEvidence, AssigneeLine, AssistantEntity, BUILTIN_SKILLS, CHRONOLOGY, CHRONOLOGY_ID, CUSTOM_TASK, CUSTOM_TASK_ID, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DASHBOARD_OPERATIONS, DASHBOARD_PINNED, DEEP_RESEARCH, DEEP_RESEARCH_ID, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CAPABILITIES, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TEMPLATES, DEFAULT_AGENT_TYPES, 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_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_STEP_BAR_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_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_RUNNER_LABELS, DEFAULT_WORKFLOW_RUN_STATUS_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GENERATE_IMAGE, GENERATE_IMAGE_ID, GoalCriteria, IMAGE_ASPECT_AUTO, IMAGE_ASPECT_RATIOS, MAX_TASK_DEPTH, MODEL_NAME_ICONS, MODEL_TIER_ICON_MAP, MODEL_TIER_LABELS, NewThreadDialog, PillSelect, REMIND_TASK, REMIND_TASK_ID, RecurrenceBuilder, SKILL_FIELD_TYPE_LABELS, SKILL_MAIN_FILENAME, SKILL_SOURCE_LABELS, SKILL_TYPES, SKILL_TYPE_LABELS, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, STEP_ICON_MAP, SUMMARISE, SUMMARISE_ID, SendBackControl, SkillActionButton, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillLibraryDetail, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TAG_ICONS, TASK_COLUMN_ORDER, TIMELINE, TIMELINE_ID, TIMELINE_PROMPT, TOOL_ICON_MAP, TRANSLATE, TRANSLATE_ID, TRANSLATE_LANGUAGES, TRIGGER_LABELS, TaskActivityDialog, TaskActivityTimeline, TaskComposer, TaskEmptyState, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEB_WORKFLOWS, WEEKDAYS, WORD_ASK, WORD_ASK_ID, WORD_CONTINUE, WORD_CONTINUE_ID, WORD_SUMMARISE, WORD_SUMMARISE_ID, WORD_SUPPORT, WORD_SUPPORT_ID, WORD_WORKFLOWS, WORKFLOW_REGISTRY, WorkflowRunStatus, WorkflowRunner, WorkflowStepAction, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsToolbar, activeStepId, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLibrarySkills, buildRRule, buildTaskRows, buildZipSkillImport, closeWorkflowLaunch, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveAnnotationName, deriveWorkflowName, descendantIds, describeRRule, describeTrigger, filterConversationRows, filterLibrarySkills, firstWords, formatElapsed, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, getAgentStepIcon, getAgentStepPresentation, getCurrentAgentStepPresentation, getModelIcon, goalProgress, groupThreadActivity, hasTaskFields, humanizeSection, importMarkdownSkill, importSkillFile, importSkillFromUrl, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isIncompleteSignal, isMainSkillFile, isOutOfBounds, isPlainTodo, isSupersededStop, isValidAgentName, isoToLocalInput, latestMessageTime, layoutFromPlanSteps, linkedRunsFromActivity, localInputToIso, moveTargets, newThreadToRequest, nextCriterionId, notifiedLabel, openWorkflowLaunch, ownerExtId, parseRRule, parseSkillFrontmatter, prettifyKey, readSkillArchive, recordWorkflowUse, renderWorkflowIcon, resetWorkflowUsage, resolveScopeInputs, serializeSkill, skillSlug, sortByRecentUse, stepAccent, stepWindow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskActivityHeadline, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, toPlanAssignee, toPlanDocumentRef, toPlanSteps, unnotifiedMentions, useWorkflowLaunchRequest, useWorkflowUsage, useWorkflowView, workflowFromSkillMarkdown, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowWhen } from './chunk-
|
|
32
|
+
export { AgentCard, AgentGallery, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_ROW_LABELS, SkillCard, SkillRow, groupAgentTasks, useWorkflowPreview } from './chunk-EJVM5IVT.js';
|
|
33
|
+
export { ANNOTATE, ANNOTATE_ID, AUTOMATION_EVENTS, ActionStepBody, AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentConnectInstructions, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentMainView, AgentTypeSelector, ApprovalEvidence, AssigneeLine, AssistantEntity, BUILTIN_SKILLS, CHRONOLOGY, CHRONOLOGY_ID, CUSTOM_TASK, CUSTOM_TASK_ID, CapabilityGrid, CapabilityTile, ChevronShape, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DASHBOARD_OPERATIONS, DASHBOARD_PINNED, DEEP_RESEARCH, DEEP_RESEARCH_ID, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CAPABILITIES, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TEMPLATES, DEFAULT_AGENT_TYPES, 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_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_STEP_BAR_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_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_RUNNER_LABELS, DEFAULT_WORKFLOW_RUN_STATUS_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, DERIVED_NAME_WORDS, EMPTY_NEW_THREAD, EntityChip, GENERATE_IMAGE, GENERATE_IMAGE_ID, GoalCriteria, IMAGE_ASPECT_AUTO, IMAGE_ASPECT_RATIOS, MAX_TASK_DEPTH, MODEL_NAME_ICONS, MODEL_TIER_ICON_MAP, MODEL_TIER_LABELS, NewThreadDialog, PillSelect, ProgressChevron, ProgressChevronBar, REMIND_TASK, REMIND_TASK_ID, RecurrenceBuilder, SKILL_FIELD_TYPE_LABELS, SKILL_MAIN_FILENAME, SKILL_SOURCE_LABELS, SKILL_TYPES, SKILL_TYPE_LABELS, STATUS_LABELS, STATUS_ORDER, STATUS_TONE, STEP_ICON_MAP, SUMMARISE, SUMMARISE_ID, SendBackControl, SkillActionButton, SkillDetail, SkillDetailSection, SkillEditForm, SkillFilterChips, SkillGenerateForm, SkillGlobalBadge, SkillLibraryDetail, SkillTile, SkillTypeBadge, SkillViewToggle, StepDetail, StepNarration, StepOutcome, StepParams, StepRow, StepSummary, StepTrace, StepTraceSummary, SubAgentLane, SubStepGroup, SubagentRoster, TAG_ICONS, TASK_COLUMN_ORDER, TIMELINE, TIMELINE_ID, TIMELINE_PROMPT, TOOL_ICON_MAP, TRANSLATE, TRANSLATE_ID, TRANSLATE_LANGUAGES, TRIGGER_LABELS, TaskActivityDialog, TaskActivityTimeline, TaskComposer, TaskEmptyState, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TasksToolbar, ThreadActivity, ThreadLauncher, ThreadNotifyDialog, ThreadStatusLine, TupleArrayField, UploadTaskItem, UploadTaskList, WEB_WORKFLOWS, WEEKDAYS, WORD_ASK, WORD_ASK_ID, WORD_CONTINUE, WORD_CONTINUE_ID, WORD_SUMMARISE, WORD_SUMMARISE_ID, WORD_SUPPORT, WORD_SUPPORT_ID, WORD_WORKFLOWS, WORKFLOW_REGISTRY, WorkflowRunStatus, WorkflowRunner, WorkflowStepAction, WorkflowThreadStartedBy, WorkflowThreadStrip, WorkflowsToolbar, activeStepId, agentConfigSectionToValues, agentCreatorToConfigSection, asTaskStatus, authModeFor, buildLibrarySkills, buildRRule, buildTaskRows, buildZipSkillImport, closeWorkflowLaunch, compactThreadActivity, composePersona, composerToTaskQuery, composerToWorkRequest, composerToWorkflowRequest, composerToWorkflowUpdate, createTaskColumns, createsWork, defaultScopeRenderer, defaultTaskComposerValues, deriveAgentName, deriveAnnotationName, deriveWorkflowName, descendantIds, describeRRule, describeTrigger, filterConversationRows, filterLibrarySkills, firstWords, formatElapsed, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, getAgentStepIcon, getAgentStepPresentation, getCurrentAgentStepPresentation, getModelIcon, goalProgress, groupThreadActivity, hasTaskFields, humanizeSection, importMarkdownSkill, importSkillFile, importSkillFromUrl, indexTasks, inferType, inputDocumentIds, isAgenticWorkflow, isIncompleteSignal, isMainSkillFile, isOutOfBounds, isPlainTodo, isSupersededStop, isValidAgentName, isoToLocalInput, latestMessageTime, layoutFromPlanSteps, linkedRunsFromActivity, localInputToIso, moveTargets, newThreadToRequest, nextCriterionId, notifiedLabel, openWorkflowLaunch, ownerExtId, parseRRule, parseSkillFrontmatter, prettifyKey, readSkillArchive, recordWorkflowUse, renderWorkflowIcon, resetWorkflowUsage, resolveScopeInputs, serializeSkill, skillSlug, sortByRecentUse, stepAccent, stepWindow, stripPersonaPreamble, summarizeAgent, summarizeCapabilities, taskActivityHeadline, taskComposerToCreateRequest, taskComposerToUpdateRequest, taskNeedsAccess, taskToComposerValues, toPlanAssignee, toPlanDocumentRef, toPlanSteps, unnotifiedMentions, useWorkflowLaunchRequest, useWorkflowUsage, useWorkflowView, workflowFromSkillMarkdown, workflowTaskFields, workflowToComposerValues, workflowToSkillMarkdown, workflowWhen } from './chunk-EIJHL6ZX.js';
|
|
34
34
|
import './chunk-CQCC7LE7.js';
|
|
35
35
|
export { AgentSelect, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_DOCUMENTS_FIELD_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, PersonPill, SchemaForm, TaskTriggerChip, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, WorkflowsTable, buildWorkflowScopeSource, createWorkflowColumns, documentScopeLabels, hasTrigger, isSkillRow, matchWorkflowScope, workflowStatus, workflowTriggerType } from './chunk-53YTK235.js';
|
|
36
36
|
import './chunk-GXJIN7G3.js';
|
|
@@ -51,13 +51,13 @@ export { DEFAULT_DM_INVITE_CHIP_LABELS, DmInviteChip, DmThreadHeader } from './c
|
|
|
51
51
|
export { ArbiHost, useHost } from './chunk-ILBBV2ZY.js';
|
|
52
52
|
export { DEFAULT_TAB_HEADER_LABELS, TabHeader } from './chunk-ABEKUV6L.js';
|
|
53
53
|
export { EmptyState } from './chunk-P6GHJSLR.js';
|
|
54
|
-
export { AssistantToaster, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, LabelPinRow, PinnedDocChip, useDismissibleCard } from './chunk-
|
|
54
|
+
export { AssistantToaster, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, LabelPinRow, PinnedDocChip, useDismissibleCard } from './chunk-3YJZGYSL.js';
|
|
55
55
|
export { BranchControls, ComposerAccessories, ComposerTools, ContextUsageBar, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_DRAFTING_DOC_CHIP_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, DEFAULT_THREAD_VISUALIZER_LABELS, DraftingDocChip, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, ThreadVisualizer, buildMessageLink, buildSlashItems, buildThreadDiagram, copyMessageToClipboard, downloadTableAsCsv, filterSlashItems, findMessageDocument, flashMessage, getParticipantTints, groupOutputsByConversation, isLongPastedText, latestThreadVersionMessage, parseSlashTokenInProgress as parseSlashToken, threadForNode, useLongPaste, useOpenCitation, useRecipientDraft } from './chunk-QRQLQKRW.js';
|
|
56
|
-
export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageAuthor, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStartRequestedConversation, useStreamAnnouncement } from './chunk-
|
|
56
|
+
export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageAuthor, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStartRequestedConversation, useStreamAnnouncement } from './chunk-GXNHLM5R.js';
|
|
57
57
|
export { DEFAULT_DOCK_WIDTH, Toaster } from './chunk-OKERRHLH.js';
|
|
58
58
|
export { DOC_ID_IN_HREF, rehypeDocEntityPills, workspaceDocIdFromHref } from './chunk-DDCMLHXF.js';
|
|
59
59
|
export { BlocksTooltipProvider, DEFAULT_OVERLAY_ZONE_ID, DEFAULT_PAGE_CONTAINER_PADDING, DEFAULT_SIDEBAR_TOGGLE_BUTTON_LABELS, PageContainer, SHELL_BOTTOM_INSET_VAR, Shell, SidebarToggleButton, ToolButton, useDrawerBehavior, useOverlayZoneId, useShellBottomInset } from './chunk-7XF5SFJ2.js';
|
|
60
|
-
export { DEFAULT_ASSIGNEE_WORDING, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_KIND_LABELS, DEFAULT_STEP_RECORD_LABELS, STEP_KIND_ICONS, StepDocumentButton, StepDocumentCards, StepRecord, WORKFLOW_STEP_KINDS, assigneeName, canAssign, composeStepPrompt, dependsOn, fillRunText, fillStepInputs, initialRunInputs, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, nextAction, orderSteps, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, splitDocRef, stepConfigProblems, stepDependencies, stepDocuments, stepFields, stepKindOf, stepLevels, stepPhase, stepStatesFromActivity, upstreamSteps, useMentionAutocomplete, validateStep, validateWorkflowGraph, workflowSteps } from './chunk-
|
|
60
|
+
export { DEFAULT_ASSIGNEE_WORDING, DEFAULT_STEP_DOCUMENT_LABELS, DEFAULT_STEP_KIND_LABELS, DEFAULT_STEP_RECORD_LABELS, STEP_KIND_ICONS, StepDocumentButton, StepDocumentCards, StepRecord, WORKFLOW_STEP_KINDS, assigneeName, canAssign, composeStepPrompt, dependsOn, fillRunText, fillStepInputs, initialRunInputs, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, nextAction, orderSteps, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, splitDocRef, stepConfigProblems, stepDependencies, stepDocuments, stepFields, stepKindOf, stepLevels, stepPhase, stepStatesFromActivity, upstreamSteps, useMentionAutocomplete, validateStep, validateWorkflowGraph, workflowSteps } from './chunk-CHEU7XI5.js';
|
|
61
61
|
export { EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, buildLaunch, composeWorkflowPrompt, defaultInputs, fieldToFrontmatter, inputsFromContext, isEmptyWorkflowScope, isWorkflowScope, mergeSkillWorkflows, promptFieldName, skillTitle, skillToWorkflow, validateInputs, workflowAccepts, workflowFromFrontmatter, workflowsAccepting, workflowsForHost } from './chunk-TZGBRLPK.js';
|
|
62
62
|
export { TONES, isTone } from './chunk-AUS3KBHJ.js';
|
|
63
63
|
export { daysUntil, displayName, fmtDate, fmtDateTime, formatCount, formatCurrency, formatPageRefs, hrs, initials, pct, pluralize } from './chunk-5VYJP6XD.js';
|
package/dist/studio/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkKYOVVXAS_cjs = require('../chunk-KYOVVXAS.cjs');
|
|
5
5
|
var chunkKZMEZYT6_cjs = require('../chunk-KZMEZYT6.cjs');
|
|
6
6
|
var chunkKNRAKOCO_cjs = require('../chunk-KNRAKOCO.cjs');
|
|
7
7
|
var chunkELR74ME6_cjs = require('../chunk-ELR74ME6.cjs');
|
|
@@ -14,9 +14,9 @@ require('../chunk-VODFB3K2.cjs');
|
|
|
14
14
|
var chunkDLHAKRU2_cjs = require('../chunk-DLHAKRU2.cjs');
|
|
15
15
|
require('../chunk-G2BKHCI2.cjs');
|
|
16
16
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
17
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-W3AYIOK2.cjs');
|
|
18
18
|
require('../chunk-B6MVQCXW.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-JWYWP5EE.cjs');
|
|
20
20
|
require('../chunk-76L6LOP3.cjs');
|
|
21
21
|
require('../chunk-32HW2Q33.cjs');
|
|
22
22
|
var chunkUFEXJIEY_cjs = require('../chunk-UFEXJIEY.cjs');
|
|
@@ -877,7 +877,7 @@ function latestImageDocId(artifacts) {
|
|
|
877
877
|
return null;
|
|
878
878
|
}
|
|
879
879
|
function useImageGen() {
|
|
880
|
-
const task =
|
|
880
|
+
const task = chunkKYOVVXAS_cjs.useConnectedAiTask();
|
|
881
881
|
const { run } = task;
|
|
882
882
|
const generate = react.useCallback(
|
|
883
883
|
async (prompt, referenceDocIds = []) => {
|
package/dist/studio/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useConnectedAiTask } from '../chunk-
|
|
2
|
+
import { useConnectedAiTask } from '../chunk-TFF3NMPV.js';
|
|
3
3
|
import { DataTableBlock, StatGroup } from '../chunk-CGHFFYOL.js';
|
|
4
4
|
import { assetRefId, applyStoredTheme, AssetResolverProvider, SectionHeading, PricingTable, Tabs as Tabs$1, Accordion, Gallery, VideoEmbed, ContactForm, Banner, MediaText, TeamGrid, Steps, TestimonialGrid, Columns, Spacer, Container, Hero, FeatureGrid, Testimonial, CTABanner, LogoCloud, FAQ, RichTextBlock, BlockImage, AvatarBlock, Navbar, Footer, ListBlock, isAssetRef, asAssetRef } from '../chunk-XXUPUXBF.js';
|
|
5
5
|
export { ASSET_REF_PREFIX, AssetResolverProvider, asAssetRef, assetRefId, isAssetRef, useAssetRenderer, useAssetResolverActive } from '../chunk-XXUPUXBF.js';
|
|
@@ -13,9 +13,9 @@ import '../chunk-NXSGOC2M.js';
|
|
|
13
13
|
import { useConnection } from '../chunk-A7MWHMHP.js';
|
|
14
14
|
import '../chunk-ILBBV2ZY.js';
|
|
15
15
|
import { EmptyState } from '../chunk-P6GHJSLR.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-GXNHLM5R.js';
|
|
17
17
|
import '../chunk-7XF5SFJ2.js';
|
|
18
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-CHEU7XI5.js';
|
|
19
19
|
import '../chunk-TZGBRLPK.js';
|
|
20
20
|
import '../chunk-AUS3KBHJ.js';
|
|
21
21
|
import { formatCount } from '../chunk-5VYJP6XD.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A workflow as a graph on a canvas: its start, then each step a card, each "waits for" an edge.
|
|
3
|
+
* A card is drawn on the steps' chevron (`ChevronShape`, as the step bars' segments): its incoming
|
|
4
|
+
* edges meet the notch on its left, its outgoing ones leave from the point on its right.
|
|
3
5
|
* Build by clicking "+" on a card (the next step lands beside it), drag to arrange, draw from a
|
|
4
6
|
* card's right handle to another's left to make it wait, select and press Delete to remove.
|
|
5
7
|
* Read-only with live `phases` it shows a run's progress on the same graph.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkAEG44LPK_cjs = require('../chunk-AEG44LPK.cjs');
|
|
5
|
+
var chunkK6T255ST_cjs = require('../chunk-K6T255ST.cjs');
|
|
6
6
|
require('../chunk-RFIBUWLF.cjs');
|
|
7
7
|
var chunkZXHGPTAZ_cjs = require('../chunk-ZXHGPTAZ.cjs');
|
|
8
8
|
require('../chunk-5WV7HI7Y.cjs');
|
|
@@ -20,7 +20,7 @@ var chunkDLHAKRU2_cjs = require('../chunk-DLHAKRU2.cjs');
|
|
|
20
20
|
require('../chunk-G2BKHCI2.cjs');
|
|
21
21
|
require('../chunk-MEMWZ72Y.cjs');
|
|
22
22
|
require('../chunk-ZW6FPIFC.cjs');
|
|
23
|
-
var
|
|
23
|
+
var chunkJWYWP5EE_cjs = require('../chunk-JWYWP5EE.cjs');
|
|
24
24
|
var chunk76L6LOP3_cjs = require('../chunk-76L6LOP3.cjs');
|
|
25
25
|
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
26
26
|
require('../chunk-UFEXJIEY.cjs');
|
|
@@ -55,11 +55,11 @@ function withSteps(workflow, steps, layout) {
|
|
|
55
55
|
const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
|
|
56
56
|
return {
|
|
57
57
|
...workflow,
|
|
58
|
-
run: { ...run, steps:
|
|
58
|
+
run: { ...run, steps: chunkJWYWP5EE_cjs.orderSteps(steps), layout: layout ?? run.layout }
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
|
|
62
|
-
var explicit = (steps) => steps.map((s) => ({ ...s, after:
|
|
62
|
+
var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkJWYWP5EE_cjs.stepDependencies(steps, s.id) }));
|
|
63
63
|
function stepIdFor(steps, title) {
|
|
64
64
|
const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
|
|
65
65
|
const taken = new Set(steps.map((s) => s.id));
|
|
@@ -106,7 +106,7 @@ function blankStep(kind, id, title) {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function addStep(workflow, kind, options = {}) {
|
|
109
|
-
const steps = explicit(
|
|
109
|
+
const steps = explicit(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
110
110
|
const title = options.title ?? DEFAULT_TITLES[kind];
|
|
111
111
|
const id = stepIdFor(steps, title);
|
|
112
112
|
const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
|
|
@@ -115,7 +115,7 @@ function addStep(workflow, kind, options = {}) {
|
|
|
115
115
|
return { workflow: withSteps(workflow, [...steps, step], layout), id };
|
|
116
116
|
}
|
|
117
117
|
function removeStep(workflow, id) {
|
|
118
|
-
const steps = explicit(
|
|
118
|
+
const steps = explicit(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
119
119
|
const removed = steps.find((s) => s.id === id);
|
|
120
120
|
if (!removed) return workflow;
|
|
121
121
|
const bridged = steps.filter((s) => s.id !== id).map(
|
|
@@ -128,8 +128,8 @@ function removeStep(workflow, id) {
|
|
|
128
128
|
return withSteps(workflow, bridged, layout);
|
|
129
129
|
}
|
|
130
130
|
function connectSteps(workflow, from, to) {
|
|
131
|
-
const steps = explicit(
|
|
132
|
-
if (from === to || !steps.some((s) => s.id === from) ||
|
|
131
|
+
const steps = explicit(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
132
|
+
if (from === to || !steps.some((s) => s.id === from) || chunkJWYWP5EE_cjs.dependsOn(steps, from, to)) {
|
|
133
133
|
return workflow;
|
|
134
134
|
}
|
|
135
135
|
return withSteps(
|
|
@@ -139,16 +139,16 @@ function connectSteps(workflow, from, to) {
|
|
|
139
139
|
)
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
var wouldCycle = (workflow, from, to) => from === to ||
|
|
142
|
+
var wouldCycle = (workflow, from, to) => from === to || chunkJWYWP5EE_cjs.dependsOn(chunkJWYWP5EE_cjs.workflowSteps(workflow), from, to);
|
|
143
143
|
function disconnectSteps(workflow, from, to) {
|
|
144
|
-
const steps = explicit(
|
|
144
|
+
const steps = explicit(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
145
145
|
return withSteps(
|
|
146
146
|
workflow,
|
|
147
147
|
steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
function updateStep(workflow, id, patch) {
|
|
151
|
-
const steps = explicit(
|
|
151
|
+
const steps = explicit(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
152
152
|
return withSteps(
|
|
153
153
|
workflow,
|
|
154
154
|
steps.map(
|
|
@@ -162,7 +162,7 @@ var renameIn = (text, from, to) => text.replace(
|
|
|
162
162
|
);
|
|
163
163
|
function renameInput(workflow, from, to) {
|
|
164
164
|
if (from === to) return workflow;
|
|
165
|
-
const steps =
|
|
165
|
+
const steps = chunkJWYWP5EE_cjs.workflowSteps(workflow).map((s) => {
|
|
166
166
|
if (s.kind === "agent")
|
|
167
167
|
return {
|
|
168
168
|
...s,
|
|
@@ -211,13 +211,13 @@ function renameInput(workflow, from, to) {
|
|
|
211
211
|
var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
|
|
212
212
|
var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
|
|
213
213
|
function moveStep(workflow, id, position) {
|
|
214
|
-
return withSteps(workflow,
|
|
214
|
+
return withSteps(workflow, chunkJWYWP5EE_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
|
|
215
215
|
}
|
|
216
216
|
var COLUMN = 300;
|
|
217
217
|
var ROW = 140;
|
|
218
218
|
function autoLayout(steps) {
|
|
219
219
|
const layout = {};
|
|
220
|
-
|
|
220
|
+
chunkJWYWP5EE_cjs.stepLevels(steps).forEach(
|
|
221
221
|
(level, x) => level.forEach((s, y) => {
|
|
222
222
|
layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
|
|
223
223
|
})
|
|
@@ -225,7 +225,7 @@ function autoLayout(steps) {
|
|
|
225
225
|
return layout;
|
|
226
226
|
}
|
|
227
227
|
function layoutWithDefaults(workflow) {
|
|
228
|
-
const auto = autoLayout(
|
|
228
|
+
const auto = autoLayout(chunkJWYWP5EE_cjs.workflowSteps(workflow));
|
|
229
229
|
return { ...auto, ...layoutOf(workflow) };
|
|
230
230
|
}
|
|
231
231
|
var DEFAULT_SIGNALS_EDITOR_LABELS = {
|
|
@@ -322,9 +322,9 @@ function SignalsEditor({
|
|
|
322
322
|
{
|
|
323
323
|
className: ui.cn(
|
|
324
324
|
"space-y-1.5 rounded-md border p-2",
|
|
325
|
-
|
|
325
|
+
chunkK6T255ST_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
326
326
|
),
|
|
327
|
-
"data-incomplete":
|
|
327
|
+
"data-incomplete": chunkK6T255ST_cjs.isIncompleteSignal(signal) || void 0,
|
|
328
328
|
"data-testid": `${testId}-${i}`,
|
|
329
329
|
children: [
|
|
330
330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1155,7 +1155,7 @@ function StepInspector({
|
|
|
1155
1155
|
}) {
|
|
1156
1156
|
const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
|
|
1157
1157
|
const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
|
|
1158
|
-
const steps =
|
|
1158
|
+
const steps = chunkJWYWP5EE_cjs.workflowSteps(workflow);
|
|
1159
1159
|
const step = steps.find((s) => s.id === stepId);
|
|
1160
1160
|
const run = workflow.run.kind === "steps" ? workflow.run : void 0;
|
|
1161
1161
|
if (!step || !run) {
|
|
@@ -1182,8 +1182,8 @@ function StepInspector({
|
|
|
1182
1182
|
const patch = (p) => onChange(updateStep(workflow, step.id, p));
|
|
1183
1183
|
const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
|
|
1184
1184
|
const ctx = {
|
|
1185
|
-
earlier:
|
|
1186
|
-
fields:
|
|
1185
|
+
earlier: chunkJWYWP5EE_cjs.upstreamSteps(steps, step.id),
|
|
1186
|
+
fields: chunkJWYWP5EE_cjs.runFields(workflow),
|
|
1187
1187
|
people,
|
|
1188
1188
|
tags,
|
|
1189
1189
|
documents
|
|
@@ -1204,7 +1204,7 @@ function StepInspector({
|
|
|
1204
1204
|
)
|
|
1205
1205
|
);
|
|
1206
1206
|
};
|
|
1207
|
-
const deps =
|
|
1207
|
+
const deps = chunkJWYWP5EE_cjs.stepDependencies(steps, step.id);
|
|
1208
1208
|
const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
|
|
1209
1209
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
|
|
1210
1210
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
@@ -1285,7 +1285,7 @@ function StepInspector({
|
|
|
1285
1285
|
{
|
|
1286
1286
|
step,
|
|
1287
1287
|
workflows,
|
|
1288
|
-
fields:
|
|
1288
|
+
fields: chunkJWYWP5EE_cjs.runFields(workflow).map((f) => f.name),
|
|
1289
1289
|
patch,
|
|
1290
1290
|
l,
|
|
1291
1291
|
testId
|
|
@@ -1346,7 +1346,7 @@ function StepInspector({
|
|
|
1346
1346
|
testId: `${testId}-review-grid`
|
|
1347
1347
|
}
|
|
1348
1348
|
),
|
|
1349
|
-
|
|
1349
|
+
chunkJWYWP5EE_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
|
|
1350
1350
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1351
1351
|
SignalsEditor,
|
|
1352
1352
|
{
|
|
@@ -1612,7 +1612,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1612
1612
|
return {
|
|
1613
1613
|
timezone: trigger.timezone,
|
|
1614
1614
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1615
|
-
run_at: trigger.start === "once" ?
|
|
1615
|
+
run_at: trigger.start === "once" ? chunkK6T255ST_cjs.localInputToIso(trigger.runAt) : none,
|
|
1616
1616
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1617
1617
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1618
1618
|
event_filter: filter ?? none,
|
|
@@ -1628,7 +1628,7 @@ function plan(value, options) {
|
|
|
1628
1628
|
criteria: [],
|
|
1629
1629
|
max_passes: 3,
|
|
1630
1630
|
documents: [],
|
|
1631
|
-
steps:
|
|
1631
|
+
steps: chunkK6T255ST_cjs.toPlanSteps(value.workflow, options)
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1663,7 +1663,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
function workflowRecordToBuilder(record) {
|
|
1665
1665
|
const planned = record.plan?.steps ?? [];
|
|
1666
|
-
const steps = planned.length ?
|
|
1666
|
+
const steps = planned.length ? chunkK6T255ST_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1667
1667
|
{
|
|
1668
1668
|
id: "work",
|
|
1669
1669
|
kind: "agent",
|
|
@@ -1671,7 +1671,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1671
1671
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1672
1672
|
}
|
|
1673
1673
|
] : [];
|
|
1674
|
-
const when =
|
|
1674
|
+
const when = chunkK6T255ST_cjs.workflowWhen(record);
|
|
1675
1675
|
return {
|
|
1676
1676
|
workflow: {
|
|
1677
1677
|
id: record.external_id,
|
|
@@ -1680,12 +1680,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1680
1680
|
inputs: [],
|
|
1681
1681
|
landing: "chat",
|
|
1682
1682
|
schedulable: false,
|
|
1683
|
-
run: { kind: "steps", steps, layout:
|
|
1683
|
+
run: { kind: "steps", steps, layout: chunkK6T255ST_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1684
1684
|
},
|
|
1685
1685
|
trigger: {
|
|
1686
1686
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1687
1687
|
start: when === "now" ? "manual" : when,
|
|
1688
|
-
runAt:
|
|
1688
|
+
runAt: chunkK6T255ST_cjs.isoToLocalInput(record.run_at),
|
|
1689
1689
|
rrule: record.rrule ?? "",
|
|
1690
1690
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1691
1691
|
eventKind: record.event_kind ?? "",
|
|
@@ -1741,7 +1741,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1741
1741
|
case "once":
|
|
1742
1742
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1743
1743
|
case "repeat":
|
|
1744
|
-
return trigger.rrule ?
|
|
1744
|
+
return trigger.rrule ? chunkK6T255ST_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1745
1745
|
case "event":
|
|
1746
1746
|
if (isSignalTrigger(trigger))
|
|
1747
1747
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1800,7 +1800,7 @@ function TriggerInspector({
|
|
|
1800
1800
|
}
|
|
1801
1801
|
)
|
|
1802
1802
|
] }),
|
|
1803
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1803
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkK6T255ST_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1804
1804
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1805
1805
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1806
1806
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1920,7 +1920,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
1922
|
var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
1923
|
-
...
|
|
1923
|
+
...chunkJWYWP5EE_cjs.DEFAULT_STEP_KIND_LABELS,
|
|
1924
1924
|
redline: "Tracked changes",
|
|
1925
1925
|
branch: "Branch",
|
|
1926
1926
|
kindHints: {
|
|
@@ -1951,7 +1951,7 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
|
1951
1951
|
fitView: "Fit view"
|
|
1952
1952
|
};
|
|
1953
1953
|
var TRIGGER_NODE = "__trigger";
|
|
1954
|
-
var KINDS =
|
|
1954
|
+
var KINDS = chunkJWYWP5EE_cjs.WORKFLOW_STEP_KINDS;
|
|
1955
1955
|
function AddNext({
|
|
1956
1956
|
from,
|
|
1957
1957
|
onAdd,
|
|
@@ -1973,7 +1973,7 @@ function AddNext({
|
|
|
1973
1973
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.PopoverContent, { side: "right", align: "start", className: "w-60 p-1.5", children: [
|
|
1974
1974
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 pt-0.5 text-xs font-medium text-muted-foreground", children: l.addNext }),
|
|
1975
1975
|
KINDS.map((kind) => {
|
|
1976
|
-
const Icon =
|
|
1976
|
+
const Icon = chunkJWYWP5EE_cjs.STEP_KIND_ICONS[kind];
|
|
1977
1977
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1978
1978
|
"button",
|
|
1979
1979
|
{
|
|
@@ -2012,8 +2012,8 @@ function PhaseMark({ phase }) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
function StepNode({ data }) {
|
|
2014
2014
|
const { step, phase, summary, assignee, icon, l, onAdd, testId } = data;
|
|
2015
|
-
const kind =
|
|
2016
|
-
const KindIcon =
|
|
2015
|
+
const kind = chunkJWYWP5EE_cjs.stepKindOf(step);
|
|
2016
|
+
const KindIcon = chunkJWYWP5EE_cjs.STEP_KIND_ICONS[kind];
|
|
2017
2017
|
const redline = step.kind === "agent" && !!step.editDocument;
|
|
2018
2018
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2019
2019
|
"div",
|
|
@@ -2026,6 +2026,7 @@ function StepNode({ data }) {
|
|
|
2026
2026
|
"data-testid": `${testId}-node-${step.id}`,
|
|
2027
2027
|
"data-phase": phase,
|
|
2028
2028
|
children: [
|
|
2029
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK6T255ST_cjs.ChevronShape, {}),
|
|
2029
2030
|
/* @__PURE__ */ jsxRuntime.jsx(react$1.Handle, { type: "target", position: react$1.Position.Left }),
|
|
2030
2031
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2.5", children: [
|
|
2031
2032
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "wf-badge flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg]:size-4", children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {}) }),
|
|
@@ -2085,6 +2086,7 @@ function TriggerNode({ data }) {
|
|
|
2085
2086
|
className: "wf-start wf-kind-start relative w-60 px-4 py-3 text-left",
|
|
2086
2087
|
"data-testid": `${data.testId}-node-trigger`,
|
|
2087
2088
|
children: [
|
|
2089
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkK6T255ST_cjs.ChevronShape, {}),
|
|
2088
2090
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
2089
2091
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "wf-badge flex size-8 shrink-0 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: "size-4" }) }),
|
|
2090
2092
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
@@ -2147,12 +2149,12 @@ function WorkflowCanvas({
|
|
|
2147
2149
|
testId = "workflow-canvas"
|
|
2148
2150
|
}) {
|
|
2149
2151
|
const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
|
|
2150
|
-
const steps =
|
|
2152
|
+
const steps = chunkJWYWP5EE_cjs.workflowSteps(workflow);
|
|
2151
2153
|
const editable = !!onChange;
|
|
2152
2154
|
const built = react.useMemo(() => {
|
|
2153
2155
|
const layout = layoutWithDefaults(workflow);
|
|
2154
|
-
const all =
|
|
2155
|
-
const roots = all.filter((s) =>
|
|
2156
|
+
const all = chunkJWYWP5EE_cjs.workflowSteps(workflow);
|
|
2157
|
+
const roots = all.filter((s) => chunkJWYWP5EE_cjs.stepDependencies(all, s.id).length === 0);
|
|
2156
2158
|
const triggerNode = trigger ? [
|
|
2157
2159
|
{
|
|
2158
2160
|
id: TRIGGER_NODE,
|
|
@@ -2201,7 +2203,7 @@ function WorkflowCanvas({
|
|
|
2201
2203
|
react.useEffect(() => setNodes(built), [built]);
|
|
2202
2204
|
const edges = react.useMemo(
|
|
2203
2205
|
() => steps.flatMap((s) => {
|
|
2204
|
-
const deps =
|
|
2206
|
+
const deps = chunkJWYWP5EE_cjs.stepDependencies(steps, s.id);
|
|
2205
2207
|
const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
|
|
2206
2208
|
return from.map((d) => ({
|
|
2207
2209
|
id: `${d}->${s.id}`,
|
|
@@ -2371,7 +2373,7 @@ function WorkflowCanvas({
|
|
|
2371
2373
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: l.emptyTitle }),
|
|
2372
2374
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: l.emptyHint }),
|
|
2373
2375
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: KINDS.map((kind) => {
|
|
2374
|
-
const Icon =
|
|
2376
|
+
const Icon = chunkJWYWP5EE_cjs.STEP_KIND_ICONS[kind];
|
|
2375
2377
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2376
2378
|
"button",
|
|
2377
2379
|
{
|
|
@@ -2421,7 +2423,7 @@ var DEFAULT_WORKFLOW_BUILDER_LABELS = {
|
|
|
2421
2423
|
}
|
|
2422
2424
|
};
|
|
2423
2425
|
var PANEL_WIDTH = 344;
|
|
2424
|
-
var KINDS2 =
|
|
2426
|
+
var KINDS2 = chunkJWYWP5EE_cjs.WORKFLOW_STEP_KINDS;
|
|
2425
2427
|
function WorkflowBuilder({
|
|
2426
2428
|
value,
|
|
2427
2429
|
onChange,
|
|
@@ -2453,12 +2455,12 @@ function WorkflowBuilder({
|
|
|
2453
2455
|
const [mode, setMode] = react.useState("design");
|
|
2454
2456
|
const [adding, setAdding] = react.useState(false);
|
|
2455
2457
|
const { workflow, trigger } = value;
|
|
2456
|
-
const steps =
|
|
2457
|
-
const problems =
|
|
2458
|
-
const missing =
|
|
2458
|
+
const steps = chunkJWYWP5EE_cjs.workflowSteps(workflow);
|
|
2459
|
+
const problems = chunkJWYWP5EE_cjs.validateWorkflowGraph(steps);
|
|
2460
|
+
const missing = chunkJWYWP5EE_cjs.stepConfigProblems(steps);
|
|
2459
2461
|
const nameOf = (id) => people.find((p) => p.value === id)?.label;
|
|
2460
|
-
const fields =
|
|
2461
|
-
const assigneeOf = (step) =>
|
|
2462
|
+
const fields = chunkJWYWP5EE_cjs.runFields(workflow);
|
|
2463
|
+
const assigneeOf = (step) => chunkJWYWP5EE_cjs.canAssign(step) ? chunkJWYWP5EE_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
|
|
2462
2464
|
const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
|
|
2463
2465
|
const setWorkflow = (next) => onChange({ ...value, workflow: next });
|
|
2464
2466
|
const addAfter = (from, kind) => {
|
|
@@ -2527,7 +2529,7 @@ function WorkflowBuilder({
|
|
|
2527
2529
|
l.addStep
|
|
2528
2530
|
] }) }),
|
|
2529
2531
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-1.5", children: KINDS2.map((kind) => {
|
|
2530
|
-
const Icon =
|
|
2532
|
+
const Icon = chunkJWYWP5EE_cjs.STEP_KIND_ICONS[kind];
|
|
2531
2533
|
const cls = { ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...canvasLabels };
|
|
2532
2534
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2533
2535
|
"button",
|
|
@@ -2689,13 +2691,13 @@ function WorkflowPreview({
|
|
|
2689
2691
|
renderIcon,
|
|
2690
2692
|
testId
|
|
2691
2693
|
}) {
|
|
2692
|
-
const run =
|
|
2694
|
+
const run = chunkAEG44LPK_cjs.useWorkflowPreview(workflow, {
|
|
2693
2695
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2694
2696
|
compose,
|
|
2695
2697
|
answer
|
|
2696
2698
|
});
|
|
2697
2699
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2698
|
-
|
|
2700
|
+
chunkK6T255ST_cjs.WorkflowRunner,
|
|
2699
2701
|
{
|
|
2700
2702
|
workflow,
|
|
2701
2703
|
run,
|
|
@@ -2817,7 +2819,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2817
2819
|
}));
|
|
2818
2820
|
const tasks = conversations.filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || l.untitledTask }));
|
|
2819
2821
|
const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
|
|
2820
|
-
const problem = triggerProblem(value.trigger) ?? (
|
|
2822
|
+
const problem = triggerProblem(value.trigger) ?? (chunkJWYWP5EE_cjs.validateWorkflowGraph(chunkJWYWP5EE_cjs.workflowSteps(value.workflow)).length || chunkJWYWP5EE_cjs.stepConfigProblems(chunkJWYWP5EE_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
|
|
2821
2823
|
const busy = !!pending || create.isPending || update.isPending || run.isPending;
|
|
2822
2824
|
const save = async () => {
|
|
2823
2825
|
if (!workspaceId) return void 0;
|