@beehexa/hexasync-template-validate 2608.15.1 → 2608.20.18

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 (121) hide show
  1. package/package.json +6 -6
  2. package/dist/index.d.ts +0 -39
  3. package/dist/index.d.ts.map +0 -1
  4. package/dist/index.js +0 -39
  5. package/dist/index.js.map +0 -1
  6. package/dist/validate/agentAnswers.d.ts +0 -48
  7. package/dist/validate/agentAnswers.d.ts.map +0 -1
  8. package/dist/validate/agentAnswers.js +0 -84
  9. package/dist/validate/agentAnswers.js.map +0 -1
  10. package/dist/validate/agentTools.d.ts +0 -37
  11. package/dist/validate/agentTools.d.ts.map +0 -1
  12. package/dist/validate/agentTools.js +0 -141
  13. package/dist/validate/agentTools.js.map +0 -1
  14. package/dist/validate/buildValidationModel.d.ts +0 -31
  15. package/dist/validate/buildValidationModel.d.ts.map +0 -1
  16. package/dist/validate/buildValidationModel.js +0 -68
  17. package/dist/validate/buildValidationModel.js.map +0 -1
  18. package/dist/validate/context.d.ts +0 -108
  19. package/dist/validate/context.d.ts.map +0 -1
  20. package/dist/validate/context.js +0 -95
  21. package/dist/validate/context.js.map +0 -1
  22. package/dist/validate/contextFromGraph.d.ts +0 -68
  23. package/dist/validate/contextFromGraph.d.ts.map +0 -1
  24. package/dist/validate/contextFromGraph.js +0 -81
  25. package/dist/validate/contextFromGraph.js.map +0 -1
  26. package/dist/validate/harvestPullerTaskIds.d.ts +0 -60
  27. package/dist/validate/harvestPullerTaskIds.d.ts.map +0 -1
  28. package/dist/validate/harvestPullerTaskIds.js +0 -116
  29. package/dist/validate/harvestPullerTaskIds.js.map +0 -1
  30. package/dist/validate/model.d.ts +0 -14
  31. package/dist/validate/model.d.ts.map +0 -1
  32. package/dist/validate/model.js +0 -97
  33. package/dist/validate/model.js.map +0 -1
  34. package/dist/validate/registry.d.ts +0 -24
  35. package/dist/validate/registry.d.ts.map +0 -1
  36. package/dist/validate/registry.js +0 -101
  37. package/dist/validate/registry.js.map +0 -1
  38. package/dist/validate/retrieve.d.ts +0 -125
  39. package/dist/validate/retrieve.d.ts.map +0 -1
  40. package/dist/validate/retrieve.js +0 -272
  41. package/dist/validate/retrieve.js.map +0 -1
  42. package/dist/validate/rule.d.ts +0 -18
  43. package/dist/validate/rule.d.ts.map +0 -1
  44. package/dist/validate/rule.js +0 -2
  45. package/dist/validate/rule.js.map +0 -1
  46. package/dist/validate/ruleCatalog.d.ts +0 -22
  47. package/dist/validate/ruleCatalog.d.ts.map +0 -1
  48. package/dist/validate/ruleCatalog.js +0 -473
  49. package/dist/validate/ruleCatalog.js.map +0 -1
  50. package/dist/validate/rules/apiShape.d.ts +0 -51
  51. package/dist/validate/rules/apiShape.d.ts.map +0 -1
  52. package/dist/validate/rules/apiShape.js +0 -150
  53. package/dist/validate/rules/apiShape.js.map +0 -1
  54. package/dist/validate/rules/arguments.d.ts +0 -3
  55. package/dist/validate/rules/arguments.d.ts.map +0 -1
  56. package/dist/validate/rules/arguments.js +0 -301
  57. package/dist/validate/rules/arguments.js.map +0 -1
  58. package/dist/validate/rules/connectorIdentity.d.ts +0 -3
  59. package/dist/validate/rules/connectorIdentity.d.ts.map +0 -1
  60. package/dist/validate/rules/connectorIdentity.js +0 -347
  61. package/dist/validate/rules/connectorIdentity.js.map +0 -1
  62. package/dist/validate/rules/context.d.ts +0 -42
  63. package/dist/validate/rules/context.d.ts.map +0 -1
  64. package/dist/validate/rules/context.js +0 -92
  65. package/dist/validate/rules/context.js.map +0 -1
  66. package/dist/validate/rules/dependencyIntegrity.d.ts +0 -60
  67. package/dist/validate/rules/dependencyIntegrity.d.ts.map +0 -1
  68. package/dist/validate/rules/dependencyIntegrity.js +0 -296
  69. package/dist/validate/rules/dependencyIntegrity.js.map +0 -1
  70. package/dist/validate/rules/duplicates.d.ts +0 -27
  71. package/dist/validate/rules/duplicates.d.ts.map +0 -1
  72. package/dist/validate/rules/duplicates.js +0 -337
  73. package/dist/validate/rules/duplicates.js.map +0 -1
  74. package/dist/validate/rules/flow.d.ts +0 -57
  75. package/dist/validate/rules/flow.d.ts.map +0 -1
  76. package/dist/validate/rules/flow.js +0 -714
  77. package/dist/validate/rules/flow.js.map +0 -1
  78. package/dist/validate/rules/overwriteLoss.d.ts +0 -23
  79. package/dist/validate/rules/overwriteLoss.d.ts.map +0 -1
  80. package/dist/validate/rules/overwriteLoss.js +0 -40
  81. package/dist/validate/rules/overwriteLoss.js.map +0 -1
  82. package/dist/validate/rules/pullerKind.d.ts +0 -3
  83. package/dist/validate/rules/pullerKind.d.ts.map +0 -1
  84. package/dist/validate/rules/pullerKind.js +0 -92
  85. package/dist/validate/rules/pullerKind.js.map +0 -1
  86. package/dist/validate/rules/reference.d.ts +0 -44
  87. package/dist/validate/rules/reference.d.ts.map +0 -1
  88. package/dist/validate/rules/reference.js +0 -405
  89. package/dist/validate/rules/reference.js.map +0 -1
  90. package/dist/validate/rules/referenceKind.d.ts +0 -25
  91. package/dist/validate/rules/referenceKind.d.ts.map +0 -1
  92. package/dist/validate/rules/referenceKind.js +0 -235
  93. package/dist/validate/rules/referenceKind.js.map +0 -1
  94. package/dist/validate/rules/retiredType.d.ts +0 -149
  95. package/dist/validate/rules/retiredType.d.ts.map +0 -1
  96. package/dist/validate/rules/retiredType.js +0 -235
  97. package/dist/validate/rules/retiredType.js.map +0 -1
  98. package/dist/validate/rules/stepData.d.ts +0 -122
  99. package/dist/validate/rules/stepData.d.ts.map +0 -1
  100. package/dist/validate/rules/stepData.js +0 -249
  101. package/dist/validate/rules/stepData.js.map +0 -1
  102. package/dist/validate/rules/stepIterations.d.ts +0 -49
  103. package/dist/validate/rules/stepIterations.d.ts.map +0 -1
  104. package/dist/validate/rules/stepIterations.js +0 -156
  105. package/dist/validate/rules/stepIterations.js.map +0 -1
  106. package/dist/validate/rules/tables.d.ts +0 -8
  107. package/dist/validate/rules/tables.d.ts.map +0 -1
  108. package/dist/validate/rules/tables.js +0 -116
  109. package/dist/validate/rules/tables.js.map +0 -1
  110. package/dist/validate/rules/variableDrift.d.ts +0 -63
  111. package/dist/validate/rules/variableDrift.d.ts.map +0 -1
  112. package/dist/validate/rules/variableDrift.js +0 -132
  113. package/dist/validate/rules/variableDrift.js.map +0 -1
  114. package/dist/validate/rules/variables.d.ts +0 -12
  115. package/dist/validate/rules/variables.d.ts.map +0 -1
  116. package/dist/validate/rules/variables.js +0 -207
  117. package/dist/validate/rules/variables.js.map +0 -1
  118. package/dist/validate/sourceLocator.d.ts +0 -32
  119. package/dist/validate/sourceLocator.d.ts.map +0 -1
  120. package/dist/validate/sourceLocator.js +0 -166
  121. package/dist/validate/sourceLocator.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiShape.d.ts","sourceRoot":"","sources":["../../../src/validate/rules/apiShape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAShE,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEtD,CAAC;AAiBF,eAAO,MAAM,YAAY,EAAE,cAyI1B,CAAC"}
@@ -1,150 +0,0 @@
1
- /** `type` → whether that builder reads `url`. Absent means the value has no builder at all. */
2
- export const API_TYPE_READS_URL = {
3
- REST: true,
4
- GRAPHQL: true,
5
- SOAP: true,
6
- FORM_URL_ENCODED: true,
7
- MULTIPART_UPLOAD: true,
8
- BINARY_UPLOAD: true,
9
- DOWNLOAD_CSV: true,
10
- GOOGLE_APP_SCRIPT: false,
11
- };
12
- /** A misspelling the runtime silently ignores, and the field it was meant to be. */
13
- export const NEAR_MISS = {
14
- annonymous: 'anonymous',
15
- };
16
- const STAGES = [
17
- 'beforePullSteps',
18
- 'pullSteps',
19
- 'afterPullSteps',
20
- 'steps',
21
- 'onErrorSteps',
22
- 'finalSteps',
23
- 'beforePushSteps',
24
- 'pushSteps',
25
- 'afterPushSteps',
26
- ];
27
- const arr = (value, key) => Array.isArray(value?.[key]) ? value[key] : [];
28
- export const apiShapeRule = {
29
- id: 'API',
30
- family: 'API',
31
- run(ctx) {
32
- const cnf = ctx.tokenForm;
33
- if (!cnf || typeof cnf !== 'object')
34
- return [];
35
- const issues = [];
36
- const check = (step, parentKey, componentId) => {
37
- if (step?.displayType !== 'API')
38
- return;
39
- const data = step?.data && typeof step.data === 'object' && !Array.isArray(step.data)
40
- ? step.data
41
- : undefined;
42
- if (!data)
43
- return;
44
- const stepKey = typeof step?.key === 'string' || typeof step?.key === 'number'
45
- ? String(step.key)
46
- : '(step)';
47
- /**
48
- * ⛔ The STEP, not just the component. `locateValue` is a bare field name and the locator scans the whole
49
- * component span for the first match, so two API steps in one puller produced findings that underlined each
50
- * other's lines — measured at 1,035 of 1,648 corpus findings sharing a (component, locateValue) key. The
51
- * webhook branch already folded its target in for exactly this reason; the step loops did not.
52
- */
53
- const idOrKey = componentId
54
- ? `${componentId} step ${stepKey}`
55
- : `step ${stepKey}`;
56
- /**
57
- * ⛔ A non-HTTP connector on an `API` step reads its own fields — `sql` is the tell. Judging it against the
58
- * HTTP table would report every field as missing on a step that is entirely correct.
59
- *
60
- * ⛔ This returns EARLY. It used to sit below the near-miss loop, so API-1 still fired on SQL-shaped steps
61
- * while the docblock and the spec's own test title both claimed the rule "leaves them alone entirely" — the
62
- * test passed only because its fixture omitted the misspelling. Found by the Epic 10 review.
63
- */
64
- if (data['sql'] !== undefined)
65
- return;
66
- for (const [wrong, right] of Object.entries(NEAR_MISS)) {
67
- if (data[wrong] === undefined)
68
- continue;
69
- /**
70
- * ⛔ `low`, uniformly — and the reason is the Epic 10 review's headline correction. The first version split
71
- * severity on the VALUE, calling `annonymous: true` `high` because "the request is sent WITH credentials
72
- * although this step asks for none". That is FALSE: `BaseHttpRequestBuilder.cs:969` parses `$.anonymous`
73
- * into `_anonymous`, which is read NOWHERE in core.api. Neither spelling does anything, so correcting the
74
- * typo changes nothing and there is no behavioural difference to rank. The finding is still worth making —
75
- * 1,697 corpus steps state an intent the platform does not honour — but at the severity that is true.
76
- */
77
- issues.push({
78
- ruleId: 'API-1',
79
- family: 'API',
80
- severity: 'low',
81
- parentKey,
82
- idOrKey,
83
- message: `step "${stepKey}" sets \`${wrong}\`, which the runtime never reads — the field is \`${right}\``,
84
- why: `neither spelling changes the request: \`${right}\` is parsed by the worker and never acted on, so this line states an intent the platform does not honour`,
85
- locateValue: wrong,
86
- });
87
- }
88
- const type = typeof data['type'] === 'string' ? data['type'] : 'REST';
89
- const readsUrl = API_TYPE_READS_URL[type];
90
- /**
91
- * An unknown `type` has no keyed builder, so `GetRequiredKeyedService` throws when the step runs. Not
92
- * reported here: the schema's `enum` already refuses it at the caret, which is the earlier and better place.
93
- */
94
- if (readsUrl === undefined)
95
- return;
96
- /**
97
- * ⛔ Only judge a step that looks like an HTTP call. `sql` is not the only non-HTTP shape — a connector with
98
- * its own vocabulary (`procedure`, say) has no `url` and is entirely correct. Requiring one piece of HTTP
99
- * evidence keeps API-2 to steps that are demonstrably HTTP-shaped, at the cost of staying quiet on a step
100
- * that declares nothing at all — which is the right trade at `high`.
101
- */
102
- const HTTP_EVIDENCE = [
103
- 'type',
104
- 'method',
105
- 'headers',
106
- 'queries',
107
- 'body',
108
- 'acceptHttpStatuses',
109
- 'responseType',
110
- ];
111
- const looksHttp = HTTP_EVIDENCE.some((f) => data[f] !== undefined);
112
- if (readsUrl && looksHttp && data['url'] === undefined) {
113
- issues.push({
114
- ruleId: 'API-2',
115
- family: 'API',
116
- severity: 'high',
117
- parentKey,
118
- idOrKey,
119
- message: `step "${stepKey}" is \`${type}\`, which builds its request from \`url\`, and no \`url\` is set`,
120
- why: 'the request cannot be addressed, so the step fails when it runs rather than when it is saved',
121
- locateValue: 'type',
122
- });
123
- }
124
- };
125
- for (const collection of ['pullers', 'pushers', 'objects']) {
126
- for (const component of arr(cnf, collection)) {
127
- const id = component?.id != null ? String(component.id) : undefined;
128
- for (const stage of STAGES) {
129
- for (const step of arr(component, stage))
130
- check(step, collection, id);
131
- }
132
- }
133
- }
134
- for (const webhook of arr(cnf, 'webhooks')) {
135
- const id = webhook?.id != null ? String(webhook.id) : undefined;
136
- const targets = webhook?.targets &&
137
- typeof webhook.targets === 'object' &&
138
- !Array.isArray(webhook.targets)
139
- ? webhook.targets
140
- : {};
141
- for (const [targetKey, target] of Object.entries(targets)) {
142
- for (const step of arr(target, 'pullSteps')) {
143
- check(step, 'webhooks', id ? `${id} target ${targetKey}` : `target ${targetKey}`);
144
- }
145
- }
146
- }
147
- return issues;
148
- },
149
- };
150
- //# sourceMappingURL=apiShape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiShape.js","sourceRoot":"","sources":["../../../src/validate/rules/apiShape.ts"],"names":[],"mappings":"AAgDA,+FAA+F;AAC/F,MAAM,CAAC,MAAM,kBAAkB,GAAsC;IACnE,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI;IACV,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,iBAAiB,EAAE,KAAK;CACzB,CAAC;AAEF,oFAAoF;AACpF,MAAM,CAAC,MAAM,SAAS,GAAqC;IACzD,UAAU,EAAE,WAAW;CACxB,CAAC;AAEF,MAAM,MAAM,GAAG;IACb,iBAAiB;IACjB,WAAW;IACX,gBAAgB;IAChB,OAAO;IACP,cAAc;IACd,YAAY;IACZ,iBAAiB;IACjB,WAAW;IACX,gBAAgB;CACR,CAAC;AAEX,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,GAAW,EAAS,EAAE,CAC7C,KAAK,CAAC,OAAO,CAAC,KAAK,EAA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AU,EACV,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,WAAW,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,SAAS,EAAE,CACzD,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ValidationRule } from '../rule.js';
2
- export declare const argumentsRule: ValidationRule;
3
- //# sourceMappingURL=arguments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../../src/validate/rules/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA6JjD,eAAO,MAAM,aAAa,EAAE,cAwO3B,CAAC"}
@@ -1,301 +0,0 @@
1
- /**
2
- * ARG family — transform `arguments` correctness (worker-data-raw-enhancement Epic TA7 / AD-28 / FR14).
3
- *
4
- * The four SQL-feeding transforms (`SQL`, `Nested_SQL`, `QUERY_SINGLE`, `QUERY_MANY`) gained a step-style
5
- * `arguments` block (TA2), a per-arg declared `type` (TA4) and `isList` (TA5), and a DSL `ARG` operand that
6
- * binds a declared arg by name (TA3). The runtime enforces these; this family surfaces the authoring mistakes
7
- * the backend deferred to the editor/CLI so they are caught before a run rather than as a silent no-bind or a
8
- * `integer = text` at execution time.
9
- *
10
- * Reads `ctx.outputForm` (the composed, inheritance-resolved graph) so an inherited `arguments` block is seen.
11
- * Advisory throughout — `runValidation` swallows a throwing rule, so nothing here can fail a compose.
12
- *
13
- * Ids (letters-then-digits for `ruleCatalog`'s `splitRuleId`):
14
- * - **ARG-1** (high/error) an `ARG` operand references a `key` not declared in the transform's `arguments` (or
15
- * carries no `key` at all) — binds nothing at runtime.
16
- * - **ARG-2** (medium/warning) a declared ordered-arg `type` is not one of the six canonical types (a typo like
17
- * `"int"`), so the intended typed bind silently does not happen.
18
- * - **ARG-3** (high/error) a declared arg `key` is `__`-prefixed or a builder-reserved name
19
- * (`limit`/`offset`/`p_#####`) — the runtime rejects it (mirrors the backend compose-ban).
20
- * - **ARG-4** (high/error) an `ARG` operand appears in a `select` position — SELECT projects identifiers only,
21
- * so a select-`ARG` is rejected at compose (TA3).
22
- * - **ARG-5** (medium/warning) a duplicate declared `key` in the ordered form — silently de-duped at runtime.
23
- * - **ARG-6** (medium/warning) a declared arg is never referenced (no `ARG` operand, no `@key` in the SQL, and
24
- * not reused by a later arg via `{{ __this.arguments.<key> }}`) — dead authoring.
25
- * - **ARG-7** (medium/warning) an `isList` arg is bound by an `ARG` operand under a comparison whose operator is
26
- * not `IN` / `NOT_IN` — a list value only makes sense for set membership (TA5).
27
- *
28
- * The map/JSONata-form typed-bind hint (a map/JSONata arg against a non-text column that structurally cannot
29
- * carry a `type`) is intentionally NOT implemented: those forms carry no per-entry `type`, so a rule would fire
30
- * on every one and cry wolf (retiredType.ts's lesson). It is recorded as a deferral in `deferred-work.md`. The
31
- * arg-key-overrides-a-referenced-item-column warning is likewise deferred there (it needs the backing table's
32
- * column set, which the transform metadata does not carry).
33
- */
34
- /** Transform types that accept an `arguments` block (the SQL-feeding four). Others ignore `arguments`. */
35
- const ARG_BEARING_TYPES = new Set([
36
- 'SQL',
37
- 'Nested_SQL',
38
- 'QUERY_SINGLE',
39
- 'QUERY_MANY',
40
- ]);
41
- /** Canonical declared-arg types — must match the backend `ArgumentTyping.TryParseType`. */
42
- const VALID_ARG_TYPES = new Set([
43
- 'string',
44
- 'integer',
45
- 'decimal',
46
- 'boolean',
47
- 'timestamp',
48
- 'uuid',
49
- ]);
50
- /** The only operators a list (`isList`) argument makes sense under. */
51
- const LIST_OPS = new Set(['IN', 'NOT_IN']);
52
- /** Reserved names the runtime bans as an arg key (matches the backend compose-ban). `p_` + five-OR-MORE digits
53
- * so a wider minted-param counter still collides. */
54
- function isReservedArgKey(key) {
55
- // `limit`/`offset` are compared case-INSENSITIVELY to match the backend's
56
- // `ReservedBuilderNames = new(StringComparer.OrdinalIgnoreCase)` — the runtime rejects `LIMIT`/`Offset` too.
57
- const lower = key.toLowerCase();
58
- return (key.startsWith('__') ||
59
- lower === 'limit' ||
60
- lower === 'offset' ||
61
- /^p_\d{5,}$/.test(key));
62
- }
63
- /** A whole-block JSONata `arguments` value: a bare string (the third runtime-supported form besides map/ordered).
64
- * Its declared keys are unknowable pre-run, so ARG-1 membership is skipped for it — mirroring the backend, which
65
- * treats a string block's declared set as `null` and does not check ARG-operand membership. */
66
- function isJsonataStringBlock(argumentsBlock) {
67
- return typeof argumentsBlock === 'string';
68
- }
69
- /** Normalize `metadata.arguments` (map form OR ordered-array form) to a flat list of declared args.
70
- * Duplicates are preserved (ARG-5 counts them); the map form carries no `type`/`isList`. */
71
- function declaredArgs(argumentsBlock) {
72
- if (!argumentsBlock || typeof argumentsBlock !== 'object')
73
- return [];
74
- if (Array.isArray(argumentsBlock)) {
75
- const out = [];
76
- for (const entry of argumentsBlock) {
77
- if (entry && typeof entry === 'object' && entry.key != null) {
78
- const raw = entry.expression ?? entry.value;
79
- out.push({
80
- key: String(entry.key),
81
- type: entry.type != null ? String(entry.type) : undefined,
82
- isList: entry.isList === true,
83
- expr: raw != null ? String(raw) : '',
84
- });
85
- }
86
- }
87
- return out;
88
- }
89
- // Map form: { key: expression } — no per-entry type/isList; the value IS the expression.
90
- return Object.entries(argumentsBlock).map(([key, v]) => ({
91
- key,
92
- isList: false,
93
- expr: v != null ? String(v) : '',
94
- }));
95
- }
96
- /** Every `{ type: "ARG", key }` operand under `node`, returning each `key` value (a string, or `undefined`
97
- * when the operand is malformed — no/empty key). Cycle-guarded (YAML anchors can produce self-referential
98
- * graphs; an unguarded walk would throw and the registry would swallow it, dropping ALL ARG checks). */
99
- function collectArgOperands(node) {
100
- const keys = [];
101
- const seen = new WeakSet();
102
- const walk = (n) => {
103
- if (!n || typeof n !== 'object')
104
- return;
105
- if (seen.has(n))
106
- return;
107
- seen.add(n);
108
- if (Array.isArray(n)) {
109
- for (const el of n)
110
- walk(el);
111
- return;
112
- }
113
- if (n.type === 'ARG') {
114
- const k = n.key != null ? String(n.key) : '';
115
- keys.push(k === '' ? undefined : k);
116
- }
117
- for (const v of Object.values(n))
118
- walk(v);
119
- };
120
- walk(node);
121
- return keys;
122
- }
123
- /** The valid (non-empty) ARG keys under `node`. */
124
- function argKeysUnder(node) {
125
- return collectArgOperands(node).filter((k) => k != null);
126
- }
127
- /** `@name` and `__this.arguments.<name>` references in an expression / SQL string — used only to mark an arg as
128
- * USED (ARG-6), never to assert existence, so over-matching is the safe direction. */
129
- function harvestRefs(text, into) {
130
- if (typeof text !== 'string')
131
- return;
132
- for (const m of text.matchAll(/@([A-Za-z_][A-Za-z0-9_]*)/g))
133
- into.add(m[1]);
134
- for (const m of text.matchAll(/__this\.arguments\.([A-Za-z_][A-Za-z0-9_]*)/g))
135
- into.add(m[1]);
136
- }
137
- export const argumentsRule = {
138
- id: 'ARG',
139
- family: 'ARG',
140
- run(ctx) {
141
- const issues = [];
142
- const form = ctx.outputForm;
143
- const map = form?.transformations;
144
- if (!map || typeof map !== 'object' || Array.isArray(map))
145
- return issues;
146
- const push = (ruleId, severity, objId, message, why, locateValue) => {
147
- issues.push({
148
- ruleId,
149
- family: 'ARG',
150
- severity,
151
- parentKey: 'transformations',
152
- idOrKey: objId,
153
- message,
154
- why,
155
- locateValue,
156
- });
157
- };
158
- for (const [objId, transforms] of Object.entries(map)) {
159
- if (!Array.isArray(transforms))
160
- continue;
161
- for (const tf of transforms) {
162
- if (!tf || typeof tf !== 'object')
163
- continue;
164
- if (!ARG_BEARING_TYPES.has(String(tf.type)))
165
- continue;
166
- const md = tf.metadata;
167
- if (!md || typeof md !== 'object')
168
- continue;
169
- const label = tf.id != null ? String(tf.id) : String(tf.type);
170
- const declared = declaredArgs(md.arguments);
171
- const declaredKeys = new Set(declared.map((d) => d.key));
172
- const listKeys = new Set(declared.filter((d) => d.isList).map((d) => d.key));
173
- // ARG-3 reserved/__ key; ARG-2 unknown type; ARG-5 duplicate. Dedupe so a repeated key does not emit
174
- // the same finding twice (ARG-5 already reports the duplication).
175
- const counts = new Map();
176
- const arg3Seen = new Set();
177
- const arg2Seen = new Set();
178
- for (const d of declared) {
179
- counts.set(d.key, (counts.get(d.key) ?? 0) + 1);
180
- if (isReservedArgKey(d.key) && !arg3Seen.has(d.key)) {
181
- arg3Seen.add(d.key);
182
- push('ARG-3', 'high', objId, `transform "${label}" declares a reserved argument key "${d.key}"`, 'the runtime rejects a __-prefixed or builder-reserved (limit/offset/p_#####) argument key', d.key);
183
- }
184
- // An empty-string `type` is an omitted type, not an unknown one — do not flag it.
185
- const declaredType = d.type?.trim();
186
- if (declaredType !== undefined &&
187
- declaredType !== '' &&
188
- !VALID_ARG_TYPES.has(d.type) &&
189
- !arg2Seen.has(d.key)) {
190
- arg2Seen.add(d.key);
191
- push('ARG-2', 'medium', objId, `transform "${label}" argument "${d.key}" has unknown type "${d.type}" (expected string|integer|decimal|boolean|timestamp|uuid)`, 'the value is not coerced to the intended type, so it binds as text', d.key);
192
- }
193
- }
194
- for (const [key, n] of counts) {
195
- if (n > 1) {
196
- push('ARG-5', 'medium', objId, `transform "${label}" declares argument "${key}" ${n} times`, 'only the last occurrence survives — the earlier ones are silently dropped', key);
197
- }
198
- }
199
- // ARG-4 — an ARG operand in a select position (SELECT projects identifiers only).
200
- const selectKeys = argKeysUnder(md.select);
201
- const selectSeen = new Set();
202
- for (const selKey of selectKeys) {
203
- if (selectSeen.has(selKey))
204
- continue;
205
- selectSeen.add(selKey);
206
- push('ARG-4', 'high', objId, `transform "${label}" uses an ARG operand ("${selKey}") in select`, 'SELECT projects identifiers only — a select-ARG is rejected at compose', selKey);
207
- }
208
- // ARG-1 — an ARG operand (where/join/from) that names an undeclared key, or carries no key at all.
209
- // A whole-block JSONata STRING `arguments` produces keys unknowable pre-run, so the undeclared-membership
210
- // check is skipped for it (mirrors the backend, which skips membership when the declared set is `null`) —
211
- // a malformed no-key operand is still always wrong and is reported regardless of the form.
212
- const declaredUnknowable = isJsonataStringBlock(md.arguments);
213
- const whereJoinOperands = [
214
- ...collectArgOperands(md.where),
215
- ...collectArgOperands(md.joins),
216
- ...collectArgOperands(md.from),
217
- ];
218
- let malformedReported = false;
219
- const arg1Seen = new Set();
220
- for (const key of whereJoinOperands) {
221
- if (key === undefined) {
222
- if (!malformedReported) {
223
- malformedReported = true;
224
- push('ARG-1', 'high', objId, `transform "${label}" has an ARG operand with no "key"`, 'the operand names no argument, so it binds nothing at runtime');
225
- }
226
- continue;
227
- }
228
- if (!declaredUnknowable &&
229
- !declaredKeys.has(key) &&
230
- !arg1Seen.has(key)) {
231
- arg1Seen.add(key);
232
- push('ARG-1', 'high', objId, `transform "${label}" ARG operand references undeclared argument "${key}"`, "the operand binds nothing at runtime — declare it in this transform's arguments", key);
233
- }
234
- }
235
- // ARG-7 — a list (isList) arg bound by an ARG operand under a non-IN/NOT_IN comparison. Walk the
236
- // where/join trees with operator context: a comparison node is `{ op, data: { leftOp, rightOp } }`;
237
- // AND/OR grouping nodes carry `data: [ ...child nodes ]`.
238
- if (listKeys.size > 0) {
239
- const arg7Seen = new Set();
240
- const seen = new WeakSet();
241
- const walkOps = (n) => {
242
- if (!n || typeof n !== 'object' || seen.has(n))
243
- return;
244
- seen.add(n);
245
- if (Array.isArray(n)) {
246
- for (const el of n)
247
- walkOps(el);
248
- return;
249
- }
250
- // Uppercase the operator before comparing — the backend matches operators case-insensitively
251
- // (`.ToUpper()` before its op switch, OrdinalIgnoreCase sets), so lowercase `in`/`not_in`/`and`/`or`
252
- // are valid at runtime and must not draw a false ARG-7.
253
- const rawOp = typeof n.op === 'string' ? n.op : null;
254
- const op = rawOp ? rawOp.toUpperCase() : null;
255
- // A comparison node: op set + data is an operand object (not an AND/OR child array).
256
- if (op &&
257
- op !== 'AND' &&
258
- op !== 'OR' &&
259
- n.data &&
260
- typeof n.data === 'object' &&
261
- !Array.isArray(n.data) &&
262
- !LIST_OPS.has(op)) {
263
- for (const k of argKeysUnder(n.data)) {
264
- if (listKeys.has(k) && !arg7Seen.has(k)) {
265
- arg7Seen.add(k);
266
- push('ARG-7', 'medium', objId, `transform "${label}" binds list argument "${k}" under "${op}"`, 'a list (isList) argument only makes sense with IN / NOT_IN — under any other operator it will not match as intended', k);
267
- }
268
- }
269
- }
270
- for (const v of Object.values(n))
271
- walkOps(v);
272
- };
273
- walkOps(md.where);
274
- walkOps(md.joins);
275
- }
276
- // ARG-6 — a declared arg referenced nowhere: no ARG operand (where/join/from/select), no @key/`__this`
277
- // reference in the raw SQL, and not reused by a sibling arg's expression.
278
- const referenced = new Set([
279
- ...argKeysUnder(md.where),
280
- ...argKeysUnder(md.joins),
281
- ...argKeysUnder(md.from),
282
- ...selectKeys, // used-but-wrong-place: ARG-4 owns it, keep ARG-6 quiet
283
- ]);
284
- harvestRefs(md.sql, referenced);
285
- for (const d of declared)
286
- harvestRefs(d.expr, referenced);
287
- for (const d of declared) {
288
- if (!referenced.has(d.key)) {
289
- push('ARG-6', 'medium', objId, `transform "${label}" declares argument "${d.key}" but never uses it`, 'the argument is resolved every item for nothing — reference it via an ARG operand, @' +
290
- d.key +
291
- ', or {{ __this.arguments.' +
292
- d.key +
293
- ' }}, or remove it', d.key);
294
- }
295
- }
296
- }
297
- }
298
- return issues;
299
- },
300
- };
301
- //# sourceMappingURL=arguments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arguments.js","sourceRoot":"","sources":["../../../src/validate/rules/arguments.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,0GAA0G;AAC1G,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,KAAK;IACL,YAAY;IACZ,cAAc;IACd,YAAY;CACb,CAAC,CAAC;AAEH,2FAA2F;AAC3F,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;IAC9B,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;IACX,MAAM;CACP,CAAC,CAAC;AAE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CAAC;gBACpB,CAAC;gBAED,uGAAuG;gBACvG,0EAA0E;gBAC1E,MAAM,UAAU,GAAG,IAAI,GAAG,CAAS;oBACjC,GAAG,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC;oBACzB,GAAG,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC;oBACzB,GAAG,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC;oBACxB,GAAG,UAAU,EAAE,wDAAwD;iBACxE,CAAC,CAAC;gBACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;gBAChC,KAAK,MAAM,CAAC,IAAI,QAAQ;oBAAE,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC1D,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;oBACzB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;wBAC3B,IAAI,CACF,OAAO,EACP,QAAQ,EACR,KAAK,EACL,cAAc,KAAK,wBAAwB,CAAC,CAAC,GAAG,qBAAqB,EACrE,sFAAsF;4BACpF,CAAC,CAAC,GAAG;4BACL,2BAA2B;4BAC3B,CAAC,CAAC,GAAG;4BACL,mBAAmB,EACrB,CAAC,CAAC,GAAG,CACN,CAAC;oBACJ,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ValidationRule } from '../rule.js';
2
- export declare const connectorIdentityRule: ValidationRule;
3
- //# sourceMappingURL=connectorIdentity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectorIdentity.d.ts","sourceRoot":"","sources":["../../../src/validate/rules/connectorIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA0GjD,eAAO,MAAM,qBAAqB,EAAE,cA+RnC,CAAC"}