@arbidocs/blocks 0.5.129 → 0.5.130

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 (163) hide show
  1. package/dist/{ConnectedCallDock-XJOYVVAH.cjs → ConnectedCallDock-CJ7RWP5B.cjs} +12 -12
  2. package/dist/{ConnectedCallDock-XJOYVVAH.cjs.map → ConnectedCallDock-CJ7RWP5B.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs → ConnectedCallRoom-JPJCXP6X.cjs} +12 -12
  4. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs.map → ConnectedCallRoom-JPJCXP6X.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs → ConnectedNativeDocxComparison-5TZAIR4V.cjs} +13 -13
  6. package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs.map → ConnectedNativeDocxComparison-5TZAIR4V.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-SI3L77J4.cjs → ConnectedPresentation-SEUUNFUA.cjs} +13 -13
  8. package/dist/{ConnectedPresentation-SI3L77J4.cjs.map → ConnectedPresentation-SEUUNFUA.cjs.map} +1 -1
  9. package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs → ConnectedProductionSetDialog-LHB4VQWC.cjs} +3 -3
  10. package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs.map → ConnectedProductionSetDialog-LHB4VQWC.cjs.map} +1 -1
  11. package/dist/{ConnectedSlidesTab-E76OVY34.cjs → ConnectedSlidesTab-3ATAKNSJ.cjs} +13 -13
  12. package/dist/{ConnectedSlidesTab-E76OVY34.cjs.map → ConnectedSlidesTab-3ATAKNSJ.cjs.map} +1 -1
  13. package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs} +13 -13
  14. package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs.map → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs.map} +1 -1
  15. package/dist/DocumentReviewCard-M53XFLI2.cjs +1 -1
  16. package/dist/{FilesViewerDialog-GGF4WMU4.cjs → FilesViewerDialog-EFRMXIM5.cjs} +27 -27
  17. package/dist/{FilesViewerDialog-GGF4WMU4.cjs.map → FilesViewerDialog-EFRMXIM5.cjs.map} +1 -1
  18. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs → StreamedArtifactEditor-RSPUSZ2B.cjs} +5 -5
  19. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs.map → StreamedArtifactEditor-RSPUSZ2B.cjs.map} +1 -1
  20. package/dist/{WorkspaceTableView-CUCTCA2O.cjs → WorkspaceTableView-QPROJRCF.cjs} +3 -3
  21. package/dist/{WorkspaceTableView-CUCTCA2O.cjs.map → WorkspaceTableView-QPROJRCF.cjs.map} +1 -1
  22. package/dist/agents/index.cjs +363 -363
  23. package/dist/agents/workflows/StepParts.d.ts +3 -0
  24. package/dist/agents/workflows/StepParts.js +20 -3
  25. package/dist/agents/workflows/StepParts.js.map +2 -2
  26. package/dist/agents/workflows/WorkflowStepAction.js +14 -3
  27. package/dist/agents/workflows/WorkflowStepAction.js.map +2 -2
  28. package/dist/agents/workflows/planSteps.js +6 -1
  29. package/dist/agents/workflows/planSteps.js.map +2 -2
  30. package/dist/agents/workflows/workflow.d.ts +11 -2
  31. package/dist/agents/workflows/workflow.js +16 -1
  32. package/dist/agents/workflows/workflow.js.map +2 -2
  33. package/dist/{ai-IEIR7SC2.cjs → ai-4XJ2VFNS.cjs} +24 -24
  34. package/dist/ai-4XJ2VFNS.cjs.map +1 -0
  35. package/dist/artifacts/VersionTimeline.d.ts +5 -1
  36. package/dist/artifacts/VersionTimeline.js +15 -0
  37. package/dist/artifacts/VersionTimeline.js.map +2 -2
  38. package/dist/artifacts/index.cjs +24 -24
  39. package/dist/calls/index.cjs +3 -3
  40. package/dist/chat/index.cjs +59 -59
  41. package/dist/{chunk-XF355M7O.cjs → chunk-2Z25MUAY.cjs} +17 -17
  42. package/dist/{chunk-XF355M7O.cjs.map → chunk-2Z25MUAY.cjs.map} +1 -1
  43. package/dist/{chunk-7JLJH5CW.cjs → chunk-5A6T4W46.cjs} +7 -7
  44. package/dist/{chunk-7JLJH5CW.cjs.map → chunk-5A6T4W46.cjs.map} +1 -1
  45. package/dist/{chunk-L4CIFLCU.cjs → chunk-7LEN65YI.cjs} +9 -9
  46. package/dist/{chunk-L4CIFLCU.cjs.map → chunk-7LEN65YI.cjs.map} +1 -1
  47. package/dist/{chunk-IDCD5TEZ.cjs → chunk-A6GBPE5E.cjs} +18 -18
  48. package/dist/{chunk-IDCD5TEZ.cjs.map → chunk-A6GBPE5E.cjs.map} +1 -1
  49. package/dist/{chunk-XGTMC54Q.cjs → chunk-AFXLRO6E.cjs} +4 -4
  50. package/dist/{chunk-XGTMC54Q.cjs.map → chunk-AFXLRO6E.cjs.map} +1 -1
  51. package/dist/{chunk-KNGZZC4O.cjs → chunk-B3BZ6MNI.cjs} +6 -6
  52. package/dist/{chunk-KNGZZC4O.cjs.map → chunk-B3BZ6MNI.cjs.map} +1 -1
  53. package/dist/{chunk-WAV762GP.cjs → chunk-DBN6GBRQ.cjs} +6 -6
  54. package/dist/{chunk-WAV762GP.cjs.map → chunk-DBN6GBRQ.cjs.map} +1 -1
  55. package/dist/{chunk-QGVOT7E4.cjs → chunk-EQTZQD66.cjs} +8 -8
  56. package/dist/{chunk-QGVOT7E4.cjs.map → chunk-EQTZQD66.cjs.map} +1 -1
  57. package/dist/{chunk-CNLIXB6S.cjs → chunk-ERRXU2HL.cjs} +3 -3
  58. package/dist/{chunk-CNLIXB6S.cjs.map → chunk-ERRXU2HL.cjs.map} +1 -1
  59. package/dist/{chunk-M2FOXGJU.cjs → chunk-F6CEPWIF.cjs} +7 -7
  60. package/dist/{chunk-M2FOXGJU.cjs.map → chunk-F6CEPWIF.cjs.map} +1 -1
  61. package/dist/{chunk-VWBYE3XY.cjs → chunk-FQRJCAT2.cjs} +6 -6
  62. package/dist/{chunk-VWBYE3XY.cjs.map → chunk-FQRJCAT2.cjs.map} +1 -1
  63. package/dist/{chunk-HH5RDNO5.cjs → chunk-GOQV6NOK.cjs} +74 -74
  64. package/dist/{chunk-HH5RDNO5.cjs.map → chunk-GOQV6NOK.cjs.map} +1 -1
  65. package/dist/{chunk-XCKHOXRP.cjs → chunk-H4ID6S4P.cjs} +6 -6
  66. package/dist/{chunk-XCKHOXRP.cjs.map → chunk-H4ID6S4P.cjs.map} +1 -1
  67. package/dist/{chunk-UFT22LAB.cjs → chunk-HBUHOCWF.cjs} +16 -16
  68. package/dist/{chunk-UFT22LAB.cjs.map → chunk-HBUHOCWF.cjs.map} +1 -1
  69. package/dist/{chunk-U7D6ZDR2.cjs → chunk-HORAMB52.cjs} +96 -36
  70. package/dist/chunk-HORAMB52.cjs.map +1 -0
  71. package/dist/{chunk-3IH55CDE.cjs → chunk-IZBAWZTB.cjs} +16 -2
  72. package/dist/chunk-IZBAWZTB.cjs.map +1 -0
  73. package/dist/{chunk-QRAQZTJE.cjs → chunk-JN5YMHGI.cjs} +18 -3
  74. package/dist/chunk-JN5YMHGI.cjs.map +1 -0
  75. package/dist/{chunk-LXFCED4Z.cjs → chunk-KWHGYHRC.cjs} +7 -7
  76. package/dist/{chunk-LXFCED4Z.cjs.map → chunk-KWHGYHRC.cjs.map} +1 -1
  77. package/dist/{chunk-EG7EJFUE.cjs → chunk-MHIG6GGS.cjs} +17 -2
  78. package/dist/chunk-MHIG6GGS.cjs.map +1 -0
  79. package/dist/{chunk-I3A6KKWY.cjs → chunk-MI3N3ZOT.cjs} +86 -76
  80. package/dist/chunk-MI3N3ZOT.cjs.map +1 -0
  81. package/dist/{chunk-ENOPKX7E.cjs → chunk-MXBXZXXQ.cjs} +3 -3
  82. package/dist/{chunk-ENOPKX7E.cjs.map → chunk-MXBXZXXQ.cjs.map} +1 -1
  83. package/dist/{chunk-7NLO7ASW.cjs → chunk-MXGXKUSW.cjs} +17 -17
  84. package/dist/{chunk-7NLO7ASW.cjs.map → chunk-MXGXKUSW.cjs.map} +1 -1
  85. package/dist/{chunk-ZCU72Q76.cjs → chunk-NM7RWZ4E.cjs} +10 -10
  86. package/dist/{chunk-ZCU72Q76.cjs.map → chunk-NM7RWZ4E.cjs.map} +1 -1
  87. package/dist/{chunk-NQML7IUC.cjs → chunk-OD6NGGL3.cjs} +134 -107
  88. package/dist/chunk-OD6NGGL3.cjs.map +1 -0
  89. package/dist/{chunk-TP5PGWIO.cjs → chunk-QFXOTJ6G.cjs} +20 -15
  90. package/dist/chunk-QFXOTJ6G.cjs.map +1 -0
  91. package/dist/{chunk-7L4X6QN2.cjs → chunk-QXMPATG6.cjs} +8 -8
  92. package/dist/{chunk-7L4X6QN2.cjs.map → chunk-QXMPATG6.cjs.map} +1 -1
  93. package/dist/{chunk-WXUU3COI.cjs → chunk-SUOHAB7N.cjs} +11 -11
  94. package/dist/{chunk-WXUU3COI.cjs.map → chunk-SUOHAB7N.cjs.map} +1 -1
  95. package/dist/{chunk-I7J3ED6P.cjs → chunk-TDA6KESI.cjs} +4 -4
  96. package/dist/{chunk-I7J3ED6P.cjs.map → chunk-TDA6KESI.cjs.map} +1 -1
  97. package/dist/{chunk-5GA65VBW.cjs → chunk-TZYB22FM.cjs} +9 -9
  98. package/dist/{chunk-5GA65VBW.cjs.map → chunk-TZYB22FM.cjs.map} +1 -1
  99. package/dist/{chunk-HSLPFBK2.cjs → chunk-VL7ZX4KQ.cjs} +6 -6
  100. package/dist/{chunk-HSLPFBK2.cjs.map → chunk-VL7ZX4KQ.cjs.map} +1 -1
  101. package/dist/{chunk-2F57IO7S.cjs → chunk-XCW6OY7E.cjs} +27 -27
  102. package/dist/{chunk-2F57IO7S.cjs.map → chunk-XCW6OY7E.cjs.map} +1 -1
  103. package/dist/{chunk-NG2EE7HR.cjs → chunk-YWHUWIHP.cjs} +9 -9
  104. package/dist/{chunk-NG2EE7HR.cjs.map → chunk-YWHUWIHP.cjs.map} +1 -1
  105. package/dist/connect/docx.cjs +16 -16
  106. package/dist/connect/index.cjs +1168 -416
  107. package/dist/connect/index.cjs.map +1 -1
  108. package/dist/connect/index.d.ts +2 -0
  109. package/dist/connect/index.js +12 -0
  110. package/dist/connect/index.js.map +2 -2
  111. package/dist/connect/viewer.cjs +16 -16
  112. package/dist/connection/ConnectedWorkflowBuilder.d.ts +12 -0
  113. package/dist/connection/ConnectedWorkflowBuilder.js +6 -1
  114. package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
  115. package/dist/connection/assistant/AssistantDrafts.d.ts +21 -0
  116. package/dist/connection/assistant/AssistantDrafts.js +158 -0
  117. package/dist/connection/assistant/AssistantDrafts.js.map +7 -0
  118. package/dist/connection/assistant/AssistantPlan.d.ts +16 -0
  119. package/dist/connection/assistant/AssistantPlan.js +72 -0
  120. package/dist/connection/assistant/AssistantPlan.js.map +7 -0
  121. package/dist/connection/assistant/AssistantStatusPanel.d.ts +28 -0
  122. package/dist/connection/assistant/AssistantStatusPanel.js +206 -0
  123. package/dist/connection/assistant/AssistantStatusPanel.js.map +7 -0
  124. package/dist/connection/assistant/ConnectedAssistantPage.d.ts +39 -0
  125. package/dist/connection/assistant/ConnectedAssistantPage.js +377 -0
  126. package/dist/connection/assistant/ConnectedAssistantPage.js.map +7 -0
  127. package/dist/connection/conversation/AgentSteps.js +19 -2
  128. package/dist/connection/conversation/AgentSteps.js.map +2 -2
  129. package/dist/connection/viewer/ConnectedDocumentViewer.js +22 -2
  130. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  131. package/dist/connection/viewer/useDocumentVersionRestore.d.ts +14 -0
  132. package/dist/connection/viewer/useDocumentVersionRestore.js +48 -0
  133. package/dist/connection/viewer/useDocumentVersionRestore.js.map +7 -0
  134. package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
  135. package/dist/connection/viewer/useViewerTabs.js +6 -3
  136. package/dist/connection/viewer/useViewerTabs.js.map +2 -2
  137. package/dist/document-tools/VersionSnapshotBar.d.ts +4 -1
  138. package/dist/document-tools/VersionSnapshotBar.js +14 -0
  139. package/dist/document-tools/VersionSnapshotBar.js.map +2 -2
  140. package/dist/document-tools/index.cjs +13 -13
  141. package/dist/embed/index.cjs +25 -25
  142. package/dist/facts/index.cjs +43 -43
  143. package/dist/index.cjs +530 -530
  144. package/dist/office/index.cjs +5 -5
  145. package/dist/settings/index.cjs +1 -1
  146. package/dist/site/index.cjs +5 -5
  147. package/dist/studio/index.cjs +16 -16
  148. package/dist/styles.css +1 -1
  149. package/dist/workflow-canvas/TriggerInspector.d.ts +7 -0
  150. package/dist/workflow-canvas/TriggerInspector.js +56 -0
  151. package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
  152. package/dist/workflow-canvas/index.cjs +142 -81
  153. package/dist/workflow-canvas/index.cjs.map +1 -1
  154. package/node_modules/@arbidocs/coedit/package.json +1 -1
  155. package/package.json +5 -5
  156. package/dist/ai-IEIR7SC2.cjs.map +0 -1
  157. package/dist/chunk-3IH55CDE.cjs.map +0 -1
  158. package/dist/chunk-EG7EJFUE.cjs.map +0 -1
  159. package/dist/chunk-I3A6KKWY.cjs.map +0 -1
  160. package/dist/chunk-NQML7IUC.cjs.map +0 -1
  161. package/dist/chunk-QRAQZTJE.cjs.map +0 -1
  162. package/dist/chunk-TP5PGWIO.cjs.map +0 -1
  163. package/dist/chunk-U7D6ZDR2.cjs.map +0 -1
@@ -2,28 +2,28 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkQECKDZ47_cjs = require('./chunk-QECKDZ47.cjs');
5
- var chunkTP5PGWIO_cjs = require('./chunk-TP5PGWIO.cjs');
5
+ var chunkQFXOTJ6G_cjs = require('./chunk-QFXOTJ6G.cjs');
6
6
  var chunkI4IS6ST6_cjs = require('./chunk-I4IS6ST6.cjs');
7
- var chunk7JLJH5CW_cjs = require('./chunk-7JLJH5CW.cjs');
7
+ var chunk5A6T4W46_cjs = require('./chunk-5A6T4W46.cjs');
8
8
  var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
9
9
  var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
10
10
  var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
11
11
  var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
12
12
  var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
13
- var chunkWXUU3COI_cjs = require('./chunk-WXUU3COI.cjs');
13
+ var chunkSUOHAB7N_cjs = require('./chunk-SUOHAB7N.cjs');
14
14
  var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
15
- var chunkYVCOQHCE_cjs = require('./chunk-YVCOQHCE.cjs');
16
15
  var chunkRL2HI6NP_cjs = require('./chunk-RL2HI6NP.cjs');
17
16
  var chunk6UZC4XVV_cjs = require('./chunk-6UZC4XVV.cjs');
17
+ var chunkYVCOQHCE_cjs = require('./chunk-YVCOQHCE.cjs');
18
18
  var chunkJV5TVUOU_cjs = require('./chunk-JV5TVUOU.cjs');
19
19
  var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
20
20
  var chunkSJSGSHIT_cjs = require('./chunk-SJSGSHIT.cjs');
21
21
  var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
22
22
  var chunkIN6ILI5A_cjs = require('./chunk-IN6ILI5A.cjs');
23
- var chunkHSLPFBK2_cjs = require('./chunk-HSLPFBK2.cjs');
23
+ var chunkVL7ZX4KQ_cjs = require('./chunk-VL7ZX4KQ.cjs');
24
24
  var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
25
- var chunkQGVOT7E4_cjs = require('./chunk-QGVOT7E4.cjs');
26
- var chunkQRAQZTJE_cjs = require('./chunk-QRAQZTJE.cjs');
25
+ var chunkEQTZQD66_cjs = require('./chunk-EQTZQD66.cjs');
26
+ var chunkJN5YMHGI_cjs = require('./chunk-JN5YMHGI.cjs');
27
27
  var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
28
28
  var chunkTKHCIHE2_cjs = require('./chunk-TKHCIHE2.cjs');
29
29
  var chunkJDFBEGQO_cjs = require('./chunk-JDFBEGQO.cjs');
@@ -60,7 +60,7 @@ function resolveScopeInputs(workflow, inputs, scopeSource) {
60
60
  for (const field of workflow.inputs) {
61
61
  if (field.type !== "scope") continue;
62
62
  const raw = inputs[field.name];
63
- const scope = chunkQRAQZTJE_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
63
+ const scope = chunkJN5YMHGI_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
64
64
  next[field.name] = { ...scope, documents: scopeSource.resolveDocuments(scope) };
65
65
  }
66
66
  return next;
@@ -82,7 +82,7 @@ function workflowToSkillMarkdown(workflow) {
82
82
  if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
83
83
  if (workflow.requiresFiles) lines.push("requires_files: true");
84
84
  if (workflow.inputs.length > 0) {
85
- lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkQRAQZTJE_cjs.fieldToFrontmatter))}`);
85
+ lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkJN5YMHGI_cjs.fieldToFrontmatter))}`);
86
86
  }
87
87
  lines.push("---", "", run.promptTemplate.trim(), "");
88
88
  return lines.join("\n");
@@ -104,12 +104,12 @@ function workflowFromSkillMarkdown(id, text) {
104
104
  } else if (value === "true" || value === "false") frontmatter[key] = value === "true";
105
105
  else frontmatter[key] = value;
106
106
  }
107
- return chunkQRAQZTJE_cjs.workflowFromFrontmatter(id, frontmatter, body);
107
+ return chunkJN5YMHGI_cjs.workflowFromFrontmatter(id, frontmatter, body);
108
108
  }
109
109
  var errorMessage = (e) => e instanceof Error ? e.message : typeof e === "string" ? e : "Something went wrong.";
110
110
  function firstOpen(steps, states) {
111
111
  const open = steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? "pending"));
112
- return open?.id ?? (steps.length && chunkQGVOT7E4_cjs.isRunFinished(steps, states) ? null : steps[0]?.id ?? null);
112
+ return open?.id ?? (steps.length && chunkEQTZQD66_cjs.isRunFinished(steps, states) ? null : steps[0]?.id ?? null);
113
113
  }
114
114
  function useWorkflowView(options) {
115
115
  const { steps, states, inputs, setInput, loaded = true } = options;
@@ -149,11 +149,11 @@ function useWorkflowView(options) {
149
149
  }),
150
150
  []
151
151
  );
152
- const action = busy ? "wait" : chunkQGVOT7E4_cjs.nextAction(steps, states, current, actionOptions(options));
152
+ const action = busy ? "wait" : chunkEQTZQD66_cjs.nextAction(steps, states, current, actionOptions(options));
153
153
  const next = react.useCallback(async () => {
154
154
  const { steps: s, states: st, inputs: values } = optionsRef.current;
155
155
  const at = s.find((x) => x.id === current);
156
- const act2 = chunkQGVOT7E4_cjs.nextAction(s, st, current, actionOptions(optionsRef.current));
156
+ const act2 = chunkEQTZQD66_cjs.nextAction(s, st, current, actionOptions(optionsRef.current));
157
157
  if (!at || act2 === "wait" || busy) return;
158
158
  setActionError(null);
159
159
  if (act2 === "finish") return setCurrent(null);
@@ -164,7 +164,7 @@ function useWorkflowView(options) {
164
164
  await (act2 === "start" ? optionsRef.current.start?.() : optionsRef.current.retry?.(at.id));
165
165
  return;
166
166
  }
167
- if (Object.keys(chunkQGVOT7E4_cjs.validateStep(at, values)).length > 0) {
167
+ if (Object.keys(chunkEQTZQD66_cjs.validateStep(at, values)).length > 0) {
168
168
  setShowErrors(true);
169
169
  return;
170
170
  }
@@ -265,10 +265,10 @@ function useWorkflowView(options) {
265
265
  inputs,
266
266
  setInput,
267
267
  stateOf: (id) => states[id],
268
- phaseOf: (id) => chunkQGVOT7E4_cjs.stepPhase(steps, states, id),
269
- failedUpstreamOf: (id) => chunkQGVOT7E4_cjs.failedUpstream(steps, states, id),
268
+ phaseOf: (id) => chunkEQTZQD66_cjs.stepPhase(steps, states, id),
269
+ failedUpstreamOf: (id) => chunkEQTZQD66_cjs.failedUpstream(steps, states, id),
270
270
  isLocked,
271
- errors: showErrors && step && !isLocked(step.id) ? chunkQGVOT7E4_cjs.validateStep(step, inputs) : {},
271
+ errors: showErrors && step && !isLocked(step.id) ? chunkEQTZQD66_cjs.validateStep(step, inputs) : {},
272
272
  busy,
273
273
  actionError,
274
274
  isRunning: Object.values(states).some((s) => s.status === "running"),
@@ -286,11 +286,11 @@ function useWorkflowView(options) {
286
286
  nameOf: options.nameOf,
287
287
  assigneeOf: (id) => {
288
288
  const s = steps.find((x) => x.id === id);
289
- if (!s || !chunkQGVOT7E4_cjs.canAssign(s)) return void 0;
290
- return chunkQGVOT7E4_cjs.assigneeName(s.assignee, {
289
+ if (!s || !chunkEQTZQD66_cjs.canAssign(s)) return void 0;
290
+ return chunkEQTZQD66_cjs.assigneeName(s.assignee, {
291
291
  nameOf: options.nameOf,
292
292
  inputs,
293
- fields: chunkQGVOT7E4_cjs.runFieldsOf(steps),
293
+ fields: chunkEQTZQD66_cjs.runFieldsOf(steps),
294
294
  announcedTo: states[id]?.announcedTo
295
295
  });
296
296
  },
@@ -496,7 +496,7 @@ function StepBarFrame({
496
496
  phase === "blocked" && "opacity-60"
497
497
  ),
498
498
  "aria-hidden": true,
499
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkHSLPFBK2_cjs.StepBadgeMark, { phase, icon: icon?.(s) })
499
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkVL7ZX4KQ_cjs.StepBadgeMark, { phase, icon: icon?.(s) })
500
500
  }
501
501
  ),
502
502
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", title: s.title, children: s.title }),
@@ -610,7 +610,7 @@ function StepBarFrame({
610
610
  phase: kind === "working" ? "running" : "failed",
611
611
  className: "min-w-0 shrink",
612
612
  children: /* @__PURE__ */ jsxRuntime.jsx(
613
- chunkHSLPFBK2_cjs.StepChip,
613
+ chunkVL7ZX4KQ_cjs.StepChip,
614
614
  {
615
615
  kind: kindOf(s),
616
616
  phase: kind === "working" ? "running" : "failed",
@@ -772,7 +772,9 @@ var DEFAULT_WORKFLOW_STEP_PARTS_LABELS = {
772
772
  expires: "Expires {date}",
773
773
  preparingDraft: "Preparing the draft\u2026",
774
774
  draftReady: "The draft is ready in native mail. Check it, send it, then mark it as sent.",
775
+ draftReadyInGmail: "The draft is ready in Gmail. Check it, send it, then mark it as sent.",
775
776
  openDraft: "Open draft",
777
+ openInGmail: "Open in Gmail",
776
778
  emailSent: "Sent.",
777
779
  reviewRunning: "Reviewing the documents\u2026",
778
780
  reviewDone: "Reviewed {docs} documents in {cols} columns.",
@@ -782,7 +784,7 @@ var DEFAULT_WORKFLOW_STEP_PARTS_LABELS = {
782
784
  someone: "someone"
783
785
  };
784
786
  var docName = (ref, nameOfDoc) => {
785
- const { id, version } = chunkQGVOT7E4_cjs.splitDocRef(ref);
787
+ const { id, version } = chunkEQTZQD66_cjs.splitDocRef(ref);
786
788
  const name = nameOfDoc?.(id) ?? id;
787
789
  return version ? `${name} \xB7 v${version}` : name;
788
790
  };
@@ -864,7 +866,7 @@ function SendBackControl({
864
866
  const states = Object.fromEntries(
865
867
  run.steps.map((s) => [s.id, run.stateOf(s.id) ?? { status: "pending" }])
866
868
  );
867
- const targets = chunkQGVOT7E4_cjs.sendBackTargets(run.steps, states, step.id);
869
+ const targets = chunkEQTZQD66_cjs.sendBackTargets(run.steps, states, step.id);
868
870
  const [open, setOpen] = react.useState(false);
869
871
  const [to, setTo] = react.useState(targets[0]?.id ?? "");
870
872
  const [note, setNote] = react.useState("");
@@ -954,7 +956,7 @@ function ApprovalEvidence({
954
956
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex flex-wrap items-center gap-1.5 text-sm font-medium", children: [
955
957
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "size-4 text-primary" }),
956
958
  approver ? l.approvedBy.replace("{name}", approver) : null,
957
- state.at && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-normal text-muted-foreground", children: l.approvedAt.replace("{date}", chunkHSLPFBK2_cjs.formatDate(state.at)) })
959
+ state.at && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-normal text-muted-foreground", children: l.approvedAt.replace("{date}", chunkVL7ZX4KQ_cjs.formatDate(state.at)) })
958
960
  ] }),
959
961
  evidence.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
960
962
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: l.approvedWhat }),
@@ -987,7 +989,7 @@ function ApprovalEvidence({
987
989
  ] }),
988
990
  (step.fields ?? []).length > 0 && /* @__PURE__ */ jsxRuntime.jsx("dl", { className: "grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-xs", children: (step.fields ?? []).map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "contents", children: [
989
991
  /* @__PURE__ */ jsxRuntime.jsx("dt", { className: "text-muted-foreground", children: f.label }),
990
- /* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": `${testId}-evidence-field-${f.name}`, children: chunkHSLPFBK2_cjs.shownValue(run.inputs[f.name], f, run.nameOf) })
992
+ /* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": `${testId}-evidence-field-${f.name}`, children: chunkVL7ZX4KQ_cjs.shownValue(run.inputs[f.name], f, run.nameOf) })
991
993
  ] }, f.name)) })
992
994
  ] });
993
995
  }
@@ -1083,7 +1085,7 @@ function ActionStepBody({
1083
1085
  waiting?.expires_at && phase === "waiting" && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
1084
1086
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-3.5" }),
1085
1087
  " ",
1086
- l.expires.replace("{date}", chunkHSLPFBK2_cjs.formatDate(waiting.expires_at))
1088
+ l.expires.replace("{date}", chunkVL7ZX4KQ_cjs.formatDate(waiting.expires_at))
1087
1089
  ] }),
1088
1090
  phase === "waiting" && mine && !declining && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2", children: [
1089
1091
  actions?.sign && state && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1162,15 +1164,29 @@ function ActionStepBody({
1162
1164
  ] });
1163
1165
  } else if (a.type === "email_draft") {
1164
1166
  const draftId = state?.waiting?.draft_id ?? (typeof state?.output?.draft_id === "string" ? state.output.draft_id : void 0);
1167
+ const gmailUrl = chunkJN5YMHGI_cjs.gmailDraftUrl(state?.waiting);
1165
1168
  body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1166
1169
  underWay && working(l.preparingDraft),
1167
- phase === "waiting" && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.draftReady }),
1170
+ phase === "waiting" && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: gmailUrl ? l.draftReadyInGmail : l.draftReady }),
1168
1171
  phase === "done" && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 text-sm", "data-testid": `${testId}-sent`, children: [
1169
1172
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-4 text-primary" }),
1170
1173
  " ",
1171
1174
  l.emailSent
1172
1175
  ] }),
1173
- draftId && actions?.openDraft && phase !== "done" && /* @__PURE__ */ jsxRuntime.jsxs(
1176
+ phase !== "done" && (gmailUrl ? /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "sm", variant: "outline", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
1177
+ "a",
1178
+ {
1179
+ href: gmailUrl,
1180
+ target: "_blank",
1181
+ rel: "noopener noreferrer",
1182
+ "data-testid": `${testId}-open-draft`,
1183
+ children: [
1184
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "size-4" }),
1185
+ " ",
1186
+ l.openInGmail
1187
+ ]
1188
+ }
1189
+ ) }) : draftId && actions?.openDraft && /* @__PURE__ */ jsxRuntime.jsxs(
1174
1190
  ui.Button,
1175
1191
  {
1176
1192
  size: "sm",
@@ -1183,7 +1199,7 @@ function ActionStepBody({
1183
1199
  l.openDraft
1184
1200
  ]
1185
1201
  }
1186
- )
1202
+ ))
1187
1203
  ] });
1188
1204
  } else {
1189
1205
  const tags = state?.output?.tag_ext_ids ?? a.tags;
@@ -1241,7 +1257,7 @@ function WorkflowStepBar({
1241
1257
  const name = `${title} (${l.phases[phase]})`;
1242
1258
  if (s.id === DONE)
1243
1259
  return /* @__PURE__ */ jsxRuntime.jsx(
1244
- chunkHSLPFBK2_cjs.StepChip,
1260
+ chunkVL7ZX4KQ_cjs.StepChip,
1245
1261
  {
1246
1262
  inert: true,
1247
1263
  kind: "start",
@@ -1255,17 +1271,17 @@ function WorkflowStepBar({
1255
1271
  "data-testid": tid("step-done")
1256
1272
  }
1257
1273
  );
1258
- const kind = chunkHSLPFBK2_cjs.stepKindOf(s);
1259
- const KindIcon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[kind];
1274
+ const kind = chunkVL7ZX4KQ_cjs.stepKindOf(s);
1275
+ const KindIcon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[kind];
1260
1276
  return /* @__PURE__ */ jsxRuntime.jsx(
1261
- chunkHSLPFBK2_cjs.StepChip,
1277
+ chunkVL7ZX4KQ_cjs.StepChip,
1262
1278
  {
1263
1279
  kind,
1264
1280
  phase,
1265
1281
  icon: icon(s.icon) ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {}),
1266
1282
  label: s.title,
1267
1283
  current: isCurrent,
1268
- heading: chunkHSLPFBK2_cjs.DEFAULT_STEP_KIND_LABELS[kind],
1284
+ heading: chunkVL7ZX4KQ_cjs.DEFAULT_STEP_KIND_LABELS[kind],
1269
1285
  labelClassName: isCurrent ? STEP_LABEL_CURRENT : ui.cn(STEP_LABEL, STEP_LABEL_MAX),
1270
1286
  labelTestId: tid(`step-${s.id}-label`),
1271
1287
  onClick: () => run.goTo(s.id),
@@ -1298,7 +1314,7 @@ function WorkflowStepBar({
1298
1314
  isSelectable: (id) => id !== DONE,
1299
1315
  renderStep: (s) => pill(s),
1300
1316
  icon: (s) => s.id === DONE ? doneIcon : icon(s.icon),
1301
- kindOf: (s) => s.id === DONE ? "start" : chunkHSLPFBK2_cjs.stepKindOf(s),
1317
+ kindOf: (s) => s.id === DONE ? "start" : chunkVL7ZX4KQ_cjs.stepKindOf(s),
1302
1318
  disabled: run.busy,
1303
1319
  labels,
1304
1320
  tid,
@@ -1377,7 +1393,7 @@ function WorkflowRunner({
1377
1393
  const { steps, step, isComplete, action } = run;
1378
1394
  const completion = workflow.run.kind === "steps" ? workflow.run.completion : void 0;
1379
1395
  const tid = (suffix) => `${testIdPrefix}-${suffix}`;
1380
- const levels = chunkQGVOT7E4_cjs.stepLevels(steps);
1396
+ const levels = chunkEQTZQD66_cjs.stepLevels(steps);
1381
1397
  const icon = (key) => key && renderIcon ? renderIcon(key) : void 0;
1382
1398
  const added = step?.kind === "upload" ? (files ?? []).filter((f) => f.addedFor === step.id) : [];
1383
1399
  const unread = added.filter((f) => f.status === "processing").length;
@@ -1385,7 +1401,7 @@ function WorkflowRunner({
1385
1401
  const sending = added.filter((f) => f.status === "uploading").length;
1386
1402
  const unsent = added.filter((f) => f.status === "upload-failed").length;
1387
1403
  const uploadHold = step?.kind === "upload" && (sending > 0 || uploading || unsent > 0);
1388
- const docsWait = !!step && chunkQGVOT7E4_cjs.waitingDocuments(run.stateOf(step.id)).length > 0;
1404
+ const docsWait = !!step && chunkEQTZQD66_cjs.waitingDocuments(run.stateOf(step.id)).length > 0;
1389
1405
  const nextLabel = sending ? sending === 1 ? l.uploadingFile : l.uploadingFiles.replace("{count}", String(sending)) : uploadHold && uploading ? l.uploadingAny : uploadHold ? unsent === 1 ? l.uploadFailed : l.uploadsFailed.replace("{count}", String(unsent)) : reading ? l.readingFiles.replace("{current}", String(Math.min(added.length - unread + 1, added.length))).replace("{count}", String(added.length)) : action === "start" ? l.start : action === "retry" ? l.retry : action === "finish" ? l.finish : action === "complete" && step?.kind === "review" ? l.approve : action === "complete" && step?.kind === "action" ? l.markSent : action === "wait" && (run.isRunning || run.busy || docsWait) ? l.working : (step && !run.isLocked(step.id) ? step.nextLabel : void 0) ?? l.next;
1390
1406
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn(compact ? "space-y-3" : "space-y-6", className), "data-testid": testIdPrefix, children: [
1391
1407
  !hideStepBar && /* @__PURE__ */ jsxRuntime.jsx(
@@ -1417,13 +1433,13 @@ function WorkflowRunner({
1417
1433
  /* @__PURE__ */ jsxRuntime.jsx(StepNotices, { run, step, l, tid }),
1418
1434
  run.phaseOf(step.id) === "blocked" ? /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: ui.cn(box, "p-6"), "data-testid": tid(step.id), children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": tid(`${step.id}-blocked`), children: l.blocked.replace(
1419
1435
  "{steps}",
1420
- chunkQGVOT7E4_cjs.stepDependencies(steps, step.id).map((d) => steps.find((s) => s.id === d)?.title ?? d).join(", ")
1436
+ chunkEQTZQD66_cjs.stepDependencies(steps, step.id).map((d) => steps.find((s) => s.id === d)?.title ?? d).join(", ")
1421
1437
  ) }) }) : step.kind === "form" ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { className: ui.cn(box, "space-y-4"), "data-testid": tid(step.id), children: [
1422
1438
  /* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon: icon(step.icon), testId: tid(`${step.id}-title`) }),
1423
1439
  /* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
1424
1440
  /* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
1425
1441
  /* @__PURE__ */ jsxRuntime.jsx("fieldset", { disabled: run.isLocked(step.id), className: "contents", children: /* @__PURE__ */ jsxRuntime.jsx(
1426
- chunkWXUU3COI_cjs.SchemaForm,
1442
+ chunkSUOHAB7N_cjs.SchemaForm,
1427
1443
  {
1428
1444
  fields: step.inputs,
1429
1445
  values: run.inputs,
@@ -1469,11 +1485,11 @@ function WorkflowRunner({
1469
1485
  ] }) : step.kind === "review" ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { className: ui.cn(box, "space-y-4"), "data-testid": tid(step.id), children: [
1470
1486
  /* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon: icon(step.icon) }),
1471
1487
  /* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
1472
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "whitespace-pre-line text-sm text-muted-foreground", children: chunkQGVOT7E4_cjs.reviewInstructions(step, run.inputs) }),
1488
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "whitespace-pre-line text-sm text-muted-foreground", children: chunkEQTZQD66_cjs.reviewInstructions(step, run.inputs) }),
1473
1489
  /* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
1474
1490
  !(run.phaseOf(step.id) === "done" && run.stateOf(step.id)?.by) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", "data-testid": tid(`${step.id}-status`), children: run.phaseOf(step.id) === "done" ? l.approved : run.phaseOf(step.id) === "skipped" ? l.skipped : l.awaitingReview }),
1475
1491
  (step.fields ?? []).length > 0 && run.phaseOf(step.id) === "ready" && /* @__PURE__ */ jsxRuntime.jsx(
1476
- chunkWXUU3COI_cjs.SchemaForm,
1492
+ chunkSUOHAB7N_cjs.SchemaForm,
1477
1493
  {
1478
1494
  fields: step.fields ?? [],
1479
1495
  values: run.inputs,
@@ -1730,8 +1746,8 @@ function AgentStepBody({
1730
1746
  }) {
1731
1747
  const state = run.stateOf(step.id);
1732
1748
  const phase = run.phaseOf(step.id);
1733
- const pending = chunkQGVOT7E4_cjs.waitingDocuments(state);
1734
- const pendingNames = pending.flatMap((ref) => nameOfDoc?.(chunkQGVOT7E4_cjs.splitDocRef(ref).id) ?? []);
1749
+ const pending = chunkEQTZQD66_cjs.waitingDocuments(state);
1750
+ const pendingNames = pending.flatMap((ref) => nameOfDoc?.(chunkEQTZQD66_cjs.splitDocRef(ref).id) ?? []);
1735
1751
  const header = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
1736
1752
  /* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon }),
1737
1753
  phase === "failed" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: run.retry && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1814,7 +1830,7 @@ function StepNotices({
1814
1830
  l,
1815
1831
  tid
1816
1832
  }) {
1817
- const notStarted = !chunkQGVOT7E4_cjs.isPersonStep(step) && run.needsStart && run.phaseOf(step.id) === "ready";
1833
+ const notStarted = !chunkEQTZQD66_cjs.isPersonStep(step) && run.needsStart && run.phaseOf(step.id) === "ready";
1818
1834
  const failed = run.failedUpstreamOf(step.id);
1819
1835
  if (!notStarted && failed.length === 0) return null;
1820
1836
  const why = (error) => error ? `: ${error}` : "";
@@ -1870,7 +1886,7 @@ var asForm = (step) => ({
1870
1886
  id: step.id,
1871
1887
  title: step.title,
1872
1888
  description: "",
1873
- inputs: chunkQGVOT7E4_cjs.stepFields(step),
1889
+ inputs: chunkEQTZQD66_cjs.stepFields(step),
1874
1890
  run: { kind: "operation" },
1875
1891
  landing: "chat"
1876
1892
  });
@@ -2045,13 +2061,13 @@ function StepAction({
2045
2061
  onOpenDraft,
2046
2062
  onOpenReview
2047
2063
  }) {
2048
- const fields = chunkQGVOT7E4_cjs.stepFields(step);
2064
+ const fields = chunkEQTZQD66_cjs.stepFields(step);
2049
2065
  const [values, setValues] = react.useState(
2050
- () => fields.length ? { ...chunkQRAQZTJE_cjs.defaultInputs(asForm(step)), ...inputs } : {}
2066
+ () => fields.length ? { ...chunkJN5YMHGI_cjs.defaultInputs(asForm(step)), ...inputs } : {}
2051
2067
  );
2052
2068
  const [open, setOpen] = react.useState(null);
2053
2069
  const [note, setNote] = react.useState("");
2054
- const targets = chunkQGVOT7E4_cjs.sendBackTargets(steps, states, step.id);
2070
+ const targets = chunkEQTZQD66_cjs.sendBackTargets(steps, states, step.id);
2055
2071
  const [to, setTo] = react.useState(targets[0]?.id ?? "");
2056
2072
  const [busy, setBusy] = react.useState(false);
2057
2073
  const [error, setError] = react.useState(null);
@@ -2087,9 +2103,19 @@ function StepAction({
2087
2103
  if (step.kind === "action") {
2088
2104
  const waiting = state?.waiting;
2089
2105
  if (phase !== "waiting") return null;
2090
- if (step.action.type === "email_draft")
2106
+ if (step.action.type === "email_draft") {
2107
+ const gmailUrl = chunkJN5YMHGI_cjs.gmailDraftUrl(waiting);
2091
2108
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1 p-1", "data-testid": tid, children: [
2092
- waiting?.draft_id && onOpenDraft && /* @__PURE__ */ jsxRuntime.jsx(
2109
+ gmailUrl ? /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "sm", variant: "outline", className: "w-full", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
2110
+ "a",
2111
+ {
2112
+ href: gmailUrl,
2113
+ target: "_blank",
2114
+ rel: "noopener noreferrer",
2115
+ "data-testid": `${tid}-open-draft`,
2116
+ children: "Open in Gmail"
2117
+ }
2118
+ ) }) : waiting?.draft_id && onOpenDraft && /* @__PURE__ */ jsxRuntime.jsx(
2093
2119
  ui.Button,
2094
2120
  {
2095
2121
  size: "sm",
@@ -2113,6 +2139,7 @@ function StepAction({
2113
2139
  ),
2114
2140
  errorLine
2115
2141
  ] });
2142
+ }
2116
2143
  if (step.action.type === "sign") {
2117
2144
  const signers = waiting?.signers ?? [];
2118
2145
  const signed = waiting?.signed ?? [];
@@ -2220,10 +2247,10 @@ function StepAction({
2220
2247
  ] });
2221
2248
  }
2222
2249
  if (fields.length && open === "form") {
2223
- const errors = chunkQRAQZTJE_cjs.validateInputs(asForm(step), values);
2250
+ const errors = chunkJN5YMHGI_cjs.validateInputs(asForm(step), values);
2224
2251
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 p-1", "data-testid": tid, children: [
2225
2252
  /* @__PURE__ */ jsxRuntime.jsx(
2226
- chunkWXUU3COI_cjs.SchemaForm,
2253
+ chunkSUOHAB7N_cjs.SchemaForm,
2227
2254
  {
2228
2255
  fields,
2229
2256
  values,
@@ -2291,7 +2318,7 @@ function requiredLabelsOf(workflow) {
2291
2318
  return workflow.requiredLabels ?? [];
2292
2319
  }
2293
2320
  function unresolvedLabelRefs(workflow, ids = {}) {
2294
- return chunkQGVOT7E4_cjs.workflowSteps(workflow).flatMap(
2321
+ return chunkEQTZQD66_cjs.workflowSteps(workflow).flatMap(
2295
2322
  (step) => step.kind === "action" && step.action.type === "tabular_review" ? step.action.tags.filter((t) => {
2296
2323
  const key = labelRefKey(t);
2297
2324
  return key !== void 0 && !ids[key];
@@ -3803,7 +3830,7 @@ var SKILL_FIELD_TYPE_LABELS = {
3803
3830
  person: "A person"
3804
3831
  };
3805
3832
  function buildLibrarySkills(builtins, listings) {
3806
- const { host, skills } = chunkQRAQZTJE_cjs.mergeSkillWorkflows(builtins, listings);
3833
+ const { host, skills } = chunkJN5YMHGI_cjs.mergeSkillWorkflows(builtins, listings);
3807
3834
  const builtinIds = new Set(builtins.map((w) => w.id));
3808
3835
  const stored = new Map(listings.filter((s) => s.doc_ext_id).map((s) => [s.slug, s]));
3809
3836
  return [...host, ...skills].flatMap((workflow) => {
@@ -4430,16 +4457,16 @@ var DEFAULT_RECURRENCE_BUILDER_LABELS = {
4430
4457
  var pad2 = (n) => String(n).padStart(2, "0");
4431
4458
  function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
4432
4459
  const l = { ...DEFAULT_RECURRENCE_BUILDER_LABELS, ...labels };
4433
- const [advanced, setAdvanced] = react.useState(() => !!rrule && chunkTP5PGWIO_cjs.parseRRule(rrule) === null);
4460
+ const [advanced, setAdvanced] = react.useState(() => !!rrule && chunkQFXOTJ6G_cjs.parseRRule(rrule) === null);
4434
4461
  const [preset, setPreset] = react.useState(
4435
- () => chunkTP5PGWIO_cjs.parseRRule(rrule) ?? chunkTP5PGWIO_cjs.DEFAULT_RECURRENCE
4462
+ () => chunkQFXOTJ6G_cjs.parseRRule(rrule) ?? chunkQFXOTJ6G_cjs.DEFAULT_RECURRENCE
4436
4463
  );
4437
4464
  react.useEffect(() => {
4438
- if (!rrule) onChange(chunkTP5PGWIO_cjs.buildRRule(chunkTP5PGWIO_cjs.DEFAULT_RECURRENCE));
4465
+ if (!rrule) onChange(chunkQFXOTJ6G_cjs.buildRRule(chunkQFXOTJ6G_cjs.DEFAULT_RECURRENCE));
4439
4466
  }, []);
4440
4467
  const update = (next) => {
4441
4468
  setPreset(next);
4442
- onChange(chunkTP5PGWIO_cjs.buildRRule(next));
4469
+ onChange(chunkQFXOTJ6G_cjs.buildRRule(next));
4443
4470
  };
4444
4471
  const toggleWeekday = (day) => {
4445
4472
  const has = preset.weekdays.includes(day);
@@ -4469,9 +4496,9 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
4469
4496
  type: "button",
4470
4497
  className: "text-sm text-muted-foreground hover:text-foreground",
4471
4498
  onClick: () => {
4472
- const parsed = chunkTP5PGWIO_cjs.parseRRule(rrule);
4473
- setPreset(parsed ?? chunkTP5PGWIO_cjs.DEFAULT_RECURRENCE);
4474
- if (!parsed) onChange(chunkTP5PGWIO_cjs.buildRRule(chunkTP5PGWIO_cjs.DEFAULT_RECURRENCE));
4499
+ const parsed = chunkQFXOTJ6G_cjs.parseRRule(rrule);
4500
+ setPreset(parsed ?? chunkQFXOTJ6G_cjs.DEFAULT_RECURRENCE);
4501
+ if (!parsed) onChange(chunkQFXOTJ6G_cjs.buildRRule(chunkQFXOTJ6G_cjs.DEFAULT_RECURRENCE));
4475
4502
  setAdvanced(false);
4476
4503
  },
4477
4504
  "data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.simple, { testId: "task-recurrence-simple" }),
@@ -4549,7 +4576,7 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
4549
4576
  ] }),
4550
4577
  preset.frequency === "weekly" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
4551
4578
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { children: l.on }),
4552
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children: chunkTP5PGWIO_cjs.WEEKDAYS.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
4579
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children: chunkQFXOTJ6G_cjs.WEEKDAYS.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
4553
4580
  ui.Button,
4554
4581
  {
4555
4582
  type: "button",
@@ -5984,7 +6011,7 @@ function ConversationListView(p) {
5984
6011
  }
5985
6012
  ),
5986
6013
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: liveProps.current.renderThread ? liveProps.current.renderThread(data) : /* @__PURE__ */ jsxRuntime.jsx(
5987
- chunkTP5PGWIO_cjs.EntityChip,
6014
+ chunkQFXOTJ6G_cjs.EntityChip,
5988
6015
  {
5989
6016
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { className: "size-4", "aria-hidden": true }),
5990
6017
  label: data.title?.trim() || "Untitled thread",
@@ -6353,13 +6380,13 @@ function NewThreadDialog({
6353
6380
  ...labels
6354
6381
  };
6355
6382
  const seed = react.useMemo(
6356
- () => ({ ...chunk7JLJH5CW_cjs.EMPTY_NEW_THREAD, ...initialValues }),
6383
+ () => ({ ...chunk5A6T4W46_cjs.EMPTY_NEW_THREAD, ...initialValues }),
6357
6384
  // Seeded once per open.
6358
6385
  // eslint-disable-next-line react-hooks/exhaustive-deps
6359
6386
  [open]
6360
6387
  );
6361
6388
  const [values, setValues] = react.useState(seed);
6362
- const [detailsOpen, setDetailsOpen] = react.useState(chunk7JLJH5CW_cjs.hasTaskFields(seed));
6389
+ const [detailsOpen, setDetailsOpen] = react.useState(chunk5A6T4W46_cjs.hasTaskFields(seed));
6363
6390
  const [submitError, setSubmitError] = react.useState(null);
6364
6391
  const id = chunkPLIF5CUV_cjs.testIdOr(testId, { testId: "new-thread" });
6365
6392
  const set = (key, value) => setValues((v) => ({ ...v, [key]: value }));
@@ -6392,7 +6419,7 @@ function NewThreadDialog({
6392
6419
  setSubmitError(null);
6393
6420
  try {
6394
6421
  await onSubmit(values);
6395
- setValues(chunk7JLJH5CW_cjs.EMPTY_NEW_THREAD);
6422
+ setValues(chunk5A6T4W46_cjs.EMPTY_NEW_THREAD);
6396
6423
  setDetailsOpen(false);
6397
6424
  } catch (error) {
6398
6425
  setSubmitError(error instanceof Error ? error.message : "Could not create the thread");
@@ -6640,12 +6667,12 @@ function taskActivityHeadline(e, labels = DEFAULT_TASK_ACTIVITY_LABELS, agentNam
6640
6667
  case "step_skipped":
6641
6668
  return "Step skipped";
6642
6669
  case "step_waiting": {
6643
- const documents = chunkQGVOT7E4_cjs.eventWaitingDocuments(detail);
6644
- return documents ? chunkQGVOT7E4_cjs.waitingForDocumentsText(documents.length) : "Waiting on people";
6670
+ const documents = chunkEQTZQD66_cjs.eventWaitingDocuments(detail);
6671
+ return documents ? chunkEQTZQD66_cjs.waitingForDocumentsText(documents.length) : "Waiting on people";
6645
6672
  }
6646
6673
  case "step_progress": {
6647
- const documents = chunkQGVOT7E4_cjs.eventWaitingDocuments(detail);
6648
- return documents ? chunkQGVOT7E4_cjs.waitingForDocumentsText(documents.length) : detail.signed ? "Signed" : "Step moved on";
6674
+ const documents = chunkEQTZQD66_cjs.eventWaitingDocuments(detail);
6675
+ return documents ? chunkEQTZQD66_cjs.waitingForDocumentsText(documents.length) : detail.signed ? "Signed" : "Step moved on";
6649
6676
  }
6650
6677
  case "step_sent_back":
6651
6678
  return "Sent the work back";
@@ -6800,10 +6827,10 @@ function WorkflowRunStatus({
6800
6827
  testId = "workflow-run-status"
6801
6828
  }) {
6802
6829
  const l = { ...DEFAULT_WORKFLOW_RUN_STATUS_LABELS, ...labels };
6803
- const ordered = chunkQGVOT7E4_cjs.stepLevels(steps).flat();
6804
- const phaseOf = (id) => isLoading ? "blocked" : chunkQGVOT7E4_cjs.stepPhase(steps, states, id);
6805
- const finished = !isLoading && chunkQGVOT7E4_cjs.isRunFinished(steps, states);
6806
- const atId = finished || isLoading ? void 0 : activeStepId(chunkQGVOT7E4_cjs.stepLevels(steps), phaseOf);
6830
+ const ordered = chunkEQTZQD66_cjs.stepLevels(steps).flat();
6831
+ const phaseOf = (id) => isLoading ? "blocked" : chunkEQTZQD66_cjs.stepPhase(steps, states, id);
6832
+ const finished = !isLoading && chunkEQTZQD66_cjs.isRunFinished(steps, states);
6833
+ const atId = finished || isLoading ? void 0 : activeStepId(chunkEQTZQD66_cjs.stepLevels(steps), phaseOf);
6807
6834
  const at = ordered.find((s) => s.id === atId);
6808
6835
  const phase = at ? phaseOf(at.id) : "done";
6809
6836
  const assignee = at && ["ready", "waiting"].includes(phase) ? assigneeOf?.(at) : void 0;
@@ -6835,7 +6862,7 @@ function WorkflowRunStatus({
6835
6862
  "span",
6836
6863
  {
6837
6864
  className: ui.cn(
6838
- `wf-kind-${chunkHSLPFBK2_cjs.stepKindOf(s)}`,
6865
+ `wf-kind-${chunkVL7ZX4KQ_cjs.stepKindOf(s)}`,
6839
6866
  "h-1.5 w-3 shrink-0 rounded-full",
6840
6867
  SEGMENT[phaseOf(s.id)],
6841
6868
  s.id === atId && "w-5"
@@ -6881,7 +6908,7 @@ function groupThreadActivity(steps, items) {
6881
6908
  continue;
6882
6909
  }
6883
6910
  if (current === void 0) out.before.push(item);
6884
- else if (chunkQGVOT7E4_cjs.isRunFinished(steps, states)) out.after.push(item);
6911
+ else if (chunkEQTZQD66_cjs.isRunFinished(steps, states)) out.after.push(item);
6885
6912
  else {
6886
6913
  const status = states[current]?.status;
6887
6914
  const at = status === "done" || status === "skipped" ? steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? ""))?.id ?? current : current;
@@ -6904,9 +6931,9 @@ var DEFAULT_WORKFLOW_THREAD_STRIP_LABELS = {
6904
6931
  after: "After",
6905
6932
  beforeSteps: "Before the first step",
6906
6933
  afterSteps: "After the last step",
6907
- kinds: chunkHSLPFBK2_cjs.DEFAULT_STEP_KIND_LABELS,
6908
- documents: chunkHSLPFBK2_cjs.DEFAULT_STEP_DOCUMENT_LABELS,
6909
- record: chunkHSLPFBK2_cjs.DEFAULT_STEP_RECORD_LABELS
6934
+ kinds: chunkVL7ZX4KQ_cjs.DEFAULT_STEP_KIND_LABELS,
6935
+ documents: chunkVL7ZX4KQ_cjs.DEFAULT_STEP_DOCUMENT_LABELS,
6936
+ record: chunkVL7ZX4KQ_cjs.DEFAULT_STEP_RECORD_LABELS
6910
6937
  };
6911
6938
  function WorkflowThreadStartedBy({
6912
6939
  origin,
@@ -7037,7 +7064,7 @@ function EntriesChip({
7037
7064
  const latest = items.at(-1);
7038
7065
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { children: [
7039
7066
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
7040
- chunkHSLPFBK2_cjs.StepChip,
7067
+ chunkVL7ZX4KQ_cjs.StepChip,
7041
7068
  {
7042
7069
  kind,
7043
7070
  phase: "ready",
@@ -7089,17 +7116,17 @@ function WorkflowThreadStrip({
7089
7116
  onSelectStep?.(id);
7090
7117
  };
7091
7118
  const [open, setOpen] = react.useState(null);
7092
- const phaseOf = (id) => chunkQGVOT7E4_cjs.stepPhase(steps, states, id);
7119
+ const phaseOf = (id) => chunkEQTZQD66_cjs.stepPhase(steps, states, id);
7093
7120
  const iconOf = (step) => step.icon && renderIcon ? renderIcon(step.icon) : void 0;
7094
7121
  const glyphOf = (step) => {
7095
- const KindIcon = chunkHSLPFBK2_cjs.STEP_KIND_ICONS[chunkHSLPFBK2_cjs.stepKindOf(step)];
7122
+ const KindIcon = chunkVL7ZX4KQ_cjs.STEP_KIND_ICONS[chunkVL7ZX4KQ_cjs.stepKindOf(step)];
7096
7123
  return iconOf(step) ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {});
7097
7124
  };
7098
7125
  const waitingOf = (id) => {
7099
7126
  const step = steps.find((s) => s.id === id);
7100
7127
  const phase = phaseOf(id);
7101
- const documents = chunkQGVOT7E4_cjs.waitingDocuments(states[id]);
7102
- if (documents.length) return chunkQGVOT7E4_cjs.waitingForDocumentsText(documents.length);
7128
+ const documents = chunkEQTZQD66_cjs.waitingDocuments(states[id]);
7129
+ if (documents.length) return chunkEQTZQD66_cjs.waitingForDocumentsText(documents.length);
7103
7130
  const name = step && (phase === "ready" || phase === "waiting") ? assigneeOf?.(step) : void 0;
7104
7131
  return name ? l.waitingFor.replace("{name}", name) : void 0;
7105
7132
  };
@@ -7109,8 +7136,8 @@ function WorkflowThreadStrip({
7109
7136
  const assignee = phase === "ready" || phase === "waiting" ? assigneeOf?.(step) : void 0;
7110
7137
  const waiting = waitingOf(step.id);
7111
7138
  const sentBack = states[step.id]?.sentBack;
7112
- const kind = chunkHSLPFBK2_cjs.stepKindOf(step);
7113
- const documents = chunkHSLPFBK2_cjs.stepDocuments(steps, states, step.id);
7139
+ const kind = chunkVL7ZX4KQ_cjs.stepKindOf(step);
7140
+ const documents = chunkVL7ZX4KQ_cjs.stepDocuments(steps, states, step.id);
7114
7141
  const latestDoc = onOpenDocument ? documents.at(-1) : void 0;
7115
7142
  const finished = ["done", "skipped", "failed"].includes(phase);
7116
7143
  const chip = /* @__PURE__ */ jsxRuntime.jsxs(
@@ -7123,7 +7150,7 @@ function WorkflowThreadStrip({
7123
7150
  },
7124
7151
  children: [
7125
7152
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
7126
- chunkHSLPFBK2_cjs.StepChip,
7153
+ chunkVL7ZX4KQ_cjs.StepChip,
7127
7154
  {
7128
7155
  kind,
7129
7156
  phase,
@@ -7172,7 +7199,7 @@ function WorkflowThreadStrip({
7172
7199
  ),
7173
7200
  sentBack && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-1 text-xs text-amber-700 dark:text-amber-300", children: l.sentBack }),
7174
7201
  /* @__PURE__ */ jsxRuntime.jsx(
7175
- chunkHSLPFBK2_cjs.StepDocumentCards,
7202
+ chunkVL7ZX4KQ_cjs.StepDocumentCards,
7176
7203
  {
7177
7204
  refs: documents,
7178
7205
  heading: step.kind === "review" ? phase === "done" ? l.documents.approved : l.documents.toApprove : l.documents.produced,
@@ -7183,7 +7210,7 @@ function WorkflowThreadStrip({
7183
7210
  }
7184
7211
  ),
7185
7212
  /* @__PURE__ */ jsxRuntime.jsx(
7186
- chunkHSLPFBK2_cjs.StepRecord,
7213
+ chunkVL7ZX4KQ_cjs.StepRecord,
7187
7214
  {
7188
7215
  step,
7189
7216
  state: states[step.id],
@@ -7215,10 +7242,10 @@ function WorkflowThreadStrip({
7215
7242
  return latestDoc ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center", children: [
7216
7243
  chip,
7217
7244
  /* @__PURE__ */ jsxRuntime.jsx(
7218
- chunkHSLPFBK2_cjs.StepDocumentButton,
7245
+ chunkVL7ZX4KQ_cjs.StepDocumentButton,
7219
7246
  {
7220
7247
  kind,
7221
- name: nameOfDoc?.(chunkQGVOT7E4_cjs.splitDocRef(latestDoc).id) ?? latestDoc,
7248
+ name: nameOfDoc?.(chunkEQTZQD66_cjs.splitDocRef(latestDoc).id) ?? latestDoc,
7222
7249
  onOpen: () => onOpenDocument?.(latestDoc),
7223
7250
  testId: `workflow-thread-step-${step.id}-open-document`
7224
7251
  }
@@ -7251,17 +7278,17 @@ function WorkflowThreadStrip({
7251
7278
  ),
7252
7279
  strays.map((s) => /* @__PURE__ */ jsxRuntime.jsx(SignalPill, { signal: s, l }, `${s.step}-${s.signal}`))
7253
7280
  ] }) : null;
7254
- const at = steps.find((s) => s.id === (selected ?? activeStepId(chunkQGVOT7E4_cjs.stepLevels(steps), phaseOf)));
7255
- const headingPx = (step) => `${l.kinds[chunkHSLPFBK2_cjs.stepKindOf(step)]} \xB7 ${waitingOf(step.id) ?? ""}`.length * 5.6 - step.title.length * 6.5;
7281
+ const at = steps.find((s) => s.id === (selected ?? activeStepId(chunkEQTZQD66_cjs.stepLevels(steps), phaseOf)));
7282
+ const headingPx = (step) => `${l.kinds[chunkVL7ZX4KQ_cjs.stepKindOf(step)]} \xB7 ${waitingOf(step.id) ?? ""}`.length * 5.6 - step.title.length * 6.5;
7256
7283
  const reserve = {
7257
- always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) => chunkHSLPFBK2_cjs.stepDocuments(steps, states, s.id).length).length * DOC_BUTTON_PX : 0),
7284
+ always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) => chunkVL7ZX4KQ_cjs.stepDocuments(steps, states, s.id).length).length * DOC_BUTTON_PX : 0),
7258
7285
  leading: leading ? 150 : 0,
7259
7286
  trailing: trailing ? 120 : 0
7260
7287
  };
7261
7288
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("min-w-0 flex-1", className), "data-testid": "workflow-thread-strip", children: /* @__PURE__ */ jsxRuntime.jsx(
7262
7289
  StepBarFrame,
7263
7290
  {
7264
- levels: chunkQGVOT7E4_cjs.stepLevels(steps),
7291
+ levels: chunkEQTZQD66_cjs.stepLevels(steps),
7265
7292
  phaseOf,
7266
7293
  current: selected,
7267
7294
  onSelect: (id) => {
@@ -7275,7 +7302,7 @@ function WorkflowThreadStrip({
7275
7302
  reservePx: reserve,
7276
7303
  maxSpan,
7277
7304
  icon: glyphOf,
7278
- kindOf: chunkHSLPFBK2_cjs.stepKindOf,
7305
+ kindOf: chunkVL7ZX4KQ_cjs.stepKindOf,
7279
7306
  labels: { waitingFor: l.waitingFor, ...barLabels },
7280
7307
  tid: (suffix) => `workflow-thread-${suffix}`
7281
7308
  }
@@ -7520,7 +7547,7 @@ function defaultTaskComposerValues(workflows, initial) {
7520
7547
  return {
7521
7548
  assignee: "me",
7522
7549
  workflowId,
7523
- inputs: workflow ? { ...chunkQRAQZTJE_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7550
+ inputs: workflow ? { ...chunkJN5YMHGI_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
7524
7551
  when: "manual",
7525
7552
  runAt: "",
7526
7553
  rrule: "",
@@ -7628,19 +7655,19 @@ function WorkflowComposer({
7628
7655
  return !docs?.length;
7629
7656
  })
7630
7657
  );
7631
- const whatMissing = !workflow || Object.keys(chunkQRAQZTJE_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7658
+ const whatMissing = !workflow || Object.keys(chunkJN5YMHGI_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
7632
7659
  const runAtPast = values.when === "once" && values.runAt !== "" && values.runAt !== initialValues?.runAt && new Date(values.runAt).getTime() <= Date.now();
7633
7660
  const whenMissing = missingWhen(values, runAtPast);
7634
7661
  const scheduled = values.when !== "now" && values.when !== "manual";
7635
7662
  const agentMissing = scheduled && values.agentId === "";
7636
7663
  const canSubmit = !whatMissing && !noFiles && whenMissing === null && !agentMissing && !isPending && !planDrafting;
7637
- const derivedName = workflow ? chunk7JLJH5CW_cjs.deriveWorkflowName(workflow, values.inputs) : "";
7664
+ const derivedName = workflow ? chunk5A6T4W46_cjs.deriveWorkflowName(workflow, values.inputs) : "";
7638
7665
  const pickWorkflow = (next) => {
7639
7666
  const def = workflows.find((w) => w.id === next);
7640
7667
  setValues({
7641
7668
  ...values,
7642
7669
  workflowId: next,
7643
- inputs: def ? chunkQRAQZTJE_cjs.defaultInputs(def) : {},
7670
+ inputs: def ? chunkJN5YMHGI_cjs.defaultInputs(def) : {},
7644
7671
  ...def?.documentAction ? { access: "standing" } : {}
7645
7672
  });
7646
7673
  };
@@ -7778,7 +7805,7 @@ function WorkflowComposer({
7778
7805
  }
7779
7806
  ),
7780
7807
  !noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7781
- chunkWXUU3COI_cjs.SchemaForm,
7808
+ chunkSUOHAB7N_cjs.SchemaForm,
7782
7809
  {
7783
7810
  fields,
7784
7811
  values: values.inputs,
@@ -8216,7 +8243,7 @@ function WorkTaskComposer({
8216
8243
  }, [open]);
8217
8244
  const workflow = workflows.find((w) => w.id === values.workflowId);
8218
8245
  const fields = workflow?.inputs ?? [];
8219
- const errors = workflow ? chunkQRAQZTJE_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
8246
+ const errors = workflow ? chunkJN5YMHGI_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
8220
8247
  const hasWork = configOpen && Boolean(workflow) && Object.keys(errors).length === 0;
8221
8248
  const unattended = hasWork && values.when !== "now" && values.when !== "manual";
8222
8249
  const canConfigure = !isEdit || seed.assignee === "agent";
@@ -8224,7 +8251,7 @@ function WorkTaskComposer({
8224
8251
  const set = (key, value) => setValues({ ...values, [key]: value });
8225
8252
  const pickWorkflow = (id2) => {
8226
8253
  const next = workflows.find((w) => w.id === id2);
8227
- setValues({ ...values, workflowId: id2, inputs: next ? chunkQRAQZTJE_cjs.defaultInputs(next) : {} });
8254
+ setValues({ ...values, workflowId: id2, inputs: next ? chunkJN5YMHGI_cjs.defaultInputs(next) : {} });
8228
8255
  };
8229
8256
  const openConfigure = () => {
8230
8257
  setConfigOpen(true);
@@ -8410,7 +8437,7 @@ function WorkTaskComposer({
8410
8437
  )
8411
8438
  ] }),
8412
8439
  workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8413
- chunkWXUU3COI_cjs.SchemaForm,
8440
+ chunkSUOHAB7N_cjs.SchemaForm,
8414
8441
  {
8415
8442
  fields,
8416
8443
  values: values.inputs,
@@ -10018,5 +10045,5 @@ exports.useWorkflowView = useWorkflowView;
10018
10045
  exports.withLabelIds = withLabelIds;
10019
10046
  exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
10020
10047
  exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10021
- //# sourceMappingURL=chunk-NQML7IUC.cjs.map
10022
- //# sourceMappingURL=chunk-NQML7IUC.cjs.map
10048
+ //# sourceMappingURL=chunk-OD6NGGL3.cjs.map
10049
+ //# sourceMappingURL=chunk-OD6NGGL3.cjs.map