@arbidocs/blocks 0.4.78 → 0.4.79

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 (47) hide show
  1. package/dist/agents/index.cjs +281 -281
  2. package/dist/agents/index.js +6 -6
  3. package/dist/{chunk-SSDISIDW.cjs → chunk-3YET6D5E.cjs} +39 -39
  4. package/dist/{chunk-SSDISIDW.cjs.map → chunk-3YET6D5E.cjs.map} +1 -1
  5. package/dist/{chunk-B3WCKBJ7.cjs → chunk-5XVWGJ2H.cjs} +3 -3
  6. package/dist/{chunk-B3WCKBJ7.cjs.map → chunk-5XVWGJ2H.cjs.map} +1 -1
  7. package/dist/{chunk-WXRCMIAE.js → chunk-6GXF62XN.js} +3 -3
  8. package/dist/{chunk-WXRCMIAE.js.map → chunk-6GXF62XN.js.map} +1 -1
  9. package/dist/{chunk-5OC5CGYX.js → chunk-BMOL5DN6.js} +7 -7
  10. package/dist/{chunk-5OC5CGYX.js.map → chunk-BMOL5DN6.js.map} +1 -1
  11. package/dist/{chunk-GJV2G4FC.js → chunk-O35LRB3P.js} +3 -3
  12. package/dist/{chunk-GJV2G4FC.js.map → chunk-O35LRB3P.js.map} +1 -1
  13. package/dist/{chunk-VFIZYSZB.cjs → chunk-YGUKTFKW.cjs} +3 -3
  14. package/dist/{chunk-VFIZYSZB.cjs.map → chunk-YGUKTFKW.cjs.map} +1 -1
  15. package/dist/connect/index.cjs +41 -41
  16. package/dist/connect/index.js +4 -4
  17. package/dist/databases/ColumnConfigFields.d.ts +68 -0
  18. package/dist/databases/DatabaseColumnDialog.d.ts +27 -2
  19. package/dist/databases/DatabaseTable.d.ts +8 -1
  20. package/dist/databases/PickCellEditor.d.ts +21 -0
  21. package/dist/databases/column-types.d.ts +73 -9
  22. package/dist/databases/databaseColumns.d.ts +4 -0
  23. package/dist/databases/index.cjs +758 -27
  24. package/dist/databases/index.cjs.map +1 -1
  25. package/dist/databases/index.d.ts +4 -1
  26. package/dist/databases/index.js +745 -31
  27. package/dist/databases/index.js.map +1 -1
  28. package/dist/databases/linkCells.d.ts +48 -0
  29. package/dist/facts/index.cjs +1 -1
  30. package/dist/facts/index.js +1 -1
  31. package/dist/files/index.cjs +3 -3
  32. package/dist/files/index.js +3 -3
  33. package/dist/home/index.cjs +1 -1
  34. package/dist/home/index.js +1 -1
  35. package/dist/index.cjs +506 -506
  36. package/dist/index.js +10 -10
  37. package/dist/settings/index.cjs +35 -35
  38. package/dist/settings/index.js +3 -3
  39. package/dist/shell/index.cjs +1 -1
  40. package/dist/shell/index.js +1 -1
  41. package/dist/studio/index.cjs +1 -1
  42. package/dist/studio/index.js +1 -1
  43. package/dist/workflow-canvas/index.cjs +49 -49
  44. package/dist/workflow-canvas/index.js +6 -6
  45. package/dist/workspaces/index.cjs +1 -1
  46. package/dist/workspaces/index.js +1 -1
  47. package/package.json +4 -4
@@ -1,25 +1,25 @@
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_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_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, 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, TaskActivityTimeline, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, 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-5OC5CGYX.js';
2
+ export { AgentAvatarField, AgentBar, AgentBarIconButton, AgentBarMenu, AgentBarNotes, AgentBarProbeAnswer, AgentBarQueuedNote, AgentBarStatus, AgentCard, AgentCreateView, AgentCreatedView, AgentCreator, AgentEditView, AgentGallery, AgentMainView, AgentSelect, AgentTypeSelector, CapabilityGrid, CapabilityTile, ConfigField, ConfigForm, ConsentActions, ConsentBulletList, ConsentCard, ConsentFootnote, ConsentHeader, ConsentMessage, ConsentNotice, ConsentPage, ConsentPermissionList, ConsentSection, ConsentStrong, ConsentText, ConversationListView, ConversationTurnSpeaker, CopyableUrl, DEFAULT_AGENT_AVATAR_FIELD_LABELS, DEFAULT_AGENT_BAR_LABELS, DEFAULT_AGENT_CARD_LABELS, DEFAULT_AGENT_CREATOR_LABELS, DEFAULT_AGENT_GALLERY_LABELS, DEFAULT_AGENT_SELECT_LABELS, DEFAULT_AGENT_STEPS_LABELS, DEFAULT_AGENT_TYPE_SELECTOR_LABELS, DEFAULT_AUTHORIZE_AGENT_LABELS, DEFAULT_CONFIG_FIELD_LABELS, DEFAULT_CONFIG_FORM_LABELS, DEFAULT_CONSENT_ACTIONS_LABELS, DEFAULT_COPYABLE_URL_LABELS, DEFAULT_NEW_THREAD_DIALOG_LABELS, DEFAULT_PILL_SELECT_LABELS, DEFAULT_RECURRENCE, DEFAULT_RECURRENCE_BUILDER_LABELS, DEFAULT_SKILL_CARD_LABELS, DEFAULT_SKILL_EDIT_FORM_LABELS, DEFAULT_SKILL_GENERATE_FORM_LABELS, DEFAULT_SKILL_GLOBAL_BADGE_LABELS, DEFAULT_SKILL_ROW_LABELS, DEFAULT_SKILL_VIEW_TOGGLE_LABELS, DEFAULT_SUBAGENT_ROSTER_LABELS, DEFAULT_TASKS_CHROME_LABELS, DEFAULT_TASK_ACTIVITY_LABELS, DEFAULT_TASK_COMPOSER_LABELS, DEFAULT_TASK_LIST_LABELS, DEFAULT_TASK_OUTPUTS_CELL_LABELS, DEFAULT_TASK_PLAN_LABELS, DEFAULT_TASK_RUNS_DIALOG_LABELS, DEFAULT_TASK_STATUS_PILL_LABELS, DEFAULT_TASK_THREAD_CHIP_LABELS, DEFAULT_TASK_TRIGGER_CHIP_LABELS, DEFAULT_TUPLE_ARRAY_FIELD_LABELS, DEFAULT_UPLOAD_TASK_ITEM_LABELS, DEFAULT_UPLOAD_TASK_LIST_LABELS, DEFAULT_WORKFLOWS_CHROME_LABELS, DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, DEFAULT_WORKFLOW_LIST_LABELS, 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, TaskActivityTimeline, TaskComposer, TaskFlow, TaskInbox, TaskMoveDialog, TaskOutputsCell, TaskPlan, TaskRunsDialog, TaskStartDialog, TaskStatusPill, TaskTable, TaskThreadChip, TaskTriggerChip, TasksToolbar, ThreadActivity, ThreadNotifyDialog, TupleArrayField, UploadTaskItem, UploadTaskList, WEEKDAYS, WORKFLOW_COLUMN_ORDER, WorkflowConfigDialog, WorkflowDocumentsField, WorkflowLauncher, 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-BMOL5DN6.js';
3
3
  import '../chunk-CKB64Z4R.js';
4
4
  import '../chunk-P6GHJSLR.js';
5
- export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-WXRCMIAE.js';
5
+ export { ActionStepBody, ApprovalEvidence, AssigneeLine, DEFAULT_ASSIGNEE_WORDING, DEFAULT_SCHEMA_FORM_LABELS, DEFAULT_STEP_BAR_LABELS, DEFAULT_WORKFLOW_RUNNER_LABELS, DEFAULT_WORKFLOW_STEP_PARTS_LABELS, EMPTY_WORKFLOW_SCOPE, SKILL_PROMPT_FALLBACK_PLACEHOLDER, SKILL_PROMPT_LABEL, SchemaForm, SendBackControl, WorkflowRunner, activeStepId, assigneeName, buildLaunch, canAssign, composeStepPrompt, composeWorkflowPrompt, defaultInputs, dependsOn, fieldToFrontmatter, fillRunText, fillStepInputs, fromPlanAssignee, fromPlanDocumentRef, fromPlanSteps, initialRunInputs, inputsFromContext, isEmptyWorkflowScope, isIncompleteSignal, isPersonAction, isPersonStep, isRunFinished, isSteppedWorkflow, isWorkflowScope, layoutFromPlanSteps, nextAction, orderSteps, promptFieldName, reviewInstructions, runFields, runFieldsOf, runThreadTitle, sendBackTargets, skillToWorkflow, splitDocRef, stepConfigProblems, stepDependencies, stepFields, stepLevels, stepPhase, stepStatesFromActivity, stepWindow, toPlanAssignee, toPlanDocumentRef, toPlanSteps, upstreamSteps, useWorkflowView, validateInputs, validateStep, validateWorkflowGraph, workflowAccepts, workflowFromFrontmatter, workflowSteps, workflowsAccepting, workflowsForHost } from '../chunk-6GXF62XN.js';
6
6
  import '../chunk-4WWM3GQ5.js';
7
- import '../chunk-DDF5GPIJ.js';
8
- import '../chunk-XD2M6LIG.js';
9
7
  import '../chunk-RFXJYIDV.js';
10
8
  import '../chunk-DPLRHEJZ.js';
11
9
  import '../chunk-EVUEIBNU.js';
12
10
  import '../chunk-NUNKSZKU.js';
13
11
  import '../chunk-YU2KUMGE.js';
14
12
  import '../chunk-ZPLG7QYF.js';
13
+ import '../chunk-DDF5GPIJ.js';
14
+ import '../chunk-XD2M6LIG.js';
15
15
  import '../chunk-S7PSMMRG.js';
16
+ import '../chunk-76JDDMSP.js';
17
+ import '../chunk-TX2ZICS7.js';
16
18
  import '../chunk-HOXKR26S.js';
17
19
  import '../chunk-AA3PT6KR.js';
18
20
  import '../chunk-SLSBJRWW.js';
19
21
  import '../chunk-NPLYHR2E.js';
20
- import '../chunk-76JDDMSP.js';
21
22
  import '../chunk-OXF2IFXG.js';
22
- import '../chunk-TX2ZICS7.js';
23
23
  import '../chunk-7F6CBP3Z.js';
24
24
  import '../chunk-VUNV25KB.js';
25
25
  //# sourceMappingURL=index.js.map
@@ -3,22 +3,22 @@
3
3
 
4
4
  var chunkYJQVLVBJ_cjs = require('./chunk-YJQVLVBJ.cjs');
5
5
  var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
6
- var chunkVFIZYSZB_cjs = require('./chunk-VFIZYSZB.cjs');
6
+ var chunkYGUKTFKW_cjs = require('./chunk-YGUKTFKW.cjs');
7
7
  var chunk7RGLTF76_cjs = require('./chunk-7RGLTF76.cjs');
8
- var chunkZ5VUZ6YD_cjs = require('./chunk-Z5VUZ6YD.cjs');
9
- var chunk7D737FLE_cjs = require('./chunk-7D737FLE.cjs');
10
8
  var chunk3AFWGEDJ_cjs = require('./chunk-3AFWGEDJ.cjs');
11
9
  var chunkVFUWWH52_cjs = require('./chunk-VFUWWH52.cjs');
12
10
  var chunkV4ISCZJ7_cjs = require('./chunk-V4ISCZJ7.cjs');
13
11
  var chunk2EI7NCUA_cjs = require('./chunk-2EI7NCUA.cjs');
14
12
  var chunkIXALYQT7_cjs = require('./chunk-IXALYQT7.cjs');
13
+ var chunkZ5VUZ6YD_cjs = require('./chunk-Z5VUZ6YD.cjs');
14
+ var chunk7D737FLE_cjs = require('./chunk-7D737FLE.cjs');
15
15
  var chunkOB5F4577_cjs = require('./chunk-OB5F4577.cjs');
16
+ var chunkC54XEN5T_cjs = require('./chunk-C54XEN5T.cjs');
17
+ var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
16
18
  var chunkB4SRYJLM_cjs = require('./chunk-B4SRYJLM.cjs');
17
19
  var chunk7UTB4PHM_cjs = require('./chunk-7UTB4PHM.cjs');
18
20
  var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
19
- var chunkC54XEN5T_cjs = require('./chunk-C54XEN5T.cjs');
20
21
  var chunkKDG6FER6_cjs = require('./chunk-KDG6FER6.cjs');
21
- var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
22
22
  var chunkMHVNT4J3_cjs = require('./chunk-MHVNT4J3.cjs');
23
23
  var react = require('react');
24
24
  var ui = require('@arbidocs/react/ui');
@@ -145,7 +145,7 @@ function WorkflowConfigDialog({
145
145
  }) {
146
146
  const l = { ...DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, ...labels };
147
147
  const initialKey = JSON.stringify(initialInputs ?? {});
148
- const seedKey = JSON.stringify({ ...chunkVFIZYSZB_cjs.defaultInputs(workflow), ...JSON.parse(initialKey) });
148
+ const seedKey = JSON.stringify({ ...chunkYGUKTFKW_cjs.defaultInputs(workflow), ...JSON.parse(initialKey) });
149
149
  const seed = react.useMemo(() => JSON.parse(seedKey), [seedKey]);
150
150
  const [inputs, setInputs] = useControllableState(inputsProp, seed, onInputsChange);
151
151
  const [agentId, setAgentId] = useControllableState(
@@ -157,7 +157,7 @@ function WorkflowConfigDialog({
157
157
  if (open && inputsProp === void 0) setInputs(seed);
158
158
  }, [open, seed]);
159
159
  const setField = (name, value) => setInputs({ ...inputs, [name]: value });
160
- const errors = chunkVFIZYSZB_cjs.validateInputs(workflow, inputs);
160
+ const errors = chunkYGUKTFKW_cjs.validateInputs(workflow, inputs);
161
161
  const valid = Object.keys(errors).length === 0;
162
162
  const visibleErrors = Object.fromEntries(
163
163
  Object.entries(errors).filter(([, e]) => e !== "required")
@@ -170,7 +170,7 @@ function WorkflowConfigDialog({
170
170
  const blockedByScope = matchedCount !== null && matchedCount === 0 && Boolean(workflow.requiresFiles);
171
171
  const showAgent = workflow.run.kind === "prompt" && workflow.options?.agent !== false && agents !== void 0 && agents.length > 0;
172
172
  const launch = (values) => {
173
- Promise.resolve(onLaunch(chunkVFIZYSZB_cjs.buildLaunch(workflow, values, agentId))).catch(() => {
173
+ Promise.resolve(onLaunch(chunkYGUKTFKW_cjs.buildLaunch(workflow, values, agentId))).catch(() => {
174
174
  });
175
175
  };
176
176
  const submit = () => {
@@ -248,7 +248,7 @@ function WorkflowConfigDialog({
248
248
  }
249
249
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
250
250
  /* @__PURE__ */ jsxRuntime.jsx(
251
- chunkVFIZYSZB_cjs.SchemaForm,
251
+ chunkYGUKTFKW_cjs.SchemaForm,
252
252
  {
253
253
  fields,
254
254
  values: inputs,
@@ -326,7 +326,7 @@ function resolveScopeInputs(workflow, inputs, scopeSource) {
326
326
  for (const field of workflow.inputs) {
327
327
  if (field.type !== "scope") continue;
328
328
  const raw = inputs[field.name];
329
- const scope = chunkVFIZYSZB_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
329
+ const scope = chunkYGUKTFKW_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
330
330
  next[field.name] = { ...scope, documents: scopeSource.resolveDocuments(scope) };
331
331
  }
332
332
  return next;
@@ -368,9 +368,9 @@ function WorkflowLauncher({
368
368
  };
369
369
  const select = (workflow) => {
370
370
  if (workflow.run.kind === "operation" && workflow.inputs.length === 0) {
371
- const inputs = chunkVFIZYSZB_cjs.defaultInputs(workflow);
372
- if (Object.keys(chunkVFIZYSZB_cjs.validateInputs(workflow, inputs)).length === 0) {
373
- Promise.resolve(onLaunch(chunkVFIZYSZB_cjs.buildLaunch(workflow, inputs, void 0))).catch(() => {
371
+ const inputs = chunkYGUKTFKW_cjs.defaultInputs(workflow);
372
+ if (Object.keys(chunkYGUKTFKW_cjs.validateInputs(workflow, inputs)).length === 0) {
373
+ Promise.resolve(onLaunch(chunkYGUKTFKW_cjs.buildLaunch(workflow, inputs, void 0))).catch(() => {
374
374
  });
375
375
  return;
376
376
  }
@@ -520,7 +520,7 @@ function workflowToSkillMarkdown(workflow) {
520
520
  if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
521
521
  if (workflow.requiresFiles) lines.push("requires_files: true");
522
522
  if (workflow.inputs.length > 0) {
523
- lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkVFIZYSZB_cjs.fieldToFrontmatter))}`);
523
+ lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkYGUKTFKW_cjs.fieldToFrontmatter))}`);
524
524
  }
525
525
  lines.push("---", "", run.promptTemplate.trim(), "");
526
526
  return lines.join("\n");
@@ -542,11 +542,11 @@ function workflowFromSkillMarkdown(id, text2) {
542
542
  } else if (value === "true" || value === "false") frontmatter[key] = value === "true";
543
543
  else frontmatter[key] = value;
544
544
  }
545
- return chunkVFIZYSZB_cjs.workflowFromFrontmatter(id, frontmatter, body);
545
+ return chunkYGUKTFKW_cjs.workflowFromFrontmatter(id, frontmatter, body);
546
546
  }
547
547
  function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, resolveWorkflow, compose } = {}) {
548
- const steps = chunkVFIZYSZB_cjs.workflowSteps(workflow);
549
- const [inputs, setInputs] = react.useState(() => chunkVFIZYSZB_cjs.initialRunInputs(workflow));
548
+ const steps = chunkYGUKTFKW_cjs.workflowSteps(workflow);
549
+ const [inputs, setInputs] = react.useState(() => chunkYGUKTFKW_cjs.initialRunInputs(workflow));
550
550
  const [states, setStates] = react.useState({});
551
551
  const set = (id, state) => setStates((s) => ({ ...s, [id]: state }));
552
552
  const timers = react.useRef(/* @__PURE__ */ new Map());
@@ -568,10 +568,10 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
568
568
  react.useEffect(() => {
569
569
  if (Object.values(states).some((s) => s.status === "running")) return;
570
570
  const next = steps.find(
571
- (s) => (s.kind === "agent" || s.kind === "action") && chunkVFIZYSZB_cjs.stepPhase(steps, states, s.id) === "ready"
571
+ (s) => (s.kind === "agent" || s.kind === "action") && chunkYGUKTFKW_cjs.stepPhase(steps, states, s.id) === "ready"
572
572
  );
573
573
  if (!next || next.kind !== "agent" && next.kind !== "action") return;
574
- const prompt = next.kind === "agent" ? chunkVFIZYSZB_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
574
+ const prompt = next.kind === "agent" ? chunkYGUKTFKW_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
575
575
  set(next.id, { status: "running", startedAt: (/* @__PURE__ */ new Date()).toISOString() });
576
576
  timers.current.set(
577
577
  next.id,
@@ -584,7 +584,7 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
584
584
  }, delayMs)
585
585
  );
586
586
  }, [states, steps, workflow]);
587
- return chunkVFIZYSZB_cjs.useWorkflowView({
587
+ return chunkYGUKTFKW_cjs.useWorkflowView({
588
588
  steps,
589
589
  states,
590
590
  inputs,
@@ -4997,7 +4997,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
4997
4997
  }
4998
4998
  const typed = name?.trim();
4999
4999
  if (workflow.options?.agent === false) {
5000
- const message = chunkVFIZYSZB_cjs.composeWorkflowPrompt(workflow, inputs, context);
5000
+ const message = chunkYGUKTFKW_cjs.composeWorkflowPrompt(workflow, inputs, context);
5001
5001
  return { name: typed || message, prompt: "", skill_ref: null, skill_inputs: null };
5002
5002
  }
5003
5003
  const derived = typed || deriveWorkflowName(workflow, inputs);
@@ -5011,7 +5011,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
5011
5011
  }
5012
5012
  return {
5013
5013
  name: derived,
5014
- prompt: chunkVFIZYSZB_cjs.composeWorkflowPrompt(workflow, inputs, context),
5014
+ prompt: chunkYGUKTFKW_cjs.composeWorkflowPrompt(workflow, inputs, context),
5015
5015
  skill_ref: null,
5016
5016
  // The files a run is bound to travel in the saved inputs, whatever the template: the server binds
5017
5017
  // the run to the ids listed under any input's `documents`.
@@ -6509,7 +6509,7 @@ function groupThreadActivity(steps, items) {
6509
6509
  continue;
6510
6510
  }
6511
6511
  if (current === void 0) out.before.push(item);
6512
- else if (chunkVFIZYSZB_cjs.isRunFinished(steps, states)) out.after.push(item);
6512
+ else if (chunkYGUKTFKW_cjs.isRunFinished(steps, states)) out.after.push(item);
6513
6513
  else {
6514
6514
  const status = states[current]?.status;
6515
6515
  const at = status === "done" || status === "skipped" ? steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? ""))?.id ?? current : current;
@@ -6627,7 +6627,7 @@ function WorkflowThreadStrip({
6627
6627
  const chevron = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-3 shrink-0 text-muted-foreground" });
6628
6628
  const [selected, setSelected] = react.useState(null);
6629
6629
  const [open, setOpen] = react.useState(null);
6630
- const phaseOf = (id) => chunkVFIZYSZB_cjs.stepPhase(steps, states, id);
6630
+ const phaseOf = (id) => chunkYGUKTFKW_cjs.stepPhase(steps, states, id);
6631
6631
  const iconOf = (step) => step.icon && renderIcon ? renderIcon(step.icon) : void 0;
6632
6632
  const waitingOf = (id) => {
6633
6633
  const step = steps.find((s) => s.id === id);
@@ -6646,14 +6646,14 @@ function WorkflowThreadStrip({
6646
6646
  "button",
6647
6647
  {
6648
6648
  type: "button",
6649
- className: ui.cn(chunkVFIZYSZB_cjs.STEP_PILL, "py-0.5", chunkVFIZYSZB_cjs.stepPillTone(phase, isCurrent)),
6649
+ className: ui.cn(chunkYGUKTFKW_cjs.STEP_PILL, "py-0.5", chunkYGUKTFKW_cjs.stepPillTone(phase, isCurrent)),
6650
6650
  "aria-current": isCurrent ? "step" : void 0,
6651
6651
  title: waiting ? `${step.title} \xB7 ${waiting}` : step.title,
6652
6652
  "data-phase": phase,
6653
6653
  "data-testid": `workflow-thread-step-${step.id}`,
6654
6654
  children: [
6655
- /* @__PURE__ */ jsxRuntime.jsx(chunkVFIZYSZB_cjs.PhaseMark, { phase, icon: iconOf(step) }),
6656
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn(chunkVFIZYSZB_cjs.STEP_LABEL, isCurrent ? "max-w-[16rem]" : "max-w-[11rem]"), children: step.title }),
6655
+ /* @__PURE__ */ jsxRuntime.jsx(chunkYGUKTFKW_cjs.PhaseMark, { phase, icon: iconOf(step) }),
6656
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn(chunkYGUKTFKW_cjs.STEP_LABEL, isCurrent ? "max-w-[16rem]" : "max-w-[11rem]"), children: step.title }),
6657
6657
  sentBack && /* @__PURE__ */ jsxRuntime.jsx(
6658
6658
  lucideReact.CornerUpLeft,
6659
6659
  {
@@ -6665,7 +6665,7 @@ function WorkflowThreadStrip({
6665
6665
  assignee && isCurrent && !narrow && /* @__PURE__ */ jsxRuntime.jsxs(
6666
6666
  "span",
6667
6667
  {
6668
- className: ui.cn(chunkVFIZYSZB_cjs.STEP_EXTRA, "flex max-w-[12rem] items-center gap-0.5"),
6668
+ className: ui.cn(chunkYGUKTFKW_cjs.STEP_EXTRA, "flex max-w-[12rem] items-center gap-0.5"),
6669
6669
  title: waiting,
6670
6670
  "data-testid": `workflow-thread-step-${step.id}-assignee`,
6671
6671
  children: [
@@ -6724,9 +6724,9 @@ function WorkflowThreadStrip({
6724
6724
  strays.map((s) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: "flex shrink-0 items-center gap-1", children: /* @__PURE__ */ jsxRuntime.jsx(SignalPill, { signal: s, l }) }, `${s.step}-${s.signal}`))
6725
6725
  ] }) : null;
6726
6726
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("min-w-0 flex-1", className), "data-testid": "workflow-thread-strip", children: /* @__PURE__ */ jsxRuntime.jsx(
6727
- chunkVFIZYSZB_cjs.StepBarFrame,
6727
+ chunkYGUKTFKW_cjs.StepBarFrame,
6728
6728
  {
6729
- levels: chunkVFIZYSZB_cjs.stepLevels(steps),
6729
+ levels: chunkYGUKTFKW_cjs.stepLevels(steps),
6730
6730
  phaseOf,
6731
6731
  current: selected,
6732
6732
  onSelect: (id) => {
@@ -7208,7 +7208,7 @@ function defaultTaskComposerValues(workflows, initial) {
7208
7208
  return {
7209
7209
  assignee: "me",
7210
7210
  workflowId,
7211
- inputs: workflow ? { ...chunkVFIZYSZB_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7211
+ inputs: workflow ? { ...chunkYGUKTFKW_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7212
7212
  when: "manual",
7213
7213
  runAt: "",
7214
7214
  rrule: "",
@@ -7317,7 +7317,7 @@ function WorkflowComposer({
7317
7317
  return !docs?.length;
7318
7318
  })
7319
7319
  );
7320
- const whatMissing = !workflow || Object.keys(chunkVFIZYSZB_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7320
+ const whatMissing = !workflow || Object.keys(chunkYGUKTFKW_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7321
7321
  const runAtPast = values.when === "once" && values.runAt !== "" && values.runAt !== initialValues?.runAt && new Date(values.runAt).getTime() <= Date.now();
7322
7322
  const whenMissing = missingWhen(values, runAtPast);
7323
7323
  const scheduled = values.when !== "now" && values.when !== "manual";
@@ -7329,7 +7329,7 @@ function WorkflowComposer({
7329
7329
  setValues({
7330
7330
  ...values,
7331
7331
  workflowId: next,
7332
- inputs: def ? chunkVFIZYSZB_cjs.defaultInputs(def) : {},
7332
+ inputs: def ? chunkYGUKTFKW_cjs.defaultInputs(def) : {},
7333
7333
  ...def?.documentAction ? { access: "standing" } : {}
7334
7334
  });
7335
7335
  };
@@ -7467,7 +7467,7 @@ function WorkflowComposer({
7467
7467
  }
7468
7468
  ),
7469
7469
  !noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7470
- chunkVFIZYSZB_cjs.SchemaForm,
7470
+ chunkYGUKTFKW_cjs.SchemaForm,
7471
7471
  {
7472
7472
  fields,
7473
7473
  values: values.inputs,
@@ -7906,7 +7906,7 @@ function WorkTaskComposer({
7906
7906
  }, [open]);
7907
7907
  const workflow = workflows.find((w) => w.id === values.workflowId);
7908
7908
  const fields = workflow?.inputs ?? [];
7909
- const errors = workflow ? chunkVFIZYSZB_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
7909
+ const errors = workflow ? chunkYGUKTFKW_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
7910
7910
  const hasWork = configOpen && Boolean(workflow) && Object.keys(errors).length === 0;
7911
7911
  const unattended = hasWork && values.when !== "now" && values.when !== "manual";
7912
7912
  const canConfigure = !isEdit || seed.assignee === "agent";
@@ -7914,7 +7914,7 @@ function WorkTaskComposer({
7914
7914
  const set = (key, value) => setValues({ ...values, [key]: value });
7915
7915
  const pickWorkflow = (id2) => {
7916
7916
  const next = workflows.find((w) => w.id === id2);
7917
- setValues({ ...values, workflowId: id2, inputs: next ? chunkVFIZYSZB_cjs.defaultInputs(next) : {} });
7917
+ setValues({ ...values, workflowId: id2, inputs: next ? chunkYGUKTFKW_cjs.defaultInputs(next) : {} });
7918
7918
  };
7919
7919
  const openConfigure = () => {
7920
7920
  setConfigOpen(true);
@@ -8100,7 +8100,7 @@ function WorkTaskComposer({
8100
8100
  )
8101
8101
  ] }),
8102
8102
  workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8103
- chunkVFIZYSZB_cjs.SchemaForm,
8103
+ chunkYGUKTFKW_cjs.SchemaForm,
8104
8104
  {
8105
8105
  fields,
8106
8106
  values: values.inputs,
@@ -10283,5 +10283,5 @@ exports.workflowToComposerValues = workflowToComposerValues;
10283
10283
  exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10284
10284
  exports.workflowTriggerType = workflowTriggerType;
10285
10285
  exports.workflowWhen = workflowWhen;
10286
- //# sourceMappingURL=chunk-SSDISIDW.cjs.map
10287
- //# sourceMappingURL=chunk-SSDISIDW.cjs.map
10286
+ //# sourceMappingURL=chunk-3YET6D5E.cjs.map
10287
+ //# sourceMappingURL=chunk-3YET6D5E.cjs.map