@arbidocs/blocks 0.4.79 → 0.4.81
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.
- package/dist/agents/index.cjs +278 -278
- package/dist/agents/index.js +3 -3
- package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
- package/dist/agents/workflows/WorkflowRunner.d.ts +35 -3
- package/dist/agents/workflows/run.d.ts +10 -0
- package/dist/agents/workflows/stepWindow.d.ts +7 -0
- package/dist/agents/workflows/types.d.ts +4 -2
- package/dist/{chunk-5XVWGJ2H.cjs → chunk-B3WCKBJ7.cjs} +3 -3
- package/dist/{chunk-5XVWGJ2H.cjs.map → chunk-B3WCKBJ7.cjs.map} +1 -1
- package/dist/{chunk-YGUKTFKW.cjs → chunk-BX7JWZWE.cjs} +122 -14
- package/dist/chunk-BX7JWZWE.cjs.map +1 -0
- package/dist/{chunk-3YET6D5E.cjs → chunk-F5WIETZY.cjs} +58 -43
- package/dist/chunk-F5WIETZY.cjs.map +1 -0
- package/dist/{chunk-O35LRB3P.js → chunk-GJV2G4FC.js} +3 -3
- package/dist/{chunk-O35LRB3P.js.map → chunk-GJV2G4FC.js.map} +1 -1
- package/dist/{chunk-BMOL5DN6.js → chunk-I56ORHPY.js} +27 -12
- package/dist/chunk-I56ORHPY.js.map +1 -0
- package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
- package/dist/chunk-SWSVPQNB.js.map +1 -0
- package/dist/{chunk-6GXF62XN.js → chunk-THCFZKTM.js} +118 -15
- package/dist/chunk-THCFZKTM.js.map +1 -0
- package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
- package/dist/chunk-UA2AMDR6.cjs.map +1 -0
- package/dist/connect/index.cjs +145 -62
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +106 -23
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedWorkflowRunner.d.ts +30 -4
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/index.cjs +467 -467
- package/dist/index.js +7 -7
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +3 -3
- package/dist/workflow-canvas/index.cjs +46 -46
- package/dist/workflow-canvas/index.js +3 -3
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3YET6D5E.cjs.map +0 -1
- package/dist/chunk-6GXF62XN.js.map +0 -1
- package/dist/chunk-BMOL5DN6.js.map +0 -1
- package/dist/chunk-CWAZNXC5.js.map +0 -1
- package/dist/chunk-MLAHDAN5.cjs.map +0 -1
- package/dist/chunk-YGUKTFKW.cjs.map +0 -1
|
@@ -629,6 +629,15 @@ var ACTION_TYPES = ["sign", "email_draft", "tabular_review"];
|
|
|
629
629
|
var asAction = (v) => ACTION_TYPES.includes(v) ? v : void 0;
|
|
630
630
|
var asRecord = (v) => v && typeof v === "object" && !Array.isArray(v) ? v : void 0;
|
|
631
631
|
var asStrings = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : void 0;
|
|
632
|
+
function waitingDocuments(state) {
|
|
633
|
+
return state?.status === "waiting" ? asStrings(state.waiting?.documents) ?? [] : [];
|
|
634
|
+
}
|
|
635
|
+
function eventWaitingDocuments(detail) {
|
|
636
|
+
return asStrings(asRecord(detail?.waiting)?.documents);
|
|
637
|
+
}
|
|
638
|
+
function waitingForDocumentsText(count) {
|
|
639
|
+
return `Waiting for ${count} ${count === 1 ? "document" : "documents"} to finish processing`;
|
|
640
|
+
}
|
|
632
641
|
function reopenedBy(detail) {
|
|
633
642
|
const to = str2(detail.to);
|
|
634
643
|
return asStrings(detail.reopened) ?? (to ? [to] : []);
|
|
@@ -1273,6 +1282,14 @@ function useWorkflowView(options) {
|
|
|
1273
1282
|
}
|
|
1274
1283
|
|
|
1275
1284
|
// src/agents/workflows/stepWindow.ts
|
|
1285
|
+
var LABEL_MAX_PX = 320;
|
|
1286
|
+
var CHAR_PX = 6.5;
|
|
1287
|
+
var LEVEL_CHROME_PX = 56;
|
|
1288
|
+
var GROUP_CHIP_PX = 32;
|
|
1289
|
+
function levelRoomPx(titles) {
|
|
1290
|
+
const label = Math.max(0, ...titles.map((t) => Math.min(LABEL_MAX_PX, t.length * CHAR_PX)));
|
|
1291
|
+
return Math.ceil(label + LEVEL_CHROME_PX + (titles.length > 1 ? GROUP_CHIP_PX : 0));
|
|
1292
|
+
}
|
|
1276
1293
|
var ATTENTION = ["waiting", "failed", "ready"];
|
|
1277
1294
|
function activeStepId(levels, phaseOf) {
|
|
1278
1295
|
const all = levels.flat();
|
|
@@ -1394,10 +1411,11 @@ var PHASE_TEXT = {
|
|
|
1394
1411
|
};
|
|
1395
1412
|
var STEP_PILL = "flex min-w-0 items-center gap-1.5 whitespace-nowrap rounded-full border px-2.5 py-1 text-xs font-medium transition-colors";
|
|
1396
1413
|
var STEP_LABEL = "min-w-[2.5rem] truncate";
|
|
1397
|
-
var
|
|
1414
|
+
var STEP_LABEL_MAX = "max-w-[20rem]";
|
|
1415
|
+
var STEP_LABEL_MAX_CURRENT = "max-w-[26rem]";
|
|
1416
|
+
var STEP_EXTRA = "min-w-[3rem] shrink-[1000] truncate font-normal opacity-80";
|
|
1398
1417
|
var fill = (template, values) => Object.entries(values).reduce((s, [k, v]) => s.replace(`{${k}}`, String(v)), template);
|
|
1399
1418
|
var NARROW_PX = 560;
|
|
1400
|
-
var FULL_LEVEL_PX = 190;
|
|
1401
1419
|
function StepBarFrame({
|
|
1402
1420
|
levels,
|
|
1403
1421
|
phaseOf,
|
|
@@ -1421,7 +1439,8 @@ function StepBarFrame({
|
|
|
1421
1439
|
const narrow = width > 0 && width < NARROW_PX;
|
|
1422
1440
|
const [start, setStart] = react.useState(null);
|
|
1423
1441
|
react.useEffect(() => setStart(null), [current]);
|
|
1424
|
-
const
|
|
1442
|
+
const wholeFits = width >= levels.reduce((sum, lv) => sum + levelRoomPx(lv.map((s) => s.title)), 0);
|
|
1443
|
+
const span = narrow ? 2 : wholeFits ? levels.length : 3;
|
|
1425
1444
|
const win = stepWindow({ levels, phaseOf, current, start, span });
|
|
1426
1445
|
const [listOpen, setListOpen] = react.useState(null);
|
|
1427
1446
|
const move = (to) => setStart(Math.max(0, Math.min(win.levels.length - 1, to)));
|
|
@@ -1585,12 +1604,13 @@ function StepBarFrame({
|
|
|
1585
1604
|
arrow("back"),
|
|
1586
1605
|
win.start === 0 && leading,
|
|
1587
1606
|
overflow("before", win.hiddenBefore),
|
|
1588
|
-
/* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex min-w-0 flex-
|
|
1607
|
+
/* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex min-w-0 flex-[1_1_auto] items-center gap-1", children: win.visible.map((level, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1589
1608
|
"li",
|
|
1590
1609
|
{
|
|
1591
1610
|
className: ui.cn(
|
|
1592
1611
|
"flex min-w-[5.5rem] items-center gap-1",
|
|
1593
|
-
i === win.visible.length - 1 ? "
|
|
1612
|
+
i === win.visible.length - 1 ? "grow-0" : "grow",
|
|
1613
|
+
level.index === win.currentLevel && !narrow && atId && noteOf?.(atId) ? "shrink-[1000] basis-auto" : "shrink basis-auto"
|
|
1594
1614
|
),
|
|
1595
1615
|
"data-role": level.role,
|
|
1596
1616
|
children: [
|
|
@@ -1611,7 +1631,7 @@ function StepBarFrame({
|
|
|
1611
1631
|
{
|
|
1612
1632
|
"aria-hidden": true,
|
|
1613
1633
|
className: ui.cn(
|
|
1614
|
-
"h-px min-w-
|
|
1634
|
+
"h-px min-w-2 flex-1",
|
|
1615
1635
|
level.steps.every((s) => ["done", "skipped"].includes(phaseOf(s.id))) ? "bg-emerald-600/40" : "bg-border"
|
|
1616
1636
|
)
|
|
1617
1637
|
}
|
|
@@ -1634,7 +1654,10 @@ function StepBarFrame({
|
|
|
1634
1654
|
running.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1635
1655
|
"div",
|
|
1636
1656
|
{
|
|
1637
|
-
className: ui.cn(
|
|
1657
|
+
className: ui.cn(
|
|
1658
|
+
"flex min-w-[6.5rem] shrink-[1000] items-center gap-1",
|
|
1659
|
+
narrow && "basis-full"
|
|
1660
|
+
),
|
|
1638
1661
|
"data-testid": tid("working"),
|
|
1639
1662
|
children: [
|
|
1640
1663
|
(running.length > 2 ? running.slice(0, 1) : running).map(workingPill),
|
|
@@ -2213,7 +2236,7 @@ function WorkflowStepBar({
|
|
|
2213
2236
|
"data-testid": tid("step-done"),
|
|
2214
2237
|
children: [
|
|
2215
2238
|
/* @__PURE__ */ jsxRuntime.jsx(PhaseMark, { phase: run.isComplete ? "done" : "ready", icon: doneIcon }),
|
|
2216
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn(STEP_LABEL,
|
|
2239
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ui.cn(STEP_LABEL, STEP_LABEL_MAX), children: doneTitle })
|
|
2217
2240
|
]
|
|
2218
2241
|
}
|
|
2219
2242
|
);
|
|
@@ -2234,7 +2257,7 @@ function WorkflowStepBar({
|
|
|
2234
2257
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2235
2258
|
"span",
|
|
2236
2259
|
{
|
|
2237
|
-
className: ui.cn(STEP_LABEL, isCurrent ?
|
|
2260
|
+
className: ui.cn(STEP_LABEL, isCurrent ? STEP_LABEL_MAX_CURRENT : STEP_LABEL_MAX),
|
|
2238
2261
|
"data-testid": tid(`step-${s.id}-label`),
|
|
2239
2262
|
children: s.title
|
|
2240
2263
|
}
|
|
@@ -2298,6 +2321,17 @@ var DEFAULT_WORKFLOW_RUNNER_LABELS = {
|
|
|
2298
2321
|
fileReady: "Ready",
|
|
2299
2322
|
fileFailed: "Could not be read",
|
|
2300
2323
|
readingFiles: "Reading {current} of {count} files\u2026",
|
|
2324
|
+
uploadingFiles: "Uploading {count} files\u2026",
|
|
2325
|
+
uploadingFile: "Uploading 1 file\u2026",
|
|
2326
|
+
uploadingAny: "Uploading\u2026",
|
|
2327
|
+
uploadsFailed: "Retry or remove the {count} files that did not upload",
|
|
2328
|
+
uploadFailed: "Retry or remove the file that did not upload",
|
|
2329
|
+
fileUploading: "Uploading\u2026",
|
|
2330
|
+
fileUploadFailed: "Did not upload",
|
|
2331
|
+
retryUpload: "Retry",
|
|
2332
|
+
removeUpload: "Remove",
|
|
2333
|
+
waitingForDocuments: "Waiting for {count} documents to finish processing",
|
|
2334
|
+
waitingForDocument: "Waiting for 1 document to finish processing",
|
|
2301
2335
|
markSent: "Mark as sent"
|
|
2302
2336
|
};
|
|
2303
2337
|
function WorkflowRunner({
|
|
@@ -2308,6 +2342,8 @@ function WorkflowRunner({
|
|
|
2308
2342
|
onUpload,
|
|
2309
2343
|
uploading = false,
|
|
2310
2344
|
files,
|
|
2345
|
+
onRetryUpload,
|
|
2346
|
+
onRemoveUpload,
|
|
2311
2347
|
renderUpload,
|
|
2312
2348
|
renderStepNote,
|
|
2313
2349
|
renderComplete,
|
|
@@ -2335,7 +2371,11 @@ function WorkflowRunner({
|
|
|
2335
2371
|
const added = step?.kind === "upload" ? (files ?? []).filter((f) => f.addedFor === step.id) : [];
|
|
2336
2372
|
const unread = added.filter((f) => f.status === "processing").length;
|
|
2337
2373
|
const reading = action === "complete" && unread > 0;
|
|
2338
|
-
const
|
|
2374
|
+
const sending = added.filter((f) => f.status === "uploading").length;
|
|
2375
|
+
const unsent = added.filter((f) => f.status === "upload-failed").length;
|
|
2376
|
+
const uploadHold = step?.kind === "upload" && (sending > 0 || uploading || unsent > 0);
|
|
2377
|
+
const docsWait = !!step && waitingDocuments(run.stateOf(step.id)).length > 0;
|
|
2378
|
+
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 === "skip" ? l.skip : 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;
|
|
2339
2379
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn(compact3 ? "space-y-3" : "space-y-6", className), "data-testid": testIdPrefix, children: [
|
|
2340
2380
|
!hideStepBar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2341
2381
|
WorkflowStepBar,
|
|
@@ -2406,6 +2446,8 @@ function WorkflowRunner({
|
|
|
2406
2446
|
files && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2407
2447
|
UploadFiles,
|
|
2408
2448
|
{
|
|
2449
|
+
onRetry: onRetryUpload,
|
|
2450
|
+
onRemove: onRemoveUpload,
|
|
2409
2451
|
added,
|
|
2410
2452
|
others: files.filter((f) => f.addedFor !== step.id),
|
|
2411
2453
|
l,
|
|
@@ -2474,6 +2516,7 @@ function WorkflowRunner({
|
|
|
2474
2516
|
icon: icon(step.icon),
|
|
2475
2517
|
renderStepNote,
|
|
2476
2518
|
compact: compact3,
|
|
2519
|
+
nameOfDoc,
|
|
2477
2520
|
extra: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2478
2521
|
/* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
|
|
2479
2522
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2533,11 +2576,11 @@ function WorkflowRunner({
|
|
|
2533
2576
|
ui.Button,
|
|
2534
2577
|
{
|
|
2535
2578
|
onClick: () => void run.next(),
|
|
2536
|
-
disabled: action === "wait" || reading,
|
|
2579
|
+
disabled: action === "wait" || reading || uploadHold,
|
|
2537
2580
|
"data-testid": tid("next"),
|
|
2538
2581
|
children: [
|
|
2539
2582
|
nextLabel,
|
|
2540
|
-
reading || action === "wait" && (run.isRunning || run.busy) ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "size-4" })
|
|
2583
|
+
reading || uploadHold && unsent === 0 || action === "wait" && (run.isRunning || run.busy || docsWait) ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "size-4" })
|
|
2541
2584
|
]
|
|
2542
2585
|
}
|
|
2543
2586
|
)
|
|
@@ -2552,6 +2595,8 @@ function WorkflowRunner({
|
|
|
2552
2595
|
function UploadFiles({
|
|
2553
2596
|
added,
|
|
2554
2597
|
others,
|
|
2598
|
+
onRetry,
|
|
2599
|
+
onRemove,
|
|
2555
2600
|
l,
|
|
2556
2601
|
testId
|
|
2557
2602
|
}) {
|
|
@@ -2565,6 +2610,47 @@ function UploadFiles({
|
|
|
2565
2610
|
children: [
|
|
2566
2611
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 shrink-0 text-primary" }),
|
|
2567
2612
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", title: f.name, children: f.name }),
|
|
2613
|
+
f.status === "uploading" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex shrink-0 items-center gap-1 text-xs", children: [
|
|
2614
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-3 animate-spin" }),
|
|
2615
|
+
" ",
|
|
2616
|
+
l.fileUploading
|
|
2617
|
+
] }),
|
|
2618
|
+
f.status === "upload-failed" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex shrink-0 items-center gap-1 text-xs text-destructive", role: "alert", children: [
|
|
2619
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "size-3" }),
|
|
2620
|
+
" ",
|
|
2621
|
+
l.fileUploadFailed,
|
|
2622
|
+
f.error ? `: ${f.error}` : "",
|
|
2623
|
+
onRetry && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2624
|
+
ui.Button,
|
|
2625
|
+
{
|
|
2626
|
+
variant: "ghost",
|
|
2627
|
+
size: "sm",
|
|
2628
|
+
className: "h-6 px-2",
|
|
2629
|
+
onClick: () => onRetry(f),
|
|
2630
|
+
"data-testid": `${testId}-file-${f.id}-retry`,
|
|
2631
|
+
children: [
|
|
2632
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCw, { className: "size-3" }),
|
|
2633
|
+
" ",
|
|
2634
|
+
l.retryUpload
|
|
2635
|
+
]
|
|
2636
|
+
}
|
|
2637
|
+
),
|
|
2638
|
+
onRemove && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2639
|
+
ui.Button,
|
|
2640
|
+
{
|
|
2641
|
+
variant: "ghost",
|
|
2642
|
+
size: "sm",
|
|
2643
|
+
className: "h-6 px-2",
|
|
2644
|
+
onClick: () => onRemove(f),
|
|
2645
|
+
"data-testid": `${testId}-file-${f.id}-remove`,
|
|
2646
|
+
children: [
|
|
2647
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3" }),
|
|
2648
|
+
" ",
|
|
2649
|
+
l.removeUpload
|
|
2650
|
+
]
|
|
2651
|
+
}
|
|
2652
|
+
)
|
|
2653
|
+
] }),
|
|
2568
2654
|
f.status === "processing" && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex shrink-0 items-center gap-1 text-xs", children: [
|
|
2569
2655
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-3 animate-spin" }),
|
|
2570
2656
|
" ",
|
|
@@ -2634,11 +2720,14 @@ function AgentStepBody({
|
|
|
2634
2720
|
renderStepNote,
|
|
2635
2721
|
extra,
|
|
2636
2722
|
compact: compact3,
|
|
2723
|
+
nameOfDoc,
|
|
2637
2724
|
l,
|
|
2638
2725
|
tid
|
|
2639
2726
|
}) {
|
|
2640
2727
|
const state = run.stateOf(step.id);
|
|
2641
2728
|
const phase = run.phaseOf(step.id);
|
|
2729
|
+
const pending = waitingDocuments(state);
|
|
2730
|
+
const pendingNames = pending.flatMap((ref) => nameOfDoc?.(splitDocRef(ref).id) ?? []);
|
|
2642
2731
|
const header = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
2643
2732
|
/* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon }),
|
|
2644
2733
|
phase === "failed" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: run.retry && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2675,6 +2764,20 @@ function AgentStepBody({
|
|
|
2675
2764
|
]
|
|
2676
2765
|
}
|
|
2677
2766
|
),
|
|
2767
|
+
pending.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2768
|
+
"div",
|
|
2769
|
+
{
|
|
2770
|
+
className: "space-y-0.5 text-sm text-muted-foreground",
|
|
2771
|
+
"data-testid": tid(`${step.id}-waiting-documents`),
|
|
2772
|
+
children: [
|
|
2773
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2", children: [
|
|
2774
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Hourglass, { className: "size-4" }),
|
|
2775
|
+
pending.length === 1 ? l.waitingForDocument : l.waitingForDocuments.replace("{count}", String(pending.length))
|
|
2776
|
+
] }),
|
|
2777
|
+
pendingNames.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pl-6 text-xs", children: pendingNames.join(", ") })
|
|
2778
|
+
]
|
|
2779
|
+
}
|
|
2780
|
+
),
|
|
2678
2781
|
phase === "failed" && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", "data-testid": tid(`${step.id}-failed`), children: state?.error || l.failed }),
|
|
2679
2782
|
phase === "skipped" && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: l.skipped }),
|
|
2680
2783
|
extra
|
|
@@ -2718,6 +2821,8 @@ exports.SKILL_PROMPT_FALLBACK_PLACEHOLDER = SKILL_PROMPT_FALLBACK_PLACEHOLDER;
|
|
|
2718
2821
|
exports.SKILL_PROMPT_LABEL = SKILL_PROMPT_LABEL;
|
|
2719
2822
|
exports.STEP_EXTRA = STEP_EXTRA;
|
|
2720
2823
|
exports.STEP_LABEL = STEP_LABEL;
|
|
2824
|
+
exports.STEP_LABEL_MAX = STEP_LABEL_MAX;
|
|
2825
|
+
exports.STEP_LABEL_MAX_CURRENT = STEP_LABEL_MAX_CURRENT;
|
|
2721
2826
|
exports.STEP_PILL = STEP_PILL;
|
|
2722
2827
|
exports.SchemaForm = SchemaForm;
|
|
2723
2828
|
exports.SendBackControl = SendBackControl;
|
|
@@ -2732,6 +2837,7 @@ exports.composeStepPrompt = composeStepPrompt;
|
|
|
2732
2837
|
exports.composeWorkflowPrompt = composeWorkflowPrompt;
|
|
2733
2838
|
exports.defaultInputs = defaultInputs;
|
|
2734
2839
|
exports.dependsOn = dependsOn;
|
|
2840
|
+
exports.eventWaitingDocuments = eventWaitingDocuments;
|
|
2735
2841
|
exports.fieldToFrontmatter = fieldToFrontmatter;
|
|
2736
2842
|
exports.fillRunText = fillRunText;
|
|
2737
2843
|
exports.fillStepInputs = fillStepInputs;
|
|
@@ -2774,10 +2880,12 @@ exports.useWorkflowView = useWorkflowView;
|
|
|
2774
2880
|
exports.validateInputs = validateInputs;
|
|
2775
2881
|
exports.validateStep = validateStep;
|
|
2776
2882
|
exports.validateWorkflowGraph = validateWorkflowGraph;
|
|
2883
|
+
exports.waitingDocuments = waitingDocuments;
|
|
2884
|
+
exports.waitingForDocumentsText = waitingForDocumentsText;
|
|
2777
2885
|
exports.workflowAccepts = workflowAccepts;
|
|
2778
2886
|
exports.workflowFromFrontmatter = workflowFromFrontmatter;
|
|
2779
2887
|
exports.workflowSteps = workflowSteps;
|
|
2780
2888
|
exports.workflowsAccepting = workflowsAccepting;
|
|
2781
2889
|
exports.workflowsForHost = workflowsForHost;
|
|
2782
|
-
//# sourceMappingURL=chunk-
|
|
2783
|
-
//# sourceMappingURL=chunk-
|
|
2890
|
+
//# sourceMappingURL=chunk-BX7JWZWE.cjs.map
|
|
2891
|
+
//# sourceMappingURL=chunk-BX7JWZWE.cjs.map
|