@xyne/workflow-sdk 3.2.43 → 3.2.45

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 (214) hide show
  1. package/dist/authz/types.d.ts +8 -2
  2. package/dist/authz/types.d.ts.map +1 -1
  3. package/dist/authz/types.js +8 -1
  4. package/dist/authz/types.js.map +1 -1
  5. package/dist/client/events-client.d.ts +5 -1
  6. package/dist/client/events-client.d.ts.map +1 -1
  7. package/dist/client/events-client.js +6 -2
  8. package/dist/client/events-client.js.map +1 -1
  9. package/dist/client/index.d.ts +1 -1
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/types.d.ts +87 -19
  12. package/dist/client/types.d.ts.map +1 -1
  13. package/dist/client/workflow-client.d.ts.map +1 -1
  14. package/dist/client/workflow-client.js +102 -32
  15. package/dist/client/workflow-client.js.map +1 -1
  16. package/dist/common/credentials.d.ts +5 -0
  17. package/dist/common/credentials.d.ts.map +1 -1
  18. package/dist/common/credentials.js.map +1 -1
  19. package/dist/conversational-flow/edit.d.ts +6 -4
  20. package/dist/conversational-flow/edit.d.ts.map +1 -1
  21. package/dist/conversational-flow/edit.js +60 -7
  22. package/dist/conversational-flow/edit.js.map +1 -1
  23. package/dist/conversational-flow/index.d.ts +3 -2
  24. package/dist/conversational-flow/index.d.ts.map +1 -1
  25. package/dist/conversational-flow/index.js.map +1 -1
  26. package/dist/conversational-flow/read.d.ts +2 -0
  27. package/dist/conversational-flow/read.d.ts.map +1 -1
  28. package/dist/conversational-flow/read.js +22 -3
  29. package/dist/conversational-flow/read.js.map +1 -1
  30. package/dist/conversational-flow/server/conversation-service.d.ts.map +1 -1
  31. package/dist/conversational-flow/server/conversation-service.js +4 -2
  32. package/dist/conversational-flow/server/conversation-service.js.map +1 -1
  33. package/dist/conversational-flow/turn.d.ts +19 -1
  34. package/dist/conversational-flow/turn.d.ts.map +1 -1
  35. package/dist/conversational-flow/turn.js +23 -10
  36. package/dist/conversational-flow/turn.js.map +1 -1
  37. package/dist/conversational-flow/types.d.ts +2 -1
  38. package/dist/conversational-flow/types.d.ts.map +1 -1
  39. package/dist/conversational-flow/types.js.map +1 -1
  40. package/dist/engine/config-validator.d.ts +15 -0
  41. package/dist/engine/config-validator.d.ts.map +1 -1
  42. package/dist/engine/config-validator.js +52 -0
  43. package/dist/engine/config-validator.js.map +1 -1
  44. package/dist/events/types.d.ts +37 -4
  45. package/dist/events/types.d.ts.map +1 -1
  46. package/dist/events/types.js +11 -1
  47. package/dist/events/types.js.map +1 -1
  48. package/dist/index.d.ts +8 -5
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +5 -0
  51. package/dist/index.js.map +1 -1
  52. package/dist/persistence/in-memory-adapter.d.ts +34 -18
  53. package/dist/persistence/in-memory-adapter.d.ts.map +1 -1
  54. package/dist/persistence/in-memory-adapter.js +294 -37
  55. package/dist/persistence/in-memory-adapter.js.map +1 -1
  56. package/dist/persistence/types.d.ts +181 -20
  57. package/dist/persistence/types.d.ts.map +1 -1
  58. package/dist/router/workflow-router.d.ts.map +1 -1
  59. package/dist/router/workflow-router.js +154 -58
  60. package/dist/router/workflow-router.js.map +1 -1
  61. package/dist/runtime/paging.d.ts +29 -0
  62. package/dist/runtime/paging.d.ts.map +1 -0
  63. package/dist/runtime/paging.js +34 -0
  64. package/dist/runtime/paging.js.map +1 -0
  65. package/dist/runtime/types.d.ts +59 -9
  66. package/dist/runtime/types.d.ts.map +1 -1
  67. package/dist/runtime/workflow-runtime.d.ts +95 -25
  68. package/dist/runtime/workflow-runtime.d.ts.map +1 -1
  69. package/dist/runtime/workflow-runtime.js +350 -147
  70. package/dist/runtime/workflow-runtime.js.map +1 -1
  71. package/dist/schema/config-check.d.ts +63 -0
  72. package/dist/schema/config-check.d.ts.map +1 -0
  73. package/dist/schema/config-check.js +18 -0
  74. package/dist/schema/config-check.js.map +1 -0
  75. package/dist/schema/options.d.ts +6 -6
  76. package/dist/schema/options.d.ts.map +1 -1
  77. package/dist/steps/base-step.d.ts +15 -0
  78. package/dist/steps/base-step.d.ts.map +1 -1
  79. package/dist/steps/base-step.js.map +1 -1
  80. package/dist/testing/authz-conformance.d.ts.map +1 -1
  81. package/dist/testing/authz-conformance.js +10 -5
  82. package/dist/testing/authz-conformance.js.map +1 -1
  83. package/dist/triggers/base-trigger.d.ts +15 -0
  84. package/dist/triggers/base-trigger.d.ts.map +1 -1
  85. package/dist/triggers/base-trigger.js.map +1 -1
  86. package/dist/types/approval.d.ts +46 -0
  87. package/dist/types/approval.d.ts.map +1 -0
  88. package/dist/types/approval.js +11 -0
  89. package/dist/types/approval.js.map +1 -0
  90. package/dist/types/component-ref.d.ts +18 -0
  91. package/dist/types/component-ref.d.ts.map +1 -0
  92. package/dist/types/component-ref.js +2 -0
  93. package/dist/types/component-ref.js.map +1 -0
  94. package/dist/types/index.d.ts +2 -0
  95. package/dist/types/index.d.ts.map +1 -1
  96. package/dist/types/index.js +1 -0
  97. package/dist/types/index.js.map +1 -1
  98. package/dist/types/literal.d.ts +19 -0
  99. package/dist/types/literal.d.ts.map +1 -0
  100. package/dist/types/literal.js +2 -0
  101. package/dist/types/literal.js.map +1 -0
  102. package/dist/types/validation.d.ts +16 -1
  103. package/dist/types/validation.d.ts.map +1 -1
  104. package/dist/types/validation.js +15 -0
  105. package/dist/types/validation.js.map +1 -1
  106. package/dist/util/approval-gate.d.ts +26 -0
  107. package/dist/util/approval-gate.d.ts.map +1 -0
  108. package/dist/util/approval-gate.js +35 -0
  109. package/dist/util/approval-gate.js.map +1 -0
  110. package/dist/util/literal-values.d.ts +22 -0
  111. package/dist/util/literal-values.d.ts.map +1 -0
  112. package/dist/util/literal-values.js +55 -0
  113. package/dist/util/literal-values.js.map +1 -0
  114. package/package.json +1 -1
  115. package/dist/common/expression-eval.d.ts +0 -35
  116. package/dist/common/expression-eval.d.ts.map +0 -1
  117. package/dist/common/expression-eval.js +0 -214
  118. package/dist/common/expression-eval.js.map +0 -1
  119. package/dist/common/principal.d.ts +0 -45
  120. package/dist/common/principal.d.ts.map +0 -1
  121. package/dist/common/principal.js +0 -9
  122. package/dist/common/principal.js.map +0 -1
  123. package/dist/connectors/builtin/steps/repeat.step.d.ts +0 -126
  124. package/dist/connectors/builtin/steps/repeat.step.d.ts.map +0 -1
  125. package/dist/connectors/builtin/steps/repeat.step.js +0 -144
  126. package/dist/connectors/builtin/steps/repeat.step.js.map +0 -1
  127. package/dist/runtime/execution-event-bus.d.ts +0 -38
  128. package/dist/runtime/execution-event-bus.d.ts.map +0 -1
  129. package/dist/runtime/execution-event-bus.js +0 -87
  130. package/dist/runtime/execution-event-bus.js.map +0 -1
  131. package/dist/steps/builtin/code.step.d.ts +0 -99
  132. package/dist/steps/builtin/code.step.d.ts.map +0 -1
  133. package/dist/steps/builtin/code.step.js +0 -152
  134. package/dist/steps/builtin/code.step.js.map +0 -1
  135. package/dist/steps/builtin/conditional.step.d.ts +0 -182
  136. package/dist/steps/builtin/conditional.step.d.ts.map +0 -1
  137. package/dist/steps/builtin/conditional.step.js +0 -82
  138. package/dist/steps/builtin/conditional.step.js.map +0 -1
  139. package/dist/steps/builtin/dedup.step.d.ts +0 -65
  140. package/dist/steps/builtin/dedup.step.d.ts.map +0 -1
  141. package/dist/steps/builtin/dedup.step.js +0 -61
  142. package/dist/steps/builtin/dedup.step.js.map +0 -1
  143. package/dist/steps/builtin/http-request.step.d.ts +0 -1020
  144. package/dist/steps/builtin/http-request.step.d.ts.map +0 -1
  145. package/dist/steps/builtin/http-request.step.js +0 -491
  146. package/dist/steps/builtin/http-request.step.js.map +0 -1
  147. package/dist/steps/builtin/loop.step.d.ts +0 -100
  148. package/dist/steps/builtin/loop.step.d.ts.map +0 -1
  149. package/dist/steps/builtin/loop.step.js +0 -73
  150. package/dist/steps/builtin/loop.step.js.map +0 -1
  151. package/dist/steps/builtin/map.step.d.ts +0 -148
  152. package/dist/steps/builtin/map.step.d.ts.map +0 -1
  153. package/dist/steps/builtin/map.step.js +0 -111
  154. package/dist/steps/builtin/map.step.js.map +0 -1
  155. package/dist/steps/builtin/parallel.step.d.ts +0 -246
  156. package/dist/steps/builtin/parallel.step.d.ts.map +0 -1
  157. package/dist/steps/builtin/parallel.step.js +0 -175
  158. package/dist/steps/builtin/parallel.step.js.map +0 -1
  159. package/dist/steps/builtin/ssrf-guard.d.ts +0 -9
  160. package/dist/steps/builtin/ssrf-guard.d.ts.map +0 -1
  161. package/dist/steps/builtin/ssrf-guard.js +0 -115
  162. package/dist/steps/builtin/ssrf-guard.js.map +0 -1
  163. package/dist/steps/builtin/switch.step.d.ts +0 -235
  164. package/dist/steps/builtin/switch.step.d.ts.map +0 -1
  165. package/dist/steps/builtin/switch.step.js +0 -101
  166. package/dist/steps/builtin/switch.step.js.map +0 -1
  167. package/dist/steps/builtin/transform.step.d.ts +0 -247
  168. package/dist/steps/builtin/transform.step.d.ts.map +0 -1
  169. package/dist/steps/builtin/transform.step.js +0 -135
  170. package/dist/steps/builtin/transform.step.js.map +0 -1
  171. package/dist/steps/builtin/wait.step.d.ts +0 -1072
  172. package/dist/steps/builtin/wait.step.d.ts.map +0 -1
  173. package/dist/steps/builtin/wait.step.js +0 -254
  174. package/dist/steps/builtin/wait.step.js.map +0 -1
  175. package/dist/steps/step-registry.d.ts +0 -62
  176. package/dist/steps/step-registry.d.ts.map +0 -1
  177. package/dist/steps/step-registry.js +0 -103
  178. package/dist/steps/step-registry.js.map +0 -1
  179. package/dist/triggers/builtin/default-cron-trigger.d.ts +0 -44
  180. package/dist/triggers/builtin/default-cron-trigger.d.ts.map +0 -1
  181. package/dist/triggers/builtin/default-cron-trigger.js +0 -31
  182. package/dist/triggers/builtin/default-cron-trigger.js.map +0 -1
  183. package/dist/triggers/builtin/default-event-trigger.d.ts +0 -32
  184. package/dist/triggers/builtin/default-event-trigger.d.ts.map +0 -1
  185. package/dist/triggers/builtin/default-event-trigger.js +0 -21
  186. package/dist/triggers/builtin/default-event-trigger.js.map +0 -1
  187. package/dist/triggers/builtin/default-manual-trigger.d.ts +0 -45
  188. package/dist/triggers/builtin/default-manual-trigger.d.ts.map +0 -1
  189. package/dist/triggers/builtin/default-manual-trigger.js +0 -51
  190. package/dist/triggers/builtin/default-manual-trigger.js.map +0 -1
  191. package/dist/triggers/builtin/default-webhook-trigger.d.ts +0 -72
  192. package/dist/triggers/builtin/default-webhook-trigger.d.ts.map +0 -1
  193. package/dist/triggers/builtin/default-webhook-trigger.js +0 -91
  194. package/dist/triggers/builtin/default-webhook-trigger.js.map +0 -1
  195. package/dist/triggers/builtin/default-webhook-v2-trigger.d.ts +0 -29
  196. package/dist/triggers/builtin/default-webhook-v2-trigger.d.ts.map +0 -1
  197. package/dist/triggers/builtin/default-webhook-v2-trigger.js +0 -38
  198. package/dist/triggers/builtin/default-webhook-v2-trigger.js.map +0 -1
  199. package/dist/triggers/trigger-registry.d.ts +0 -48
  200. package/dist/triggers/trigger-registry.d.ts.map +0 -1
  201. package/dist/triggers/trigger-registry.js +0 -83
  202. package/dist/triggers/trigger-registry.js.map +0 -1
  203. package/dist/types/attachment.d.ts +0 -23
  204. package/dist/types/attachment.d.ts.map +0 -1
  205. package/dist/types/attachment.js +0 -2
  206. package/dist/types/attachment.js.map +0 -1
  207. package/dist/types/resume-payload.d.ts +0 -34
  208. package/dist/types/resume-payload.d.ts.map +0 -1
  209. package/dist/types/resume-payload.js +0 -12
  210. package/dist/types/resume-payload.js.map +0 -1
  211. package/dist/util/executable-check.d.ts +0 -42
  212. package/dist/util/executable-check.d.ts.map +0 -1
  213. package/dist/util/executable-check.js +0 -115
  214. package/dist/util/executable-check.js.map +0 -1
@@ -1,214 +0,0 @@
1
- /**
2
- * Recomputing an agent's arithmetic, safely.
3
- *
4
- * A derived value (a growth rate, a ratio, a total) appears **nowhere** in the
5
- * source, so there is no passage to quote and no page to open — the only honest
6
- * provenance is *these inputs, combined this way*. Given both, the arithmetic
7
- * stops being a claim and becomes checkable: the reader is shown a ✓ when the
8
- * numbers reproduce and a ⚠ when they don't. LLM arithmetic is the least reliable
9
- * step in the pipeline, and this makes it the most verified.
10
- *
11
- * Inputs are referenced **positionally** (`#1`, `#2`) rather than by name or cell.
12
- * That is the security property, not a convenience: the grammar then contains no
13
- * identifiers at all, so an expression *cannot* name anything outside the inputs
14
- * array. No `eval`, no `Function`, no scope to escape into — the worst a
15
- * malformed expression can do is fail to parse.
16
- */
17
- function tokenize(expr) {
18
- const out = [];
19
- let i = 0;
20
- while (i < expr.length) {
21
- const ch = expr[i];
22
- if (/\s/.test(ch)) {
23
- i++;
24
- continue;
25
- }
26
- if (ch === '#') {
27
- const m = /^#(\d+)/.exec(expr.slice(i));
28
- if (!m)
29
- return null;
30
- const idx = Number(m[1]);
31
- if (!Number.isInteger(idx) || idx < 1)
32
- return null;
33
- out.push({ t: 'ref', i: idx - 1 }); // `#1` is inputs[0] — 1-based reads naturally
34
- i += m[0].length;
35
- continue;
36
- }
37
- if (/[0-9.]/.test(ch)) {
38
- const m = /^\d*\.?\d+/.exec(expr.slice(i));
39
- if (!m)
40
- return null;
41
- out.push({ t: 'num', v: Number(m[0]) });
42
- i += m[0].length;
43
- continue;
44
- }
45
- if (ch === '+' || ch === '-' || ch === '*' || ch === '/') {
46
- out.push({ t: 'op', v: ch });
47
- i++;
48
- continue;
49
- }
50
- if (ch === '(') {
51
- out.push({ t: 'lparen' });
52
- i++;
53
- continue;
54
- }
55
- if (ch === ')') {
56
- out.push({ t: 'rparen' });
57
- i++;
58
- continue;
59
- }
60
- // Anything else — a letter, a call, a property access — is not in the
61
- // language. Refuse rather than try to interpret it.
62
- return null;
63
- }
64
- return out.length > 0 ? out : null;
65
- }
66
- /**
67
- * Recursive-descent over `expr := term (('+'|'-') term)*`,
68
- * `term := factor (('*'|'/') factor)*`, `factor := '-'? (num | ref | '(' expr ')')`.
69
- */
70
- function parseAndEval(tokens, inputs) {
71
- let pos = 0;
72
- let failed = false;
73
- const fail = () => { failed = true; return undefined; };
74
- const factor = () => {
75
- const tok = tokens[pos];
76
- if (!tok)
77
- return fail();
78
- if (tok.t === 'op' && tok.v === '-') { // unary minus
79
- pos++;
80
- const v = factor();
81
- return v === undefined ? undefined : -v;
82
- }
83
- if (tok.t === 'num') {
84
- pos++;
85
- return tok.v;
86
- }
87
- if (tok.t === 'ref') {
88
- pos++;
89
- const v = inputs[tok.i];
90
- // A reference past the inputs it was given is a malformed citation, not a zero.
91
- return v === undefined || !Number.isFinite(v) ? fail() : v;
92
- }
93
- if (tok.t === 'lparen') {
94
- pos++;
95
- const v = expression();
96
- if (failed)
97
- return undefined;
98
- if (tokens[pos]?.t !== 'rparen')
99
- return fail();
100
- pos++;
101
- return v;
102
- }
103
- return fail();
104
- };
105
- const term = () => {
106
- let left = factor();
107
- if (left === undefined)
108
- return undefined;
109
- for (;;) {
110
- const tok = tokens[pos];
111
- if (!tok || tok.t !== 'op' || (tok.v !== '*' && tok.v !== '/'))
112
- return left;
113
- pos++;
114
- const right = factor();
115
- if (right === undefined)
116
- return undefined;
117
- // Division by zero yields Infinity/NaN — not a number a reader can verify.
118
- if (tok.v === '/' && right === 0)
119
- return fail();
120
- left = tok.v === '*' ? left * right : left / right;
121
- }
122
- };
123
- const expression = () => {
124
- let left = term();
125
- if (left === undefined)
126
- return undefined;
127
- for (;;) {
128
- const tok = tokens[pos];
129
- if (!tok || tok.t !== 'op' || (tok.v !== '+' && tok.v !== '-'))
130
- return left;
131
- pos++;
132
- const right = term();
133
- if (right === undefined)
134
- return undefined;
135
- left = tok.v === '+' ? left + right : left - right;
136
- }
137
- };
138
- const result = expression();
139
- // Trailing tokens mean we understood only a prefix — that is a parse failure,
140
- // not a partial answer.
141
- if (failed || pos !== tokens.length || result === undefined)
142
- return undefined;
143
- return Number.isFinite(result) ? result : undefined;
144
- }
145
- /**
146
- * Evaluate `expr` over `inputs`, or `undefined` when it cannot be evaluated
147
- * with certainty.
148
- *
149
- * `undefined` is deliberately indistinguishable between "malformed" and
150
- * "unsupported": in either case the UI shows the expression without a verdict.
151
- * Showing a wrong ✓ would be worse than showing none.
152
- */
153
- export function evaluateExpression(expr, inputs) {
154
- const tokens = tokenize(expr);
155
- if (!tokens)
156
- return undefined;
157
- return parseAndEval(tokens, inputs);
158
- }
159
- /**
160
- * Parse a number out of a cited value as it appears in a document —
161
- * `"₹36,816.00"`, `"1 234,5"`, `"(1,200)"` (accounting negative), `"12%"`.
162
- *
163
- * Needed because an input's value arrives as source text, not a number, and a
164
- * verification that only worked on already-clean numbers would rarely fire on
165
- * real documents. Returns `undefined` when there is no unambiguous number.
166
- */
167
- export function parseNumericValue(value) {
168
- if (typeof value === 'number')
169
- return Number.isFinite(value) ? value : undefined;
170
- if (typeof value !== 'string')
171
- return undefined;
172
- let s = value.trim();
173
- if (!s)
174
- return undefined;
175
- // Accounting negatives: (1,200) === -1200
176
- let negative = false;
177
- if (/^\(.*\)$/.test(s)) {
178
- negative = true;
179
- s = s.slice(1, -1);
180
- }
181
- // Strip currency symbols, spaces and percent — keep digits, separators, sign.
182
- s = s.replace(/[^\d.,\-+]/g, '');
183
- if (!s)
184
- return undefined;
185
- // Which separator is the decimal point?
186
- // both present → the LAST one ("1.234,5" European, "1,234.5" Anglo)
187
- // one, repeated → thousands ("1,234,567")
188
- // one, followed by exactly 3 digits → thousands ("1,200" is twelve hundred,
189
- // not 1.2 — the case that makes a lone
190
- // separator genuinely ambiguous)
191
- // otherwise → decimal ("1,5" European, "1.5" Anglo)
192
- const lastComma = s.lastIndexOf(',');
193
- const lastDot = s.lastIndexOf('.');
194
- if (lastComma !== -1 && lastDot !== -1) {
195
- if (lastComma > lastDot)
196
- s = s.replace(/\./g, '').replace(',', '.');
197
- else
198
- s = s.replace(/,/g, '');
199
- }
200
- else if (lastComma !== -1 || lastDot !== -1) {
201
- const sep = lastComma !== -1 ? ',' : '.';
202
- const occurrences = s.split(sep).length - 1;
203
- const tail = s.slice(s.lastIndexOf(sep) + 1);
204
- const isThousands = occurrences > 1 || /^\d{3}$/.test(tail);
205
- s = isThousands
206
- ? s.split(sep).join('')
207
- : s.replace(sep, '.');
208
- }
209
- const n = Number(s);
210
- if (!Number.isFinite(n))
211
- return undefined;
212
- return negative ? -n : n;
213
- }
214
- //# sourceMappingURL=expression-eval.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expression-eval.js","sourceRoot":"","sources":["../../src/common/expression-eval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,SAAS,QAAQ,CAAC,IAAY;IAC5B,MAAM,GAAG,GAAY,EAAE,CAAC;IACxB,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC;QACpB,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAAC,CAAC,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;QAErC,IAAI,EAAE,KAAK,GAAG,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACxC,IAAI,CAAC,CAAC;gBAAE,OAAO,IAAI,CAAC;YACpB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC;gBAAE,OAAO,IAAI,CAAC;YACnD,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,8CAA8C;YAClF,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YACjB,SAAS;QACX,CAAC;QACD,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YACtB,MAAM,CAAC,GAAG,YAAY,CAAC,IAAI,CAAC,IAA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GAAG,WAAW,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC,GAAG,WAAW;YACb,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACpB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1C,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Principal + authorization descriptors — browser-safe shared types.
3
- *
4
- * The host authenticates a request into an {@link AuthContext} (the principal).
5
- * The SDK never interprets `metadata` — it's an opaque claims bag (teamIds,
6
- * roles, deptId, …). Scoping is derived from the principal by host hooks.
7
- */
8
- /** The authenticated principal, produced by the host's `authenticate()` hook. */
9
- export interface AuthContext {
10
- userId: string;
11
- /** Host-defined claims — workspaceId, tenantId, teamIds, roles, etc. Opaque to the SDK. */
12
- metadata: Record<string, unknown>;
13
- }
14
- /** Verbs the scope hooks can differentiate on. Resource types extend this over time. */
15
- export type WorkflowAction = 'workflow.list' | 'workflow.read' | 'workflow.write' | 'workflow.trigger' | 'execution.list' | 'execution.read' | 'execution.write';
16
- /**
17
- * One node in the host's scope hierarchy — what the UI renders in the scope
18
- * navigator. The host (not the SDK) decides what a node represents
19
- * (department, team, project); `kind` is a display label only.
20
- */
21
- export interface ScopeNode {
22
- /** Opaque scope id — matches `WorkflowRecord.scope`. */
23
- id: string;
24
- label: string;
25
- /** Display grouping/icon hint, e.g. 'Department' | 'Team'. Not used for routing. */
26
- kind?: string;
27
- parentId?: string | null;
28
- hasChildren?: boolean;
29
- counts?: {
30
- workflows?: number;
31
- running?: number;
32
- };
33
- }
34
- /**
35
- * What the UI bootstraps from on load. Drives the scope navigator and gates
36
- * cross-scope ("admin") affordances.
37
- */
38
- export interface SessionDescriptor {
39
- userId: string;
40
- /** Top-level scopes the principal can reach. */
41
- scopes: ScopeNode[];
42
- /** Opaque capability flags, e.g. 'workflow.list.crossScope' for an admin view. */
43
- capabilities: string[];
44
- }
45
- //# sourceMappingURL=principal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"principal.d.ts","sourceRoot":"","sources":["../../src/common/principal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,wFAAwF;AACxF,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,kFAAkF;IAClF,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Principal + authorization descriptors — browser-safe shared types.
3
- *
4
- * The host authenticates a request into an {@link AuthContext} (the principal).
5
- * The SDK never interprets `metadata` — it's an opaque claims bag (teamIds,
6
- * roles, deptId, …). Scoping is derived from the principal by host hooks.
7
- */
8
- export {};
9
- //# sourceMappingURL=principal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"principal.js","sourceRoot":"","sources":["../../src/common/principal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,126 +0,0 @@
1
- /**
2
- * REPEAT step — run a body in rounds until it finishes without jumping back.
3
- *
4
- * LOOP walks an array known up front. REPEAT is for when the next round depends
5
- * on what happened in this one — a menu the user moves around in, a check that
6
- * waits until something is ready. Each round walks `body` as its own node-path
7
- * frame `repeat_x:body#<round>`:
8
- *
9
- * - a CONTINUE aimed at this step, at any depth inside the body, ends the round
10
- * and starts the next one with the CONTINUE's value as the new `input`
11
- * - a BREAK aimed at it ends the REPEAT, its value becoming the result
12
- * - the body finishing normally ends the REPEAT
13
- *
14
- * `__loop.output = { currentIndex, input }` is visible inside the body, like
15
- * LOOP's `__loop`. A round's input only ever comes from the jump that ended the
16
- * round before, and the executor saves that jump on its step records — so a
17
- * resumed execution replays into the same round with the same input.
18
- *
19
- * Output: `{ rounds, exit, result }`
20
- */
21
- import { z } from 'zod';
22
- import { BaseControlFlowStep } from '../../../steps/base-step.js';
23
- import type { ControlFlowExecutionContext } from '../../../steps/base-step.js';
24
- import { BuiltinStepType } from '../../../types/known-types.js';
25
- import type { WorkflowStepConfig } from '../../../types/workflow-config.js';
26
- import type { JumpKind } from '../../../engine/branch-signal.js';
27
- export declare const RepeatStepConfigSchema: z.ZodObject<{
28
- input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
- body: z.ZodArray<z.ZodObject<{
30
- id: z.ZodString;
31
- type: z.ZodString;
32
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
- id: z.ZodString;
34
- type: z.ZodString;
35
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
36
- id: z.ZodString;
37
- type: z.ZodString;
38
- }, z.ZodTypeAny, "passthrough">>, "many">;
39
- maxIterations: z.ZodDefault<z.ZodNumber>;
40
- }, "strip", z.ZodTypeAny, {
41
- body: z.objectOutputType<{
42
- id: z.ZodString;
43
- type: z.ZodString;
44
- }, z.ZodTypeAny, "passthrough">[];
45
- maxIterations: number;
46
- input: Record<string, unknown>;
47
- }, {
48
- body: z.objectInputType<{
49
- id: z.ZodString;
50
- type: z.ZodString;
51
- }, z.ZodTypeAny, "passthrough">[];
52
- maxIterations?: number | undefined;
53
- input?: Record<string, unknown> | undefined;
54
- }>;
55
- export type RepeatStepConfig = z.infer<typeof RepeatStepConfigSchema>;
56
- export interface RepeatStepOutput extends Record<string, unknown> {
57
- /** How many rounds ran. */
58
- rounds: number;
59
- /** Why the REPEAT ended. */
60
- exit: 'completed' | 'break' | 'max_iterations';
61
- /** A BREAK's value; otherwise the last round's input. */
62
- result: Record<string, unknown>;
63
- }
64
- export declare class RepeatStep extends BaseControlFlowStep<typeof RepeatStepConfigSchema, RepeatStepOutput> {
65
- readonly type = BuiltinStepType.REPEAT;
66
- readonly name = "Repeat";
67
- readonly description = "Run steps in rounds; a Continue step inside starts the next round with a new input";
68
- readonly configSchema: z.ZodObject<{
69
- input: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
- body: z.ZodArray<z.ZodObject<{
71
- id: z.ZodString;
72
- type: z.ZodString;
73
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
74
- id: z.ZodString;
75
- type: z.ZodString;
76
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
77
- id: z.ZodString;
78
- type: z.ZodString;
79
- }, z.ZodTypeAny, "passthrough">>, "many">;
80
- maxIterations: z.ZodDefault<z.ZodNumber>;
81
- }, "strip", z.ZodTypeAny, {
82
- body: z.objectOutputType<{
83
- id: z.ZodString;
84
- type: z.ZodString;
85
- }, z.ZodTypeAny, "passthrough">[];
86
- maxIterations: number;
87
- input: Record<string, unknown>;
88
- }, {
89
- body: z.objectInputType<{
90
- id: z.ZodString;
91
- type: z.ZodString;
92
- }, z.ZodTypeAny, "passthrough">[];
93
- maxIterations?: number | undefined;
94
- input?: Record<string, unknown> | undefined;
95
- }>;
96
- readonly outputSchema: z.ZodObject<{
97
- rounds: z.ZodNumber;
98
- exit: z.ZodEnum<["completed", "break", "max_iterations"]>;
99
- result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
100
- }, "strip", z.ZodTypeAny, {
101
- result: Record<string, unknown>;
102
- rounds: number;
103
- exit: "break" | "completed" | "max_iterations";
104
- }, {
105
- result: Record<string, unknown>;
106
- rounds: number;
107
- exit: "break" | "completed" | "max_iterations";
108
- }>;
109
- readonly category: "control";
110
- readonly branchModel: "iterate";
111
- readonly jumps: "catch";
112
- readonly icon = "repeat";
113
- readonly declaredOutputs: readonly [{
114
- readonly key: "body";
115
- readonly label: "Each round";
116
- }];
117
- getBranches(config: Record<string, unknown>): Record<string, WorkflowStepConfig[]>;
118
- branchScopeSchemas(config: Record<string, unknown>): Record<string, Record<string, unknown>>;
119
- /** A CONTINUE starts a round, so it must carry exactly the keys `input` declares. */
120
- checkJump(config: Record<string, unknown>, jump: {
121
- kind: JumpKind;
122
- value: unknown;
123
- }): string | null;
124
- execute(config: RepeatStepConfig, ctx: ControlFlowExecutionContext): Promise<RepeatStepOutput>;
125
- }
126
- //# sourceMappingURL=repeat.step.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repeat.step.d.ts","sourceRoot":"","sources":["../../../../src/connectors/builtin/steps/repeat.step.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAc,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B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AAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAY1C,qFAAqF;IAC5E,SAAS,CAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,IAAI,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,GACvC,MAAM,GAAG,IAAI;IAgBD,OAAO,CACpB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,2BAA2B,GAC/B,OAAO,CAAC,gBAAgB,CAAC;CAkC7B"}
@@ -1,144 +0,0 @@
1
- /**
2
- * REPEAT step — run a body in rounds until it finishes without jumping back.
3
- *
4
- * LOOP walks an array known up front. REPEAT is for when the next round depends
5
- * on what happened in this one — a menu the user moves around in, a check that
6
- * waits until something is ready. Each round walks `body` as its own node-path
7
- * frame `repeat_x:body#<round>`:
8
- *
9
- * - a CONTINUE aimed at this step, at any depth inside the body, ends the round
10
- * and starts the next one with the CONTINUE's value as the new `input`
11
- * - a BREAK aimed at it ends the REPEAT, its value becoming the result
12
- * - the body finishing normally ends the REPEAT
13
- *
14
- * `__loop.output = { currentIndex, input }` is visible inside the body, like
15
- * LOOP's `__loop`. A round's input only ever comes from the jump that ended the
16
- * round before, and the executor saves that jump on its step records — so a
17
- * resumed execution replays into the same round with the same input.
18
- *
19
- * Output: `{ rounds, exit, result }`
20
- */
21
- import { z } from 'zod';
22
- import { BaseControlFlowStep, cloneScope } from '../../../steps/base-step.js';
23
- import { BuiltinStepType } from '../../../types/known-types.js';
24
- import { VariableResolver } from '../../../engine/variable-resolver.js';
25
- import { BranchSignal } from '../../../engine/branch-signal.js';
26
- import { isPureRef } from '../../../util/variable-ref.js';
27
- // ─── Config ───
28
- export const RepeatStepConfigSchema = z.object({
29
- input: z.record(z.unknown()).default({}).describe('Input for the first round, read in the body as steps.__loop.output.input. A Continue step sets it for the next round. Supports {{variable}} refs'),
30
- body: z.array(z.object({ id: z.string(), type: z.string() }).passthrough()).describe('Steps to run each round'),
31
- maxIterations: z.number().int().positive().default(100).describe('Maximum number of rounds as a safety limit'),
32
- });
33
- const RepeatStepOutputSchema = z.object({
34
- rounds: z.number(),
35
- exit: z.enum(['completed', 'break', 'max_iterations']),
36
- result: z.record(z.unknown()),
37
- });
38
- // ─── Step ───
39
- export class RepeatStep extends BaseControlFlowStep {
40
- type = BuiltinStepType.REPEAT;
41
- name = 'Repeat';
42
- description = 'Run steps in rounds; a Continue step inside starts the next round with a new input';
43
- configSchema = RepeatStepConfigSchema;
44
- outputSchema = RepeatStepOutputSchema;
45
- category = 'control';
46
- branchModel = 'iterate';
47
- jumps = 'catch';
48
- icon = 'repeat';
49
- declaredOutputs = [
50
- { key: 'body', label: 'Each round' },
51
- ];
52
- getBranches(config) {
53
- return {
54
- body: (config['body'] ?? []),
55
- };
56
- }
57
- branchScopeSchemas(config) {
58
- return {
59
- '__loop.output': {
60
- type: 'object',
61
- properties: {
62
- currentIndex: { type: 'number' },
63
- input: inputJsonSchema(config['input']),
64
- },
65
- },
66
- };
67
- }
68
- /** A CONTINUE starts a round, so it must carry exactly the keys `input` declares. */
69
- checkJump(config, jump) {
70
- if (jump.kind !== 'continue')
71
- return null;
72
- const expected = Object.keys(asRecord(config['input']));
73
- const given = Object.keys(asRecord(jump.value));
74
- const missing = expected.filter((key) => !given.includes(key));
75
- if (missing.length > 0) {
76
- return `CONTINUE must set ${quoteList(missing)}: every round starts from the REPEAT's input.`;
77
- }
78
- const unknown = given.filter((key) => !expected.includes(key));
79
- if (unknown.length > 0) {
80
- return `${quoteList(unknown)} ${unknown.length === 1 ? 'is' : 'are'} not in the REPEAT's input. Add ${unknown.length === 1 ? 'it' : 'them'} there first.`;
81
- }
82
- return null;
83
- }
84
- async execute(config, ctx) {
85
- const self = ctx.runtime.stepId;
86
- // Control-step configs reach execute() unresolved, so resolve refs here.
87
- let input = asRecord(new VariableResolver().resolve(config.input, ctx.workflow));
88
- for (let round = 0; round < config.maxIterations; round++) {
89
- // Each round runs in its own scope, keyed by node-path frame
90
- // `repeat_x:body#<round>`, so a WAIT in round N resumes round N.
91
- const roundScope = cloneScope(ctx.workflow);
92
- roundScope.steps['__loop'] = {
93
- type: 'REPEAT',
94
- output: { currentIndex: round, input },
95
- };
96
- try {
97
- await ctx.walkBranch(config.body, roundScope, 'body', round);
98
- return { rounds: round + 1, exit: 'completed', result: input };
99
- }
100
- catch (err) {
101
- // Pauses, failures and jumps aimed at a loop further out keep unwinding.
102
- if (!BranchSignal.is(err) || err.signal.target !== self)
103
- throw err;
104
- if (err.signal.kind === 'break') {
105
- return { rounds: round + 1, exit: 'break', result: err.signal.value };
106
- }
107
- input = err.signal.value;
108
- }
109
- }
110
- return { rounds: config.maxIterations, exit: 'max_iterations', result: input };
111
- }
112
- }
113
- // ─── Helpers ───
114
- function asRecord(value) {
115
- return value !== null && typeof value === 'object' && !Array.isArray(value)
116
- ? value
117
- : {};
118
- }
119
- /** JSON Schema for the round input, typed from the literal values in `input`. */
120
- function inputJsonSchema(input) {
121
- const properties = {};
122
- for (const [key, value] of Object.entries(asRecord(input))) {
123
- properties[key] = valueJsonSchema(value);
124
- }
125
- return { type: 'object', properties };
126
- }
127
- function valueJsonSchema(value) {
128
- // A ref's type isn't known until it resolves, so leave that property open.
129
- if (typeof value === 'string')
130
- return isPureRef(value) ? {} : { type: 'string' };
131
- if (typeof value === 'number')
132
- return { type: 'number' };
133
- if (typeof value === 'boolean')
134
- return { type: 'boolean' };
135
- if (Array.isArray(value))
136
- return { type: 'array' };
137
- if (value !== null && typeof value === 'object')
138
- return { type: 'object', additionalProperties: true };
139
- return {};
140
- }
141
- function quoteList(keys) {
142
- return keys.map((key) => `"${key}"`).join(', ');
143
- }
144
- //# sourceMappingURL=repeat.step.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repeat.step.js","sourceRoot":"","sources":["../../../../src/connectors/builtin/steps/repeat.step.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AA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E,CAAC;QAC3D,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACxC,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,2EAA2E;IAC3E,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjF,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACzD,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3D,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACnD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;IACvG,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,SAAS,CAAC,IAAc;IAC/B,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * ExecutionEventBus — in-memory pub/sub for execution stream events.
3
- *
4
- * The executor emits events at state transitions (step started/completed/failed,
5
- * execution paused/completed/failed). The SSE route subscribes per-executionId
6
- * and streams them to the client.
7
- */
8
- import type { ExecutionStreamEvent } from './types.js';
9
- type EventCallback = (event: ExecutionStreamEvent) => void;
10
- export declare class ExecutionEventBus {
11
- private readonly listeners;
12
- /**
13
- * Subscribe to events for a specific execution.
14
- * Returns an unsubscribe function.
15
- */
16
- subscribe(executionId: string, cb: EventCallback): () => void;
17
- /**
18
- * Emit an event to all listeners for the given execution.
19
- */
20
- emit(executionId: string, event: ExecutionStreamEvent): void;
21
- }
22
- /**
23
- * Bridges push-based event bus callbacks to an AsyncIterable.
24
- *
25
- * Usage:
26
- * const ch = createEventChannel<ExecutionStreamEvent>();
27
- * const unsub = eventBus.subscribe(execId, ch.push);
28
- * for await (const event of ch) { ... }
29
- * ch.end(); // terminates the iterator
30
- */
31
- export interface EventChannel<T> {
32
- push: (value: T) => void;
33
- end: () => void;
34
- [Symbol.asyncIterator](): AsyncIterator<T>;
35
- }
36
- export declare function createEventChannel<T>(): EventChannel<T>;
37
- export {};
38
- //# sourceMappingURL=execution-event-bus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-event-bus.d.ts","sourceRoot":"","sources":["../../src/runtime/execution-event-bus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;AAE3D,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyC;IAEnE;;;OAGG;IACH,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,GAAG,MAAM,IAAI;IAgB7D;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI;CAW7D;AAID;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACzB,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;CAC5C;AAED,wBAAgB,kBAAkB,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,CA0CvD"}