@arbidocs/blocks 0.4.121 → 0.4.122

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 (50) hide show
  1. package/dist/agents/index.cjs +285 -285
  2. package/dist/agents/index.js +9 -9
  3. package/dist/calls/index.cjs +1 -1
  4. package/dist/calls/index.js +1 -1
  5. package/dist/{chunk-DFHDWO6U.js → chunk-AY32GGKU.js} +3 -3
  6. package/dist/{chunk-DFHDWO6U.js.map → chunk-AY32GGKU.js.map} +1 -1
  7. package/dist/{chunk-5Y7JRY7Y.js → chunk-P5ST47VY.js} +3 -3
  8. package/dist/{chunk-5Y7JRY7Y.js.map → chunk-P5ST47VY.js.map} +1 -1
  9. package/dist/{chunk-GIEHWHVO.cjs → chunk-US5ASM4G.cjs} +5 -5
  10. package/dist/{chunk-GIEHWHVO.cjs.map → chunk-US5ASM4G.cjs.map} +1 -1
  11. package/dist/{chunk-4MRQKBD2.js → chunk-XFZ7HNPG.js} +3 -3
  12. package/dist/{chunk-4MRQKBD2.js.map → chunk-XFZ7HNPG.js.map} +1 -1
  13. package/dist/{chunk-5JVPLVDT.cjs → chunk-XSUOEJB3.cjs} +3 -3
  14. package/dist/{chunk-5JVPLVDT.cjs.map → chunk-XSUOEJB3.cjs.map} +1 -1
  15. package/dist/{chunk-SCLMCCMU.cjs → chunk-Z2NSU7D5.cjs} +54 -54
  16. package/dist/{chunk-SCLMCCMU.cjs.map → chunk-Z2NSU7D5.cjs.map} +1 -1
  17. package/dist/{chunk-N5S6JG7S.js → chunk-ZP4IFW2E.js} +10 -10
  18. package/dist/{chunk-N5S6JG7S.js.map → chunk-ZP4IFW2E.js.map} +1 -1
  19. package/dist/{chunk-NYHGG2IA.cjs → chunk-ZV3BKLFY.cjs} +3 -3
  20. package/dist/{chunk-NYHGG2IA.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
  21. package/dist/collaboration/index.cjs +9 -9
  22. package/dist/collaboration/index.js +1 -1
  23. package/dist/connect/index.cjs +25 -25
  24. package/dist/connect/index.js +6 -6
  25. package/dist/document-tools/index.cjs +1 -1
  26. package/dist/document-tools/index.js +1 -1
  27. package/dist/facts/index.cjs +2 -2
  28. package/dist/facts/index.js +2 -2
  29. package/dist/files/index.cjs +2 -2
  30. package/dist/files/index.js +2 -2
  31. package/dist/home/index.cjs +18 -18
  32. package/dist/home/index.js +4 -4
  33. package/dist/index.cjs +405 -405
  34. package/dist/index.js +15 -15
  35. package/dist/retrieval/index.cjs +1 -1
  36. package/dist/retrieval/index.js +1 -1
  37. package/dist/settings/index.cjs +11 -11
  38. package/dist/settings/index.js +3 -3
  39. package/dist/shell/index.cjs +2 -2
  40. package/dist/shell/index.js +2 -2
  41. package/dist/site/index.cjs +5 -5
  42. package/dist/site/index.js +1 -1
  43. package/dist/studio/index.cjs +2 -2
  44. package/dist/studio/index.js +2 -2
  45. package/dist/workflow-canvas/index.cjs +52 -52
  46. package/dist/workflow-canvas/index.js +9 -9
  47. package/dist/workspaces/index.cjs +1 -1
  48. package/dist/workspaces/index.js +1 -1
  49. package/node_modules/@arbidocs/coedit/package.json +1 -1
  50. package/package.json +4 -4
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk3AFWGEDJ_cjs = require('./chunk-3AFWGEDJ.cjs');
4
+ var chunkZV3BKLFY_cjs = require('./chunk-ZV3BKLFY.cjs');
5
5
  var chunkS5HZBXZA_cjs = require('./chunk-S5HZBXZA.cjs');
6
6
  var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
7
- var chunkDVUZTGVL_cjs = require('./chunk-DVUZTGVL.cjs');
8
- var chunk5JVPLVDT_cjs = require('./chunk-5JVPLVDT.cjs');
7
+ var chunkXSUOEJB3_cjs = require('./chunk-XSUOEJB3.cjs');
8
+ var chunk7D737FLE_cjs = require('./chunk-7D737FLE.cjs');
9
9
  var chunkN26CXGXC_cjs = require('./chunk-N26CXGXC.cjs');
10
+ var chunk3AFWGEDJ_cjs = require('./chunk-3AFWGEDJ.cjs');
11
+ var chunkDVUZTGVL_cjs = require('./chunk-DVUZTGVL.cjs');
12
+ var chunkOB5F4577_cjs = require('./chunk-OB5F4577.cjs');
10
13
  var chunkV4ISCZJ7_cjs = require('./chunk-V4ISCZJ7.cjs');
11
14
  var chunk2EI7NCUA_cjs = require('./chunk-2EI7NCUA.cjs');
12
15
  var chunkC2CWWEHO_cjs = require('./chunk-C2CWWEHO.cjs');
13
- var chunkNYHGG2IA_cjs = require('./chunk-NYHGG2IA.cjs');
14
- var chunkOB5F4577_cjs = require('./chunk-OB5F4577.cjs');
15
- var chunk7D737FLE_cjs = require('./chunk-7D737FLE.cjs');
16
- var chunkC54XEN5T_cjs = require('./chunk-C54XEN5T.cjs');
17
16
  var chunkB4SRYJLM_cjs = require('./chunk-B4SRYJLM.cjs');
18
17
  var chunk7UTB4PHM_cjs = require('./chunk-7UTB4PHM.cjs');
19
18
  var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
20
- var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
21
19
  var chunk7RGLTF76_cjs = require('./chunk-7RGLTF76.cjs');
20
+ var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
22
21
  var chunkMHVNT4J3_cjs = require('./chunk-MHVNT4J3.cjs');
22
+ var chunkC54XEN5T_cjs = require('./chunk-C54XEN5T.cjs');
23
23
  var chunkKDG6FER6_cjs = require('./chunk-KDG6FER6.cjs');
24
24
  var react = require('react');
25
25
  var ui = require('@arbidocs/react/ui');
@@ -146,7 +146,7 @@ function WorkflowConfigDialog({
146
146
  }) {
147
147
  const l = { ...DEFAULT_WORKFLOW_CONFIG_DIALOG_LABELS, ...labels };
148
148
  const initialKey = JSON.stringify(initialInputs ?? {});
149
- const seedKey = JSON.stringify({ ...chunk5JVPLVDT_cjs.defaultInputs(workflow), ...JSON.parse(initialKey) });
149
+ const seedKey = JSON.stringify({ ...chunkXSUOEJB3_cjs.defaultInputs(workflow), ...JSON.parse(initialKey) });
150
150
  const seed = react.useMemo(() => JSON.parse(seedKey), [seedKey]);
151
151
  const [inputs, setInputs] = useControllableState(inputsProp, seed, onInputsChange);
152
152
  const [agentId, setAgentId] = useControllableState(
@@ -158,7 +158,7 @@ function WorkflowConfigDialog({
158
158
  if (open && inputsProp === void 0) setInputs(seed);
159
159
  }, [open, seed]);
160
160
  const setField = (name, value) => setInputs({ ...inputs, [name]: value });
161
- const errors = chunk5JVPLVDT_cjs.validateInputs(workflow, inputs);
161
+ const errors = chunkXSUOEJB3_cjs.validateInputs(workflow, inputs);
162
162
  const valid = Object.keys(errors).length === 0;
163
163
  const visibleErrors = Object.fromEntries(
164
164
  Object.entries(errors).filter(([, e]) => e !== "required")
@@ -171,7 +171,7 @@ function WorkflowConfigDialog({
171
171
  const blockedByScope = matchedCount !== null && matchedCount === 0 && Boolean(workflow.requiresFiles);
172
172
  const showAgent = workflow.run.kind === "prompt" && workflow.options?.agent !== false && agents !== void 0 && agents.length > 0;
173
173
  const launch = (values) => {
174
- Promise.resolve(onLaunch(chunk5JVPLVDT_cjs.buildLaunch(workflow, values, agentId))).catch(() => {
174
+ Promise.resolve(onLaunch(chunkXSUOEJB3_cjs.buildLaunch(workflow, values, agentId))).catch(() => {
175
175
  });
176
176
  };
177
177
  const submit = () => {
@@ -190,7 +190,7 @@ function WorkflowConfigDialog({
190
190
  const firstField = workflow.inputs.find((f) => !f.advanced);
191
191
  const focusPromptFirst = firstField?.type === "text" || firstField?.type === "longtext";
192
192
  const defaultScopeRender = scopeSource ? (_field, value, onChange) => /* @__PURE__ */ jsxRuntime.jsx(
193
- chunkNYHGG2IA_cjs.ScopePicker,
193
+ chunkZV3BKLFY_cjs.ScopePicker,
194
194
  {
195
195
  folders: scopeSource.folders,
196
196
  unfiledCount: scopeSource.unfiledCount,
@@ -223,7 +223,7 @@ function WorkflowConfigDialog({
223
223
  },
224
224
  children: [
225
225
  /* @__PURE__ */ jsxRuntime.jsx(
226
- chunkNYHGG2IA_cjs.QuickActionDialogHeader,
226
+ chunkZV3BKLFY_cjs.QuickActionDialogHeader,
227
227
  {
228
228
  icon: workflow.icon && renderIcon ? renderIcon(workflow.icon) : null,
229
229
  title: workflow.title,
@@ -241,7 +241,7 @@ function WorkflowConfigDialog({
241
241
  submit();
242
242
  },
243
243
  children: noFiles ? /* @__PURE__ */ jsxRuntime.jsx(
244
- chunkNYHGG2IA_cjs.AddFilesFirst,
244
+ chunkZV3BKLFY_cjs.AddFilesFirst,
245
245
  {
246
246
  reason: l.addFilesReason,
247
247
  action: addFilesAction,
@@ -249,7 +249,7 @@ function WorkflowConfigDialog({
249
249
  }
250
250
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
251
251
  /* @__PURE__ */ jsxRuntime.jsx(
252
- chunk5JVPLVDT_cjs.SchemaForm,
252
+ chunkXSUOEJB3_cjs.SchemaForm,
253
253
  {
254
254
  fields,
255
255
  values: inputs,
@@ -308,7 +308,7 @@ function defaultScopeRenderer(scopeSource) {
308
308
  if (!scopeSource) return void 0;
309
309
  return function renderScope(_field, value, onChange) {
310
310
  return /* @__PURE__ */ jsxRuntime.jsx(
311
- chunkNYHGG2IA_cjs.ScopePicker,
311
+ chunkZV3BKLFY_cjs.ScopePicker,
312
312
  {
313
313
  folders: scopeSource.folders,
314
314
  unfiledCount: scopeSource.unfiledCount,
@@ -327,7 +327,7 @@ function resolveScopeInputs(workflow, inputs, scopeSource) {
327
327
  for (const field of workflow.inputs) {
328
328
  if (field.type !== "scope") continue;
329
329
  const raw = inputs[field.name];
330
- const scope = chunk5JVPLVDT_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
330
+ const scope = chunkXSUOEJB3_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
331
331
  next[field.name] = { ...scope, documents: scopeSource.resolveDocuments(scope) };
332
332
  }
333
333
  return next;
@@ -369,9 +369,9 @@ function WorkflowLauncher({
369
369
  };
370
370
  const select = (workflow) => {
371
371
  if (workflow.run.kind === "operation" && workflow.inputs.length === 0) {
372
- const inputs = chunk5JVPLVDT_cjs.defaultInputs(workflow);
373
- if (Object.keys(chunk5JVPLVDT_cjs.validateInputs(workflow, inputs)).length === 0) {
374
- Promise.resolve(onLaunch(chunk5JVPLVDT_cjs.buildLaunch(workflow, inputs, void 0))).catch(() => {
372
+ const inputs = chunkXSUOEJB3_cjs.defaultInputs(workflow);
373
+ if (Object.keys(chunkXSUOEJB3_cjs.validateInputs(workflow, inputs)).length === 0) {
374
+ Promise.resolve(onLaunch(chunkXSUOEJB3_cjs.buildLaunch(workflow, inputs, void 0))).catch(() => {
375
375
  });
376
376
  return;
377
377
  }
@@ -393,7 +393,7 @@ function WorkflowLauncher({
393
393
  });
394
394
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, "data-slot": "workflow-launcher", children: [
395
395
  showTiles && /* @__PURE__ */ jsxRuntime.jsx(
396
- chunkNYHGG2IA_cjs.StartTiles,
396
+ chunkZV3BKLFY_cjs.StartTiles,
397
397
  {
398
398
  items: [...tiles, ...extraTiles],
399
399
  caption,
@@ -521,7 +521,7 @@ function workflowToSkillMarkdown(workflow) {
521
521
  if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
522
522
  if (workflow.requiresFiles) lines.push("requires_files: true");
523
523
  if (workflow.inputs.length > 0) {
524
- lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunk5JVPLVDT_cjs.fieldToFrontmatter))}`);
524
+ lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkXSUOEJB3_cjs.fieldToFrontmatter))}`);
525
525
  }
526
526
  lines.push("---", "", run.promptTemplate.trim(), "");
527
527
  return lines.join("\n");
@@ -543,11 +543,11 @@ function workflowFromSkillMarkdown(id, text2) {
543
543
  } else if (value === "true" || value === "false") frontmatter[key] = value === "true";
544
544
  else frontmatter[key] = value;
545
545
  }
546
- return chunk5JVPLVDT_cjs.workflowFromFrontmatter(id, frontmatter, body);
546
+ return chunkXSUOEJB3_cjs.workflowFromFrontmatter(id, frontmatter, body);
547
547
  }
548
548
  function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, resolveWorkflow, compose } = {}) {
549
- const steps = chunk5JVPLVDT_cjs.workflowSteps(workflow);
550
- const [inputs, setInputs] = react.useState(() => chunk5JVPLVDT_cjs.initialRunInputs(workflow));
549
+ const steps = chunkXSUOEJB3_cjs.workflowSteps(workflow);
550
+ const [inputs, setInputs] = react.useState(() => chunkXSUOEJB3_cjs.initialRunInputs(workflow));
551
551
  const [states, setStates] = react.useState({});
552
552
  const set = (id, state) => setStates((s) => ({ ...s, [id]: state }));
553
553
  const timers = react.useRef(/* @__PURE__ */ new Map());
@@ -569,10 +569,10 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
569
569
  react.useEffect(() => {
570
570
  if (Object.values(states).some((s) => s.status === "running")) return;
571
571
  const next = steps.find(
572
- (s) => (s.kind === "agent" || s.kind === "action") && chunk5JVPLVDT_cjs.stepPhase(steps, states, s.id) === "ready"
572
+ (s) => (s.kind === "agent" || s.kind === "action") && chunkXSUOEJB3_cjs.stepPhase(steps, states, s.id) === "ready"
573
573
  );
574
574
  if (!next || next.kind !== "agent" && next.kind !== "action") return;
575
- const prompt = next.kind === "agent" ? chunk5JVPLVDT_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
575
+ const prompt = next.kind === "agent" ? chunkXSUOEJB3_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
576
576
  set(next.id, { status: "running", startedAt: (/* @__PURE__ */ new Date()).toISOString() });
577
577
  timers.current.set(
578
578
  next.id,
@@ -585,7 +585,7 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
585
585
  }, delayMs)
586
586
  );
587
587
  }, [states, steps, workflow]);
588
- return chunk5JVPLVDT_cjs.useWorkflowView({
588
+ return chunkXSUOEJB3_cjs.useWorkflowView({
589
589
  steps,
590
590
  states,
591
591
  inputs,
@@ -5008,7 +5008,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
5008
5008
  }
5009
5009
  const typed = name?.trim();
5010
5010
  if (workflow.options?.agent === false) {
5011
- const message = chunk5JVPLVDT_cjs.composeWorkflowPrompt(workflow, inputs, context);
5011
+ const message = chunkXSUOEJB3_cjs.composeWorkflowPrompt(workflow, inputs, context);
5012
5012
  return { name: typed || message, prompt: "", skill_ref: null, skill_inputs: null };
5013
5013
  }
5014
5014
  const derived = typed || deriveWorkflowName(workflow, inputs);
@@ -5022,7 +5022,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
5022
5022
  }
5023
5023
  return {
5024
5024
  name: derived,
5025
- prompt: chunk5JVPLVDT_cjs.composeWorkflowPrompt(workflow, inputs, context),
5025
+ prompt: chunkXSUOEJB3_cjs.composeWorkflowPrompt(workflow, inputs, context),
5026
5026
  skill_ref: null,
5027
5027
  // The files a run is bound to travel in the saved inputs, whatever the template: the server binds
5028
5028
  // the run to the ids listed under any input's `documents`.
@@ -6202,7 +6202,7 @@ function TaskActivityDialog({
6202
6202
  testId,
6203
6203
  ...timeline
6204
6204
  }) {
6205
- const l = { ...chunk5JVPLVDT_cjs.DEFAULT_TASK_ACTIVITY_LABELS, ...labels };
6205
+ const l = { ...chunkXSUOEJB3_cjs.DEFAULT_TASK_ACTIVITY_LABELS, ...labels };
6206
6206
  const id = chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "task-activity" });
6207
6207
  const count = events?.length ?? 0;
6208
6208
  const scrollToEnd = react.useCallback(
@@ -6217,7 +6217,7 @@ function TaskActivityDialog({
6217
6217
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { className: "truncate", children: taskName })
6218
6218
  ] }),
6219
6219
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-h-[55dvh] overflow-y-auto pr-1", "data-testid": `${id}-scroll`, children: [
6220
- isLoading && !events ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.loading }) : isError && !events ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: l.error }) : count === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.empty }) : /* @__PURE__ */ jsxRuntime.jsx(chunk5JVPLVDT_cjs.TaskActivityTimeline, { events: events ?? [], labels, testId: id, ...timeline }),
6220
+ isLoading && !events ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.loading }) : isError && !events ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: l.error }) : count === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.empty }) : /* @__PURE__ */ jsxRuntime.jsx(chunkXSUOEJB3_cjs.TaskActivityTimeline, { events: events ?? [], labels, testId: id, ...timeline }),
6221
6221
  /* @__PURE__ */ jsxRuntime.jsx("div", { ref: scrollToEnd })
6222
6222
  ] })
6223
6223
  ] }) });
@@ -6344,7 +6344,7 @@ function groupThreadActivity(steps, items) {
6344
6344
  continue;
6345
6345
  }
6346
6346
  if (current === void 0) out.before.push(item);
6347
- else if (chunk5JVPLVDT_cjs.isRunFinished(steps, states)) out.after.push(item);
6347
+ else if (chunkXSUOEJB3_cjs.isRunFinished(steps, states)) out.after.push(item);
6348
6348
  else {
6349
6349
  const status = states[current]?.status;
6350
6350
  const at = status === "done" || status === "skipped" ? steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? ""))?.id ?? current : current;
@@ -6462,13 +6462,13 @@ function WorkflowThreadStrip({
6462
6462
  const chevron = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-3 shrink-0 text-muted-foreground" });
6463
6463
  const [selected, setSelected] = react.useState(null);
6464
6464
  const [open, setOpen] = react.useState(null);
6465
- const phaseOf = (id) => chunk5JVPLVDT_cjs.stepPhase(steps, states, id);
6465
+ const phaseOf = (id) => chunkXSUOEJB3_cjs.stepPhase(steps, states, id);
6466
6466
  const iconOf = (step) => step.icon && renderIcon ? renderIcon(step.icon) : void 0;
6467
6467
  const waitingOf = (id) => {
6468
6468
  const step = steps.find((s) => s.id === id);
6469
6469
  const phase = phaseOf(id);
6470
- const documents = chunk5JVPLVDT_cjs.waitingDocuments(states[id]);
6471
- if (documents.length) return chunk5JVPLVDT_cjs.waitingForDocumentsText(documents.length);
6470
+ const documents = chunkXSUOEJB3_cjs.waitingDocuments(states[id]);
6471
+ if (documents.length) return chunkXSUOEJB3_cjs.waitingForDocumentsText(documents.length);
6472
6472
  const name = step && (phase === "ready" || phase === "waiting") ? assigneeOf?.(step) : void 0;
6473
6473
  return name ? l.waitingFor.replace("{name}", name) : void 0;
6474
6474
  };
@@ -6483,14 +6483,14 @@ function WorkflowThreadStrip({
6483
6483
  "button",
6484
6484
  {
6485
6485
  type: "button",
6486
- className: ui.cn(chunk5JVPLVDT_cjs.STEP_PILL, "py-0.5", chunk5JVPLVDT_cjs.stepPillTone(phase, isCurrent)),
6486
+ className: ui.cn(chunkXSUOEJB3_cjs.STEP_PILL, "py-0.5", chunkXSUOEJB3_cjs.stepPillTone(phase, isCurrent)),
6487
6487
  "aria-current": isCurrent ? "step" : void 0,
6488
6488
  title: waiting ? `${step.title} \xB7 ${waiting}` : step.title,
6489
6489
  "data-phase": phase,
6490
6490
  "data-testid": `workflow-thread-step-${step.id}`,
6491
6491
  children: [
6492
- /* @__PURE__ */ jsxRuntime.jsx(chunk5JVPLVDT_cjs.PhaseMark, { phase, icon: iconOf(step) }),
6493
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: isCurrent ? chunk5JVPLVDT_cjs.STEP_LABEL_CURRENT : ui.cn(chunk5JVPLVDT_cjs.STEP_LABEL, chunk5JVPLVDT_cjs.STEP_LABEL_MAX), children: step.title }),
6492
+ /* @__PURE__ */ jsxRuntime.jsx(chunkXSUOEJB3_cjs.PhaseMark, { phase, icon: iconOf(step) }),
6493
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: isCurrent ? chunkXSUOEJB3_cjs.STEP_LABEL_CURRENT : ui.cn(chunkXSUOEJB3_cjs.STEP_LABEL, chunkXSUOEJB3_cjs.STEP_LABEL_MAX), children: step.title }),
6494
6494
  sentBack && /* @__PURE__ */ jsxRuntime.jsx(
6495
6495
  lucideReact.CornerUpLeft,
6496
6496
  {
@@ -6502,7 +6502,7 @@ function WorkflowThreadStrip({
6502
6502
  assignee && isCurrent && !narrow && /* @__PURE__ */ jsxRuntime.jsxs(
6503
6503
  "span",
6504
6504
  {
6505
- className: ui.cn(chunk5JVPLVDT_cjs.STEP_EXTRA, "flex max-w-[12rem] items-center gap-0.5"),
6505
+ className: ui.cn(chunkXSUOEJB3_cjs.STEP_EXTRA, "flex max-w-[12rem] items-center gap-0.5"),
6506
6506
  title: waiting,
6507
6507
  "data-testid": `workflow-thread-step-${step.id}-assignee`,
6508
6508
  children: [
@@ -6561,9 +6561,9 @@ function WorkflowThreadStrip({
6561
6561
  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}`))
6562
6562
  ] }) : null;
6563
6563
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("min-w-0 flex-1", className), "data-testid": "workflow-thread-strip", children: /* @__PURE__ */ jsxRuntime.jsx(
6564
- chunk5JVPLVDT_cjs.StepBarFrame,
6564
+ chunkXSUOEJB3_cjs.StepBarFrame,
6565
6565
  {
6566
- levels: chunk5JVPLVDT_cjs.stepLevels(steps),
6566
+ levels: chunkXSUOEJB3_cjs.stepLevels(steps),
6567
6567
  phaseOf,
6568
6568
  current: selected,
6569
6569
  onSelect: (id) => {
@@ -6648,10 +6648,10 @@ function compactThreadActivity(events) {
6648
6648
  const count = Math.max(1, entry.recipients.length);
6649
6649
  entry.label = `Notified ${count} ${count === 1 ? "user" : "users"}`;
6650
6650
  } else if (STEP_LABELS[event.kind]) {
6651
- const documents = chunk5JVPLVDT_cjs.eventWaitingDocuments(event.detail);
6651
+ const documents = chunkXSUOEJB3_cjs.eventWaitingDocuments(event.detail);
6652
6652
  result.push({
6653
6653
  event,
6654
- label: documents ? chunk5JVPLVDT_cjs.waitingForDocumentsText(documents.length) : STEP_LABELS[event.kind],
6654
+ label: documents ? chunkXSUOEJB3_cjs.waitingForDocumentsText(documents.length) : STEP_LABELS[event.kind],
6655
6655
  recipients: []
6656
6656
  });
6657
6657
  } else if (["artifact_created", "artifact_edited", "document_added", "document_removed"].includes(
@@ -7058,7 +7058,7 @@ function defaultTaskComposerValues(workflows, initial) {
7058
7058
  return {
7059
7059
  assignee: "me",
7060
7060
  workflowId,
7061
- inputs: workflow ? { ...chunk5JVPLVDT_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7061
+ inputs: workflow ? { ...chunkXSUOEJB3_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7062
7062
  when: "manual",
7063
7063
  runAt: "",
7064
7064
  rrule: "",
@@ -7167,7 +7167,7 @@ function WorkflowComposer({
7167
7167
  return !docs?.length;
7168
7168
  })
7169
7169
  );
7170
- const whatMissing = !workflow || Object.keys(chunk5JVPLVDT_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7170
+ const whatMissing = !workflow || Object.keys(chunkXSUOEJB3_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7171
7171
  const runAtPast = values.when === "once" && values.runAt !== "" && values.runAt !== initialValues?.runAt && new Date(values.runAt).getTime() <= Date.now();
7172
7172
  const whenMissing = missingWhen(values, runAtPast);
7173
7173
  const scheduled = values.when !== "now" && values.when !== "manual";
@@ -7179,7 +7179,7 @@ function WorkflowComposer({
7179
7179
  setValues({
7180
7180
  ...values,
7181
7181
  workflowId: next,
7182
- inputs: def ? chunk5JVPLVDT_cjs.defaultInputs(def) : {},
7182
+ inputs: def ? chunkXSUOEJB3_cjs.defaultInputs(def) : {},
7183
7183
  ...def?.documentAction ? { access: "standing" } : {}
7184
7184
  });
7185
7185
  };
@@ -7307,7 +7307,7 @@ function WorkflowComposer({
7307
7307
  },
7308
7308
  "data-testid": `${id}-dropzone`,
7309
7309
  children: /* @__PURE__ */ jsxRuntime.jsx(
7310
- chunkNYHGG2IA_cjs.AddFilesFirst,
7310
+ chunkZV3BKLFY_cjs.AddFilesFirst,
7311
7311
  {
7312
7312
  reason: l.addFilesReason,
7313
7313
  action: addFilesAction,
@@ -7317,7 +7317,7 @@ function WorkflowComposer({
7317
7317
  }
7318
7318
  ),
7319
7319
  !noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7320
- chunk5JVPLVDT_cjs.SchemaForm,
7320
+ chunkXSUOEJB3_cjs.SchemaForm,
7321
7321
  {
7322
7322
  fields,
7323
7323
  values: values.inputs,
@@ -7756,7 +7756,7 @@ function WorkTaskComposer({
7756
7756
  }, [open]);
7757
7757
  const workflow = workflows.find((w) => w.id === values.workflowId);
7758
7758
  const fields = workflow?.inputs ?? [];
7759
- const errors = workflow ? chunk5JVPLVDT_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
7759
+ const errors = workflow ? chunkXSUOEJB3_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
7760
7760
  const hasWork = configOpen && Boolean(workflow) && Object.keys(errors).length === 0;
7761
7761
  const unattended = hasWork && values.when !== "now" && values.when !== "manual";
7762
7762
  const canConfigure = !isEdit || seed.assignee === "agent";
@@ -7764,7 +7764,7 @@ function WorkTaskComposer({
7764
7764
  const set = (key, value) => setValues({ ...values, [key]: value });
7765
7765
  const pickWorkflow = (id2) => {
7766
7766
  const next = workflows.find((w) => w.id === id2);
7767
- setValues({ ...values, workflowId: id2, inputs: next ? chunk5JVPLVDT_cjs.defaultInputs(next) : {} });
7767
+ setValues({ ...values, workflowId: id2, inputs: next ? chunkXSUOEJB3_cjs.defaultInputs(next) : {} });
7768
7768
  };
7769
7769
  const openConfigure = () => {
7770
7770
  setConfigOpen(true);
@@ -7950,7 +7950,7 @@ function WorkTaskComposer({
7950
7950
  )
7951
7951
  ] }),
7952
7952
  workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7953
- chunk5JVPLVDT_cjs.SchemaForm,
7953
+ chunkXSUOEJB3_cjs.SchemaForm,
7954
7954
  {
7955
7955
  fields,
7956
7956
  values: values.inputs,
@@ -10131,5 +10131,5 @@ exports.workflowToComposerValues = workflowToComposerValues;
10131
10131
  exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10132
10132
  exports.workflowTriggerType = workflowTriggerType;
10133
10133
  exports.workflowWhen = workflowWhen;
10134
- //# sourceMappingURL=chunk-SCLMCCMU.cjs.map
10135
- //# sourceMappingURL=chunk-SCLMCCMU.cjs.map
10134
+ //# sourceMappingURL=chunk-Z2NSU7D5.cjs.map
10135
+ //# sourceMappingURL=chunk-Z2NSU7D5.cjs.map