@arbidocs/blocks 0.4.137 → 0.4.138

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 (61) hide show
  1. package/dist/agents/index.cjs +380 -356
  2. package/dist/agents/index.js +8 -8
  3. package/dist/agents/skills/SkillLibraryDetail.d.ts +26 -0
  4. package/dist/agents/skills/index.d.ts +2 -0
  5. package/dist/agents/skills/skillLibrary.d.ts +46 -0
  6. package/dist/chat/index.cjs +139 -139
  7. package/dist/chat/index.js +4 -4
  8. package/dist/{chunk-CHVCTKF4.cjs → chunk-3BI6EWKP.cjs} +672 -55
  9. package/dist/chunk-3BI6EWKP.cjs.map +1 -0
  10. package/dist/{chunk-VMESMX7N.js → chunk-5BXEYYH6.js} +3 -3
  11. package/dist/{chunk-VMESMX7N.js.map → chunk-5BXEYYH6.js.map} +1 -1
  12. package/dist/{chunk-EHOPZBAX.cjs → chunk-7YLJHTDC.cjs} +11 -11
  13. package/dist/{chunk-EHOPZBAX.cjs.map → chunk-7YLJHTDC.cjs.map} +1 -1
  14. package/dist/{chunk-M33QUNFH.js → chunk-ED4HHTIA.js} +3 -3
  15. package/dist/{chunk-M33QUNFH.js.map → chunk-ED4HHTIA.js.map} +1 -1
  16. package/dist/{chunk-HDYWXEQU.cjs → chunk-IE5CUCZK.cjs} +4 -4
  17. package/dist/{chunk-HDYWXEQU.cjs.map → chunk-IE5CUCZK.cjs.map} +1 -1
  18. package/dist/{chunk-7M4C6CK7.js → chunk-JO3EMZ4X.js} +3 -3
  19. package/dist/{chunk-7M4C6CK7.js.map → chunk-JO3EMZ4X.js.map} +1 -1
  20. package/dist/{chunk-C3ZRLULA.cjs → chunk-JVL7HUIQ.cjs} +5 -5
  21. package/dist/{chunk-C3ZRLULA.cjs.map → chunk-JVL7HUIQ.cjs.map} +1 -1
  22. package/dist/{chunk-JY73DJOS.cjs → chunk-MJKBVIV3.cjs} +80 -495
  23. package/dist/{chunk-KMNZ2RVO.js.map → chunk-MJKBVIV3.cjs.map} +1 -1
  24. package/dist/{chunk-BUNZWOPX.cjs → chunk-OAL3B2ZU.cjs} +5 -5
  25. package/dist/{chunk-BUNZWOPX.cjs.map → chunk-OAL3B2ZU.cjs.map} +1 -1
  26. package/dist/{chunk-6F7SZCVL.cjs → chunk-OWCEQKAR.cjs} +3 -3
  27. package/dist/{chunk-6F7SZCVL.cjs.map → chunk-OWCEQKAR.cjs.map} +1 -1
  28. package/dist/{chunk-KMNZ2RVO.js → chunk-UBEI6WFJ.js} +10 -411
  29. package/dist/{chunk-JY73DJOS.cjs.map → chunk-UBEI6WFJ.js.map} +1 -1
  30. package/dist/{chunk-ATJUVHVB.js → chunk-XVME4XYD.js} +604 -8
  31. package/dist/chunk-XVME4XYD.js.map +1 -0
  32. package/dist/{chunk-YOMPLCP6.js → chunk-Y5KTM3V5.js} +3 -3
  33. package/dist/{chunk-YOMPLCP6.js.map → chunk-Y5KTM3V5.js.map} +1 -1
  34. package/dist/{chunk-L3T7OJRX.js → chunk-ZNI4SW2G.js} +3 -3
  35. package/dist/{chunk-L3T7OJRX.js.map → chunk-ZNI4SW2G.js.map} +1 -1
  36. package/dist/collaboration/index.cjs +9 -9
  37. package/dist/collaboration/index.js +1 -1
  38. package/dist/connect/index.cjs +436 -54
  39. package/dist/connect/index.cjs.map +1 -1
  40. package/dist/connect/index.d.ts +1 -0
  41. package/dist/connect/index.js +399 -18
  42. package/dist/connect/index.js.map +1 -1
  43. package/dist/connection/ConnectedSkillsLibrary.d.ts +26 -0
  44. package/dist/document-tools/index.cjs +1 -1
  45. package/dist/document-tools/index.js +1 -1
  46. package/dist/facts/index.cjs +2 -2
  47. package/dist/facts/index.js +2 -2
  48. package/dist/index.cjs +650 -626
  49. package/dist/index.js +15 -15
  50. package/dist/settings/index.cjs +10 -10
  51. package/dist/settings/index.js +2 -2
  52. package/dist/site/index.cjs +5 -5
  53. package/dist/site/index.js +1 -1
  54. package/dist/studio/index.cjs +6 -6
  55. package/dist/studio/index.js +5 -5
  56. package/dist/workflow-canvas/index.cjs +59 -59
  57. package/dist/workflow-canvas/index.js +8 -8
  58. package/node_modules/@arbidocs/coedit/package.json +1 -1
  59. package/package.json +4 -4
  60. package/dist/chunk-ATJUVHVB.js.map +0 -1
  61. package/dist/chunk-CHVCTKF4.cjs.map +0 -1
@@ -3,23 +3,23 @@
3
3
 
4
4
  var chunkUUHUQHXR_cjs = require('../chunk-UUHUQHXR.cjs');
5
5
  var chunkKDUGTKVI_cjs = require('../chunk-KDUGTKVI.cjs');
6
- var chunkJY73DJOS_cjs = require('../chunk-JY73DJOS.cjs');
7
- require('../chunk-3AFWGEDJ.cjs');
6
+ var chunkMJKBVIV3_cjs = require('../chunk-MJKBVIV3.cjs');
8
7
  require('../chunk-RFIBUWLF.cjs');
9
- require('../chunk-DVUZTGVL.cjs');
10
- var chunkCHVCTKF4_cjs = require('../chunk-CHVCTKF4.cjs');
11
- require('../chunk-DETZZBG2.cjs');
8
+ var chunk3BI6EWKP_cjs = require('../chunk-3BI6EWKP.cjs');
9
+ require('../chunk-WS5EX7DN.cjs');
12
10
  require('../chunk-RQ2Y7USX.cjs');
13
11
  require('../chunk-ZW6FPIFC.cjs');
14
- require('../chunk-WS5EX7DN.cjs');
12
+ require('../chunk-3AFWGEDJ.cjs');
13
+ require('../chunk-DVUZTGVL.cjs');
14
+ require('../chunk-DETZZBG2.cjs');
15
15
  require('../chunk-R26BK7YL.cjs');
16
16
  require('../chunk-V4ISCZJ7.cjs');
17
17
  require('../chunk-2EI7NCUA.cjs');
18
18
  require('../chunk-C2CWWEHO.cjs');
19
19
  require('../chunk-7RGLTF76.cjs');
20
- var chunk6F7SZCVL_cjs = require('../chunk-6F7SZCVL.cjs');
21
- var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
20
+ var chunkOWCEQKAR_cjs = require('../chunk-OWCEQKAR.cjs');
22
21
  require('../chunk-7UTB4PHM.cjs');
22
+ var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
23
23
  require('../chunk-FX3K6LNZ.cjs');
24
24
  require('../chunk-PPCATBOY.cjs');
25
25
  require('../chunk-MHVNT4J3.cjs');
@@ -50,11 +50,11 @@ function withSteps(workflow, steps, layout) {
50
50
  const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
51
51
  return {
52
52
  ...workflow,
53
- run: { ...run, steps: chunk6F7SZCVL_cjs.orderSteps(steps), layout: layout ?? run.layout }
53
+ run: { ...run, steps: chunkOWCEQKAR_cjs.orderSteps(steps), layout: layout ?? run.layout }
54
54
  };
55
55
  }
56
56
  var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
57
- var explicit = (steps) => steps.map((s) => ({ ...s, after: chunk6F7SZCVL_cjs.stepDependencies(steps, s.id) }));
57
+ var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkOWCEQKAR_cjs.stepDependencies(steps, s.id) }));
58
58
  function stepIdFor(steps, title) {
59
59
  const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
60
60
  const taken = new Set(steps.map((s) => s.id));
@@ -101,7 +101,7 @@ function blankStep(kind, id, title) {
101
101
  }
102
102
  }
103
103
  function addStep(workflow, kind, options = {}) {
104
- const steps = explicit(chunk6F7SZCVL_cjs.workflowSteps(workflow));
104
+ const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
105
105
  const title = options.title ?? DEFAULT_TITLES[kind];
106
106
  const id = stepIdFor(steps, title);
107
107
  const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
@@ -110,7 +110,7 @@ function addStep(workflow, kind, options = {}) {
110
110
  return { workflow: withSteps(workflow, [...steps, step], layout), id };
111
111
  }
112
112
  function removeStep(workflow, id) {
113
- const steps = explicit(chunk6F7SZCVL_cjs.workflowSteps(workflow));
113
+ const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
114
114
  const removed = steps.find((s) => s.id === id);
115
115
  if (!removed) return workflow;
116
116
  const bridged = steps.filter((s) => s.id !== id).map(
@@ -123,8 +123,8 @@ function removeStep(workflow, id) {
123
123
  return withSteps(workflow, bridged, layout);
124
124
  }
125
125
  function connectSteps(workflow, from, to) {
126
- const steps = explicit(chunk6F7SZCVL_cjs.workflowSteps(workflow));
127
- if (from === to || !steps.some((s) => s.id === from) || chunk6F7SZCVL_cjs.dependsOn(steps, from, to)) {
126
+ const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
127
+ if (from === to || !steps.some((s) => s.id === from) || chunkOWCEQKAR_cjs.dependsOn(steps, from, to)) {
128
128
  return workflow;
129
129
  }
130
130
  return withSteps(
@@ -134,16 +134,16 @@ function connectSteps(workflow, from, to) {
134
134
  )
135
135
  );
136
136
  }
137
- var wouldCycle = (workflow, from, to) => from === to || chunk6F7SZCVL_cjs.dependsOn(chunk6F7SZCVL_cjs.workflowSteps(workflow), from, to);
137
+ var wouldCycle = (workflow, from, to) => from === to || chunkOWCEQKAR_cjs.dependsOn(chunkOWCEQKAR_cjs.workflowSteps(workflow), from, to);
138
138
  function disconnectSteps(workflow, from, to) {
139
- const steps = explicit(chunk6F7SZCVL_cjs.workflowSteps(workflow));
139
+ const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
140
140
  return withSteps(
141
141
  workflow,
142
142
  steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
143
143
  );
144
144
  }
145
145
  function updateStep(workflow, id, patch) {
146
- const steps = explicit(chunk6F7SZCVL_cjs.workflowSteps(workflow));
146
+ const steps = explicit(chunkOWCEQKAR_cjs.workflowSteps(workflow));
147
147
  return withSteps(
148
148
  workflow,
149
149
  steps.map(
@@ -157,7 +157,7 @@ var renameIn = (text, from, to) => text.replace(
157
157
  );
158
158
  function renameInput(workflow, from, to) {
159
159
  if (from === to) return workflow;
160
- const steps = chunk6F7SZCVL_cjs.workflowSteps(workflow).map((s) => {
160
+ const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow).map((s) => {
161
161
  if (s.kind === "agent")
162
162
  return {
163
163
  ...s,
@@ -206,13 +206,13 @@ function renameInput(workflow, from, to) {
206
206
  var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
207
207
  var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
208
208
  function moveStep(workflow, id, position) {
209
- return withSteps(workflow, chunk6F7SZCVL_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
209
+ return withSteps(workflow, chunkOWCEQKAR_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
210
210
  }
211
211
  var COLUMN = 300;
212
212
  var ROW = 140;
213
213
  function autoLayout(steps) {
214
214
  const layout = {};
215
- chunk6F7SZCVL_cjs.stepLevels(steps).forEach(
215
+ chunkOWCEQKAR_cjs.stepLevels(steps).forEach(
216
216
  (level, x) => level.forEach((s, y) => {
217
217
  layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
218
218
  })
@@ -220,7 +220,7 @@ function autoLayout(steps) {
220
220
  return layout;
221
221
  }
222
222
  function layoutWithDefaults(workflow) {
223
- const auto = autoLayout(chunk6F7SZCVL_cjs.workflowSteps(workflow));
223
+ const auto = autoLayout(chunkOWCEQKAR_cjs.workflowSteps(workflow));
224
224
  return { ...auto, ...layoutOf(workflow) };
225
225
  }
226
226
  var DEFAULT_SIGNALS_EDITOR_LABELS = {
@@ -317,9 +317,9 @@ function SignalsEditor({
317
317
  {
318
318
  className: ui.cn(
319
319
  "space-y-1.5 rounded-md border p-2",
320
- chunkCHVCTKF4_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
320
+ chunk3BI6EWKP_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
321
321
  ),
322
- "data-incomplete": chunkCHVCTKF4_cjs.isIncompleteSignal(signal) || void 0,
322
+ "data-incomplete": chunk3BI6EWKP_cjs.isIncompleteSignal(signal) || void 0,
323
323
  "data-testid": `${testId}-${i}`,
324
324
  children: [
325
325
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -1148,7 +1148,7 @@ function StepInspector({
1148
1148
  }) {
1149
1149
  const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
1150
1150
  const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
1151
- const steps = chunk6F7SZCVL_cjs.workflowSteps(workflow);
1151
+ const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
1152
1152
  const step = steps.find((s) => s.id === stepId);
1153
1153
  const run = workflow.run.kind === "steps" ? workflow.run : void 0;
1154
1154
  if (!step || !run) {
@@ -1175,8 +1175,8 @@ function StepInspector({
1175
1175
  const patch = (p) => onChange(updateStep(workflow, step.id, p));
1176
1176
  const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
1177
1177
  const ctx = {
1178
- earlier: chunk6F7SZCVL_cjs.upstreamSteps(steps, step.id),
1179
- fields: chunk6F7SZCVL_cjs.runFields(workflow),
1178
+ earlier: chunkOWCEQKAR_cjs.upstreamSteps(steps, step.id),
1179
+ fields: chunkOWCEQKAR_cjs.runFields(workflow),
1180
1180
  people,
1181
1181
  tags,
1182
1182
  documents
@@ -1197,7 +1197,7 @@ function StepInspector({
1197
1197
  )
1198
1198
  );
1199
1199
  };
1200
- const deps = chunk6F7SZCVL_cjs.stepDependencies(steps, step.id);
1200
+ const deps = chunkOWCEQKAR_cjs.stepDependencies(steps, step.id);
1201
1201
  const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
1202
1202
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
1203
1203
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
@@ -1278,7 +1278,7 @@ function StepInspector({
1278
1278
  {
1279
1279
  step,
1280
1280
  workflows,
1281
- fields: chunk6F7SZCVL_cjs.runFields(workflow).map((f) => f.name),
1281
+ fields: chunkOWCEQKAR_cjs.runFields(workflow).map((f) => f.name),
1282
1282
  patch,
1283
1283
  l,
1284
1284
  testId
@@ -1339,7 +1339,7 @@ function StepInspector({
1339
1339
  testId: `${testId}-review-grid`
1340
1340
  }
1341
1341
  ),
1342
- chunk6F7SZCVL_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1342
+ chunkOWCEQKAR_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
1343
1343
  /* @__PURE__ */ jsxRuntime.jsx(
1344
1344
  SignalsEditor,
1345
1345
  {
@@ -1605,7 +1605,7 @@ function triggerFields(trigger, clearOthers) {
1605
1605
  return {
1606
1606
  timezone: trigger.timezone,
1607
1607
  rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
1608
- run_at: trigger.start === "once" ? chunkJY73DJOS_cjs.localInputToIso(trigger.runAt) : none,
1608
+ run_at: trigger.start === "once" ? chunkMJKBVIV3_cjs.localInputToIso(trigger.runAt) : none,
1609
1609
  event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
1610
1610
  // A step signal is `workflow_signal` narrowed to one signal name.
1611
1611
  event_filter: filter ?? none,
@@ -1621,7 +1621,7 @@ function plan(value, options) {
1621
1621
  criteria: [],
1622
1622
  max_passes: 3,
1623
1623
  documents: [],
1624
- steps: chunkCHVCTKF4_cjs.toPlanSteps(value.workflow, options)
1624
+ steps: chunk3BI6EWKP_cjs.toPlanSteps(value.workflow, options)
1625
1625
  };
1626
1626
  }
1627
1627
  function builderToWorkflowRequest(value, workspaceId, options = {}) {
@@ -1656,7 +1656,7 @@ function builderToWorkflowUpdate(value, options = {}) {
1656
1656
  }
1657
1657
  function workflowRecordToBuilder(record) {
1658
1658
  const planned = record.plan?.steps ?? [];
1659
- const steps = planned.length ? chunkCHVCTKF4_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1659
+ const steps = planned.length ? chunk3BI6EWKP_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
1660
1660
  {
1661
1661
  id: "work",
1662
1662
  kind: "agent",
@@ -1664,7 +1664,7 @@ function workflowRecordToBuilder(record) {
1664
1664
  ...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
1665
1665
  }
1666
1666
  ] : [];
1667
- const when = chunkJY73DJOS_cjs.workflowWhen(record);
1667
+ const when = chunkMJKBVIV3_cjs.workflowWhen(record);
1668
1668
  return {
1669
1669
  workflow: {
1670
1670
  id: record.external_id,
@@ -1673,12 +1673,12 @@ function workflowRecordToBuilder(record) {
1673
1673
  inputs: [],
1674
1674
  landing: "chat",
1675
1675
  schedulable: false,
1676
- run: { kind: "steps", steps, layout: chunkCHVCTKF4_cjs.layoutFromPlanSteps(planned ?? []) }
1676
+ run: { kind: "steps", steps, layout: chunk3BI6EWKP_cjs.layoutFromPlanSteps(planned ?? []) }
1677
1677
  },
1678
1678
  trigger: {
1679
1679
  ...DEFAULT_WORKFLOW_TRIGGER,
1680
1680
  start: when === "now" ? "manual" : when,
1681
- runAt: chunkJY73DJOS_cjs.isoToLocalInput(record.run_at),
1681
+ runAt: chunkMJKBVIV3_cjs.isoToLocalInput(record.run_at),
1682
1682
  rrule: record.rrule ?? "",
1683
1683
  timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
1684
1684
  eventKind: record.event_kind ?? "",
@@ -1734,7 +1734,7 @@ function triggerSummary(trigger, options = {}) {
1734
1734
  case "once":
1735
1735
  return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
1736
1736
  case "repeat":
1737
- return trigger.rrule ? chunkJY73DJOS_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1737
+ return trigger.rrule ? chunkMJKBVIV3_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
1738
1738
  case "event":
1739
1739
  if (isSignalTrigger(trigger))
1740
1740
  return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
@@ -1793,7 +1793,7 @@ function TriggerInspector({
1793
1793
  }
1794
1794
  )
1795
1795
  ] }),
1796
- trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkJY73DJOS_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1796
+ trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkMJKBVIV3_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
1797
1797
  trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1798
1798
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
1799
1799
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1845,7 +1845,7 @@ function TriggerInspector({
1845
1845
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
1846
1846
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
1847
1847
  /* @__PURE__ */ jsxRuntime.jsx(
1848
- chunkCHVCTKF4_cjs.AgentSelect,
1848
+ chunk3BI6EWKP_cjs.AgentSelect,
1849
1849
  {
1850
1850
  agents,
1851
1851
  value: trigger.agentId,
@@ -1913,7 +1913,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
1913
1913
  };
1914
1914
  }
1915
1915
  var DEFAULT_WORKFLOW_CANVAS_LABELS = {
1916
- ...chunk6F7SZCVL_cjs.DEFAULT_STEP_KIND_LABELS,
1916
+ ...chunkOWCEQKAR_cjs.DEFAULT_STEP_KIND_LABELS,
1917
1917
  redline: "Tracked changes",
1918
1918
  branch: "Branch",
1919
1919
  kindHints: {
@@ -1944,7 +1944,7 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
1944
1944
  fitView: "Fit view"
1945
1945
  };
1946
1946
  var TRIGGER_NODE = "__trigger";
1947
- var KINDS = chunk6F7SZCVL_cjs.WORKFLOW_STEP_KINDS;
1947
+ var KINDS = chunkOWCEQKAR_cjs.WORKFLOW_STEP_KINDS;
1948
1948
  function AddNext({
1949
1949
  from,
1950
1950
  onAdd,
@@ -1966,7 +1966,7 @@ function AddNext({
1966
1966
  /* @__PURE__ */ jsxRuntime.jsxs(ui.PopoverContent, { side: "right", align: "start", className: "w-60 p-1.5", children: [
1967
1967
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 pt-0.5 text-xs font-medium text-muted-foreground", children: l.addNext }),
1968
1968
  KINDS.map((kind) => {
1969
- const Icon = chunk6F7SZCVL_cjs.STEP_KIND_ICONS[kind];
1969
+ const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
1970
1970
  return /* @__PURE__ */ jsxRuntime.jsxs(
1971
1971
  "button",
1972
1972
  {
@@ -2005,8 +2005,8 @@ function PhaseMark({ phase }) {
2005
2005
  }
2006
2006
  function StepNode({ data }) {
2007
2007
  const { step, phase, summary, assignee, icon, l, onAdd, testId } = data;
2008
- const kind = chunk6F7SZCVL_cjs.stepKindOf(step);
2009
- const KindIcon = chunk6F7SZCVL_cjs.STEP_KIND_ICONS[kind];
2008
+ const kind = chunkOWCEQKAR_cjs.stepKindOf(step);
2009
+ const KindIcon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
2010
2010
  const redline = step.kind === "agent" && !!step.editDocument;
2011
2011
  return /* @__PURE__ */ jsxRuntime.jsxs(
2012
2012
  "div",
@@ -2140,12 +2140,12 @@ function WorkflowCanvas({
2140
2140
  testId = "workflow-canvas"
2141
2141
  }) {
2142
2142
  const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
2143
- const steps = chunk6F7SZCVL_cjs.workflowSteps(workflow);
2143
+ const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
2144
2144
  const editable = !!onChange;
2145
2145
  const built = react.useMemo(() => {
2146
2146
  const layout = layoutWithDefaults(workflow);
2147
- const all = chunk6F7SZCVL_cjs.workflowSteps(workflow);
2148
- const roots = all.filter((s) => chunk6F7SZCVL_cjs.stepDependencies(all, s.id).length === 0);
2147
+ const all = chunkOWCEQKAR_cjs.workflowSteps(workflow);
2148
+ const roots = all.filter((s) => chunkOWCEQKAR_cjs.stepDependencies(all, s.id).length === 0);
2149
2149
  const triggerNode = trigger ? [
2150
2150
  {
2151
2151
  id: TRIGGER_NODE,
@@ -2194,7 +2194,7 @@ function WorkflowCanvas({
2194
2194
  react.useEffect(() => setNodes(built), [built]);
2195
2195
  const edges = react.useMemo(
2196
2196
  () => steps.flatMap((s) => {
2197
- const deps = chunk6F7SZCVL_cjs.stepDependencies(steps, s.id);
2197
+ const deps = chunkOWCEQKAR_cjs.stepDependencies(steps, s.id);
2198
2198
  const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
2199
2199
  return from.map((d) => ({
2200
2200
  id: `${d}->${s.id}`,
@@ -2364,7 +2364,7 @@ function WorkflowCanvas({
2364
2364
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: l.emptyTitle }),
2365
2365
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: l.emptyHint }),
2366
2366
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: KINDS.map((kind) => {
2367
- const Icon = chunk6F7SZCVL_cjs.STEP_KIND_ICONS[kind];
2367
+ const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
2368
2368
  return /* @__PURE__ */ jsxRuntime.jsxs(
2369
2369
  "button",
2370
2370
  {
@@ -2414,7 +2414,7 @@ var DEFAULT_WORKFLOW_BUILDER_LABELS = {
2414
2414
  }
2415
2415
  };
2416
2416
  var PANEL_WIDTH = 344;
2417
- var KINDS2 = chunk6F7SZCVL_cjs.WORKFLOW_STEP_KINDS;
2417
+ var KINDS2 = chunkOWCEQKAR_cjs.WORKFLOW_STEP_KINDS;
2418
2418
  function WorkflowBuilder({
2419
2419
  value,
2420
2420
  onChange,
@@ -2446,12 +2446,12 @@ function WorkflowBuilder({
2446
2446
  const [mode, setMode] = react.useState("design");
2447
2447
  const [adding, setAdding] = react.useState(false);
2448
2448
  const { workflow, trigger } = value;
2449
- const steps = chunk6F7SZCVL_cjs.workflowSteps(workflow);
2450
- const problems = chunk6F7SZCVL_cjs.validateWorkflowGraph(steps);
2451
- const missing = chunk6F7SZCVL_cjs.stepConfigProblems(steps);
2449
+ const steps = chunkOWCEQKAR_cjs.workflowSteps(workflow);
2450
+ const problems = chunkOWCEQKAR_cjs.validateWorkflowGraph(steps);
2451
+ const missing = chunkOWCEQKAR_cjs.stepConfigProblems(steps);
2452
2452
  const nameOf = (id) => people.find((p) => p.value === id)?.label;
2453
- const fields = chunk6F7SZCVL_cjs.runFields(workflow);
2454
- const assigneeOf = (step) => chunk6F7SZCVL_cjs.canAssign(step) ? chunk6F7SZCVL_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2453
+ const fields = chunkOWCEQKAR_cjs.runFields(workflow);
2454
+ const assigneeOf = (step) => chunkOWCEQKAR_cjs.canAssign(step) ? chunkOWCEQKAR_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
2455
2455
  const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
2456
2456
  const setWorkflow = (next) => onChange({ ...value, workflow: next });
2457
2457
  const addAfter = (from, kind) => {
@@ -2520,7 +2520,7 @@ function WorkflowBuilder({
2520
2520
  l.addStep
2521
2521
  ] }) }),
2522
2522
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-1.5", children: KINDS2.map((kind) => {
2523
- const Icon = chunk6F7SZCVL_cjs.STEP_KIND_ICONS[kind];
2523
+ const Icon = chunkOWCEQKAR_cjs.STEP_KIND_ICONS[kind];
2524
2524
  const cls = { ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...canvasLabels };
2525
2525
  return /* @__PURE__ */ jsxRuntime.jsxs(
2526
2526
  "button",
@@ -2682,13 +2682,13 @@ function WorkflowPreview({
2682
2682
  renderIcon,
2683
2683
  testId
2684
2684
  }) {
2685
- const run = chunkJY73DJOS_cjs.useWorkflowPreview(workflow, {
2685
+ const run = chunkMJKBVIV3_cjs.useWorkflowPreview(workflow, {
2686
2686
  resolveWorkflow: (id) => workflows.find((w) => w.id === id),
2687
2687
  compose,
2688
2688
  answer
2689
2689
  });
2690
2690
  return /* @__PURE__ */ jsxRuntime.jsx(
2691
- chunkCHVCTKF4_cjs.WorkflowRunner,
2691
+ chunk3BI6EWKP_cjs.WorkflowRunner,
2692
2692
  {
2693
2693
  workflow,
2694
2694
  run,
@@ -2801,7 +2801,7 @@ function ConnectedWorkflowBuilder({
2801
2801
  }
2802
2802
  }, [record, loaded]);
2803
2803
  const workflows = react.useMemo(() => {
2804
- const merged = chunk6F7SZCVL_cjs.mergeSkillWorkflows(hostWorkflows, skills.data ?? []);
2804
+ const merged = chunkOWCEQKAR_cjs.mergeSkillWorkflows(hostWorkflows, skills.data ?? []);
2805
2805
  return [...merged.host, ...merged.skills];
2806
2806
  }, [hostWorkflows, skills.data]);
2807
2807
  const agents = (agentsQuery.data ?? []).map((a) => ({
@@ -2810,7 +2810,7 @@ function ConnectedWorkflowBuilder({
2810
2810
  }));
2811
2811
  const tasks = conversations.filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || l.untitledTask }));
2812
2812
  const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
2813
- const problem = triggerProblem(value.trigger) ?? (chunk6F7SZCVL_cjs.validateWorkflowGraph(chunk6F7SZCVL_cjs.workflowSteps(value.workflow)).length || chunk6F7SZCVL_cjs.stepConfigProblems(chunk6F7SZCVL_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2813
+ const problem = triggerProblem(value.trigger) ?? (chunkOWCEQKAR_cjs.validateWorkflowGraph(chunkOWCEQKAR_cjs.workflowSteps(value.workflow)).length || chunkOWCEQKAR_cjs.stepConfigProblems(chunkOWCEQKAR_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
2814
2814
  const busy = !!pending || create.isPending || update.isPending || run.isPending;
2815
2815
  const save = async () => {
2816
2816
  if (!workspaceId) return void 0;
@@ -1,23 +1,23 @@
1
1
  "use client";
2
2
  import { useConnectedTags, useConnectedDocuments, useConnectedConversations } from '../chunk-2KUCVSFF.js';
3
3
  import { useConnectedWorkspace } from '../chunk-L2PAPOZ5.js';
4
- import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, useWorkflowPreview, localInputToIso } from '../chunk-KMNZ2RVO.js';
5
- import '../chunk-RFXJYIDV.js';
4
+ import { workflowWhen, isoToLocalInput, describeRRule, RecurrenceBuilder, useWorkflowPreview, localInputToIso } from '../chunk-UBEI6WFJ.js';
6
5
  import '../chunk-CQCC7LE7.js';
7
- import '../chunk-5LXQPP2K.js';
8
- import { isIncompleteSignal, fromPlanSteps, layoutFromPlanSteps, AgentSelect, WorkflowRunner, toPlanSteps } from '../chunk-ATJUVHVB.js';
9
- import '../chunk-EVUEIBNU.js';
6
+ import { isIncompleteSignal, fromPlanSteps, layoutFromPlanSteps, AgentSelect, WorkflowRunner, toPlanSteps } from '../chunk-XVME4XYD.js';
7
+ import '../chunk-3RJN2VTL.js';
10
8
  import '../chunk-KSHKTOY2.js';
11
9
  import '../chunk-P6GHJSLR.js';
12
- import '../chunk-3RJN2VTL.js';
10
+ import '../chunk-RFXJYIDV.js';
11
+ import '../chunk-5LXQPP2K.js';
12
+ import '../chunk-EVUEIBNU.js';
13
13
  import '../chunk-444XKG46.js';
14
14
  import '../chunk-NUNKSZKU.js';
15
15
  import '../chunk-YU2KUMGE.js';
16
16
  import '../chunk-N5YEF3LC.js';
17
17
  import '../chunk-4WWM3GQ5.js';
18
- import { DEFAULT_STEP_KIND_LABELS, workflowSteps, dependsOn, stepLevels, runFields, upstreamSteps, stepDependencies, canAssign, WORKFLOW_STEP_KINDS, STEP_KIND_ICONS, validateWorkflowGraph, stepConfigProblems, mergeSkillWorkflows, assigneeName, orderSteps, stepKindOf } from '../chunk-YOMPLCP6.js';
19
- import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
18
+ import { DEFAULT_STEP_KIND_LABELS, workflowSteps, dependsOn, stepLevels, runFields, upstreamSteps, stepDependencies, canAssign, WORKFLOW_STEP_KINDS, STEP_KIND_ICONS, validateWorkflowGraph, stepConfigProblems, mergeSkillWorkflows, assigneeName, orderSteps, stepKindOf } from '../chunk-Y5KTM3V5.js';
20
19
  import '../chunk-AA3PT6KR.js';
20
+ import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
21
21
  import '../chunk-SLSBJRWW.js';
22
22
  import '../chunk-NPLYHR2E.js';
23
23
  import '../chunk-7F6CBP3Z.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/coedit",
3
- "version": "0.4.137",
3
+ "version": "0.4.138",
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.137",
3
+ "version": "0.4.138",
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.137",
284
- "@arbidocs/coedit": "0.4.137",
283
+ "@arbidocs/client": "0.4.138",
284
+ "@arbidocs/coedit": "0.4.138",
285
285
  "@dnd-kit/core": "^6.3.1",
286
286
  "@dnd-kit/sortable": "^10.0.0",
287
287
  "@dnd-kit/utilities": "^3.2.2",
@@ -324,7 +324,7 @@
324
324
  "y-protocols": "^1.0.6"
325
325
  },
326
326
  "peerDependencies": {
327
- "@arbidocs/react": "0.4.137",
327
+ "@arbidocs/react": "0.4.138",
328
328
  "@lexical/html": "0.35.0",
329
329
  "@lexical/link": "0.35.0",
330
330
  "@lexical/list": "0.35.0",