@exaudeus/workrail 3.2.1 → 3.4.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.
- package/dist/application/services/compiler/binding-registry.d.ts +3 -0
- package/dist/application/services/compiler/binding-registry.js +71 -0
- package/dist/application/services/compiler/resolve-bindings.d.ts +18 -0
- package/dist/application/services/compiler/resolve-bindings.js +162 -0
- package/dist/application/services/compiler/sentinel-scan.d.ts +9 -0
- package/dist/application/services/compiler/sentinel-scan.js +37 -0
- package/dist/application/services/validation-engine.js +104 -0
- package/dist/application/services/workflow-compiler.d.ts +10 -2
- package/dist/application/services/workflow-compiler.js +25 -6
- package/dist/application/services/workflow-validation-pipeline.js +8 -1
- package/dist/cli.js +2 -2
- package/dist/config/feature-flags.js +4 -3
- package/dist/engine/engine-factory.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/manifest.json +151 -103
- package/dist/mcp/handler-factory.d.ts +1 -1
- package/dist/mcp/handler-factory.js +2 -2
- package/dist/mcp/handlers/v2-checkpoint.js +5 -5
- package/dist/mcp/handlers/v2-error-mapping.js +4 -4
- package/dist/mcp/handlers/v2-execution/continue-advance.js +2 -2
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.d.ts +1 -0
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +76 -60
- package/dist/mcp/handlers/v2-execution/index.js +86 -44
- package/dist/mcp/handlers/v2-execution-helpers.js +1 -1
- package/dist/mcp/handlers/v2-resume.js +10 -5
- package/dist/mcp/handlers/v2-token-ops.d.ts +1 -1
- package/dist/mcp/handlers/v2-token-ops.js +5 -5
- package/dist/mcp/handlers/v2-workspace-resolution.d.ts +1 -0
- package/dist/mcp/handlers/v2-workspace-resolution.js +12 -0
- package/dist/mcp/index.d.ts +4 -1
- package/dist/mcp/index.js +6 -2
- package/dist/mcp/output-schemas.d.ts +148 -8
- package/dist/mcp/output-schemas.js +22 -4
- package/dist/mcp/server.d.ts +6 -4
- package/dist/mcp/server.js +2 -57
- package/dist/mcp/tool-descriptions.js +9 -158
- package/dist/mcp/transports/http-entry.js +6 -25
- package/dist/mcp/transports/shutdown-hooks.d.ts +5 -0
- package/dist/mcp/transports/shutdown-hooks.js +38 -0
- package/dist/mcp/transports/stdio-entry.js +6 -28
- package/dist/mcp/v2/tool-registry.js +2 -1
- package/dist/mcp/v2/tools.d.ts +28 -11
- package/dist/mcp/v2/tools.js +28 -4
- package/dist/mcp/v2-response-formatter.js +28 -1
- package/dist/mcp/validation/suggestion-generator.d.ts +1 -1
- package/dist/mcp/validation/suggestion-generator.js +13 -3
- package/dist/mcp/workflow-protocol-contracts.d.ts +31 -0
- package/dist/mcp/workflow-protocol-contracts.js +207 -0
- package/dist/mcp-server.d.ts +3 -1
- package/dist/mcp-server.js +6 -2
- package/dist/types/workflow-definition.d.ts +7 -0
- package/dist/types/workflow-definition.js +1 -0
- package/dist/v2/durable-core/domain/binding-drift.d.ts +8 -0
- package/dist/v2/durable-core/domain/binding-drift.js +29 -0
- package/dist/v2/durable-core/domain/reason-model.js +2 -2
- package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +12 -0
- package/dist/v2/durable-core/schemas/compiled-workflow/index.js +2 -0
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +56 -56
- package/dist/v2/durable-core/schemas/session/events.d.ts +16 -16
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +6 -6
- package/dist/v2/projections/resume-ranking.d.ts +1 -0
- package/dist/v2/projections/resume-ranking.js +1 -0
- package/dist/v2/read-only/v1-to-v2-shim.js +27 -10
- package/dist/v2/usecases/resume-session.d.ts +5 -1
- package/dist/v2/usecases/resume-session.js +4 -1
- package/package.json +1 -1
- package/spec/workflow.schema.json +44 -0
- package/workflows/coding-task-workflow-agentic.json +15 -15
- package/workflows/coding-task-workflow-agentic.lean.v2.json +10 -10
- package/workflows/coding-task-workflow-agentic.v2.json +12 -12
- package/workflows/coding-task-workflow-with-loops.json +2 -2
- package/workflows/document-creation-workflow.json +1 -1
- package/workflows/exploration-workflow.json +3 -3
- package/workflows/mr-review-workflow.agentic.v2.json +11 -11
package/dist/manifest.json
CHANGED
|
@@ -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": "
|
|
106
|
-
"bytes":
|
|
129
|
+
"sha256": "efbe402b22980383558863abf61bec728604ad81d07d9d48d0a6f52e69fafa3b",
|
|
130
|
+
"bytes": 37800
|
|
107
131
|
},
|
|
108
132
|
"application/services/workflow-compiler.d.ts": {
|
|
109
|
-
"sha256": "
|
|
110
|
-
"bytes":
|
|
133
|
+
"sha256": "f51443e1c3e8e079a972dd032e8de3bcde7b82d891e9a3621a6357cc4fc0e30d",
|
|
134
|
+
"bytes": 1718
|
|
111
135
|
},
|
|
112
136
|
"application/services/workflow-compiler.js": {
|
|
113
|
-
"sha256": "
|
|
114
|
-
"bytes":
|
|
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": "
|
|
138
|
-
"bytes":
|
|
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": "
|
|
218
|
-
"bytes":
|
|
241
|
+
"sha256": "5124a783dd17e5269b7ca6fb2eab0096c1e46ff8c15f5b25a4c4be2a0f6ebb91",
|
|
242
|
+
"bytes": 7392
|
|
219
243
|
},
|
|
220
244
|
"cli/commands/cleanup.d.ts": {
|
|
221
245
|
"sha256": "efe1f9e2ecd58e92007ed38b9581a3852c2babe4b3f2a97237dccd878eebe7ec",
|
|
@@ -334,8 +358,8 @@
|
|
|
334
358
|
"bytes": 1512
|
|
335
359
|
},
|
|
336
360
|
"config/feature-flags.js": {
|
|
337
|
-
"sha256": "
|
|
338
|
-
"bytes":
|
|
361
|
+
"sha256": "ce45dded930747e989783df453bfea0458f87bf790c8be4a1b0bd9ceac9ac2a5",
|
|
362
|
+
"bytes": 7374
|
|
339
363
|
},
|
|
340
364
|
"core/error-handler.d.ts": {
|
|
341
365
|
"sha256": "80451f12ac8e185133ec3dc4c57285491a785f27525ed21e729db1da3f61010d",
|
|
@@ -414,8 +438,8 @@
|
|
|
414
438
|
"bytes": 213
|
|
415
439
|
},
|
|
416
440
|
"engine/engine-factory.js": {
|
|
417
|
-
"sha256": "
|
|
418
|
-
"bytes":
|
|
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": "
|
|
470
|
-
"bytes":
|
|
493
|
+
"sha256": "87856ec10d47e5afa1908e917d1d9cc5308c242bc9132341ae879f62f7258a35",
|
|
494
|
+
"bytes": 483
|
|
471
495
|
},
|
|
472
496
|
"index.js": {
|
|
473
|
-
"sha256": "
|
|
474
|
-
"bytes":
|
|
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": "
|
|
630
|
-
"bytes":
|
|
653
|
+
"sha256": "7ead2e703f41c763d04b37a1cf433380bec3551fbde206af6694fe9286ad4714",
|
|
654
|
+
"bytes": 203
|
|
631
655
|
},
|
|
632
656
|
"mcp-server.js": {
|
|
633
|
-
"sha256": "
|
|
634
|
-
"bytes":
|
|
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": "
|
|
646
|
-
"bytes":
|
|
669
|
+
"sha256": "eaa97ae192a7c4a7e69f75bb7cf2a756af4b49e0efb329d679665c2106f0e054",
|
|
670
|
+
"bytes": 883
|
|
647
671
|
},
|
|
648
672
|
"mcp/handler-factory.js": {
|
|
649
|
-
"sha256": "
|
|
650
|
-
"bytes":
|
|
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": "
|
|
738
|
-
"bytes":
|
|
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": "
|
|
754
|
-
"bytes":
|
|
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": "
|
|
762
|
-
"bytes":
|
|
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": "
|
|
786
|
-
"bytes":
|
|
809
|
+
"sha256": "04d5b7f1a5253082929c40043d15e34f2ea42ab136eb3ff8648372129e3cc1c5",
|
|
810
|
+
"bytes": 8269
|
|
787
811
|
},
|
|
788
812
|
"mcp/handlers/v2-execution/continue-rehydrate.d.ts": {
|
|
789
|
-
"sha256": "
|
|
790
|
-
"bytes":
|
|
813
|
+
"sha256": "38c3381de5ae15769d356d21196948a8e1e371e2d062aaacd5c89c10b52a142a",
|
|
814
|
+
"bytes": 1559
|
|
791
815
|
},
|
|
792
816
|
"mcp/handlers/v2-execution/continue-rehydrate.js": {
|
|
793
|
-
"sha256": "
|
|
794
|
-
"bytes":
|
|
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": "
|
|
802
|
-
"bytes":
|
|
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": "
|
|
826
|
-
"bytes":
|
|
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": "
|
|
838
|
-
"bytes":
|
|
861
|
+
"sha256": "2c61a341194af60a17c7e58aad8bce8fccd56f15984f7ce92db471c651a603c0",
|
|
862
|
+
"bytes": 3798
|
|
839
863
|
},
|
|
840
864
|
"mcp/handlers/v2-token-ops.js": {
|
|
841
|
-
"sha256": "
|
|
842
|
-
"bytes":
|
|
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": "
|
|
854
|
-
"bytes":
|
|
877
|
+
"sha256": "dd4de57b4918ebe749cf8c1df70c02bf1effc50932634bae60db53c9a157e872",
|
|
878
|
+
"bytes": 610
|
|
855
879
|
},
|
|
856
880
|
"mcp/handlers/v2-workspace-resolution.js": {
|
|
857
|
-
"sha256": "
|
|
858
|
-
"bytes":
|
|
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": "
|
|
870
|
-
"bytes":
|
|
893
|
+
"sha256": "222821d6cf126d3ef590150e7b53f3a386ed9be65a776f2861d76acd9ff31764",
|
|
894
|
+
"bytes": 2143
|
|
871
895
|
},
|
|
872
896
|
"mcp/index.js": {
|
|
873
|
-
"sha256": "
|
|
874
|
-
"bytes":
|
|
897
|
+
"sha256": "46759703a57abbb3c888f128c8a7fdef979c429a12aacd8803229c84be45a971",
|
|
898
|
+
"bytes": 7991
|
|
875
899
|
},
|
|
876
900
|
"mcp/output-schemas.d.ts": {
|
|
877
|
-
"sha256": "
|
|
878
|
-
"bytes":
|
|
901
|
+
"sha256": "bb39f2c47db899f5e55da46f268423c20ded9c6ebce7f35aef14c4359f056e2b",
|
|
902
|
+
"bytes": 50378
|
|
879
903
|
},
|
|
880
904
|
"mcp/output-schemas.js": {
|
|
881
|
-
"sha256": "
|
|
882
|
-
"bytes":
|
|
905
|
+
"sha256": "7a2fa7e0ec17a713314c19fa17edfe56cf8c3882a2046d12ad6d38a68eb5d2e7",
|
|
906
|
+
"bytes": 12703
|
|
883
907
|
},
|
|
884
908
|
"mcp/server.d.ts": {
|
|
885
|
-
"sha256": "
|
|
886
|
-
"bytes":
|
|
909
|
+
"sha256": "3260bb40e88c3eca469940f3d7e20f6442c267ea7a189984d5c569924c9e1ef0",
|
|
910
|
+
"bytes": 960
|
|
887
911
|
},
|
|
888
912
|
"mcp/server.js": {
|
|
889
|
-
"sha256": "
|
|
890
|
-
"bytes":
|
|
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": "
|
|
906
|
-
"bytes":
|
|
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": "
|
|
930
|
-
"bytes":
|
|
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": "
|
|
946
|
-
"bytes":
|
|
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": "
|
|
994
|
-
"bytes":
|
|
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": "
|
|
1002
|
-
"bytes":
|
|
1033
|
+
"sha256": "cc80cc23bc9334aa5be889cbd6f67106f0b7e2e51eb722475f89216f960a12de",
|
|
1034
|
+
"bytes": 3276
|
|
1003
1035
|
},
|
|
1004
1036
|
"mcp/v2/tools.d.ts": {
|
|
1005
|
-
"sha256": "
|
|
1006
|
-
"bytes":
|
|
1037
|
+
"sha256": "8802e914f1eae0cfcd5b9b7838d00a3a87c8416c1ade1fce1ee57e7744bf64b9",
|
|
1038
|
+
"bytes": 7010
|
|
1007
1039
|
},
|
|
1008
1040
|
"mcp/v2/tools.js": {
|
|
1009
|
-
"sha256": "
|
|
1010
|
-
"bytes":
|
|
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": "
|
|
1054
|
-
"bytes":
|
|
1085
|
+
"sha256": "9d9bc286365dfee54e000afaca9823f45d63fde3a596b7dcd375eee60d1c6d01",
|
|
1086
|
+
"bytes": 776
|
|
1055
1087
|
},
|
|
1056
1088
|
"mcp/validation/suggestion-generator.js": {
|
|
1057
|
-
"sha256": "
|
|
1058
|
-
"bytes":
|
|
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": "
|
|
1230
|
-
"bytes":
|
|
1269
|
+
"sha256": "1a76d084ea7af32c95c2858e8b42fd48002194657a30fe32c446094b42b074a9",
|
|
1270
|
+
"bytes": 4284
|
|
1231
1271
|
},
|
|
1232
1272
|
"types/workflow-definition.js": {
|
|
1233
|
-
"sha256": "
|
|
1234
|
-
"bytes":
|
|
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": "
|
|
1482
|
-
"bytes":
|
|
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": "
|
|
1670
|
-
"bytes":
|
|
1717
|
+
"sha256": "513623689776543a66cf002353b5e8f2fe5b12b3f7df7a45eb8891de09989a66",
|
|
1718
|
+
"bytes": 4415
|
|
1671
1719
|
},
|
|
1672
1720
|
"v2/durable-core/schemas/compiled-workflow/index.js": {
|
|
1673
|
-
"sha256": "
|
|
1674
|
-
"bytes":
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
2294
|
-
"bytes":
|
|
2341
|
+
"sha256": "ff128aa669f995b350a1e4ee8da6f0321f999d492e23975816d3f70caefa4dbb",
|
|
2342
|
+
"bytes": 2595
|
|
2295
2343
|
},
|
|
2296
2344
|
"v2/projections/resume-ranking.js": {
|
|
2297
|
-
"sha256": "
|
|
2298
|
-
"bytes":
|
|
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": "
|
|
2338
|
-
"bytes":
|
|
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": "
|
|
2398
|
-
"bytes":
|
|
2445
|
+
"sha256": "28cf3186e3e756afbe5f3f7f7e9eea15586d74ef19bb1cd7220dab65b05392ec",
|
|
2446
|
+
"bytes": 554
|
|
2399
2447
|
},
|
|
2400
2448
|
"v2/usecases/resume-session.js": {
|
|
2401
|
-
"sha256": "
|
|
2402
|
-
"bytes":
|
|
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
|
|
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
|
|
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((
|
|
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
|
-
|
|
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((
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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':
|