@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
@@ -7,6 +7,7 @@ import type { ResolvedCredential } from '../common/credentials.js';
7
7
  import type { ResourceAttributes } from '../authz/attributes.js';
8
8
  import type { TriggerEvent } from '../ingest/types.js';
9
9
  import type { FieldOptionsContext, FieldOptionsPage } from '../schema/options.js';
10
+ import type { ConfigIssue, ConfigValidationContext } from '../schema/config-check.js';
10
11
  /**
11
12
  * What {@link BaseTrigger.hydrate} made of an event.
12
13
  *
@@ -124,6 +125,20 @@ export declare abstract class BaseTrigger<TConfig extends z.ZodTypeAny, TOutput
124
125
  * editor turns those from text boxes into pickers.
125
126
  */
126
127
  getOptions?(ctx: FieldOptionsContext<z.infer<TConfig>, Record<string, unknown>, TCtx>): Promise<FieldOptionsPage>;
128
+ /**
129
+ * Check this trigger's configuration against the world it names, when the
130
+ * author saves or activates.
131
+ *
132
+ * For what {@link validate} cannot reach: does that channel exist, may this
133
+ * person watch it, can this credential see that repository. Return an empty
134
+ * array to pass; anything returned refuses activation.
135
+ *
136
+ * Three rules. READ-ONLY — never "test" by creating something. Skip anything
137
+ * absent from `ctx.known`, which is how a `{{ref}}` says it cannot be checked
138
+ * yet. And stay CHEAP: one or two lookups that decide whether runs will work,
139
+ * not a round trip per field.
140
+ */
141
+ validateConfig?(ctx: ConfigValidationContext<z.infer<TConfig>, Record<string, unknown>, TCtx>): Promise<ConfigIssue[]>;
127
142
  /**
128
143
  * Customize the JSON Schema generated from configSchema for UI form rendering.
129
144
  * Override to add field metadata, ordering, conditional visibility, etc.
@@ -1 +1 @@
1
- {"version":3,"file":"base-trigger.d.ts","sourceRoot":"","sources":["../../src/triggers/base-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACv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ACH,cAAc,CAAC,CACb,GAAG,EAAE,uBAAuB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,GAC5E,OAAO,CAAC,WAAW,EAAE,CAAC;IAEzB;;;OAGG;IACH,oBAAoB,CAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI1B;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,CACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"base-trigger.js","sourceRoot":"","sources":["../../src/triggers/base-trigger.ts"],"names":[],"mappings":"AAiCA;;;;;;;;;;GAUG;AACH,MAAM,OAAgB,WAAW;IAqBtB,IAAI,CAAU;IAEvB;;;OAGG;IACM,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,aAAa,CAAU;IAEhC;;;OAGG;IACM,eAAe,CAA6B;IAErD;;;OAGG;IACM,UAAU,CAAyB;IAE5C,qEAAqE;IAC5D,mBAAmB,CAAW;IAEvC,mEAAmE;IAC1D,iBAAiB,CAAqB;IAE/C,wDAAwD;IACxD,QAAQ,CAAC,MAAe;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAqB,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,MAA0B,EAAE,OAAyB;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;IAsCD;;;OAGG;IACH,oBAAoB,CAClB,UAAmC;QAEnC,OAAO,UAAU,CAAC;IACpB,CAAC;CAiBF"}
1
+ {"version":3,"file":"base-trigger.js","sourceRoot":"","sources":["../../src/triggers/base-trigger.ts"],"names":[],"mappings":"AAkCA;;;;;;;;;;GAUG;AACH,MAAM,OAAgB,WAAW;IAqBtB,IAAI,CAAU;IAEvB;;;OAGG;IACM,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,aAAa,CAAU;IAEhC;;;OAGG;IACM,eAAe,CAA6B;IAErD;;;OAGG;IACM,UAAU,CAAyB;IAE5C,qEAAqE;IAC5D,mBAAmB,CAAW;IAEvC,mEAAmE;IAC1D,iBAAiB,CAAqB;IAE/C,wDAAwD;IACxD,QAAQ,CAAC,MAAe;QACtB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAqB,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,MAA0B,EAAE,OAAyB;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;IAuDD;;;OAGG;IACH,oBAAoB,CAClB,UAAmC;QAEnC,OAAO,UAAU,CAAC;IACpB,CAAC;CAiBF"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Approval policy — which workflow configurations need a second pair of eyes
3
+ * before they go live.
4
+ */
5
+ /** Whether including a component obliges its workflow to be approved. */
6
+ export declare enum ApprovalRequirement {
7
+ NOT_REQUIRED = "notRequired",
8
+ REQUIRED = "required"
9
+ }
10
+ /**
11
+ * Deployment policy — and the reason it is not declared on the components.
12
+ *
13
+ * A step lives in a package many deployments install. If `create_issue` itself
14
+ * declared REQUIRED, its author would be writing every installer's security
15
+ * policy, and a patch bump could change it under them. An override map would
16
+ * not fix that: a default nobody overrides is not a default, it is the policy,
17
+ * so the arrangement would only look governed while the decision stayed with
18
+ * the package. The deployment names the types instead, in one file its own
19
+ * reviewers read and its own review process gates.
20
+ *
21
+ * `steps` and `triggers` are separate maps because the registry keeps two
22
+ * namespaces — one flat map would let a single entry silently govern both a
23
+ * step and a trigger that happened to share a type string.
24
+ *
25
+ * Resolution is most-specific first: `steps`/`triggers`, then `default`. Keys
26
+ * added later — by connector, by category, a callback for per-tenant policy —
27
+ * slot in between without changing what an existing config means.
28
+ */
29
+ export interface ApprovalConfig {
30
+ /** Applies to any component not named in `steps` or `triggers`. */
31
+ default: ApprovalRequirement;
32
+ /** Per step type, e.g. `{ HTTP_REQUEST: ApprovalRequirement.REQUIRED }`. */
33
+ steps?: Readonly<Record<string, ApprovalRequirement>>;
34
+ /** Per trigger type, e.g. `{ WEBHOOK_V2: ApprovalRequirement.REQUIRED }`. */
35
+ triggers?: Readonly<Record<string, ApprovalRequirement>>;
36
+ }
37
+ /** What the policy decided about one configuration. */
38
+ export interface ApprovalGate {
39
+ readonly required: boolean;
40
+ /**
41
+ * The component types that asked for it, de-duplicated. This is what a
42
+ * reviewer sees in the queue, so they can judge without opening the workflow.
43
+ */
44
+ readonly gatedBy: readonly string[];
45
+ }
46
+ //# sourceMappingURL=approval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../src/types/approval.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yEAAyE;AACzE,oBAAY,mBAAmB;IAC7B,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,OAAO,EAAE,mBAAmB,CAAC;IAC7B,4EAA4E;IAC5E,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACtD,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC;CAC1D;AAED,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Approval policy — which workflow configurations need a second pair of eyes
3
+ * before they go live.
4
+ */
5
+ /** Whether including a component obliges its workflow to be approved. */
6
+ export var ApprovalRequirement;
7
+ (function (ApprovalRequirement) {
8
+ ApprovalRequirement["NOT_REQUIRED"] = "notRequired";
9
+ ApprovalRequirement["REQUIRED"] = "required";
10
+ })(ApprovalRequirement || (ApprovalRequirement = {}));
11
+ //# sourceMappingURL=approval.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval.js","sourceRoot":"","sources":["../../src/types/approval.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,yEAAyE;AACzE,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,mDAA4B,CAAA;IAC5B,4CAAqB,CAAA;AACvB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A step or trigger found in a workflow tree, and where its config lives.
3
+ *
4
+ * Structural, not validation-specific: it says what is there and at what path,
5
+ * so anything walking a workflow can address a component's config the same way
6
+ * — and an issue raised about one lands where a shape issue about the same field
7
+ * would.
8
+ */
9
+ export interface ComponentRef {
10
+ readonly kind: 'trigger' | 'step';
11
+ readonly type: string;
12
+ /** `'trigger.config'`, `'steps[0].config'`, `'steps[0].config.body[2].config'`. */
13
+ readonly path: string;
14
+ readonly config: Record<string, unknown>;
15
+ /** Present for steps — unique across the tree, nested branches included. */
16
+ readonly stepId?: string;
17
+ }
18
+ //# sourceMappingURL=component-ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-ref.d.ts","sourceRoot":"","sources":["../../src/types/component-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=component-ref.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-ref.js","sourceRoot":"","sources":["../../src/types/component-ref.ts"],"names":[],"mappings":""}
@@ -7,6 +7,8 @@ export type { StepCategory } from './categories.js';
7
7
  export { ConditionOperator, ConditionOperatorSchema, VALUE_LESS_OPERATORS, OPERATOR_DESCRIPTORS, } from './operators.js';
8
8
  export type { OperatorDescriptor } from './operators.js';
9
9
  export { WorkflowStatus, WorkflowStatusSchema, isLiveStatus, isProposalStatus, isTerminalProposalStatus, ExecutionStatus, ExecutionStatusSchema, } from './status.js';
10
+ export { ApprovalRequirement } from './approval.js';
11
+ export type { ApprovalConfig, ApprovalGate } from './approval.js';
10
12
  export { ValidationIssueCode, ValidationIssueCodeSchema, } from './validation.js';
11
13
  export type { ValidationIssue, ValidationIssueLocation, ValidationResult } from './validation.js';
12
14
  export type { TriggerContext, StepContextEntry, WorkflowContext, } from './context.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EAEvB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EACL,iBAAiB,E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Aa,GACd,MAAM,kBAAkB,CAAC;AAM1B,YAAY,EACV,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,SAAS,GACV,MAAM,wBAAwB,CAAC"}
@@ -7,6 +7,7 @@ BuiltinTriggerType, BuiltinTriggerTypeSchema, } from './known-types.js';
7
7
  export { TriggerCategory, TriggerCategorySchema, } from './categories.js';
8
8
  export { ConditionOperator, ConditionOperatorSchema, VALUE_LESS_OPERATORS, OPERATOR_DESCRIPTORS, } from './operators.js';
9
9
  export { WorkflowStatus, WorkflowStatusSchema, isLiveStatus, isProposalStatus, isTerminalProposalStatus, ExecutionStatus, ExecutionStatusSchema, } from './status.js';
10
+ export { ApprovalRequirement } from './approval.js';
10
11
  export { ValidationIssueCode, ValidationIssueCodeSchema, } from './validation.js';
11
12
  export { variableRef, getVariableRefInnerSchema, LeafConditionSchema, ConditionSchema, WorkflowSettingsSchema, readDottedPath, } from './workflow-config.js';
12
13
  export { WorkflowVariableSchema, VariableKeySchema, projectVariables, varsJsonSchema, } from './workflow-variable.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,OAAO;AACL,kBAAkB;AAClB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB;AACvB,qBAAqB;AACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AA+BzB,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAiB9B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAE5D,OAAO;AACL,kBAAkB;AAClB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB;AACvB,qBAAqB;AACrB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AA+BzB,OAAO,EACL,WAAW,EACX,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAiB9B,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * What survives once `{{…}}` references are stripped from a config.
3
+ *
4
+ * Mirrors the runtime rule exactly. Every key is optional at every depth,
5
+ * because a reference removes it — so absence means "not knowable here",
6
+ * whether the field holds a reference or was simply never set. A loader
7
+ * narrowing a list and a validator checking one both do the same thing with
8
+ * those two cases, so collapsing them is right rather than lossy.
9
+ *
10
+ * Arrays stay whole rather than going element-wise partial: a list holding a
11
+ * reference is unanswerable, not shorter.
12
+ *
13
+ * Authors never name this. It is applied inside the context types, so the shape
14
+ * falls out of the config schema they already wrote.
15
+ */
16
+ export type Literal<T> = {
17
+ [K in keyof T]?: T[K] extends readonly unknown[] ? T[K] : T[K] extends object ? Literal<T[K]> : T[K];
18
+ };
19
+ //# sourceMappingURL=literal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["../../src/types/literal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC5C,CAAC,CAAC,CAAC,CAAC,GACJ,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACb,CAAC,CAAC,CAAC,CAAC;CACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=literal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal.js","sourceRoot":"","sources":["../../src/types/literal.ts"],"names":[],"mappings":""}
@@ -7,7 +7,22 @@ export declare enum ValidationIssueCode {
7
7
  DUPLICATE_STEP_ID = "duplicateStepId",
8
8
  MISSING_CREDENTIAL = "missingCredential",
9
9
  INVALID_FILTER = "invalidFilter",
10
- INVALID_JUMP = "invalidJump"
10
+ INVALID_JUMP = "invalidJump",
11
+ /**
12
+ * The config reads correctly but names something that will not work: a channel
13
+ * the author cannot use, a repository the credential cannot see.
14
+ *
15
+ * The one code decided by ASKING — a component's `validateConfig`, with
16
+ * credentials and a caller — rather than by reading the config, which is what
17
+ * separates it from the specific faults above. The specificity lives in the
18
+ * message, so this stays the single code for anything a component refuses.
19
+ *
20
+ * Also carries the case where the check could not be run at all. That is not
21
+ * strictly a misconfiguration, and the message says so ("could not verify —
22
+ * please try again") rather than accusing the author of a mistake that may not
23
+ * exist; the code is shared because nothing branches on it.
24
+ */
25
+ MISCONFIGURED = "misconfigured"
11
26
  }
12
27
  export declare const ValidationIssueCodeSchema: z.ZodNativeEnum<typeof ValidationIssueCode>;
13
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/types/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,iBAAiB,qBAAqB;IACtC,iBAAiB,qBAAqB;IACtC,aAAa,iBAAiB;IAC9B,iBAAiB,oBAAoB;IACrC,kBAAkB,sBAAsB;IACxC,cAAc,kBAAkB;IAChC,YAAY,gBAAgB;CAC7B;AAED,eAAO,MAAM,yBAAyB,6CAAoC,CAAC;AAE3E;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;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E,eAAe,EAAE,CAAC;CAC3B"}
@@ -9,6 +9,21 @@ export var ValidationIssueCode;
9
9
  ValidationIssueCode["MISSING_CREDENTIAL"] = "missingCredential";
10
10
  ValidationIssueCode["INVALID_FILTER"] = "invalidFilter";
11
11
  ValidationIssueCode["INVALID_JUMP"] = "invalidJump";
12
+ /**
13
+ * The config reads correctly but names something that will not work: a channel
14
+ * the author cannot use, a repository the credential cannot see.
15
+ *
16
+ * The one code decided by ASKING — a component's `validateConfig`, with
17
+ * credentials and a caller — rather than by reading the config, which is what
18
+ * separates it from the specific faults above. The specificity lives in the
19
+ * message, so this stays the single code for anything a component refuses.
20
+ *
21
+ * Also carries the case where the check could not be run at all. That is not
22
+ * strictly a misconfiguration, and the message says so ("could not verify —
23
+ * please try again") rather than accusing the author of a mistake that may not
24
+ * exist; the code is shared because nothing branches on it.
25
+ */
26
+ ValidationIssueCode["MISCONFIGURED"] = "misconfigured";
12
27
  })(ValidationIssueCode || (ValidationIssueCode = {}));
13
28
  export const ValidationIssueCodeSchema = z.nativeEnum(ValidationIssueCode);
14
29
  //# sourceMappingURL=validation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/types/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAN,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,6DAAsC,CAAA;IACtC,6DAAsC,CAAA;IACtC,qDAA8B,CAAA;IAC9B,4DAAqC,CAAA;IACrC,+DAAwC,CAAA;IACxC,uDAAgC,CAAA;IAChC,mDAA4B,CAAA;AAC9B,CAAC,EATW,mBAAmB,KAAnB,mBAAmB,QAS9B;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/types/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAN,IAAY,mBAwBX;AAxBD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,6DAAsC,CAAA;IACtC,6DAAsC,CAAA;IACtC,qDAA8B,CAAA;IAC9B,4DAAqC,CAAA;IACrC,+DAAwC,CAAA;IACxC,uDAAgC,CAAA;IAChC,mDAA4B,CAAA;IAC5B;;;;;;;;;;;;;OAaG;IACH,sDAA+B,CAAA;AACjC,CAAC,EAxBW,mBAAmB,KAAnB,mBAAmB,QAwB9B;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Resolving a deployment's {@link ApprovalConfig} against the components a
3
+ * workflow actually uses.
4
+ *
5
+ * Here rather than on the runtime because it is a pure reading of policy: no
6
+ * adapters, no I/O, nothing to mock. The runtime's part is deciding what to do
7
+ * with the answer.
8
+ */
9
+ import type { ApprovalConfig, ApprovalGate } from '../types/approval.js';
10
+ import type { ComponentRef } from '../types/component-ref.js';
11
+ /**
12
+ * Whether these components oblige their workflow to be reviewed, and which
13
+ * types asked for it.
14
+ *
15
+ * Most-specific first: the per-kind map, then `default`. `steps` and `triggers`
16
+ * are read by kind and never crossed — a rule naming a step must not reach a
17
+ * trigger that happens to share its type string.
18
+ *
19
+ * Callers pass what `ConfigValidator.components()` returned, which skips types
20
+ * the registry does not know. That reads here as "nothing to gate", and is safe
21
+ * rather than merely tolerable: a component no connector provides cannot
22
+ * execute either, so the run it would have gated cannot do the thing the gate
23
+ * exists to catch.
24
+ */
25
+ export declare function approvalGate(policy: ApprovalConfig, components: readonly ComponentRef[]): ApprovalGate;
26
+ //# sourceMappingURL=approval-gate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-gate.d.ts","sourceRoot":"","sources":["../../src/util/approval-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,SAAS,YAAY,EAAE,GAClC,YAAY,CAQd"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Resolving a deployment's {@link ApprovalConfig} against the components a
3
+ * workflow actually uses.
4
+ *
5
+ * Here rather than on the runtime because it is a pure reading of policy: no
6
+ * adapters, no I/O, nothing to mock. The runtime's part is deciding what to do
7
+ * with the answer.
8
+ */
9
+ import { ApprovalRequirement } from '../types/approval.js';
10
+ /**
11
+ * Whether these components oblige their workflow to be reviewed, and which
12
+ * types asked for it.
13
+ *
14
+ * Most-specific first: the per-kind map, then `default`. `steps` and `triggers`
15
+ * are read by kind and never crossed — a rule naming a step must not reach a
16
+ * trigger that happens to share its type string.
17
+ *
18
+ * Callers pass what `ConfigValidator.components()` returned, which skips types
19
+ * the registry does not know. That reads here as "nothing to gate", and is safe
20
+ * rather than merely tolerable: a component no connector provides cannot
21
+ * execute either, so the run it would have gated cannot do the thing the gate
22
+ * exists to catch.
23
+ */
24
+ export function approvalGate(policy, components) {
25
+ const gatedBy = [];
26
+ for (const ref of components) {
27
+ const declared = (ref.kind === 'step' ? policy.steps : policy.triggers)?.[ref.type];
28
+ if ((declared ?? policy.default) !== ApprovalRequirement.REQUIRED)
29
+ continue;
30
+ if (!gatedBy.includes(ref.type))
31
+ gatedBy.push(ref.type);
32
+ }
33
+ return { required: gatedBy.length > 0, gatedBy };
34
+ }
35
+ //# sourceMappingURL=approval-gate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-gate.js","sourceRoot":"","sources":["../../src/util/approval-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAsB,EACtB,UAAmC;IAEnC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACpF,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,mBAAmB,CAAC,QAAQ;YAAE,SAAS;QAC5E,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC;AACnD,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Stripping `{{…}}` references out of a config.
3
+ *
4
+ * The runtime counterpart of `Literal<T>`: that type describes what is left, and
5
+ * this produces it. They live together because they have to agree — a type
6
+ * saying a key may be absent is only honest if something actually removes it.
7
+ *
8
+ * Used wherever a component is asked about values it could act on NOW: narrowing
9
+ * a picker, checking a configuration. The editor keeps its own copy of this rule
10
+ * for its query cache; if the two ever disagree, the cache stops reflecting what
11
+ * the loader sees.
12
+ */
13
+ /**
14
+ * The fields whose values are actually known while editing.
15
+ *
16
+ * A sibling field may hold `{{trigger.projectId}}` — a promise about run time,
17
+ * not an id. A loader filtering by it would search for the literal text and
18
+ * quietly find nothing, so references are dropped here and offered separately as
19
+ * `config` for the rare loader that wants the raw text.
20
+ */
21
+ export declare function literalValues(config: Record<string, unknown>): Record<string, unknown>;
22
+ //# sourceMappingURL=literal-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal-values.d.ts","sourceRoot":"","sources":["../../src/util/literal-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAatF"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Stripping `{{…}}` references out of a config.
3
+ *
4
+ * The runtime counterpart of `Literal<T>`: that type describes what is left, and
5
+ * this produces it. They live together because they have to agree — a type
6
+ * saying a key may be absent is only honest if something actually removes it.
7
+ *
8
+ * Used wherever a component is asked about values it could act on NOW: narrowing
9
+ * a picker, checking a configuration. The editor keeps its own copy of this rule
10
+ * for its query cache; if the two ever disagree, the cache stops reflecting what
11
+ * the loader sees.
12
+ */
13
+ /**
14
+ * The fields whose values are actually known while editing.
15
+ *
16
+ * A sibling field may hold `{{trigger.projectId}}` — a promise about run time,
17
+ * not an id. A loader filtering by it would search for the literal text and
18
+ * quietly find nothing, so references are dropped here and offered separately as
19
+ * `config` for the rare loader that wants the raw text.
20
+ */
21
+ export function literalValues(config) {
22
+ const out = {};
23
+ for (const [key, value] of Object.entries(config)) {
24
+ if (isPlainObject(value)) {
25
+ // Follow the form as deep as a field path can go: `repository.id` is a
26
+ // usable filter even when its neighbour `repository.name` is a reference.
27
+ out[key] = literalValues(value);
28
+ continue;
29
+ }
30
+ if (holdsRef(value))
31
+ continue;
32
+ out[key] = value;
33
+ }
34
+ return out;
35
+ }
36
+ function isPlainObject(value) {
37
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
38
+ }
39
+ /**
40
+ * Whether a value is waiting on run time anywhere inside it.
41
+ *
42
+ * An array is all-or-nothing: dropping the one element that holds a reference
43
+ * would hand the loader a shorter list and no sign that it is short, which reads
44
+ * as a narrower filter rather than an unanswerable one.
45
+ */
46
+ function holdsRef(value) {
47
+ if (typeof value === 'string')
48
+ return value.includes('{{');
49
+ if (Array.isArray(value))
50
+ return value.some(holdsRef);
51
+ if (isPlainObject(value))
52
+ return Object.values(value).some(holdsRef);
53
+ return false;
54
+ }
55
+ //# sourceMappingURL=literal-values.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal-values.js","sourceRoot":"","sources":["../../src/util/literal-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,MAA+B;IAC3D,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,uEAAuE;YACvE,0EAA0E;YAC1E,GAAG,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;YAChC,SAAS;QACX,CAAC;QACD,IAAI,QAAQ,CAAC,KAAK,CAAC;YAAE,SAAS;QAC9B,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACnB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;;GAMG;AACH,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,aAAa,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrE,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyne/workflow-sdk",
3
- "version": "3.2.43",
3
+ "version": "3.2.45",
4
4
  "description": "Workflow engine SDK \u2014 steps, triggers, executor, agents, and a framework-agnostic HTTP router.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -1,35 +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
- /**
18
- * Evaluate `expr` over `inputs`, or `undefined` when it cannot be evaluated
19
- * with certainty.
20
- *
21
- * `undefined` is deliberately indistinguishable between "malformed" and
22
- * "unsupported": in either case the UI shows the expression without a verdict.
23
- * Showing a wrong ✓ would be worse than showing none.
24
- */
25
- export declare function evaluateExpression(expr: string, inputs: number[]): number | undefined;
26
- /**
27
- * Parse a number out of a cited value as it appears in a document —
28
- * `"₹36,816.00"`, `"1 234,5"`, `"(1,200)"` (accounting negative), `"12%"`.
29
- *
30
- * Needed because an input's value arrives as source text, not a number, and a
31
- * verification that only worked on already-clean numbers would rarely fire on
32
- * real documents. Returns `undefined` when there is no unambiguous number.
33
- */
34
- export declare function parseNumericValue(value: unknown): number | undefined;
35
- //# sourceMappingURL=expression-eval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"expression-eval.d.ts","sourceRoot":"","sources":["../../src/common/expression-eval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAwHH;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAIrF;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAyCpE"}