@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
@@ -2,29 +2,29 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
5
- var chunkSCLMCCMU_cjs = require('../chunk-SCLMCCMU.cjs');
6
- require('../chunk-3AFWGEDJ.cjs');
5
+ var chunkZ2NSU7D5_cjs = require('../chunk-Z2NSU7D5.cjs');
6
+ require('../chunk-ZV3BKLFY.cjs');
7
7
  require('../chunk-S5HZBXZA.cjs');
8
8
  require('../chunk-ZW6FPIFC.cjs');
9
+ var chunkXSUOEJB3_cjs = require('../chunk-XSUOEJB3.cjs');
10
+ require('../chunk-7D737FLE.cjs');
11
+ require('../chunk-N26CXGXC.cjs');
12
+ require('../chunk-3AFWGEDJ.cjs');
9
13
  require('../chunk-DVUZTGVL.cjs');
10
- var chunk5JVPLVDT_cjs = require('../chunk-5JVPLVDT.cjs');
14
+ require('../chunk-OB5F4577.cjs');
11
15
  require('../chunk-DETZZBG2.cjs');
12
- require('../chunk-N26CXGXC.cjs');
13
16
  var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
14
17
  require('../chunk-V4ISCZJ7.cjs');
15
18
  require('../chunk-2EI7NCUA.cjs');
16
19
  require('../chunk-C2CWWEHO.cjs');
17
- require('../chunk-NYHGG2IA.cjs');
18
- require('../chunk-OB5F4577.cjs');
19
- require('../chunk-7D737FLE.cjs');
20
- require('../chunk-C54XEN5T.cjs');
21
20
  require('../chunk-B4SRYJLM.cjs');
22
21
  require('../chunk-7UTB4PHM.cjs');
23
22
  require('../chunk-FX3K6LNZ.cjs');
24
- require('../chunk-ULWRNGGE.cjs');
25
23
  require('../chunk-7RGLTF76.cjs');
24
+ require('../chunk-ULWRNGGE.cjs');
26
25
  require('../chunk-PPCATBOY.cjs');
27
26
  require('../chunk-MHVNT4J3.cjs');
27
+ require('../chunk-C54XEN5T.cjs');
28
28
  require('../chunk-KDG6FER6.cjs');
29
29
  require('../chunk-DES3K4SD.cjs');
30
30
  var react = require('react');
@@ -60,11 +60,11 @@ function withSteps(workflow, steps, layout) {
60
60
  const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
61
61
  return {
62
62
  ...workflow,
63
- run: { ...run, steps: chunk5JVPLVDT_cjs.orderSteps(steps), layout: layout ?? run.layout }
63
+ run: { ...run, steps: chunkXSUOEJB3_cjs.orderSteps(steps), layout: layout ?? run.layout }
64
64
  };
65
65
  }
66
66
  var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
67
- var explicit = (steps) => steps.map((s) => ({ ...s, after: chunk5JVPLVDT_cjs.stepDependencies(steps, s.id) }));
67
+ var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkXSUOEJB3_cjs.stepDependencies(steps, s.id) }));
68
68
  function stepIdFor(steps, title) {
69
69
  const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
70
70
  const taken = new Set(steps.map((s) => s.id));
@@ -111,7 +111,7 @@ function blankStep(kind, id, title) {
111
111
  }
112
112
  }
113
113
  function addStep(workflow, kind, options = {}) {
114
- const steps = explicit(chunk5JVPLVDT_cjs.workflowSteps(workflow));
114
+ const steps = explicit(chunkXSUOEJB3_cjs.workflowSteps(workflow));
115
115
  const title = options.title ?? DEFAULT_TITLES[kind];
116
116
  const id = stepIdFor(steps, title);
117
117
  const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
@@ -120,7 +120,7 @@ function addStep(workflow, kind, options = {}) {
120
120
  return { workflow: withSteps(workflow, [...steps, step], layout), id };
121
121
  }
122
122
  function removeStep(workflow, id) {
123
- const steps = explicit(chunk5JVPLVDT_cjs.workflowSteps(workflow));
123
+ const steps = explicit(chunkXSUOEJB3_cjs.workflowSteps(workflow));
124
124
  const removed = steps.find((s) => s.id === id);
125
125
  if (!removed) return workflow;
126
126
  const bridged = steps.filter((s) => s.id !== id).map(
@@ -133,8 +133,8 @@ function removeStep(workflow, id) {
133
133
  return withSteps(workflow, bridged, layout);
134
134
  }
135
135
  function connectSteps(workflow, from, to) {
136
- const steps = explicit(chunk5JVPLVDT_cjs.workflowSteps(workflow));
137
- if (from === to || !steps.some((s) => s.id === from) || chunk5JVPLVDT_cjs.dependsOn(steps, from, to)) {
136
+ const steps = explicit(chunkXSUOEJB3_cjs.workflowSteps(workflow));
137
+ if (from === to || !steps.some((s) => s.id === from) || chunkXSUOEJB3_cjs.dependsOn(steps, from, to)) {
138
138
  return workflow;
139
139
  }
140
140
  return withSteps(
@@ -144,16 +144,16 @@ function connectSteps(workflow, from, to) {
144
144
  )
145
145
  );
146
146
  }
147
- var wouldCycle = (workflow, from, to) => from === to || chunk5JVPLVDT_cjs.dependsOn(chunk5JVPLVDT_cjs.workflowSteps(workflow), from, to);
147
+ var wouldCycle = (workflow, from, to) => from === to || chunkXSUOEJB3_cjs.dependsOn(chunkXSUOEJB3_cjs.workflowSteps(workflow), from, to);
148
148
  function disconnectSteps(workflow, from, to) {
149
- const steps = explicit(chunk5JVPLVDT_cjs.workflowSteps(workflow));
149
+ const steps = explicit(chunkXSUOEJB3_cjs.workflowSteps(workflow));
150
150
  return withSteps(
151
151
  workflow,
152
152
  steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
153
153
  );
154
154
  }
155
155
  function updateStep(workflow, id, patch) {
156
- const steps = explicit(chunk5JVPLVDT_cjs.workflowSteps(workflow));
156
+ const steps = explicit(chunkXSUOEJB3_cjs.workflowSteps(workflow));
157
157
  return withSteps(
158
158
  workflow,
159
159
  steps.map(
@@ -167,7 +167,7 @@ var renameIn = (text, from, to) => text.replace(
167
167
  );
168
168
  function renameInput(workflow, from, to) {
169
169
  if (from === to) return workflow;
170
- const steps = chunk5JVPLVDT_cjs.workflowSteps(workflow).map((s) => {
170
+ const steps = chunkXSUOEJB3_cjs.workflowSteps(workflow).map((s) => {
171
171
  if (s.kind === "agent")
172
172
  return {
173
173
  ...s,
@@ -216,13 +216,13 @@ function renameInput(workflow, from, to) {
216
216
  var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
217
217
  var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
218
218
  function moveStep(workflow, id, position) {
219
- return withSteps(workflow, chunk5JVPLVDT_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
219
+ return withSteps(workflow, chunkXSUOEJB3_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
220
220
  }
221
221
  var COLUMN = 300;
222
222
  var ROW = 140;
223
223
  function autoLayout(steps) {
224
224
  const layout = {};
225
- chunk5JVPLVDT_cjs.stepLevels(steps).forEach(
225
+ chunkXSUOEJB3_cjs.stepLevels(steps).forEach(
226
226
  (level, x) => level.forEach((s, y) => {
227
227
  layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
228
228
  })
@@ -230,7 +230,7 @@ function autoLayout(steps) {
230
230
  return layout;
231
231
  }
232
232
  function layoutWithDefaults(workflow) {
233
- const auto = autoLayout(chunk5JVPLVDT_cjs.workflowSteps(workflow));
233
+ const auto = autoLayout(chunkXSUOEJB3_cjs.workflowSteps(workflow));
234
234
  return { ...auto, ...layoutOf(workflow) };
235
235
  }
236
236
  var DEFAULT_SIGNALS_EDITOR_LABELS = {
@@ -327,9 +327,9 @@ function SignalsEditor({
327
327
  {
328
328
  className: ui.cn(
329
329
  "space-y-1.5 rounded-md border p-2",
330
- chunk5JVPLVDT_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
330
+ chunkXSUOEJB3_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
331
331
  ),
332
- "data-incomplete": chunk5JVPLVDT_cjs.isIncompleteSignal(signal) || void 0,
332
+ "data-incomplete": chunkXSUOEJB3_cjs.isIncompleteSignal(signal) || void 0,
333
333
  "data-testid": `${testId}-${i}`,
334
334
  children: [
335
335
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -1158,7 +1158,7 @@ function StepInspector({
1158
1158
  }) {
1159
1159
  const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
1160
1160
  const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
1161
- const steps = chunk5JVPLVDT_cjs.workflowSteps(workflow);
1161
+ const steps = chunkXSUOEJB3_cjs.workflowSteps(workflow);
1162
1162
  const step = steps.find((s) => s.id === stepId);
1163
1163
  const run = workflow.run.kind === "steps" ? workflow.run : void 0;
1164
1164
  if (!step || !run) {
@@ -1185,8 +1185,8 @@ function StepInspector({
1185
1185
  const patch = (p) => onChange(updateStep(workflow, step.id, p));
1186
1186
  const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
1187
1187
  const ctx = {
1188
- earlier: chunk5JVPLVDT_cjs.upstreamSteps(steps, step.id),
1189
- fields: chunk5JVPLVDT_cjs.runFields(workflow),
1188
+ earlier: chunkXSUOEJB3_cjs.upstreamSteps(steps, step.id),
1189
+ fields: chunkXSUOEJB3_cjs.runFields(workflow),
1190
1190
  people,
1191
1191
  tags,
1192
1192
  documents
@@ -1207,7 +1207,7 @@ function StepInspector({
1207
1207
  )
1208
1208
  );
1209
1209
  };
1210
- const deps = chunk5JVPLVDT_cjs.stepDependencies(steps, step.id);
1210
+ const deps = chunkXSUOEJB3_cjs.stepDependencies(steps, step.id);
1211
1211
  const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
1212
1212
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
1213
1213
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
@@ -1288,7 +1288,7 @@ function StepInspector({
1288
1288
  {
1289
1289
  step,
1290
1290
  workflows,
1291
- fields: chunk5JVPLVDT_cjs.runFields(workflow).map((f) => f.name),
1291
+ fields: chunkXSUOEJB3_cjs.runFields(workflow).map((f) => f.name),
1292
1292
  patch,
1293
1293
  l,
1294
1294
  testId
@@ -1349,7 +1349,7 @@ function StepInspector({
1349
1349
  testId: `${testId}-review-grid`
1350
1350
  }
1351
1351
  ),
1352
- chunk5JVPLVDT_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1352
+ chunkXSUOEJB3_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1353
1353
  /* @__PURE__ */ jsxRuntime.jsx(
1354
1354
  SignalsEditor,
1355
1355
  {
@@ -1615,7 +1615,7 @@ function triggerFields(trigger, clearOthers) {
1615
1615
  return {
1616
1616
  timezone: trigger.timezone,
1617
1617
  rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
1618
- run_at: trigger.start === "once" ? chunkSCLMCCMU_cjs.localInputToIso(trigger.runAt) : none,
1618
+ run_at: trigger.start === "once" ? chunkZ2NSU7D5_cjs.localInputToIso(trigger.runAt) : none,
1619
1619
  event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
1620
1620
  // A step signal is `workflow_signal` narrowed to one signal name.
1621
1621
  event_filter: filter ?? none,
@@ -1631,7 +1631,7 @@ function plan(value, options) {
1631
1631
  criteria: [],
1632
1632
  max_passes: 3,
1633
1633
  documents: [],
1634
- steps: chunk5JVPLVDT_cjs.toPlanSteps(value.workflow, options)
1634
+ steps: chunkXSUOEJB3_cjs.toPlanSteps(value.workflow, options)
1635
1635
  };
1636
1636
  }
1637
1637
  function builderToWorkflowRequest(value, workspaceId, options = {}) {
@@ -1666,7 +1666,7 @@ function builderToWorkflowUpdate(value, options = {}) {
1666
1666
  }
1667
1667
  function workflowRecordToBuilder(record) {
1668
1668
  const planned = record.plan?.steps ?? [];
1669
- const steps = planned.length ? chunk5JVPLVDT_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1669
+ const steps = planned.length ? chunkXSUOEJB3_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1670
1670
  {
1671
1671
  id: "work",
1672
1672
  kind: "agent",
@@ -1674,7 +1674,7 @@ function workflowRecordToBuilder(record) {
1674
1674
  ...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
1675
1675
  }
1676
1676
  ] : [];
1677
- const when = chunkSCLMCCMU_cjs.workflowWhen(record);
1677
+ const when = chunkZ2NSU7D5_cjs.workflowWhen(record);
1678
1678
  return {
1679
1679
  workflow: {
1680
1680
  id: record.external_id,
@@ -1683,12 +1683,12 @@ function workflowRecordToBuilder(record) {
1683
1683
  inputs: [],
1684
1684
  landing: "chat",
1685
1685
  schedulable: false,
1686
- run: { kind: "steps", steps, layout: chunk5JVPLVDT_cjs.layoutFromPlanSteps(planned ?? []) }
1686
+ run: { kind: "steps", steps, layout: chunkXSUOEJB3_cjs.layoutFromPlanSteps(planned ?? []) }
1687
1687
  },
1688
1688
  trigger: {
1689
1689
  ...DEFAULT_WORKFLOW_TRIGGER,
1690
1690
  start: when === "now" ? "manual" : when,
1691
- runAt: chunkSCLMCCMU_cjs.isoToLocalInput(record.run_at),
1691
+ runAt: chunkZ2NSU7D5_cjs.isoToLocalInput(record.run_at),
1692
1692
  rrule: record.rrule ?? "",
1693
1693
  timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
1694
1694
  eventKind: record.event_kind ?? "",
@@ -1744,7 +1744,7 @@ function triggerSummary(trigger, options = {}) {
1744
1744
  case "once":
1745
1745
  return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
1746
1746
  case "repeat":
1747
- return trigger.rrule ? chunkSCLMCCMU_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1747
+ return trigger.rrule ? chunkZ2NSU7D5_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1748
1748
  case "event":
1749
1749
  if (isSignalTrigger(trigger))
1750
1750
  return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
@@ -1803,7 +1803,7 @@ function TriggerInspector({
1803
1803
  }
1804
1804
  )
1805
1805
  ] }),
1806
- trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkSCLMCCMU_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1806
+ trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkZ2NSU7D5_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1807
1807
  trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1808
1808
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
1809
1809
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1855,7 +1855,7 @@ function TriggerInspector({
1855
1855
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1856
1856
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
1857
1857
  /* @__PURE__ */ jsxRuntime.jsx(
1858
- chunkSCLMCCMU_cjs.AgentSelect,
1858
+ chunkZ2NSU7D5_cjs.AgentSelect,
1859
1859
  {
1860
1860
  agents,
1861
1861
  value: trigger.agentId,
@@ -2165,12 +2165,12 @@ function WorkflowCanvas({
2165
2165
  testId = "workflow-canvas"
2166
2166
  }) {
2167
2167
  const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
2168
- const steps = chunk5JVPLVDT_cjs.workflowSteps(workflow);
2168
+ const steps = chunkXSUOEJB3_cjs.workflowSteps(workflow);
2169
2169
  const editable = !!onChange;
2170
2170
  const built = react.useMemo(() => {
2171
2171
  const layout = layoutWithDefaults(workflow);
2172
- const all = chunk5JVPLVDT_cjs.workflowSteps(workflow);
2173
- const roots = all.filter((s) => chunk5JVPLVDT_cjs.stepDependencies(all, s.id).length === 0);
2172
+ const all = chunkXSUOEJB3_cjs.workflowSteps(workflow);
2173
+ const roots = all.filter((s) => chunkXSUOEJB3_cjs.stepDependencies(all, s.id).length === 0);
2174
2174
  const triggerNode = trigger ? [
2175
2175
  {
2176
2176
  id: TRIGGER_NODE,
@@ -2219,7 +2219,7 @@ function WorkflowCanvas({
2219
2219
  react.useEffect(() => setNodes(built), [built]);
2220
2220
  const edges = react.useMemo(
2221
2221
  () => steps.flatMap((s) => {
2222
- const deps = chunk5JVPLVDT_cjs.stepDependencies(steps, s.id);
2222
+ const deps = chunkXSUOEJB3_cjs.stepDependencies(steps, s.id);
2223
2223
  const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
2224
2224
  return from.map((d) => ({
2225
2225
  id: `${d}->${s.id}`,
@@ -2470,12 +2470,12 @@ function WorkflowBuilder({
2470
2470
  const [mode, setMode] = react.useState("design");
2471
2471
  const [adding, setAdding] = react.useState(false);
2472
2472
  const { workflow, trigger } = value;
2473
- const steps = chunk5JVPLVDT_cjs.workflowSteps(workflow);
2474
- const problems = chunk5JVPLVDT_cjs.validateWorkflowGraph(steps);
2475
- const missing = chunk5JVPLVDT_cjs.stepConfigProblems(steps);
2473
+ const steps = chunkXSUOEJB3_cjs.workflowSteps(workflow);
2474
+ const problems = chunkXSUOEJB3_cjs.validateWorkflowGraph(steps);
2475
+ const missing = chunkXSUOEJB3_cjs.stepConfigProblems(steps);
2476
2476
  const nameOf = (id) => people.find((p) => p.value === id)?.label;
2477
- const fields = chunk5JVPLVDT_cjs.runFields(workflow);
2478
- const assigneeOf = (step) => chunk5JVPLVDT_cjs.canAssign(step) ? chunk5JVPLVDT_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2477
+ const fields = chunkXSUOEJB3_cjs.runFields(workflow);
2478
+ const assigneeOf = (step) => chunkXSUOEJB3_cjs.canAssign(step) ? chunkXSUOEJB3_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2479
2479
  const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
2480
2480
  const setWorkflow = (next) => onChange({ ...value, workflow: next });
2481
2481
  const addAfter = (from, kind) => {
@@ -2706,13 +2706,13 @@ function WorkflowPreview({
2706
2706
  renderIcon,
2707
2707
  testId
2708
2708
  }) {
2709
- const run = chunkSCLMCCMU_cjs.useWorkflowPreview(workflow, {
2709
+ const run = chunkZ2NSU7D5_cjs.useWorkflowPreview(workflow, {
2710
2710
  resolveWorkflow: (id) => workflows.find((w) => w.id === id),
2711
2711
  compose,
2712
2712
  answer
2713
2713
  });
2714
2714
  return /* @__PURE__ */ jsxRuntime.jsx(
2715
- chunk5JVPLVDT_cjs.WorkflowRunner,
2715
+ chunkXSUOEJB3_cjs.WorkflowRunner,
2716
2716
  {
2717
2717
  workflow,
2718
2718
  run,
@@ -2799,7 +2799,7 @@ function ConnectedWorkflowBuilder({
2799
2799
  () => [
2800
2800
  ...hostWorkflows,
2801
2801
  ...(skills.data ?? []).map(
2802
- (s) => chunk5JVPLVDT_cjs.skillToWorkflow({
2802
+ (s) => chunkXSUOEJB3_cjs.skillToWorkflow({
2803
2803
  name: s.name,
2804
2804
  slug: s.slug,
2805
2805
  description: s.description,
@@ -2815,7 +2815,7 @@ function ConnectedWorkflowBuilder({
2815
2815
  }));
2816
2816
  const tasks = (conversations.data ?? []).filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || c.external_id }));
2817
2817
  const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
2818
- const problem = triggerProblem(value.trigger) ?? (chunk5JVPLVDT_cjs.validateWorkflowGraph(chunk5JVPLVDT_cjs.workflowSteps(value.workflow)).length || chunk5JVPLVDT_cjs.stepConfigProblems(chunk5JVPLVDT_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2818
+ const problem = triggerProblem(value.trigger) ?? (chunkXSUOEJB3_cjs.validateWorkflowGraph(chunkXSUOEJB3_cjs.workflowSteps(value.workflow)).length || chunkXSUOEJB3_cjs.stepConfigProblems(chunkXSUOEJB3_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2819
2819
  const busy = !!pending || create.isPending || update.isPending || run.isPending;
2820
2820
  const save = async () => {
2821
2821
  if (!workspaceId) return void 0;
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import { useConnection } from '../chunk-OYMWV45N.js';
3
- import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-N5S6JG7S.js';
4
- import '../chunk-RFXJYIDV.js';
3
+ import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, AgentSelect, useWorkflowPreview, localInputToIso } from '../chunk-ZP4IFW2E.js';
4
+ import '../chunk-P5ST47VY.js';
5
5
  import '../chunk-4XJZ6AAY.js';
6
6
  import '../chunk-P6GHJSLR.js';
7
+ import { workflowSteps, dependsOn, stepLevels, isIncompleteSignal, runFields, upstreamSteps, stepDependencies, canAssign, fromPlanSteps, layoutFromPlanSteps, validateWorkflowGraph, stepConfigProblems, WorkflowRunner, skillToWorkflow, assigneeName, orderSteps, toPlanSteps } from '../chunk-AY32GGKU.js';
8
+ import '../chunk-XD2M6LIG.js';
9
+ import '../chunk-6S5FLMWG.js';
10
+ import '../chunk-RFXJYIDV.js';
7
11
  import '../chunk-5LXQPP2K.js';
8
- import { workflowSteps, dependsOn, stepLevels, isIncompleteSignal, runFields, upstreamSteps, stepDependencies, canAssign, fromPlanSteps, layoutFromPlanSteps, validateWorkflowGraph, stepConfigProblems, WorkflowRunner, skillToWorkflow, assigneeName, orderSteps, toPlanSteps } from '../chunk-DFHDWO6U.js';
12
+ import '../chunk-S7PSMMRG.js';
9
13
  import '../chunk-EVUEIBNU.js';
10
- import '../chunk-6S5FLMWG.js';
11
14
  import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
12
15
  import '../chunk-NUNKSZKU.js';
13
16
  import '../chunk-YU2KUMGE.js';
14
17
  import '../chunk-N5YEF3LC.js';
15
- import '../chunk-5Y7JRY7Y.js';
16
- import '../chunk-S7PSMMRG.js';
17
- import '../chunk-XD2M6LIG.js';
18
- import '../chunk-76JDDMSP.js';
19
18
  import '../chunk-HOXKR26S.js';
20
19
  import '../chunk-AA3PT6KR.js';
21
20
  import '../chunk-SLSBJRWW.js';
22
- import '../chunk-TX2ZICS7.js';
23
21
  import '../chunk-4WWM3GQ5.js';
22
+ import '../chunk-TX2ZICS7.js';
24
23
  import '../chunk-NPLYHR2E.js';
25
24
  import '../chunk-7F6CBP3Z.js';
25
+ import '../chunk-76JDDMSP.js';
26
26
  import '../chunk-OXF2IFXG.js';
27
27
  import '../chunk-VUNV25KB.js';
28
28
  import { useState, useMemo, useEffect, useCallback, useRef } from 'react';
@@ -5,8 +5,8 @@ var chunkXZIYRKLW_cjs = require('../chunk-XZIYRKLW.cjs');
5
5
  var chunkXAJIKT6Y_cjs = require('../chunk-XAJIKT6Y.cjs');
6
6
  var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
7
7
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
8
- require('../chunk-C54XEN5T.cjs');
9
8
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
9
+ require('../chunk-C54XEN5T.cjs');
10
10
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
11
11
  require('../chunk-DES3K4SD.cjs');
12
12
  var react = require('react');
@@ -3,8 +3,8 @@ import { CollapsibleSection, KeyValueRow } from '../chunk-LGBAZD37.js';
3
3
  import { MemberAvatarStack } from '../chunk-XNOASBGW.js';
4
4
  export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
5
5
  import { ActionLink } from '../chunk-S7PSMMRG.js';
6
- import '../chunk-76JDDMSP.js';
7
6
  import { ModalHeader } from '../chunk-TX2ZICS7.js';
7
+ import '../chunk-76JDDMSP.js';
8
8
  import { fromNow, fmtDate } from '../chunk-OXF2IFXG.js';
9
9
  import '../chunk-VUNV25KB.js';
10
10
  import { createContext, useContext, useMemo, useState, useCallback, useId } from 'react';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/coedit",
3
- "version": "0.4.121",
3
+ "version": "0.4.122",
4
4
  "description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/blocks",
3
- "version": "0.4.121",
3
+ "version": "0.4.122",
4
4
  "description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -280,8 +280,8 @@
280
280
  "example:test:e2e": "playwright test -c examples/custom-ui/playwright.config.ts"
281
281
  },
282
282
  "dependencies": {
283
- "@arbidocs/client": "0.4.121",
284
- "@arbidocs/coedit": "0.4.121",
283
+ "@arbidocs/client": "0.4.122",
284
+ "@arbidocs/coedit": "0.4.122",
285
285
  "@dnd-kit/core": "^6.3.1",
286
286
  "@dnd-kit/sortable": "^10.0.0",
287
287
  "@dnd-kit/utilities": "^3.2.2",
@@ -323,7 +323,7 @@
323
323
  "y-protocols": "^1.0.6"
324
324
  },
325
325
  "peerDependencies": {
326
- "@arbidocs/react": "0.4.121",
326
+ "@arbidocs/react": "0.4.122",
327
327
  "@lexical/html": "0.35.0",
328
328
  "@lexical/link": "0.35.0",
329
329
  "@lexical/list": "0.35.0",