farseer-cli 1.19.0 → 1.21.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.
- package/README.md +32 -9
- package/dist/commands/app.js +42 -3
- package/dist/commands/app.js.map +1 -1
- package/dist/commands/cells.js +120 -85
- package/dist/commands/cells.js.map +1 -1
- package/dist/commands/dashboards.js +246 -12
- package/dist/commands/dashboards.js.map +1 -1
- package/dist/commands/dimensions.js +72 -31
- package/dist/commands/dimensions.js.map +1 -1
- package/dist/commands/docs.js +82 -0
- package/dist/commands/docs.js.map +6 -0
- package/dist/commands/files.js +49 -0
- package/dist/commands/files.js.map +2 -2
- package/dist/commands/folders.js +76 -0
- package/dist/commands/folders.js.map +6 -0
- package/dist/commands/formula.js +38 -30
- package/dist/commands/formula.js.map +1 -1
- package/dist/commands/install.js +32 -30
- package/dist/commands/install.js.map +2 -2
- package/dist/commands/model.js +30 -5
- package/dist/commands/model.js.map +2 -2
- package/dist/commands/push.js +5 -3
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/sheets.js +474 -52
- package/dist/commands/sheets.js.map +1 -1
- package/dist/commands/skills.js +157 -0
- package/dist/commands/skills.js.map +6 -0
- package/dist/commands/variables.js +246 -82
- package/dist/commands/variables.js.map +1 -1
- package/dist/index.js +102 -13
- package/dist/index.js.map +1 -1
- package/dist/mcp/resources/documentation.js +19 -12
- package/dist/mcp/resources/documentation.js.map +1 -1
- package/dist/mcp/tools/appTools.js +1 -7
- package/dist/mcp/tools/appTools.js.map +1 -1
- package/dist/mcp/tools/cellTools.js +6 -19
- package/dist/mcp/tools/cellTools.js.map +1 -1
- package/dist/mcp/tools/dashboardTools.js +30 -412
- package/dist/mcp/tools/dashboardTools.js.map +2 -2
- package/dist/mcp/tools/dataTools.js +15 -146
- package/dist/mcp/tools/dataTools.js.map +1 -1
- package/dist/mcp/tools/folderTools.js +12 -78
- package/dist/mcp/tools/folderTools.js.map +1 -1
- package/dist/mcp/tools/modelTools.js +33 -371
- package/dist/mcp/tools/modelTools.js.map +1 -1
- package/dist/mcp/tools/pipelineContract.js +5 -1
- package/dist/mcp/tools/pipelineContract.js.map +1 -1
- package/dist/mcp/tools/runTools.js +8 -69
- package/dist/mcp/tools/runTools.js.map +1 -1
- package/dist/mcp/tools/sheetTools.js +14 -264
- package/dist/mcp/tools/sheetTools.js.map +1 -1
- package/dist/mcp/tools/syncTools.js +5 -1
- package/dist/mcp/tools/syncTools.js.map +1 -1
- package/dist/mcp/utils/operationResponse.js +41 -0
- package/dist/mcp/utils/operationResponse.js.map +6 -0
- package/dist/operations/cells.js +444 -0
- package/dist/operations/cells.js.map +6 -0
- package/dist/operations/dashboards.js +357 -0
- package/dist/operations/dashboards.js.map +6 -0
- package/dist/operations/data.js +206 -0
- package/dist/operations/data.js.map +6 -0
- package/dist/operations/errors.js +64 -0
- package/dist/operations/errors.js.map +6 -0
- package/dist/operations/exportModel.js +59 -0
- package/dist/operations/exportModel.js.map +6 -0
- package/dist/operations/folderPath.js +128 -0
- package/dist/operations/folderPath.js.map +6 -0
- package/dist/operations/folders.js +80 -0
- package/dist/operations/folders.js.map +6 -0
- package/dist/operations/install.js +109 -0
- package/dist/operations/install.js.map +6 -0
- package/dist/operations/model.js +275 -0
- package/dist/operations/model.js.map +6 -0
- package/dist/operations/sheets.js +766 -0
- package/dist/operations/sheets.js.map +6 -0
- package/dist/pipeline/failStep.js +43 -0
- package/dist/pipeline/failStep.js.map +6 -0
- package/dist/pipeline/generated-reference.json +11 -11
- package/dist/pipeline/queryWorker.js +3 -1
- package/dist/pipeline/queryWorker.js.map +1 -1
- package/dist/pipeline/requests.js +3 -32
- package/dist/pipeline/requests.js.map +1 -1
- package/dist/pipeline/service.js +46 -2
- package/dist/pipeline/service.js.map +1 -1
- package/dist/services/appSyncService.js +59 -9
- package/dist/services/appSyncService.js.map +1 -1
- package/dist/services/apps.js +10 -0
- package/dist/services/apps.js.map +1 -1
- package/dist/services/farseerService.js +28 -6
- package/dist/services/farseerService.js.map +1 -1
- package/dist/skills/bundled.js +106 -0
- package/dist/skills/bundled.js.map +6 -0
- package/dist/skills/install.js +257 -0
- package/dist/skills/install.js.map +6 -0
- package/dist/skills/pipeline.js +10 -18
- package/dist/skills/pipeline.js.map +1 -1
- package/dist/utils/agentSandbox.js +1 -1
- package/dist/utils/dimensionMembers.js +54 -0
- package/dist/utils/dimensionMembers.js.map +6 -0
- package/dist/utils/entityResolver.js +74 -25
- package/dist/utils/entityResolver.js.map +1 -1
- package/dist/utils/errorFormatter.js +13 -0
- package/dist/utils/errorFormatter.js.map +1 -1
- package/dist/utils/formulaFilters.js +11 -2
- package/dist/utils/formulaFilters.js.map +1 -1
- package/dist/utils/operationCli.js +102 -0
- package/dist/utils/operationCli.js.map +6 -0
- package/docs/cli-guide.md +195 -1
- package/docs/pipeline-reference.md +138 -24
- package/docs/troubleshooting.md +18 -0
- package/package.json +2 -2
- package/skills/farseer-app-dev/SKILL.md +131 -0
- package/skills/farseer-app-dev/assignments.md +185 -0
- package/skills/farseer-app-dev/farseer-client-api-guide.md +907 -0
- package/skills/farseer-app-dev/farseer-client-release-notes.md +212 -0
- package/skills/farseer-app-dev/working-patterns.md +876 -0
- package/skills/farseer-authenticate-to-tenant/SKILL.md +60 -0
- package/skills/farseer-authenticate-to-tenant/app-authentication.md +91 -0
- package/skills/farseer-author-import-job/SKILL.md +114 -0
- package/skills/farseer-author-import-job/cell-writes.md +530 -0
- package/skills/farseer-author-import-job/deploying-a-farseer-app.md +383 -0
- package/skills/farseer-author-import-job/import-job-pattern.md +232 -0
- package/skills/farseer-build-model/SKILL.md +122 -0
- package/skills/farseer-build-model/formula-grain-alignment.md +612 -0
- package/skills/farseer-build-model/naming-conventions.md +435 -0
- package/skills/farseer-build-model/sparse-formulas-pattern.md +330 -0
- package/skills/farseer-build-pipeline/SKILL.md +190 -0
- package/skills/farseer-build-pipeline/erp-sales/README.md +108 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_invoice_lines.yaml +23 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_invoice_lines_raw.yaml +23 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_item_product_map.yaml +17 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/bronze/erp_sales_item_product_map_raw.yaml +11 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/gold/erp_sales_cells.yaml +40 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_lines.yaml +35 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_recon.yaml +43 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/Models/silver/erp_sales_unmapped_items.yaml +28 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-etl/main.py +49 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/in/erp_sales_cells.yaml +17 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/in/erp_sales_cells_raw.yaml +14 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/Models/load/erp_sales_to_model.yaml +47 -0
- package/skills/farseer-build-pipeline/erp-sales/erp-sales-load/main.py +44 -0
- package/skills/farseer-build-pipeline/erp-sales/item_to_product.csv +5 -0
- package/skills/farseer-build-pipeline/pipeline-app-failure-report-pattern.md +103 -0
- package/skills/farseer-build-pipeline/pipeline-source-encoding.md +68 -0
- package/skills/farseer-dashboards/SKILL.md +222 -20
- package/skills/farseer-dashboards/cards.md +59 -0
- package/skills/farseer-dashboards/charts.md +245 -0
- package/skills/farseer-dashboards/check.md +91 -0
- package/skills/farseer-dashboards/measures.md +88 -0
- package/skills/farseer-dashboards/page.md +99 -0
- package/skills/farseer-dashboards/reporting-period.md +82 -0
- package/skills/farseer-dashboards/standard-set.md +182 -0
- package/skills/farseer-dashboards/tables.md +174 -0
- package/skills/farseer-help-center/SKILL.md +66 -0
- package/skills/farseer-modify-model/SKILL.md +158 -0
- package/skills/farseer-modify-model/model-validation-pattern.md +251 -0
- package/skills/farseer-optimize-model/SKILL.md +314 -0
- package/skills/farseer-optimize-model/stats-dump.ts +139 -0
- package/skills/farseer-pnl/SKILL.md +220 -0
- package/skills/farseer-review-model/SKILL.md +172 -0
- package/skills/farseer-run-apps/SKILL.md +102 -0
- package/skills/pipeline-authoring/SKILL.md +4 -4
- package/skills/pipeline-authoring/practices.md +17 -4
- package/dist/services/agentApprovalFetch.js +0 -90
- package/dist/services/agentApprovalFetch.js.map +0 -6
|
@@ -40,7 +40,8 @@ Start from the target. Before any YAML, write down each variable the pipeline fi
|
|
|
40
40
|
- **`name:` equals the file name, and the folder becomes the namespace:** `Models/bronze/erp_sales_lines.yaml` is `bronze.erp_sales_lines`.
|
|
41
41
|
- **Qualified names are shared by every pipeline on the tenant.** Name datasets after their subject (`bronze.erp_sales_lines`, not `bronze.lines`), so two pipelines never write the same dataset.
|
|
42
42
|
- **Leaf names must be unique within one step's `deps`.** SQL sees each dependency as a view named by its leaf, and Python sees it as a parameter named by its leaf.
|
|
43
|
-
- **Read another pipeline's output** with
|
|
43
|
+
- **Read another pipeline's output** in a transform with the dep `<name>@published` (`topic=TransformConfig`). A load reads it through a `farseer` extract with `source: datasets` and a `format: parquet` parse step. There is no ordering between pipelines.
|
|
44
|
+
- **Keep a snapshot's SCD type 2 history** with `{{ scd2(...) }}` (`topic=TransformConfig`).
|
|
44
45
|
- **Keep `StoreType.DATASETS`** unless the pipeline accumulates data (section 8). `FARSEER_FILES` publishes on write and keeps no versions.
|
|
45
46
|
|
|
46
47
|
## 3. Transforms: SQL, then ibis, then pandas
|
|
@@ -82,6 +83,8 @@ def sales_lines_clean(erp_sales_lines, *, args):
|
|
|
82
83
|
|
|
83
84
|
Use a `LEFT JOIN` to a mapping and flag the rows that found no match. An `INNER JOIN` drops them silently. Keep mappings as data, a Files table or a model attribute, rather than a `CASE` copied into several queries.
|
|
84
85
|
|
|
86
|
+
**Stop a SQL step with `fail_step('…')`, never `error()`.** When the data isn't what the step needs, call `fail_step` saying what is wrong and what the client does next: `fail_step('No rate for APAC. Add it to the rates sheet and run again.')`. The client reads it as the step's failure; `error()` reads only "the app's own code failed". Put the call where the query reads it (section 5).
|
|
87
|
+
|
|
85
88
|
## 4. Writing schemas
|
|
86
89
|
|
|
87
90
|
Declare a `schema:` on every parse step and transform, listing every column the dataset keeps, each with a `type`. The schema is the dataset's contract with whatever reads it. The one exception is a bronze parse step that deliberately captures a source whole.
|
|
@@ -131,7 +134,7 @@ quality_rules:
|
|
|
131
134
|
- `isin` on the period columns set to the run's period.
|
|
132
135
|
- **Reconcile in a transform.** A rule cannot compare two datasets, and `custom__sum_equals` and `custom__compare` work per row. Write a small transform that totals both sides per period into one row, assert it with `custom__compare`, and list it in the gold dataset's `deps`. A failed total then stops gold, and the load with it.
|
|
133
136
|
- **Severity.** `error`, the default, is for structural garbage where loading is pointless; `warn` is for findings to report; the review gate (section 7) is for anything a person should decide.
|
|
134
|
-
- **A SQL
|
|
137
|
+
- **A SQL guard must be read.** DuckDB drops a column or CTE that the final `SELECT` never uses, and the `fail_step()` inside it with it, so `... CROSS JOIN guard` alone never fails. Use the guard in the `WHERE` (`WHERE guard.g IS NULL`) or in a selected column. Prefer a quality rule when one can say it.
|
|
135
138
|
- **Regexes run on RE2:** no lookahead or backreferences.
|
|
136
139
|
- **Any rule loads the whole dataset** to validate it.
|
|
137
140
|
|
|
@@ -316,7 +319,16 @@ Only a `sql_database` extract with `cursor_column`, on `ICEBERG`, reads incremen
|
|
|
316
319
|
| Large immutable event log | `ICEBERG`, `append`, its own pipeline | Cursor on a sequence assigned at commit | A text or transaction-start timestamp cursor; `append` on a source that edits rows |
|
|
317
320
|
| Large records that change, with `updated_at` | `ICEBERG`, `upsert` on a stable business id, its own pipeline | Cursor on a commit-time `updated_at`, plus a periodic rebuild to drop rows deleted at the source | `append`; wide composite keys; reading by position |
|
|
318
321
|
|
|
319
|
-
## 9.
|
|
322
|
+
## 9. What the client reads: descriptions and log lines
|
|
323
|
+
|
|
324
|
+
A client reads two things a pipeline's author writes: each step's description, and the run log. Both are written for them, not for the next engineer.
|
|
325
|
+
|
|
326
|
+
- **Every step has a `description:`.** The client reads it in the step's panel on the Pipeline tab. Say what the step does and any rule needed to judge its result, in plain words and at most about 300 characters: "Sums the monthly sales per cost centre; a centre with no sales that month is left out." Leave build details out: engines, joins, why the query is shaped as it is. Those go in comments. `check` warns on a step with no description or a longer one.
|
|
327
|
+
- **Log through the logger the package hands you:** `logger` in a transform or parse script, and `app_logger()` in `main.py`. What it logs at INFO, WARNING or ERROR is shown, as written, in the run log's plain view, which is the view the client reads, so write it for them: what happened and, for a warning, what to do. DEBUG is for engineers and shows only in the technical view, as do `print` and `logging.getLogger`.
|
|
328
|
+
- **A step that stops on purpose tells the client why:** `fail_step('…')` in SQL (section 3), `PipelineError(…, informative='…')` in a script.
|
|
329
|
+
- **Log a moment the client should know about, not progress.** The engine already says when each step starts and finishes and how many rows it read or prepared. A line of your own says what only your code knows: a rate it applied, rows it set aside and why.
|
|
330
|
+
|
|
331
|
+
## 10. Verify
|
|
320
332
|
|
|
321
333
|
- **Before the first run:** run `check`, confirm every model name with the model tools, and run the extracts and their parse steps once. Then test each SQL transform with `query` against the datasets the parse steps published, asking for shapes (`DESCRIBE`, `COUNT`, `SUM`, `GROUP BY ... HAVING count(*) > 1`) rather than rows.
|
|
322
334
|
- **After every run:**
|
|
@@ -326,7 +338,7 @@ Only a `sql_database` extract with `cursor_column`, on `ICEBERG`, reads incremen
|
|
|
326
338
|
- Rerun the same slice and confirm nothing changed.
|
|
327
339
|
- Report what you verified, with run and version identifiers, and what you did not.
|
|
328
340
|
|
|
329
|
-
##
|
|
341
|
+
## 11. Anti-patterns
|
|
330
342
|
|
|
331
343
|
- A transform without `engine:`, or pandas doing set-based work.
|
|
332
344
|
- Logic in the load step or in `main.py`; reading data or calling APIs from `main.py`.
|
|
@@ -338,3 +350,4 @@ Only a `sql_database` extract with `cursor_column`, on `ICEBERG`, reads incremen
|
|
|
338
350
|
- Labels from unnormalised arguments, or two loads sharing labels.
|
|
339
351
|
- Transforms that read the environment or the clock.
|
|
340
352
|
- Comments carrying dates, people's names, ticket numbers or runner versions. Say what the code relies on.
|
|
353
|
+
- A step without a `description:`, or log lines through `print` that the client never sees.
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var agentApprovalFetch_exports = {};
|
|
20
|
-
__export(agentApprovalFetch_exports, {
|
|
21
|
-
installAgentApprovalFetch: () => installAgentApprovalFetch,
|
|
22
|
-
withAgentApprovals: () => withAgentApprovals
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(agentApprovalFetch_exports);
|
|
25
|
-
var import_promises = require("node:timers/promises");
|
|
26
|
-
var import_requests = require("../pipeline/requests");
|
|
27
|
-
var import_configService = require("./configService");
|
|
28
|
-
function withAgentApprovals(transport, backendUrl, secret, notify = (message) => process.stderr.write(message + "\n"), pollMs = 5e3) {
|
|
29
|
-
const base = new URL(backendUrl.replace(/\/api\/v3\/?$/, "").replace(/\/$/, "") + "/");
|
|
30
|
-
return async (input, init) => {
|
|
31
|
-
const request = new Request(input, init);
|
|
32
|
-
const url = new URL(request.url);
|
|
33
|
-
if (url.origin !== base.origin || !url.pathname.startsWith(base.pathname + "api/v3/") || request.headers.get("X-API-KEY") !== secret)
|
|
34
|
-
return transport(request);
|
|
35
|
-
const response = await transport(request.clone());
|
|
36
|
-
if (response.status !== 428) return response;
|
|
37
|
-
const receipt = await response.clone().json().catch(() => null);
|
|
38
|
-
if (receipt?.code !== "FARSEER_WRITE_APPROVAL_REQUIRED" || !/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(receipt.approval_id))
|
|
39
|
-
return response;
|
|
40
|
-
const statusUrl = new URL("api/v3/agent/write-approvals/" + receipt.approval_id, base);
|
|
41
|
-
const signal = AbortSignal.any([request.signal, AbortSignal.timeout(96e4)]);
|
|
42
|
-
const waiting = () => notify("Waiting for approval in Farseer chat before changing Farseer data.");
|
|
43
|
-
waiting();
|
|
44
|
-
const heartbeat = setInterval(waiting, 5e3);
|
|
45
|
-
const resumeDeadline = (0, import_requests.pausePipelineDeadlines)();
|
|
46
|
-
try {
|
|
47
|
-
for (; ; ) {
|
|
48
|
-
await (0, import_promises.setTimeout)(pollMs, void 0, { signal });
|
|
49
|
-
const statusResponse = await transport(statusUrl, {
|
|
50
|
-
headers: { "X-API-KEY": secret, "X-TENANT-ID": request.headers.get("X-TENANT-ID") ?? "" },
|
|
51
|
-
signal
|
|
52
|
-
}).catch((error) => {
|
|
53
|
-
if (signal.aborted) throw error;
|
|
54
|
-
return null;
|
|
55
|
-
});
|
|
56
|
-
if (!statusResponse || statusResponse.status >= 500) continue;
|
|
57
|
-
if (!statusResponse.ok)
|
|
58
|
-
throw new Error("Farseer write approval expired or the turn was cancelled. No write was retried.");
|
|
59
|
-
const { status } = await statusResponse.json();
|
|
60
|
-
if (status === "pending") continue;
|
|
61
|
-
if (status === "expired")
|
|
62
|
-
throw new Error(
|
|
63
|
-
"Farseer write was not approved within 15 minutes, so it was not made. Tell the user what you wanted to change; propose it again only if they ask."
|
|
64
|
-
);
|
|
65
|
-
if (status !== "approved")
|
|
66
|
-
throw new Error(
|
|
67
|
-
"Farseer write was rejected or already attempted. Inspect its result before proposing another write."
|
|
68
|
-
);
|
|
69
|
-
const headers = new Headers(request.headers);
|
|
70
|
-
headers.set("X-Farseer-Approval", receipt.approval_id);
|
|
71
|
-
resumeDeadline();
|
|
72
|
-
return await transport(new Request(request, { headers, signal }));
|
|
73
|
-
}
|
|
74
|
-
} finally {
|
|
75
|
-
clearInterval(heartbeat);
|
|
76
|
-
resumeDeadline();
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function installAgentApprovalFetch() {
|
|
81
|
-
const { FARSEER_API_KEY: secret, FARSEER_URL: backendUrl } = process.env;
|
|
82
|
-
if (!secret?.startsWith(import_configService.AGENT_API_KEY_PREFIX) || !backendUrl) return;
|
|
83
|
-
globalThis.fetch = withAgentApprovals(globalThis.fetch, backendUrl, secret);
|
|
84
|
-
}
|
|
85
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
86
|
-
0 && (module.exports = {
|
|
87
|
-
installAgentApprovalFetch,
|
|
88
|
-
withAgentApprovals
|
|
89
|
-
});
|
|
90
|
-
//# sourceMappingURL=agentApprovalFetch.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/services/agentApprovalFetch.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAoC;AACpC,sBAAuC;AACvC,2BAAqC;AAI9B,SAAS,mBACZ,WACA,YACA,QACA,S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