@fluidgrids/workflows 2026.1029.1 → 2026.1030.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/README.md +112 -4
- package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
- package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
- package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/chunk-A5SXCA62.cjs +93 -0
- package/dist/chunk-AC6ZEXVR.js +85 -0
- package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
- package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
- package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
- package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
- package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
- package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
- package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
- package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
- package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
- package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
- package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
- package/dist/history/index.cjs +283 -106
- package/dist/history/index.d.cts +549 -10
- package/dist/history/index.d.ts +549 -10
- package/dist/history/index.js +5 -4
- package/dist/index.cjs +146 -53
- package/dist/index.d.cts +38 -14
- package/dist/index.d.ts +38 -14
- package/dist/index.js +6 -5
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +339 -36
- package/dist/ir/index.d.cts +244 -8
- package/dist/ir/index.d.ts +244 -8
- package/dist/ir/index.js +306 -21
- package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
- package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
- package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +27 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +9 -9
- package/dist/roundtrip/index.cjs +72 -66
- package/dist/roundtrip/index.d.cts +25 -11
- package/dist/roundtrip/index.d.ts +25 -11
- package/dist/roundtrip/index.js +13 -11
- package/dist/runtime/index.cjs +19 -19
- package/dist/runtime/index.d.cts +139 -12
- package/dist/runtime/index.d.ts +139 -12
- package/dist/runtime/index.js +6 -6
- package/dist/testing/index.cjs +688 -121
- package/dist/testing/index.d.cts +174 -10
- package/dist/testing/index.d.ts +174 -10
- package/dist/testing/index.js +646 -82
- package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
- package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
- package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
- package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
- package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
- package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +255 -81
- package/schema/ir-v2.schema.json +246 -1
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +239 -80
- package/schema/workflow-command.schema.json +210 -84
- package/schema/workflow-task.schema.json +532 -167
- package/dist/chunk-6QPOJZT6.cjs +0 -1180
- package/dist/chunk-A2OHX3UQ.js +0 -1156
- package/dist/chunk-PWIUEWC3.js +0 -81
- package/dist/chunk-YHBVMOMK.cjs +0 -87
- package/dist/node-evaluator-SOADN23V.js +0 -14
- package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://docs.fluidgrids.ai/schemas/workflow-command.schema.json",
|
|
4
4
|
"title": "FluidGrids workflow-task command",
|
|
5
|
-
"description": "A flat object discriminated by an UPPER_SNAKE type. Commands travel as [JSON!]! (DB4). UPSERT_SEARCH_ATTRIBUTES, ACCEPT_UPDATE, REJECT_UPDATE and
|
|
5
|
+
"description": "A flat object discriminated by an UPPER_SNAKE type. Commands travel as [JSON!]! (DB4). UPSERT_SEARCH_ATTRIBUTES, ACCEPT_UPDATE, REJECT_UPDATE, COMPLETE_UPDATE and SCHEDULE_ACTIVITY of kind user are Phase C: the service accepts them only for the C-GATE features its flags enable (c.searchAttributes, c.updates, c.userActivity).",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"type"
|
|
@@ -638,6 +638,18 @@
|
|
|
638
638
|
"USE_EXISTING",
|
|
639
639
|
"TERMINATE_EXISTING"
|
|
640
640
|
]
|
|
641
|
+
},
|
|
642
|
+
"fairnessKey": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"minLength": 1,
|
|
645
|
+
"maxLength": 255,
|
|
646
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
647
|
+
},
|
|
648
|
+
"fairnessWeight": {
|
|
649
|
+
"type": "number",
|
|
650
|
+
"minimum": 0.1,
|
|
651
|
+
"maximum": 10,
|
|
652
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
641
653
|
}
|
|
642
654
|
}
|
|
643
655
|
},
|
|
@@ -714,93 +726,207 @@
|
|
|
714
726
|
"type": "object",
|
|
715
727
|
"additionalProperties": {
|
|
716
728
|
"type": "string"
|
|
717
|
-
}
|
|
729
|
+
},
|
|
730
|
+
"description": "Interceptor headers (11 §2.10): string values; a user activity carries at most 16 KiB of JSON (checked by validateCommands)."
|
|
718
731
|
},
|
|
719
732
|
"command_SCHEDULE_ACTIVITY": {
|
|
720
|
-
"
|
|
721
|
-
"
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
"
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
733
|
+
"description": "A oneOf on kind (C-CMD-C): node runs a canvas node operation; user (Phase C) runs a user activity on a self-hosted task queue.",
|
|
734
|
+
"oneOf": [
|
|
735
|
+
{
|
|
736
|
+
"type": "object",
|
|
737
|
+
"required": [
|
|
738
|
+
"type",
|
|
739
|
+
"activityId",
|
|
740
|
+
"kind",
|
|
741
|
+
"nodeType",
|
|
742
|
+
"operation",
|
|
743
|
+
"args",
|
|
744
|
+
"retry"
|
|
745
|
+
],
|
|
746
|
+
"properties": {
|
|
747
|
+
"type": {
|
|
748
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
749
|
+
},
|
|
750
|
+
"headers": {
|
|
751
|
+
"$ref": "#/$defs/headers"
|
|
752
|
+
},
|
|
753
|
+
"activityId": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"minLength": 1,
|
|
756
|
+
"maxLength": 256
|
|
757
|
+
},
|
|
758
|
+
"args": {},
|
|
759
|
+
"retry": {
|
|
760
|
+
"$ref": "#/$defs/retryPolicy"
|
|
761
|
+
},
|
|
762
|
+
"startToCloseTimeout": {
|
|
763
|
+
"type": "integer",
|
|
764
|
+
"minimum": 0
|
|
765
|
+
},
|
|
766
|
+
"scheduleToCloseTimeout": {
|
|
767
|
+
"type": "integer",
|
|
768
|
+
"minimum": 0
|
|
769
|
+
},
|
|
770
|
+
"scheduleToStartTimeout": {
|
|
771
|
+
"type": "integer",
|
|
772
|
+
"minimum": 0
|
|
773
|
+
},
|
|
774
|
+
"heartbeatTimeout": {
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": 0
|
|
777
|
+
},
|
|
778
|
+
"cancellationType": {
|
|
779
|
+
"enum": [
|
|
780
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
781
|
+
"TRY_CANCEL",
|
|
782
|
+
"ABANDON"
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"priority": {
|
|
786
|
+
"type": "integer",
|
|
787
|
+
"minimum": 1,
|
|
788
|
+
"maximum": 5
|
|
789
|
+
},
|
|
790
|
+
"summary": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"maxLength": 200
|
|
793
|
+
},
|
|
794
|
+
"fairnessKey": {
|
|
795
|
+
"type": "string",
|
|
796
|
+
"minLength": 1,
|
|
797
|
+
"maxLength": 255,
|
|
798
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
799
|
+
},
|
|
800
|
+
"fairnessWeight": {
|
|
801
|
+
"type": "number",
|
|
802
|
+
"minimum": 0.1,
|
|
803
|
+
"maximum": 10,
|
|
804
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
805
|
+
},
|
|
806
|
+
"kind": {
|
|
807
|
+
"const": "node"
|
|
808
|
+
},
|
|
809
|
+
"nodeType": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"minLength": 1,
|
|
812
|
+
"maxLength": 256
|
|
813
|
+
},
|
|
814
|
+
"nodeVersion": {
|
|
815
|
+
"type": "string"
|
|
816
|
+
},
|
|
817
|
+
"operation": {
|
|
818
|
+
"type": "string",
|
|
819
|
+
"minLength": 1,
|
|
820
|
+
"maxLength": 256
|
|
821
|
+
},
|
|
822
|
+
"connection": {
|
|
823
|
+
"type": "string",
|
|
824
|
+
"minLength": 1,
|
|
825
|
+
"maxLength": 256
|
|
826
|
+
},
|
|
827
|
+
"runOn": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"additionalProperties": false
|
|
798
832
|
},
|
|
799
|
-
|
|
800
|
-
"type": "
|
|
833
|
+
{
|
|
834
|
+
"type": "object",
|
|
835
|
+
"required": [
|
|
836
|
+
"type",
|
|
837
|
+
"activityId",
|
|
838
|
+
"kind",
|
|
839
|
+
"activityName",
|
|
840
|
+
"taskQueue",
|
|
841
|
+
"args",
|
|
842
|
+
"retry"
|
|
843
|
+
],
|
|
844
|
+
"properties": {
|
|
845
|
+
"type": {
|
|
846
|
+
"const": "SCHEDULE_ACTIVITY"
|
|
847
|
+
},
|
|
848
|
+
"headers": {
|
|
849
|
+
"$ref": "#/$defs/headers"
|
|
850
|
+
},
|
|
851
|
+
"activityId": {
|
|
852
|
+
"type": "string",
|
|
853
|
+
"minLength": 1,
|
|
854
|
+
"maxLength": 256
|
|
855
|
+
},
|
|
856
|
+
"args": {},
|
|
857
|
+
"retry": {
|
|
858
|
+
"$ref": "#/$defs/retryPolicy"
|
|
859
|
+
},
|
|
860
|
+
"startToCloseTimeout": {
|
|
861
|
+
"type": "integer",
|
|
862
|
+
"minimum": 0
|
|
863
|
+
},
|
|
864
|
+
"scheduleToCloseTimeout": {
|
|
865
|
+
"type": "integer",
|
|
866
|
+
"minimum": 0
|
|
867
|
+
},
|
|
868
|
+
"scheduleToStartTimeout": {
|
|
869
|
+
"type": "integer",
|
|
870
|
+
"minimum": 0
|
|
871
|
+
},
|
|
872
|
+
"heartbeatTimeout": {
|
|
873
|
+
"type": "integer",
|
|
874
|
+
"minimum": 0
|
|
875
|
+
},
|
|
876
|
+
"cancellationType": {
|
|
877
|
+
"enum": [
|
|
878
|
+
"WAIT_CANCELLATION_COMPLETED",
|
|
879
|
+
"TRY_CANCEL",
|
|
880
|
+
"ABANDON"
|
|
881
|
+
]
|
|
882
|
+
},
|
|
883
|
+
"priority": {
|
|
884
|
+
"type": "integer",
|
|
885
|
+
"minimum": 1,
|
|
886
|
+
"maximum": 5
|
|
887
|
+
},
|
|
888
|
+
"summary": {
|
|
889
|
+
"type": "string",
|
|
890
|
+
"maxLength": 200
|
|
891
|
+
},
|
|
892
|
+
"fairnessKey": {
|
|
893
|
+
"type": "string",
|
|
894
|
+
"minLength": 1,
|
|
895
|
+
"maxLength": 255,
|
|
896
|
+
"description": "Phase C: the fairness key of the task (11 §2.11); default the workspace id."
|
|
897
|
+
},
|
|
898
|
+
"fairnessWeight": {
|
|
899
|
+
"type": "number",
|
|
900
|
+
"minimum": 0.1,
|
|
901
|
+
"maximum": 10,
|
|
902
|
+
"description": "Phase C: the weight of the fairness key, 0.1 to 10 (default 1)."
|
|
903
|
+
},
|
|
904
|
+
"kind": {
|
|
905
|
+
"const": "user"
|
|
906
|
+
},
|
|
907
|
+
"activityName": {
|
|
908
|
+
"type": "string",
|
|
909
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
|
|
910
|
+
},
|
|
911
|
+
"taskQueue": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
914
|
+
},
|
|
915
|
+
"connections": {
|
|
916
|
+
"type": "array",
|
|
917
|
+
"maxItems": 16,
|
|
918
|
+
"uniqueItems": true,
|
|
919
|
+
"items": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"minLength": 1,
|
|
922
|
+
"maxLength": 256
|
|
923
|
+
},
|
|
924
|
+
"description": "Connection names the worker may resolve for each started attempt (H2: declared by the definition and on the worker token allow-list)."
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"additionalProperties": false
|
|
801
928
|
}
|
|
802
|
-
|
|
803
|
-
"additionalProperties": false
|
|
929
|
+
]
|
|
804
930
|
},
|
|
805
931
|
"command_REQUEST_CANCEL_ACTIVITY": {
|
|
806
932
|
"type": "object",
|