@exaudeus/workrail 3.16.0 → 3.18.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/validation-engine.js +7 -11
- package/dist/application/services/workflow-compiler.js +9 -11
- package/dist/application/use-cases/raw-workflow-file-scanner.js +10 -13
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.js +2 -1
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.js +72 -0
- package/dist/cli.js +13 -1
- package/dist/config/config-file.d.ts +8 -0
- package/dist/config/config-file.js +141 -0
- package/dist/config/feature-flags.js +8 -0
- package/dist/console/assets/index-BwJelCXK.js +28 -0
- package/dist/console/index.html +1 -1
- package/dist/di/container.d.ts +1 -0
- package/dist/di/container.js +24 -7
- package/dist/infrastructure/session/HttpServer.d.ts +0 -1
- package/dist/infrastructure/session/HttpServer.js +4 -46
- package/dist/manifest.json +120 -128
- package/dist/mcp/assert-output.js +2 -1
- package/dist/mcp/dev-mode.d.ts +1 -0
- package/dist/mcp/dev-mode.js +12 -0
- package/dist/mcp/handler-factory.d.ts +1 -1
- package/dist/mcp/handler-factory.js +8 -7
- package/dist/mcp/handlers/shared/request-workflow-reader.d.ts +1 -0
- package/dist/mcp/handlers/shared/request-workflow-reader.js +90 -20
- package/dist/mcp/handlers/v2-advance-core/assessment-consequences.d.ts +1 -1
- package/dist/mcp/handlers/v2-advance-core/assessment-consequences.js +14 -11
- package/dist/mcp/handlers/v2-advance-core/assessment-validation.d.ts +5 -3
- package/dist/mcp/handlers/v2-advance-core/assessment-validation.js +109 -87
- package/dist/mcp/handlers/v2-advance-core/input-validation.d.ts +0 -4
- package/dist/mcp/handlers/v2-advance-core/input-validation.js +1 -3
- package/dist/mcp/handlers/v2-advance-core/outcome-blocked.js +8 -3
- package/dist/mcp/handlers/v2-advance-core/outcome-success.js +8 -3
- package/dist/mcp/handlers/v2-execution/continue-advance.d.ts +1 -0
- package/dist/mcp/handlers/v2-execution/continue-advance.js +3 -1
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.d.ts +1 -0
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +2 -1
- package/dist/mcp/handlers/v2-execution/index.js +2 -0
- package/dist/mcp/handlers/v2-execution/replay.d.ts +2 -0
- package/dist/mcp/handlers/v2-execution/replay.js +7 -4
- package/dist/mcp/handlers/v2-execution/start.js +48 -20
- package/dist/mcp/handlers/v2-workflow.js +4 -2
- package/dist/mcp/output-schemas.d.ts +17 -12
- package/dist/mcp/output-schemas.js +12 -11
- package/dist/mcp/server.js +3 -2
- package/dist/mcp/v2-response-formatter.d.ts +1 -1
- package/dist/mcp/v2-response-formatter.js +2 -3
- package/dist/types/workflow-definition.d.ts +3 -1
- package/dist/types/workflow-definition.js +2 -0
- package/dist/v2/durable-core/domain/prompt-renderer.d.ts +1 -0
- package/dist/v2/durable-core/domain/prompt-renderer.js +5 -2
- package/dist/v2/durable-core/schemas/compiled-workflow/index.js +4 -3
- package/dist/v2/infra/local/pinned-workflow-store/index.d.ts +2 -0
- package/dist/v2/infra/local/pinned-workflow-store/index.js +49 -0
- package/dist/v2/infra/local/remembered-roots-store/index.d.ts +3 -1
- package/dist/v2/infra/local/remembered-roots-store/index.js +6 -3
- package/dist/v2/infra/local/workspace-anchor/index.js +4 -2
- package/dist/v2/ports/pinned-workflow-store.port.d.ts +2 -0
- package/dist/v2/usecases/console-routes.js +3 -2
- package/package.json +1 -1
- package/spec/authoring-spec.json +3 -3
- package/spec/workflow.schema.json +1 -2
- package/workflows/workflow-for-workflows.json +558 -448
- package/dist/console/assets/index-BE5PAgPO.js +0 -28
- package/dist/env-flags.d.ts +0 -1
- package/dist/env-flags.js +0 -4
- package/dist/mcp/handlers/v2-resolve-refs-envelope.d.ts +0 -5
- package/dist/mcp/handlers/v2-resolve-refs-envelope.js +0 -17
package/dist/manifest.json
CHANGED
|
@@ -126,16 +126,16 @@
|
|
|
126
126
|
"bytes": 2122
|
|
127
127
|
},
|
|
128
128
|
"application/services/validation-engine.js": {
|
|
129
|
-
"sha256": "
|
|
130
|
-
"bytes":
|
|
129
|
+
"sha256": "6231bc1fe0a130ca9771f24da7e5b661d7ceba5839e2867aab6a47b4e50e1a99",
|
|
130
|
+
"bytes": 48831
|
|
131
131
|
},
|
|
132
132
|
"application/services/workflow-compiler.d.ts": {
|
|
133
133
|
"sha256": "f51443e1c3e8e079a972dd032e8de3bcde7b82d891e9a3621a6357cc4fc0e30d",
|
|
134
134
|
"bytes": 1718
|
|
135
135
|
},
|
|
136
136
|
"application/services/workflow-compiler.js": {
|
|
137
|
-
"sha256": "
|
|
138
|
-
"bytes":
|
|
137
|
+
"sha256": "61d09a365540d49865f3d9a1b80eb5f21bad1bd4ccfe2950af63302dd4048dcf",
|
|
138
|
+
"bytes": 14175
|
|
139
139
|
},
|
|
140
140
|
"application/services/workflow-interpreter.d.ts": {
|
|
141
141
|
"sha256": "56b5b5ad06d42096deba9f0abe7642c18a355a1e598749aab1730df4e9847674",
|
|
@@ -190,8 +190,8 @@
|
|
|
190
190
|
"bytes": 814
|
|
191
191
|
},
|
|
192
192
|
"application/use-cases/raw-workflow-file-scanner.js": {
|
|
193
|
-
"sha256": "
|
|
194
|
-
"bytes":
|
|
193
|
+
"sha256": "0adce18f0a301900bcdb3b2d2943a72f81ae3c4c03b3ef69243229540e1c4ddb",
|
|
194
|
+
"bytes": 3379
|
|
195
195
|
},
|
|
196
196
|
"application/use-cases/validate-step-output.d.ts": {
|
|
197
197
|
"sha256": "d1505a7f507da6bbf59515c734dace381ac1a96d98f4495e469f9e3ad9c75941",
|
|
@@ -238,8 +238,8 @@
|
|
|
238
238
|
"bytes": 31
|
|
239
239
|
},
|
|
240
240
|
"cli.js": {
|
|
241
|
-
"sha256": "
|
|
242
|
-
"bytes":
|
|
241
|
+
"sha256": "4fa91d141cb398a7ba46ea2dadbf47bb2fba3cd30425137e740ae4f4dea6c353",
|
|
242
|
+
"bytes": 8027
|
|
243
243
|
},
|
|
244
244
|
"cli/commands/cleanup.d.ts": {
|
|
245
245
|
"sha256": "efe1f9e2ecd58e92007ed38b9581a3852c2babe4b3f2a97237dccd878eebe7ec",
|
|
@@ -250,20 +250,20 @@
|
|
|
250
250
|
"bytes": 745
|
|
251
251
|
},
|
|
252
252
|
"cli/commands/index.d.ts": {
|
|
253
|
-
"sha256": "
|
|
254
|
-
"bytes":
|
|
253
|
+
"sha256": "d9060f00f6f9431c2dae86e1b9cce72b332a8207a4e697e0188f2528db682e37",
|
|
254
|
+
"bytes": 856
|
|
255
255
|
},
|
|
256
256
|
"cli/commands/index.js": {
|
|
257
|
-
"sha256": "
|
|
258
|
-
"bytes":
|
|
257
|
+
"sha256": "a6786e4f60ed6729a14b84f69df4afbf6cff3f09d7a03bc8738e1b2fa7550a82",
|
|
258
|
+
"bytes": 2436
|
|
259
259
|
},
|
|
260
260
|
"cli/commands/init.d.ts": {
|
|
261
|
-
"sha256": "
|
|
262
|
-
"bytes":
|
|
261
|
+
"sha256": "b5f8b88a072c68509dab3938ba1d6b4a949ad32f8fc55e91c5039b8c77301c1b",
|
|
262
|
+
"bytes": 996
|
|
263
263
|
},
|
|
264
264
|
"cli/commands/init.js": {
|
|
265
|
-
"sha256": "
|
|
266
|
-
"bytes":
|
|
265
|
+
"sha256": "2231e989bc0804b4bee45ff85e4a989706dbca12bbcb02bb3b9e6c52ab4ff254",
|
|
266
|
+
"bytes": 4718
|
|
267
267
|
},
|
|
268
268
|
"cli/commands/list.d.ts": {
|
|
269
269
|
"sha256": "b1fd33d3ec871bf1d544b2580c6b25720b747620bc690ec0e1fe4cb8af638504",
|
|
@@ -353,24 +353,32 @@
|
|
|
353
353
|
"sha256": "b8033dcf077cb0ab0978d5be1d7dca72edb2cd78eff9886e552ce8f14e26316f",
|
|
354
354
|
"bytes": 2291
|
|
355
355
|
},
|
|
356
|
+
"config/config-file.d.ts": {
|
|
357
|
+
"sha256": "521c8564b3585b98b0b30fc96f5ced95c0c07505783411d559a62867503f75a7",
|
|
358
|
+
"bytes": 342
|
|
359
|
+
},
|
|
360
|
+
"config/config-file.js": {
|
|
361
|
+
"sha256": "5a061bdda413a4cf905710815905a601a983f2a4474091b4ece4f60028a3eff8",
|
|
362
|
+
"bytes": 5141
|
|
363
|
+
},
|
|
356
364
|
"config/feature-flags.d.ts": {
|
|
357
365
|
"sha256": "49cdf81a9c4f31eca560af5257c569143d2138ec996468b949f9807b7ad7802e",
|
|
358
366
|
"bytes": 1512
|
|
359
367
|
},
|
|
360
368
|
"config/feature-flags.js": {
|
|
361
|
-
"sha256": "
|
|
362
|
-
"bytes":
|
|
363
|
-
},
|
|
364
|
-
"console/assets/index-BE5PAgPO.js": {
|
|
365
|
-
"sha256": "a21e84da5ca6d74e835ba771d91f94a7659ff33579eeed31e7cd6cf0eaa0d989",
|
|
366
|
-
"bytes": 702397
|
|
369
|
+
"sha256": "5fe866e54f796975dec5d8ba9983aefd86074db212d3fccd64eed04bc9f0b3da",
|
|
370
|
+
"bytes": 8011
|
|
367
371
|
},
|
|
368
372
|
"console/assets/index-BZNM03t1.css": {
|
|
369
373
|
"sha256": "114bf48e2dd1ecf84a17eee74f352fe5bc631ec6e294fa1ccd428190498bd9b1",
|
|
370
374
|
"bytes": 47523
|
|
371
375
|
},
|
|
376
|
+
"console/assets/index-BwJelCXK.js": {
|
|
377
|
+
"sha256": "b0b011c9c50f6336c029488c9667e51e158279d11b7217742d9345de07605e6b",
|
|
378
|
+
"bytes": 695062
|
|
379
|
+
},
|
|
372
380
|
"console/index.html": {
|
|
373
|
-
"sha256": "
|
|
381
|
+
"sha256": "f00d6472b99e24bb808bbb516a207c3934b4c0860fd7070bb913a41f67002b59",
|
|
374
382
|
"bytes": 417
|
|
375
383
|
},
|
|
376
384
|
"core/error-handler.d.ts": {
|
|
@@ -382,12 +390,12 @@
|
|
|
382
390
|
"bytes": 3493
|
|
383
391
|
},
|
|
384
392
|
"di/container.d.ts": {
|
|
385
|
-
"sha256": "
|
|
386
|
-
"bytes":
|
|
393
|
+
"sha256": "003bb7fb7478d627524b9b1e76bd0a963a243794a687ff233b96dc0e33a06d9f",
|
|
394
|
+
"bytes": 620
|
|
387
395
|
},
|
|
388
396
|
"di/container.js": {
|
|
389
|
-
"sha256": "
|
|
390
|
-
"bytes":
|
|
397
|
+
"sha256": "6b5ca3f79bff1d6e3bbf9d19d76574611460d6a5f908ebe83fe202706fe4ae2c",
|
|
398
|
+
"bytes": 21727
|
|
391
399
|
},
|
|
392
400
|
"di/tokens.d.ts": {
|
|
393
401
|
"sha256": "04db6db34348aa36d897c85ab07eb1a386cb04e3595dbcb33525bd33974111ef",
|
|
@@ -469,14 +477,6 @@
|
|
|
469
477
|
"sha256": "94eb9981e7b846a07fc53a29e7a8d8969a1a2d418dccb735d611eaadea1fa3c7",
|
|
470
478
|
"bytes": 571
|
|
471
479
|
},
|
|
472
|
-
"env-flags.d.ts": {
|
|
473
|
-
"sha256": "d6631341acafa8d1bd33c6efa5beafdf722441e0dd90ea531c7f2510206b08db",
|
|
474
|
-
"bytes": 53
|
|
475
|
-
},
|
|
476
|
-
"env-flags.js": {
|
|
477
|
-
"sha256": "44e58dada16891beeefe667223218076fe75c5f6517cd39b308e62ffd38fd098",
|
|
478
|
-
"bytes": 204
|
|
479
|
-
},
|
|
480
480
|
"errors/app-error.d.ts": {
|
|
481
481
|
"sha256": "9be8c6cdfdc3313242ac6ccc08903dee76ff1cc9914cb10897dc410ffb9edd55",
|
|
482
482
|
"bytes": 766
|
|
@@ -542,12 +542,12 @@
|
|
|
542
542
|
"bytes": 818
|
|
543
543
|
},
|
|
544
544
|
"infrastructure/session/HttpServer.d.ts": {
|
|
545
|
-
"sha256": "
|
|
546
|
-
"bytes":
|
|
545
|
+
"sha256": "e2676f55158fb35249fc6b8d8ae051e6b043f6445e153f1f20fe837acc2ab65c",
|
|
546
|
+
"bytes": 1977
|
|
547
547
|
},
|
|
548
548
|
"infrastructure/session/HttpServer.js": {
|
|
549
|
-
"sha256": "
|
|
550
|
-
"bytes":
|
|
549
|
+
"sha256": "92c00fa2f82a503bdd35ce0b1d3665cc63a261d16be53ff82a7007a55b08994e",
|
|
550
|
+
"bytes": 30162
|
|
551
551
|
},
|
|
552
552
|
"infrastructure/session/SessionDataNormalizer.d.ts": {
|
|
553
553
|
"sha256": "c89bb5e00d7d01fb4aa6d0095602541de53c425c6b99b67fa8367eb29cb63e9e",
|
|
@@ -682,8 +682,8 @@
|
|
|
682
682
|
"bytes": 1082
|
|
683
683
|
},
|
|
684
684
|
"mcp/assert-output.js": {
|
|
685
|
-
"sha256": "
|
|
686
|
-
"bytes":
|
|
685
|
+
"sha256": "62702ffdd305ff1b062bd27848051edd0507a76450b0cc3c6b35c92d3e5763cf",
|
|
686
|
+
"bytes": 1847
|
|
687
687
|
},
|
|
688
688
|
"mcp/boundary-coercion.d.ts": {
|
|
689
689
|
"sha256": "8ec36c0bad18fd92f9adaca3f2e519bd6a9273f1c702b0466b9378ea6aba9b04",
|
|
@@ -694,12 +694,12 @@
|
|
|
694
694
|
"bytes": 3836
|
|
695
695
|
},
|
|
696
696
|
"mcp/dev-mode.d.ts": {
|
|
697
|
-
"sha256": "
|
|
698
|
-
"bytes":
|
|
697
|
+
"sha256": "e2eec103f3883f687b34965afe55ba562bd81d83fd5ec38b7b15dd23e4bc663c",
|
|
698
|
+
"bytes": 86
|
|
699
699
|
},
|
|
700
700
|
"mcp/dev-mode.js": {
|
|
701
|
-
"sha256": "
|
|
702
|
-
"bytes":
|
|
701
|
+
"sha256": "d4c166d61d207c12dca7bcef4e41eec80af9006347a0b09b058e14f3fac5014c",
|
|
702
|
+
"bytes": 538
|
|
703
703
|
},
|
|
704
704
|
"mcp/error-mapper.d.ts": {
|
|
705
705
|
"sha256": "c6e9db65c565063726442b73a4a0cf1a1c07d54c778a85cf0122c4c04ea6a5a9",
|
|
@@ -710,12 +710,12 @@
|
|
|
710
710
|
"bytes": 3982
|
|
711
711
|
},
|
|
712
712
|
"mcp/handler-factory.d.ts": {
|
|
713
|
-
"sha256": "
|
|
714
|
-
"bytes":
|
|
713
|
+
"sha256": "479c1fe71c0effa6cc3002a9cec3e0de6313a4e9dacf3b9d1f0c5737b3d8aa49",
|
|
714
|
+
"bytes": 989
|
|
715
715
|
},
|
|
716
716
|
"mcp/handler-factory.js": {
|
|
717
|
-
"sha256": "
|
|
718
|
-
"bytes":
|
|
717
|
+
"sha256": "e79a9f2ac55b5ddb9e6418f9a10c1ae1a80a36c67fdd2bd55c60839f856201c2",
|
|
718
|
+
"bytes": 6122
|
|
719
719
|
},
|
|
720
720
|
"mcp/handlers/session.d.ts": {
|
|
721
721
|
"sha256": "38926e69a0e4935d1dbcdc53848be9fff0e4d8f96827883da3216f217918fa82",
|
|
@@ -734,12 +734,12 @@
|
|
|
734
734
|
"bytes": 2785
|
|
735
735
|
},
|
|
736
736
|
"mcp/handlers/shared/request-workflow-reader.d.ts": {
|
|
737
|
-
"sha256": "
|
|
738
|
-
"bytes":
|
|
737
|
+
"sha256": "342f82d59945aa043e7edf5ae0566d7790cdeec223932c59e86c38fc6322155e",
|
|
738
|
+
"bytes": 1919
|
|
739
739
|
},
|
|
740
740
|
"mcp/handlers/shared/request-workflow-reader.js": {
|
|
741
|
-
"sha256": "
|
|
742
|
-
"bytes":
|
|
741
|
+
"sha256": "a32e240ffc984018b56c6e074c894e079d8511dd2fb7a4f36898e32e2b0e62e6",
|
|
742
|
+
"bytes": 10418
|
|
743
743
|
},
|
|
744
744
|
"mcp/handlers/shared/with-timeout.d.ts": {
|
|
745
745
|
"sha256": "31ca3db008cb5cd439e0d1132bc4b29be0900c403c452931e3a24a50e45beb54",
|
|
@@ -766,20 +766,20 @@
|
|
|
766
766
|
"bytes": 306
|
|
767
767
|
},
|
|
768
768
|
"mcp/handlers/v2-advance-core/assessment-consequences.d.ts": {
|
|
769
|
-
"sha256": "
|
|
769
|
+
"sha256": "69323678acf77575569b66a0444aa38578f392b5bfd3aa8f013ff6a463967f66",
|
|
770
770
|
"bytes": 836
|
|
771
771
|
},
|
|
772
772
|
"mcp/handlers/v2-advance-core/assessment-consequences.js": {
|
|
773
|
-
"sha256": "
|
|
774
|
-
"bytes":
|
|
773
|
+
"sha256": "b5f920c648fd8ffd4bf37df57f40e15eb85a84c606a050b0336f71ad15e9a039",
|
|
774
|
+
"bytes": 1203
|
|
775
775
|
},
|
|
776
776
|
"mcp/handlers/v2-advance-core/assessment-validation.d.ts": {
|
|
777
|
-
"sha256": "
|
|
778
|
-
"bytes":
|
|
777
|
+
"sha256": "57c4e1cda1f7006d8cbcab19a7c2d0f6418aff128f0237265a200388ee378772",
|
|
778
|
+
"bytes": 1020
|
|
779
779
|
},
|
|
780
780
|
"mcp/handlers/v2-advance-core/assessment-validation.js": {
|
|
781
|
-
"sha256": "
|
|
782
|
-
"bytes":
|
|
781
|
+
"sha256": "9bf6b000610afcfc97b6f769574ed27b734baf1be2e52978534486bb453d23c4",
|
|
782
|
+
"bytes": 10270
|
|
783
783
|
},
|
|
784
784
|
"mcp/handlers/v2-advance-core/event-builders.d.ts": {
|
|
785
785
|
"sha256": "64502bdfc33901fdb9f9d0d676c9762497bc03f17f0f9a68959a460b270b13b2",
|
|
@@ -798,28 +798,28 @@
|
|
|
798
798
|
"bytes": 8087
|
|
799
799
|
},
|
|
800
800
|
"mcp/handlers/v2-advance-core/input-validation.d.ts": {
|
|
801
|
-
"sha256": "
|
|
802
|
-
"bytes":
|
|
801
|
+
"sha256": "4e057b4496c0d0b263a1296f313df6583df3b5fb34855c1e26d38cbdd39536ea",
|
|
802
|
+
"bytes": 2581
|
|
803
803
|
},
|
|
804
804
|
"mcp/handlers/v2-advance-core/input-validation.js": {
|
|
805
|
-
"sha256": "
|
|
806
|
-
"bytes":
|
|
805
|
+
"sha256": "6f690863bc61eec4cd9632b75d2bf6dc6b37fdaca445aded371715f351df673e",
|
|
806
|
+
"bytes": 5275
|
|
807
807
|
},
|
|
808
808
|
"mcp/handlers/v2-advance-core/outcome-blocked.d.ts": {
|
|
809
809
|
"sha256": "837a6515ba8a1b5de8627c44e5f639a4b8e95d99833a784121539beb262cd96d",
|
|
810
810
|
"bytes": 1242
|
|
811
811
|
},
|
|
812
812
|
"mcp/handlers/v2-advance-core/outcome-blocked.js": {
|
|
813
|
-
"sha256": "
|
|
814
|
-
"bytes":
|
|
813
|
+
"sha256": "3f13d7672c182ecaaf7ca44a616b2a358d27f7826a297fea6ea2afdb4d32d2c1",
|
|
814
|
+
"bytes": 6313
|
|
815
815
|
},
|
|
816
816
|
"mcp/handlers/v2-advance-core/outcome-success.d.ts": {
|
|
817
817
|
"sha256": "09ddde83767b1a997cc20933d62bac89a83937be331bf021555d9e661b97cfa6",
|
|
818
818
|
"bytes": 1055
|
|
819
819
|
},
|
|
820
820
|
"mcp/handlers/v2-advance-core/outcome-success.js": {
|
|
821
|
-
"sha256": "
|
|
822
|
-
"bytes":
|
|
821
|
+
"sha256": "ebb8c7e942d915f479e456c01bf42a3f27a2b0502c24e3d924fbbc426d4cc422",
|
|
822
|
+
"bytes": 7752
|
|
823
823
|
},
|
|
824
824
|
"mcp/handlers/v2-advance-events.d.ts": {
|
|
825
825
|
"sha256": "02cdb52a2c16dd619645b5496caf0880e57937bf21ea9efe44e6cd195cd43b94",
|
|
@@ -878,44 +878,44 @@
|
|
|
878
878
|
"bytes": 2654
|
|
879
879
|
},
|
|
880
880
|
"mcp/handlers/v2-execution/continue-advance.d.ts": {
|
|
881
|
-
"sha256": "
|
|
882
|
-
"bytes":
|
|
881
|
+
"sha256": "6de9b9bb05dee9bbc2c3729960601eca4eb59da5b2e2d2baa5acf20fd14cb118",
|
|
882
|
+
"bytes": 2070
|
|
883
883
|
},
|
|
884
884
|
"mcp/handlers/v2-execution/continue-advance.js": {
|
|
885
|
-
"sha256": "
|
|
886
|
-
"bytes":
|
|
885
|
+
"sha256": "70226fbb3b88e576564661913c5dc52ef72d46a05ad732cae401addc77eaeaea",
|
|
886
|
+
"bytes": 9836
|
|
887
887
|
},
|
|
888
888
|
"mcp/handlers/v2-execution/continue-rehydrate.d.ts": {
|
|
889
|
-
"sha256": "
|
|
890
|
-
"bytes":
|
|
889
|
+
"sha256": "8412323cb149f7818ed19400758da9e0452b35a18d080afd88955a03bd965b92",
|
|
890
|
+
"bytes": 1812
|
|
891
891
|
},
|
|
892
892
|
"mcp/handlers/v2-execution/continue-rehydrate.js": {
|
|
893
|
-
"sha256": "
|
|
894
|
-
"bytes":
|
|
893
|
+
"sha256": "7fab1daf88a3a08b7c831127d5e3eff96585fb81cc904cc63849bb43953b07d5",
|
|
894
|
+
"bytes": 10474
|
|
895
895
|
},
|
|
896
896
|
"mcp/handlers/v2-execution/index.d.ts": {
|
|
897
897
|
"sha256": "2fcb7d3c059a4c79ca66ef0f0b28a0d45dc0e327b45c9ec183a1d1aea78d08d4",
|
|
898
898
|
"bytes": 1437
|
|
899
899
|
},
|
|
900
900
|
"mcp/handlers/v2-execution/index.js": {
|
|
901
|
-
"sha256": "
|
|
902
|
-
"bytes":
|
|
901
|
+
"sha256": "dff4cf30eee4efc6f37257995e9e9bee6824d8a3eeaa14bfcc63abf452e0e057",
|
|
902
|
+
"bytes": 7731
|
|
903
903
|
},
|
|
904
904
|
"mcp/handlers/v2-execution/replay.d.ts": {
|
|
905
|
-
"sha256": "
|
|
906
|
-
"bytes":
|
|
905
|
+
"sha256": "4f1601755e98c336f7d98c096753c38559d76ab5ebbacb1aed679983d46cb6b7",
|
|
906
|
+
"bytes": 2808
|
|
907
907
|
},
|
|
908
908
|
"mcp/handlers/v2-execution/replay.js": {
|
|
909
|
-
"sha256": "
|
|
910
|
-
"bytes":
|
|
909
|
+
"sha256": "5c0f7456db8862538103d876f00ff4c06533045c9f0dbe25e5ed4f53baf83e79",
|
|
910
|
+
"bytes": 11397
|
|
911
911
|
},
|
|
912
912
|
"mcp/handlers/v2-execution/start.d.ts": {
|
|
913
913
|
"sha256": "2deb05345e125667576ede3bb20756a1b22ec86f18028d242b5d9b54dd25afaf",
|
|
914
914
|
"bytes": 3405
|
|
915
915
|
},
|
|
916
916
|
"mcp/handlers/v2-execution/start.js": {
|
|
917
|
-
"sha256": "
|
|
918
|
-
"bytes":
|
|
917
|
+
"sha256": "68e95c6414807f6e069961b176f7ddc220c1fe248433b8d6d2a929f102532fb4",
|
|
918
|
+
"bytes": 21109
|
|
919
919
|
},
|
|
920
920
|
"mcp/handlers/v2-execution/workflow-object-cache.d.ts": {
|
|
921
921
|
"sha256": "7e58a2a020fd8443821dbe4e6a2702a9882c517f032a340c1b393cdebf4af907",
|
|
@@ -941,14 +941,6 @@
|
|
|
941
941
|
"sha256": "5aeabc5d2a078446458d51918f86019895562a1cf7eef99cba19863c6b63d36c",
|
|
942
942
|
"bytes": 4619
|
|
943
943
|
},
|
|
944
|
-
"mcp/handlers/v2-resolve-refs-envelope.d.ts": {
|
|
945
|
-
"sha256": "daa88ef4cc5ed12cec550b0b6975ede225a6278ca9c2328c755048210ff518bb",
|
|
946
|
-
"bytes": 471
|
|
947
|
-
},
|
|
948
|
-
"mcp/handlers/v2-resolve-refs-envelope.js": {
|
|
949
|
-
"sha256": "abcd80dd947bef61bfc068027a0ef1af3a3e13bd67aa3bc410efe66670dbdb50",
|
|
950
|
-
"bytes": 917
|
|
951
|
-
},
|
|
952
944
|
"mcp/handlers/v2-resume.d.ts": {
|
|
953
945
|
"sha256": "23f67bdbbe9f8ed88568669d962f9aabd119f6aa0e29a12f496515c2348197b2",
|
|
954
946
|
"bytes": 476
|
|
@@ -978,8 +970,8 @@
|
|
|
978
970
|
"bytes": 3952
|
|
979
971
|
},
|
|
980
972
|
"mcp/handlers/v2-workflow.js": {
|
|
981
|
-
"sha256": "
|
|
982
|
-
"bytes":
|
|
973
|
+
"sha256": "76e99952ada0a5b2c1ed39cd83e536e6c7c614af9afefb49c6c9faa416b3bb38",
|
|
974
|
+
"bytes": 25048
|
|
983
975
|
},
|
|
984
976
|
"mcp/handlers/v2-workspace-resolution.d.ts": {
|
|
985
977
|
"sha256": "dd4de57b4918ebe749cf8c1df70c02bf1effc50932634bae60db53c9a157e872",
|
|
@@ -1006,12 +998,12 @@
|
|
|
1006
998
|
"bytes": 7991
|
|
1007
999
|
},
|
|
1008
1000
|
"mcp/output-schemas.d.ts": {
|
|
1009
|
-
"sha256": "
|
|
1010
|
-
"bytes":
|
|
1001
|
+
"sha256": "291a605a38ca41a6a6849ae6325b2541694a547d02cc231951fb6438f781b316",
|
|
1002
|
+
"bytes": 93176
|
|
1011
1003
|
},
|
|
1012
1004
|
"mcp/output-schemas.js": {
|
|
1013
|
-
"sha256": "
|
|
1014
|
-
"bytes":
|
|
1005
|
+
"sha256": "b9901935144a7842dd237a869b51fdd72153ce2970225da1e83cc22193bd1293",
|
|
1006
|
+
"bytes": 22211
|
|
1015
1007
|
},
|
|
1016
1008
|
"mcp/render-envelope.d.ts": {
|
|
1017
1009
|
"sha256": "22e83e1aba52968a7136cf289125a217b5f462a5a66a1eebe4669006e3326fdb",
|
|
@@ -1034,8 +1026,8 @@
|
|
|
1034
1026
|
"bytes": 960
|
|
1035
1027
|
},
|
|
1036
1028
|
"mcp/server.js": {
|
|
1037
|
-
"sha256": "
|
|
1038
|
-
"bytes":
|
|
1029
|
+
"sha256": "f8414b17dcbf8f48eefd69f932785ce3e3a58a50609eb2309300c018ac6e1418",
|
|
1030
|
+
"bytes": 15106
|
|
1039
1031
|
},
|
|
1040
1032
|
"mcp/step-content-envelope.d.ts": {
|
|
1041
1033
|
"sha256": "19bd63c4d4de1d5d93393d346625d28ffd1bebdc320d4ba4e694cb740ec97d3b",
|
|
@@ -1158,12 +1150,12 @@
|
|
|
1158
1150
|
"bytes": 2674
|
|
1159
1151
|
},
|
|
1160
1152
|
"mcp/v2-response-formatter.d.ts": {
|
|
1161
|
-
"sha256": "
|
|
1162
|
-
"bytes":
|
|
1153
|
+
"sha256": "c6c7c324854d5cf250bfa66209a91068e810a6cc9e0dca49b618515a8e36c77b",
|
|
1154
|
+
"bytes": 557
|
|
1163
1155
|
},
|
|
1164
1156
|
"mcp/v2-response-formatter.js": {
|
|
1165
|
-
"sha256": "
|
|
1166
|
-
"bytes":
|
|
1157
|
+
"sha256": "d38f0feebe9609b1e00f82c2bfd073f00c4381371881114dac0c5c2fe384f1ee",
|
|
1158
|
+
"bytes": 22586
|
|
1167
1159
|
},
|
|
1168
1160
|
"mcp/v2/tool-registry.d.ts": {
|
|
1169
1161
|
"sha256": "d4d4927728c3cab1c014661d499dd0119538371bc6c5e821a4cd31df7abebedf",
|
|
@@ -1406,12 +1398,12 @@
|
|
|
1406
1398
|
"bytes": 395
|
|
1407
1399
|
},
|
|
1408
1400
|
"types/workflow-definition.d.ts": {
|
|
1409
|
-
"sha256": "
|
|
1410
|
-
"bytes":
|
|
1401
|
+
"sha256": "7ff8bf4aff8685ebe9bc45fe9c6400c5d68dfdf522e2af0e15c53f279291002e",
|
|
1402
|
+
"bytes": 6015
|
|
1411
1403
|
},
|
|
1412
1404
|
"types/workflow-definition.js": {
|
|
1413
|
-
"sha256": "
|
|
1414
|
-
"bytes":
|
|
1405
|
+
"sha256": "33e3c33243f18cb3440a38d79b3c25daa87fe6ad14f2d28c43b9a4e12a72fcd6",
|
|
1406
|
+
"bytes": 2845
|
|
1415
1407
|
},
|
|
1416
1408
|
"types/workflow-source.d.ts": {
|
|
1417
1409
|
"sha256": "ee439c36ac3002780837ff393120d08a1c21ef2641421cdf72f0e1449d0211eb",
|
|
@@ -1686,12 +1678,12 @@
|
|
|
1686
1678
|
"bytes": 942
|
|
1687
1679
|
},
|
|
1688
1680
|
"v2/durable-core/domain/prompt-renderer.d.ts": {
|
|
1689
|
-
"sha256": "
|
|
1690
|
-
"bytes":
|
|
1681
|
+
"sha256": "da680f8f51d526c2ea9b169a4667212a5cc187f539f5d0dc6dcc969a3b1dea02",
|
|
1682
|
+
"bytes": 1295
|
|
1691
1683
|
},
|
|
1692
1684
|
"v2/durable-core/domain/prompt-renderer.js": {
|
|
1693
|
-
"sha256": "
|
|
1694
|
-
"bytes":
|
|
1685
|
+
"sha256": "b4e6b9683d05eb63b86b346996ead259157882bcb1e6a70834a919c90c6007f9",
|
|
1686
|
+
"bytes": 18937
|
|
1695
1687
|
},
|
|
1696
1688
|
"v2/durable-core/domain/reason-model.d.ts": {
|
|
1697
1689
|
"sha256": "a944e7e0d9b3c73468488263cb0aa1e446c023f8084fd2af53cbda3f3bfcd37a",
|
|
@@ -1906,8 +1898,8 @@
|
|
|
1906
1898
|
"bytes": 11821
|
|
1907
1899
|
},
|
|
1908
1900
|
"v2/durable-core/schemas/compiled-workflow/index.js": {
|
|
1909
|
-
"sha256": "
|
|
1910
|
-
"bytes":
|
|
1901
|
+
"sha256": "50d99fc8e0f0cab689a49de6184034a0e4dcb776f80c83eceab69d936828083a",
|
|
1902
|
+
"bytes": 2896
|
|
1911
1903
|
},
|
|
1912
1904
|
"v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts": {
|
|
1913
1905
|
"sha256": "2099e7c6bc521a3df16774eb2d6c0b9cad2b06f7360e7a0b5b98ad75d44fc2cb",
|
|
@@ -2254,12 +2246,12 @@
|
|
|
2254
2246
|
"bytes": 6966
|
|
2255
2247
|
},
|
|
2256
2248
|
"v2/infra/local/pinned-workflow-store/index.d.ts": {
|
|
2257
|
-
"sha256": "
|
|
2258
|
-
"bytes":
|
|
2249
|
+
"sha256": "7cc23fb793a1b640e8dffa622da1af689efe9be26b0f3a538a75331f4ce8ff8f",
|
|
2250
|
+
"bytes": 1073
|
|
2259
2251
|
},
|
|
2260
2252
|
"v2/infra/local/pinned-workflow-store/index.js": {
|
|
2261
|
-
"sha256": "
|
|
2262
|
-
"bytes":
|
|
2253
|
+
"sha256": "791f412efaeb909fa838e9781ea4ab23619bf15badc8ffc641232363a83ea190",
|
|
2254
|
+
"bytes": 5184
|
|
2263
2255
|
},
|
|
2264
2256
|
"v2/infra/local/random-entropy/index.d.ts": {
|
|
2265
2257
|
"sha256": "d911f965506c87a008cc20aa3dfe17dc00dc33ffdb5942465f10416091c81a5e",
|
|
@@ -2270,12 +2262,12 @@
|
|
|
2270
2262
|
"bytes": 345
|
|
2271
2263
|
},
|
|
2272
2264
|
"v2/infra/local/remembered-roots-store/index.d.ts": {
|
|
2273
|
-
"sha256": "
|
|
2274
|
-
"bytes":
|
|
2265
|
+
"sha256": "37cc4c6fdf890b88ffe17c1ce393b122018de37d2a48b20841940dec24b6f34b",
|
|
2266
|
+
"bytes": 966
|
|
2275
2267
|
},
|
|
2276
2268
|
"v2/infra/local/remembered-roots-store/index.js": {
|
|
2277
|
-
"sha256": "
|
|
2278
|
-
"bytes":
|
|
2269
|
+
"sha256": "1308f55cfcc07975064666dc346631b5a301728ba13f8cac251f8a22e937caad",
|
|
2270
|
+
"bytes": 7393
|
|
2279
2271
|
},
|
|
2280
2272
|
"v2/infra/local/session-lock/index.d.ts": {
|
|
2281
2273
|
"sha256": "3b381b372da6039df678dfddf377600547e1067cf921cc1b4cdf578e5df0a1bb",
|
|
@@ -2346,8 +2338,8 @@
|
|
|
2346
2338
|
"bytes": 537
|
|
2347
2339
|
},
|
|
2348
2340
|
"v2/infra/local/workspace-anchor/index.js": {
|
|
2349
|
-
"sha256": "
|
|
2350
|
-
"bytes":
|
|
2341
|
+
"sha256": "3ed5ae038837a2b89fb852c80c442b54376d7ceb4a7c555ff11ba55c8803953b",
|
|
2342
|
+
"bytes": 3249
|
|
2351
2343
|
},
|
|
2352
2344
|
"v2/ports/base32.port.d.ts": {
|
|
2353
2345
|
"sha256": "64aa2f2003a552917cbf71474472fc5e4afffaa29577204bbcbe5ffa989ceb82",
|
|
@@ -2422,8 +2414,8 @@
|
|
|
2422
2414
|
"bytes": 77
|
|
2423
2415
|
},
|
|
2424
2416
|
"v2/ports/pinned-workflow-store.port.d.ts": {
|
|
2425
|
-
"sha256": "
|
|
2426
|
-
"bytes":
|
|
2417
|
+
"sha256": "72ecb9bb19dbe8e95919d5999009d98d2079211571ac8c4cec8bd56fe7eaf9ac",
|
|
2418
|
+
"bytes": 763
|
|
2427
2419
|
},
|
|
2428
2420
|
"v2/ports/pinned-workflow-store.port.js": {
|
|
2429
2421
|
"sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
|
|
@@ -2658,8 +2650,8 @@
|
|
|
2658
2650
|
"bytes": 456
|
|
2659
2651
|
},
|
|
2660
2652
|
"v2/usecases/console-routes.js": {
|
|
2661
|
-
"sha256": "
|
|
2662
|
-
"bytes":
|
|
2653
|
+
"sha256": "a1a6cfe4dc655cd320d51e9ec65dbe9f7fc7869c4414bfd48230d9d50a15f2da",
|
|
2654
|
+
"bytes": 10903
|
|
2663
2655
|
},
|
|
2664
2656
|
"v2/usecases/console-service.d.ts": {
|
|
2665
2657
|
"sha256": "489a44091dc1b15ff938a60f9cf3ac28363614b9f0446286f0914157528c7eb3",
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.assertOutput = assertOutput;
|
|
4
4
|
exports.assertBlockerReportInvariants = assertBlockerReportInvariants;
|
|
5
5
|
exports.assertContinueTokenPresence = assertContinueTokenPresence;
|
|
6
|
+
const dev_mode_js_1 = require("./dev-mode.js");
|
|
6
7
|
function assertOutput(data, check) {
|
|
7
|
-
if (
|
|
8
|
+
if ((0, dev_mode_js_1.isDevMode)()) {
|
|
8
9
|
check(data);
|
|
9
10
|
}
|
|
10
11
|
return data;
|
package/dist/mcp/dev-mode.d.ts
CHANGED
package/dist/mcp/dev-mode.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEV_MODE = void 0;
|
|
4
|
+
exports.isDevMode = isDevMode;
|
|
5
|
+
const container_js_1 = require("../di/container.js");
|
|
6
|
+
const tokens_js_1 = require("../di/tokens.js");
|
|
7
|
+
function isDevMode() {
|
|
8
|
+
try {
|
|
9
|
+
const flags = container_js_1.container.resolve(tokens_js_1.DI.Infra.FeatureFlags);
|
|
10
|
+
return flags.isEnabled('devMode');
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return process.env['WORKRAIL_DEV'] === '1';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
exports.DEV_MODE = process.env['WORKRAIL_DEV'] === '1';
|
|
@@ -2,6 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
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
|
-
export declare function toMcpResult<T>(result: ToolResult<T
|
|
5
|
+
export declare function toMcpResult<T>(result: ToolResult<T>, ctx?: ToolContext): McpCallToolResult;
|
|
6
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>>, shapeSchema?: z.ZodObject<z.ZodRawShape>, aliasMap?: Readonly<Record<string, string>>): WrappedToolHandler;
|
|
@@ -11,11 +11,12 @@ const v2_execution_helpers_js_1 = require("./handlers/v2-execution-helpers.js");
|
|
|
11
11
|
const v2_response_formatter_js_1 = require("./v2-response-formatter.js");
|
|
12
12
|
const render_envelope_js_1 = require("./render-envelope.js");
|
|
13
13
|
const jsonResponsesOverride = process.env.WORKRAIL_JSON_RESPONSES === 'true';
|
|
14
|
-
function toMcpResult(result) {
|
|
14
|
+
function toMcpResult(result, ctx) {
|
|
15
15
|
switch (result.type) {
|
|
16
16
|
case 'success': {
|
|
17
|
+
const cleanResponseFormat = ctx?.featureFlags.isEnabled('cleanResponseFormat') ?? false;
|
|
17
18
|
if (!jsonResponsesOverride) {
|
|
18
|
-
const formatted = (0, v2_response_formatter_js_1.formatV2ExecutionResponse)(result.data) ?? (0, v2_response_formatter_js_1.formatV2ResumeResponse)(result.data);
|
|
19
|
+
const formatted = (0, v2_response_formatter_js_1.formatV2ExecutionResponse)(result.data, cleanResponseFormat) ?? (0, v2_response_formatter_js_1.formatV2ResumeResponse)(result.data);
|
|
19
20
|
if (formatted !== null) {
|
|
20
21
|
const content = [{ type: 'text', text: formatted.primary }];
|
|
21
22
|
if (formatted.references != null) {
|
|
@@ -76,14 +77,14 @@ function createHandler(schema, handler, shapeSchema, aliasMap) {
|
|
|
76
77
|
message: e.message,
|
|
77
78
|
})),
|
|
78
79
|
...patchedDetails,
|
|
79
|
-
}));
|
|
80
|
+
}), ctx);
|
|
80
81
|
}
|
|
81
82
|
try {
|
|
82
|
-
return toMcpResult(await handler(parseResult.data, ctx));
|
|
83
|
+
return toMcpResult(await handler(parseResult.data, ctx), ctx);
|
|
83
84
|
}
|
|
84
85
|
catch (err) {
|
|
85
86
|
console.error('[WorkRail] Unhandled exception in tool handler:', err);
|
|
86
|
-
return toMcpResult((0, types_js_1.errNotRetryable)('INTERNAL_ERROR', 'WorkRail encountered an unexpected error. This is not caused by your input.', { suggestion: (0, v2_execution_helpers_js_1.internalSuggestion)('Retry the call.', 'WorkRail has an internal error.') }));
|
|
87
|
+
return toMcpResult((0, types_js_1.errNotRetryable)('INTERNAL_ERROR', 'WorkRail encountered an unexpected error. This is not caused by your input.', { suggestion: (0, v2_execution_helpers_js_1.internalSuggestion)('Retry the call.', 'WorkRail has an internal error.') }), ctx);
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
90
|
}
|
|
@@ -109,9 +110,9 @@ function createValidatingHandler(schema, preValidate, handler, shapeSchema, alia
|
|
|
109
110
|
...error,
|
|
110
111
|
details: boundedDetails,
|
|
111
112
|
};
|
|
112
|
-
return toMcpResult(boundedError);
|
|
113
|
+
return toMcpResult(boundedError, ctx);
|
|
113
114
|
}
|
|
114
|
-
return toMcpResult(error);
|
|
115
|
+
return toMcpResult(error, ctx);
|
|
115
116
|
}
|
|
116
117
|
return innerHandler(normalizedArgs, ctx);
|
|
117
118
|
};
|
|
@@ -2,6 +2,7 @@ import type { IWorkflowReader } from '../../../types/storage.js';
|
|
|
2
2
|
import type { IFeatureFlagProvider } from '../../../config/feature-flags.js';
|
|
3
3
|
import type { RememberedRootsStorePortV2 } from '../../../v2/ports/remembered-roots-store.port.js';
|
|
4
4
|
import type { ManagedSourceRecordV2, ManagedSourceStorePortV2 } from '../../../v2/ports/managed-source-store.port.js';
|
|
5
|
+
export declare function clearWalkCacheForTesting(): void;
|
|
5
6
|
export interface RequestWorkflowReaderOptions {
|
|
6
7
|
readonly featureFlags: IFeatureFlagProvider;
|
|
7
8
|
readonly workspacePath?: string;
|