@workflow/web 5.0.5 → 5.0.6

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 (25) hide show
  1. package/build/client/assets/app-Dl8u94Mn.css +1 -0
  2. package/build/client/assets/{arrow-up-right-BjmInfWj.js → arrow-up-right-DDLzuSl1.js} +1 -1
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-Fxz5Vhrs.js → highlighted-body-B3W2YXNL-7nJixRf5.js} +1 -1
  4. package/build/client/assets/{home-Cj8BA1xg.js → home-DjMKxUF0.js} +3 -3
  5. package/build/client/assets/{loader-circle-BHf0PB8D.js → loader-circle-BuHkkqyY.js} +1 -1
  6. package/build/client/assets/{manifest-9875bf74.js → manifest-4ef14c64.js} +1 -1
  7. package/build/client/assets/{mermaid-3ZIDBTTL-C-jkx8xu.js → mermaid-3ZIDBTTL-CQkIfF6F.js} +27 -7
  8. package/build/client/assets/{root-D1LRhSwl.js → root-BdoS4wTM.js} +3 -3
  9. package/build/client/assets/root-DlBeVW_-.css +1 -0
  10. package/build/client/assets/{run-detail-L1jBcQcp.js → run-detail-CY1rcVcm.js} +126 -20
  11. package/build/client/assets/{workflow-graph-viewer-BRI-aUt7.js → workflow-graph-viewer-DaFQpLw8.js} +3 -2
  12. package/build/client/assets/{zstd-browser-decoder-HGSvkFdF.js → zstd-browser-decoder-BEdfA1e2.js} +1 -1
  13. package/build/server/assets/{app-C7EyOacb.js → app-BWanCGIY.js} +445 -180
  14. package/build/server/assets/{highlighted-body-B3W2YXNL-99nXCMDQ.js → highlighted-body-B3W2YXNL-DTYrZ-0h.js} +1 -1
  15. package/build/server/assets/{index-TQ324kzl.js → index-BE6TqyDE.js} +36 -34
  16. package/build/server/assets/{index-CI1MEtXX.js → index-DKlEIDGP.js} +1 -1
  17. package/build/server/assets/{mermaid-3ZIDBTTL-Csd1n701.js → mermaid-3ZIDBTTL-lgfv9_nj.js} +1 -1
  18. package/build/server/assets/{token-C7Y4VFl0.js → token-BhYk3Bk4.js} +1 -1
  19. package/build/server/assets/{token-util-DCNDhnc8.js → token-util-CfkQa5kX.js} +1 -1
  20. package/build/server/assets/{wrapper-CA2LUUpa.js → wrapper-BO03ZtLx.js} +9 -9
  21. package/build/server/assets/{zstd-browser-decoder-BJ5qrMmm.js → zstd-browser-decoder-BAaFFyPz.js} +1 -1
  22. package/build/server/index.js +2 -2
  23. package/package.json +7 -7
  24. package/build/client/assets/app-Cruj5elv.css +0 -1
  25. package/build/client/assets/root-D51qsCcK.css +0 -1
@@ -36309,7 +36309,7 @@ const createLucideIcon = (iconName, iconNode) => {
36309
36309
  * This source code is licensed under the ISC license.
36310
36310
  * See the LICENSE file in the root directory of this source tree.
36311
36311
  */
36312
- const __iconNode$D = [
36312
+ const __iconNode$E = [
36313
36313
  [
36314
36314
  "path",
36315
36315
  {
@@ -36318,14 +36318,14 @@ const __iconNode$D = [
36318
36318
  }
36319
36319
  ]
36320
36320
  ];
36321
- const Activity = createLucideIcon("activity", __iconNode$D);
36321
+ const Activity = createLucideIcon("activity", __iconNode$E);
36322
36322
  /**
36323
36323
  * @license lucide-react v0.575.0 - ISC
36324
36324
  *
36325
36325
  * This source code is licensed under the ISC license.
36326
36326
  * See the LICENSE file in the root directory of this source tree.
36327
36327
  */
36328
- const __iconNode$C = [
36328
+ const __iconNode$D = [
36329
36329
  ["path", { d: "M6.87 6.87a8 8 0 1 0 11.26 11.26", key: "3on8tj" }],
36330
36330
  ["path", { d: "M19.9 14.25a8 8 0 0 0-9.15-9.15", key: "15ghsc" }],
36331
36331
  ["path", { d: "m22 6-3-3", key: "1opdir" }],
@@ -36333,127 +36333,127 @@ const __iconNode$C = [
36333
36333
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
36334
36334
  ["path", { d: "M4 4 2 6", key: "1ycko6" }]
36335
36335
  ];
36336
- const AlarmClockOff = createLucideIcon("alarm-clock-off", __iconNode$C);
36336
+ const AlarmClockOff = createLucideIcon("alarm-clock-off", __iconNode$D);
36337
36337
  /**
36338
36338
  * @license lucide-react v0.575.0 - ISC
36339
36339
  *
36340
36340
  * This source code is licensed under the ISC license.
36341
36341
  * See the LICENSE file in the root directory of this source tree.
36342
36342
  */
36343
- const __iconNode$B = [
36343
+ const __iconNode$C = [
36344
36344
  ["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
36345
36345
  ["path", { d: "M7 20V4", key: "1yoxec" }],
36346
36346
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
36347
36347
  ["path", { d: "M15 10V6.5a2.5 2.5 0 0 1 5 0V10", key: "ag13bf" }],
36348
36348
  ["path", { d: "M15 14h5l-5 6h5", key: "ur5jdg" }]
36349
36349
  ];
36350
- const ArrowDownAZ = createLucideIcon("arrow-down-a-z", __iconNode$B);
36350
+ const ArrowDownAZ = createLucideIcon("arrow-down-a-z", __iconNode$C);
36351
36351
  /**
36352
36352
  * @license lucide-react v0.575.0 - ISC
36353
36353
  *
36354
36354
  * This source code is licensed under the ISC license.
36355
36355
  * See the LICENSE file in the root directory of this source tree.
36356
36356
  */
36357
- const __iconNode$A = [
36357
+ const __iconNode$B = [
36358
36358
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
36359
36359
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
36360
36360
  ];
36361
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$A);
36361
+ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$B);
36362
36362
  /**
36363
36363
  * @license lucide-react v0.575.0 - ISC
36364
36364
  *
36365
36365
  * This source code is licensed under the ISC license.
36366
36366
  * See the LICENSE file in the root directory of this source tree.
36367
36367
  */
36368
- const __iconNode$z = [
36368
+ const __iconNode$A = [
36369
36369
  ["path", { d: "M5 12h14", key: "1ays0h" }],
36370
36370
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
36371
36371
  ];
36372
- const ArrowRight = createLucideIcon("arrow-right", __iconNode$z);
36372
+ const ArrowRight = createLucideIcon("arrow-right", __iconNode$A);
36373
36373
  /**
36374
36374
  * @license lucide-react v0.575.0 - ISC
36375
36375
  *
36376
36376
  * This source code is licensed under the ISC license.
36377
36377
  * See the LICENSE file in the root directory of this source tree.
36378
36378
  */
36379
- const __iconNode$y = [
36379
+ const __iconNode$z = [
36380
36380
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
36381
36381
  ["path", { d: "M7 4v16", key: "1glfcx" }],
36382
36382
  ["path", { d: "M20 8h-5", key: "1vsyxs" }],
36383
36383
  ["path", { d: "M15 10V6.5a2.5 2.5 0 0 1 5 0V10", key: "ag13bf" }],
36384
36384
  ["path", { d: "M15 14h5l-5 6h5", key: "ur5jdg" }]
36385
36385
  ];
36386
- const ArrowUpAZ = createLucideIcon("arrow-up-a-z", __iconNode$y);
36386
+ const ArrowUpAZ = createLucideIcon("arrow-up-a-z", __iconNode$z);
36387
36387
  /**
36388
36388
  * @license lucide-react v0.575.0 - ISC
36389
36389
  *
36390
36390
  * This source code is licensed under the ISC license.
36391
36391
  * See the LICENSE file in the root directory of this source tree.
36392
36392
  */
36393
- const __iconNode$x = [
36393
+ const __iconNode$y = [
36394
36394
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
36395
36395
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
36396
36396
  ];
36397
- const ArrowUpRight = createLucideIcon("arrow-up-right", __iconNode$x);
36397
+ const ArrowUpRight = createLucideIcon("arrow-up-right", __iconNode$y);
36398
36398
  /**
36399
36399
  * @license lucide-react v0.575.0 - ISC
36400
36400
  *
36401
36401
  * This source code is licensed under the ISC license.
36402
36402
  * See the LICENSE file in the root directory of this source tree.
36403
36403
  */
36404
- const __iconNode$w = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
36405
- const Check = createLucideIcon("check", __iconNode$w);
36404
+ const __iconNode$x = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
36405
+ const Check = createLucideIcon("check", __iconNode$x);
36406
36406
  /**
36407
36407
  * @license lucide-react v0.575.0 - ISC
36408
36408
  *
36409
36409
  * This source code is licensed under the ISC license.
36410
36410
  * See the LICENSE file in the root directory of this source tree.
36411
36411
  */
36412
- const __iconNode$v = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
36413
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$v);
36412
+ const __iconNode$w = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
36413
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$w);
36414
36414
  /**
36415
36415
  * @license lucide-react v0.575.0 - ISC
36416
36416
  *
36417
36417
  * This source code is licensed under the ISC license.
36418
36418
  * See the LICENSE file in the root directory of this source tree.
36419
36419
  */
36420
- const __iconNode$u = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
36421
- const ChevronLeft = createLucideIcon("chevron-left", __iconNode$u);
36420
+ const __iconNode$v = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
36421
+ const ChevronLeft = createLucideIcon("chevron-left", __iconNode$v);
36422
36422
  /**
36423
36423
  * @license lucide-react v0.575.0 - ISC
36424
36424
  *
36425
36425
  * This source code is licensed under the ISC license.
36426
36426
  * See the LICENSE file in the root directory of this source tree.
36427
36427
  */
36428
- const __iconNode$t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
36429
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$t);
36428
+ const __iconNode$u = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
36429
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$u);
36430
36430
  /**
36431
36431
  * @license lucide-react v0.575.0 - ISC
36432
36432
  *
36433
36433
  * This source code is licensed under the ISC license.
36434
36434
  * See the LICENSE file in the root directory of this source tree.
36435
36435
  */
36436
- const __iconNode$s = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
36437
- const ChevronUp = createLucideIcon("chevron-up", __iconNode$s);
36436
+ const __iconNode$t = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
36437
+ const ChevronUp = createLucideIcon("chevron-up", __iconNode$t);
36438
36438
  /**
36439
36439
  * @license lucide-react v0.575.0 - ISC
36440
36440
  *
36441
36441
  * This source code is licensed under the ISC license.
36442
36442
  * See the LICENSE file in the root directory of this source tree.
36443
36443
  */
36444
- const __iconNode$r = [
36444
+ const __iconNode$s = [
36445
36445
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
36446
36446
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
36447
36447
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
36448
36448
  ];
36449
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$r);
36449
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$s);
36450
36450
  /**
36451
36451
  * @license lucide-react v0.575.0 - ISC
36452
36452
  *
36453
36453
  * This source code is licensed under the ISC license.
36454
36454
  * See the LICENSE file in the root directory of this source tree.
36455
36455
  */
36456
- const __iconNode$q = [
36456
+ const __iconNode$r = [
36457
36457
  [
36458
36458
  "path",
36459
36459
  {
@@ -36463,115 +36463,115 @@ const __iconNode$q = [
36463
36463
  ],
36464
36464
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
36465
36465
  ];
36466
- const CirclePlay = createLucideIcon("circle-play", __iconNode$q);
36466
+ const CirclePlay = createLucideIcon("circle-play", __iconNode$r);
36467
36467
  /**
36468
36468
  * @license lucide-react v0.575.0 - ISC
36469
36469
  *
36470
36470
  * This source code is licensed under the ISC license.
36471
36471
  * See the LICENSE file in the root directory of this source tree.
36472
36472
  */
36473
- const __iconNode$p = [
36473
+ const __iconNode$q = [
36474
36474
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
36475
36475
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
36476
36476
  ["path", { d: "M12 17h.01", key: "p32p05" }]
36477
36477
  ];
36478
- const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$p);
36478
+ const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$q);
36479
36479
  /**
36480
36480
  * @license lucide-react v0.575.0 - ISC
36481
36481
  *
36482
36482
  * This source code is licensed under the ISC license.
36483
36483
  * See the LICENSE file in the root directory of this source tree.
36484
36484
  */
36485
- const __iconNode$o = [
36485
+ const __iconNode$p = [
36486
36486
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
36487
36487
  ["rect", { x: "9", y: "9", width: "6", height: "6", rx: "1", key: "1ssd4o" }]
36488
36488
  ];
36489
- const CircleStop = createLucideIcon("circle-stop", __iconNode$o);
36489
+ const CircleStop = createLucideIcon("circle-stop", __iconNode$p);
36490
36490
  /**
36491
36491
  * @license lucide-react v0.575.0 - ISC
36492
36492
  *
36493
36493
  * This source code is licensed under the ISC license.
36494
36494
  * See the LICENSE file in the root directory of this source tree.
36495
36495
  */
36496
- const __iconNode$n = [
36496
+ const __iconNode$o = [
36497
36497
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
36498
36498
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
36499
36499
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
36500
36500
  ];
36501
- const CircleX = createLucideIcon("circle-x", __iconNode$n);
36501
+ const CircleX = createLucideIcon("circle-x", __iconNode$o);
36502
36502
  /**
36503
36503
  * @license lucide-react v0.575.0 - ISC
36504
36504
  *
36505
36505
  * This source code is licensed under the ISC license.
36506
36506
  * See the LICENSE file in the root directory of this source tree.
36507
36507
  */
36508
- const __iconNode$m = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
36509
- const Circle = createLucideIcon("circle", __iconNode$m);
36508
+ const __iconNode$n = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
36509
+ const Circle = createLucideIcon("circle", __iconNode$n);
36510
36510
  /**
36511
36511
  * @license lucide-react v0.575.0 - ISC
36512
36512
  *
36513
36513
  * This source code is licensed under the ISC license.
36514
36514
  * See the LICENSE file in the root directory of this source tree.
36515
36515
  */
36516
- const __iconNode$l = [
36516
+ const __iconNode$m = [
36517
36517
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
36518
36518
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
36519
36519
  ];
36520
- const Clock = createLucideIcon("clock", __iconNode$l);
36520
+ const Clock = createLucideIcon("clock", __iconNode$m);
36521
36521
  /**
36522
36522
  * @license lucide-react v0.575.0 - ISC
36523
36523
  *
36524
36524
  * This source code is licensed under the ISC license.
36525
36525
  * See the LICENSE file in the root directory of this source tree.
36526
36526
  */
36527
- const __iconNode$k = [
36527
+ const __iconNode$l = [
36528
36528
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
36529
36529
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
36530
36530
  ];
36531
- const Copy = createLucideIcon("copy", __iconNode$k);
36531
+ const Copy = createLucideIcon("copy", __iconNode$l);
36532
36532
  /**
36533
36533
  * @license lucide-react v0.575.0 - ISC
36534
36534
  *
36535
36535
  * This source code is licensed under the ISC license.
36536
36536
  * See the LICENSE file in the root directory of this source tree.
36537
36537
  */
36538
- const __iconNode$j = [
36538
+ const __iconNode$k = [
36539
36539
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
36540
36540
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
36541
36541
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
36542
36542
  ];
36543
- const Ellipsis = createLucideIcon("ellipsis", __iconNode$j);
36543
+ const Ellipsis = createLucideIcon("ellipsis", __iconNode$k);
36544
36544
  /**
36545
36545
  * @license lucide-react v0.575.0 - ISC
36546
36546
  *
36547
36547
  * This source code is licensed under the ISC license.
36548
36548
  * See the LICENSE file in the root directory of this source tree.
36549
36549
  */
36550
- const __iconNode$i = [
36550
+ const __iconNode$j = [
36551
36551
  ["path", { d: "M15 6a9 9 0 0 0-9 9V3", key: "1cii5b" }],
36552
36552
  ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
36553
36553
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }]
36554
36554
  ];
36555
- const GitBranch = createLucideIcon("git-branch", __iconNode$i);
36555
+ const GitBranch = createLucideIcon("git-branch", __iconNode$j);
36556
36556
  /**
36557
36557
  * @license lucide-react v0.575.0 - ISC
36558
36558
  *
36559
36559
  * This source code is licensed under the ISC license.
36560
36560
  * See the LICENSE file in the root directory of this source tree.
36561
36561
  */
36562
- const __iconNode$h = [
36562
+ const __iconNode$i = [
36563
36563
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
36564
36564
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
36565
36565
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
36566
36566
  ];
36567
- const Link2 = createLucideIcon("link-2", __iconNode$h);
36567
+ const Link2 = createLucideIcon("link-2", __iconNode$i);
36568
36568
  /**
36569
36569
  * @license lucide-react v0.575.0 - ISC
36570
36570
  *
36571
36571
  * This source code is licensed under the ISC license.
36572
36572
  * See the LICENSE file in the root directory of this source tree.
36573
36573
  */
36574
- const __iconNode$g = [
36574
+ const __iconNode$h = [
36575
36575
  ["path", { d: "M3 5h.01", key: "18ugdj" }],
36576
36576
  ["path", { d: "M3 12h.01", key: "nlz23k" }],
36577
36577
  ["path", { d: "M3 19h.01", key: "noohij" }],
@@ -36579,53 +36579,53 @@ const __iconNode$g = [
36579
36579
  ["path", { d: "M8 12h13", key: "1za7za" }],
36580
36580
  ["path", { d: "M8 19h13", key: "m83p4d" }]
36581
36581
  ];
36582
- const List$1 = createLucideIcon("list", __iconNode$g);
36582
+ const List$1 = createLucideIcon("list", __iconNode$h);
36583
36583
  /**
36584
36584
  * @license lucide-react v0.575.0 - ISC
36585
36585
  *
36586
36586
  * This source code is licensed under the ISC license.
36587
36587
  * See the LICENSE file in the root directory of this source tree.
36588
36588
  */
36589
- const __iconNode$f = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
36590
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$f);
36589
+ const __iconNode$g = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
36590
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$g);
36591
36591
  /**
36592
36592
  * @license lucide-react v0.575.0 - ISC
36593
36593
  *
36594
36594
  * This source code is licensed under the ISC license.
36595
36595
  * See the LICENSE file in the root directory of this source tree.
36596
36596
  */
36597
- const __iconNode$e = [
36597
+ const __iconNode$f = [
36598
36598
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
36599
36599
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
36600
36600
  ];
36601
- const Lock = createLucideIcon("lock", __iconNode$e);
36601
+ const Lock = createLucideIcon("lock", __iconNode$f);
36602
36602
  /**
36603
36603
  * @license lucide-react v0.575.0 - ISC
36604
36604
  *
36605
36605
  * This source code is licensed under the ISC license.
36606
36606
  * See the LICENSE file in the root directory of this source tree.
36607
36607
  */
36608
- const __iconNode$d = [["path", { d: "M5 12h14", key: "1ays0h" }]];
36609
- const Minus = createLucideIcon("minus", __iconNode$d);
36608
+ const __iconNode$e = [["path", { d: "M5 12h14", key: "1ays0h" }]];
36609
+ const Minus = createLucideIcon("minus", __iconNode$e);
36610
36610
  /**
36611
36611
  * @license lucide-react v0.575.0 - ISC
36612
36612
  *
36613
36613
  * This source code is licensed under the ISC license.
36614
36614
  * See the LICENSE file in the root directory of this source tree.
36615
36615
  */
36616
- const __iconNode$c = [
36616
+ const __iconNode$d = [
36617
36617
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
36618
36618
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
36619
36619
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
36620
36620
  ];
36621
- const Monitor = createLucideIcon("monitor", __iconNode$c);
36621
+ const Monitor = createLucideIcon("monitor", __iconNode$d);
36622
36622
  /**
36623
36623
  * @license lucide-react v0.575.0 - ISC
36624
36624
  *
36625
36625
  * This source code is licensed under the ISC license.
36626
36626
  * See the LICENSE file in the root directory of this source tree.
36627
36627
  */
36628
- const __iconNode$b = [
36628
+ const __iconNode$c = [
36629
36629
  [
36630
36630
  "path",
36631
36631
  {
@@ -36634,60 +36634,60 @@ const __iconNode$b = [
36634
36634
  }
36635
36635
  ]
36636
36636
  ];
36637
- const Moon = createLucideIcon("moon", __iconNode$b);
36637
+ const Moon = createLucideIcon("moon", __iconNode$c);
36638
36638
  /**
36639
36639
  * @license lucide-react v0.575.0 - ISC
36640
36640
  *
36641
36641
  * This source code is licensed under the ISC license.
36642
36642
  * See the LICENSE file in the root directory of this source tree.
36643
36643
  */
36644
- const __iconNode$a = [
36644
+ const __iconNode$b = [
36645
36645
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
36646
36646
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
36647
36647
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
36648
36648
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
36649
36649
  ];
36650
- const RefreshCw = createLucideIcon("refresh-cw", __iconNode$a);
36650
+ const RefreshCw = createLucideIcon("refresh-cw", __iconNode$b);
36651
36651
  /**
36652
36652
  * @license lucide-react v0.575.0 - ISC
36653
36653
  *
36654
36654
  * This source code is licensed under the ISC license.
36655
36655
  * See the LICENSE file in the root directory of this source tree.
36656
36656
  */
36657
- const __iconNode$9 = [
36657
+ const __iconNode$a = [
36658
36658
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
36659
36659
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
36660
36660
  ];
36661
- const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$9);
36661
+ const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$a);
36662
36662
  /**
36663
36663
  * @license lucide-react v0.575.0 - ISC
36664
36664
  *
36665
36665
  * This source code is licensed under the ISC license.
36666
36666
  * See the LICENSE file in the root directory of this source tree.
36667
36667
  */
36668
- const __iconNode$8 = [
36668
+ const __iconNode$9 = [
36669
36669
  ["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }],
36670
36670
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }]
36671
36671
  ];
36672
- const RotateCw = createLucideIcon("rotate-cw", __iconNode$8);
36672
+ const RotateCw = createLucideIcon("rotate-cw", __iconNode$9);
36673
36673
  /**
36674
36674
  * @license lucide-react v0.575.0 - ISC
36675
36675
  *
36676
36676
  * This source code is licensed under the ISC license.
36677
36677
  * See the LICENSE file in the root directory of this source tree.
36678
36678
  */
36679
- const __iconNode$7 = [
36679
+ const __iconNode$8 = [
36680
36680
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
36681
36681
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
36682
36682
  ];
36683
- const Search = createLucideIcon("search", __iconNode$7);
36683
+ const Search = createLucideIcon("search", __iconNode$8);
36684
36684
  /**
36685
36685
  * @license lucide-react v0.575.0 - ISC
36686
36686
  *
36687
36687
  * This source code is licensed under the ISC license.
36688
36688
  * See the LICENSE file in the root directory of this source tree.
36689
36689
  */
36690
- const __iconNode$6 = [
36690
+ const __iconNode$7 = [
36691
36691
  [
36692
36692
  "path",
36693
36693
  {
@@ -36697,14 +36697,14 @@ const __iconNode$6 = [
36697
36697
  ],
36698
36698
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
36699
36699
  ];
36700
- const Send = createLucideIcon("send", __iconNode$6);
36700
+ const Send = createLucideIcon("send", __iconNode$7);
36701
36701
  /**
36702
36702
  * @license lucide-react v0.575.0 - ISC
36703
36703
  *
36704
36704
  * This source code is licensed under the ISC license.
36705
36705
  * See the LICENSE file in the root directory of this source tree.
36706
36706
  */
36707
- const __iconNode$5 = [
36707
+ const __iconNode$6 = [
36708
36708
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
36709
36709
  ["path", { d: "M12 2v2", key: "tus03m" }],
36710
36710
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -36715,7 +36715,25 @@ const __iconNode$5 = [
36715
36715
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
36716
36716
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
36717
36717
  ];
36718
- const Sun = createLucideIcon("sun", __iconNode$5);
36718
+ const Sun = createLucideIcon("sun", __iconNode$6);
36719
+ /**
36720
+ * @license lucide-react v0.575.0 - ISC
36721
+ *
36722
+ * This source code is licensed under the ISC license.
36723
+ * See the LICENSE file in the root directory of this source tree.
36724
+ */
36725
+ const __iconNode$5 = [
36726
+ [
36727
+ "path",
36728
+ {
36729
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
36730
+ key: "wmoenq"
36731
+ }
36732
+ ],
36733
+ ["path", { d: "M12 9v4", key: "juzpu7" }],
36734
+ ["path", { d: "M12 17h.01", key: "p32p05" }]
36735
+ ];
36736
+ const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$5);
36719
36737
  /**
36720
36738
  * @license lucide-react v0.575.0 - ISC
36721
36739
  *
@@ -48888,6 +48906,16 @@ function getMaxEventsPerRun() {
48888
48906
  const maxEvents = envNumber("WORKFLOW_MAX_EVENTS", DEFAULT_MAX_EVENTS_PER_RUN, { integer: true });
48889
48907
  return maxEvents > 0 ? maxEvents : DEFAULT_MAX_EVENTS_PER_RUN;
48890
48908
  }
48909
+ function isEventLimitExemptRun(run2) {
48910
+ const context = run2 == null ? void 0 : run2.executionContext;
48911
+ if (context === null || typeof context !== "object")
48912
+ return false;
48913
+ const { workflowVm, snapshotThreshold } = context;
48914
+ return workflowVm === "quickjs" && typeof snapshotThreshold === "number" && Number.isSafeInteger(snapshotThreshold) && snapshotThreshold > 0;
48915
+ }
48916
+ function getMaxEventsForRun(run2) {
48917
+ return isEventLimitExemptRun(run2) ? Number.MAX_SAFE_INTEGER : getMaxEventsPerRun();
48918
+ }
48891
48919
  const QueuePrefix = compile(string$2().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_workflow_$/, "Must match __wkf_workflow_ or __{namespace}_wkf_workflow_"));
48892
48920
  const ValidQueueName = compile(string$2().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_workflow_.+$/, "Must be a valid queue name with a recognized prefix"));
48893
48921
  const QueueNamespace = compile(string$2().regex(/^[a-z][a-z0-9]*$/, "Must be lowercase alphanumeric, starting with a letter"));
@@ -49168,6 +49196,19 @@ const HealthCheckPayloadSchema = compile(object$1({
49168
49196
  * probe response. That lets the caller seal the workflow arguments without
49169
49197
  * a separate key lookup. Absent for probes issued for other reasons (CLI
49170
49198
  * health command, dashboard), in which case no key is returned.
49199
+ *
49200
+ * Deliberately not named `runId`: `runId` is the only required field of
49201
+ * `WorkflowInvokePayloadSchema`, and 4.x deployments parse queue payloads
49202
+ * with a union that tries the invoke schema before the health check. A
49203
+ * probe carrying `runId` is read there as "replay this run", which POSTs
49204
+ * `run_started` for a run that does not exist yet (404) and retries the
49205
+ * delivery, so the probe never answers.
49206
+ */
49207
+ probeRunId: string$2().optional(),
49208
+ /**
49209
+ * Legacy spelling of {@link probeRunId}, sent by 5.x callers released
49210
+ * before the rename. Accepted so those callers still get a public key
49211
+ * back from this deployment; never sent.
49171
49212
  */
49172
49213
  runId: string$2().optional()
49173
49214
  }));
@@ -52948,23 +52989,24 @@ function foldDuplicates(ordered) {
52948
52989
  const seenClasses = /* @__PURE__ */ new Set();
52949
52990
  const closedEntities = /* @__PURE__ */ new Set();
52950
52991
  for (const event of ordered) {
52992
+ if (event.correlationId && closedEntities.has(event.correlationId)) {
52993
+ duplicates.add(event.eventId);
52994
+ continue;
52995
+ }
52951
52996
  const classification = classifyEntityEvent(event);
52952
52997
  if (classification === void 0)
52953
52998
  continue;
52954
52999
  const { eventClass, entity } = classification;
52955
53000
  const classKey = `${eventClass}:${entity}`;
52956
53001
  const repeatsClass = seenClasses.has(classKey);
52957
- const entityWasClosed = closedEntities.has(entity);
52958
53002
  if (TERMINAL_EVENT_CLASSES.has(eventClass)) {
52959
53003
  closedEntities.add(entity);
52960
53004
  }
52961
53005
  if (!repeatsClass) {
52962
- if (entityWasClosed)
52963
- break;
52964
53006
  seenClasses.add(classKey);
52965
53007
  continue;
52966
53008
  }
52967
- if (entityWasClosed || SINGLETON_EVENT_CLASSES.has(eventClass)) {
53009
+ if (SINGLETON_EVENT_CLASSES.has(eventClass)) {
52968
53010
  duplicates.add(event.eventId);
52969
53011
  }
52970
53012
  }
@@ -55330,11 +55372,18 @@ function hydrateResourceIO$1(resource, revivers) {
55330
55372
  }
55331
55373
  if ("executionContext" in hydrated) {
55332
55374
  const { executionContext, ...rest } = hydrated;
55333
- const workflowCoreVersion = executionContext && typeof executionContext === "object" && "workflowCoreVersion" in executionContext ? executionContext.workflowCoreVersion : void 0;
55334
- if (workflowCoreVersion) {
55335
- return { ...rest, workflowCoreVersion };
55375
+ const ctx = executionContext && typeof executionContext === "object" ? executionContext : void 0;
55376
+ const preserved = {};
55377
+ if (ctx == null ? void 0 : ctx.workflowCoreVersion) {
55378
+ preserved.workflowCoreVersion = ctx.workflowCoreVersion;
55336
55379
  }
55337
- return rest;
55380
+ if (typeof (ctx == null ? void 0 : ctx.workflowVm) === "string") {
55381
+ preserved.workflowVm = ctx.workflowVm;
55382
+ }
55383
+ if (typeof (ctx == null ? void 0 : ctx.snapshotThreshold) === "number") {
55384
+ preserved.snapshotThreshold = ctx.snapshotThreshold;
55385
+ }
55386
+ return { ...rest, ...preserved };
55338
55387
  }
55339
55388
  return hydrated;
55340
55389
  }
@@ -55682,7 +55731,7 @@ function replaceEncryptedAndExpiredWithMarkers(resource) {
55682
55731
  }
55683
55732
  async function hydrateResourceIOAsync(resource, key) {
55684
55733
  const { hydrateDataWithKey: hydrateDataWithKey2, deriveRunPayloadKeys: deriveRunPayloadKeys2 } = await Promise.resolve().then(() => serializationFormat);
55685
- const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-BJ5qrMmm.js");
55734
+ const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-BAaFFyPz.js");
55686
55735
  ensureZstdDecoderRegistered();
55687
55736
  const cryptoKey = key ? await deriveRunPayloadKeys2(key) : void 0;
55688
55737
  const revivers = getRevivers();
@@ -59220,8 +59269,13 @@ function buildNameMaps(events2, run2) {
59220
59269
  const correlationNameMap = /* @__PURE__ */ new Map();
59221
59270
  if (events2) {
59222
59271
  for (const event of events2) {
59223
- if (event.eventType === "step_created" && event.correlationId) {
59224
- const stepName = ((_a3 = event.eventData) == null ? void 0 : _a3.stepName) ?? "";
59272
+ if ((event.eventType === "step_created" || event.eventType === "step_started") && event.correlationId) {
59273
+ const stepName = (_a3 = event.eventData) == null ? void 0 : _a3.stepName;
59274
+ if (typeof stepName !== "string")
59275
+ continue;
59276
+ if (event.eventType === "step_started" && correlationNameMap.has(event.correlationId)) {
59277
+ continue;
59278
+ }
59225
59279
  const parsed = parseStepName(String(stepName)) ?? parseWorkflowName(String(stepName));
59226
59280
  correlationNameMap.set(event.correlationId, (parsed == null ? void 0 : parsed.shortName) ?? stepName);
59227
59281
  }
@@ -86670,7 +86724,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
86670
86724
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
86671
86725
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
86672
86726
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
86673
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-99nXCMDQ.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
86727
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-DTYrZ-0h.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
86674
86728
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
86675
86729
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
86676
86730
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -86992,7 +87046,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
86992
87046
  }, []), jsxRuntimeExports.jsxs("div", { className: "relative", ref: i, children: [jsxRuntimeExports.jsx("button", { className: f("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: c, onClick: () => r2(!s2), title: "Download table", type: "button", children: e != null ? e : jsxRuntimeExports.jsx(Z, { size: 14 }) }), s2 ? jsxRuntimeExports.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
86993
87047
  };
86994
87048
  var Vt = ({ children: e, className: t, showControls: o, ...n }) => jsxRuntimeExports.jsxs("div", { className: "my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2", "data-streamdown": "table-wrapper", children: [o ? jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-1", children: [jsxRuntimeExports.jsx(Ht, {}), jsxRuntimeExports.jsx(Dt, {})] }) : null, jsxRuntimeExports.jsx("div", { className: "border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background", children: jsxRuntimeExports.jsx("table", { className: f("w-full divide-y divide-border", t), "data-streamdown": "table", ...n, children: e }) })] });
86995
- var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-Csd1n701.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
87049
+ var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-lgfv9_nj.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
86996
87050
  function ke(e, t) {
86997
87051
  if (!(e != null && e.position || t != null && t.position)) return true;
86998
87052
  if (!(e != null && e.position && (t != null && t.position))) return false;
@@ -87696,9 +87750,10 @@ function waitToSpan(events2, maxEndTime, fallbackEndTime = maxEndTime) {
87696
87750
  };
87697
87751
  }
87698
87752
  const stepEventsToStepEntity = (events2) => {
87699
- var _a3;
87753
+ var _a3, _b2;
87700
87754
  const createdEvent = events2.find((event) => event.eventType === "step_created");
87701
87755
  const anchorEvent = createdEvent ?? events2[0];
87756
+ const firstStartedEvent = events2.find((event) => event.eventType === "step_started");
87702
87757
  if (!anchorEvent) {
87703
87758
  return null;
87704
87759
  }
@@ -87735,7 +87790,7 @@ const stepEventsToStepEntity = (events2) => {
87735
87790
  return {
87736
87791
  stepId: anchorEvent.correlationId ?? "",
87737
87792
  runId: anchorEvent.runId,
87738
- stepName: ((_a3 = createdEvent == null ? void 0 : createdEvent.eventData) == null ? void 0 : _a3.stepName) ?? "",
87793
+ stepName: ((_a3 = createdEvent == null ? void 0 : createdEvent.eventData) == null ? void 0 : _a3.stepName) ?? ((_b2 = firstStartedEvent == null ? void 0 : firstStartedEvent.eventData) == null ? void 0 : _b2.stepName) ?? "",
87739
87794
  status,
87740
87795
  attempt,
87741
87796
  createdAt: getEventTimestamp(anchorEvent) ?? anchorEvent.createdAt,
@@ -89828,6 +89883,7 @@ const attributeOrder = [
89828
89883
  "computeInstanceId",
89829
89884
  "specVersion",
89830
89885
  "workflowCoreVersion",
89886
+ "workflowVm",
89831
89887
  "ownerId",
89832
89888
  "projectId",
89833
89889
  "environment",
@@ -89874,6 +89930,7 @@ const attributeDisplayNames = {
89874
89930
  computeInstanceId: "Compute Instance ID",
89875
89931
  specVersion: "Spec Version",
89876
89932
  workflowCoreVersion: "@workflow/core version",
89933
+ workflowVm: "Workflow VM",
89877
89934
  occurredAt: "Occurred",
89878
89935
  createdAt: "Created",
89879
89936
  startedAt: "Started",
@@ -89969,6 +90026,8 @@ const attributeToDisplayFn = {
89969
90026
  computeInstanceId: opaqueIdOrNull,
89970
90027
  specVersion: (value) => String(value),
89971
90028
  workflowCoreVersion: (value) => String(value),
90029
+ // Only present when the run's executionContext recorded an engine.
90030
+ workflowVm: (value) => typeof value === "string" && value.length > 0 ? value : null,
89972
90031
  // Tenancy (we don't show these)
89973
90032
  ownerId: (_value) => null,
89974
90033
  projectId: (_value) => null,
@@ -90170,6 +90229,9 @@ const AttributePanel = ({ data: data2, moduleSpecifier, moduleSourceUrl, isLoadi
90170
90229
  if (execCtx == null ? void 0 : execCtx.workflowCoreVersion) {
90171
90230
  result.workflowCoreVersion = execCtx.workflowCoreVersion;
90172
90231
  }
90232
+ if (typeof (execCtx == null ? void 0 : execCtx.workflowVm) === "string") {
90233
+ result.workflowVm = execCtx.workflowVm;
90234
+ }
90173
90235
  if (moduleSpecifier) {
90174
90236
  result.moduleSpecifier = moduleSpecifier;
90175
90237
  } else if (typeof data2.stepName === "string") {
@@ -92662,6 +92724,48 @@ function analyzeEvents(events2) {
92662
92724
  lastStepCompletionAt
92663
92725
  };
92664
92726
  }
92727
+ const MAX_EVENTS_EXCEEDED = "MAX_EVENTS_EXCEEDED";
92728
+ const REPLAY_TIMEOUT = "REPLAY_TIMEOUT";
92729
+ const DOCS_BASE_URL = "https://workflow-sdk.dev/err";
92730
+ function readVmPolicy(run2) {
92731
+ const ctx = run2.executionContext && typeof run2.executionContext === "object" ? run2.executionContext : void 0;
92732
+ return {
92733
+ workflowVm: run2.workflowVm ?? (ctx == null ? void 0 : ctx.workflowVm),
92734
+ snapshotThreshold: run2.snapshotThreshold ?? (ctx == null ? void 0 : ctx.snapshotThreshold)
92735
+ };
92736
+ }
92737
+ function isQuickJSSnapshotRun(run2) {
92738
+ const { workflowVm, snapshotThreshold } = readVmPolicy(run2);
92739
+ return workflowVm === "quickjs" && typeof snapshotThreshold === "number" && Number.isSafeInteger(snapshotThreshold) && snapshotThreshold > 0;
92740
+ }
92741
+ function getRunLimitGuidance(run2) {
92742
+ if (!run2 || run2.status !== "failed")
92743
+ return null;
92744
+ const code2 = run2.errorCode;
92745
+ if (code2 !== MAX_EVENTS_EXCEEDED && code2 !== REPLAY_TIMEOUT)
92746
+ return null;
92747
+ if (isQuickJSSnapshotRun(run2))
92748
+ return null;
92749
+ const { workflowVm } = readVmPolicy(run2);
92750
+ const onQuickJS = workflowVm === "quickjs";
92751
+ const remediation = onQuickJS ? "This run used the QuickJS VM, but a snapshot threshold wasn't recorded when it started (snapshotting was disabled, or the run was started by an older SDK), so the default event limit applied. Set a positive WORKFLOW_SNAPSHOT_THRESHOLD in the environment that starts runs, or upgrade the workflow package, so new runs are exempt." : "Run long-running workflows on the QuickJS VM with snapshotting. Snapshotted runs resume without replaying the full event log and are exempt from the default per-run event limit. Set this in the environment that starts runs; only new runs are affected.";
92752
+ if (code2 === MAX_EVENTS_EXCEEDED) {
92753
+ return {
92754
+ kind: "max-events-exceeded",
92755
+ title: "This run reached the per-run event limit",
92756
+ description: remediation,
92757
+ envVar: onQuickJS ? "WORKFLOW_SNAPSHOT_THRESHOLD=1000" : "WORKFLOW_VM=quickjs",
92758
+ docsUrl: `${DOCS_BASE_URL}/max-events-exceeded`
92759
+ };
92760
+ }
92761
+ return {
92762
+ kind: "replay-timeout",
92763
+ title: "This run exceeded the workflow replay time limit",
92764
+ description: `Replay time grows with the size of the event log. ${remediation}`,
92765
+ envVar: onQuickJS ? "WORKFLOW_SNAPSHOT_THRESHOLD=1000" : "WORKFLOW_VM=quickjs",
92766
+ docsUrl: `${DOCS_BASE_URL}/replay-timeout`
92767
+ };
92768
+ }
92665
92769
  const ServerConfigContext = reactExports.createContext(
92666
92770
  null
92667
92771
  );
@@ -98993,7 +99097,10 @@ async function getForwardedWritableEncryptionKey(runId, deploymentId, encryption
98993
99097
  const world = await getWorldLazy();
98994
99098
  if (!world.getEncryptionKeyForRun)
98995
99099
  return void 0;
98996
- const rawKey = deploymentId ? await world.getEncryptionKeyForRun(runId, { deploymentId }) : await world.getEncryptionKeyForRun(await world.runs.get(runId));
99100
+ const ownerDeploymentId = deploymentId ?? (await world.runs.get(runId, { resolveData: "none" })).deploymentId;
99101
+ const rawKey = await world.getEncryptionKeyForRun(runId, {
99102
+ deploymentId: ownerDeploymentId
99103
+ });
98997
99104
  return rawKey ? await importKey(rawKey, ["encrypt"]) : void 0;
98998
99105
  }
98999
99106
  function lazyForwardedWritableEncryptionKey(runId, deploymentId, encryptionPublicKey) {
@@ -107475,7 +107582,7 @@ function getCompressionMode(capabilities) {
107475
107582
  }
107476
107583
  return capabilities.supportedFormats.has(SerializationFormat$1.ZSTD) ? true : "gzip";
107477
107584
  }
107478
- const version$1 = "5.2.2";
107585
+ const version$1 = "5.2.3";
107479
107586
  const DEFAULT_HEALTH_CHECK_TIMEOUT = 3e4;
107480
107587
  const SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@()[\]]+$/;
107481
107588
  function getWorkflowQueueName(workflowName, namespace2) {
@@ -107579,7 +107686,10 @@ async function healthCheck(world, options) {
107579
107686
  await world.queue(queueName, {
107580
107687
  __healthCheck: true,
107581
107688
  correlationId,
107582
- ...(options == null ? void 0 : options.runId) ? { runId: options.runId } : {}
107689
+ // Sent as `probeRunId`, never `runId`: a 4.x responder would parse a
107690
+ // `runId`-bearing probe as a run invocation (see
107691
+ // `HealthCheckPayloadSchema`).
107692
+ ...(options == null ? void 0 : options.runId) ? { probeRunId: options.runId } : {}
107583
107693
  }, {
107584
107694
  // Use JSON transport so the health check works against both
107585
107695
  // old (JSON-only) and new (dual) deployments.
@@ -107655,6 +107765,7 @@ function getWorkflowVmFromEnv(env2 = process.env) {
107655
107765
  }
107656
107766
  throw new WorkflowRuntimeError(`Invalid WORKFLOW_VM value: "${raw2}". Expected one of: ${WORKFLOW_VMS.join(", ")}.`);
107657
107767
  }
107768
+ const DEFAULT_QUICKJS_SNAPSHOT_THRESHOLD = 1e3;
107658
107769
  function getSnapshotThresholdFromEnv(env2 = process.env) {
107659
107770
  const raw2 = env2.WORKFLOW_SNAPSHOT_THRESHOLD;
107660
107771
  if (raw2 === void 0 || raw2 === "")
@@ -107665,8 +107776,14 @@ function getSnapshotThresholdFromEnv(env2 = process.env) {
107665
107776
  }
107666
107777
  return parsed;
107667
107778
  }
107779
+ function getSnapshotThresholdForStart(workflowVm, env2 = process.env) {
107780
+ const fromEnv = getSnapshotThresholdFromEnv(env2);
107781
+ if (fromEnv !== void 0)
107782
+ return fromEnv;
107783
+ return workflowVm === "quickjs" ? DEFAULT_QUICKJS_SNAPSHOT_THRESHOLD : void 0;
107784
+ }
107668
107785
  function waitUntil(promise2) {
107669
- void import("./index-CI1MEtXX.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
107786
+ void import("./index-DKlEIDGP.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
107670
107787
  waitUntil2(promise2);
107671
107788
  });
107672
107789
  }
@@ -107953,7 +108070,7 @@ async function start$1(workflow, argsOrOptions, options) {
107953
108070
  encryptionPublicKey = rawKey ? bytesToBase64((await deriveRunKeyPair(rawKey)).publicKey) : void 0;
107954
108071
  }
107955
108072
  const workflowVm = getWorkflowVmFromEnv();
107956
- const snapshotThreshold = getSnapshotThresholdFromEnv();
108073
+ const snapshotThreshold = getSnapshotThresholdForStart(workflowVm);
107957
108074
  const queueNamespace = resolveQueueNamespace(opts.namespace);
107958
108075
  const executionContext = {
107959
108076
  traceCarrier,
@@ -108083,7 +108200,7 @@ const normalizeWorkflowArgs = (args) => {
108083
108200
  return Array.isArray(args) ? args : [args];
108084
108201
  };
108085
108202
  async function recreateRunFromExisting(world, runId, options = {}) {
108086
- var _a3;
108203
+ var _a3, _b2;
108087
108204
  try {
108088
108205
  const run2 = await world.runs.get(runId, { resolveData: "all" });
108089
108206
  if (readDynamicWorkflowMetadata(run2.executionContext)) {
@@ -108094,12 +108211,14 @@ async function recreateRunFromExisting(world, runId, options = {}) {
108094
108211
  const workflowArgs = normalizeWorkflowArgs(await hydrateWorkflowArguments(run2.input, runId, encryptionKey, globalThis));
108095
108212
  const deploymentId = options.deploymentId ?? run2.deploymentId;
108096
108213
  const specVersion = options.specVersion ?? (deploymentId === run2.deploymentId ? run2.specVersion ?? SPEC_VERSION_LEGACY : void 0);
108214
+ const region = options.region ?? ((_b2 = world.regionForRunId) == null ? void 0 : _b2.call(world, runId)) ?? void 0;
108097
108215
  const newRun = await start$1({ workflowId: run2.workflowName }, workflowArgs, {
108098
108216
  deploymentId,
108099
108217
  world,
108100
108218
  specVersion,
108101
108219
  replayedFromRunId: runId,
108102
- namespace: options.namespace
108220
+ namespace: options.namespace,
108221
+ ...region !== void 0 ? { region } : {}
108103
108222
  });
108104
108223
  return newRun.runId;
108105
108224
  } catch (err) {
@@ -108511,10 +108630,20 @@ _resilientStart = new WeakMap();
108511
108630
  getEncryptionKey_fn = function(run2) {
108512
108631
  if (!__privateGet(this, _encryptionKeyPromise)) {
108513
108632
  __privateSet(this, _encryptionKeyPromise, (async () => {
108514
- var _a3;
108515
108633
  const world = await __privateGet(this, _Run_instances, lazyWorldPromise_get);
108516
- const runData = run2 ?? await world.runs.get(this.runId);
108517
- const rawKey = await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, runData));
108634
+ if (!world.getEncryptionKeyForRun)
108635
+ return void 0;
108636
+ let rawKey;
108637
+ if (run2) {
108638
+ rawKey = await world.getEncryptionKeyForRun(run2);
108639
+ } else {
108640
+ const { deploymentId } = await world.runs.get(this.runId, {
108641
+ resolveData: "none"
108642
+ });
108643
+ rawKey = await world.getEncryptionKeyForRun(this.runId, {
108644
+ deploymentId
108645
+ });
108646
+ }
108518
108647
  return rawKey ? await deriveRunPayloadKeys(rawKey) : void 0;
108519
108648
  })());
108520
108649
  }
@@ -108621,6 +108750,7 @@ pollReturnValue_fn = async function() {
108621
108750
  }
108622
108751
  };
108623
108752
  let Run = _Run;
108753
+ globalSingleton("@workflow/core//eventLimitWarnings", 1, () => /* @__PURE__ */ new Set());
108624
108754
  object$1({
108625
108755
  type: literal$1("hook_resume"),
108626
108756
  version: literal$1(1),
@@ -140135,6 +140265,7 @@ function createRunsStorage(basedir, tag) {
140135
140265
  }
140136
140266
  const DAY_MS$1 = 24 * 60 * 60 * 1e3;
140137
140267
  const MAX_CACHED_EVENT_ENTRIES = 1e3;
140268
+ const MAX_FORCE_CLAIM_VICTIM_RETRIES = 100;
140138
140269
  function getHookRetentionLimitMs() {
140139
140270
  const days = Number(process.env.WORKFLOW_LOCAL_HOOK_RETENTION_LIMIT_DAYS ?? 30);
140140
140271
  if (!Number.isFinite(days) || days <= 0) {
@@ -140457,8 +140588,62 @@ function createEventsStorage(basedir, tag) {
140457
140588
  getSortKey: eventSortKey,
140458
140589
  getSortKeyFromFileId: (fileId) => eventSortKeyFromFileId(runId, fileId)
140459
140590
  });
140591
+ const missingRunCreatedError = (runId, reason) => new WorkflowWorldError(`Cannot restore missing run_created for workflow run "${runId}": ${reason}`);
140592
+ async function publishRunCreatedAtFirstSlot(event) {
140593
+ const eventId = slotToEventId(FIRST_EVENT_SLOT);
140594
+ const firstSlotEvent = event.eventId === eventId ? event : { ...event, eventId };
140595
+ const eventPath = taggedPath(basedir, runEntityDir("events", event.runId), `${event.runId}-${eventId}`, tag);
140596
+ const serializedEvent = JSON.stringify(firstSlotEvent, jsonReplacer, 2);
140597
+ if (await writeExclusive(eventPath, serializedEvent)) {
140598
+ notePublishedSlot(event.runId, eventId);
140599
+ rememberStoredEvent(firstSlotEvent, eventPath, serializedEvent);
140600
+ return true;
140601
+ }
140602
+ const occupant = await readJSONWithFallback(basedir, runEntityDir("events", event.runId), `${event.runId}-${eventId}`, ReadEventSchema, tag);
140603
+ if ((occupant == null ? void 0 : occupant.eventType) === "run_created" && occupant.runId === event.runId) {
140604
+ notePublishedSlot(event.runId, eventId);
140605
+ return false;
140606
+ }
140607
+ throw missingRunCreatedError(event.runId, `event slot ${FIRST_EVENT_SLOT} is occupied by ${occupant ? `"${occupant.eventType}"` : "an unreadable event"}`);
140608
+ }
140609
+ async function restoreMissingRunCreated(run2) {
140610
+ const firstPage = await queryRunEvents(run2.runId, {
140611
+ limit: 1,
140612
+ sortOrder: "asc"
140613
+ });
140614
+ const first = firstPage.data[0];
140615
+ if (first) {
140616
+ if (first.eventType === "run_created" && first.runId === run2.runId) {
140617
+ return;
140618
+ }
140619
+ throw missingRunCreatedError(run2.runId, `the event log is not empty (its first event is "${first.eventType}")`);
140620
+ }
140621
+ if (run2.input === void 0) {
140622
+ throw missingRunCreatedError(run2.runId, "the original input is missing");
140623
+ }
140624
+ const eventId = slotToEventId(FIRST_EVENT_SLOT);
140625
+ const event = {
140626
+ eventType: "run_created",
140627
+ runId: run2.runId,
140628
+ eventId,
140629
+ createdAt: run2.createdAt,
140630
+ specVersion: run2.specVersion,
140631
+ eventData: {
140632
+ deploymentId: run2.deploymentId,
140633
+ workflowName: run2.workflowName,
140634
+ input: run2.input,
140635
+ executionContext: run2.executionContext,
140636
+ attributes: run2.attributes,
140637
+ encryptionPublicKey: run2.encryptionPublicKey
140638
+ }
140639
+ };
140640
+ if (await publishRunCreatedAtFirstSlot(event)) {
140641
+ console.warn(`[world-local] restored missing run_created for ${run2.runId} (creation was interrupted or is still in flight)`);
140642
+ }
140643
+ }
140460
140644
  const stepLocks = /* @__PURE__ */ new Map();
140461
140645
  const hookLocks = /* @__PURE__ */ new Map();
140646
+ const hookLockKey = (runId, hookId) => tag ? `${runId}-${hookId}.hook.${tag}` : `${runId}-${hookId}.hook`;
140462
140647
  const storage = {
140463
140648
  clearCache,
140464
140649
  async create(runId, data2, params) {
@@ -140476,8 +140661,7 @@ function createEventsStorage(basedir, tag) {
140476
140661
  return withInProcessLock(stepLocks, lockKey, createImpl);
140477
140662
  }
140478
140663
  if (isHookLifecycleEventType(data2.eventType) && runId && data2.correlationId) {
140479
- const lockKey = tag ? `${runId}-${data2.correlationId}.hook.${tag}` : `${runId}-${data2.correlationId}.hook`;
140480
- return withInProcessLock(hookLocks, lockKey, createImpl);
140664
+ return withInProcessLock(hookLocks, hookLockKey(runId, data2.correlationId), createImpl);
140481
140665
  }
140482
140666
  return createImpl();
140483
140667
  async function createImpl() {
@@ -140502,6 +140686,7 @@ function createEventsStorage(basedir, tag) {
140502
140686
  }
140503
140687
  const effectiveSpecVersion = data2.specVersion ?? SPEC_VERSION_CURRENT;
140504
140688
  let currentRun = null;
140689
+ let createdByResilientStart = false;
140505
140690
  const skipRunValidationEvents = ["step_completed", "step_retrying"];
140506
140691
  if (data2.eventType !== "run_created" && !skipRunValidationEvents.includes(data2.eventType)) {
140507
140692
  currentRun = await readJSONWithFallback(basedir, "runs", effectiveRunId, WorkflowRunSchema, tag);
@@ -140554,14 +140739,27 @@ function createEventsStorage(basedir, tag) {
140554
140739
  encryptionPublicKey: runInputData.encryptionPublicKey
140555
140740
  }
140556
140741
  };
140557
- await storeEvent(runCreatedEvent);
140558
- currentRun = createdRun;
140742
+ const published = await publishRunCreatedAtFirstSlot(runCreatedEvent);
140743
+ currentRun = published ? createdRun : await readJSONWithFallback(basedir, "runs", effectiveRunId, WorkflowRunSchema, tag);
140744
+ createdByResilientStart = true;
140559
140745
  } else {
140560
140746
  currentRun = await readJSONWithFallback(basedir, "runs", effectiveRunId, WorkflowRunSchema, tag);
140561
140747
  }
140562
140748
  }
140563
140749
  }
140564
140750
  }
140751
+ if ((currentRun == null ? void 0 : currentRun.status) === "pending" && !createdByResilientStart && !requiresNewerWorld(currentRun.specVersion) && !isLegacySpecVersion(currentRun.specVersion) && (data2.eventType === "run_started" || data2.eventType === "attr_set" || data2.eventType === "run_cancelled" || data2.eventType === "run_failed")) {
140752
+ if (data2.eventType === "run_cancelled" || data2.eventType === "run_failed") {
140753
+ try {
140754
+ await restoreMissingRunCreated(currentRun);
140755
+ } catch (error2) {
140756
+ const reason = error2 instanceof Error ? error2.message : String(error2);
140757
+ console.warn(`[world-local] could not restore missing run_created for ${currentRun.runId}: ${reason}`);
140758
+ }
140759
+ } else {
140760
+ await restoreMissingRunCreated(currentRun);
140761
+ }
140762
+ }
140565
140763
  eventId = await mintEventId(effectiveRunId);
140566
140764
  if (!currentRun && (data2.eventType === "run_failed" || data2.eventType === "attr_set" || data2.eventType === "run_started")) {
140567
140765
  throw new WorkflowRunNotFoundError(effectiveRunId);
@@ -140589,7 +140787,7 @@ function createEventsStorage(basedir, tag) {
140589
140787
  return {
140590
140788
  event: stripEventDataRefs(stored, resolveData2),
140591
140789
  run: currentRun,
140592
- ...currentRun ? { maxEvents: getMaxEventsPerRun() } : {}
140790
+ ...currentRun ? { maxEvents: getMaxEventsForRun(currentRun) } : {}
140593
140791
  };
140594
140792
  }
140595
140793
  if (data2.eventType === "run_started") {
@@ -140783,7 +140981,7 @@ function createEventsStorage(basedir, tag) {
140783
140981
  if (params == null ? void 0 : params.skipPreload) {
140784
140982
  return {
140785
140983
  run: currentRun,
140786
- maxEvents: getMaxEventsPerRun()
140984
+ maxEvents: getMaxEventsForRun(currentRun)
140787
140985
  };
140788
140986
  }
140789
140987
  const preloaded = await queryRunEvents(effectiveRunId, {
@@ -140794,7 +140992,7 @@ function createEventsStorage(basedir, tag) {
140794
140992
  events: preloaded.data,
140795
140993
  cursor: preloaded.cursor,
140796
140994
  hasMore: preloaded.hasMore,
140797
- maxEvents: getMaxEventsPerRun()
140995
+ maxEvents: getMaxEventsForRun(currentRun)
140798
140996
  };
140799
140997
  }
140800
140998
  const written = await writeRunUnderLifecycleLock(basedir, effectiveRunId, tag, {
@@ -141114,7 +141312,7 @@ function createEventsStorage(basedir, tag) {
141114
141312
  tokenRetentionUntil: hookData.tokenRetentionUntil,
141115
141313
  ...claimedFrom && { claimedFrom }
141116
141314
  });
141117
- const claimResult = await withHookTokenClaimLock(basedir, hookData.token, async (signal) => {
141315
+ const claimToken = (lockedVictim) => withHookTokenClaimLock(basedir, hookData.token, async (signal) => {
141118
141316
  let existingClaim = await readHookTokenClaim(constraintPath);
141119
141317
  if (!existingClaim) {
141120
141318
  signal.throwIfAborted();
@@ -141134,6 +141332,9 @@ function createEventsStorage(basedir, tag) {
141134
141332
  if (hookData.force !== true || !existingClaim.hookId) {
141135
141333
  return { status: "conflict", claim: existingClaim };
141136
141334
  }
141335
+ if (existingClaim.runId !== (lockedVictim == null ? void 0 : lockedVictim.runId) || existingClaim.hookId !== (lockedVictim == null ? void 0 : lockedVictim.hookId)) {
141336
+ return { status: "victim-changed" };
141337
+ }
141137
141338
  signal.throwIfAborted();
141138
141339
  const victimRun = await readJSONWithFallback(basedir, "runs", existingClaim.runId, WorkflowRunSchema, tag);
141139
141340
  const victimRunning = victimRun !== null && !isTerminalWorkflowRunStatus(victimRun.status);
@@ -141229,6 +141430,17 @@ function createEventsStorage(basedir, tag) {
141229
141430
  }
141230
141431
  return { status: "claimed" };
141231
141432
  });
141433
+ let claimResult;
141434
+ for (let attempt = 0; ; attempt++) {
141435
+ if (attempt === MAX_FORCE_CLAIM_VICTIM_RETRIES) {
141436
+ throw new WorkflowWorldError(`Hook token holder kept changing during a forced claim of "${data2.correlationId}"`);
141437
+ }
141438
+ const holder = hookData.force === true ? await readHookTokenClaim(constraintPath) : null;
141439
+ const victim = (holder == null ? void 0 : holder.hookId) && !(holder.runId === effectiveRunId && holder.hookId === data2.correlationId) ? { runId: holder.runId, hookId: holder.hookId } : void 0;
141440
+ claimResult = victim ? await withInProcessLock(hookLocks, hookLockKey(victim.runId, victim.hookId), () => claimToken(victim)) : await claimToken();
141441
+ if (claimResult.status !== "victim-changed")
141442
+ break;
141443
+ }
141232
141444
  if (claimResult.status === "owned" && claimResult.claim.claimedFrom) {
141233
141445
  claimedFrom = claimResult.claim.claimedFrom;
141234
141446
  }
@@ -141459,6 +141671,14 @@ function createEventsStorage(basedir, tag) {
141459
141671
  notePublishedSlot(effectiveRunId, eventId);
141460
141672
  break;
141461
141673
  }
141674
+ if (data2.eventType === "run_created") {
141675
+ const slot = eventIdToSlot(eventId);
141676
+ const occupant = await readJSONWithFallback(basedir, runEntityDir("events", effectiveRunId), `${effectiveRunId}-${eventId}`, ReadEventSchema, tag);
141677
+ if (slot === FIRST_EVENT_SLOT && (occupant == null ? void 0 : occupant.eventType) === "run_created" && occupant.runId === effectiveRunId) {
141678
+ break;
141679
+ }
141680
+ throw new WorkflowWorldError(`Cannot publish run_created for workflow run "${effectiveRunId}": event slot ${slot ?? eventId} is occupied by ${occupant ? `"${occupant.eventType}"` : "an unreadable event"}`);
141681
+ }
141462
141682
  if (data2.eventType === "hook_received" && (params == null ? void 0 : params.resumeId)) {
141463
141683
  const occupant = await readJSONWithFallback(basedir, runEntityDir("events", effectiveRunId), `${effectiveRunId}-${eventId}`, ReadEventSchema, tag);
141464
141684
  if (occupant && isResumeEvent(occupant, {
@@ -141527,8 +141747,9 @@ function createEventsStorage(basedir, tag) {
141527
141747
  hook,
141528
141748
  wait,
141529
141749
  ...stepCreatedLazily ? { stepCreated: true } : {},
141530
- // Per-run event ceiling (mirrors the Vercel World).
141531
- ...run2 ? { maxEvents: getMaxEventsPerRun() } : {}
141750
+ // Per-run event ceiling (mirrors the Vercel World, including the
141751
+ // QuickJS-snapshot exemption).
141752
+ ...run2 ? { maxEvents: getMaxEventsForRun(run2) } : {}
141532
141753
  };
141533
141754
  if (!eventPage)
141534
141755
  return result;
@@ -141928,7 +142149,7 @@ function createWorld$2(args) {
141928
142149
  const basedir = mergedConfig.dataDir;
141929
142150
  const hooksDir = path$3.join(basedir, "hooks");
141930
142151
  const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
141931
- const { HookSchema: HookSchema2 } = await import("./index-TQ324kzl.js");
142152
+ const { HookSchema: HookSchema2 } = await import("./index-BE6TqyDE.js");
141932
142153
  await settleAll(taggedHookFiles.map(async (hookFile) => {
141933
142154
  const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
141934
142155
  if (hook == null ? void 0 : hook.token) {
@@ -142116,8 +142337,8 @@ function requireGetVercelOidcToken() {
142116
142337
  }
142117
142338
  try {
142118
142339
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
142119
- await import("./token-util-DCNDhnc8.js").then((n) => n.t),
142120
- await import("./token-C7Y4VFl0.js").then((n) => n.t)
142340
+ await import("./token-util-CfkQa5kX.js").then((n) => n.t),
142341
+ await import("./token-BhYk3Bk4.js").then((n) => n.t)
142121
142342
  ]);
142122
142343
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
142123
142344
  await refreshToken(options);
@@ -142680,7 +142901,7 @@ function requireDist() {
142680
142901
  return dist;
142681
142902
  }
142682
142903
  var distExports = requireDist();
142683
- const version = "5.2.2";
142904
+ const version = "5.2.3";
142684
142905
  const pools = globalSingleton("@workflow/world-vercel//httpPools", 1, () => ({
142685
142906
  dispatcher: void 0,
142686
142907
  queueDispatcher: void 0,
@@ -143042,7 +143263,7 @@ function getDefaultStreamCloseDispatcher() {
143042
143263
  return pools.streamCloseDispatcher;
143043
143264
  }
143044
143265
  async function getDeadline() {
143045
- const { getDeadline: getDeadline2 } = await import("./index-CI1MEtXX.js").then((n) => n.i);
143266
+ const { getDeadline: getDeadline2 } = await import("./index-DKlEIDGP.js").then((n) => n.i);
143046
143267
  return getDeadline2();
143047
143268
  }
143048
143269
  class ReplayEventObserverError extends Error {
@@ -152188,7 +152409,10 @@ async function createWorkflowRunEventInner(id2, data2, params, config2) {
152188
152409
  throw new WorkflowWorldError(validationError, { status: 400 });
152189
152410
  }
152190
152411
  }
152191
- const remoteRefBehavior = eventsNeedingResolve.has(data2.eventType) ? "resolve" : "lazy";
152412
+ const remoteRefBehavior = eventsNeedingResolve.has(data2.eventType) || // Concurrent hook reconciliation consumes the committed event directly.
152413
+ // Honor its explicit request for replay-ready metadata; other mutation
152414
+ // responses keep their existing lightweight entity-only behavior.
152415
+ data2.eventType === "hook_created" && (params == null ? void 0 : params.resolveData) === "all" ? "resolve" : "lazy";
152192
152416
  const { payload, meta } = splitEventDataForV4(data2);
152193
152417
  const input = {
152194
152418
  runId: id2,
@@ -152233,18 +152457,18 @@ async function createWorkflowRunEventInner(id2, data2, params, config2) {
152233
152457
  ...meta
152234
152458
  };
152235
152459
  if (data2.eventType === "run_started" && !(params == null ? void 0 : params.skipPreload)) {
152236
- const result = await createWorkflowRunStartedEventV4(input, config2, params == null ? void 0 : params.replayEventObserver);
152237
- const replayRun = reconstructRunFromReplayEvents(result.events);
152460
+ const result2 = await createWorkflowRunStartedEventV4(input, config2, params == null ? void 0 : params.replayEventObserver);
152461
+ const replayRun = reconstructRunFromReplayEvents(result2.events);
152238
152462
  if (!replayRun) {
152239
152463
  throw new WorkflowWorldError("v4 createEvent: run_started stream is missing lifecycle events", { code: "SCHEMA_VALIDATION" });
152240
152464
  }
152241
152465
  return {
152242
152466
  event: replayRun.event,
152243
152467
  run: replayRun.run,
152244
- events: result.events,
152245
- cursor: result.cursor,
152246
- hasMore: result.hasMore,
152247
- maxEvents: result.maxEvents
152468
+ events: result2.events,
152469
+ cursor: result2.cursor,
152470
+ hasMore: result2.hasMore,
152471
+ maxEvents: result2.maxEvents
152248
152472
  };
152249
152473
  }
152250
152474
  if (data2.eventType === "hook_received" && (params == null ? void 0 : params.preloadEvents) === true && params.resumeId !== void 0 && params.resumePayloadDigest !== void 0) {
@@ -152264,7 +152488,8 @@ async function createWorkflowRunEventInner(id2, data2, params, config2) {
152264
152488
  ...maxEvents !== void 0 ? { maxEvents } : {}
152265
152489
  };
152266
152490
  }
152267
- return createWorkflowRunEventV4(data2.eventType === "run_started" ? { ...input, eventType: "run_started", skipPreload: true } : { ...input, eventType: data2.eventType }, config2);
152491
+ const result = await createWorkflowRunEventV4(data2.eventType === "run_started" ? { ...input, eventType: "run_started", skipPreload: true } : { ...input, eventType: data2.eventType }, config2);
152492
+ return result.event ? { ...result, eventCursor: `eid:${result.event.eventId}` } : result;
152268
152493
  }
152269
152494
  function reconstructRunFromReplayEvents(events2) {
152270
152495
  const runCreated = events2.find((event) => event.eventType === "run_created");
@@ -152866,7 +153091,7 @@ function beginNormalWsClose(ws, reason) {
152866
153091
  await observed;
152867
153092
  span == null ? void 0 : span.setAttribute("workflow.stream.ws.close_cleanup_timeout", timedOut);
152868
153093
  });
152869
- void import("./index-CI1MEtXX.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
153094
+ void import("./index-DKlEIDGP.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
152870
153095
  });
152871
153096
  void cleanup.catch(() => {
152872
153097
  });
@@ -153251,7 +153476,7 @@ class VercelStreamWriteSession {
153251
153476
  return http3;
153252
153477
  });
153253
153478
  const [{ WebSocket: WebSocketImpl }, http2] = await Promise.all([
153254
- import("./wrapper-CA2LUUpa.js"),
153479
+ import("./wrapper-BO03ZtLx.js"),
153255
153480
  httpPromise
153256
153481
  ]);
153257
153482
  if (this.mode !== "connecting")
@@ -158157,6 +158382,7 @@ function createWorld$1(config2) {
158157
158382
  analytics: process.env.WORKFLOW_DISABLE_ANALYTICS_READS === "1" ? void 0 : createAnalytics(config2),
158158
158383
  ...instrumentObject("world.streams", createStreamer(config2)),
158159
158384
  createRunId,
158385
+ regionForRunId,
158160
158386
  describeRun,
158161
158387
  // Reports the environment this client's writes land in, so `start()` can
158162
158388
  // stamp it into the queue message and the consuming deployment can detect
@@ -159053,7 +159279,9 @@ async function resolveHookResumeInfo(hook) {
159053
159279
  if (hook.resumeContext) {
159054
159280
  return { resumeContext: hook.resumeContext, source: "hook" };
159055
159281
  }
159056
- const run2 = await (await getWorldLazy()).runs.get(hook.runId);
159282
+ const run2 = await (await getWorldLazy()).runs.get(hook.runId, {
159283
+ resolveData: "none"
159284
+ });
159057
159285
  return {
159058
159286
  resumeContext: resumeContextFromRun(run2),
159059
159287
  source: "run_fallback",
@@ -159061,9 +159289,9 @@ async function resolveHookResumeInfo(hook) {
159061
159289
  };
159062
159290
  }
159063
159291
  async function resolveHookEncryptionKey(hook, info) {
159064
- var _a3, _b2;
159292
+ var _a3;
159065
159293
  const world = await getWorldLazy();
159066
- const rawKey = info.run ? await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, info.run)) : await ((_b2 = world.getEncryptionKeyForRun) == null ? void 0 : _b2.call(world, hook.runId, {
159294
+ const rawKey = await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, hook.runId, {
159067
159295
  deploymentId: info.resumeContext.deploymentId
159068
159296
  }));
159069
159297
  return rawKey ? await importKey(rawKey) : void 0;
@@ -159077,10 +159305,10 @@ function withLazyMetadata(raw2) {
159077
159305
  let hydrated;
159078
159306
  let encryptionKey;
159079
159307
  const hydrate2 = async () => {
159080
- var _a3, _b2;
159308
+ var _a3;
159081
159309
  const world = await getWorldLazy();
159082
159310
  const info = await resolveHookResumeInfo(raw2);
159083
- const rawKey = info.run ? await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, info.run)) : await ((_b2 = world.getEncryptionKeyForRun) == null ? void 0 : _b2.call(world, raw2.runId, {
159311
+ const rawKey = await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, raw2.runId, {
159084
159312
  deploymentId: info.resumeContext.deploymentId
159085
159313
  }));
159086
159314
  encryptionKey = rawKey ? await deriveRunPayloadKeys(rawKey) : void 0;
@@ -160254,8 +160482,10 @@ async function getEncryptionKeyForRun(worldEnv, runId) {
160254
160482
  if (!world.getEncryptionKeyForRun) {
160255
160483
  return createResponse(null);
160256
160484
  }
160257
- const run2 = await world.runs.get(runId);
160258
- const key = await world.getEncryptionKeyForRun(run2);
160485
+ const { deploymentId } = await world.runs.get(runId, {
160486
+ resolveData: "none"
160487
+ });
160488
+ const key = await world.getEncryptionKeyForRun(runId, { deploymentId });
160259
160489
  return createResponse(key ?? null);
160260
160490
  } catch (error2) {
160261
160491
  return createServerActionError(
@@ -160493,7 +160723,8 @@ const alertVariants = cva(
160493
160723
  variants: {
160494
160724
  variant: {
160495
160725
  default: "bg-background text-foreground",
160496
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
160726
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
160727
+ warning: "border-[var(--ds-amber-400)] bg-[var(--ds-amber-100)] text-[var(--ds-amber-900)] [&>svg]:text-[var(--ds-amber-900)]"
160497
160728
  }
160498
160729
  },
160499
160730
  defaultVariants: {
@@ -180434,6 +180665,37 @@ const route1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
180434
180665
  __proto__: null,
180435
180666
  default: home
180436
180667
  }, Symbol.toStringTag, { value: "Module" }));
180668
+ function RunLimitGuidanceAlert({
180669
+ run: run2
180670
+ }) {
180671
+ const guidance = getRunLimitGuidance(run2);
180672
+ if (!guidance) return null;
180673
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Alert, { variant: "warning", "data-testid": "run-limit-guidance", children: [
180674
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TriangleAlert, { className: "h-4 w-4" }),
180675
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AlertTitle, { children: guidance.title }),
180676
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(AlertDescription, { children: [
180677
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: guidance.description }),
180678
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "mt-2", children: [
180679
+ "Set",
180680
+ " ",
180681
+ /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "rounded bg-[var(--ds-amber-200)] px-1 py-0.5 font-mono text-xs", children: guidance.envVar }),
180682
+ " ",
180683
+ "and start the workflow again.",
180684
+ " ",
180685
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
180686
+ "a",
180687
+ {
180688
+ href: guidance.docsUrl,
180689
+ target: "_blank",
180690
+ rel: "noopener noreferrer",
180691
+ className: "font-medium underline underline-offset-4",
180692
+ children: "Learn more"
180693
+ }
180694
+ )
180695
+ ] })
180696
+ ] })
180697
+ ] });
180698
+ }
180437
180699
  var NODES = [
180438
180700
  "a",
180439
180701
  "button",
@@ -182374,7 +182636,8 @@ function RunDetailView({
182374
182636
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs", children: /* @__PURE__ */ jsxRuntimeExports.jsx(RelativeTime, { date: run2.expiredAt }) })
182375
182637
  ] })
182376
182638
  ] })
182377
- ] })
182639
+ ] }),
182640
+ /* @__PURE__ */ jsxRuntimeExports.jsx(RunLimitGuidanceAlert, { run: runData })
182378
182641
  ] }),
182379
182642
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-4 flex-1 flex flex-col min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
182380
182643
  Tabs,
@@ -182661,7 +182924,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
182661
182924
  __proto__: null,
182662
182925
  loader
182663
182926
  }, Symbol.toStringTag, { value: "Module" }));
182664
- const serverManifest = { "entry": { "module": "/assets/entry.client-GbcnkvKL.js", "imports": ["/assets/index-CRmVVsbP.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-D1LRhSwl.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/mermaid-3ZIDBTTL-C-jkx8xu.js", "/assets/loader-circle-BHf0PB8D.js", "/assets/arrow-up-right-BjmInfWj.js"], "css": ["/assets/root-D51qsCcK.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-Cj8BA1xg.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/workflow-graph-viewer-BRI-aUt7.js", "/assets/mermaid-3ZIDBTTL-C-jkx8xu.js", "/assets/loader-circle-BHf0PB8D.js"], "css": ["/assets/workflow-graph-viewer-DnlNuQQH.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-L1jBcQcp.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/workflow-graph-viewer-BRI-aUt7.js", "/assets/mermaid-3ZIDBTTL-C-jkx8xu.js", "/assets/arrow-up-right-BjmInfWj.js"], "css": ["/assets/run-detail-CWoGxu_0.css", "/assets/workflow-graph-viewer-DnlNuQQH.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-9875bf74.js", "version": "9875bf74", "sri": void 0 };
182927
+ const serverManifest = { "entry": { "module": "/assets/entry.client-GbcnkvKL.js", "imports": ["/assets/index-CRmVVsbP.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-BdoS4wTM.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/mermaid-3ZIDBTTL-CQkIfF6F.js", "/assets/loader-circle-BuHkkqyY.js", "/assets/arrow-up-right-DDLzuSl1.js"], "css": ["/assets/root-DlBeVW_-.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-DjMKxUF0.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/workflow-graph-viewer-DaFQpLw8.js", "/assets/mermaid-3ZIDBTTL-CQkIfF6F.js", "/assets/loader-circle-BuHkkqyY.js"], "css": ["/assets/workflow-graph-viewer-DnlNuQQH.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-CY1rcVcm.js", "imports": ["/assets/index-CRmVVsbP.js", "/assets/workflow-graph-viewer-DaFQpLw8.js", "/assets/mermaid-3ZIDBTTL-CQkIfF6F.js", "/assets/arrow-up-right-DDLzuSl1.js"], "css": ["/assets/run-detail-CWoGxu_0.css", "/assets/workflow-graph-viewer-DnlNuQQH.css", "/assets/mermaid-3ZIDBTTL-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-4ef14c64.js", "version": "4ef14c64", "sri": void 0 };
182665
182928
  const assetsBuildDirectory = "build/client";
182666
182929
  const basename = "/";
182667
182930
  const future = { "unstable_optimizeDeps": false, "v8_passThroughRequests": false, "v8_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
@@ -182803,7 +183066,7 @@ export {
182803
183066
  RESERVED_ATTRIBUTE_KEY_PREFIX as Z,
182804
183067
  RETENTION_ATTRIBUTE as _,
182805
183068
  ANALYTICS_MAX_ATTRIBUTE_FILTERS as a,
182806
- isTerminalStepStatus as a$,
183069
+ isTerminalRunEventType as a$,
182807
183070
  RETENTION_ZERO as a0,
182808
183071
  ROOT_RUN_ID_ATTRIBUTE as a1,
182809
183072
  RUN_ENTITY_KEY as a2,
@@ -182826,21 +183089,21 @@ export {
182826
183089
  eventIdToSlot as aJ,
182827
183090
  getEventDataPayloadField as aK,
182828
183091
  getEventDataRefFields as aL,
182829
- getMaxEventsPerRun as aM,
182830
- getQueueTopicPrefix as aN,
182831
- getRunQueueNamespace as aO,
182832
- isChildEntityCreationEvent as aP,
182833
- isChildEntityCreationEventType as aQ,
182834
- isHookEventRequiringExistence as aR,
182835
- isHookLifecycleEventType as aS,
182836
- isLegacySpecVersion as aT,
182837
- isNodeHttpEnabled as aU,
182838
- isSealedNoopEvent$1 as aV,
182839
- isSlotBody as aW,
182840
- isSlotEventId as aX,
182841
- isStepEventType as aY,
182842
- isTerminalRunEventType as aZ,
182843
- isTerminalStepEventType as a_,
183092
+ getMaxEventsForRun as aM,
183093
+ getMaxEventsPerRun as aN,
183094
+ getQueueTopicPrefix as aO,
183095
+ getRunQueueNamespace as aP,
183096
+ isChildEntityCreationEvent as aQ,
183097
+ isChildEntityCreationEventType as aR,
183098
+ isEventLimitExemptRun as aS,
183099
+ isHookEventRequiringExistence as aT,
183100
+ isHookLifecycleEventType as aU,
183101
+ isLegacySpecVersion as aV,
183102
+ isNodeHttpEnabled as aW,
183103
+ isSealedNoopEvent$1 as aX,
183104
+ isSlotBody as aY,
183105
+ isSlotEventId as aZ,
183106
+ isStepEventType as a_,
182844
183107
  SPEC_VERSION_SUPPORTS_COMPRESSION as aa,
182845
183108
  SPEC_VERSION_SUPPORTS_EVENT_SOURCING as ab,
182846
183109
  SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM as ac,
@@ -182868,40 +183131,42 @@ export {
182868
183131
  WorkflowRunBaseSchema as ay,
182869
183132
  WorkflowRunSchema as az,
182870
183133
  ANALYTICS_PAGE_LIMIT as b,
182871
- isTerminalWorkflowRunStatus as b0,
182872
- isWaitEventType as b1,
182873
- mintedSpecVersion as b2,
182874
- parseQueueName as b3,
182875
- parseQueueRoute as b4,
182876
- readRunRetention as b5,
182877
- reenqueueActiveRuns as b6,
182878
- requiresNewerWorld as b7,
182879
- resolveQueueNamespace as b8,
182880
- slotToEventId as b9,
182881
- stripEventDataRefs as ba,
182882
- ulidToDate as bb,
182883
- validateAttributeChanges as bc,
182884
- validateAttributeEventDataSize as bd,
182885
- validateUlidTimestamp as be,
182886
- workflowRunIdSchema as bf,
182887
- reactExports as bg,
182888
- R as bh,
182889
- Ks as bi,
182890
- jsxRuntimeExports as bj,
182891
- Qe as bk,
182892
- registerZstdDecoder as bl,
182893
- WebSocket as bm,
182894
- permessageDeflate as bn,
182895
- receiver as bo,
182896
- sender as bp,
182897
- websocketServer as bq,
182898
- stream as br,
182899
- extension as bs,
182900
- subprotocol as bt,
182901
- getDefaultExportFromCjs as bu,
182902
- requireTokenUtil as bv,
182903
- requireTokenError as bw,
182904
- createFetchHandler as bx,
183134
+ isTerminalStepEventType as b0,
183135
+ isTerminalStepStatus as b1,
183136
+ isTerminalWorkflowRunStatus as b2,
183137
+ isWaitEventType as b3,
183138
+ mintedSpecVersion as b4,
183139
+ parseQueueName as b5,
183140
+ parseQueueRoute as b6,
183141
+ readRunRetention as b7,
183142
+ reenqueueActiveRuns as b8,
183143
+ requiresNewerWorld as b9,
183144
+ resolveQueueNamespace as ba,
183145
+ slotToEventId as bb,
183146
+ stripEventDataRefs as bc,
183147
+ ulidToDate as bd,
183148
+ validateAttributeChanges as be,
183149
+ validateAttributeEventDataSize as bf,
183150
+ validateUlidTimestamp as bg,
183151
+ workflowRunIdSchema as bh,
183152
+ reactExports as bi,
183153
+ R as bj,
183154
+ Ks as bk,
183155
+ jsxRuntimeExports as bl,
183156
+ Qe as bm,
183157
+ registerZstdDecoder as bn,
183158
+ WebSocket as bo,
183159
+ permessageDeflate as bp,
183160
+ receiver as bq,
183161
+ sender as br,
183162
+ websocketServer as bs,
183163
+ stream as bt,
183164
+ extension as bu,
183165
+ subprotocol as bv,
183166
+ getDefaultExportFromCjs as bw,
183167
+ requireTokenUtil as bx,
183168
+ requireTokenError as by,
183169
+ createFetchHandler as bz,
182905
183170
  ANALYTICS_RUN_SCOPED_PAGE_LIMIT as c,
182906
183171
  ATTRIBUTE_EVENT_DATA_MAX_BYTES as d,
182907
183172
  ATTRIBUTE_KEY_MAX_LENGTH as e,