@exaudeus/workrail 0.17.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/application/services/output-normalizer.d.ts +9 -0
  2. package/dist/application/services/output-normalizer.js +38 -0
  3. package/dist/di/container.js +8 -0
  4. package/dist/di/tokens.d.ts +2 -0
  5. package/dist/di/tokens.js +2 -0
  6. package/dist/infrastructure/session/HttpServer.d.ts +2 -1
  7. package/dist/infrastructure/session/HttpServer.js +34 -10
  8. package/dist/infrastructure/session/SessionManager.js +19 -1
  9. package/dist/infrastructure/storage/enhanced-multi-source-workflow-storage.js +26 -2
  10. package/dist/infrastructure/storage/file-workflow-storage.js +4 -4
  11. package/dist/infrastructure/storage/git-workflow-storage.d.ts +0 -1
  12. package/dist/infrastructure/storage/git-workflow-storage.js +28 -29
  13. package/dist/infrastructure/storage/plugin-workflow-storage.js +11 -5
  14. package/dist/manifest.json +276 -92
  15. package/dist/mcp/handler-factory.d.ts +7 -0
  16. package/dist/mcp/handler-factory.js +70 -0
  17. package/dist/mcp/handlers/v2-execution-helpers.d.ts +4 -4
  18. package/dist/mcp/handlers/v2-execution-helpers.js +29 -0
  19. package/dist/mcp/handlers/v2-execution.js +460 -166
  20. package/dist/mcp/output-schemas.d.ts +350 -37
  21. package/dist/mcp/output-schemas.js +91 -18
  22. package/dist/mcp/server.js +32 -130
  23. package/dist/mcp/tool-descriptions.js +126 -18
  24. package/dist/mcp/types/workflow-tool-edition.d.ts +28 -0
  25. package/dist/mcp/types/workflow-tool-edition.js +10 -0
  26. package/dist/mcp/types.d.ts +2 -6
  27. package/dist/mcp/v1/tool-registry.d.ts +8 -0
  28. package/dist/mcp/v1/tool-registry.js +49 -0
  29. package/dist/mcp/v2/tool-registry.d.ts +2 -5
  30. package/dist/mcp/v2/tool-registry.js +33 -32
  31. package/dist/mcp/v2/tools.js +6 -6
  32. package/dist/mcp/workflow-tool-edition-selector.d.ts +4 -0
  33. package/dist/mcp/workflow-tool-edition-selector.js +13 -0
  34. package/dist/utils/storage-security.js +15 -1
  35. package/dist/v2/durable-core/constants.d.ts +1 -0
  36. package/dist/v2/durable-core/constants.js +2 -1
  37. package/dist/v2/durable-core/domain/ack-advance-append-plan.d.ts +14 -7
  38. package/dist/v2/durable-core/domain/ack-advance-append-plan.js +78 -23
  39. package/dist/v2/durable-core/domain/blocking-decision.d.ts +32 -0
  40. package/dist/v2/durable-core/domain/blocking-decision.js +41 -0
  41. package/dist/v2/durable-core/domain/context-merge.d.ts +8 -0
  42. package/dist/v2/durable-core/domain/context-merge.js +40 -0
  43. package/dist/v2/durable-core/domain/function-definition-expander.d.ts +14 -0
  44. package/dist/v2/durable-core/domain/function-definition-expander.js +66 -0
  45. package/dist/v2/durable-core/domain/gap-builder.d.ts +19 -0
  46. package/dist/v2/durable-core/domain/gap-builder.js +24 -0
  47. package/dist/v2/durable-core/domain/prompt-renderer.d.ts +24 -0
  48. package/dist/v2/durable-core/domain/prompt-renderer.js +167 -0
  49. package/dist/v2/durable-core/domain/reason-model.d.ts +94 -0
  50. package/dist/v2/durable-core/domain/reason-model.js +228 -0
  51. package/dist/v2/durable-core/domain/recap-recovery.d.ts +24 -0
  52. package/dist/v2/durable-core/domain/recap-recovery.js +71 -0
  53. package/dist/v2/durable-core/domain/validation-criteria-validator.d.ts +8 -0
  54. package/dist/v2/durable-core/domain/validation-criteria-validator.js +16 -0
  55. package/dist/v2/durable-core/domain/validation-requirements-extractor.d.ts +2 -0
  56. package/dist/v2/durable-core/domain/validation-requirements-extractor.js +58 -0
  57. package/dist/v2/durable-core/encoding/base32-lower.d.ts +1 -0
  58. package/dist/v2/durable-core/encoding/base32-lower.js +28 -0
  59. package/dist/v2/durable-core/ids/index.d.ts +4 -0
  60. package/dist/v2/durable-core/ids/index.js +7 -0
  61. package/dist/v2/durable-core/ids/workflow-hash-ref.d.ts +7 -0
  62. package/dist/v2/durable-core/ids/workflow-hash-ref.js +23 -0
  63. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +206 -0
  64. package/dist/v2/durable-core/schemas/session/events.d.ts +58 -0
  65. package/dist/v2/durable-core/schemas/session/events.js +9 -0
  66. package/dist/v2/durable-core/tokens/binary-payload.d.ts +35 -0
  67. package/dist/v2/durable-core/tokens/binary-payload.js +279 -0
  68. package/dist/v2/durable-core/tokens/index.d.ts +9 -4
  69. package/dist/v2/durable-core/tokens/index.js +17 -7
  70. package/dist/v2/durable-core/tokens/payloads.d.ts +12 -8
  71. package/dist/v2/durable-core/tokens/payloads.js +5 -3
  72. package/dist/v2/durable-core/tokens/token-codec-capabilities.d.ts +4 -0
  73. package/dist/v2/durable-core/tokens/token-codec-capabilities.js +2 -0
  74. package/dist/v2/durable-core/tokens/token-codec-ports.d.ts +42 -0
  75. package/dist/v2/durable-core/tokens/token-codec-ports.js +27 -0
  76. package/dist/v2/durable-core/tokens/token-codec.d.ts +18 -0
  77. package/dist/v2/durable-core/tokens/token-codec.js +108 -0
  78. package/dist/v2/durable-core/tokens/token-signer.d.ts +13 -1
  79. package/dist/v2/durable-core/tokens/token-signer.js +65 -0
  80. package/dist/v2/infra/local/base32/index.d.ts +6 -0
  81. package/dist/v2/infra/local/base32/index.js +44 -0
  82. package/dist/v2/infra/local/bech32m/index.d.ts +8 -0
  83. package/dist/v2/infra/local/bech32m/index.js +56 -0
  84. package/dist/v2/infra/local/data-dir/index.d.ts +1 -0
  85. package/dist/v2/infra/local/data-dir/index.js +5 -2
  86. package/dist/v2/infra/local/fs/index.js +3 -0
  87. package/dist/v2/infra/local/session-store/index.js +38 -4
  88. package/dist/v2/ports/base32.port.d.ts +16 -0
  89. package/dist/v2/ports/base32.port.js +2 -0
  90. package/dist/v2/ports/bech32m.port.d.ts +11 -0
  91. package/dist/v2/ports/bech32m.port.js +2 -0
  92. package/dist/v2/projections/run-context.d.ts +22 -0
  93. package/dist/v2/projections/run-context.js +33 -0
  94. package/package.json +20 -2
@@ -17,6 +17,14 @@
17
17
  "sha256": "0af041281661c46cee1c63eebe36ee20d12b9fefc1f95e6baed9d959ae012b6a",
18
18
  "bytes": 7980
19
19
  },
20
+ "application/services/output-normalizer.d.ts": {
21
+ "sha256": "35bd9e50e984132f83dac874f90c2a4e9e8223202c6832426654232c5d7e2236",
22
+ "bytes": 280
23
+ },
24
+ "application/services/output-normalizer.js": {
25
+ "sha256": "0706997dcc1f7937a879b0bd3ac60f64f7edecb38dc5af88dfc439693d0cb8c7",
26
+ "bytes": 1632
27
+ },
20
28
  "application/services/step-output-decoder.d.ts": {
21
29
  "sha256": "fc6b8b60976844b7b30c874c3679f6bb6fe1ca5303e8ee411376e13e982d48c3",
22
30
  "bytes": 300
@@ -254,16 +262,16 @@
254
262
  "bytes": 565
255
263
  },
256
264
  "di/container.js": {
257
- "sha256": "200c41528c64e4e8cf0e04046bfd254cdbe0900c157be2dfd8c302a4a096d193",
258
- "bytes": 18890
265
+ "sha256": "d1fbf1f04bb8cb0e4da2161ef2b773e1fdd3d7e8fe09d0672610dc8f28e8901b",
266
+ "bytes": 19468
259
267
  },
260
268
  "di/tokens.d.ts": {
261
- "sha256": "3b9e46e178107ad65575350da5d99c238e7a4389d3537e67ff516a04df1191fe",
262
- "bytes": 1882
269
+ "sha256": "ce5a748976acc30088847dde3126e2f3f45020e8ef15e897938a76752cbb47b4",
270
+ "bytes": 1949
263
271
  },
264
272
  "di/tokens.js": {
265
- "sha256": "aa90a1af7eba9941663beeeb13a25e2f3ba877ba37cb786bac46b468cc840f1b",
266
- "bytes": 2327
273
+ "sha256": "436804cf8904c4984e459d797e3edae02dee6d0b46e989590397bd226b4d759b",
274
+ "bytes": 2403
267
275
  },
268
276
  "domain/execution/error.d.ts": {
269
277
  "sha256": "2eac85c42ec399a23724f868641eeadd0d196b4d324ee4caaff82a6b46155bd9",
@@ -378,12 +386,12 @@
378
386
  "bytes": 818
379
387
  },
380
388
  "infrastructure/session/HttpServer.d.ts": {
381
- "sha256": "279bb41ed528d514f4394edbf3290c03ad430e7d39a655bc30196f56fc0e474b",
382
- "bytes": 1834
389
+ "sha256": "0e4a40f22a66ab4f1a41aad2899d5ce89ca12e1b52598eb82b105ec8ecf37592",
390
+ "bytes": 1852
383
391
  },
384
392
  "infrastructure/session/HttpServer.js": {
385
- "sha256": "c117d7f8e1387263d35f3a77ba1869d674a4548dd6a1eeacfb8e28eb0c58e297",
386
- "bytes": 31118
393
+ "sha256": "451db710b31e8de848f95383ca6964de2edc3c79063cb464d7b2de1e855c4c01",
394
+ "bytes": 32208
387
395
  },
388
396
  "infrastructure/session/SessionDataNormalizer.d.ts": {
389
397
  "sha256": "c89bb5e00d7d01fb4aa6d0095602541de53c425c6b99b67fa8367eb29cb63e9e",
@@ -406,8 +414,8 @@
406
414
  "bytes": 2186
407
415
  },
408
416
  "infrastructure/session/SessionManager.js": {
409
- "sha256": "f7e2f6c7230029042c5efa553b9247fc9a8eb5a340b584b8e096ed35427ddd97",
410
- "bytes": 19506
417
+ "sha256": "764033447b9ca2cb5d0eb91143b906519bee012f98ff2141b1e9bfc4d7c5d070",
418
+ "bytes": 20154
411
419
  },
412
420
  "infrastructure/session/index.d.ts": {
413
421
  "sha256": "52957847da70fcece6a553334bd899efd8ede55cc31f3aa5eb5e3d4bb70e3862",
@@ -430,24 +438,24 @@
430
438
  "bytes": 2233
431
439
  },
432
440
  "infrastructure/storage/enhanced-multi-source-workflow-storage.js": {
433
- "sha256": "6e40c96134b5bb3d8a9234cfe31c5fe0b7737fd16269c63efb32979fe4838ed4",
434
- "bytes": 17551
441
+ "sha256": "86844980a6c4665bca7a53770c5e5b6aa24d6237cc2c510255366d9734c92b1d",
442
+ "bytes": 18441
435
443
  },
436
444
  "infrastructure/storage/file-workflow-storage.d.ts": {
437
445
  "sha256": "e0172ffb57ada1ad8f713bed5884578133744c266a26b01bca5bcb7f9faf64ed",
438
446
  "bytes": 1455
439
447
  },
440
448
  "infrastructure/storage/file-workflow-storage.js": {
441
- "sha256": "d21ad7175a5bde233e5342f9b590a5145d36752858914fb6de141ac84d252d38",
442
- "bytes": 8559
449
+ "sha256": "e4d5f57112885efc6dca15e545071159afc824774a82e8b5b610ca8557c0054d",
450
+ "bytes": 8579
443
451
  },
444
452
  "infrastructure/storage/git-workflow-storage.d.ts": {
445
- "sha256": "b2f38e4e309e6d24eba34f202a877d930f798c8dea5c3ffd99e9ab6e2564ac18",
446
- "bytes": 1401
453
+ "sha256": "67d7f10e12c78c674ced83da378cd159465d4b09176d8dfca240864b0d6f38c2",
454
+ "bytes": 1373
447
455
  },
448
456
  "infrastructure/storage/git-workflow-storage.js": {
449
- "sha256": "80b40267fc53ef06d20ffbea0f0459022e1fbb087301b93aba4b1d719d55b0d8",
450
- "bytes": 14009
457
+ "sha256": "296d4deb89e38453a02f1a5c88860c96b47d878c1c7e25ec363656b524cca39b",
458
+ "bytes": 14261
451
459
  },
452
460
  "infrastructure/storage/in-memory-storage.d.ts": {
453
461
  "sha256": "4e08908f5d1c66ac27568fec9f16aee8853006603ba052d99a490df7b014c802",
@@ -470,8 +478,8 @@
470
478
  "bytes": 1540
471
479
  },
472
480
  "infrastructure/storage/plugin-workflow-storage.js": {
473
- "sha256": "d51c50d0ffb2319267186b916b96bc1da7cc4fcbf6adaf6b7fc13936e4a51549",
474
- "bytes": 11247
481
+ "sha256": "80ae02e6cbe28adf81ce8d97377aa2b856ac293340a641c3464aa1be49a6b3ee",
482
+ "bytes": 11625
475
483
  },
476
484
  "infrastructure/storage/remote-workflow-storage.d.ts": {
477
485
  "sha256": "b9bf07eb106017c7532bdf742b50fb95a29077cd3ccc71f34b8cf4ce44e5e962",
@@ -513,6 +521,14 @@
513
521
  "sha256": "1437bf9380090920512565c0d685a268af29d8b7e747eff62904e1090e69c854",
514
522
  "bytes": 3735
515
523
  },
524
+ "mcp/handler-factory.d.ts": {
525
+ "sha256": "fad8fff32776b2fe7182708ce0e821c2434fdfce7191390bb9cfaf16a7d31a60",
526
+ "bytes": 796
527
+ },
528
+ "mcp/handler-factory.js": {
529
+ "sha256": "cfdb8853f1e1a9529899852e4e25b027779647f1f94d3db931f4439052a0b607",
530
+ "bytes": 2875
531
+ },
516
532
  "mcp/handlers/session.d.ts": {
517
533
  "sha256": "38926e69a0e4935d1dbcdc53848be9fff0e4d8f96827883da3216f217918fa82",
518
534
  "bytes": 1394
@@ -522,20 +538,20 @@
522
538
  "bytes": 6622
523
539
  },
524
540
  "mcp/handlers/v2-execution-helpers.d.ts": {
525
- "sha256": "67f1faa4f650e33dd567c3ae1d8a5077df1141a0496a2f07ac55eaa122c08704",
526
- "bytes": 4383
541
+ "sha256": "27d2db20098a413ef5fc15e32da6bb33492d9141f463517d9d9d0b1dbfe31772",
542
+ "bytes": 4458
527
543
  },
528
544
  "mcp/handlers/v2-execution-helpers.js": {
529
- "sha256": "1e512e54f2b90630d47148fed604b8f302fe72cfca19fa91592b9fd2115d517f",
530
- "bytes": 12773
545
+ "sha256": "3461024fa43628568e7e9818a4ff7453600266ac34b939e56b55449579e2e840",
546
+ "bytes": 14379
531
547
  },
532
548
  "mcp/handlers/v2-execution.d.ts": {
533
549
  "sha256": "0d96c77d37702b43645399044ceb3f7a772388be7020c2ed4f99e99b21c5dc73",
534
550
  "bytes": 399
535
551
  },
536
552
  "mcp/handlers/v2-execution.js": {
537
- "sha256": "4f3f7d9009007a6795e2dfe998165722f660354323f7e856b26f1a7f62a136be",
538
- "bytes": 53400
553
+ "sha256": "56666820ef1211bf36efa258ea93e797de8c88431f01bf59e22c299172253006",
554
+ "bytes": 69447
539
555
  },
540
556
  "mcp/handlers/v2-workflow.d.ts": {
541
557
  "sha256": "9fbd4d44854e2060c54982b21e72c608970bb2bd107bb15a8388b26c6b492e55",
@@ -562,20 +578,20 @@
562
578
  "bytes": 7535
563
579
  },
564
580
  "mcp/output-schemas.d.ts": {
565
- "sha256": "5a79d1dad82e2a2cf57dde65aafc8aa20fee1513784ee6eb1aba9ae2e71d95a3",
566
- "bytes": 22948
581
+ "sha256": "8361d3ad621448397ade687b9d5228eda487e76d7786b3c661a485805faf169c",
582
+ "bytes": 36039
567
583
  },
568
584
  "mcp/output-schemas.js": {
569
- "sha256": "efe70158aa94df76b17d0200c193fb867c254a5d62ec12d960aaa6f8d8b9f5bb",
570
- "bytes": 6367
585
+ "sha256": "9205bc8beb92795a03c25f2e655f6b7888fa091df45e04f286e5b4edc4f09b24",
586
+ "bytes": 9657
571
587
  },
572
588
  "mcp/server.d.ts": {
573
589
  "sha256": "bec49b8d07e189a53db7100d2f0e1e84ffe03150f04e1b06908ee3282982b4a2",
574
590
  "bytes": 168
575
591
  },
576
592
  "mcp/server.js": {
577
- "sha256": "f6bc4b1f3416d03add7b715a5bdae7955a877eae8008c0d2f8b8490dd8ae5708",
578
- "bytes": 14097
593
+ "sha256": "59de84ffe2f110bbfd94e74d9eebfc19b91428577cf49a6aa9b701bf787a8423",
594
+ "bytes": 9778
579
595
  },
580
596
  "mcp/tool-description-provider.d.ts": {
581
597
  "sha256": "1d46abc3112e11b68e57197e846f5708293ec9b2281fa71a9124ee2aad71e41b",
@@ -590,8 +606,8 @@
590
606
  "bytes": 132
591
607
  },
592
608
  "mcp/tool-descriptions.js": {
593
- "sha256": "c8150119782dadd286e8430e9377b0b727891c414be2396e314423713939d6eb",
594
- "bytes": 7980
609
+ "sha256": "9c5e3b3b8fb06ddc2c27b0ecf26f70f0b5a6121ea7de91fe185c7ace57753503",
610
+ "bytes": 13658
595
611
  },
596
612
  "mcp/tool-factory.d.ts": {
597
613
  "sha256": "0fe3c6b863b2d7aef0c3d659ff54f3a9ee8a0a3c2005b6565d2f8ad517bc7211",
@@ -610,8 +626,8 @@
610
626
  "bytes": 8020
611
627
  },
612
628
  "mcp/types.d.ts": {
613
- "sha256": "3b7d7d7d30d65cd22b47bc9d559820b3f51984476fce11d4f3b6d820e2ce1eb8",
614
- "bytes": 3683
629
+ "sha256": "abd26b93c1f9ebccc11cdb19460ae98a9e27b5467000915a99ec8cb8530488e6",
630
+ "bytes": 3501
615
631
  },
616
632
  "mcp/types.js": {
617
633
  "sha256": "0c12576fd0053115ff096fe26b38f77f1e830b7ec4781aaf94564827c4c9e81a",
@@ -625,21 +641,37 @@
625
641
  "sha256": "a1c1fdd901bf6a074d9a48cef09e0020c59d9838bfb8754ed2aaf9c23191a533",
626
642
  "bytes": 750
627
643
  },
644
+ "mcp/types/workflow-tool-edition.d.ts": {
645
+ "sha256": "7407d318a9f0cc7d6dc81d7cb003e474b3a31a52bf3e600e07ee94f556e2555a",
646
+ "bytes": 1470
647
+ },
648
+ "mcp/types/workflow-tool-edition.js": {
649
+ "sha256": "2dfd26acd3da2c249b728e7fc48c7eab3dc675f786e7689dbdeec53c25589369",
650
+ "bytes": 283
651
+ },
652
+ "mcp/v1/tool-registry.d.ts": {
653
+ "sha256": "9320a6ea5ca6c6a42d3a6131b124b6941bb5cfccdae28461317e99ebb250b2e3",
654
+ "bytes": 408
655
+ },
656
+ "mcp/v1/tool-registry.js": {
657
+ "sha256": "e81dbbcf86f0f8c88edad0b27d78bc93acebd83e52f919cdf69f9c7906233bfc",
658
+ "bytes": 2674
659
+ },
628
660
  "mcp/v2/tool-registry.d.ts": {
629
- "sha256": "e97ae56ce8bc994fb33d130e4dfec6fb65d34dc15b6f828fc36010197da6bdbe",
630
- "bytes": 479
661
+ "sha256": "d4d4927728c3cab1c014661d499dd0119538371bc6c5e821a4cd31df7abebedf",
662
+ "bytes": 408
631
663
  },
632
664
  "mcp/v2/tool-registry.js": {
633
- "sha256": "33bf91363777bbb14d985978e0b056c67a6f7574dd3e8b572603a1b1db457237",
634
- "bytes": 2001
665
+ "sha256": "8c94984fed94f049daeb01559a2490b7db6fedac2544b3e7e50a60b8c7dfa561",
666
+ "bytes": 2121
635
667
  },
636
668
  "mcp/v2/tools.d.ts": {
637
669
  "sha256": "0ef14d1e8e375a17ff7f1edc26ded4a636207c6f9f998136d5910f7f86537602",
638
670
  "bytes": 2579
639
671
  },
640
672
  "mcp/v2/tools.js": {
641
- "sha256": "4b0d5d1c019d3f747b0f4211a606d1aba4944f9e570ae9fecc6831987a6cc16f",
642
- "bytes": 2537
673
+ "sha256": "c989b086779b0a65460a84647f3e8d0998c196b18f4c55beee6fa927a3531d42",
674
+ "bytes": 3686
643
675
  },
644
676
  "mcp/validation/bounded-json.d.ts": {
645
677
  "sha256": "82203ac6123d5c6989606c3b5405aaea99ab829c8958835f9ae3ba45b8bc8fd5",
@@ -705,6 +737,14 @@
705
737
  "sha256": "537c7fd9068f45d5aee4a90e834a27e8bb1ee7fe2c6df860964c125e2979d86e",
706
738
  "bytes": 3670
707
739
  },
740
+ "mcp/workflow-tool-edition-selector.d.ts": {
741
+ "sha256": "75194908a89aaf7dc48fb661aea099827e7032ec76daf8f2de91bd59d46764ef",
742
+ "bytes": 328
743
+ },
744
+ "mcp/workflow-tool-edition-selector.js": {
745
+ "sha256": "08870a96c6f32c09e617f43f6eb83593c15007fe39241d498bd9bbbd420101fc",
746
+ "bytes": 635
747
+ },
708
748
  "mcp/zod-to-json-schema.d.ts": {
709
749
  "sha256": "c80cfa6980a88c823ac47d04706b2223a351de3f4c76ee778f81ad3dda2c766b",
710
750
  "bytes": 456
@@ -902,8 +942,8 @@
902
942
  "bytes": 730
903
943
  },
904
944
  "utils/storage-security.js": {
905
- "sha256": "cb6f259256a9b1b2e6457d1ce0ec953e06f55ea100cc7ca65a4a88348ec63c56",
906
- "bytes": 3309
945
+ "sha256": "54412b5a6b9d64e16a0020cff46fc02e0b91c78e8eb4756a6f76cb10151e5092",
946
+ "bytes": 4284
907
947
  },
908
948
  "utils/workflow-init.d.ts": {
909
949
  "sha256": "c8a65892ca6f34d47bc1e2ea563ec4916065d459611ea16024e4ba609efe273a",
@@ -954,20 +994,52 @@
954
994
  "bytes": 447
955
995
  },
956
996
  "v2/durable-core/constants.d.ts": {
957
- "sha256": "4efb63cb3d6f1464030004cbc7b8d607d2db9be5b98f8f7e9398059a5afe1c91",
958
- "bytes": 830
997
+ "sha256": "cbe7837e0e05aee5050937774a5831c20e946b2c6b69a82e4f41bfc857319092",
998
+ "bytes": 882
959
999
  },
960
1000
  "v2/durable-core/constants.js": {
961
- "sha256": "3cd2a8376bf7c1dc65a7975da9cf31fb6aebd99b2846e094ec1583e23919bb21",
962
- "bytes": 1292
1001
+ "sha256": "f6f4ce3ac866aedca00015577c8865191cc8f1510ea64005bcbcca2a971686dc",
1002
+ "bytes": 1363
963
1003
  },
964
1004
  "v2/durable-core/domain/ack-advance-append-plan.d.ts": {
965
- "sha256": "d74117de64a0484a387fbbe7e129c4e40ab998f799d7664a3667de1c04a23921",
966
- "bytes": 1185
1005
+ "sha256": "8eef66853e8966c87181d0bc18428b55eb3ccde04c985fc3b16204ec303a47bf",
1006
+ "bytes": 1481
967
1007
  },
968
1008
  "v2/durable-core/domain/ack-advance-append-plan.js": {
969
- "sha256": "a4377231f5024e47a4b839ef3ea33711b5b876eef9c12a1c432628421cfebd87",
970
- "bytes": 3448
1009
+ "sha256": "c50899e954f65e275023710c4b2c2789992899136baf17b05ebc2a8944456ad4",
1010
+ "bytes": 5915
1011
+ },
1012
+ "v2/durable-core/domain/blocking-decision.d.ts": {
1013
+ "sha256": "6540ff9a947ad8a661984732c465f7051db8960acbda55c9aa17cbf0bbf3950d",
1014
+ "bytes": 1148
1015
+ },
1016
+ "v2/durable-core/domain/blocking-decision.js": {
1017
+ "sha256": "f3c86be68aaa045c57c942459031a72df2b2d514e32a57905c1a57f8374e947f",
1018
+ "bytes": 1718
1019
+ },
1020
+ "v2/durable-core/domain/context-merge.d.ts": {
1021
+ "sha256": "e3068d49237d2ae351cf88c6829bf612dc7ced6f726b618e7f8aeb7462d34256",
1022
+ "bytes": 381
1023
+ },
1024
+ "v2/durable-core/domain/context-merge.js": {
1025
+ "sha256": "3015757f6e3d909ee6cefd5734ce62b81f1716779c640f71e0e86a925bbc7345",
1026
+ "bytes": 1734
1027
+ },
1028
+ "v2/durable-core/domain/function-definition-expander.d.ts": {
1029
+ "sha256": "2720e7c4dfbd9ec0cdf75eb4384fdbea18d4430aeae7f13d9215f0e5e4980468",
1030
+ "bytes": 687
1031
+ },
1032
+ "v2/durable-core/domain/function-definition-expander.js": {
1033
+ "sha256": "c4f00bece7b2327f379ef7e1527429ef9b0f39a171b76181cf9adeede12ed48e",
1034
+ "bytes": 2617
1035
+ },
1036
+ "v2/durable-core/domain/gap-builder.d.ts": {
1037
+ "sha256": "e8069d47eb586d7f9e986df487d0e8ee7affbfbc60ebff5df437fb7bd647c952",
1038
+ "bytes": 620
1039
+ },
1040
+ "v2/durable-core/domain/gap-builder.js": {
1041
+ "sha256": "7d7869dad8d681ef15d1d302e9ed49be2286f807d9cf8163e7c3396ed5df83ce",
1042
+ "bytes": 833
971
1043
  },
972
1044
  "v2/durable-core/domain/loop-runtime.d.ts": {
973
1045
  "sha256": "ee4f8857d72bf0066bccc351a4e8fd8e4800f3d540e9851bb4978179b8ebfc04",
@@ -993,13 +1065,53 @@
993
1065
  "sha256": "ae16a0df03c3dec30e9ffca0066b6148568966f6660a3c660f82853e077a0cbd",
994
1066
  "bytes": 817
995
1067
  },
1068
+ "v2/durable-core/domain/prompt-renderer.d.ts": {
1069
+ "sha256": "dd9854d489a03ac57975dd1ecee6e73a4bcc8b78e61c5cd5b394307aab708a7b",
1070
+ "bytes": 935
1071
+ },
1072
+ "v2/durable-core/domain/prompt-renderer.js": {
1073
+ "sha256": "26d85771bab5f7901bf2a219f5f3f1a435f2429d46cb4fd2cd45feeb7b788721",
1074
+ "bytes": 6958
1075
+ },
1076
+ "v2/durable-core/domain/reason-model.d.ts": {
1077
+ "sha256": "7921e626f60b767007069a9c898aab1c6fdd15a0aae7c0506ed76b44634029eb",
1078
+ "bytes": 3501
1079
+ },
1080
+ "v2/durable-core/domain/reason-model.js": {
1081
+ "sha256": "8da32d4d699d050e599192991279124d89ba046ad08ea5960827a4437ae0ee88",
1082
+ "bytes": 10134
1083
+ },
1084
+ "v2/durable-core/domain/recap-recovery.d.ts": {
1085
+ "sha256": "82e7b20a22d409f729ccf79d345c00a7e27f1898a465dfca4cd789ff7766a3d6",
1086
+ "bytes": 983
1087
+ },
1088
+ "v2/durable-core/domain/recap-recovery.js": {
1089
+ "sha256": "d0145878abcf5b71fa1fdf87faacb7dee861217450947b6420422c1371d36fad",
1090
+ "bytes": 2879
1091
+ },
1092
+ "v2/durable-core/domain/validation-criteria-validator.d.ts": {
1093
+ "sha256": "2bdd2e9d3c0feb6c68fe0e032a3eecfd8ede2924349c1c43714783847518fd48",
1094
+ "bytes": 499
1095
+ },
1096
+ "v2/durable-core/domain/validation-criteria-validator.js": {
1097
+ "sha256": "95ab18d560424dd01df1b7696a8f1344f41d658d3bc6a91eb4b72fca15d8ba4b",
1098
+ "bytes": 732
1099
+ },
1100
+ "v2/durable-core/domain/validation-requirements-extractor.d.ts": {
1101
+ "sha256": "b1fc2178fc7cbea52fe32400c186c6a9c40622c148a788379e89e9b44c4838f1",
1102
+ "bytes": 188
1103
+ },
1104
+ "v2/durable-core/domain/validation-requirements-extractor.js": {
1105
+ "sha256": "dc37e599678b4a7faf88759bd9e7a1b9622b98656dfe4731ddda74e48436857e",
1106
+ "bytes": 1880
1107
+ },
996
1108
  "v2/durable-core/encoding/base32-lower.d.ts": {
997
- "sha256": "849ef1984db20984f1fce7f40b15d3680c888e01411932d30af6fae4d2132a67",
998
- "bytes": 175
1109
+ "sha256": "1ae6d44917eaf2119286705dcc7240b9bcf7c5e965b780ce52aa17f3b893ad4f",
1110
+ "bytes": 252
999
1111
  },
1000
1112
  "v2/durable-core/encoding/base32-lower.js": {
1001
- "sha256": "9065da38936496a34c2808388b5fb68d8aaac6bd3f0f05de184abc101e07c419",
1002
- "bytes": 934
1113
+ "sha256": "f3a36370e0dc8dcdc3becacb73ebded715d678b9aacab2dc626a8fa0ed84766f",
1114
+ "bytes": 1955
1003
1115
  },
1004
1116
  "v2/durable-core/ids/attempt-id-derivation.d.ts": {
1005
1117
  "sha256": "baee295f114d8d4a74e9fa529e7c72d458a7c7244f50fad9ebbaea06c57dfe92",
@@ -1010,12 +1122,12 @@
1010
1122
  "bytes": 1309
1011
1123
  },
1012
1124
  "v2/durable-core/ids/index.d.ts": {
1013
- "sha256": "5525efc423ad30635996907f7560f53559e49e33a64411a684370ebd1ae56410",
1014
- "bytes": 1792
1125
+ "sha256": "483055c4c668a7bf2901b0c48c14c61878316ec75727702c95edce8f2ef9f0b8",
1126
+ "bytes": 2066
1015
1127
  },
1016
1128
  "v2/durable-core/ids/index.js": {
1017
- "sha256": "a6499471fb67d7a43923c898ef79193390f18912090f27886b52678d13805f11",
1018
- "bytes": 1306
1129
+ "sha256": "8bf9f85fc33cd113915be097f67ec4bfae63d5e774bd2d352ee89cd327a6e43d",
1130
+ "bytes": 1667
1019
1131
  },
1020
1132
  "v2/durable-core/ids/with-healthy-session-lock.d.ts": {
1021
1133
  "sha256": "dc1812850b9ce69c0135d575b0994ac4fa7b874bf9db7a1838b6a3390ef31ae2",
@@ -1025,6 +1137,14 @@
1025
1137
  "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1026
1138
  "bytes": 77
1027
1139
  },
1140
+ "v2/durable-core/ids/workflow-hash-ref.d.ts": {
1141
+ "sha256": "b5f05431b91251c21cf47a0cf7ed8aff5016f3de6274ebef009a1a36a05b21e0",
1142
+ "bytes": 350
1143
+ },
1144
+ "v2/durable-core/ids/workflow-hash-ref.js": {
1145
+ "sha256": "c4f47a488858c0029bdf44b8817eebc21fd1b4f4c618af26992d21b8fff02c9b",
1146
+ "bytes": 1000
1147
+ },
1028
1148
  "v2/durable-core/projections/snapshot-state.d.ts": {
1029
1149
  "sha256": "0ce739459968dad16fb135730d8ea70fa04ce24539b74982801cc8eec01a6130",
1030
1150
  "bytes": 252
@@ -1066,8 +1186,8 @@
1066
1186
  "bytes": 2983
1067
1187
  },
1068
1188
  "v2/durable-core/schemas/export-bundle/index.d.ts": {
1069
- "sha256": "bbfe3948fc95992051ad3eaec4e9adbaa3c3f20cd8d8307edee37aab07123ca7",
1070
- "bytes": 268219
1189
+ "sha256": "05558aff367c80b2943487629cf90b66137694deadc40c069e7c600dd90b1e9e",
1190
+ "bytes": 273987
1071
1191
  },
1072
1192
  "v2/durable-core/schemas/export-bundle/index.js": {
1073
1193
  "sha256": "387b1444f81eb951ab3b66874b1e7407d41345ee60ef4e6dd43f8b4d84d97343",
@@ -1098,12 +1218,12 @@
1098
1218
  "bytes": 521
1099
1219
  },
1100
1220
  "v2/durable-core/schemas/session/events.d.ts": {
1101
- "sha256": "0df1c3728cece2a3100b59a8b8eda790e47561d6196988b566a5d14a32cd782e",
1102
- "bytes": 67557
1221
+ "sha256": "8d14048819d1d25195bf122f161e0a2995112aa90ec57ab2e409051ba98d9969",
1222
+ "bytes": 68920
1103
1223
  },
1104
1224
  "v2/durable-core/schemas/session/events.js": {
1105
- "sha256": "68e29429a82e6bb3154724526f4698f1359351534e980e22750e0e9be80cf52d",
1106
- "bytes": 17432
1225
+ "sha256": "4d717269b0234be99d10d081f39516f3cde48f216fff68fdd749e83c919427e7",
1226
+ "bytes": 17807
1107
1227
  },
1108
1228
  "v2/durable-core/schemas/session/index.d.ts": {
1109
1229
  "sha256": "f4f500d33d212760f480d91fafd4474f7b12f9239a6c5e9c2d80d0fe96207b65",
@@ -1137,37 +1257,69 @@
1137
1257
  "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1138
1258
  "bytes": 77
1139
1259
  },
1260
+ "v2/durable-core/tokens/binary-payload.d.ts": {
1261
+ "sha256": "ec1b0294c87871600ab088ae846dc508c5ad709c92c8fda95be8aaafb86fb53d",
1262
+ "bytes": 1477
1263
+ },
1264
+ "v2/durable-core/tokens/binary-payload.js": {
1265
+ "sha256": "0d5dfc605cb85b015cf693186fdee279a0ae348bd4fdf2dac7af8455faca2379",
1266
+ "bytes": 10772
1267
+ },
1140
1268
  "v2/durable-core/tokens/index.d.ts": {
1141
- "sha256": "79de598d9a56f2cc22671c0644132b24cf4c746c94cbea2f47f4c9044af77b2a",
1142
- "bytes": 738
1269
+ "sha256": "45b0dc5667b5ef002c3d5071fefb763196e88fc4275ba7800b10e4fecdb95fe9",
1270
+ "bytes": 1313
1143
1271
  },
1144
1272
  "v2/durable-core/tokens/index.js": {
1145
- "sha256": "ed96d033e5b4f3bcda9439a384734bc5b7e8e3be7e8593861b2af6469af01404",
1146
- "bytes": 2556
1273
+ "sha256": "631935db667f5fa8dd06e7c903cdc80eb1207ed54a80528c61222d5f3c8ae391",
1274
+ "bytes": 4205
1147
1275
  },
1148
1276
  "v2/durable-core/tokens/payloads.d.ts": {
1149
- "sha256": "568d7ba9f83ea7584b1c815f79b920f8e548e71a244a6dc5709dc981fc5286d4",
1150
- "bytes": 6756
1277
+ "sha256": "e9830eeeb0e9af072fbdd10de4b1ecb13652a873e8a0a25bbd871c9f65da992c",
1278
+ "bytes": 6921
1151
1279
  },
1152
1280
  "v2/durable-core/tokens/payloads.js": {
1153
- "sha256": "24978999201e0413cb193e1fee2b9977335ecaa9e2170b901358c9119fac6c3a",
1154
- "bytes": 2479
1281
+ "sha256": "151393f91330c05482344d4c73ee2b50377a5424bc461c2c07d4b59d8cf3f1e4",
1282
+ "bytes": 2431
1283
+ },
1284
+ "v2/durable-core/tokens/token-codec-capabilities.d.ts": {
1285
+ "sha256": "b86e47b85a2da29565c40870aefb4d207555e3c46f9ce6f195229969bead0ecf",
1286
+ "bytes": 272
1287
+ },
1288
+ "v2/durable-core/tokens/token-codec-capabilities.js": {
1289
+ "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1290
+ "bytes": 77
1291
+ },
1292
+ "v2/durable-core/tokens/token-codec-ports.d.ts": {
1293
+ "sha256": "21c6860792bdfdb8ddc20efbc97ead60bd3e2d8942b3feed626e0f28db60ebcf",
1294
+ "bytes": 1657
1295
+ },
1296
+ "v2/durable-core/tokens/token-codec-ports.js": {
1297
+ "sha256": "c8876795aa187a016ec6a973fb0b3e5eee4e71c3d8f029d6250516d98b4ae071",
1298
+ "bytes": 1096
1155
1299
  },
1156
1300
  "v2/durable-core/tokens/token-codec.d.ts": {
1157
- "sha256": "44bd65c6102b3aa5fcd82d2854f5466263a20c0b9cbd31aa25f169dfeed8e045",
1158
- "bytes": 1349
1301
+ "sha256": "a92d41cfecbbea2bf243a46ebc35651f5d841da8a4f97ea987f1d2fe66ce854c",
1302
+ "bytes": 2172
1159
1303
  },
1160
1304
  "v2/durable-core/tokens/token-codec.js": {
1161
- "sha256": "e82f1a0b45f60c60dfb5b15ce82c911f1e963c503298d9bba37f261bfaeac081",
1162
- "bytes": 3304
1305
+ "sha256": "ff0add14ad869a259a4e9f7c80776efbb0376841cb595a8b3d004863cf12ed12",
1306
+ "bytes": 7485
1163
1307
  },
1164
1308
  "v2/durable-core/tokens/token-signer.d.ts": {
1165
- "sha256": "379da0438772c2274af0494229a6f642382752b9003d56b8a884bddc27504296",
1166
- "bytes": 1127
1309
+ "sha256": "95803efa519d20079b313c065dcb3e890fd0c9d16892e7ecd6bc8821f0c7e106",
1310
+ "bytes": 1887
1167
1311
  },
1168
1312
  "v2/durable-core/tokens/token-signer.js": {
1169
- "sha256": "2460e8bc9586db09aab65604dc815bb897286c06d5c1c7aac2a239963b2cbdc7",
1170
- "bytes": 2967
1313
+ "sha256": "6567004720c38213f64f2dd5850631278ffbcfaea287152b571bf7fab9575d66",
1314
+ "bytes": 5855
1315
+ },
1316
+ "v2/infra/local/base32/index.d.ts": {
1317
+ "sha256": "054ad32b03c22e9c797196024f2c2a43111f682ee4ab15f82ef3b9313c392723",
1318
+ "bytes": 300
1319
+ },
1320
+ "v2/infra/local/base32/index.js": {
1321
+ "sha256": "74f61cc73d04f4e9048d02080a7707a656645bd00ad46c0226526580a34d6c78",
1322
+ "bytes": 1723
1171
1323
  },
1172
1324
  "v2/infra/local/base64url/index.d.ts": {
1173
1325
  "sha256": "42cb6393959b47242cb6363f3336952391b803847b1e022c8ff16e103da4088b",
@@ -1177,6 +1329,14 @@
1177
1329
  "sha256": "46df066c71c1d9a973f6304c79809d38d52c9fe66301bc86267f96e6a23d9770",
1178
1330
  "bytes": 1803
1179
1331
  },
1332
+ "v2/infra/local/bech32m/index.d.ts": {
1333
+ "sha256": "3ff1a406f89fab30bf3c70b62a2c1b87a2f3ab0b1d5c5d8ede64e76b6f8abf5b",
1334
+ "bytes": 425
1335
+ },
1336
+ "v2/infra/local/bech32m/index.js": {
1337
+ "sha256": "58a9c91d4fe8c7974186ee007a36ce7c1bd7908b2600100ce3f06b3ecca80efc",
1338
+ "bytes": 2121
1339
+ },
1180
1340
  "v2/infra/local/crypto/index.d.ts": {
1181
1341
  "sha256": "d2f6cc8e812bd4fb5c83e59f46c4b5588baa1bf33c029239d8162f8669a64370",
1182
1342
  "bytes": 279
@@ -1186,20 +1346,20 @@
1186
1346
  "bytes": 457
1187
1347
  },
1188
1348
  "v2/infra/local/data-dir/index.d.ts": {
1189
- "sha256": "cc5e40d0dd5d2d620c157c923e3c3d7786afe8a02387573d17252870104eea7a",
1190
- "bytes": 669
1349
+ "sha256": "31a95a746737e88b354b33368880684454bfe8c3cdb02a21776509c3c6fd450b",
1350
+ "bytes": 698
1191
1351
  },
1192
1352
  "v2/infra/local/data-dir/index.js": {
1193
- "sha256": "105edb036f096d108338e5e5e4d1c33128a052e869dab2e4c9c432605f01808d",
1194
- "bytes": 2882
1353
+ "sha256": "02d0ad7e3b8c615c6fa3fead6698664d282b2375ea3fc8bd563c12cc7853691c",
1354
+ "bytes": 3012
1195
1355
  },
1196
1356
  "v2/infra/local/fs/index.d.ts": {
1197
1357
  "sha256": "d830aed74ebb3372ea5efa21ec96680cd188fc76dea6078286f5788b3736d2bf",
1198
1358
  "bytes": 1252
1199
1359
  },
1200
1360
  "v2/infra/local/fs/index.js": {
1201
- "sha256": "abe6971989a76bff11acb03f8fccae1a87712ded9cd95b04fcd80042123b1ac7",
1202
- "bytes": 6875
1361
+ "sha256": "97ce973a4bd48aa43e890fb18dc7b8c8b3f8451400539bf15b4c79f3680e2ba3",
1362
+ "bytes": 7045
1203
1363
  },
1204
1364
  "v2/infra/local/hmac-sha256/index.d.ts": {
1205
1365
  "sha256": "dda3865510dfaf2f13947410d998da6ffecc9a2e728b3574f81e69d5db859815",
@@ -1254,8 +1414,8 @@
1254
1414
  "bytes": 1447
1255
1415
  },
1256
1416
  "v2/infra/local/session-store/index.js": {
1257
- "sha256": "8820cf4cb1bc6df3d0ee02f9a7571f8478acdbb6c750fff43a2d5177bd621dea",
1258
- "bytes": 28140
1417
+ "sha256": "53b9ee8545d99e23cfeecb12b39d202fc552c3e89de9fe71b5d1aaaf9afa6d95",
1418
+ "bytes": 29559
1259
1419
  },
1260
1420
  "v2/infra/local/sha256/index.d.ts": {
1261
1421
  "sha256": "8a727b7e54a38275ca6f9f1b8730f97cfc0a212df035df1bdc58e716e6824230",
@@ -1289,6 +1449,14 @@
1289
1449
  "sha256": "5be2cc1d4f143113fb660ff5e21bc9d5898cf0195c95c24daed6cfdaad401956",
1290
1450
  "bytes": 304
1291
1451
  },
1452
+ "v2/ports/base32.port.d.ts": {
1453
+ "sha256": "64aa2f2003a552917cbf71474472fc5e4afffaa29577204bbcbe5ffa989ceb82",
1454
+ "bytes": 489
1455
+ },
1456
+ "v2/ports/base32.port.js": {
1457
+ "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1458
+ "bytes": 77
1459
+ },
1292
1460
  "v2/ports/base64url.port.d.ts": {
1293
1461
  "sha256": "8d6e787c8f6fd4152a06d54f4acaa84120671249d70a9d06c7389d8c2adc4bf8",
1294
1462
  "bytes": 398
@@ -1297,6 +1465,14 @@
1297
1465
  "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1298
1466
  "bytes": 77
1299
1467
  },
1468
+ "v2/ports/bech32m.port.d.ts": {
1469
+ "sha256": "896ac03a6d05d55199d46c119a8c25d8a95d59b5e5859098d2ad74b7931c4d30",
1470
+ "bytes": 467
1471
+ },
1472
+ "v2/ports/bech32m.port.js": {
1473
+ "sha256": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
1474
+ "bytes": 77
1475
+ },
1300
1476
  "v2/ports/data-dir.port.d.ts": {
1301
1477
  "sha256": "4f958bb4b89a87ede17942800903db3c8c55faffea514472fa916aad578050c9",
1302
1478
  "bytes": 467
@@ -1433,6 +1609,14 @@
1433
1609
  "sha256": "2f769d3bf9c4bf45c95c793785c45df8803f52731b4ffaf57bef73df279da397",
1434
1610
  "bytes": 2212
1435
1611
  },
1612
+ "v2/projections/run-context.d.ts": {
1613
+ "sha256": "7bdc4b2bacfb4b42005b7a83d7ddaf8a8d414bed90b948c02dbeeacd741b31cc",
1614
+ "bytes": 909
1615
+ },
1616
+ "v2/projections/run-context.js": {
1617
+ "sha256": "41429486096e791e7ee3c806a3432421179c9a1a0972380e7e89d584bab733d7",
1618
+ "bytes": 1339
1619
+ },
1436
1620
  "v2/projections/run-dag.d.ts": {
1437
1621
  "sha256": "0594d5038cbe0fe88fd6cc037f32a3e88c04660c167757e870e0a2d51e7159a7",
1438
1622
  "bytes": 1516
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import type { ToolContext, ToolResult } from './types.js';
3
+ import type { PreValidateResult } from './validation/workflow-next-prevalidate.js';
4
+ import type { WrappedToolHandler, McpCallToolResult } from './types/workflow-tool-edition.js';
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>>): WrappedToolHandler;
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;