@exaudeus/workrail 2.0.0 → 3.0.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/template-registry.d.ts +4 -2
- package/dist/application/services/compiler/template-registry.js +97 -5
- package/dist/application/services/workflow-compiler.d.ts +5 -1
- package/dist/application/services/workflow-compiler.js +20 -7
- package/dist/application/use-cases/raw-workflow-file-scanner.d.ts +1 -1
- package/dist/application/use-cases/raw-workflow-file-scanner.js +2 -0
- package/dist/application/use-cases/validate-workflow-registry.js +2 -1
- package/dist/config/feature-flags.js +8 -0
- package/dist/di/container.js +10 -1
- package/dist/di/tokens.d.ts +1 -0
- package/dist/di/tokens.js +1 -0
- package/dist/engine/engine-factory.d.ts +3 -0
- package/dist/engine/engine-factory.js +295 -0
- package/dist/engine/index.d.ts +3 -0
- package/dist/engine/index.js +12 -0
- package/dist/engine/types.d.ts +130 -0
- package/dist/engine/types.js +18 -0
- package/dist/infrastructure/storage/file-workflow-storage.d.ts +1 -0
- package/dist/infrastructure/storage/file-workflow-storage.js +18 -3
- package/dist/infrastructure/storage/workflow-resolution.d.ts +9 -6
- package/dist/infrastructure/storage/workflow-resolution.js +14 -1
- package/dist/manifest.json +166 -94
- package/dist/mcp/handlers/shared/request-workflow-reader.d.ts +19 -0
- package/dist/mcp/handlers/shared/request-workflow-reader.js +50 -0
- package/dist/mcp/handlers/v2-checkpoint.d.ts +31 -1
- package/dist/mcp/handlers/v2-checkpoint.js +76 -64
- package/dist/mcp/handlers/v2-execution/continue-advance.d.ts +2 -0
- package/dist/mcp/handlers/v2-execution/continue-advance.js +5 -5
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.d.ts +2 -0
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +17 -22
- package/dist/mcp/handlers/v2-execution/index.d.ts +10 -17
- package/dist/mcp/handlers/v2-execution/index.js +44 -54
- package/dist/mcp/handlers/v2-execution/replay.d.ts +4 -15
- package/dist/mcp/handlers/v2-execution/replay.js +52 -128
- package/dist/mcp/handlers/v2-execution/start.d.ts +4 -3
- package/dist/mcp/handlers/v2-execution/start.js +32 -49
- package/dist/mcp/handlers/v2-token-ops.d.ts +45 -24
- package/dist/mcp/handlers/v2-token-ops.js +372 -32
- package/dist/mcp/handlers/v2-workflow.d.ts +1 -1
- package/dist/mcp/handlers/v2-workflow.js +25 -4
- package/dist/mcp/output-schemas.d.ts +104 -283
- package/dist/mcp/output-schemas.js +24 -22
- package/dist/mcp/server.js +8 -0
- package/dist/mcp/tool-descriptions.js +9 -2
- package/dist/mcp/types.d.ts +4 -0
- package/dist/mcp/v2/tools.d.ts +32 -53
- package/dist/mcp/v2/tools.js +27 -37
- package/dist/mcp/v2-response-formatter.js +12 -16
- package/dist/runtime/runtime-mode.d.ts +2 -0
- package/dist/v2/durable-core/domain/prompt-renderer.d.ts +1 -0
- package/dist/v2/durable-core/domain/prompt-renderer.js +5 -3
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +14 -14
- package/dist/v2/durable-core/schemas/session/events.d.ts +4 -4
- package/dist/v2/durable-core/schemas/session/validation-event.d.ts +2 -2
- package/dist/v2/durable-core/tokens/payloads.d.ts +32 -32
- package/dist/v2/durable-core/tokens/short-token.d.ts +38 -0
- package/dist/v2/durable-core/tokens/short-token.js +126 -0
- package/dist/v2/durable-core/tokens/token-patterns.d.ts +4 -0
- package/dist/v2/durable-core/tokens/token-patterns.js +9 -0
- package/dist/v2/infra/in-memory/token-alias-store/index.d.ts +11 -0
- package/dist/v2/infra/in-memory/token-alias-store/index.js +38 -0
- package/dist/v2/infra/local/data-dir/index.d.ts +1 -0
- package/dist/v2/infra/local/data-dir/index.js +3 -0
- package/dist/v2/infra/local/token-alias-store/index.d.ts +16 -0
- package/dist/v2/infra/local/token-alias-store/index.js +117 -0
- package/dist/v2/ports/data-dir.port.d.ts +1 -0
- package/dist/v2/ports/token-alias-store.port.d.ts +33 -0
- package/dist/v2/ports/token-alias-store.port.js +2 -0
- package/package.json +8 -1
- package/workflows/coding-task-workflow-agentic.lean.v2.json +224 -0
- package/workflows/routines/philosophy-alignment.json +12 -12
- package/workflows/routines/tension-driven-design.json +63 -0
package/dist/manifest.json
CHANGED
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"bytes": 1997
|
|
51
51
|
},
|
|
52
52
|
"application/services/compiler/template-registry.d.ts": {
|
|
53
|
-
"sha256": "
|
|
54
|
-
"bytes":
|
|
53
|
+
"sha256": "0945a6c997eccd03f96e1893e513519a78bfb923a832f3d66a2a31c8fdb2a945",
|
|
54
|
+
"bytes": 1172
|
|
55
55
|
},
|
|
56
56
|
"application/services/compiler/template-registry.js": {
|
|
57
|
-
"sha256": "
|
|
58
|
-
"bytes":
|
|
57
|
+
"sha256": "79dab84c14a2adb99b7b1ab2e02986e6fd7b8bed501dfa781e418164763ce0fb",
|
|
58
|
+
"bytes": 5147
|
|
59
59
|
},
|
|
60
60
|
"application/services/enhanced-error-service.d.ts": {
|
|
61
61
|
"sha256": "b6fe8fad92717f0962f87aa9c0f88277bf28fe2b5e3cfd7875612ee57eb8c684",
|
|
@@ -98,12 +98,12 @@
|
|
|
98
98
|
"bytes": 32055
|
|
99
99
|
},
|
|
100
100
|
"application/services/workflow-compiler.d.ts": {
|
|
101
|
-
"sha256": "
|
|
102
|
-
"bytes":
|
|
101
|
+
"sha256": "94ebc79efd351f6f1c29e98e57731c573c291632e148a78e04a13b3d1160dbc9",
|
|
102
|
+
"bytes": 1455
|
|
103
103
|
},
|
|
104
104
|
"application/services/workflow-compiler.js": {
|
|
105
|
-
"sha256": "
|
|
106
|
-
"bytes":
|
|
105
|
+
"sha256": "f0c185af822082f605e1d01612987ac9d75ade104a2606621e0fcd8faa899485",
|
|
106
|
+
"bytes": 8796
|
|
107
107
|
},
|
|
108
108
|
"application/services/workflow-interpreter.d.ts": {
|
|
109
109
|
"sha256": "56b5b5ad06d42096deba9f0abe7642c18a355a1e598749aab1730df4e9847674",
|
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
"bytes": 374
|
|
155
155
|
},
|
|
156
156
|
"application/use-cases/raw-workflow-file-scanner.d.ts": {
|
|
157
|
-
"sha256": "
|
|
158
|
-
"bytes":
|
|
157
|
+
"sha256": "c9b699b4a011b968d389662430ff9bf32d4ce3fcda5cc5ddc99b08f2e69697df",
|
|
158
|
+
"bytes": 814
|
|
159
159
|
},
|
|
160
160
|
"application/use-cases/raw-workflow-file-scanner.js": {
|
|
161
|
-
"sha256": "
|
|
162
|
-
"bytes":
|
|
161
|
+
"sha256": "25b2e07a39f67734287b35887326234f5b8b8e1e0c65792513dad2dd8d73a0e0",
|
|
162
|
+
"bytes": 3334
|
|
163
163
|
},
|
|
164
164
|
"application/use-cases/validate-step-output.d.ts": {
|
|
165
165
|
"sha256": "d1505a7f507da6bbf59515c734dace381ac1a96d98f4495e469f9e3ad9c75941",
|
|
@@ -190,8 +190,8 @@
|
|
|
190
190
|
"bytes": 3107
|
|
191
191
|
},
|
|
192
192
|
"application/use-cases/validate-workflow-registry.js": {
|
|
193
|
-
"sha256": "
|
|
194
|
-
"bytes":
|
|
193
|
+
"sha256": "5f0c40d6539abe4a5f4b7bb66c56d032b7e42f28eb5ae6444adb9b03593d891f",
|
|
194
|
+
"bytes": 8948
|
|
195
195
|
},
|
|
196
196
|
"application/validation.d.ts": {
|
|
197
197
|
"sha256": "c7b6485357e0085fbdefca553ef78e570bf8448b272c62f1ddd4a2f9b45b2982",
|
|
@@ -326,8 +326,8 @@
|
|
|
326
326
|
"bytes": 1512
|
|
327
327
|
},
|
|
328
328
|
"config/feature-flags.js": {
|
|
329
|
-
"sha256": "
|
|
330
|
-
"bytes":
|
|
329
|
+
"sha256": "b42066c19fce793fe7bafb1ecb264d05c8e453fff32263f9e8cbcea7e59ddc6b",
|
|
330
|
+
"bytes": 7256
|
|
331
331
|
},
|
|
332
332
|
"core/error-handler.d.ts": {
|
|
333
333
|
"sha256": "80451f12ac8e185133ec3dc4c57285491a785f27525ed21e729db1da3f61010d",
|
|
@@ -342,16 +342,16 @@
|
|
|
342
342
|
"bytes": 565
|
|
343
343
|
},
|
|
344
344
|
"di/container.js": {
|
|
345
|
-
"sha256": "
|
|
346
|
-
"bytes":
|
|
345
|
+
"sha256": "6ba1b310aee67ac495a873d8102a5f3453592128f41735fd540022eb1032370a",
|
|
346
|
+
"bytes": 20016
|
|
347
347
|
},
|
|
348
348
|
"di/tokens.d.ts": {
|
|
349
|
-
"sha256": "
|
|
350
|
-
"bytes":
|
|
349
|
+
"sha256": "15cb26fb2370ad60ff6fc39d1ccd7df133d0cd4088f7a2deceb30d4c00ca8aae",
|
|
350
|
+
"bytes": 1991
|
|
351
351
|
},
|
|
352
352
|
"di/tokens.js": {
|
|
353
|
-
"sha256": "
|
|
354
|
-
"bytes":
|
|
353
|
+
"sha256": "d41c9cd45ab4a9aea3e39cad8d6969a4e1e1407c862eb5093ebc01580f99b672",
|
|
354
|
+
"bytes": 2458
|
|
355
355
|
},
|
|
356
356
|
"domain/execution/error.d.ts": {
|
|
357
357
|
"sha256": "2eac85c42ec399a23724f868641eeadd0d196b4d324ee4caaff82a6b46155bd9",
|
|
@@ -401,6 +401,30 @@
|
|
|
401
401
|
"sha256": "b428afbb24a64555c10086f873a85133c2826350f406ee2b51d970adf18d7cad",
|
|
402
402
|
"bytes": 2332
|
|
403
403
|
},
|
|
404
|
+
"engine/engine-factory.d.ts": {
|
|
405
|
+
"sha256": "ae4fad519eaeb5e5278a1e1547999152c6e39dd31a0d1458e5ff65d632fbeff6",
|
|
406
|
+
"bytes": 213
|
|
407
|
+
},
|
|
408
|
+
"engine/engine-factory.js": {
|
|
409
|
+
"sha256": "886dde45d9971372c9772412e9e1b280c80a006a0f898c4a8f75d2316364c3c7",
|
|
410
|
+
"bytes": 13488
|
|
411
|
+
},
|
|
412
|
+
"engine/index.d.ts": {
|
|
413
|
+
"sha256": "91e12882c565e96a9809fdf43a0dc0a77fdffdfd562aaf43d2e86e6590ed0b16",
|
|
414
|
+
"bytes": 512
|
|
415
|
+
},
|
|
416
|
+
"engine/index.js": {
|
|
417
|
+
"sha256": "764155f282d26439cb6db570792ecec81a3b8fbace7eb02550f4ddc057159084",
|
|
418
|
+
"bytes": 1230
|
|
419
|
+
},
|
|
420
|
+
"engine/types.d.ts": {
|
|
421
|
+
"sha256": "29a9f6ae4a05674ed454956b560021f5a408dfac9a65b417ec33520b6b0d1e0a",
|
|
422
|
+
"bytes": 4778
|
|
423
|
+
},
|
|
424
|
+
"engine/types.js": {
|
|
425
|
+
"sha256": "94eb9981e7b846a07fc53a29e7a8d8969a1a2d418dccb735d611eaadea1fa3c7",
|
|
426
|
+
"bytes": 571
|
|
427
|
+
},
|
|
404
428
|
"errors/app-error.d.ts": {
|
|
405
429
|
"sha256": "9be8c6cdfdc3313242ac6ccc08903dee76ff1cc9914cb10897dc410ffb9edd55",
|
|
406
430
|
"bytes": 766
|
|
@@ -522,12 +546,12 @@
|
|
|
522
546
|
"bytes": 17854
|
|
523
547
|
},
|
|
524
548
|
"infrastructure/storage/file-workflow-storage.d.ts": {
|
|
525
|
-
"sha256": "
|
|
526
|
-
"bytes":
|
|
549
|
+
"sha256": "6a10df10ab073c4d3611b42e69e1fe45bdb9d2e437af2c3b6ef90361698d2be5",
|
|
550
|
+
"bytes": 1507
|
|
527
551
|
},
|
|
528
552
|
"infrastructure/storage/file-workflow-storage.js": {
|
|
529
|
-
"sha256": "
|
|
530
|
-
"bytes":
|
|
553
|
+
"sha256": "1db12e1adcac4b119b44fcfbfb1b31e8c15c055fc040c1a82774238e8bfc6e41",
|
|
554
|
+
"bytes": 8897
|
|
531
555
|
},
|
|
532
556
|
"infrastructure/storage/git-workflow-storage.d.ts": {
|
|
533
557
|
"sha256": "67d7f10e12c78c674ced83da378cd159465d4b09176d8dfca240864b0d6f38c2",
|
|
@@ -586,12 +610,12 @@
|
|
|
586
610
|
"bytes": 3014
|
|
587
611
|
},
|
|
588
612
|
"infrastructure/storage/workflow-resolution.d.ts": {
|
|
589
|
-
"sha256": "
|
|
590
|
-
"bytes":
|
|
613
|
+
"sha256": "81929a188f570488a83cbc387aa32734dbb1fadaae8589c48ff9aa1ea3a6dad5",
|
|
614
|
+
"bytes": 2389
|
|
591
615
|
},
|
|
592
616
|
"infrastructure/storage/workflow-resolution.js": {
|
|
593
|
-
"sha256": "
|
|
594
|
-
"bytes":
|
|
617
|
+
"sha256": "202c244209088acb15f1b0556c569607086e1cb71cf7faa77fbae902d682dfd2",
|
|
618
|
+
"bytes": 6034
|
|
595
619
|
},
|
|
596
620
|
"mcp-server.d.ts": {
|
|
597
621
|
"sha256": "d673b4cf9770aa74de28e921e964459c094bdb89a8970623afda340fe1707293",
|
|
@@ -625,6 +649,14 @@
|
|
|
625
649
|
"sha256": "83c9585400cc7c20cac3691b8771b9ce8cdc508ba7f5d083a96f7ed975aabc05",
|
|
626
650
|
"bytes": 5967
|
|
627
651
|
},
|
|
652
|
+
"mcp/handlers/shared/request-workflow-reader.d.ts": {
|
|
653
|
+
"sha256": "39b3db1251f5db4da36a14a1b3dba76bdd0cefd5b24637e03307901a3994a12b",
|
|
654
|
+
"bytes": 927
|
|
655
|
+
},
|
|
656
|
+
"mcp/handlers/shared/request-workflow-reader.js": {
|
|
657
|
+
"sha256": "8e67f92fe93883e6620b4564a1c98c5402ac74f002049b8f8f136008778e2152",
|
|
658
|
+
"bytes": 2297
|
|
659
|
+
},
|
|
628
660
|
"mcp/handlers/shared/with-timeout.d.ts": {
|
|
629
661
|
"sha256": "31ca3db008cb5cd439e0d1132bc4b29be0900c403c452931e3a24a50e45beb54",
|
|
630
662
|
"bytes": 117
|
|
@@ -690,12 +722,12 @@
|
|
|
690
722
|
"bytes": 5187
|
|
691
723
|
},
|
|
692
724
|
"mcp/handlers/v2-checkpoint.d.ts": {
|
|
693
|
-
"sha256": "
|
|
694
|
-
"bytes":
|
|
725
|
+
"sha256": "6e09be1bf0b7277c997553d24e97bd332a83734062346a0f67211f6836391118",
|
|
726
|
+
"bytes": 1475
|
|
695
727
|
},
|
|
696
728
|
"mcp/handlers/v2-checkpoint.js": {
|
|
697
|
-
"sha256": "
|
|
698
|
-
"bytes":
|
|
729
|
+
"sha256": "70542251d386ba3b59aed224f41abea319b54bd975056f2dbf8b0f333358ea75",
|
|
730
|
+
"bytes": 10893
|
|
699
731
|
},
|
|
700
732
|
"mcp/handlers/v2-context-budget.d.ts": {
|
|
701
733
|
"sha256": "cbad1741a183d52c9cbe558be2e09f776843d1f3ec8cd28d6d0d230668e4298c",
|
|
@@ -738,44 +770,44 @@
|
|
|
738
770
|
"bytes": 2981
|
|
739
771
|
},
|
|
740
772
|
"mcp/handlers/v2-execution/continue-advance.d.ts": {
|
|
741
|
-
"sha256": "
|
|
742
|
-
"bytes":
|
|
773
|
+
"sha256": "27d1f41f608611ba2faa0daf400ef8601c163af5558667c175865e565e95183a",
|
|
774
|
+
"bytes": 2026
|
|
743
775
|
},
|
|
744
776
|
"mcp/handlers/v2-execution/continue-advance.js": {
|
|
745
|
-
"sha256": "
|
|
746
|
-
"bytes":
|
|
777
|
+
"sha256": "1591d4c6f31022d1ecafec841239baaa78642052fbca7a28d6b9827b654085a4",
|
|
778
|
+
"bytes": 8263
|
|
747
779
|
},
|
|
748
780
|
"mcp/handlers/v2-execution/continue-rehydrate.d.ts": {
|
|
749
|
-
"sha256": "
|
|
750
|
-
"bytes":
|
|
781
|
+
"sha256": "5e5fe5bdc3b8427c6661756d666494298aeb63ba0d69dee64a0294cbdd5fab6a",
|
|
782
|
+
"bytes": 1508
|
|
751
783
|
},
|
|
752
784
|
"mcp/handlers/v2-execution/continue-rehydrate.js": {
|
|
753
|
-
"sha256": "
|
|
754
|
-
"bytes":
|
|
785
|
+
"sha256": "4758cacc11ecf346aadea6070cd38c44380941029fe654890148e3b01c4bb94f",
|
|
786
|
+
"bytes": 8190
|
|
755
787
|
},
|
|
756
788
|
"mcp/handlers/v2-execution/index.d.ts": {
|
|
757
|
-
"sha256": "
|
|
758
|
-
"bytes":
|
|
789
|
+
"sha256": "e60e1e0c65e51d101fb06248e882494e6df52762e1d68f5de7081c1cf1ec8bc5",
|
|
790
|
+
"bytes": 1226
|
|
759
791
|
},
|
|
760
792
|
"mcp/handlers/v2-execution/index.js": {
|
|
761
|
-
"sha256": "
|
|
762
|
-
"bytes":
|
|
793
|
+
"sha256": "3f35cb1abc2f6b65bef43fc3f59f48e8b558a369cb714c698b9b5b3ad4c1bdae",
|
|
794
|
+
"bytes": 4182
|
|
763
795
|
},
|
|
764
796
|
"mcp/handlers/v2-execution/replay.d.ts": {
|
|
765
|
-
"sha256": "
|
|
766
|
-
"bytes":
|
|
797
|
+
"sha256": "bbf97633d7e47af3574a9690a1976bb474ca49cecc08af1d5c07e90f9868036d",
|
|
798
|
+
"bytes": 2570
|
|
767
799
|
},
|
|
768
800
|
"mcp/handlers/v2-execution/replay.js": {
|
|
769
|
-
"sha256": "
|
|
770
|
-
"bytes":
|
|
801
|
+
"sha256": "d6b5c83d5fffc88de425c64aa6571e7a469af4ee87e0088471c1ef05ff471b5e",
|
|
802
|
+
"bytes": 8654
|
|
771
803
|
},
|
|
772
804
|
"mcp/handlers/v2-execution/start.d.ts": {
|
|
773
|
-
"sha256": "
|
|
774
|
-
"bytes":
|
|
805
|
+
"sha256": "6847beabf35eb4c8780a649c99f4f60047c34e7ce7d8295c528d72f0f7d35f2d",
|
|
806
|
+
"bytes": 3036
|
|
775
807
|
},
|
|
776
808
|
"mcp/handlers/v2-execution/start.js": {
|
|
777
|
-
"sha256": "
|
|
778
|
-
"bytes":
|
|
809
|
+
"sha256": "5a7a811a40f70f82feb7c158dfb1dc613c138c746f37ae3bd257c010a89041e0",
|
|
810
|
+
"bytes": 15842
|
|
779
811
|
},
|
|
780
812
|
"mcp/handlers/v2-resume.d.ts": {
|
|
781
813
|
"sha256": "d88f6c35bcaf946666c837b72fda3702a2ebab5e478eb90f7b4b672a0e5fa24f",
|
|
@@ -794,20 +826,20 @@
|
|
|
794
826
|
"bytes": 4335
|
|
795
827
|
},
|
|
796
828
|
"mcp/handlers/v2-token-ops.d.ts": {
|
|
797
|
-
"sha256": "
|
|
798
|
-
"bytes":
|
|
829
|
+
"sha256": "bfbc6ab9ed413838cab8ee76fcf24cb7200bb1d257c08205b0eb5a8e48657b27",
|
|
830
|
+
"bytes": 3797
|
|
799
831
|
},
|
|
800
832
|
"mcp/handlers/v2-token-ops.js": {
|
|
801
|
-
"sha256": "
|
|
802
|
-
"bytes":
|
|
833
|
+
"sha256": "eaf40746f0696a0eb79f83e1f198401f9e23ee8fd4cd026d3a90d1010fe2b9ba",
|
|
834
|
+
"bytes": 22297
|
|
803
835
|
},
|
|
804
836
|
"mcp/handlers/v2-workflow.d.ts": {
|
|
805
|
-
"sha256": "
|
|
806
|
-
"bytes":
|
|
837
|
+
"sha256": "5c9590f121dd3708c516be3febe41d0be47531d643462b86b99b778ef0b54498",
|
|
838
|
+
"bytes": 396
|
|
807
839
|
},
|
|
808
840
|
"mcp/handlers/v2-workflow.js": {
|
|
809
|
-
"sha256": "
|
|
810
|
-
"bytes":
|
|
841
|
+
"sha256": "e869550933484b473ee51e4f66b29324c17213b87f3fc8bbb3e098ffc00d6f88",
|
|
842
|
+
"bytes": 7034
|
|
811
843
|
},
|
|
812
844
|
"mcp/handlers/v2-workspace-resolution.d.ts": {
|
|
813
845
|
"sha256": "45cdf30b7989d16201b4569c6c109e9ccea04c76fd044af1471fe57faa49da3a",
|
|
@@ -834,20 +866,20 @@
|
|
|
834
866
|
"bytes": 7535
|
|
835
867
|
},
|
|
836
868
|
"mcp/output-schemas.d.ts": {
|
|
837
|
-
"sha256": "
|
|
838
|
-
"bytes":
|
|
869
|
+
"sha256": "32a181b901b0779d416f30013d8e29e189a310e5f21ce7709fb056c0f3d3878d",
|
|
870
|
+
"bytes": 46423
|
|
839
871
|
},
|
|
840
872
|
"mcp/output-schemas.js": {
|
|
841
|
-
"sha256": "
|
|
842
|
-
"bytes":
|
|
873
|
+
"sha256": "ff6c519ea3e5fbeea32e98f1fae30aa390f0ecc68902458d68ee142400b67ded",
|
|
874
|
+
"bytes": 11763
|
|
843
875
|
},
|
|
844
876
|
"mcp/server.d.ts": {
|
|
845
877
|
"sha256": "782a9a50797cac9c5f30e79556f809351d7eb176a16d7c603c09a5133cc25303",
|
|
846
878
|
"bytes": 882
|
|
847
879
|
},
|
|
848
880
|
"mcp/server.js": {
|
|
849
|
-
"sha256": "
|
|
850
|
-
"bytes":
|
|
881
|
+
"sha256": "3d736e6173b069162a8034b667717f72770203efac4b1329202fcdfe4f6b78e7",
|
|
882
|
+
"bytes": 14668
|
|
851
883
|
},
|
|
852
884
|
"mcp/tool-description-provider.d.ts": {
|
|
853
885
|
"sha256": "1d46abc3112e11b68e57197e846f5708293ec9b2281fa71a9124ee2aad71e41b",
|
|
@@ -862,8 +894,8 @@
|
|
|
862
894
|
"bytes": 132
|
|
863
895
|
},
|
|
864
896
|
"mcp/tool-descriptions.js": {
|
|
865
|
-
"sha256": "
|
|
866
|
-
"bytes":
|
|
897
|
+
"sha256": "854176e258cdc25d6067836157a03682b6c8843bc8fd7b447fef96b4bb4cba6d",
|
|
898
|
+
"bytes": 18124
|
|
867
899
|
},
|
|
868
900
|
"mcp/tool-factory.d.ts": {
|
|
869
901
|
"sha256": "0fe3c6b863b2d7aef0c3d659ff54f3a9ee8a0a3c2005b6565d2f8ad517bc7211",
|
|
@@ -914,8 +946,8 @@
|
|
|
914
946
|
"bytes": 747
|
|
915
947
|
},
|
|
916
948
|
"mcp/types.d.ts": {
|
|
917
|
-
"sha256": "
|
|
918
|
-
"bytes":
|
|
949
|
+
"sha256": "4c53a0e1e9e34e1bc8be2f04730316f4f0623905b3d5c6dc72170b76ca51a0fa",
|
|
950
|
+
"bytes": 4792
|
|
919
951
|
},
|
|
920
952
|
"mcp/types.js": {
|
|
921
953
|
"sha256": "d10c4070e4c3454d80f0fa9cdc0e978c69c53c13fd09baa8710fcd802fed8926",
|
|
@@ -950,8 +982,8 @@
|
|
|
950
982
|
"bytes": 81
|
|
951
983
|
},
|
|
952
984
|
"mcp/v2-response-formatter.js": {
|
|
953
|
-
"sha256": "
|
|
954
|
-
"bytes":
|
|
985
|
+
"sha256": "73ecb53715bbf47a701d33b375450a0e0c35e54cf48363caab36f8257d502caa",
|
|
986
|
+
"bytes": 6884
|
|
955
987
|
},
|
|
956
988
|
"mcp/v2/tool-registry.d.ts": {
|
|
957
989
|
"sha256": "d4d4927728c3cab1c014661d499dd0119538371bc6c5e821a4cd31df7abebedf",
|
|
@@ -962,12 +994,12 @@
|
|
|
962
994
|
"bytes": 3119
|
|
963
995
|
},
|
|
964
996
|
"mcp/v2/tools.d.ts": {
|
|
965
|
-
"sha256": "
|
|
966
|
-
"bytes":
|
|
997
|
+
"sha256": "c37af21e8580767b050b0ee3193edbe0372f6062486f0ebc3d013f0ef1c87a86",
|
|
998
|
+
"bytes": 6174
|
|
967
999
|
},
|
|
968
1000
|
"mcp/v2/tools.js": {
|
|
969
|
-
"sha256": "
|
|
970
|
-
"bytes":
|
|
1001
|
+
"sha256": "e17001ab98c09796f57de4983d634b6441e7e6879e8c5a9f546a8c36295b197f",
|
|
1002
|
+
"bytes": 7274
|
|
971
1003
|
},
|
|
972
1004
|
"mcp/validation/bounded-json.d.ts": {
|
|
973
1005
|
"sha256": "82203ac6123d5c6989606c3b5405aaea99ab829c8958835f9ae3ba45b8bc8fd5",
|
|
@@ -1154,8 +1186,8 @@
|
|
|
1154
1186
|
"bytes": 931
|
|
1155
1187
|
},
|
|
1156
1188
|
"runtime/runtime-mode.d.ts": {
|
|
1157
|
-
"sha256": "
|
|
1158
|
-
"bytes":
|
|
1189
|
+
"sha256": "1e16c5848884f11889cebc863251a1024cde6afb5bafb15503a091151e0550f2",
|
|
1190
|
+
"bytes": 152
|
|
1159
1191
|
},
|
|
1160
1192
|
"runtime/runtime-mode.js": {
|
|
1161
1193
|
"sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
|
|
@@ -1426,12 +1458,12 @@
|
|
|
1426
1458
|
"bytes": 942
|
|
1427
1459
|
},
|
|
1428
1460
|
"v2/durable-core/domain/prompt-renderer.d.ts": {
|
|
1429
|
-
"sha256": "
|
|
1430
|
-
"bytes":
|
|
1461
|
+
"sha256": "6bbafe042ad3e6be2043f8d79ffbf4b3e800dbc862427b41e02e7986357a9df5",
|
|
1462
|
+
"bytes": 968
|
|
1431
1463
|
},
|
|
1432
1464
|
"v2/durable-core/domain/prompt-renderer.js": {
|
|
1433
|
-
"sha256": "
|
|
1434
|
-
"bytes":
|
|
1465
|
+
"sha256": "43a0bce6e074755b5385723f956ce670736d216e8ab47fcbc02bfa3d162dbc3f",
|
|
1466
|
+
"bytes": 14004
|
|
1435
1467
|
},
|
|
1436
1468
|
"v2/durable-core/domain/reason-model.d.ts": {
|
|
1437
1469
|
"sha256": "650fcb2d9969a4e6123cccbd4913f4d57aeab21a19bb907aa1e11f95e5a95089",
|
|
@@ -1666,7 +1698,7 @@
|
|
|
1666
1698
|
"bytes": 2983
|
|
1667
1699
|
},
|
|
1668
1700
|
"v2/durable-core/schemas/export-bundle/index.d.ts": {
|
|
1669
|
-
"sha256": "
|
|
1701
|
+
"sha256": "3106396993ba9d99bdb557b3b273b74a4c5efaa5c2084b2b56d5ca1824532e3f",
|
|
1670
1702
|
"bytes": 479882
|
|
1671
1703
|
},
|
|
1672
1704
|
"v2/durable-core/schemas/export-bundle/index.js": {
|
|
@@ -1722,7 +1754,7 @@
|
|
|
1722
1754
|
"bytes": 2138
|
|
1723
1755
|
},
|
|
1724
1756
|
"v2/durable-core/schemas/session/events.d.ts": {
|
|
1725
|
-
"sha256": "
|
|
1757
|
+
"sha256": "c6cecb6de60953fc0b2c2612d501700dae5103270c8d1d8e806716e4ba1c0ecc",
|
|
1726
1758
|
"bytes": 73576
|
|
1727
1759
|
},
|
|
1728
1760
|
"v2/durable-core/schemas/session/events.js": {
|
|
@@ -1778,7 +1810,7 @@
|
|
|
1778
1810
|
"bytes": 77
|
|
1779
1811
|
},
|
|
1780
1812
|
"v2/durable-core/schemas/session/validation-event.d.ts": {
|
|
1781
|
-
"sha256": "
|
|
1813
|
+
"sha256": "a1fc1ffba0962f93b430aed289744eebac6cf970d94c6f2c55cc7dad3cfef37e",
|
|
1782
1814
|
"bytes": 2206
|
|
1783
1815
|
},
|
|
1784
1816
|
"v2/durable-core/schemas/session/validation-event.js": {
|
|
@@ -1802,13 +1834,21 @@
|
|
|
1802
1834
|
"bytes": 4205
|
|
1803
1835
|
},
|
|
1804
1836
|
"v2/durable-core/tokens/payloads.d.ts": {
|
|
1805
|
-
"sha256": "
|
|
1837
|
+
"sha256": "f0428631b6addaa4c842a1abb4d9e4b1f26cb647b6f42a99060114ccb64eab28",
|
|
1806
1838
|
"bytes": 6921
|
|
1807
1839
|
},
|
|
1808
1840
|
"v2/durable-core/tokens/payloads.js": {
|
|
1809
1841
|
"sha256": "151393f91330c05482344d4c73ee2b50377a5424bc461c2c07d4b59d8cf3f1e4",
|
|
1810
1842
|
"bytes": 2431
|
|
1811
1843
|
},
|
|
1844
|
+
"v2/durable-core/tokens/short-token.d.ts": {
|
|
1845
|
+
"sha256": "f1184bd4c85ff8e202a31a75654aa73f0055111bc05cd4147eee6dbbbf298494",
|
|
1846
|
+
"bytes": 1783
|
|
1847
|
+
},
|
|
1848
|
+
"v2/durable-core/tokens/short-token.js": {
|
|
1849
|
+
"sha256": "4534d9626acb94772377907cbcbabfda2af90a82bb218b201c1eb50d072e16de",
|
|
1850
|
+
"bytes": 4909
|
|
1851
|
+
},
|
|
1812
1852
|
"v2/durable-core/tokens/token-codec-capabilities.d.ts": {
|
|
1813
1853
|
"sha256": "b86e47b85a2da29565c40870aefb4d207555e3c46f9ce6f195229969bead0ecf",
|
|
1814
1854
|
"bytes": 272
|
|
@@ -1833,6 +1873,14 @@
|
|
|
1833
1873
|
"sha256": "76cfd18c7cde51e4f4ae2360c483b8b79cd1bc4af37b7ff58c4cace7a381d12f",
|
|
1834
1874
|
"bytes": 4302
|
|
1835
1875
|
},
|
|
1876
|
+
"v2/durable-core/tokens/token-patterns.d.ts": {
|
|
1877
|
+
"sha256": "b9d4e6f852a95e8552a9ae4bdc4303cb1aa1987a0da531cb9c501b5615731573",
|
|
1878
|
+
"bytes": 206
|
|
1879
|
+
},
|
|
1880
|
+
"v2/durable-core/tokens/token-patterns.js": {
|
|
1881
|
+
"sha256": "4d3d152bc7cbf74411323c4e05dc14813897c9c5be56a72867d8909c53b178a5",
|
|
1882
|
+
"bytes": 648
|
|
1883
|
+
},
|
|
1836
1884
|
"v2/durable-core/tokens/token-signer.d.ts": {
|
|
1837
1885
|
"sha256": "30b3da7d6463b8ec10ff91155fe33dd77ce8789df1159a287f0e46fdc42e1407",
|
|
1838
1886
|
"bytes": 1051
|
|
@@ -1841,6 +1889,14 @@
|
|
|
1841
1889
|
"sha256": "15a8f8b7dac5ab4449f389c75ce7c13a163f639ade481c3890a7f527d23f500d",
|
|
1842
1890
|
"bytes": 3441
|
|
1843
1891
|
},
|
|
1892
|
+
"v2/infra/in-memory/token-alias-store/index.d.ts": {
|
|
1893
|
+
"sha256": "8a1fcaa5fe230987df979a6653e88851c23e8376bb62e3dc306ec477cde207a7",
|
|
1894
|
+
"bytes": 786
|
|
1895
|
+
},
|
|
1896
|
+
"v2/infra/in-memory/token-alias-store/index.js": {
|
|
1897
|
+
"sha256": "771f19e9c28819a0d7c8035c4d624c17c607bfa257c72cfeefacf16d12af355a",
|
|
1898
|
+
"bytes": 1479
|
|
1899
|
+
},
|
|
1844
1900
|
"v2/infra/local/base32/index.d.ts": {
|
|
1845
1901
|
"sha256": "054ad32b03c22e9c797196024f2c2a43111f682ee4ab15f82ef3b9313c392723",
|
|
1846
1902
|
"bytes": 300
|
|
@@ -1874,12 +1930,12 @@
|
|
|
1874
1930
|
"bytes": 457
|
|
1875
1931
|
},
|
|
1876
1932
|
"v2/infra/local/data-dir/index.d.ts": {
|
|
1877
|
-
"sha256": "
|
|
1878
|
-
"bytes":
|
|
1933
|
+
"sha256": "fa6e659499c6c742be9f4182c0d705770d2086696956b02d5415b2c5a8c7a44f",
|
|
1934
|
+
"bytes": 847
|
|
1879
1935
|
},
|
|
1880
1936
|
"v2/infra/local/data-dir/index.js": {
|
|
1881
|
-
"sha256": "
|
|
1882
|
-
"bytes":
|
|
1937
|
+
"sha256": "29dd90a80d199cf16e79169efbc1c06a37ea63254416917cbac8f5e0a81c7f8c",
|
|
1938
|
+
"bytes": 3128
|
|
1883
1939
|
},
|
|
1884
1940
|
"v2/infra/local/directory-listing/index.d.ts": {
|
|
1885
1941
|
"sha256": "3139014cb738db3b0f10beca01a3a4a35b9ab8e72c8889b3bbff204fdbcb6b6c",
|
|
@@ -1985,6 +2041,14 @@
|
|
|
1985
2041
|
"sha256": "459fd31e84f6003ff11872000493850d5e2e450f711526c72b344b310b413b38",
|
|
1986
2042
|
"bytes": 276
|
|
1987
2043
|
},
|
|
2044
|
+
"v2/infra/local/token-alias-store/index.d.ts": {
|
|
2045
|
+
"sha256": "d2b8bb38ba2238170395932bafd9fb8af9adf136912e83678e9ff0d7c5858c83",
|
|
2046
|
+
"bytes": 1038
|
|
2047
|
+
},
|
|
2048
|
+
"v2/infra/local/token-alias-store/index.js": {
|
|
2049
|
+
"sha256": "2b363ed209265ab328045239a6866b577213460214778b036a6a049158d4802d",
|
|
2050
|
+
"bytes": 4717
|
|
2051
|
+
},
|
|
1988
2052
|
"v2/infra/local/utf8/index.d.ts": {
|
|
1989
2053
|
"sha256": "33bfc597ed162a3711e3130d48f9dabf03580861f70fc57b1da4ccb2ec723d46",
|
|
1990
2054
|
"bytes": 181
|
|
@@ -2026,8 +2090,8 @@
|
|
|
2026
2090
|
"bytes": 77
|
|
2027
2091
|
},
|
|
2028
2092
|
"v2/ports/data-dir.port.d.ts": {
|
|
2029
|
-
"sha256": "
|
|
2030
|
-
"bytes":
|
|
2093
|
+
"sha256": "f3b73eb92fa52a657ef54eb9e3c62bdd2a6c265771fc2e23d6526f2ef558cf9c",
|
|
2094
|
+
"bytes": 610
|
|
2031
2095
|
},
|
|
2032
2096
|
"v2/ports/data-dir.port.js": {
|
|
2033
2097
|
"sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
|
|
@@ -2129,6 +2193,14 @@
|
|
|
2129
2193
|
"sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
|
|
2130
2194
|
"bytes": 77
|
|
2131
2195
|
},
|
|
2196
|
+
"v2/ports/token-alias-store.port.d.ts": {
|
|
2197
|
+
"sha256": "42f10d6fc8641c96679d7448ec073a65418f4ea32ee32cc3981000759ba205fb",
|
|
2198
|
+
"bytes": 1233
|
|
2199
|
+
},
|
|
2200
|
+
"v2/ports/token-alias-store.port.js": {
|
|
2201
|
+
"sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
|
|
2202
|
+
"bytes": 77
|
|
2203
|
+
},
|
|
2132
2204
|
"v2/ports/utf8.port.d.ts": {
|
|
2133
2205
|
"sha256": "4c23ce010468e950c83f9111f54d143cce03a0aab36878a42ae4d06b8c58067d",
|
|
2134
2206
|
"bytes": 71
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IWorkflowReader } from '../../../types/storage.js';
|
|
2
|
+
import type { IFeatureFlagProvider } from '../../../config/feature-flags.js';
|
|
3
|
+
export interface RequestWorkflowReaderOptions {
|
|
4
|
+
readonly featureFlags: IFeatureFlagProvider;
|
|
5
|
+
readonly workspacePath?: string;
|
|
6
|
+
readonly resolvedRootUris?: readonly string[];
|
|
7
|
+
readonly serverCwd?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function hasRequestWorkspaceSignal(options: {
|
|
10
|
+
readonly workspacePath?: string;
|
|
11
|
+
readonly resolvedRootUris?: readonly string[];
|
|
12
|
+
}): boolean;
|
|
13
|
+
export declare function resolveRequestWorkspaceDirectory(options: {
|
|
14
|
+
readonly workspacePath?: string;
|
|
15
|
+
readonly resolvedRootUris?: readonly string[];
|
|
16
|
+
readonly serverCwd?: string;
|
|
17
|
+
}): string;
|
|
18
|
+
export declare function toProjectWorkflowDirectory(workspaceDirectory: string): string;
|
|
19
|
+
export declare function createWorkflowReaderForRequest(options: RequestWorkflowReaderOptions): IWorkflowReader;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.hasRequestWorkspaceSignal = hasRequestWorkspaceSignal;
|
|
7
|
+
exports.resolveRequestWorkspaceDirectory = resolveRequestWorkspaceDirectory;
|
|
8
|
+
exports.toProjectWorkflowDirectory = toProjectWorkflowDirectory;
|
|
9
|
+
exports.createWorkflowReaderForRequest = createWorkflowReaderForRequest;
|
|
10
|
+
const path_1 = __importDefault(require("path"));
|
|
11
|
+
const url_1 = require("url");
|
|
12
|
+
const enhanced_multi_source_workflow_storage_js_1 = require("../../../infrastructure/storage/enhanced-multi-source-workflow-storage.js");
|
|
13
|
+
const schema_validating_workflow_storage_js_1 = require("../../../infrastructure/storage/schema-validating-workflow-storage.js");
|
|
14
|
+
function hasRequestWorkspaceSignal(options) {
|
|
15
|
+
return Boolean(options.workspacePath) || (options.resolvedRootUris?.length ?? 0) > 0;
|
|
16
|
+
}
|
|
17
|
+
function resolveRequestWorkspaceDirectory(options) {
|
|
18
|
+
if (options.workspacePath && path_1.default.isAbsolute(options.workspacePath)) {
|
|
19
|
+
return options.workspacePath;
|
|
20
|
+
}
|
|
21
|
+
const rootUri = options.resolvedRootUris?.[0];
|
|
22
|
+
if (rootUri) {
|
|
23
|
+
const fsPath = fileUriToFsPath(rootUri);
|
|
24
|
+
if (fsPath) {
|
|
25
|
+
return fsPath;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return options.serverCwd ?? process.cwd();
|
|
29
|
+
}
|
|
30
|
+
function toProjectWorkflowDirectory(workspaceDirectory) {
|
|
31
|
+
return path_1.default.basename(workspaceDirectory) === 'workflows'
|
|
32
|
+
? workspaceDirectory
|
|
33
|
+
: path_1.default.join(workspaceDirectory, 'workflows');
|
|
34
|
+
}
|
|
35
|
+
function createWorkflowReaderForRequest(options) {
|
|
36
|
+
const workspaceDirectory = resolveRequestWorkspaceDirectory(options);
|
|
37
|
+
const projectWorkflowDirectory = toProjectWorkflowDirectory(workspaceDirectory);
|
|
38
|
+
const storage = new enhanced_multi_source_workflow_storage_js_1.EnhancedMultiSourceWorkflowStorage({ projectPath: projectWorkflowDirectory }, options.featureFlags);
|
|
39
|
+
return new schema_validating_workflow_storage_js_1.SchemaValidatingCompositeWorkflowStorage(storage);
|
|
40
|
+
}
|
|
41
|
+
function fileUriToFsPath(uri) {
|
|
42
|
+
if (!uri.startsWith('file://'))
|
|
43
|
+
return null;
|
|
44
|
+
try {
|
|
45
|
+
return (0, url_1.fileURLToPath)(uri);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { ResultAsync as RA } from 'neverthrow';
|
|
3
|
+
import type { ToolContext, ToolResult, V2ToolContext } from '../types.js';
|
|
2
4
|
import type { V2CheckpointWorkflowInput } from '../v2/tools.js';
|
|
5
|
+
import { V2CheckpointWorkflowOutputSchema } from '../output-schemas.js';
|
|
6
|
+
import { type ToolFailure } from './v2-execution-helpers.js';
|
|
7
|
+
import type { ExecutionSessionGateErrorV2 } from '../../v2/usecases/execution-session-gate.js';
|
|
8
|
+
import type { SessionEventLogStoreError } from '../../v2/ports/session-event-log-store.port.js';
|
|
9
|
+
type CheckpointOutput = z.infer<typeof V2CheckpointWorkflowOutputSchema>;
|
|
10
|
+
export type CheckpointError = {
|
|
11
|
+
readonly kind: 'precondition_failed';
|
|
12
|
+
readonly message: string;
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: 'token_signing_failed';
|
|
15
|
+
readonly cause: unknown;
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'validation_failed';
|
|
18
|
+
readonly failure: ToolFailure;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'missing_node_or_run';
|
|
21
|
+
} | {
|
|
22
|
+
readonly kind: 'event_schema_invalid';
|
|
23
|
+
readonly issues: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly kind: 'gate_failed';
|
|
26
|
+
readonly cause: ExecutionSessionGateErrorV2;
|
|
27
|
+
} | {
|
|
28
|
+
readonly kind: 'store_failed';
|
|
29
|
+
readonly cause: SessionEventLogStoreError;
|
|
30
|
+
};
|
|
3
31
|
export declare function handleV2CheckpointWorkflow(input: V2CheckpointWorkflowInput, ctx: ToolContext): Promise<ToolResult<unknown>>;
|
|
32
|
+
export declare function executeCheckpoint(input: V2CheckpointWorkflowInput, ctx: V2ToolContext): RA<CheckpointOutput, CheckpointError>;
|
|
33
|
+
export {};
|