@telorun/templating 0.107.0 → 0.108.0

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 (60) hide show
  1. package/dist/builtins.d.ts +2 -2
  2. package/dist/builtins.d.ts.map +1 -1
  3. package/dist/cel/analyze.d.ts +6 -6
  4. package/dist/cel/analyze.d.ts.map +1 -1
  5. package/dist/cel/analyze.js +138 -183
  6. package/dist/cel/compile.d.ts +47 -17
  7. package/dist/cel/compile.d.ts.map +1 -1
  8. package/dist/cel/compile.js +135 -83
  9. package/dist/cel/diagnose.d.ts +52 -57
  10. package/dist/cel/diagnose.d.ts.map +1 -1
  11. package/dist/cel/diagnose.js +69 -291
  12. package/dist/cel/environment.d.ts +33 -37
  13. package/dist/cel/environment.d.ts.map +1 -1
  14. package/dist/cel/environment.js +54 -86
  15. package/dist/cel/module-call.d.ts +68 -79
  16. package/dist/cel/module-call.d.ts.map +1 -1
  17. package/dist/cel/module-call.js +118 -194
  18. package/dist/cel/value-brands.d.ts +14 -12
  19. package/dist/cel/value-brands.d.ts.map +1 -1
  20. package/dist/cel/value-brands.js +26 -24
  21. package/dist/cel/verdict-codes.d.ts +13 -2
  22. package/dist/cel/verdict-codes.d.ts.map +1 -1
  23. package/dist/cel/verdict-codes.js +20 -1
  24. package/dist/engine.d.ts +4 -4
  25. package/dist/engine.d.ts.map +1 -1
  26. package/dist/engines/cel.d.ts +2 -2
  27. package/dist/engines/cel.d.ts.map +1 -1
  28. package/dist/engines/cel.js +53 -81
  29. package/dist/engines/hole-analysis.d.ts +3 -3
  30. package/dist/engines/hole-analysis.d.ts.map +1 -1
  31. package/dist/engines/interpolate.js +11 -8
  32. package/dist/index.d.ts +4 -5
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +8 -5
  35. package/package.json +4 -4
  36. package/src/builtins.ts +2 -2
  37. package/src/cel/analyze.ts +152 -193
  38. package/src/cel/compile.ts +160 -77
  39. package/src/cel/diagnose.ts +115 -370
  40. package/src/cel/environment.ts +64 -87
  41. package/src/cel/module-call.ts +129 -292
  42. package/src/cel/value-brands.ts +26 -25
  43. package/src/cel/verdict-codes.ts +20 -1
  44. package/src/engine.ts +4 -4
  45. package/src/engines/cel.ts +52 -84
  46. package/src/engines/hole-analysis.ts +3 -3
  47. package/src/engines/interpolate.ts +16 -13
  48. package/src/index.ts +8 -11
  49. package/dist/cel/catalog.d.ts +0 -70
  50. package/dist/cel/catalog.d.ts.map +0 -1
  51. package/dist/cel/catalog.js +0 -1320
  52. package/dist/cel/json-prefix-scan.d.ts +0 -17
  53. package/dist/cel/json-prefix-scan.d.ts.map +0 -1
  54. package/dist/cel/json-prefix-scan.js +0 -160
  55. package/dist/cel/value-identity.d.ts +0 -18
  56. package/dist/cel/value-identity.d.ts.map +0 -1
  57. package/dist/cel/value-identity.js +0 -25
  58. package/src/cel/catalog.ts +0 -1455
  59. package/src/cel/json-prefix-scan.ts +0 -152
  60. package/src/cel/value-identity.ts +0 -34
@@ -1,98 +1,150 @@
1
- import { ParseError } from "@marcbachmann/cel-js";
2
- import { extractAccessChains } from "./analyze.js";
3
- import { CEL_FUNCTIONS } from "./catalog.js";
4
- import { resolveModuleCalls } from "./module-call.js";
5
- /** Root variable identifiers an expression reads, from its parsed AST — the
6
- * first element of every member-access chain (`self.table` → `self`). Returns
7
- * undefined when the parse result carries no AST so consumers can tell "no
8
- * refs" from "unknown". */
9
- function rootRefs(ast) {
10
- const roots = new Set();
11
- for (const chain of extractAccessChains(ast)) {
12
- if (chain.length > 0)
13
- roots.add(chain[0]);
14
- }
15
- return [...roots];
16
- }
17
- const NON_DETERMINISTIC = new Set(CEL_FUNCTIONS.filter((f) => !f.deterministic).map((f) => f.name));
18
- /** True when the expression calls a catalog function whose result differs per
19
- * call (`uuidv4()`, `nowMillis()`), so evaluating it once and reusing the value
20
- * would change what it means. */
1
+ /**
2
+ * Compiling one CEL expression into a `CompiledValue`, and the repeatability verdict on its
3
+ * text.
4
+ *
5
+ * **The module-call rewrite is gone from this package.** It used to happen here, on the
6
+ * parsed tree, through internals the previous engine did not expose — a `setMeta('macro')`
7
+ * redirect that made a qualified call check and evaluate as something else. `@telorun/cel`
8
+ * has `qcall` as a node of its own, produced by a total tree-to-tree pass over the name set
9
+ * (`parseExpression({ namespaces })`), and a `CelExpression` records the set it was resolved
10
+ * under, so an environment refuses a tree resolved for a different site rather than
11
+ * silently answering a different question. What is left here is reading the result.
12
+ */
13
+ import { hostValueOf } from "@telorun/sdk";
14
+ import { functionCatalog, qualifiedCalls, rootReferences, walkTree, } from "@telorun/cel";
15
+ import { celNamespaceNames, MODULE_CALL_DISPATCH_KEY, } from "./module-call.js";
16
+ const NO_NAMESPACES = new Set();
17
+ /** Catalog functions whose result differs per call, by name. */
18
+ const NON_DETERMINISTIC = new Set(functionCatalog()
19
+ .filter((entry) => !entry.deterministic)
20
+ .map((entry) => entry.name));
21
+ /**
22
+ * True when the expression calls a catalog function whose result differs per call
23
+ * (`uuidv4()`, `nowMillis()`), so evaluating it once and reusing the value would change
24
+ * what it means.
25
+ */
21
26
  function callsNonDeterministic(root) {
22
- const visit = (node) => {
23
- if (Array.isArray(node))
24
- return node.some(visit);
25
- if (!node || typeof node !== "object" || !("op" in node))
26
- return false;
27
- const n = node;
28
- if ((n.op === "call" || n.op === "rcall") && Array.isArray(n.args)) {
29
- const name = n.args[0];
30
- if (typeof name === "string" && NON_DETERMINISTIC.has(name))
31
- return true;
27
+ for (const node of walkTree(root)) {
28
+ if ((node.kind === "call" || node.kind === "receiverCall") && NON_DETERMINISTIC.has(node.name)) {
29
+ return true;
32
30
  }
33
- const args = n.args;
34
- return Array.isArray(args) ? args.some(visit) : visit(args);
35
- };
36
- return visit(root);
31
+ }
32
+ return false;
37
33
  }
38
- /** True when the expression calls a method on a bare identifier (`Billing.f(x)`).
39
- * Whether that identifier names a module is the declaring module's to say, and
40
- * the text alone does not, so every such call may be a module call. */
34
+ /**
35
+ * True when the expression calls a method on a bare identifier (`Billing.f(x)`). Whether
36
+ * that identifier names a module is the declaring module's to say, and the text alone does
37
+ * not, so every such call may be a module call.
38
+ *
39
+ * A call the name set DID resolve is a `qcall` and is not this: it is already known to be a
40
+ * module's, and its determinism is its callee's.
41
+ */
41
42
  function callsOnBareReceiver(root) {
42
- const visit = (node) => {
43
- if (Array.isArray(node))
44
- return node.some(visit);
45
- if (!node || typeof node !== "object" || !("op" in node))
46
- return false;
47
- const n = node;
48
- if (n.op === "rcall" && Array.isArray(n.args)) {
49
- const receiver = n.args[1];
50
- if (receiver && typeof receiver === "object" && receiver.op === "id")
51
- return true;
52
- }
53
- const args = n.args;
54
- return Array.isArray(args) ? args.some(visit) : visit(args);
55
- };
56
- return visit(root);
43
+ for (const node of walkTree(root)) {
44
+ if (node.kind === "receiverCall" && node.receiver.kind === "ident")
45
+ return true;
46
+ }
47
+ return false;
48
+ }
49
+ /**
50
+ * Whether an expression's text, written twice in one value, means one value both times: it
51
+ * calls no catalog function whose result differs per call, and makes no call that may be a
52
+ * module's — a module function's determinism is its callee's, which the text does not say.
53
+ *
54
+ * Text that does not read whole means no value, so it is not repeatable; `analyze` is what
55
+ * reports why. Reading never throws here, which is the engine's own contract: the first
56
+ * unreadable thing is one ranged diagnostic and the tree keeps the longest prefix.
57
+ */
58
+ export function repeatableExpression(expr, environment) {
59
+ const parsed = environment.parse(expr);
60
+ if (parsed.diagnostics.length > 0)
61
+ return false;
62
+ return !callsNonDeterministic(parsed.root) && !callsOnBareReceiver(parsed.root);
57
63
  }
58
64
  /**
59
- * Whether an expression's text, written twice in one value, means one value
60
- * both times: it calls no catalog function whose result differs per call, and
61
- * makes no call that may be a module's — a module function's determinism is its
62
- * callee's, which the text does not say. Text that does not parse means no
63
- * value, so it is not repeatable; `analyze` is what reports why.
65
+ * Compile one CEL expression into a `CompiledValue`. The `!cel` engine compiles its whole
66
+ * scalar with it, and the tags with holes compile each hole.
67
+ *
68
+ * `moduleNames` are the declaring module's own names; a call whose receiver is one of them
69
+ * is resolved to a `qcall` as the expression is READ, so every later reader — the root
70
+ * references below, the analyzer's passes, the kernel's dependency walk — sees the resolved
71
+ * shape rather than re-deriving it from the source text.
64
72
  */
65
- export function repeatableExpression(expr, env) {
66
- let ast;
67
- try {
68
- ast = env.parse(expr).ast;
73
+ export function compileExpression(expr, environment, moduleNames) {
74
+ // Only the names CEL can read as a namespace: a set holding `my-module` is refused WHOLE
75
+ // at registration, and a name that cannot be one resolves no call anyway.
76
+ const namespaces = moduleNames === undefined ? NO_NAMESPACES : celNamespaceNames(moduleNames);
77
+ if (namespaces.size === 0) {
78
+ return compiledValueOf(expr, environment.parse(expr), environment);
69
79
  }
70
- catch (error) {
71
- if (error instanceof ParseError)
72
- return false;
73
- throw error;
74
- }
75
- return !callsNonDeterministic(ast) && !callsOnBareReceiver(ast);
80
+ // A clone carrying the site's names: the tree is resolved under them, and the environment
81
+ // that compiles it must declare the same set or it refuses the tree.
82
+ const site = environment.clone();
83
+ for (const name of namespaces)
84
+ site.registerNamespace(name);
85
+ return compiledValueOf(expr, site.parse(expr), site);
76
86
  }
77
- /** Compile a single CEL expression into a CompiledValue. Throws on syntax
78
- * errors. The `!cel` engine compiles its whole scalar with it, and the tags
79
- * with holes compile each hole.
80
- *
81
- * `moduleNames` are the declaring module's own names; a call whose receiver is
82
- * one of them resolves to a late-bound module call HERE, on the parsed tree, so
83
- * every later reader — the root references below, the analyzer's passes, the
84
- * kernel's dependency walk — sees the resolved shape rather than re-deriving
85
- * it from the source text. */
86
- export function compileExpression(expr, env, moduleNames) {
87
- const fn = env.parse(expr);
88
- const ast = fn.ast;
89
- const calls = resolveModuleCalls(ast, moduleNames);
87
+ /** A `CompiledValue` over an expression already read against its site's names. */
88
+ export function compiledValueOf(expr, parsed, environment) {
89
+ const program = environment.compile(parsed);
90
+ // As written — `CompiledValue.calls` is the qualified spellings, not their shapes.
91
+ const calls = qualifiedCalls(parsed.root).map((call) => call.qualifiedName);
90
92
  return {
91
93
  __compiled: true,
92
94
  source: expr,
93
- refs: rootRefs(ast),
95
+ refs: rootReferences(parsed.root),
94
96
  calls,
95
- ...(callsNonDeterministic(ast) ? { volatile: true } : {}),
96
- call: (ctx) => fn(ctx),
97
+ ...(callsNonDeterministic(parsed.root) ? { volatile: true } : {}),
98
+ // **A module call is dispatched through the engine's namespace seam**, reading the table
99
+ // the owning scope bound on the activation. Evaluating without it reaches no function at
100
+ // all: the engine would answer its own `unbound_function` for every qualified call,
101
+ // whatever the kernel bound, so the whole dispatch is silently dead.
102
+ call: (ctx) => hostValueOf(program.evaluate(ctx, { namespaceFunction: dispatchFrom(ctx) })),
103
+ };
104
+ }
105
+ /**
106
+ * How a qualified call reaches its function: the per-scope table the kernel binds on the
107
+ * activation under a key outside CEL's identifier grammar, so no author can call past the
108
+ * export gate or the dependency edge.
109
+ *
110
+ * **A name nothing bound answers `undefined`, and that ordering is load-bearing.** The engine
111
+ * looks a qualified call's function up BEFORE it evaluates the arguments, so returning
112
+ * `undefined` refuses the call where it is written and nothing inside it runs. Answering a
113
+ * stub that throws instead makes the lookup succeed: the arguments are evaluated first, so
114
+ * `Billing.missing(Billing.total(1))` DISPATCHES `Billing.total` — observable work, possibly
115
+ * host-backed — for a call that was never going to reach a function. The vectors pin exactly
116
+ * that (`dispatched: []`), and the repair advice belongs to the static verdict the analyzer
117
+ * reports at the call, which is where an author reads it, not to a runtime message.
118
+ *
119
+ * **A module function's arguments are a host boundary, so they cross through the one seam**
120
+ * (`hostValueOf`). What is behind a qualified call is a `Telo.Callable` — a CEL body whose
121
+ * parameters are AJV-checked against its declared `params`, or a controller's own `call` —
122
+ * and neither reads a `CelMap`: a map literal written at a call site arrived as
123
+ * `{"entries":{}}` and was refused for a property its author had written.
124
+ */
125
+ function dispatchFrom(activation) {
126
+ // With no table bound, every qualified call answers `undefined` — the engine's
127
+ // own `unbound_function`, refused before its arguments are evaluated.
128
+ return (namespaceDispatchOf(activation[MODULE_CALL_DISPATCH_KEY]) ??
129
+ (() => undefined));
130
+ }
131
+ /**
132
+ * A scope's module functions as the engine's own per-evaluation dispatch — **the one
133
+ * adapter**, so every host that binds a table converts its arguments the same way.
134
+ *
135
+ * The table is keyed by qualified name (`Billing.total`), the form the kernel and the
136
+ * analyzer both hold it in; the engine asks by namespace and name, never learning that a
137
+ * qualified name is one string with a dot in it. A second adapter is what made `telo check`
138
+ * and the kernel disagree: the analyzer kept its own, called the bound function with the raw
139
+ * values, and handed a map literal written at a call site a `CelMap` where the kernel handed
140
+ * a plain object — a check/run divergence by construction, in the one direction nothing
141
+ * reports.
142
+ */
143
+ export function namespaceDispatchOf(table) {
144
+ if (!table)
145
+ return undefined;
146
+ return (namespace, name) => {
147
+ const bound = table.get(`${namespace}.${name}`);
148
+ return bound ? (args) => bound(args.map(hostValueOf)) : undefined;
97
149
  };
98
150
  }
@@ -1,65 +1,60 @@
1
- import type { ASTNode, Environment } from "@marcbachmann/cel-js";
2
- import type { CallSite, EngineDiagnostic } from "../engine.js";
3
- import type { CelCallAudit } from "./verdict-codes.js";
4
- /** Classifies every function call in a CEL expression against the environment's
5
- * own function registry.
1
+ /**
2
+ * Every function call in a CEL expression, reported for the caller that judges it.
6
3
  *
7
- * This exists because cel-js reports one sentence for three unrelated mistakes
8
- * — a name that does not exist, a name called in the wrong form, and a genuine
9
- * type mismatch all surface as `found no matching overload for 'f(...)'`. Two
10
- * of those readings actively mislead: the message names argument types, so the
11
- * repair for `startsWith(key, 'x')` looks like a cast, when the real fix is
12
- * `key.startsWith('x')` and no cast helps.
4
+ * **The classifier is gone, and so is its reason for existing.** This file used to decide
5
+ * `CEL_UNKNOWN_FUNCTION`, `CEL_WRONG_CALL_FORM` and `CEL_INVALID_ARGUMENT` itself, by
6
+ * looking every call up in the environment's registry — because the engine it drove reported
7
+ * one sentence for three unrelated mistakes (`found no matching overload for 'f(...)'`), two
8
+ * of whose readings actively misled: the message named argument types, so the repair for
9
+ * `startsWith(key, 'x')` looked like a cast when the fix was `key.startsWith('x')`.
13
10
  *
14
- * Nothing here reads cel-js's message text. `Environment.getDefinitions()`
15
- * reports every registered signature — cel-js builtins and Telo's catalog
16
- * alike — with its call form and parameters, and the AST distinguishes `f(x)`
17
- * from `x.f()` structurally. Name existence, call form and arity are therefore
18
- * decidable by lookup, which is what keeps a cel-js version bump from silently
19
- * degrading this back into the passthrough it replaced. */
20
- /** One registered signature, reduced to what classification needs. */
21
- interface FnEntry {
22
- readonly signature: string;
23
- readonly form: "global" | "receiver";
24
- /** Parameter count, excluding the receiver for a receiver form. */
25
- readonly arity: number;
26
- }
27
- export interface FunctionIndex {
28
- readonly byName: ReadonlyMap<string, readonly FnEntry[]>;
29
- }
30
- /** The flags a module function carries, as the host that resolves it derives
31
- * them — or undefined where the name reaches no function. */
32
- export type ModuleCallFlags = (qualified: string) => {
33
- readonly deterministic: boolean;
34
- readonly hostBacked: boolean;
35
- } | undefined;
36
- /** Registry view of an environment, memoized: environments are rebuilt per
37
- * analysis path, but each is immutable once built. */
38
- export declare function functionIndex(env: Environment): FunctionIndex;
11
+ * `@telorun/cel` decides each of them where the cause is known, with a range and a whole-
12
+ * source fix — an unknown name, a name called in the other form, a type no overload takes,
13
+ * and a refusal over a literal argument (`checkLiteralArguments`, which runs the very code
14
+ * the evaluation runs). So nothing here classifies, and nothing reads a message.
15
+ *
16
+ * What is left is Telo's half: the call LIST, which the analyzer needs to judge whether a
17
+ * module call reaches a function at all (`FUNCTION_UNRESOLVED` / `_NOT_EXPORTED` /
18
+ * `_NOT_CALLABLE` / `_ARITY_MISMATCH` / `_ARGUMENT_MISMATCH`) — a verdict that is manifest
19
+ * context and never this engine's.
20
+ */
21
+ import type { CelEnvironment, CelNode, CheckResult } from "@telorun/cel";
22
+ import type { CallSite, EngineDiagnostic } from "../engine.js";
23
+ import type { CelCallAudit } from "./verdict-codes.js";
24
+ /**
25
+ * What one audit establishes. The diagnostic lists stay on the shape because the ANALYZER
26
+ * reads them: they are now always empty from here — the engine's checker decides every
27
+ * verdict about a call — and a caller that merged two lists keeps doing so unchanged.
28
+ */
39
29
  export interface CallAudit {
40
30
  readonly diagnostics: readonly EngineDiagnostic[];
31
+ /** Every function call in the source, in source order. */
41
32
  readonly calls: readonly CallSite[];
42
- /** Refusals decided from arguments written as literals. Reported whatever the
43
- * type-checker said, unlike {@link CallAudit.diagnostics}: a call whose types
44
- * are all correct and whose specifier is `.2q` type-checks perfectly, and is
45
- * exactly the defect this catches. */
46
- readonly argumentIssues: readonly EngineDiagnostic[];
47
- /** Names that resolve, but that no registered signature accepts as written.
48
- * The caller appends their signatures to a type-check failure it could not
49
- * otherwise explain. */
33
+ /** Names a type-check failure mentions that resolved to nothing. */
50
34
  readonly unresolved: readonly string[];
35
+ /** Refusals over a literal argument. The engine decides these at check now. */
36
+ readonly argumentIssues: readonly EngineDiagnostic[];
51
37
  }
52
- /** Classify every call in `ast`. Runs unconditionally rather than only after a
53
- * failed type-check, because a type-check reports its first error and stops:
54
- * an expression with two bad calls would otherwise fix one, re-run, and
55
- * discover the next. */
56
- export declare function auditCalls(source: string, ast: ASTNode, env: Environment,
57
- /** The flags of the module functions the expression calls, from whoever
58
- * resolves them. */
59
- moduleCallFlags?: ModuleCallFlags): CelCallAudit;
60
- /** Registered signatures for names a type-check failure mentions, so the
61
- * residual says what the function actually accepts rather than only echoing
62
- * what the author wrote. */
63
- export declare function explainUnresolved(names: readonly string[], env: Environment): string;
64
- export {};
38
+ /**
39
+ * The flags a module function carries, as the host that resolves it derives them — or
40
+ * undefined where the name reaches no function. Absent means "no signal", never
41
+ * "deterministic".
42
+ */
43
+ export type ModuleCallFlags = (qualified: string) => {
44
+ readonly deterministic: boolean;
45
+ readonly hostBacked: boolean;
46
+ } | undefined;
47
+ /**
48
+ * Every call the expression makes, with what the checker resolved about it.
49
+ *
50
+ * A module call carries no catalog flag: what a module function's determinism and
51
+ * host-backedness are follows from the callable it resolves to, so they are carried only as
52
+ * the host's `moduleCallFlags` reports them, and stay absent where it gives nothing.
53
+ */
54
+ export declare function auditCalls(source: string, root: CelNode, environment: CelEnvironment, moduleCallFlags?: ModuleCallFlags, checked?: CheckResult): CelCallAudit;
55
+ /**
56
+ * Registered signatures for names a type-check failure mentions, so a residual message says
57
+ * what the function actually accepts rather than only echoing what the author wrote.
58
+ */
59
+ export declare function explainUnresolved(names: readonly string[], environment: CelEnvironment): string;
65
60
  //# sourceMappingURL=diagnose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagnose.d.ts","sourceRoot":"","sources":["../../src/cel/diagnose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGjE,OAAO,KAAK,EAAE,QAAQ,EAAiB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,oBAAoB,CAAC;AAEtE;;;;;;;;;;;;;;;4DAe4D;AAE5D,sEAAsE;AACtE,UAAU,OAAO;IACf,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IACrC,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC,CAAC;CAC1D;AAYD;8DAC8D;AAC9D,MAAM,MAAM,eAAe,GAAG,CAC5B,SAAS,EAAE,MAAM,KACd;IAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC;AAInF;uDACuD;AACvD,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,GAAG,aAAa,CAiB7D;AAyMD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,WAAW,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,SAA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