@arbidocs/blocks 0.4.135 → 0.4.136

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 (110) hide show
  1. package/dist/agents/index.cjs +361 -313
  2. package/dist/agents/index.js +12 -12
  3. package/dist/agents/skills/index.d.ts +2 -0
  4. package/dist/agents/skills/skillFiles.d.ts +65 -0
  5. package/dist/agents/skills/skillImport.d.ts +36 -0
  6. package/dist/agents/workflows/index.d.ts +1 -1
  7. package/dist/agents/workflows/workflow.d.ts +19 -0
  8. package/dist/calls/index.cjs +3 -3
  9. package/dist/calls/index.js +2 -2
  10. package/dist/chat/index.cjs +139 -139
  11. package/dist/chat/index.js +4 -4
  12. package/dist/{chunk-GDBDHOI4.js → chunk-3FFRYZKV.js} +3 -3
  13. package/dist/{chunk-GDBDHOI4.js.map → chunk-3FFRYZKV.js.map} +1 -1
  14. package/dist/{chunk-QDEODGXE.cjs → chunk-44R3CCZT.cjs} +3 -3
  15. package/dist/{chunk-QDEODGXE.cjs.map → chunk-44R3CCZT.cjs.map} +1 -1
  16. package/dist/{chunk-SZX44LCT.js → chunk-5BXEYYH6.js} +3 -3
  17. package/dist/{chunk-SZX44LCT.js.map → chunk-5BXEYYH6.js.map} +1 -1
  18. package/dist/{chunk-FUTMU4FR.js → chunk-5HFPRI3W.js} +3 -3
  19. package/dist/{chunk-FUTMU4FR.js.map → chunk-5HFPRI3W.js.map} +1 -1
  20. package/dist/{chunk-PJJY6CYL.cjs → chunk-7YLJHTDC.cjs} +11 -11
  21. package/dist/{chunk-PJJY6CYL.cjs.map → chunk-7YLJHTDC.cjs.map} +1 -1
  22. package/dist/{chunk-GZPTWHP5.cjs → chunk-C44D4WFG.cjs} +6 -6
  23. package/dist/{chunk-GZPTWHP5.cjs.map → chunk-C44D4WFG.cjs.map} +1 -1
  24. package/dist/{chunk-OPTBQSCV.cjs → chunk-DJM7DLCT.cjs} +3 -3
  25. package/dist/{chunk-OPTBQSCV.cjs.map → chunk-DJM7DLCT.cjs.map} +1 -1
  26. package/dist/{chunk-VHJHY7TT.js → chunk-ECERC6TI.js} +3 -3
  27. package/dist/{chunk-VHJHY7TT.js.map → chunk-ECERC6TI.js.map} +1 -1
  28. package/dist/{chunk-OQ7RUNOC.js → chunk-GFYGYME3.js} +3 -3
  29. package/dist/{chunk-OQ7RUNOC.js.map → chunk-GFYGYME3.js.map} +1 -1
  30. package/dist/{chunk-4QIIDXLF.cjs → chunk-IE5CUCZK.cjs} +8 -8
  31. package/dist/{chunk-4QIIDXLF.cjs.map → chunk-IE5CUCZK.cjs.map} +1 -1
  32. package/dist/{chunk-2PNNCEPH.js → chunk-IQU2GI6V.js} +249 -5
  33. package/dist/chunk-IQU2GI6V.js.map +1 -0
  34. package/dist/{chunk-PUCY3UXN.js → chunk-JO3EMZ4X.js} +3 -3
  35. package/dist/{chunk-PUCY3UXN.js.map → chunk-JO3EMZ4X.js.map} +1 -1
  36. package/dist/{chunk-ARDHLU73.cjs → chunk-KDUGTKVI.cjs} +21 -2
  37. package/dist/chunk-KDUGTKVI.cjs.map +1 -0
  38. package/dist/{chunk-4RLCRFZS.js → chunk-L2PAPOZ5.js} +21 -3
  39. package/dist/chunk-L2PAPOZ5.js.map +1 -0
  40. package/dist/{chunk-SARREDFP.cjs → chunk-LIHRGG4M.cjs} +303 -46
  41. package/dist/chunk-LIHRGG4M.cjs.map +1 -0
  42. package/dist/{chunk-UMIY4SQS.js → chunk-LT2X5N37.js} +12 -53
  43. package/dist/chunk-LT2X5N37.js.map +1 -0
  44. package/dist/{chunk-KYDRUFWT.cjs → chunk-N55UIXVT.cjs} +5 -5
  45. package/dist/{chunk-KYDRUFWT.cjs.map → chunk-N55UIXVT.cjs.map} +1 -1
  46. package/dist/{chunk-4S5IDT5F.cjs → chunk-OAL3B2ZU.cjs} +5 -5
  47. package/dist/{chunk-4S5IDT5F.cjs.map → chunk-OAL3B2ZU.cjs.map} +1 -1
  48. package/dist/{chunk-AAFX64WD.cjs → chunk-OR4CO743.cjs} +3 -3
  49. package/dist/{chunk-AAFX64WD.cjs.map → chunk-OR4CO743.cjs.map} +1 -1
  50. package/dist/{chunk-6AALMYPS.cjs → chunk-OWCEQKAR.cjs} +24 -3
  51. package/dist/chunk-OWCEQKAR.cjs.map +1 -0
  52. package/dist/{chunk-TT6XV6WM.cjs → chunk-OZLWSNUC.cjs} +77 -121
  53. package/dist/chunk-OZLWSNUC.cjs.map +1 -0
  54. package/dist/{chunk-ENDP7JER.js → chunk-RUB62J2X.js} +3 -3
  55. package/dist/{chunk-ENDP7JER.js.map → chunk-RUB62J2X.js.map} +1 -1
  56. package/dist/{chunk-4UMXQPNA.js → chunk-VIU7AMHF.js} +4 -4
  57. package/dist/{chunk-4UMXQPNA.js.map → chunk-VIU7AMHF.js.map} +1 -1
  58. package/dist/{chunk-2DFDFOM7.js → chunk-Y5KTM3V5.js} +23 -4
  59. package/dist/chunk-Y5KTM3V5.js.map +1 -0
  60. package/dist/{chunk-DWZXSPMB.cjs → chunk-ZAVEMQ37.cjs} +3 -3
  61. package/dist/{chunk-DWZXSPMB.cjs.map → chunk-ZAVEMQ37.cjs.map} +1 -1
  62. package/dist/{chunk-QYTYW74G.js → chunk-ZNI4SW2G.js} +4 -4
  63. package/dist/{chunk-QYTYW74G.js.map → chunk-ZNI4SW2G.js.map} +1 -1
  64. package/dist/collaboration/index.cjs +51 -51
  65. package/dist/collaboration/index.js +3 -3
  66. package/dist/connect/docx.cjs +6 -6
  67. package/dist/connect/docx.js +5 -5
  68. package/dist/connect/index.cjs +223 -134
  69. package/dist/connect/index.cjs.map +1 -1
  70. package/dist/connect/index.d.ts +2 -2
  71. package/dist/connect/index.js +145 -61
  72. package/dist/connect/index.js.map +1 -1
  73. package/dist/connection/ConnectedSkillUpload.d.ts +26 -2
  74. package/dist/connection/ConnectedWorkflowBuilder.d.ts +23 -11
  75. package/dist/connection/ConnectionProvider.d.ts +17 -0
  76. package/dist/document-tools/index.cjs +1 -1
  77. package/dist/document-tools/index.js +1 -1
  78. package/dist/facts/index.cjs +3 -3
  79. package/dist/facts/index.js +3 -3
  80. package/dist/files/index.cjs +3 -3
  81. package/dist/files/index.js +3 -3
  82. package/dist/home/index.cjs +19 -19
  83. package/dist/home/index.js +5 -5
  84. package/dist/index.cjs +711 -663
  85. package/dist/index.js +21 -21
  86. package/dist/retrieval/index.cjs +1 -1
  87. package/dist/retrieval/index.js +1 -1
  88. package/dist/settings/index.cjs +47 -47
  89. package/dist/settings/index.js +5 -5
  90. package/dist/shell/index.cjs +3 -3
  91. package/dist/shell/index.js +3 -3
  92. package/dist/site/index.cjs +5 -5
  93. package/dist/site/index.js +1 -1
  94. package/dist/studio/index.cjs +10 -10
  95. package/dist/studio/index.js +8 -8
  96. package/dist/workflow-canvas/index.cjs +116 -92
  97. package/dist/workflow-canvas/index.cjs.map +1 -1
  98. package/dist/workflow-canvas/index.d.ts +1 -1
  99. package/dist/workflow-canvas/index.js +67 -44
  100. package/dist/workflow-canvas/index.js.map +1 -1
  101. package/node_modules/@arbidocs/coedit/package.json +1 -1
  102. package/package.json +4 -4
  103. package/dist/chunk-2DFDFOM7.js.map +0 -1
  104. package/dist/chunk-2PNNCEPH.js.map +0 -1
  105. package/dist/chunk-4RLCRFZS.js.map +0 -1
  106. package/dist/chunk-6AALMYPS.cjs.map +0 -1
  107. package/dist/chunk-ARDHLU73.cjs.map +0 -1
  108. package/dist/chunk-SARREDFP.cjs.map +0 -1
  109. package/dist/chunk-TT6XV6WM.cjs.map +0 -1
  110. package/dist/chunk-UMIY4SQS.js.map +0 -1
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk3AFWGEDJ_cjs = require('./chunk-3AFWGEDJ.cjs');
4
+ var chunk44R3CCZT_cjs = require('./chunk-44R3CCZT.cjs');
5
5
  var chunkS5HZBXZA_cjs = require('./chunk-S5HZBXZA.cjs');
6
- var chunkDVUZTGVL_cjs = require('./chunk-DVUZTGVL.cjs');
7
6
  var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
8
- var chunkSARREDFP_cjs = require('./chunk-SARREDFP.cjs');
7
+ var chunkLIHRGG4M_cjs = require('./chunk-LIHRGG4M.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 chunkR26BK7YL_cjs = require('./chunk-R26BK7YL.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 chunkQDEODGXE_cjs = require('./chunk-QDEODGXE.cjs');
14
- var chunkR26BK7YL_cjs = require('./chunk-R26BK7YL.cjs');
15
- var chunk7D737FLE_cjs = require('./chunk-7D737FLE.cjs');
16
16
  var chunk7RGLTF76_cjs = require('./chunk-7RGLTF76.cjs');
17
- var chunk6AALMYPS_cjs = require('./chunk-6AALMYPS.cjs');
17
+ var chunkC4WSHRR6_cjs = require('./chunk-C4WSHRR6.cjs');
18
+ var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.cjs');
19
+ var chunkOWCEQKAR_cjs = require('./chunk-OWCEQKAR.cjs');
18
20
  var chunk7UTB4PHM_cjs = require('./chunk-7UTB4PHM.cjs');
19
21
  var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
20
22
  var chunkMHVNT4J3_cjs = require('./chunk-MHVNT4J3.cjs');
21
- var chunkC4WSHRR6_cjs = require('./chunk-C4WSHRR6.cjs');
22
- var chunkULWRNGGE_cjs = require('./chunk-ULWRNGGE.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({ ...chunk6AALMYPS_cjs.defaultInputs(workflow), ...JSON.parse(initialKey) });
149
+ const seedKey = JSON.stringify({ ...chunkOWCEQKAR_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 = chunk6AALMYPS_cjs.validateInputs(workflow, inputs);
161
+ const errors = chunkOWCEQKAR_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(chunk6AALMYPS_cjs.buildLaunch(workflow, values, agentId))).catch(() => {
174
+ Promise.resolve(onLaunch(chunkOWCEQKAR_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
- chunkQDEODGXE_cjs.ScopePicker,
193
+ chunk44R3CCZT_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
- chunkQDEODGXE_cjs.QuickActionDialogHeader,
226
+ chunk44R3CCZT_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
- chunkQDEODGXE_cjs.AddFilesFirst,
244
+ chunk44R3CCZT_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
- chunkSARREDFP_cjs.SchemaForm,
252
+ chunkLIHRGG4M_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
- chunkQDEODGXE_cjs.ScopePicker,
311
+ chunk44R3CCZT_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 = chunk6AALMYPS_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
330
+ const scope = chunkOWCEQKAR_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 = chunk6AALMYPS_cjs.defaultInputs(workflow);
373
- if (Object.keys(chunk6AALMYPS_cjs.validateInputs(workflow, inputs)).length === 0) {
374
- Promise.resolve(onLaunch(chunk6AALMYPS_cjs.buildLaunch(workflow, inputs, void 0))).catch(() => {
372
+ const inputs = chunkOWCEQKAR_cjs.defaultInputs(workflow);
373
+ if (Object.keys(chunkOWCEQKAR_cjs.validateInputs(workflow, inputs)).length === 0) {
374
+ Promise.resolve(onLaunch(chunkOWCEQKAR_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
- chunkQDEODGXE_cjs.StartTiles,
396
+ chunk44R3CCZT_cjs.StartTiles,
397
397
  {
398
398
  items: [...tiles, ...extraTiles],
399
399
  caption,
@@ -504,50 +504,9 @@ function WorkflowDocumentsField({
504
504
  addFilesAction
505
505
  ] });
506
506
  }
507
-
508
- // src/agents/workflows/skillMarkdown.ts
509
- var JSON_KEYS = /* @__PURE__ */ new Set(["inputs"]);
510
- var oneLine = (text2) => text2.replace(/\s*\n\s*/g, " ").trim();
511
- var skillSlug = (raw) => raw.toLowerCase().replace(/[^a-z0-9-]/g, "");
512
- function workflowToSkillMarkdown(workflow) {
513
- const { run } = workflow;
514
- if (run.kind !== "prompt") throw new Error("Only skills that start a chat can be copied");
515
- const lines = [
516
- "---",
517
- `name: ${skillSlug(workflow.id)}`,
518
- `description: ${oneLine(workflow.description)}`
519
- ];
520
- if (workflow.icon) lines.push(`icon: ${workflow.icon}`);
521
- if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
522
- if (workflow.requiresFiles) lines.push("requires_files: true");
523
- if (workflow.inputs.length > 0) {
524
- lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunk6AALMYPS_cjs.fieldToFrontmatter))}`);
525
- }
526
- lines.push("---", "", run.promptTemplate.trim(), "");
527
- return lines.join("\n");
528
- }
529
- function workflowFromSkillMarkdown(id, text2) {
530
- const match = /^---\n([\s\S]*?)\n---\n?([\s\S]*)$/.exec(text2);
531
- const frontmatter = {};
532
- const body = match ? match[2] : text2;
533
- for (const line of (match ? match[1] : "").split("\n")) {
534
- const i = line.indexOf(":");
535
- if (i < 1) continue;
536
- const key = line.slice(0, i).trim();
537
- const value = line.slice(i + 1).trim();
538
- if (JSON_KEYS.has(key)) {
539
- try {
540
- frontmatter[key] = JSON.parse(value);
541
- } catch {
542
- }
543
- } else if (value === "true" || value === "false") frontmatter[key] = value === "true";
544
- else frontmatter[key] = value;
545
- }
546
- return chunk6AALMYPS_cjs.workflowFromFrontmatter(id, frontmatter, body);
547
- }
548
507
  function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, resolveWorkflow, compose } = {}) {
549
- const steps = chunk6AALMYPS_cjs.workflowSteps(workflow);
550
- const [inputs, setInputs] = react.useState(() => chunk6AALMYPS_cjs.initialRunInputs(workflow));
508
+ const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
509
+ const [inputs, setInputs] = react.useState(() => chunkOWCEQKAR_cjs.initialRunInputs(workflow));
551
510
  const [states, setStates] = react.useState({});
552
511
  const set = (id, state) => setStates((s) => ({ ...s, [id]: state }));
553
512
  const timers = react.useRef(/* @__PURE__ */ new Map());
@@ -569,10 +528,10 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
569
528
  react.useEffect(() => {
570
529
  if (Object.values(states).some((s) => s.status === "running")) return;
571
530
  const next = steps.find(
572
- (s) => (s.kind === "agent" || s.kind === "action") && chunk6AALMYPS_cjs.stepPhase(steps, states, s.id) === "ready"
531
+ (s) => (s.kind === "agent" || s.kind === "action") && chunkOWCEQKAR_cjs.stepPhase(steps, states, s.id) === "ready"
573
532
  );
574
533
  if (!next || next.kind !== "agent" && next.kind !== "action") return;
575
- const prompt = next.kind === "agent" ? chunk6AALMYPS_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
534
+ const prompt = next.kind === "agent" ? chunkOWCEQKAR_cjs.composeStepPrompt(workflow, next, inputs, { resolveWorkflow, compose }) : "";
576
535
  set(next.id, { status: "running", startedAt: (/* @__PURE__ */ new Date()).toISOString() });
577
536
  timers.current.set(
578
537
  next.id,
@@ -585,7 +544,7 @@ function useWorkflowPreview(workflow, { answer = "{prompt}", delayMs = 400, reso
585
544
  }, delayMs)
586
545
  );
587
546
  }, [states, steps, workflow]);
588
- return chunkSARREDFP_cjs.useWorkflowView({
547
+ return chunkLIHRGG4M_cjs.useWorkflowView({
589
548
  steps,
590
549
  states,
591
550
  inputs,
@@ -4710,7 +4669,7 @@ function TaskStartDialog({
4710
4669
  setSourceOpen(false);
4711
4670
  }, [open]);
4712
4671
  const textareaRef = react.useRef(null);
4713
- const mention = chunk6AALMYPS_cjs.useMentionAutocomplete({
4672
+ const mention = chunkOWCEQKAR_cjs.useMentionAutocomplete({
4714
4673
  value: prompt,
4715
4674
  onValueChange: setPrompt,
4716
4675
  candidates: people,
@@ -5061,7 +5020,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
5061
5020
  }
5062
5021
  const typed = name?.trim();
5063
5022
  if (workflow.options?.agent === false) {
5064
- const message = chunk6AALMYPS_cjs.composeWorkflowPrompt(workflow, inputs, context);
5023
+ const message = chunkOWCEQKAR_cjs.composeWorkflowPrompt(workflow, inputs, context);
5065
5024
  return { name: typed || message, prompt: "", skill_ref: null, skill_inputs: null };
5066
5025
  }
5067
5026
  const derived = typed || deriveWorkflowName(workflow, inputs);
@@ -5075,7 +5034,7 @@ function workflowTaskFields(workflow, inputs, name, context) {
5075
5034
  }
5076
5035
  return {
5077
5036
  name: derived,
5078
- prompt: chunk6AALMYPS_cjs.composeWorkflowPrompt(workflow, inputs, context),
5037
+ prompt: chunkOWCEQKAR_cjs.composeWorkflowPrompt(workflow, inputs, context),
5079
5038
  skill_ref: null,
5080
5039
  // The files a run is bound to travel in the saved inputs, whatever the template: the server binds
5081
5040
  // the run to the ids listed under any input's `documents`.
@@ -6255,7 +6214,7 @@ function TaskActivityDialog({
6255
6214
  testId,
6256
6215
  ...timeline
6257
6216
  }) {
6258
- const l = { ...chunkSARREDFP_cjs.DEFAULT_TASK_ACTIVITY_LABELS, ...labels };
6217
+ const l = { ...chunkLIHRGG4M_cjs.DEFAULT_TASK_ACTIVITY_LABELS, ...labels };
6259
6218
  const id = chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "task-activity" });
6260
6219
  const count = events?.length ?? 0;
6261
6220
  const scrollToEnd = react.useCallback(
@@ -6270,7 +6229,7 @@ function TaskActivityDialog({
6270
6229
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { className: "truncate", children: taskName })
6271
6230
  ] }),
6272
6231
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-h-[55dvh] overflow-y-auto pr-1", "data-testid": `${id}-scroll`, children: [
6273
- 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(chunkSARREDFP_cjs.TaskActivityTimeline, { events: events ?? [], labels, testId: id, ...timeline }),
6232
+ 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(chunkLIHRGG4M_cjs.TaskActivityTimeline, { events: events ?? [], labels, testId: id, ...timeline }),
6274
6233
  /* @__PURE__ */ jsxRuntime.jsx("div", { ref: scrollToEnd })
6275
6234
  ] })
6276
6235
  ] }) });
@@ -6308,7 +6267,7 @@ function TaskFlow({
6308
6267
  },
6309
6268
  children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex w-max min-w-full items-center gap-1 py-0.5", children: items.map((item, i) => {
6310
6269
  const chip = (props) => /* @__PURE__ */ jsxRuntime.jsx(
6311
- chunk6AALMYPS_cjs.StepChip,
6270
+ chunkOWCEQKAR_cjs.StepChip,
6312
6271
  {
6313
6272
  kind: "adhoc",
6314
6273
  phase: "ready",
@@ -6362,7 +6321,7 @@ function ThreadActivity({ item, children }) {
6362
6321
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full max-w-xl items-center gap-2", children: [
6363
6322
  /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "wf-link", "data-done": done || void 0 }),
6364
6323
  /* @__PURE__ */ jsxRuntime.jsx(
6365
- chunk6AALMYPS_cjs.StepChip,
6324
+ chunkOWCEQKAR_cjs.StepChip,
6366
6325
  {
6367
6326
  inert: true,
6368
6327
  kind,
@@ -6381,7 +6340,7 @@ function ThreadActivity({ item, children }) {
6381
6340
  }
6382
6341
  ),
6383
6342
  document && /* @__PURE__ */ jsxRuntime.jsx(
6384
- chunk6AALMYPS_cjs.StepDocumentButton,
6343
+ chunkOWCEQKAR_cjs.StepDocumentButton,
6385
6344
  {
6386
6345
  kind,
6387
6346
  name: document.name,
@@ -6448,7 +6407,7 @@ function ThreadLauncher({
6448
6407
  const [shared, setShared] = react.useState(false);
6449
6408
  const [started, setStarted] = react.useState(null);
6450
6409
  const textareaRef = react.useRef(null);
6451
- const mention = chunk6AALMYPS_cjs.useMentionAutocomplete({
6410
+ const mention = chunkOWCEQKAR_cjs.useMentionAutocomplete({
6452
6411
  value: prompt,
6453
6412
  onValueChange: setPrompt,
6454
6413
  candidates: people,
@@ -6645,10 +6604,10 @@ function WorkflowRunStatus({
6645
6604
  testId = "workflow-run-status"
6646
6605
  }) {
6647
6606
  const l = { ...DEFAULT_WORKFLOW_RUN_STATUS_LABELS, ...labels };
6648
- const ordered = chunk6AALMYPS_cjs.stepLevels(steps).flat();
6649
- const phaseOf = (id) => isLoading ? "blocked" : chunk6AALMYPS_cjs.stepPhase(steps, states, id);
6650
- const finished = !isLoading && chunk6AALMYPS_cjs.isRunFinished(steps, states);
6651
- const atId = finished || isLoading ? void 0 : chunkSARREDFP_cjs.activeStepId(chunk6AALMYPS_cjs.stepLevels(steps), phaseOf);
6607
+ const ordered = chunkOWCEQKAR_cjs.stepLevels(steps).flat();
6608
+ const phaseOf = (id) => isLoading ? "blocked" : chunkOWCEQKAR_cjs.stepPhase(steps, states, id);
6609
+ const finished = !isLoading && chunkOWCEQKAR_cjs.isRunFinished(steps, states);
6610
+ const atId = finished || isLoading ? void 0 : chunkLIHRGG4M_cjs.activeStepId(chunkOWCEQKAR_cjs.stepLevels(steps), phaseOf);
6652
6611
  const at = ordered.find((s) => s.id === atId);
6653
6612
  const phase = at ? phaseOf(at.id) : "done";
6654
6613
  const assignee = at && ["ready", "waiting"].includes(phase) ? assigneeOf?.(at) : void 0;
@@ -6680,7 +6639,7 @@ function WorkflowRunStatus({
6680
6639
  "span",
6681
6640
  {
6682
6641
  className: ui.cn(
6683
- `wf-kind-${chunk6AALMYPS_cjs.stepKindOf(s)}`,
6642
+ `wf-kind-${chunkOWCEQKAR_cjs.stepKindOf(s)}`,
6684
6643
  "h-1.5 w-3 shrink-0 rounded-full",
6685
6644
  SEGMENT[phaseOf(s.id)],
6686
6645
  s.id === atId && "w-5"
@@ -6726,7 +6685,7 @@ function groupThreadActivity(steps, items) {
6726
6685
  continue;
6727
6686
  }
6728
6687
  if (current === void 0) out.before.push(item);
6729
- else if (chunk6AALMYPS_cjs.isRunFinished(steps, states)) out.after.push(item);
6688
+ else if (chunkOWCEQKAR_cjs.isRunFinished(steps, states)) out.after.push(item);
6730
6689
  else {
6731
6690
  const status = states[current]?.status;
6732
6691
  const at = status === "done" || status === "skipped" ? steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? ""))?.id ?? current : current;
@@ -6749,9 +6708,9 @@ var DEFAULT_WORKFLOW_THREAD_STRIP_LABELS = {
6749
6708
  after: "After",
6750
6709
  beforeSteps: "Before the first step",
6751
6710
  afterSteps: "After the last step",
6752
- kinds: chunk6AALMYPS_cjs.DEFAULT_STEP_KIND_LABELS,
6753
- documents: chunk6AALMYPS_cjs.DEFAULT_STEP_DOCUMENT_LABELS,
6754
- record: chunk6AALMYPS_cjs.DEFAULT_STEP_RECORD_LABELS
6711
+ kinds: chunkOWCEQKAR_cjs.DEFAULT_STEP_KIND_LABELS,
6712
+ documents: chunkOWCEQKAR_cjs.DEFAULT_STEP_DOCUMENT_LABELS,
6713
+ record: chunkOWCEQKAR_cjs.DEFAULT_STEP_RECORD_LABELS
6755
6714
  };
6756
6715
  function WorkflowThreadStartedBy({
6757
6716
  origin,
@@ -6882,7 +6841,7 @@ function EntriesChip({
6882
6841
  const latest = items.at(-1);
6883
6842
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { children: [
6884
6843
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
6885
- chunk6AALMYPS_cjs.StepChip,
6844
+ chunkOWCEQKAR_cjs.StepChip,
6886
6845
  {
6887
6846
  kind,
6888
6847
  phase: "ready",
@@ -6921,23 +6880,23 @@ function WorkflowThreadStrip({
6921
6880
  className
6922
6881
  }) {
6923
6882
  const l = { ...DEFAULT_WORKFLOW_THREAD_STRIP_LABELS, ...labels };
6924
- const barL = { ...chunkSARREDFP_cjs.DEFAULT_STEP_BAR_LABELS, ...barLabels };
6883
+ const barL = { ...chunkLIHRGG4M_cjs.DEFAULT_STEP_BAR_LABELS, ...barLabels };
6925
6884
  const grouped = groupThreadActivity(steps, items);
6926
6885
  const strays = signals.filter((s) => !steps.some((step) => step.id === s.step));
6927
6886
  const link = /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: "wf-link wf-kind-start max-w-6", "data-done": true });
6928
6887
  const [selected, setSelected] = react.useState(null);
6929
6888
  const [open, setOpen] = react.useState(null);
6930
- const phaseOf = (id) => chunk6AALMYPS_cjs.stepPhase(steps, states, id);
6889
+ const phaseOf = (id) => chunkOWCEQKAR_cjs.stepPhase(steps, states, id);
6931
6890
  const iconOf = (step) => step.icon && renderIcon ? renderIcon(step.icon) : void 0;
6932
6891
  const glyphOf = (step) => {
6933
- const KindIcon = chunk6AALMYPS_cjs.STEP_KIND_ICONS[chunk6AALMYPS_cjs.stepKindOf(step)];
6892
+ const KindIcon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[chunkOWCEQKAR_cjs.stepKindOf(step)];
6934
6893
  return iconOf(step) ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {});
6935
6894
  };
6936
6895
  const waitingOf = (id) => {
6937
6896
  const step = steps.find((s) => s.id === id);
6938
6897
  const phase = phaseOf(id);
6939
- const documents = chunk6AALMYPS_cjs.waitingDocuments(states[id]);
6940
- if (documents.length) return chunk6AALMYPS_cjs.waitingForDocumentsText(documents.length);
6898
+ const documents = chunkOWCEQKAR_cjs.waitingDocuments(states[id]);
6899
+ if (documents.length) return chunkOWCEQKAR_cjs.waitingForDocumentsText(documents.length);
6941
6900
  const name = step && (phase === "ready" || phase === "waiting") ? assigneeOf?.(step) : void 0;
6942
6901
  return name ? l.waitingFor.replace("{name}", name) : void 0;
6943
6902
  };
@@ -6947,8 +6906,8 @@ function WorkflowThreadStrip({
6947
6906
  const assignee = phase === "ready" || phase === "waiting" ? assigneeOf?.(step) : void 0;
6948
6907
  const waiting = waitingOf(step.id);
6949
6908
  const sentBack = states[step.id]?.sentBack;
6950
- const kind = chunk6AALMYPS_cjs.stepKindOf(step);
6951
- const documents = chunk6AALMYPS_cjs.stepDocuments(steps, states, step.id);
6909
+ const kind = chunkOWCEQKAR_cjs.stepKindOf(step);
6910
+ const documents = chunkOWCEQKAR_cjs.stepDocuments(steps, states, step.id);
6952
6911
  const latestDoc = onOpenDocument ? documents.at(-1) : void 0;
6953
6912
  const finished = ["done", "skipped", "failed"].includes(phase);
6954
6913
  const chip = /* @__PURE__ */ jsxRuntime.jsxs(
@@ -6961,7 +6920,7 @@ function WorkflowThreadStrip({
6961
6920
  },
6962
6921
  children: [
6963
6922
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
6964
- chunk6AALMYPS_cjs.StepChip,
6923
+ chunkOWCEQKAR_cjs.StepChip,
6965
6924
  {
6966
6925
  kind,
6967
6926
  phase,
@@ -6975,7 +6934,7 @@ function WorkflowThreadStrip({
6975
6934
  waiting
6976
6935
  ] })
6977
6936
  ] }),
6978
- labelClassName: isCurrent ? chunkSARREDFP_cjs.STEP_LABEL_CURRENT : ui.cn(chunkSARREDFP_cjs.STEP_LABEL, chunkSARREDFP_cjs.STEP_LABEL_MAX),
6937
+ labelClassName: isCurrent ? chunkLIHRGG4M_cjs.STEP_LABEL_CURRENT : ui.cn(chunkLIHRGG4M_cjs.STEP_LABEL, chunkLIHRGG4M_cjs.STEP_LABEL_MAX),
6979
6938
  className: ui.cn(latestDoc && "rounded-r-none"),
6980
6939
  title: waiting ? `${step.title} \xB7 ${waiting}` : step.title,
6981
6940
  "data-testid": `workflow-thread-step-${step.id}`,
@@ -7010,7 +6969,7 @@ function WorkflowThreadStrip({
7010
6969
  ),
7011
6970
  sentBack && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-1 text-xs text-amber-700 dark:text-amber-300", children: l.sentBack }),
7012
6971
  /* @__PURE__ */ jsxRuntime.jsx(
7013
- chunk6AALMYPS_cjs.StepDocumentCards,
6972
+ chunkOWCEQKAR_cjs.StepDocumentCards,
7014
6973
  {
7015
6974
  refs: documents,
7016
6975
  heading: step.kind === "review" ? phase === "done" ? l.documents.approved : l.documents.toApprove : l.documents.produced,
@@ -7021,7 +6980,7 @@ function WorkflowThreadStrip({
7021
6980
  }
7022
6981
  ),
7023
6982
  /* @__PURE__ */ jsxRuntime.jsx(
7024
- chunk6AALMYPS_cjs.StepRecord,
6983
+ chunkOWCEQKAR_cjs.StepRecord,
7025
6984
  {
7026
6985
  step,
7027
6986
  state: states[step.id],
@@ -7053,10 +7012,10 @@ function WorkflowThreadStrip({
7053
7012
  return latestDoc ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center", children: [
7054
7013
  chip,
7055
7014
  /* @__PURE__ */ jsxRuntime.jsx(
7056
- chunk6AALMYPS_cjs.StepDocumentButton,
7015
+ chunkOWCEQKAR_cjs.StepDocumentButton,
7057
7016
  {
7058
7017
  kind,
7059
- name: nameOfDoc?.(chunk6AALMYPS_cjs.splitDocRef(latestDoc).id) ?? latestDoc,
7018
+ name: nameOfDoc?.(chunkOWCEQKAR_cjs.splitDocRef(latestDoc).id) ?? latestDoc,
7060
7019
  onOpen: () => onOpenDocument?.(latestDoc),
7061
7020
  testId: `workflow-thread-step-${step.id}-open-document`
7062
7021
  }
@@ -7095,17 +7054,17 @@ function WorkflowThreadStrip({
7095
7054
  ] }),
7096
7055
  strays.map((s) => /* @__PURE__ */ jsxRuntime.jsx(SignalPill, { signal: s, l }, `${s.step}-${s.signal}`))
7097
7056
  ] }) : null;
7098
- const at = steps.find((s) => s.id === (selected ?? chunkSARREDFP_cjs.activeStepId(chunk6AALMYPS_cjs.stepLevels(steps), phaseOf)));
7099
- const headingPx = (step) => `${l.kinds[chunk6AALMYPS_cjs.stepKindOf(step)]} \xB7 ${waitingOf(step.id) ?? ""}`.length * 5.6 - step.title.length * 6.5;
7057
+ const at = steps.find((s) => s.id === (selected ?? chunkLIHRGG4M_cjs.activeStepId(chunkOWCEQKAR_cjs.stepLevels(steps), phaseOf)));
7058
+ const headingPx = (step) => `${l.kinds[chunkOWCEQKAR_cjs.stepKindOf(step)]} \xB7 ${waitingOf(step.id) ?? ""}`.length * 5.6 - step.title.length * 6.5;
7100
7059
  const reserve = {
7101
- always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) => chunk6AALMYPS_cjs.stepDocuments(steps, states, s.id).length).length * DOC_BUTTON_PX : 0),
7060
+ always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) => chunkOWCEQKAR_cjs.stepDocuments(steps, states, s.id).length).length * DOC_BUTTON_PX : 0),
7102
7061
  leading: leading ? 150 : 0,
7103
7062
  trailing: trailing ? 120 : 0
7104
7063
  };
7105
7064
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("min-w-0 flex-1", className), "data-testid": "workflow-thread-strip", children: /* @__PURE__ */ jsxRuntime.jsx(
7106
- chunkSARREDFP_cjs.StepBarFrame,
7065
+ chunkLIHRGG4M_cjs.StepBarFrame,
7107
7066
  {
7108
- levels: chunk6AALMYPS_cjs.stepLevels(steps),
7067
+ levels: chunkOWCEQKAR_cjs.stepLevels(steps),
7109
7068
  phaseOf,
7110
7069
  current: selected,
7111
7070
  onSelect: (id) => {
@@ -7118,7 +7077,7 @@ function WorkflowThreadStrip({
7118
7077
  trailing,
7119
7078
  reservePx: reserve,
7120
7079
  icon: glyphOf,
7121
- kindOf: chunk6AALMYPS_cjs.stepKindOf,
7080
+ kindOf: chunkOWCEQKAR_cjs.stepKindOf,
7122
7081
  labels: { waitingFor: l.waitingFor, ...barLabels },
7123
7082
  tid: (suffix) => `workflow-thread-${suffix}`
7124
7083
  }
@@ -7194,11 +7153,11 @@ function compactThreadActivity(events, stepTitleOf) {
7194
7153
  const count = Math.max(1, entry.recipients.length);
7195
7154
  entry.label = `Notified ${count} ${count === 1 ? "user" : "users"}`;
7196
7155
  } else if (STEP_LABELS[event.kind]) {
7197
- const documents = chunk6AALMYPS_cjs.eventWaitingDocuments(event.detail);
7156
+ const documents = chunkOWCEQKAR_cjs.eventWaitingDocuments(event.detail);
7198
7157
  const title = typeof event.detail?.step === "string" ? stepTitleOf?.(event.detail.step) : void 0;
7199
7158
  result.push({
7200
7159
  event,
7201
- label: documents ? chunk6AALMYPS_cjs.waitingForDocumentsText(documents.length) : title && STEP_VERBS[event.kind] ? `${title} ${STEP_VERBS[event.kind]}` : STEP_LABELS[event.kind],
7160
+ label: documents ? chunkOWCEQKAR_cjs.waitingForDocumentsText(documents.length) : title && STEP_VERBS[event.kind] ? `${title} ${STEP_VERBS[event.kind]}` : STEP_LABELS[event.kind],
7202
7161
  recipients: []
7203
7162
  });
7204
7163
  } else if (["artifact_created", "artifact_edited", "document_added", "document_removed"].includes(
@@ -7605,7 +7564,7 @@ function defaultTaskComposerValues(workflows, initial) {
7605
7564
  return {
7606
7565
  assignee: "me",
7607
7566
  workflowId,
7608
- inputs: workflow ? { ...chunk6AALMYPS_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7567
+ inputs: workflow ? { ...chunkOWCEQKAR_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7609
7568
  when: "manual",
7610
7569
  runAt: "",
7611
7570
  rrule: "",
@@ -7714,7 +7673,7 @@ function WorkflowComposer({
7714
7673
  return !docs?.length;
7715
7674
  })
7716
7675
  );
7717
- const whatMissing = !workflow || Object.keys(chunk6AALMYPS_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7676
+ const whatMissing = !workflow || Object.keys(chunkOWCEQKAR_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7718
7677
  const runAtPast = values.when === "once" && values.runAt !== "" && values.runAt !== initialValues?.runAt && new Date(values.runAt).getTime() <= Date.now();
7719
7678
  const whenMissing = missingWhen(values, runAtPast);
7720
7679
  const scheduled = values.when !== "now" && values.when !== "manual";
@@ -7726,7 +7685,7 @@ function WorkflowComposer({
7726
7685
  setValues({
7727
7686
  ...values,
7728
7687
  workflowId: next,
7729
- inputs: def ? chunk6AALMYPS_cjs.defaultInputs(def) : {},
7688
+ inputs: def ? chunkOWCEQKAR_cjs.defaultInputs(def) : {},
7730
7689
  ...def?.documentAction ? { access: "standing" } : {}
7731
7690
  });
7732
7691
  };
@@ -7854,7 +7813,7 @@ function WorkflowComposer({
7854
7813
  },
7855
7814
  "data-testid": `${id}-dropzone`,
7856
7815
  children: /* @__PURE__ */ jsxRuntime.jsx(
7857
- chunkQDEODGXE_cjs.AddFilesFirst,
7816
+ chunk44R3CCZT_cjs.AddFilesFirst,
7858
7817
  {
7859
7818
  reason: l.addFilesReason,
7860
7819
  action: addFilesAction,
@@ -7864,7 +7823,7 @@ function WorkflowComposer({
7864
7823
  }
7865
7824
  ),
7866
7825
  !noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7867
- chunkSARREDFP_cjs.SchemaForm,
7826
+ chunkLIHRGG4M_cjs.SchemaForm,
7868
7827
  {
7869
7828
  fields,
7870
7829
  values: values.inputs,
@@ -8303,7 +8262,7 @@ function WorkTaskComposer({
8303
8262
  }, [open]);
8304
8263
  const workflow = workflows.find((w) => w.id === values.workflowId);
8305
8264
  const fields = workflow?.inputs ?? [];
8306
- const errors = workflow ? chunk6AALMYPS_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
8265
+ const errors = workflow ? chunkOWCEQKAR_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
8307
8266
  const hasWork = configOpen && Boolean(workflow) && Object.keys(errors).length === 0;
8308
8267
  const unattended = hasWork && values.when !== "now" && values.when !== "manual";
8309
8268
  const canConfigure = !isEdit || seed.assignee === "agent";
@@ -8311,7 +8270,7 @@ function WorkTaskComposer({
8311
8270
  const set = (key, value) => setValues({ ...values, [key]: value });
8312
8271
  const pickWorkflow = (id2) => {
8313
8272
  const next = workflows.find((w) => w.id === id2);
8314
- setValues({ ...values, workflowId: id2, inputs: next ? chunk6AALMYPS_cjs.defaultInputs(next) : {} });
8273
+ setValues({ ...values, workflowId: id2, inputs: next ? chunkOWCEQKAR_cjs.defaultInputs(next) : {} });
8315
8274
  };
8316
8275
  const openConfigure = () => {
8317
8276
  setConfigOpen(true);
@@ -8497,7 +8456,7 @@ function WorkTaskComposer({
8497
8456
  )
8498
8457
  ] }),
8499
8458
  workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8500
- chunkSARREDFP_cjs.SchemaForm,
8459
+ chunkLIHRGG4M_cjs.SchemaForm,
8501
8460
  {
8502
8461
  fields,
8503
8462
  values: values.inputs,
@@ -10669,7 +10628,6 @@ exports.ownerExtId = ownerExtId;
10669
10628
  exports.parseRRule = parseRRule;
10670
10629
  exports.prettifyKey = prettifyKey;
10671
10630
  exports.resolveScopeInputs = resolveScopeInputs;
10672
- exports.skillSlug = skillSlug;
10673
10631
  exports.stripPersonaPreamble = stripPersonaPreamble;
10674
10632
  exports.summarizeAgent = summarizeAgent;
10675
10633
  exports.summarizeCapabilities = summarizeCapabilities;
@@ -10678,12 +10636,10 @@ exports.taskComposerToUpdateRequest = taskComposerToUpdateRequest;
10678
10636
  exports.taskNeedsAccess = taskNeedsAccess;
10679
10637
  exports.taskToComposerValues = taskToComposerValues;
10680
10638
  exports.useWorkflowPreview = useWorkflowPreview;
10681
- exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
10682
10639
  exports.workflowStatus = workflowStatus;
10683
10640
  exports.workflowTaskFields = workflowTaskFields;
10684
10641
  exports.workflowToComposerValues = workflowToComposerValues;
10685
- exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10686
10642
  exports.workflowTriggerType = workflowTriggerType;
10687
10643
  exports.workflowWhen = workflowWhen;
10688
- //# sourceMappingURL=chunk-TT6XV6WM.cjs.map
10689
- //# sourceMappingURL=chunk-TT6XV6WM.cjs.map
10644
+ //# sourceMappingURL=chunk-OZLWSNUC.cjs.map
10645
+ //# sourceMappingURL=chunk-OZLWSNUC.cjs.map