@exaudeus/workrail 3.76.0 → 3.77.1
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/console-ui/assets/{index-DFZjlsUM.js → index-BooFww1c.js} +1 -1
- package/dist/console-ui/index.html +1 -1
- package/dist/daemon/context-loader.d.ts +1 -1
- package/dist/daemon/core/agent-client.d.ts +7 -0
- package/dist/daemon/core/agent-client.js +31 -0
- package/dist/daemon/core/index.d.ts +6 -0
- package/dist/daemon/core/index.js +19 -0
- package/dist/daemon/core/session-context.d.ts +14 -0
- package/dist/daemon/core/session-context.js +21 -0
- package/dist/daemon/core/session-result.d.ts +10 -0
- package/dist/daemon/core/session-result.js +92 -0
- package/dist/daemon/core/system-prompt.d.ts +6 -0
- package/dist/daemon/core/system-prompt.js +151 -0
- package/dist/daemon/io/conversation-log.d.ts +2 -0
- package/dist/daemon/io/conversation-log.js +45 -0
- package/dist/daemon/io/execution-stats.d.ts +7 -0
- package/dist/daemon/io/execution-stats.js +86 -0
- package/dist/daemon/io/index.d.ts +5 -0
- package/dist/daemon/io/index.js +24 -0
- package/dist/daemon/io/session-notes-loader.d.ts +4 -0
- package/dist/daemon/io/session-notes-loader.js +45 -0
- package/dist/daemon/io/soul-loader.d.ts +3 -0
- package/dist/daemon/io/soul-loader.js +68 -0
- package/dist/daemon/io/workspace-context-loader.d.ts +17 -0
- package/dist/daemon/io/workspace-context-loader.js +137 -0
- package/dist/daemon/runner/agent-loop-runner.d.ts +28 -0
- package/dist/daemon/runner/agent-loop-runner.js +250 -0
- package/dist/daemon/runner/construct-tools.d.ts +5 -0
- package/dist/daemon/runner/construct-tools.js +30 -0
- package/dist/daemon/runner/finalize-session.d.ts +3 -0
- package/dist/daemon/runner/finalize-session.js +75 -0
- package/dist/daemon/runner/index.d.ts +8 -0
- package/dist/daemon/runner/index.js +18 -0
- package/dist/daemon/runner/pre-agent-session.d.ts +7 -0
- package/dist/daemon/runner/pre-agent-session.js +227 -0
- package/dist/daemon/runner/runner-types.d.ts +73 -0
- package/dist/daemon/runner/runner-types.js +39 -0
- package/dist/daemon/runner/tool-schemas.d.ts +1 -0
- package/dist/daemon/runner/tool-schemas.js +151 -0
- package/dist/daemon/session-scope.d.ts +1 -1
- package/dist/daemon/startup-recovery.d.ts +20 -0
- package/dist/daemon/startup-recovery.js +323 -0
- package/dist/daemon/state/index.d.ts +6 -0
- package/dist/daemon/state/index.js +14 -0
- package/dist/daemon/state/session-state.d.ts +23 -0
- package/dist/daemon/state/session-state.js +44 -0
- package/dist/daemon/state/stuck-detection.d.ts +22 -0
- package/dist/daemon/state/stuck-detection.js +25 -0
- package/dist/daemon/state/terminal-signal.d.ts +9 -0
- package/dist/daemon/state/terminal-signal.js +10 -0
- package/dist/daemon/tools/file-tools.d.ts +1 -1
- package/dist/daemon/turn-end/detect-stuck.d.ts +2 -2
- package/dist/daemon/turn-end/detect-stuck.js +2 -2
- package/dist/daemon/turn-end/step-injector.d.ts +1 -1
- package/dist/daemon/types.d.ts +105 -0
- package/dist/daemon/types.js +11 -0
- package/dist/daemon/workflow-enricher.d.ts +16 -0
- package/dist/daemon/workflow-enricher.js +58 -0
- package/dist/daemon/workflow-runner.d.ts +13 -277
- package/dist/daemon/workflow-runner.js +63 -1421
- package/dist/manifest.json +231 -31
- package/dist/trigger/coordinator-deps.d.ts +1 -1
- package/dist/trigger/delivery-client.d.ts +1 -1
- package/dist/trigger/delivery-pipeline.d.ts +1 -1
- package/dist/trigger/notification-service.d.ts +1 -1
- package/dist/trigger/trigger-listener.js +6 -2
- package/dist/trigger/trigger-router.d.ts +2 -2
- package/docs/ideas/backlog.md +249 -25
- package/docs/reference/worktrain-daemon-invariants.md +33 -49
- package/docs/vision.md +5 -15
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -473,8 +473,8 @@
|
|
|
473
473
|
"sha256": "5fe866e54f796975dec5d8ba9983aefd86074db212d3fccd64eed04bc9f0b3da",
|
|
474
474
|
"bytes": 8011
|
|
475
475
|
},
|
|
476
|
-
"console-ui/assets/index-
|
|
477
|
-
"sha256": "
|
|
476
|
+
"console-ui/assets/index-BooFww1c.js": {
|
|
477
|
+
"sha256": "74a7000918d3c20decbab9563481fd738471cbbbfe0e13a57ac443283ee4c410",
|
|
478
478
|
"bytes": 767524
|
|
479
479
|
},
|
|
480
480
|
"console-ui/assets/index-DHrKiMCf.css": {
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"bytes": 60673
|
|
483
483
|
},
|
|
484
484
|
"console-ui/index.html": {
|
|
485
|
-
"sha256": "
|
|
485
|
+
"sha256": "34573fa44dba81dda52ce425f674ebbee9283bd1ec4ab405dd8ef20f8a0d1760",
|
|
486
486
|
"bytes": 417
|
|
487
487
|
},
|
|
488
488
|
"console/standalone-console.d.ts": {
|
|
@@ -638,13 +638,53 @@
|
|
|
638
638
|
"bytes": 10607
|
|
639
639
|
},
|
|
640
640
|
"daemon/context-loader.d.ts": {
|
|
641
|
-
"sha256": "
|
|
642
|
-
"bytes":
|
|
641
|
+
"sha256": "73992e98475c16b94b880c1daac1da0d0650adfb895d1415ac18e73606f99a5c",
|
|
642
|
+
"bytes": 1365
|
|
643
643
|
},
|
|
644
644
|
"daemon/context-loader.js": {
|
|
645
645
|
"sha256": "a3db45565ef02ca178b8d66ea93cb2877def528f3008dc067787d9983c589bd0",
|
|
646
646
|
"bytes": 1255
|
|
647
647
|
},
|
|
648
|
+
"daemon/core/agent-client.d.ts": {
|
|
649
|
+
"sha256": "b95f30d0be2524f9750aded5f0810e163aa32ba36a9dab0786b7d5aef341e5c0",
|
|
650
|
+
"bytes": 338
|
|
651
|
+
},
|
|
652
|
+
"daemon/core/agent-client.js": {
|
|
653
|
+
"sha256": "75250e4b7f020296462540fddd01c3e84c4a4de35d59b35f2499dab606a1797b",
|
|
654
|
+
"bytes": 1383
|
|
655
|
+
},
|
|
656
|
+
"daemon/core/index.d.ts": {
|
|
657
|
+
"sha256": "cb0faa0a552fa66a697e812f0a19fd6dcba717d2653ce504a1b01a03e7d013c1",
|
|
658
|
+
"bytes": 534
|
|
659
|
+
},
|
|
660
|
+
"daemon/core/index.js": {
|
|
661
|
+
"sha256": "ad816a5eea11808d018c4bee285df319d6e67b5a0f3ddc70fd218c3fb59b9da8",
|
|
662
|
+
"bytes": 2465
|
|
663
|
+
},
|
|
664
|
+
"daemon/core/session-context.d.ts": {
|
|
665
|
+
"sha256": "d42dd909fb2729cc5105c147f7c902af494d9ff814335ba9a8e62c070894e2dc",
|
|
666
|
+
"bytes": 752
|
|
667
|
+
},
|
|
668
|
+
"daemon/core/session-context.js": {
|
|
669
|
+
"sha256": "d2304790c1b8d07b3c013a4c8bfac2e6cbd6570ffe41047effea98b27cc6d56f",
|
|
670
|
+
"bytes": 1545
|
|
671
|
+
},
|
|
672
|
+
"daemon/core/session-result.d.ts": {
|
|
673
|
+
"sha256": "9f71824862fd5d258b3cd5cb4b3a830e0ac04afefb6515e91fbb9449c8922ca8",
|
|
674
|
+
"bytes": 750
|
|
675
|
+
},
|
|
676
|
+
"daemon/core/session-result.js": {
|
|
677
|
+
"sha256": "d29501089caeba4fa21ccd4be31d585894f66879543b90bbc17fc0e7dfd1d584",
|
|
678
|
+
"bytes": 4129
|
|
679
|
+
},
|
|
680
|
+
"daemon/core/system-prompt.d.ts": {
|
|
681
|
+
"sha256": "13199ad594625b937cfda88116cc9297aef12fc3d8bb17dfad60c4ffd48741a3",
|
|
682
|
+
"bytes": 5275
|
|
683
|
+
},
|
|
684
|
+
"daemon/core/system-prompt.js": {
|
|
685
|
+
"sha256": "b7ae5966fbc18639626780ea8911465c1d7d0c34f161f0c38d7c702fffeafa14",
|
|
686
|
+
"bytes": 9661
|
|
687
|
+
},
|
|
648
688
|
"daemon/daemon-env.d.ts": {
|
|
649
689
|
"sha256": "4546caacd79c21b162d2d03c1cde24d4f6d232e684229828722be75d4a33920a",
|
|
650
690
|
"bytes": 213
|
|
@@ -661,6 +701,54 @@
|
|
|
661
701
|
"sha256": "b6841eef4634bb266faf81961c1e387b535dd64a74d58582f3f2bad8c3469d95",
|
|
662
702
|
"bytes": 2252
|
|
663
703
|
},
|
|
704
|
+
"daemon/io/conversation-log.d.ts": {
|
|
705
|
+
"sha256": "eff40d1f2f707469b94665741de33ca3a505863d5b97aa8a73f070458e3cf5b5",
|
|
706
|
+
"bytes": 194
|
|
707
|
+
},
|
|
708
|
+
"daemon/io/conversation-log.js": {
|
|
709
|
+
"sha256": "16d2e4d17e8e2c6db568c2a3ff1f0140e1cd8d533732466ab1a77cfb1fb8391f",
|
|
710
|
+
"bytes": 1908
|
|
711
|
+
},
|
|
712
|
+
"daemon/io/execution-stats.d.ts": {
|
|
713
|
+
"sha256": "0d4957762e3424be38d98a5b16bd291fc322320f3138b0a19a3eeb0ce01624da",
|
|
714
|
+
"bytes": 452
|
|
715
|
+
},
|
|
716
|
+
"daemon/io/execution-stats.js": {
|
|
717
|
+
"sha256": "acaeb02b970690d10e6a56164757edf36959922d03d58a5455fca37323797b78",
|
|
718
|
+
"bytes": 3627
|
|
719
|
+
},
|
|
720
|
+
"daemon/io/index.d.ts": {
|
|
721
|
+
"sha256": "7bf1ae53abe1839eeb5da437c61f8ffb03257c70f988b1f8c1e641d166682cdb",
|
|
722
|
+
"bytes": 569
|
|
723
|
+
},
|
|
724
|
+
"daemon/io/index.js": {
|
|
725
|
+
"sha256": "28116a31ba2f13eab3d745a3721872a683ee75d962abe532563c2e944c6ec564",
|
|
726
|
+
"bytes": 3378
|
|
727
|
+
},
|
|
728
|
+
"daemon/io/session-notes-loader.d.ts": {
|
|
729
|
+
"sha256": "83b9d9cdbeb1dbb324462e58193055f91c36afe188dcda0f86ba232f4e27bae8",
|
|
730
|
+
"bytes": 271
|
|
731
|
+
},
|
|
732
|
+
"daemon/io/session-notes-loader.js": {
|
|
733
|
+
"sha256": "17338669b9f4a2dde4658c13c50c1a1b6c90255eed9a0d4c53ca9d5bb4bf3999",
|
|
734
|
+
"bytes": 2491
|
|
735
|
+
},
|
|
736
|
+
"daemon/io/soul-loader.d.ts": {
|
|
737
|
+
"sha256": "911aa78442437dc54ac40ba1d56232a1db1e8cc84bf7fc4b99049051f4f1c90a",
|
|
738
|
+
"bytes": 204
|
|
739
|
+
},
|
|
740
|
+
"daemon/io/soul-loader.js": {
|
|
741
|
+
"sha256": "4d186fdd67baa26e76952a509267f347617ee474aa28f3822e36037a5ef71fa9",
|
|
742
|
+
"bytes": 3269
|
|
743
|
+
},
|
|
744
|
+
"daemon/io/workspace-context-loader.d.ts": {
|
|
745
|
+
"sha256": "a8b3fd833fa43e00a4f3e134bf474eca7982ab85f088773a08ebb97cabb2719e",
|
|
746
|
+
"bytes": 705
|
|
747
|
+
},
|
|
748
|
+
"daemon/io/workspace-context-loader.js": {
|
|
749
|
+
"sha256": "e8a9afcaeb87c120bc7763d9d8bbe278a4781adb5e3a3bf27758f6dde527ac9b",
|
|
750
|
+
"bytes": 6311
|
|
751
|
+
},
|
|
664
752
|
"daemon/pi-mono-loader.d.ts": {
|
|
665
753
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
666
754
|
"bytes": 0
|
|
@@ -669,6 +757,62 @@
|
|
|
669
757
|
"sha256": "77f5eec38c5ef075e11892244ccf9e249d82937e07401398df98319568775a17",
|
|
670
758
|
"bytes": 14
|
|
671
759
|
},
|
|
760
|
+
"daemon/runner/agent-loop-runner.d.ts": {
|
|
761
|
+
"sha256": "605a8bde5f1a2be3d082d52e50b67d1d2e6323faae8dfed95c80db2760a33ce3",
|
|
762
|
+
"bytes": 2021
|
|
763
|
+
},
|
|
764
|
+
"daemon/runner/agent-loop-runner.js": {
|
|
765
|
+
"sha256": "95ba3bad184189519c228b50b6c6dbd03c8daf2d6d43c2cf4ee8205bda3ff67b",
|
|
766
|
+
"bytes": 13466
|
|
767
|
+
},
|
|
768
|
+
"daemon/runner/construct-tools.d.ts": {
|
|
769
|
+
"sha256": "6386bc54bcb95bb7ea414c05e5b993314a50339989476bc6d4927b12c5931679",
|
|
770
|
+
"bytes": 407
|
|
771
|
+
},
|
|
772
|
+
"daemon/runner/construct-tools.js": {
|
|
773
|
+
"sha256": "881f36fecee3d03a58d7868a0ea656fb2c9be875f770d6d5cbc8286e69224f6d",
|
|
774
|
+
"bytes": 2415
|
|
775
|
+
},
|
|
776
|
+
"daemon/runner/finalize-session.d.ts": {
|
|
777
|
+
"sha256": "fc5c33925bb08ec5f39c5a10699a61dd52fe4fd9e565b4b82fba7cf1cc3bdbbc",
|
|
778
|
+
"bytes": 225
|
|
779
|
+
},
|
|
780
|
+
"daemon/runner/finalize-session.js": {
|
|
781
|
+
"sha256": "7cd8800a1000ea73c6caf044d6ac0b2be457baf871faff6b1ffdfeba50ca95e6",
|
|
782
|
+
"bytes": 3345
|
|
783
|
+
},
|
|
784
|
+
"daemon/runner/index.d.ts": {
|
|
785
|
+
"sha256": "f404bd099f858697fbaaa8e69d1fffa2e267d8d9d1545a41bdf3fe595c8cd764",
|
|
786
|
+
"bytes": 609
|
|
787
|
+
},
|
|
788
|
+
"daemon/runner/index.js": {
|
|
789
|
+
"sha256": "52261e26320d94e053f79d6129f8d09f00d4e03fdc1bcee9edb3d13f13cfc978",
|
|
790
|
+
"bytes": 1978
|
|
791
|
+
},
|
|
792
|
+
"daemon/runner/pre-agent-session.d.ts": {
|
|
793
|
+
"sha256": "a500ff9d433245f37c3bf14d1c03ca5b291873e2d9da019d66760dba81df3bb9",
|
|
794
|
+
"bytes": 770
|
|
795
|
+
},
|
|
796
|
+
"daemon/runner/pre-agent-session.js": {
|
|
797
|
+
"sha256": "56c8bce2a4be1409973cfc2b6bcbdade90d6d404559256aaa74e5d10fb674c09",
|
|
798
|
+
"bytes": 10675
|
|
799
|
+
},
|
|
800
|
+
"daemon/runner/runner-types.d.ts": {
|
|
801
|
+
"sha256": "e8760c0c0dd21fdf31807894c6bc2e237b5f8bd21db58a29abd6641c51a91897",
|
|
802
|
+
"bytes": 2889
|
|
803
|
+
},
|
|
804
|
+
"daemon/runner/runner-types.js": {
|
|
805
|
+
"sha256": "7a81aac9aeafd9fd7b8037dae4b8e4a5e35c6b363ab946d6431de081d873ef5d",
|
|
806
|
+
"bytes": 1637
|
|
807
|
+
},
|
|
808
|
+
"daemon/runner/tool-schemas.d.ts": {
|
|
809
|
+
"sha256": "40fdcc52dd898cd421381e39c85d49c445d86d343c4abfc3c848a062fd58492d",
|
|
810
|
+
"bytes": 59
|
|
811
|
+
},
|
|
812
|
+
"daemon/runner/tool-schemas.js": {
|
|
813
|
+
"sha256": "2c130b34dcfce901aabd30a8eb9b48b7fa5dd4e7c1051a8bf806f281bc86a2c9",
|
|
814
|
+
"bytes": 8198
|
|
815
|
+
},
|
|
672
816
|
"daemon/session-recovery-policy.d.ts": {
|
|
673
817
|
"sha256": "89b50c3543268c74a955103ca04e990a259350ccfe900bcb0bd0ce0382d28911",
|
|
674
818
|
"bytes": 249
|
|
@@ -678,8 +822,8 @@
|
|
|
678
822
|
"bytes": 247
|
|
679
823
|
},
|
|
680
824
|
"daemon/session-scope.d.ts": {
|
|
681
|
-
"sha256": "
|
|
682
|
-
"bytes":
|
|
825
|
+
"sha256": "278afe2add5fa0d56eb3736d21d027bee91d1f8a9d50594c741205e807d529f4",
|
|
826
|
+
"bytes": 1671
|
|
683
827
|
},
|
|
684
828
|
"daemon/session-scope.js": {
|
|
685
829
|
"sha256": "2f5295aa36b8d46b162a2b1f4d6f13af00517796aa468956563a8de46e2ecd56",
|
|
@@ -693,6 +837,46 @@
|
|
|
693
837
|
"sha256": "d7c425a03d9a39994a2a961470a892bc8c5936b697b6a59fa161d19d72825015",
|
|
694
838
|
"bytes": 1512
|
|
695
839
|
},
|
|
840
|
+
"daemon/startup-recovery.d.ts": {
|
|
841
|
+
"sha256": "873bf9fd959912a25ea4d190199e9c62c97f239ef015c58d1146ccd8e809df61",
|
|
842
|
+
"bytes": 1552
|
|
843
|
+
},
|
|
844
|
+
"daemon/startup-recovery.js": {
|
|
845
|
+
"sha256": "a40f8974640340e6f83db38ac849de2b978bff30b8e05ee070d440de6b180881",
|
|
846
|
+
"bytes": 16073
|
|
847
|
+
},
|
|
848
|
+
"daemon/state/index.d.ts": {
|
|
849
|
+
"sha256": "73a88f07267b952425222bfea4ef747f4881daf28f325da5d126194393699faf",
|
|
850
|
+
"bytes": 437
|
|
851
|
+
},
|
|
852
|
+
"daemon/state/index.js": {
|
|
853
|
+
"sha256": "25dd736ae79b6f1f765294d54f246b9f0e37b3c6e1e4b12ab668251e42ea5ca8",
|
|
854
|
+
"bytes": 1574
|
|
855
|
+
},
|
|
856
|
+
"daemon/state/session-state.d.ts": {
|
|
857
|
+
"sha256": "7dc9b8c53447da67d0e1c5ff98792c57dc4e19b23858e8afc0e51a103256713b",
|
|
858
|
+
"bytes": 1129
|
|
859
|
+
},
|
|
860
|
+
"daemon/state/session-state.js": {
|
|
861
|
+
"sha256": "6f01bde9558bd3c985011195b175297c5bbe471df7de803d0db7af960cd5b8fb",
|
|
862
|
+
"bytes": 1430
|
|
863
|
+
},
|
|
864
|
+
"daemon/state/stuck-detection.d.ts": {
|
|
865
|
+
"sha256": "772ed526fb71302f4a1e760b016ba9c733f9dc6691f18e907b5a85dde3790c8a",
|
|
866
|
+
"bytes": 654
|
|
867
|
+
},
|
|
868
|
+
"daemon/state/stuck-detection.js": {
|
|
869
|
+
"sha256": "9222e8370156108d70166ca1463227a13c952cbe3a4e048e23897a94ea42a017",
|
|
870
|
+
"bytes": 1171
|
|
871
|
+
},
|
|
872
|
+
"daemon/state/terminal-signal.d.ts": {
|
|
873
|
+
"sha256": "9ddebaf0a95f405f159eaf84ed9a340a544b6b57389eb1e52c6cfbfaa6017615",
|
|
874
|
+
"bytes": 369
|
|
875
|
+
},
|
|
876
|
+
"daemon/state/terminal-signal.js": {
|
|
877
|
+
"sha256": "33505487f32b6dae0256f9d6dde5810cc0596426c4a930e674f2bd58d6ac0962",
|
|
878
|
+
"bytes": 295
|
|
879
|
+
},
|
|
696
880
|
"daemon/stats-summary.d.ts": {
|
|
697
881
|
"sha256": "2136d6f7345fe54c2b881757aa26062dbd1ed54d75e0df5feecd4c0588571c6b",
|
|
698
882
|
"bytes": 76
|
|
@@ -726,8 +910,8 @@
|
|
|
726
910
|
"bytes": 11377
|
|
727
911
|
},
|
|
728
912
|
"daemon/tools/file-tools.d.ts": {
|
|
729
|
-
"sha256": "
|
|
730
|
-
"bytes":
|
|
913
|
+
"sha256": "5ae91a3fab8cd1e42817af93532e135d7a0bfd1efe7ac7d31337376a739c9646",
|
|
914
|
+
"bytes": 855
|
|
731
915
|
},
|
|
732
916
|
"daemon/tools/file-tools.js": {
|
|
733
917
|
"sha256": "289a440a337f11b04192884278d85f8a9a0b3240f3b53583a0c3fd0d78eda0d5",
|
|
@@ -774,28 +958,44 @@
|
|
|
774
958
|
"bytes": 382
|
|
775
959
|
},
|
|
776
960
|
"daemon/turn-end/detect-stuck.d.ts": {
|
|
777
|
-
"sha256": "
|
|
778
|
-
"bytes":
|
|
961
|
+
"sha256": "d52253c4c7ed17350afb52bbaa748d5ecb65f8f89d6142d61f6f911a20030b50",
|
|
962
|
+
"bytes": 160
|
|
779
963
|
},
|
|
780
964
|
"daemon/turn-end/detect-stuck.js": {
|
|
781
|
-
"sha256": "
|
|
782
|
-
"bytes":
|
|
965
|
+
"sha256": "0ec5c28ddcc806baf17a27ecb3163cd453b79f7127e931cb597389a5a410f617",
|
|
966
|
+
"bytes": 315
|
|
783
967
|
},
|
|
784
968
|
"daemon/turn-end/step-injector.d.ts": {
|
|
785
|
-
"sha256": "
|
|
786
|
-
"bytes":
|
|
969
|
+
"sha256": "44d9c277327d5d9b438155f8cb7817a660dcac4cd155bd2c1d0c169c7581d0af",
|
|
970
|
+
"bytes": 251
|
|
787
971
|
},
|
|
788
972
|
"daemon/turn-end/step-injector.js": {
|
|
789
973
|
"sha256": "073b6735f7bfa59c7e7ee398a9290fb15484465640d86f8bf28f06be83d6040f",
|
|
790
974
|
"bytes": 429
|
|
791
975
|
},
|
|
976
|
+
"daemon/types.d.ts": {
|
|
977
|
+
"sha256": "e2df5c78598f38ee2b033f48b49c1acee0e8308186b535e62262c0b9cf1b361d",
|
|
978
|
+
"bytes": 3625
|
|
979
|
+
},
|
|
980
|
+
"daemon/types.js": {
|
|
981
|
+
"sha256": "fdfd53db3769331d50bd9265b6c5050fd9a7d0ccf55a950519b385cc849c92b8",
|
|
982
|
+
"bytes": 404
|
|
983
|
+
},
|
|
984
|
+
"daemon/workflow-enricher.d.ts": {
|
|
985
|
+
"sha256": "eff2e65cd34eb03405bd9d070a79f497ea80b9f44e9ef8268f82332e1b8b37eb",
|
|
986
|
+
"bytes": 986
|
|
987
|
+
},
|
|
988
|
+
"daemon/workflow-enricher.js": {
|
|
989
|
+
"sha256": "bbec1d3f2f6cfed4b3dc9926a7b832b325f6991b37b1e14e0d06629a2967c1d6",
|
|
990
|
+
"bytes": 2293
|
|
991
|
+
},
|
|
792
992
|
"daemon/workflow-runner.d.ts": {
|
|
793
|
-
"sha256": "
|
|
794
|
-
"bytes":
|
|
993
|
+
"sha256": "9c6152b4eb2a4ce8fb967f5600cadc7d8a534dfa38b4728b87b59261bfd6f0b0",
|
|
994
|
+
"bytes": 3159
|
|
795
995
|
},
|
|
796
996
|
"daemon/workflow-runner.js": {
|
|
797
|
-
"sha256": "
|
|
798
|
-
"bytes":
|
|
997
|
+
"sha256": "ef4fcb5e9c83e081ab4c652babea8260320e744fbb5491fc344fc7c565520c08",
|
|
998
|
+
"bytes": 14314
|
|
799
999
|
},
|
|
800
1000
|
"di/container.d.ts": {
|
|
801
1001
|
"sha256": "003bb7fb7478d627524b9b1e76bd0a963a243794a687ff233b96dc0e33a06d9f",
|
|
@@ -1806,8 +2006,8 @@
|
|
|
1806
2006
|
"bytes": 2763
|
|
1807
2007
|
},
|
|
1808
2008
|
"trigger/coordinator-deps.d.ts": {
|
|
1809
|
-
"sha256": "
|
|
1810
|
-
"bytes":
|
|
2009
|
+
"sha256": "c036b2ede68110b345028708074854ecd0be7f5d644231240b54d9692ef5c410",
|
|
2010
|
+
"bytes": 844
|
|
1811
2011
|
},
|
|
1812
2012
|
"trigger/coordinator-deps.js": {
|
|
1813
2013
|
"sha256": "ceff71f1fd76b8ce7c490eee80fb2c13496d53adc321b85be525784eeafe930a",
|
|
@@ -1822,16 +2022,16 @@
|
|
|
1822
2022
|
"bytes": 14651
|
|
1823
2023
|
},
|
|
1824
2024
|
"trigger/delivery-client.d.ts": {
|
|
1825
|
-
"sha256": "
|
|
1826
|
-
"bytes":
|
|
2025
|
+
"sha256": "e625150a698efdb47fae33d2125d77202e549ac8d9e570fe1ee5f0ea8726961d",
|
|
2026
|
+
"bytes": 523
|
|
1827
2027
|
},
|
|
1828
2028
|
"trigger/delivery-client.js": {
|
|
1829
2029
|
"sha256": "da358ced4e99c327493b6d3ca975a623aca21f72e68787a092b2760601801c99",
|
|
1830
2030
|
"bytes": 1269
|
|
1831
2031
|
},
|
|
1832
2032
|
"trigger/delivery-pipeline.d.ts": {
|
|
1833
|
-
"sha256": "
|
|
1834
|
-
"bytes":
|
|
2033
|
+
"sha256": "1ea1455aba07f64548c4c2bce5d28a8866a2476db513f1f96c73180ea7637278",
|
|
2034
|
+
"bytes": 1453
|
|
1835
2035
|
},
|
|
1836
2036
|
"trigger/delivery-pipeline.js": {
|
|
1837
2037
|
"sha256": "ba011b9360749df47ee540cea08ccba57534a57a8a1d91d3ec240f990396be14",
|
|
@@ -1862,8 +2062,8 @@
|
|
|
1862
2062
|
"bytes": 1222
|
|
1863
2063
|
},
|
|
1864
2064
|
"trigger/notification-service.d.ts": {
|
|
1865
|
-
"sha256": "
|
|
1866
|
-
"bytes":
|
|
2065
|
+
"sha256": "2934a798e421b2bd05300fe0deb07dc674eb3c2dd19842b4a4c8540f633981f1",
|
|
2066
|
+
"bytes": 1572
|
|
1867
2067
|
},
|
|
1868
2068
|
"trigger/notification-service.js": {
|
|
1869
2069
|
"sha256": "9d9a5951229f2c6ffaa413a7421efa6611d9ca0ed456edf5c297a4506e84a80e",
|
|
@@ -1890,12 +2090,12 @@
|
|
|
1890
2090
|
"bytes": 1744
|
|
1891
2091
|
},
|
|
1892
2092
|
"trigger/trigger-listener.js": {
|
|
1893
|
-
"sha256": "
|
|
1894
|
-
"bytes":
|
|
2093
|
+
"sha256": "845ea2563561a093487d090005d033157820f12ab6a879f39280ffdfca176340",
|
|
2094
|
+
"bytes": 13715
|
|
1895
2095
|
},
|
|
1896
2096
|
"trigger/trigger-router.d.ts": {
|
|
1897
|
-
"sha256": "
|
|
1898
|
-
"bytes":
|
|
2097
|
+
"sha256": "f5b7ca038477c8256bdaa540b84c0aedeb0c65710dc4aa047bd8b5f6c3c91b68",
|
|
2098
|
+
"bytes": 3288
|
|
1899
2099
|
},
|
|
1900
2100
|
"trigger/trigger-router.js": {
|
|
1901
2101
|
"sha256": "ec971ba1f36a6ace7521fad51ba833fa804d5591b3b51e9805e331bbf5ef7159",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { V2ToolContext } from '../mcp/types.js';
|
|
2
2
|
import type { AdaptiveCoordinatorDeps } from '../coordinators/adaptive-pipeline.js';
|
|
3
|
-
import type { WorkflowTrigger, SessionSource } from '../daemon/
|
|
3
|
+
import type { WorkflowTrigger, SessionSource } from '../daemon/types.js';
|
|
4
4
|
import type { ConsoleService } from '../v2/usecases/console-service.js';
|
|
5
5
|
export interface CoordinatorDepsDependencies {
|
|
6
6
|
readonly ctx: V2ToolContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Result } from '../runtime/result.js';
|
|
2
|
-
import type { WorkflowRunResult } from '../daemon/
|
|
2
|
+
import type { WorkflowRunResult } from '../daemon/types.js';
|
|
3
3
|
import type { DaemonEventEmitter } from '../daemon/daemon-events.js';
|
|
4
4
|
export type DeliveryError = {
|
|
5
5
|
readonly kind: 'http_error';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowRunSuccess } from '../daemon/
|
|
1
|
+
import type { WorkflowRunSuccess } from '../daemon/types.js';
|
|
2
2
|
import type { TriggerDefinition } from './types.js';
|
|
3
3
|
import type { ExecFn, HandoffArtifact } from './delivery-action.js';
|
|
4
4
|
import type { ExecutionSessionGateV2 } from '../v2/usecases/execution-session-gate.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowRunResult } from '../daemon/
|
|
1
|
+
import type { WorkflowRunResult } from '../daemon/types.js';
|
|
2
2
|
export type ExecFileNotifyFn = (file: string, args: readonly string[], options: {
|
|
3
3
|
timeout: number;
|
|
4
4
|
}, callback: (error: Error | null) => void) => void;
|
|
@@ -49,6 +49,8 @@ const active_sessions_js_1 = require("../daemon/active-sessions.js");
|
|
|
49
49
|
const config_file_js_1 = require("../config/config-file.js");
|
|
50
50
|
const notification_service_js_1 = require("./notification-service.js");
|
|
51
51
|
const workflow_runner_js_1 = require("../daemon/workflow-runner.js");
|
|
52
|
+
const workflow_enricher_js_1 = require("../daemon/workflow-enricher.js");
|
|
53
|
+
const startup_recovery_js_1 = require("../daemon/startup-recovery.js");
|
|
52
54
|
const types_js_1 = require("./types.js");
|
|
53
55
|
const polling_scheduler_js_1 = require("./polling-scheduler.js");
|
|
54
56
|
const polled_event_store_js_1 = require("./polled-event-store.js");
|
|
@@ -226,7 +228,9 @@ async function startTriggerListener(ctx, options) {
|
|
|
226
228
|
runImplement: implement_js_1.runImplementPipeline,
|
|
227
229
|
runFull: full_pipeline_js_1.runFullPipeline,
|
|
228
230
|
};
|
|
229
|
-
const
|
|
231
|
+
const enricherDeps = (0, workflow_enricher_js_1.createWorkflowEnricherDeps)();
|
|
232
|
+
const baseRunWorkflow = options.runWorkflowFn ?? workflow_runner_js_1.runWorkflow;
|
|
233
|
+
const runWorkflowFn = (trigger, ctx, apiKey, daemonRegistry, emitter, activeSessionSet, _statsDir, _sessionsDir, source) => baseRunWorkflow(trigger, ctx, apiKey, daemonRegistry, emitter, activeSessionSet, _statsDir, _sessionsDir, source, enricherDeps);
|
|
230
234
|
const router = new trigger_router_js_1.TriggerRouter(triggerIndex, ctx, apiKey, runWorkflowFn, undefined, maxConcurrentSessions, options.emitter, notificationService, activeSessionSet, coordinatorDeps, modeExecutors);
|
|
231
235
|
coordinatorDeps.setDispatch(router.dispatch.bind(router));
|
|
232
236
|
const app = createTriggerApp(router);
|
|
@@ -234,7 +238,7 @@ async function startTriggerListener(ctx, options) {
|
|
|
234
238
|
const polledEventStore = new polled_event_store_js_1.PolledEventStore(env);
|
|
235
239
|
const pollingScheduler = new polling_scheduler_js_1.PollingScheduler(allTriggers, router, polledEventStore, options.fetchFn);
|
|
236
240
|
pollingScheduler.start();
|
|
237
|
-
await (0,
|
|
241
|
+
await (0, startup_recovery_js_1.runStartupRecovery)(undefined, undefined, ctx, undefined, undefined, runWorkflowFn, apiKey).catch((err) => {
|
|
238
242
|
console.warn('[TriggerListener] Startup recovery encountered an unexpected error:', err instanceof Error ? err.message : String(err));
|
|
239
243
|
});
|
|
240
244
|
const portEnv = env['WORKRAIL_TRIGGER_PORT'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowTrigger, WorkflowRunResult, SessionSource } from '../daemon/
|
|
1
|
+
import type { WorkflowTrigger, WorkflowRunResult, SessionSource } from '../daemon/types.js';
|
|
2
2
|
import type { ActiveSessionSet } from '../daemon/active-sessions.js';
|
|
3
3
|
import type { V2ToolContext } from '../mcp/types.js';
|
|
4
4
|
import type { TriggerDefinition, WebhookEvent } from './types.js';
|
|
@@ -30,7 +30,7 @@ export type RouteResult = {
|
|
|
30
30
|
readonly _tag: 'error';
|
|
31
31
|
readonly error: RouteError;
|
|
32
32
|
};
|
|
33
|
-
export type RunWorkflowFn = (trigger: WorkflowTrigger, ctx: V2ToolContext, apiKey: string, daemonRegistry?: import('../v2/infra/in-memory/daemon-registry/index.js').DaemonRegistry, emitter?: DaemonEventEmitter, activeSessionSet?: ActiveSessionSet, _statsDir?: string, _sessionsDir?: string, source?: SessionSource) => Promise<WorkflowRunResult>;
|
|
33
|
+
export type RunWorkflowFn = (trigger: WorkflowTrigger, ctx: V2ToolContext, apiKey: string, daemonRegistry?: import('../v2/infra/in-memory/daemon-registry/index.js').DaemonRegistry, emitter?: DaemonEventEmitter, activeSessionSet?: ActiveSessionSet, _statsDir?: string, _sessionsDir?: string, source?: SessionSource, enricherDeps?: import('../daemon/workflow-enricher.js').WorkflowEnricherDeps) => Promise<WorkflowRunResult>;
|
|
34
34
|
export declare function interpolateGoalTemplate(template: string, staticGoal: string, payload: Readonly<Record<string, unknown>>, triggerId: string): string;
|
|
35
35
|
export declare class TriggerRouter {
|
|
36
36
|
private readonly index;
|