@exaudeus/workrail 3.3.0 → 3.5.0

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 (78) hide show
  1. package/dist/application/services/compiler/binding-registry.d.ts +3 -0
  2. package/dist/application/services/compiler/binding-registry.js +71 -0
  3. package/dist/application/services/compiler/resolve-bindings.d.ts +18 -0
  4. package/dist/application/services/compiler/resolve-bindings.js +162 -0
  5. package/dist/application/services/compiler/sentinel-scan.d.ts +9 -0
  6. package/dist/application/services/compiler/sentinel-scan.js +37 -0
  7. package/dist/application/services/validation-engine.js +104 -0
  8. package/dist/application/services/workflow-compiler.d.ts +10 -2
  9. package/dist/application/services/workflow-compiler.js +25 -6
  10. package/dist/application/services/workflow-validation-pipeline.js +8 -1
  11. package/dist/cli.js +2 -2
  12. package/dist/engine/engine-factory.js +1 -1
  13. package/dist/index.d.ts +2 -1
  14. package/dist/index.js +4 -2
  15. package/dist/manifest.json +149 -101
  16. package/dist/mcp/handler-factory.d.ts +1 -1
  17. package/dist/mcp/handler-factory.js +2 -2
  18. package/dist/mcp/handlers/v2-checkpoint.js +5 -5
  19. package/dist/mcp/handlers/v2-error-mapping.js +4 -4
  20. package/dist/mcp/handlers/v2-execution/continue-advance.js +2 -2
  21. package/dist/mcp/handlers/v2-execution/continue-rehydrate.d.ts +1 -0
  22. package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +76 -60
  23. package/dist/mcp/handlers/v2-execution/index.js +86 -44
  24. package/dist/mcp/handlers/v2-execution-helpers.js +1 -1
  25. package/dist/mcp/handlers/v2-resume.js +10 -5
  26. package/dist/mcp/handlers/v2-token-ops.d.ts +1 -1
  27. package/dist/mcp/handlers/v2-token-ops.js +5 -5
  28. package/dist/mcp/handlers/v2-workspace-resolution.d.ts +1 -0
  29. package/dist/mcp/handlers/v2-workspace-resolution.js +12 -0
  30. package/dist/mcp/index.d.ts +4 -1
  31. package/dist/mcp/index.js +6 -2
  32. package/dist/mcp/output-schemas.d.ts +148 -8
  33. package/dist/mcp/output-schemas.js +22 -4
  34. package/dist/mcp/server.d.ts +6 -4
  35. package/dist/mcp/server.js +2 -57
  36. package/dist/mcp/tool-descriptions.js +9 -158
  37. package/dist/mcp/transports/http-entry.js +6 -25
  38. package/dist/mcp/transports/shutdown-hooks.d.ts +5 -0
  39. package/dist/mcp/transports/shutdown-hooks.js +38 -0
  40. package/dist/mcp/transports/stdio-entry.js +6 -28
  41. package/dist/mcp/v2/tool-registry.js +2 -1
  42. package/dist/mcp/v2/tools.d.ts +28 -11
  43. package/dist/mcp/v2/tools.js +28 -4
  44. package/dist/mcp/v2-response-formatter.js +28 -1
  45. package/dist/mcp/validation/suggestion-generator.d.ts +1 -1
  46. package/dist/mcp/validation/suggestion-generator.js +13 -3
  47. package/dist/mcp/workflow-protocol-contracts.d.ts +31 -0
  48. package/dist/mcp/workflow-protocol-contracts.js +207 -0
  49. package/dist/mcp-server.d.ts +3 -1
  50. package/dist/mcp-server.js +6 -2
  51. package/dist/types/workflow-definition.d.ts +7 -0
  52. package/dist/types/workflow-definition.js +1 -0
  53. package/dist/v2/durable-core/domain/binding-drift.d.ts +8 -0
  54. package/dist/v2/durable-core/domain/binding-drift.js +29 -0
  55. package/dist/v2/durable-core/domain/reason-model.js +2 -2
  56. package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +12 -0
  57. package/dist/v2/durable-core/schemas/compiled-workflow/index.js +2 -0
  58. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +56 -56
  59. package/dist/v2/durable-core/schemas/session/events.d.ts +16 -16
  60. package/dist/v2/durable-core/schemas/session/gaps.d.ts +6 -6
  61. package/dist/v2/projections/resume-ranking.d.ts +1 -0
  62. package/dist/v2/projections/resume-ranking.js +1 -0
  63. package/dist/v2/read-only/v1-to-v2-shim.js +27 -10
  64. package/dist/v2/usecases/resume-session.d.ts +5 -1
  65. package/dist/v2/usecases/resume-session.js +4 -1
  66. package/package.json +1 -1
  67. package/spec/authoring-spec.json +1373 -0
  68. package/spec/workflow.schema.json +132 -2
  69. package/workflows/coding-task-workflow-agentic.json +15 -15
  70. package/workflows/coding-task-workflow-agentic.lean.v2.json +10 -10
  71. package/workflows/coding-task-workflow-agentic.v2.json +12 -12
  72. package/workflows/coding-task-workflow-with-loops.json +2 -2
  73. package/workflows/cross-platform-code-conversion.v2.json +199 -0
  74. package/workflows/document-creation-workflow.json +1 -1
  75. package/workflows/exploration-workflow.json +3 -3
  76. package/workflows/mr-review-workflow.agentic.v2.json +11 -11
  77. package/workflows/routines/parallel-work-partitioning.json +43 -0
  78. package/workflows/workflow-for-workflows.v2.json +186 -0
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "distDir": "dist",
3
3
  "files": {
4
+ "application/services/compiler/binding-registry.d.ts": {
5
+ "sha256": "2d15d2e6f60c71219b286ad06445c22ff8cae082214c0cf1e2be9493d61bd254",
6
+ "bytes": 258
7
+ },
8
+ "application/services/compiler/binding-registry.js": {
9
+ "sha256": "5f33549184e45c664fe364df48c4203e25d6e6ab975f63f834420db2739c61d3",
10
+ "bytes": 2615
11
+ },
4
12
  "application/services/compiler/feature-registry.d.ts": {
5
13
  "sha256": "0df999218ba4dac5cf3fad34f3291e2b217b662badef01ee20f1258c4d03d13f",
6
14
  "bytes": 740
@@ -25,6 +33,14 @@
25
33
  "sha256": "a01cceb5a2084cb6effdd408f2ed35bd1dda45f70eb1498f6456ad57d344f36d",
26
34
  "bytes": 5305
27
35
  },
36
+ "application/services/compiler/resolve-bindings.d.ts": {
37
+ "sha256": "ef190f200228aedf5d27b3fd38c890c5a0613d3346bf0942ec0a7b51cc167d2e",
38
+ "bytes": 1031
39
+ },
40
+ "application/services/compiler/resolve-bindings.js": {
41
+ "sha256": "71e3cbf9eebdf94901ddf780e4db2b0387e6dabe63804dad2389aad3b78dca66",
42
+ "bytes": 7569
43
+ },
28
44
  "application/services/compiler/resolve-features.d.ts": {
29
45
  "sha256": "bb5d0719f1156fe5fc92464bc828407b7be1b1149e79e70e71669cf54dce4ddc",
30
46
  "bytes": 733
@@ -57,6 +73,14 @@
57
73
  "sha256": "fa5db5a759d88e63ef65bc877311d41003813d742fbdda7d06bc8abf56007988",
58
74
  "bytes": 1849
59
75
  },
76
+ "application/services/compiler/sentinel-scan.d.ts": {
77
+ "sha256": "a4ed463cd4fc1acdd371abeaab62e3709c96b90e349b7b87ead81b4a21cc02a1",
78
+ "bytes": 442
79
+ },
80
+ "application/services/compiler/sentinel-scan.js": {
81
+ "sha256": "d88feddae58cdf4b44eaa6c6035617ef10cdf598e91fc31d52d19477d8774b77",
82
+ "bytes": 1750
83
+ },
60
84
  "application/services/compiler/template-registry.d.ts": {
61
85
  "sha256": "5c8aef7bd75fce04d56985932eb2ad37e23c8bc87a77c75ee2addf018d3e619d",
62
86
  "bytes": 1168
@@ -102,16 +126,16 @@
102
126
  "bytes": 2122
103
127
  },
104
128
  "application/services/validation-engine.js": {
105
- "sha256": "0c6f8133ff55f5fc9a4342717ddb07d4b1ea2699a917216476fa2c0592d23aa0",
106
- "bytes": 32055
129
+ "sha256": "efbe402b22980383558863abf61bec728604ad81d07d9d48d0a6f52e69fafa3b",
130
+ "bytes": 37800
107
131
  },
108
132
  "application/services/workflow-compiler.d.ts": {
109
- "sha256": "41d0643ae2f07e5ce77a6e02344b5ca5b3c26bde828fbb307528a2ae097ac9d5",
110
- "bytes": 1211
133
+ "sha256": "f51443e1c3e8e079a972dd032e8de3bcde7b82d891e9a3621a6357cc4fc0e30d",
134
+ "bytes": 1718
111
135
  },
112
136
  "application/services/workflow-compiler.js": {
113
- "sha256": "1adfbce7e79f827b1be530128dd9f4fc65bf427c851d7669fd11f20d4639631f",
114
- "bytes": 9578
137
+ "sha256": "af1354e5a3598d8596b5f8be02b30888e6366842e82f26e57f9129a6095b6c8c",
138
+ "bytes": 10767
115
139
  },
116
140
  "application/services/workflow-interpreter.d.ts": {
117
141
  "sha256": "56b5b5ad06d42096deba9f0abe7642c18a355a1e598749aab1730df4e9847674",
@@ -134,8 +158,8 @@
134
158
  "bytes": 3710
135
159
  },
136
160
  "application/services/workflow-validation-pipeline.js": {
137
- "sha256": "dbf62cb6fa3ebe8b5d494999eb22f7739902a9f11c9c5daa9bc373dc6ed544b7",
138
- "bytes": 3994
161
+ "sha256": "30eb3cb573fdfc50325b250a45e46e16e66ec7e3a1a0a690dfa02995b20d7dbc",
162
+ "bytes": 4420
139
163
  },
140
164
  "application/use-cases/get-next-step.d.ts": {
141
165
  "sha256": "7c0badbe104e5e5eae438ec05f6585b7b5b694a1028319cd9180a90039553984",
@@ -214,8 +238,8 @@
214
238
  "bytes": 31
215
239
  },
216
240
  "cli.js": {
217
- "sha256": "97cb96dfe7dfbcc74cd513e5fb506359f22a90434d4e3696b364f354e9d2183a",
218
- "bytes": 7361
241
+ "sha256": "5124a783dd17e5269b7ca6fb2eab0096c1e46ff8c15f5b25a4c4be2a0f6ebb91",
242
+ "bytes": 7392
219
243
  },
220
244
  "cli/commands/cleanup.d.ts": {
221
245
  "sha256": "efe1f9e2ecd58e92007ed38b9581a3852c2babe4b3f2a97237dccd878eebe7ec",
@@ -414,8 +438,8 @@
414
438
  "bytes": 213
415
439
  },
416
440
  "engine/engine-factory.js": {
417
- "sha256": "886dde45d9971372c9772412e9e1b280c80a006a0f898c4a8f75d2316364c3c7",
418
- "bytes": 13488
441
+ "sha256": "a189ecc0d6c06da36f472c62647f59de05b244e00073d67e7f0965b3537b6ff8",
442
+ "bytes": 13489
419
443
  },
420
444
  "engine/index.d.ts": {
421
445
  "sha256": "91e12882c565e96a9809fdf43a0dc0a77fdffdfd562aaf43d2e86e6590ed0b16",
@@ -466,12 +490,12 @@
466
490
  "bytes": 462
467
491
  },
468
492
  "index.d.ts": {
469
- "sha256": "25f794364b61c8d24fcfa4e6e5e95b0229cfd036e2e4440b64998e7173bd8134",
470
- "bytes": 413
493
+ "sha256": "87856ec10d47e5afa1908e917d1d9cc5308c242bc9132341ae879f62f7258a35",
494
+ "bytes": 483
471
495
  },
472
496
  "index.js": {
473
- "sha256": "f87aab0a8af7aeb099e781bcbb95b3df4924e89d7ae0d0f8cab956631fd84529",
474
- "bytes": 1123
497
+ "sha256": "1eca695e42de62caceca46ca6721af36b3756bc3bf8ae211c7d96ab14f396d3d",
498
+ "bytes": 1361
475
499
  },
476
500
  "infrastructure/index.d.ts": {
477
501
  "sha256": "af0c8fc5a595bc00e3bcc400a9ce8b5a0cb3f4d1a8acf880bcd4d5a3099a594e",
@@ -626,12 +650,12 @@
626
650
  "bytes": 6034
627
651
  },
628
652
  "mcp-server.d.ts": {
629
- "sha256": "d673b4cf9770aa74de28e921e964459c094bdb89a8970623afda340fe1707293",
630
- "bytes": 67
653
+ "sha256": "7ead2e703f41c763d04b37a1cf433380bec3551fbde206af6694fe9286ad4714",
654
+ "bytes": 203
631
655
  },
632
656
  "mcp-server.js": {
633
- "sha256": "bf97a81d9bc5bb40d10ec8a06c73b322320e0a0afdaa88f19730efe781ace7cf",
634
- "bytes": 1135
657
+ "sha256": "a825b696428c32b87fdef23722574acb965d8319928b121a287800991a715172",
658
+ "bytes": 1599
635
659
  },
636
660
  "mcp/error-mapper.d.ts": {
637
661
  "sha256": "c6e9db65c565063726442b73a4a0cf1a1c07d54c778a85cf0122c4c04ea6a5a9",
@@ -642,12 +666,12 @@
642
666
  "bytes": 3982
643
667
  },
644
668
  "mcp/handler-factory.d.ts": {
645
- "sha256": "27ee92b476ca59ed6daca56b228b27bc4c84a061106fa61f2554bba98703ba28",
646
- "bytes": 838
669
+ "sha256": "eaa97ae192a7c4a7e69f75bb7cf2a756af4b49e0efb329d679665c2106f0e054",
670
+ "bytes": 883
647
671
  },
648
672
  "mcp/handler-factory.js": {
649
- "sha256": "b9d0b1843530f042c2ef7d33ac614042ee4e775a084ea8de7a4572cacb0519db",
650
- "bytes": 4349
673
+ "sha256": "fc4c13d109dcfbe4ea3b5a9d4118edf7f736c8e8c1a50d6087289c76c3286dfb",
674
+ "bytes": 4369
651
675
  },
652
676
  "mcp/handlers/session.d.ts": {
653
677
  "sha256": "38926e69a0e4935d1dbcdc53848be9fff0e4d8f96827883da3216f217918fa82",
@@ -734,8 +758,8 @@
734
758
  "bytes": 1475
735
759
  },
736
760
  "mcp/handlers/v2-checkpoint.js": {
737
- "sha256": "70542251d386ba3b59aed224f41abea319b54bd975056f2dbf8b0f333358ea75",
738
- "bytes": 10893
761
+ "sha256": "1be8e2e5c8a37bbbe974d53c23f503ba063fd77124eb8cb47cc0f8b40861fd99",
762
+ "bytes": 10900
739
763
  },
740
764
  "mcp/handlers/v2-context-budget.d.ts": {
741
765
  "sha256": "cbad1741a183d52c9cbe558be2e09f776843d1f3ec8cd28d6d0d230668e4298c",
@@ -750,16 +774,16 @@
750
774
  "bytes": 1798
751
775
  },
752
776
  "mcp/handlers/v2-error-mapping.js": {
753
- "sha256": "f63c6711fdd05cf89d7da5f1441a17efa540b2f4985f85759c7f740a6cf2e854",
754
- "bytes": 10664
777
+ "sha256": "7963acbc9d600741d8881c2659ec2dd914a631cf1587efb64498923da83abefe",
778
+ "bytes": 10680
755
779
  },
756
780
  "mcp/handlers/v2-execution-helpers.d.ts": {
757
781
  "sha256": "06c8820bb6667d30374733c10e537680ff63acfffa3fc29d7b454f08c6d6918c",
758
782
  "bytes": 5383
759
783
  },
760
784
  "mcp/handlers/v2-execution-helpers.js": {
761
- "sha256": "86f424c775984c6e4185af3faa6ef6a1d73cbaa6950a9a7a225991b26651710f",
762
- "bytes": 19042
785
+ "sha256": "569d7cfe3e3476aea113aa922c9299311e33a2f22952accbc589b98eabd94cf9",
786
+ "bytes": 19071
763
787
  },
764
788
  "mcp/handlers/v2-execution.d.ts": {
765
789
  "sha256": "f76cd1bb6a6e25c5a37a1f5b01b1046f4afd41162b620f3be3861509e1fcd1d3",
@@ -782,24 +806,24 @@
782
806
  "bytes": 2026
783
807
  },
784
808
  "mcp/handlers/v2-execution/continue-advance.js": {
785
- "sha256": "1591d4c6f31022d1ecafec841239baaa78642052fbca7a28d6b9827b654085a4",
786
- "bytes": 8263
809
+ "sha256": "04d5b7f1a5253082929c40043d15e34f2ea42ab136eb3ff8648372129e3cc1c5",
810
+ "bytes": 8269
787
811
  },
788
812
  "mcp/handlers/v2-execution/continue-rehydrate.d.ts": {
789
- "sha256": "5e5fe5bdc3b8427c6661756d666494298aeb63ba0d69dee64a0294cbdd5fab6a",
790
- "bytes": 1508
813
+ "sha256": "38c3381de5ae15769d356d21196948a8e1e371e2d062aaacd5c89c10b52a142a",
814
+ "bytes": 1559
791
815
  },
792
816
  "mcp/handlers/v2-execution/continue-rehydrate.js": {
793
- "sha256": "4758cacc11ecf346aadea6070cd38c44380941029fe654890148e3b01c4bb94f",
794
- "bytes": 8190
817
+ "sha256": "e6525294ee20b4a4ec53cadf8fe6c567a64a082987143bb4695bcdc6615e160a",
818
+ "bytes": 9574
795
819
  },
796
820
  "mcp/handlers/v2-execution/index.d.ts": {
797
821
  "sha256": "e60e1e0c65e51d101fb06248e882494e6df52762e1d68f5de7081c1cf1ec8bc5",
798
822
  "bytes": 1226
799
823
  },
800
824
  "mcp/handlers/v2-execution/index.js": {
801
- "sha256": "3f35cb1abc2f6b65bef43fc3f59f48e8b558a369cb714c698b9b5b3ad4c1bdae",
802
- "bytes": 4182
825
+ "sha256": "b5f67907b27594cb18482e494caaffa89c62bbc7304e5ce6582cb90329286ac6",
826
+ "bytes": 6731
803
827
  },
804
828
  "mcp/handlers/v2-execution/replay.d.ts": {
805
829
  "sha256": "bbf97633d7e47af3574a9690a1976bb474ca49cecc08af1d5c07e90f9868036d",
@@ -822,8 +846,8 @@
822
846
  "bytes": 471
823
847
  },
824
848
  "mcp/handlers/v2-resume.js": {
825
- "sha256": "851690a586328cb61a1aa0f9c2b8cac87b1a158430bab6e9601f63244a4dd69d",
826
- "bytes": 3385
849
+ "sha256": "726f92eb12aa0b28fafc4ceef354500dac7c4f18b85c4fe02a7997f869fe533f",
850
+ "bytes": 3612
827
851
  },
828
852
  "mcp/handlers/v2-state-conversion.d.ts": {
829
853
  "sha256": "94bd06904ef58dd210ff17ffb75c2492beea8937eb06d99749e5d860c0e0d96b",
@@ -834,12 +858,12 @@
834
858
  "bytes": 4333
835
859
  },
836
860
  "mcp/handlers/v2-token-ops.d.ts": {
837
- "sha256": "bfbc6ab9ed413838cab8ee76fcf24cb7200bb1d257c08205b0eb5a8e48657b27",
838
- "bytes": 3797
861
+ "sha256": "2c61a341194af60a17c7e58aad8bce8fccd56f15984f7ce92db471c651a603c0",
862
+ "bytes": 3798
839
863
  },
840
864
  "mcp/handlers/v2-token-ops.js": {
841
- "sha256": "eaf40746f0696a0eb79f83e1f198401f9e23ee8fd4cd026d3a90d1010fe2b9ba",
842
- "bytes": 22297
865
+ "sha256": "e021b5c1d26c93f27f2f6d32e3dd295d4459f45eb6aee5678ae470c10c88d911",
866
+ "bytes": 22303
843
867
  },
844
868
  "mcp/handlers/v2-workflow.d.ts": {
845
869
  "sha256": "5c9590f121dd3708c516be3febe41d0be47531d643462b86b99b778ef0b54498",
@@ -850,12 +874,12 @@
850
874
  "bytes": 7034
851
875
  },
852
876
  "mcp/handlers/v2-workspace-resolution.d.ts": {
853
- "sha256": "45cdf30b7989d16201b4569c6c109e9ccea04c76fd044af1471fe57faa49da3a",
854
- "bytes": 483
877
+ "sha256": "dd4de57b4918ebe749cf8c1df70c02bf1effc50932634bae60db53c9a157e872",
878
+ "bytes": 610
855
879
  },
856
880
  "mcp/handlers/v2-workspace-resolution.js": {
857
- "sha256": "4c6765112c49ade9c04b5f0606026e5058071ce278a6fb9c3b8207b7ca79c697",
858
- "bytes": 909
881
+ "sha256": "149590ab9f77f0d9b503adb85fdd09fc6d6c0fe6fa33cbf88153930eda7cc5ab",
882
+ "bytes": 1346
859
883
  },
860
884
  "mcp/handlers/workflow.d.ts": {
861
885
  "sha256": "050565039a20af3f7fc8311337ff4547438ecc59433e5744aacce8f203326774",
@@ -866,28 +890,28 @@
866
890
  "bytes": 8233
867
891
  },
868
892
  "mcp/index.d.ts": {
869
- "sha256": "525b4247cf90ba3af66769462bcfaab5dbf38ee8c49d2a9ceec1e4b38e33511b",
870
- "bytes": 1964
893
+ "sha256": "222821d6cf126d3ef590150e7b53f3a386ed9be65a776f2861d76acd9ff31764",
894
+ "bytes": 2143
871
895
  },
872
896
  "mcp/index.js": {
873
- "sha256": "6895e8416b29418900d039a7acb3d486be844d36582d6117f22c0e7d03fa212e",
874
- "bytes": 7535
897
+ "sha256": "46759703a57abbb3c888f128c8a7fdef979c429a12aacd8803229c84be45a971",
898
+ "bytes": 7991
875
899
  },
876
900
  "mcp/output-schemas.d.ts": {
877
- "sha256": "32a181b901b0779d416f30013d8e29e189a310e5f21ce7709fb056c0f3d3878d",
878
- "bytes": 46423
901
+ "sha256": "bb39f2c47db899f5e55da46f268423c20ded9c6ebce7f35aef14c4359f056e2b",
902
+ "bytes": 50378
879
903
  },
880
904
  "mcp/output-schemas.js": {
881
- "sha256": "ff6c519ea3e5fbeea32e98f1fae30aa390f0ecc68902458d68ee142400b67ded",
882
- "bytes": 11763
905
+ "sha256": "7a2fa7e0ec17a713314c19fa17edfe56cf8c3882a2046d12ad6d38a68eb5d2e7",
906
+ "bytes": 12703
883
907
  },
884
908
  "mcp/server.d.ts": {
885
- "sha256": "782a9a50797cac9c5f30e79556f809351d7eb176a16d7c603c09a5133cc25303",
886
- "bytes": 882
909
+ "sha256": "3260bb40e88c3eca469940f3d7e20f6442c267ea7a189984d5c569924c9e1ef0",
910
+ "bytes": 960
887
911
  },
888
912
  "mcp/server.js": {
889
- "sha256": "3d736e6173b069162a8034b667717f72770203efac4b1329202fcdfe4f6b78e7",
890
- "bytes": 14668
913
+ "sha256": "1e5faf28495dff31b83b9f86ba07e05e14fb88c757f4e9e3460235f92c0602ab",
914
+ "bytes": 11642
891
915
  },
892
916
  "mcp/tool-description-provider.d.ts": {
893
917
  "sha256": "1d46abc3112e11b68e57197e846f5708293ec9b2281fa71a9124ee2aad71e41b",
@@ -902,8 +926,8 @@
902
926
  "bytes": 132
903
927
  },
904
928
  "mcp/tool-descriptions.js": {
905
- "sha256": "854176e258cdc25d6067836157a03682b6c8843bc8fd7b447fef96b4bb4cba6d",
906
- "bytes": 18124
929
+ "sha256": "c1a517158ca5562ece07da0ebcb244bd275e4556518b2b8861f24c549d22c1cc",
930
+ "bytes": 9579
907
931
  },
908
932
  "mcp/tool-factory.d.ts": {
909
933
  "sha256": "0fe3c6b863b2d7aef0c3d659ff54f3a9ee8a0a3c2005b6565d2f8ad517bc7211",
@@ -926,8 +950,8 @@
926
950
  "bytes": 70
927
951
  },
928
952
  "mcp/transports/http-entry.js": {
929
- "sha256": "3ecf3a39d4eb2d4b844e83296cf04238acfc7c91e9eca0e10c1e8a0fbae71721",
930
- "bytes": 4279
953
+ "sha256": "147d700164147e91a9f14a303faca25b4bae0981e7674702bbed07c223084f47",
954
+ "bytes": 3127
931
955
  },
932
956
  "mcp/transports/http-listener.d.ts": {
933
957
  "sha256": "5c512d31f001bd65eaaca5421ca8f80e614896fdfe803773aa1f6c893257f20e",
@@ -937,13 +961,21 @@
937
961
  "sha256": "9e055636c281b5fe09623aa017d2e773462ddbe65e42c0938ed897cac606bb62",
938
962
  "bytes": 2555
939
963
  },
964
+ "mcp/transports/shutdown-hooks.d.ts": {
965
+ "sha256": "e2d985b689b4f0947ba1b3357c10fbfd70f25eb57c0e79f139b7978b65bc4b12",
966
+ "bytes": 221
967
+ },
968
+ "mcp/transports/shutdown-hooks.js": {
969
+ "sha256": "7752c372f2a26933a7713c07a762267e57c43e9bc54c66e0b5bd0e8dfe160657",
970
+ "bytes": 1891
971
+ },
940
972
  "mcp/transports/stdio-entry.d.ts": {
941
973
  "sha256": "4ced3c9e00ef67555781dea74315290eea8a9dbffd38155bc00c3fb07b0c1794",
942
974
  "bytes": 59
943
975
  },
944
976
  "mcp/transports/stdio-entry.js": {
945
- "sha256": "a1f75205084e632b78e1ec28fb82498f04ecdb66fa4a9d9678d885268b0ed885",
946
- "bytes": 4509
977
+ "sha256": "f7331ff9cf82d2963c5d509680027e95361058916c04fc16e3092f207afbfaab",
978
+ "bytes": 3222
947
979
  },
948
980
  "mcp/transports/transport-mode.d.ts": {
949
981
  "sha256": "1c59128ab0174bd2a113fff17521e6339ca367f2b8980c2f2c164ec393c10518",
@@ -990,24 +1022,24 @@
990
1022
  "bytes": 81
991
1023
  },
992
1024
  "mcp/v2-response-formatter.js": {
993
- "sha256": "73ecb53715bbf47a701d33b375450a0e0c35e54cf48363caab36f8257d502caa",
994
- "bytes": 6884
1025
+ "sha256": "8696b360c0b6a586d3118e7009c76ec2c06812940950d75f2a06c2528a673bde",
1026
+ "bytes": 7854
995
1027
  },
996
1028
  "mcp/v2/tool-registry.d.ts": {
997
1029
  "sha256": "d4d4927728c3cab1c014661d499dd0119538371bc6c5e821a4cd31df7abebedf",
998
1030
  "bytes": 408
999
1031
  },
1000
1032
  "mcp/v2/tool-registry.js": {
1001
- "sha256": "82539ddccffd58e3dee09b6ee859721fe69da024f55f25b3ee1113d48363d4e4",
1002
- "bytes": 3119
1033
+ "sha256": "cc80cc23bc9334aa5be889cbd6f67106f0b7e2e51eb722475f89216f960a12de",
1034
+ "bytes": 3276
1003
1035
  },
1004
1036
  "mcp/v2/tools.d.ts": {
1005
- "sha256": "c37af21e8580767b050b0ee3193edbe0372f6062486f0ebc3d013f0ef1c87a86",
1006
- "bytes": 6174
1037
+ "sha256": "8802e914f1eae0cfcd5b9b7838d00a3a87c8416c1ade1fce1ee57e7744bf64b9",
1038
+ "bytes": 7010
1007
1039
  },
1008
1040
  "mcp/v2/tools.js": {
1009
- "sha256": "e17001ab98c09796f57de4983d634b6441e7e6879e8c5a9f546a8c36295b197f",
1010
- "bytes": 7274
1041
+ "sha256": "a275de4ce4ccf31d429ce2c32f86169485676aad6f41cfe9babc3f00df2495a1",
1042
+ "bytes": 8838
1011
1043
  },
1012
1044
  "mcp/validation/bounded-json.d.ts": {
1013
1045
  "sha256": "82203ac6123d5c6989606c3b5405aaea99ab829c8958835f9ae3ba45b8bc8fd5",
@@ -1050,12 +1082,12 @@
1050
1082
  "bytes": 667
1051
1083
  },
1052
1084
  "mcp/validation/suggestion-generator.d.ts": {
1053
- "sha256": "159bde7596e7459f6025e152a24f1ab850d5cbd2bf55461036a05709dc5dbaa1",
1054
- "bytes": 731
1085
+ "sha256": "9d9bc286365dfee54e000afaca9823f45d63fde3a596b7dcd375eee60d1c6d01",
1086
+ "bytes": 776
1055
1087
  },
1056
1088
  "mcp/validation/suggestion-generator.js": {
1057
- "sha256": "e4e6740c4010b550de89ae97d50b9e66eebb8d34de13c33a62a6988c34264e79",
1058
- "bytes": 5284
1089
+ "sha256": "541876029dc1c08d0968b3136b177eac4ddc6371f678bbdd0513cf1f42effc54",
1090
+ "bytes": 5658
1059
1091
  },
1060
1092
  "mcp/validation/suggestion-types.d.ts": {
1061
1093
  "sha256": "b93ae2e42f4b24789dcbe19db31a41af9534ad0dca85635339c2a10db42e298b",
@@ -1073,6 +1105,14 @@
1073
1105
  "sha256": "537c7fd9068f45d5aee4a90e834a27e8bb1ee7fe2c6df860964c125e2979d86e",
1074
1106
  "bytes": 3670
1075
1107
  },
1108
+ "mcp/workflow-protocol-contracts.d.ts": {
1109
+ "sha256": "7241bf695adf76803c6eb70949cb6f80376562e65b1ef42e0d1fa79d631b3d3f",
1110
+ "bytes": 1863
1111
+ },
1112
+ "mcp/workflow-protocol-contracts.js": {
1113
+ "sha256": "8bc9e73b604471bf60de9499c708d7393a82f97917390acc3c14456d9534a77d",
1114
+ "bytes": 11646
1115
+ },
1076
1116
  "mcp/workflow-tool-edition-selector.d.ts": {
1077
1117
  "sha256": "75194908a89aaf7dc48fb661aea099827e7032ec76daf8f2de91bd59d46764ef",
1078
1118
  "bytes": 328
@@ -1226,12 +1266,12 @@
1226
1266
  "bytes": 395
1227
1267
  },
1228
1268
  "types/workflow-definition.d.ts": {
1229
- "sha256": "19c5588e038d0d703def5ad59809bd9f7bbf4402999e56e664725cfeb9a0e18c",
1230
- "bytes": 4035
1269
+ "sha256": "1a76d084ea7af32c95c2858e8b42fd48002194657a30fe32c446094b42b074a9",
1270
+ "bytes": 4284
1231
1271
  },
1232
1272
  "types/workflow-definition.js": {
1233
- "sha256": "293e18cc856c8b0f4d48858873c5832f7b9d2dc3896256bf19e59c92a222056d",
1234
- "bytes": 1749
1273
+ "sha256": "de2b3366741898bd187ea6ad5064e131beec33213a8c1d2c8182496880250d79",
1274
+ "bytes": 1863
1235
1275
  },
1236
1276
  "types/workflow-source.d.ts": {
1237
1277
  "sha256": "ee439c36ac3002780837ff393120d08a1c21ef2641421cdf72f0e1449d0211eb",
@@ -1361,6 +1401,14 @@
1361
1401
  "sha256": "2bfc928afd5c11882f219e17db729cb18123952873312e12b9857697998061e6",
1362
1402
  "bytes": 3749
1363
1403
  },
1404
+ "v2/durable-core/domain/binding-drift.d.ts": {
1405
+ "sha256": "86ccd73b4e1a691b304b7c1f13712f9d226039eadc885f2a5d438864885804f5",
1406
+ "bytes": 424
1407
+ },
1408
+ "v2/durable-core/domain/binding-drift.js": {
1409
+ "sha256": "799ce5d3001d1487568e729227e0f4f5b4dcf3f8dff096194f12e52617069417",
1410
+ "bytes": 1397
1411
+ },
1364
1412
  "v2/durable-core/domain/blocked-node-builder.d.ts": {
1365
1413
  "sha256": "0d3e3fcb9ddf99acc532de5022ee8aef8b7a310267dbe68fd914ed516ebde888",
1366
1414
  "bytes": 880
@@ -1478,8 +1526,8 @@
1478
1526
  "bytes": 3762
1479
1527
  },
1480
1528
  "v2/durable-core/domain/reason-model.js": {
1481
- "sha256": "7fb414218faac148451a717c9e9a6a18e6aada92d003443d90dd895e7473f9e8",
1482
- "bytes": 11933
1529
+ "sha256": "2ca2061fef0288b83b59a1f77c47ece03ec8fe16e017d9b2a5ceb4f6f2b79443",
1530
+ "bytes": 11898
1483
1531
  },
1484
1532
  "v2/durable-core/domain/recap-recovery.d.ts": {
1485
1533
  "sha256": "82e7b20a22d409f729ccf79d345c00a7e27f1898a465dfca4cd789ff7766a3d6",
@@ -1666,12 +1714,12 @@
1666
1714
  "bytes": 2115
1667
1715
  },
1668
1716
  "v2/durable-core/schemas/compiled-workflow/index.d.ts": {
1669
- "sha256": "d13d2dbbcd0971f7c170788552f533c2605f26e0f352939bf5cd2348437d7519",
1670
- "bytes": 3645
1717
+ "sha256": "513623689776543a66cf002353b5e8f2fe5b12b3f7df7a45eb8891de09989a66",
1718
+ "bytes": 4415
1671
1719
  },
1672
1720
  "v2/durable-core/schemas/compiled-workflow/index.js": {
1673
- "sha256": "a1b6befdee89a853f22c7077e3470b17bcee8ce0dabd6d5f2dafe270b3820977",
1674
- "bytes": 1350
1721
+ "sha256": "9530bc6dd70cbfa4c1bfdcf1e9061ff28d83135ec36733ebcccf0c6d5d8559ee",
1722
+ "bytes": 1483
1675
1723
  },
1676
1724
  "v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts": {
1677
1725
  "sha256": "278fa4bf5b42f7560382bd821ec706151bba0ab8fc7a17118dfcd02824757625",
@@ -1706,7 +1754,7 @@
1706
1754
  "bytes": 3397
1707
1755
  },
1708
1756
  "v2/durable-core/schemas/export-bundle/index.d.ts": {
1709
- "sha256": "f9726d4f6794f2a0b90505dee4ab3d3f1af2bd4d0e4a376c11506fdcd45eb6f5",
1757
+ "sha256": "a0c0c9c904b11e79f403bec154e118583709d1440916b7e30b1f3101b87acbf2",
1710
1758
  "bytes": 479848
1711
1759
  },
1712
1760
  "v2/durable-core/schemas/export-bundle/index.js": {
@@ -1762,7 +1810,7 @@
1762
1810
  "bytes": 2138
1763
1811
  },
1764
1812
  "v2/durable-core/schemas/session/events.d.ts": {
1765
- "sha256": "c6cecb6de60953fc0b2c2612d501700dae5103270c8d1d8e806716e4ba1c0ecc",
1813
+ "sha256": "2948d5dfe89429a7365492930d5d0c6b9945eb95e8f47ed44fb7dbfe016beded",
1766
1814
  "bytes": 73576
1767
1815
  },
1768
1816
  "v2/durable-core/schemas/session/events.js": {
@@ -1770,7 +1818,7 @@
1770
1818
  "bytes": 11149
1771
1819
  },
1772
1820
  "v2/durable-core/schemas/session/gaps.d.ts": {
1773
- "sha256": "b96bd682a85a4bd4b70bf45c7d649914ab39308d208a38b2e812e330562bd990",
1821
+ "sha256": "b711f791c69ebc9c04b21928f1cebf124229b51ada8fead110843bf274ed688f",
1774
1822
  "bytes": 8721
1775
1823
  },
1776
1824
  "v2/durable-core/schemas/session/gaps.js": {
@@ -2290,12 +2338,12 @@
2290
2338
  "bytes": 732
2291
2339
  },
2292
2340
  "v2/projections/resume-ranking.d.ts": {
2293
- "sha256": "ca5cb0701edded54f08395deebfe50161528d36edb74294c26481501391e64bc",
2294
- "bytes": 2558
2341
+ "sha256": "ff128aa669f995b350a1e4ee8da6f0321f999d492e23975816d3f70caefa4dbb",
2342
+ "bytes": 2595
2295
2343
  },
2296
2344
  "v2/projections/resume-ranking.js": {
2297
- "sha256": "aa6ba4b5480caebba3107f86058b9a834cbd89962d0340c89342417f77956e47",
2298
- "bytes": 4251
2345
+ "sha256": "381dbac1868bc88bdfa3e3c13da94b1392ba3858f2bc86cc3c4331e919aac899",
2346
+ "bytes": 4300
2299
2347
  },
2300
2348
  "v2/projections/run-context.d.ts": {
2301
2349
  "sha256": "a4d57470a435ac9860f60b3244d1b828853995027cd510d8da42762d21b2a687",
@@ -2334,8 +2382,8 @@
2334
2382
  "bytes": 746
2335
2383
  },
2336
2384
  "v2/read-only/v1-to-v2-shim.js": {
2337
- "sha256": "62779b548766f9ed8b3697447497ee171c87a40d28552290506dd7c894d90d97",
2338
- "bytes": 3495
2385
+ "sha256": "ad6d86c0324f24f08201c4d1f6ccb3df2dba44915e295aed837ebc477df0660c",
2386
+ "bytes": 4795
2339
2387
  },
2340
2388
  "v2/usecases/console-routes.d.ts": {
2341
2389
  "sha256": "ccdf824d2c7872b3d588994ebefa15a7771de5ad1abefeb602528b4ca232ae62",
@@ -2394,12 +2442,12 @@
2394
2442
  "bytes": 2788
2395
2443
  },
2396
2444
  "v2/usecases/resume-session.d.ts": {
2397
- "sha256": "02eec4908e02dc591bff06b0d38d686aad64719694fd353670b2b1d17d8f9543",
2398
- "bytes": 434
2445
+ "sha256": "28cf3186e3e756afbe5f3f7f7e9eea15586d74ef19bb1cd7220dab65b05392ec",
2446
+ "bytes": 554
2399
2447
  },
2400
2448
  "v2/usecases/resume-session.js": {
2401
- "sha256": "db50776bbbd18f0a07c0c1b0d94689f78596d980824f4fe73f5cbe47a62d0d60",
2402
- "bytes": 393
2449
+ "sha256": "ca1c22ed85c50ee4f5699ba61878b98daf96e54fde2c94af57e73dae27ca97a5",
2450
+ "bytes": 462
2403
2451
  }
2404
2452
  }
2405
2453
  }
@@ -3,5 +3,5 @@ import type { ToolContext, ToolResult } from './types.js';
3
3
  import type { PreValidateResult } from './validation/workflow-next-prevalidate.js';
4
4
  import type { WrappedToolHandler, McpCallToolResult } from './types/workflow-tool-edition.js';
5
5
  export declare function toMcpResult<T>(result: ToolResult<T>): McpCallToolResult;
6
- export declare function createHandler<TInput extends z.ZodType, TOutput>(schema: TInput, handler: (input: z.infer<TInput>, ctx: ToolContext) => Promise<ToolResult<TOutput>>, shapeSchema?: z.ZodObject<z.ZodRawShape>): WrappedToolHandler;
6
+ export declare function createHandler<TInput extends z.ZodType, TOutput>(schema: TInput, handler: (input: z.infer<TInput>, ctx: ToolContext) => Promise<ToolResult<TOutput>>, shapeSchema?: z.ZodObject<z.ZodRawShape>, aliasMap?: Readonly<Record<string, string>>): WrappedToolHandler;
7
7
  export declare function createValidatingHandler<TInput extends z.ZodType, TOutput>(schema: TInput, preValidate: (args: unknown) => PreValidateResult, handler: (input: z.infer<TInput>, ctx: ToolContext) => Promise<ToolResult<TOutput>>): WrappedToolHandler;
@@ -37,12 +37,12 @@ function toMcpResult(result) {
37
37
  };
38
38
  }
39
39
  }
40
- function createHandler(schema, handler, shapeSchema) {
40
+ function createHandler(schema, handler, shapeSchema, aliasMap) {
41
41
  return async (args, ctx) => {
42
42
  const parseResult = schema.safeParse(args);
43
43
  if (!parseResult.success) {
44
44
  const introspectionSchema = shapeSchema ?? schema;
45
- const suggestionResult = (0, index_js_1.generateSuggestions)(args, introspectionSchema, index_js_1.DEFAULT_SUGGESTION_CONFIG);
45
+ const suggestionResult = (0, index_js_1.generateSuggestions)(args, introspectionSchema, index_js_1.DEFAULT_SUGGESTION_CONFIG, aliasMap);
46
46
  const suggestionDetails = (0, index_js_1.formatSuggestionDetails)(suggestionResult);
47
47
  const patchedTemplate = (0, index_js_1.patchTemplateForFailedOptionals)(suggestionDetails.correctTemplate ?? null, args, parseResult.error.errors, introspectionSchema, index_js_1.DEFAULT_SUGGESTION_CONFIG.maxTemplateDepth);
48
48
  const patchedDetails = patchedTemplate !== suggestionDetails.correctTemplate
@@ -17,7 +17,7 @@ function findNodeCreated(events, nodeId) {
17
17
  function mintStateTokenForNode(originalNode, sessionId, runId, nodeId, tokenCodecPorts, aliasStore, entropy) {
18
18
  const wfRefRes = (0, workflow_hash_ref_js_1.deriveWorkflowHashRef)(originalNode.data.workflowHash);
19
19
  if (wfRefRes.isErr()) {
20
- return (0, neverthrow_1.errAsync)({ kind: 'precondition_failed', message: 'Cannot derive workflowHashRef for stateToken.' });
20
+ return (0, neverthrow_1.errAsync)({ kind: 'precondition_failed', message: 'Cannot derive workflowHashRef for resumeToken.' });
21
21
  }
22
22
  return (0, v2_token_ops_js_1.mintSingleShortToken)({
23
23
  kind: 'state',
@@ -104,12 +104,12 @@ function replayCheckpoint(events, dedupeKey, originalNode, sessionId, runId, nod
104
104
  const workflowHashRefRes = (0, workflow_hash_ref_js_1.deriveWorkflowHashRef)(originalNode.data.workflowHash);
105
105
  const workflowHashRef = workflowHashRefRes.isOk() ? workflowHashRefRes.value : undefined;
106
106
  return mintStateTokenForNode(originalNode, sessionId, runId, nodeId, tokenCodecPorts, aliasStore, entropy)
107
- .andThen((stateTokenValue) => (0, v2_token_ops_js_1.mintContinueAndCheckpointTokens)({
107
+ .andThen((resumeTokenValue) => (0, v2_token_ops_js_1.mintContinueAndCheckpointTokens)({
108
108
  entry: { sessionId: String(sessionId), runId: String(runId), nodeId: String(nodeId), attemptId: String(attemptId), workflowHashRef },
109
109
  ports: tokenCodecPorts, aliasStore, entropy,
110
110
  }).andThen(({ continueToken }) => (0, neverthrow_1.okAsync)(output_schemas_js_1.V2CheckpointWorkflowOutputSchema.parse({
111
111
  checkpointNodeId,
112
- stateToken: stateTokenValue,
112
+ resumeToken: resumeTokenValue,
113
113
  nextCall: { tool: 'continue_workflow', params: { continueToken } },
114
114
  }))))
115
115
  .mapErr((e) => ({ kind: 'store_failed', cause: e }));
@@ -167,12 +167,12 @@ function writeCheckpoint(truth, dedupeKey, originalNode, sessionId, runId, nodeI
167
167
  const workflowHashRefRes = (0, workflow_hash_ref_js_1.deriveWorkflowHashRef)(originalNode.data.workflowHash);
168
168
  const workflowHashRef = workflowHashRefRes.isOk() ? workflowHashRefRes.value : undefined;
169
169
  return mintStateTokenForNode(originalNode, sessionId, runId, nodeId, tokenCodecPorts, aliasStore, entropy)
170
- .andThen((stateTokenValue) => (0, v2_token_ops_js_1.mintContinueAndCheckpointTokens)({
170
+ .andThen((resumeTokenValue) => (0, v2_token_ops_js_1.mintContinueAndCheckpointTokens)({
171
171
  entry: { sessionId: String(sessionId), runId: String(runId), nodeId: String(nodeId), attemptId: String(attemptId), workflowHashRef },
172
172
  ports: tokenCodecPorts, aliasStore, entropy,
173
173
  }).andThen(({ continueToken }) => (0, neverthrow_1.okAsync)(output_schemas_js_1.V2CheckpointWorkflowOutputSchema.parse({
174
174
  checkpointNodeId: String(checkpointNodeId),
175
- stateToken: stateTokenValue,
175
+ resumeToken: resumeTokenValue,
176
176
  nextCall: { tool: 'continue_workflow', params: { continueToken } },
177
177
  }))))
178
178
  .mapErr((e) => ({ kind: 'store_failed', cause: e }));
@@ -107,15 +107,15 @@ function pinnedWorkflowStoreErrorToToolError(_e, _suggestion) {
107
107
  function mapInternalErrorToToolError(e) {
108
108
  switch (e.kind) {
109
109
  case 'missing_node_or_run':
110
- return (0, types_js_1.errNotRetryable)('PRECONDITION_FAILED', 'The stateToken you provided does not match any active workflow session. It may be expired or from a different session.', { suggestion: 'Use the stateToken returned by the most recent start_workflow or continue_workflow call.' });
110
+ return (0, types_js_1.errNotRetryable)('PRECONDITION_FAILED', 'The continueToken you provided does not match any active workflow session. It may be expired or from a different session.', { suggestion: 'Use the continueToken returned by the most recent start_workflow or continue_workflow call.' });
111
111
  case 'workflow_hash_mismatch':
112
- return (0, types_js_1.errNotRetryable)('TOKEN_WORKFLOW_HASH_MISMATCH', 'The stateToken refers to a different version of this workflow than what is currently stored.', { suggestion: 'Call start_workflow to create a new session with the current workflow version.' });
112
+ return (0, types_js_1.errNotRetryable)('TOKEN_WORKFLOW_HASH_MISMATCH', 'The continueToken refers to a different version of this workflow than what is currently stored.', { suggestion: 'Call start_workflow to create a new session with the current workflow version.' });
113
113
  case 'token_scope_mismatch':
114
- return (0, types_js_1.errNotRetryable)('TOKEN_SCOPE_MISMATCH', 'The stateToken and ackToken do not belong to the same session or node. Tokens must come from the same WorkRail response.', { suggestion: 'Use the stateToken and ackToken from the same continue_workflow or start_workflow response. Do not mix tokens from different calls.' });
114
+ return (0, types_js_1.errNotRetryable)('TOKEN_SCOPE_MISMATCH', 'The continueToken does not belong to the current session or node. Use the most recent token block from the same WorkRail response.', { suggestion: 'Use the continueToken from the same continue_workflow or start_workflow response. Do not mix tokens from different calls.' });
115
115
  case 'missing_snapshot':
116
116
  return internalError('WorkRail\'s execution state is incomplete — a required snapshot is missing. This is not caused by your input.', (0, v2_execution_helpers_js_1.internalSuggestion)('Retry the call, or call start_workflow to create a new session.', 'WorkRail has incomplete execution state.'));
117
117
  case 'no_pending_step':
118
- return internalError('There is no pending step to advance. The workflow may already be complete.', 'Call continue_workflow with only a stateToken (no ackToken) to check the current workflow state.');
118
+ return internalError('There is no pending step to advance. The workflow may already be complete.', 'Call continue_workflow with only continueToken (and no output) to rehydrate the current workflow state.');
119
119
  case 'invariant_violation':
120
120
  return internalError('WorkRail encountered an unexpected error during workflow advancement. This is not caused by your input.', (0, v2_execution_helpers_js_1.internalSuggestion)('Retry the call.', 'WorkRail has an internal error during workflow advancement.'));
121
121
  case 'advance_apply_failed':
@@ -34,7 +34,7 @@ function handleAdvanceIntent(args) {
34
34
  return (0, neverthrow_1.errAsync)({
35
35
  kind: 'precondition_failed',
36
36
  message: 'workflowHash mismatch for this run.',
37
- suggestion: 'Use the stateToken returned by WorkRail for this run.',
37
+ suggestion: 'Use the continueToken returned by WorkRail for this run.',
38
38
  });
39
39
  }
40
40
  const nodeCreated = truth.events.find((e) => e.kind === constants_js_1.EVENT_KIND.NODE_CREATED && e.scope.nodeId === String(nodeId) && e.scope.runId === String(runId));
@@ -57,7 +57,7 @@ function handleAdvanceIntent(args) {
57
57
  return (0, neverthrow_1.errAsync)({
58
58
  kind: 'precondition_failed',
59
59
  message: 'workflowHash mismatch for this node.',
60
- suggestion: 'Use the stateToken returned by WorkRail for this node.',
60
+ suggestion: 'Use the continueToken returned by WorkRail for this node.',
61
61
  });
62
62
  }
63
63
  const existing = truth.events.find((e) => e.kind === constants_js_1.EVENT_KIND.ADVANCE_RECORDED && e.dedupeKey === dedupeKey);