@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.
Files changed (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  6. package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
  7. package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
  8. package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
@@ -0,0 +1,229 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "codec-opaque",
5
+ "description": "A self-hosted codec returns an encoded payload ({\"$fgp\":1,...}); the workflow passes it on untouched and the history keeps it opaque.",
6
+ "source": "src/phase-c-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "codecOpaque",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "codecOpaque",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1"
26
+ },
27
+ "createdAt": "2026-01-01T00:00:00.000Z"
28
+ },
29
+ {
30
+ "seq": 2,
31
+ "type": "WORKFLOW_TASK_SCHEDULED",
32
+ "payload": {
33
+ "taskId": "run-1-task-1"
34
+ },
35
+ "createdAt": "2026-01-01T00:00:00.000Z"
36
+ },
37
+ {
38
+ "seq": 3,
39
+ "type": "WORKFLOW_TASK_STARTED",
40
+ "payload": {
41
+ "taskId": "run-1-task-1",
42
+ "attempt": 1
43
+ },
44
+ "createdAt": "2026-01-01T00:00:00.000Z"
45
+ },
46
+ {
47
+ "seq": 4,
48
+ "type": "WORKFLOW_TASK_COMPLETED",
49
+ "payload": {
50
+ "taskId": "run-1-task-1"
51
+ },
52
+ "createdAt": "2026-01-01T00:00:00.000Z",
53
+ "taskId": "run-1-task-1"
54
+ },
55
+ {
56
+ "seq": 5,
57
+ "type": "ACTIVITY_SCHEDULED",
58
+ "payload": {
59
+ "activityId": "a1",
60
+ "kind": "user",
61
+ "activityName": "vault.read",
62
+ "taskQueue": "vault",
63
+ "args": {
64
+ "id": "s-1"
65
+ },
66
+ "retry": {
67
+ "retryDelay": 1000,
68
+ "backoffMultiplier": 2,
69
+ "maxDelay": 100000
70
+ }
71
+ },
72
+ "createdAt": "2026-01-01T00:00:00.000Z",
73
+ "taskId": "run-1-task-1"
74
+ },
75
+ {
76
+ "seq": 6,
77
+ "type": "ACTIVITY_STARTED",
78
+ "payload": {
79
+ "activityId": "a1",
80
+ "attempt": 1
81
+ },
82
+ "createdAt": "2026-01-01T00:00:00.000Z"
83
+ },
84
+ {
85
+ "seq": 7,
86
+ "type": "ACTIVITY_COMPLETED",
87
+ "payload": {
88
+ "activityId": "a1",
89
+ "attempt": 1,
90
+ "result": {
91
+ "$fgp": 1,
92
+ "encoding": "binary/encrypted",
93
+ "metadata": {
94
+ "keyId": "k-1"
95
+ },
96
+ "data": "c2VjcmV0"
97
+ }
98
+ },
99
+ "createdAt": "2026-01-01T00:00:00.000Z"
100
+ },
101
+ {
102
+ "seq": 8,
103
+ "type": "WORKFLOW_TASK_SCHEDULED",
104
+ "payload": {
105
+ "taskId": "run-1-task-2"
106
+ },
107
+ "createdAt": "2026-01-01T00:00:00.000Z"
108
+ },
109
+ {
110
+ "seq": 9,
111
+ "type": "WORKFLOW_TASK_STARTED",
112
+ "payload": {
113
+ "taskId": "run-1-task-2",
114
+ "attempt": 1
115
+ },
116
+ "createdAt": "2026-01-01T00:00:00.000Z"
117
+ },
118
+ {
119
+ "seq": 10,
120
+ "type": "WORKFLOW_TASK_COMPLETED",
121
+ "payload": {
122
+ "taskId": "run-1-task-2"
123
+ },
124
+ "createdAt": "2026-01-01T00:00:00.000Z",
125
+ "taskId": "run-1-task-2"
126
+ },
127
+ {
128
+ "seq": 11,
129
+ "type": "ACTIVITY_SCHEDULED",
130
+ "payload": {
131
+ "activityId": "a2",
132
+ "kind": "node",
133
+ "nodeType": "internal:http",
134
+ "operation": "execute",
135
+ "args": {
136
+ "url": "https://example.test/store",
137
+ "body": {
138
+ "$fgp": 1,
139
+ "encoding": "binary/encrypted",
140
+ "metadata": {
141
+ "keyId": "k-1"
142
+ },
143
+ "data": "c2VjcmV0"
144
+ }
145
+ },
146
+ "retry": {
147
+ "retryDelay": 1000,
148
+ "backoffMultiplier": 2,
149
+ "maxDelay": 100000
150
+ }
151
+ },
152
+ "createdAt": "2026-01-01T00:00:00.000Z",
153
+ "taskId": "run-1-task-2"
154
+ },
155
+ {
156
+ "seq": 12,
157
+ "type": "ACTIVITY_STARTED",
158
+ "payload": {
159
+ "activityId": "a2",
160
+ "attempt": 1
161
+ },
162
+ "createdAt": "2026-01-01T00:00:00.000Z"
163
+ },
164
+ {
165
+ "seq": 13,
166
+ "type": "ACTIVITY_COMPLETED",
167
+ "payload": {
168
+ "activityId": "a2",
169
+ "attempt": 1,
170
+ "result": {
171
+ "status": 200,
172
+ "url": "https://example.test/store"
173
+ }
174
+ },
175
+ "createdAt": "2026-01-01T00:00:00.000Z"
176
+ },
177
+ {
178
+ "seq": 14,
179
+ "type": "WORKFLOW_TASK_SCHEDULED",
180
+ "payload": {
181
+ "taskId": "run-1-task-3"
182
+ },
183
+ "createdAt": "2026-01-01T00:00:00.000Z"
184
+ },
185
+ {
186
+ "seq": 15,
187
+ "type": "WORKFLOW_TASK_STARTED",
188
+ "payload": {
189
+ "taskId": "run-1-task-3",
190
+ "attempt": 1
191
+ },
192
+ "createdAt": "2026-01-01T00:00:00.000Z"
193
+ },
194
+ {
195
+ "seq": 16,
196
+ "type": "WORKFLOW_TASK_COMPLETED",
197
+ "payload": {
198
+ "taskId": "run-1-task-3"
199
+ },
200
+ "createdAt": "2026-01-01T00:00:00.000Z",
201
+ "taskId": "run-1-task-3"
202
+ },
203
+ {
204
+ "seq": 17,
205
+ "type": "WORKFLOW_COMPLETED",
206
+ "payload": {
207
+ "output": {
208
+ "encoded": true,
209
+ "secret": {
210
+ "$fgp": 1,
211
+ "encoding": "binary/encrypted",
212
+ "metadata": {
213
+ "keyId": "k-1"
214
+ },
215
+ "data": "c2VjcmV0"
216
+ }
217
+ }
218
+ },
219
+ "createdAt": "2026-01-01T00:00:00.000Z",
220
+ "taskId": "run-1-task-3"
221
+ }
222
+ ],
223
+ "expected": {
224
+ "protocol": 1,
225
+ "outcome": "commands",
226
+ "commands": [],
227
+ "logs": []
228
+ }
229
+ }
@@ -0,0 +1,150 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "dynamic-workflow",
5
+ "description": "A start names a function the bundle does not export; the dynamic workflow serves it and receives the name (code.exports.workflows[\"*\"]).",
6
+ "source": "src/phase-c-queries.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "chargeLater",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "chargeLater",
23
+ "input": {
24
+ "amount": 5
25
+ },
26
+ "taskQueue": "managed",
27
+ "randomnessSeed": "run-1"
28
+ },
29
+ "createdAt": "2026-01-01T00:00:00.000Z"
30
+ },
31
+ {
32
+ "seq": 2,
33
+ "type": "WORKFLOW_TASK_SCHEDULED",
34
+ "payload": {
35
+ "taskId": "run-1-task-1"
36
+ },
37
+ "createdAt": "2026-01-01T00:00:00.000Z"
38
+ },
39
+ {
40
+ "seq": 3,
41
+ "type": "WORKFLOW_TASK_STARTED",
42
+ "payload": {
43
+ "taskId": "run-1-task-1",
44
+ "attempt": 1
45
+ },
46
+ "createdAt": "2026-01-01T00:00:00.000Z"
47
+ },
48
+ {
49
+ "seq": 4,
50
+ "type": "WORKFLOW_TASK_COMPLETED",
51
+ "payload": {
52
+ "taskId": "run-1-task-1"
53
+ },
54
+ "createdAt": "2026-01-01T00:00:00.000Z",
55
+ "taskId": "run-1-task-1"
56
+ },
57
+ {
58
+ "seq": 5,
59
+ "type": "ACTIVITY_SCHEDULED",
60
+ "payload": {
61
+ "activityId": "a1",
62
+ "kind": "node",
63
+ "nodeType": "internal:http",
64
+ "operation": "execute",
65
+ "args": {
66
+ "url": "https://example.test/route/chargeLater"
67
+ },
68
+ "retry": {
69
+ "retryDelay": 1000,
70
+ "backoffMultiplier": 2,
71
+ "maxDelay": 100000
72
+ }
73
+ },
74
+ "createdAt": "2026-01-01T00:00:00.000Z",
75
+ "taskId": "run-1-task-1"
76
+ },
77
+ {
78
+ "seq": 6,
79
+ "type": "ACTIVITY_STARTED",
80
+ "payload": {
81
+ "activityId": "a1",
82
+ "attempt": 1
83
+ },
84
+ "createdAt": "2026-01-01T00:00:00.000Z"
85
+ },
86
+ {
87
+ "seq": 7,
88
+ "type": "ACTIVITY_COMPLETED",
89
+ "payload": {
90
+ "activityId": "a1",
91
+ "attempt": 1,
92
+ "result": {
93
+ "status": 200,
94
+ "url": "https://example.test/route/chargeLater"
95
+ }
96
+ },
97
+ "createdAt": "2026-01-01T00:00:00.000Z"
98
+ },
99
+ {
100
+ "seq": 8,
101
+ "type": "WORKFLOW_TASK_SCHEDULED",
102
+ "payload": {
103
+ "taskId": "run-1-task-2"
104
+ },
105
+ "createdAt": "2026-01-01T00:00:00.000Z"
106
+ },
107
+ {
108
+ "seq": 9,
109
+ "type": "WORKFLOW_TASK_STARTED",
110
+ "payload": {
111
+ "taskId": "run-1-task-2",
112
+ "attempt": 1
113
+ },
114
+ "createdAt": "2026-01-01T00:00:00.000Z"
115
+ },
116
+ {
117
+ "seq": 10,
118
+ "type": "WORKFLOW_TASK_COMPLETED",
119
+ "payload": {
120
+ "taskId": "run-1-task-2"
121
+ },
122
+ "createdAt": "2026-01-01T00:00:00.000Z",
123
+ "taskId": "run-1-task-2"
124
+ },
125
+ {
126
+ "seq": 11,
127
+ "type": "WORKFLOW_COMPLETED",
128
+ "payload": {
129
+ "output": {
130
+ "workflowFn": "chargeLater",
131
+ "input": {
132
+ "amount": 5
133
+ },
134
+ "response": {
135
+ "status": 200,
136
+ "url": "https://example.test/route/chargeLater"
137
+ }
138
+ }
139
+ },
140
+ "createdAt": "2026-01-01T00:00:00.000Z",
141
+ "taskId": "run-1-task-2"
142
+ }
143
+ ],
144
+ "expected": {
145
+ "protocol": 1,
146
+ "outcome": "commands",
147
+ "commands": [],
148
+ "logs": []
149
+ }
150
+ }