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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/operations/sheets.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,cAAyB;AACzB,4BAAyF;AACzF,4BAAkC;AAClC,wBAA0B;AAC1B,oBAA+B;AAC/B,wBAAkE;AAGlE,eAAsB,oBAAoB,QAA+B,UAAwC;AAC7G,QAAM,YAAY,UAAM,oCAAa,QAAQ,QAAQ;AACrD,MAAI,UAAU,SAAS,SAAS;AAC5B,WAAO,UAAU;AAAA,EACrB;AACA,MAAI,UAAU,SAAS,aAAa;AAChC,UAAM,UAAU,UAAM;AAAA,MAClB;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV,QAAQ,eAAe;AAAA,IAC3B;AACA,UAAM,IAAI,6BAAe,SAAS,kBAAkB;AAAA,EACxD;AACA,QAAM,IAAI,6BAAe,UAAU,QAAQ,eAAe,WAAW;AACzE;AAEA,eAAsB,eAAe,QAA+B,QAA6C;AAC7G,QAAM,YAAY,UAAM,kCAAW,MAA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AAoB,QAAQ,OAAO,aAAa;AAEpE,QAAM,UAA+B,MAAM,OAAO,OAAO,IAAI,MAAM,EAAE;AAIrE,QAAM,SAA8B,EAAE,MAAM,QAAQ,KAAK;AACzD,aAAW,OAAO,SAAS;AACvB,WAAO,GAAG,QAAI,6BAAU,QAAQ,GAAG,GAAG,OAAO,MAAM,GAAG,CAAC;AAAA,EAC3D;AAEA,SAAO,OAAO,OAAO,KAAK,KAAK;AAC/B,MAAI,OAAO,YAAY,QAAW;AAC9B,WAAO,UAAU,iBAAiB,OAAO,SAAS,QAAQ,SAAS,OAAO,MAAM,OAAO;AAAA,EAC3F;AACA,4BAA0B,MAAM,MAAM,SAAS,MAAM;AAErD,wBAAsB,MAAM,IAAI,QAAQ,SAAS,OAAO,MAAM,OAAO;AACrE,QAAM,OAAO,OAAO,OAAO,MAAM,IAAI,SAAS,gBAAgB,QAAQ,QAAQ,wBAAwB,CAAC;AAEvG,SAAO;AAAA,IACH,OAAO,EAAE,IAAI,MAAM,IAAI,MAAM,OAAO,KAAK;AAAA,IACzC,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,SAAS,UAAU,OAAO,IAAI,cAAc,QAAQ,KAAK,IAAI,CAAC;AAAA,EAClE;AACJ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 failStep_exports = {};
|
|
20
|
+
__export(failStep_exports, {
|
|
21
|
+
FAIL_STEP_FUNCTION: () => FAIL_STEP_FUNCTION,
|
|
22
|
+
FAIL_STEP_MACRO: () => FAIL_STEP_MACRO,
|
|
23
|
+
FAIL_STEP_MARK: () => FAIL_STEP_MARK,
|
|
24
|
+
failStepText: () => failStepText
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(failStep_exports);
|
|
27
|
+
const FAIL_STEP_FUNCTION = "fail_step";
|
|
28
|
+
const FAIL_STEP_MARK = "fail_step";
|
|
29
|
+
const literal = (s) => `'${s.replace(/'/g, "''")}'`;
|
|
30
|
+
const FAIL_STEP_MACRO = `CREATE TEMP MACRO ${FAIL_STEP_FUNCTION}(message) AS error(${literal(FAIL_STEP_MARK)} || coalesce(CAST(message AS VARCHAR), ''))`;
|
|
31
|
+
function failStepText(message) {
|
|
32
|
+
const at = message.indexOf(FAIL_STEP_MARK);
|
|
33
|
+
if (at < 0) return message;
|
|
34
|
+
return `The query stopped at ${FAIL_STEP_FUNCTION}(): ${message.slice(at + FAIL_STEP_MARK.length)}`;
|
|
35
|
+
}
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
FAIL_STEP_FUNCTION,
|
|
39
|
+
FAIL_STEP_MACRO,
|
|
40
|
+
FAIL_STEP_MARK,
|
|
41
|
+
failStepText
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=failStep.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/pipeline/failStep.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AAE9B,MAAM,UAAU,CAAC,MAAc,IAAI,EAAE,QAAQ,MAAM,IAAI,CAAC;AAGjD,MAAM,kBACT,qBAAqB,kBAAkB,sBAC9B,QAAQ,cAAc,CAAC;AAG7B,SAAS,aAAa,SAAyB;AAClD,QAAM,KAAK,QAAQ,QAAQ,cAAc;AACzC,MAAI,KAAK,EAAG,QAAO;AACnB,SAAO,wBAAwB,kBAAkB,OAAO,QAAQ,MAAM,KAAK,eAAe,MAAM,CAAC;AACrG;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"engineVersion": "3.
|
|
4
|
-
"engineProfile": "3.
|
|
5
|
-
"runnerImage": "runner-python-simple-pipelines:1.
|
|
3
|
+
"engineVersion": "3.5.0",
|
|
4
|
+
"engineProfile": "3.5",
|
|
5
|
+
"runnerImage": "runner-python-simple-pipelines:1.20.0",
|
|
6
6
|
"sourceHashes": {
|
|
7
|
-
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "
|
|
8
|
-
"data-platform/packages/simple-pipelines/pyproject.toml": "
|
|
7
|
+
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "581d604b005e7d0c6a86411035af873c6c3b82ff0c27507756f578cd05dd6448",
|
|
8
|
+
"data-platform/packages/simple-pipelines/pyproject.toml": "68b4c6e140047b3e9c2f797ba8f61935b3e209883a911efc974258d342b2f6ba",
|
|
9
9
|
"tools/pipeline/generate_docs.py": "3a3639b1421f06ed816a35def8861fc42104324eff3c38892ae8367bf877e4cc",
|
|
10
|
-
"runner-images/VERSION": "
|
|
11
|
-
"runner-images/python-simple-pipelines/pyproject.toml": "
|
|
10
|
+
"runner-images/VERSION": "26ac7beccb7951efb69255974ffc70a13bb2e68ae84dcb5456c3fb46294bdba8",
|
|
11
|
+
"runner-images/python-simple-pipelines/pyproject.toml": "4c0ac46ba412af1ddee48bc356d40a778a773f2e20bfaedbfcf44f2360ffc4f7",
|
|
12
12
|
"tools/pipeline/examples/FarseerFilesExtractConfig.yaml": "20950da2f5413833dcaa1e700f13dd0597530c5a17d75ed96e35d6e3ca87eaa4",
|
|
13
13
|
"tools/pipeline/examples/LoadCellsConfig.yaml": "2b56bd84e35765b616916c21c98fd306e2b93127358979777a77083991ac8bf1",
|
|
14
14
|
"tools/pipeline/examples/ParseConfig.yaml": "c5b2deada46ba2edbe29410a37d4b3fd53ffd231d506417a5990cdd3c2d7f8ac",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"notice": "Generated from Pydantic's validation schema using YAML aliases. This describes rendered dataset definitions, not discovery/template directives. Descriptions come from the models; Python validators may impose additional cross-field rules. Read the method guide for the supported pipeline subset. Optional fields without a literal default may use a default factory. Runtime-derived fields are listed separately and must not be authored in YAML.",
|
|
18
18
|
"topics": {
|
|
19
|
-
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, parse, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none |
|
|
19
|
+
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, parse, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none | Qualified names of the datasets this step reads, each produced by a step of this pipeline, which runs first. On a transform, `<name>@published` reads the published version of a dataset instead: it does not order the steps, and it can name the step's own dataset (see TransformConfig). |\n| `description` | string | no | `\"\"` | For the client, who reads it in the step's panel on the Pipeline tab: what the step does, and any rule needed to judge its result. Plain words, at most about 300 characters, no build details. |\n| `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |\n| `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |\n| `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |\n| `load` | [LoadConfig](#loadconfig) or null | no | `null` | |\n| `export` | [ExportConfig](#exportconfig) or null | no | `null` | |\n| `schema` | [DataSchema](#dataschema) or null | no | `null` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n| `write_mode` | [WriteMode](#writemode) | no | `\"overwrite\"` | |\n| `merge_keys` | array of string | no | none | |\n| `sort_by` | array of string | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\nRuntime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`, `published_deps`, `query_template`.\n",
|
|
20
20
|
"BusinessCentralExtractConfig": "## BusinessCentralExtractConfig\n\nExtraction settings for Microsoft Dynamics 365 Business Central.\n\nReads through the OData V4 API, authenticating with the OAuth2\nclient-credentials flow against Azure AD. Requires an Azure AD app\nregistration consented in the BC tenant (typical permission:\n`Dynamics 365 Business Central / app_access`). Credentials (`tenant_id`,\n`client_id`, `client_secret`) are supplied as YAML fields — typically\ntemplated via `{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\nA BC URL is composed as:\n\n {api_base}/{bc_tenant_id}/{environment}/api/{publisher}/{api_group}/{api_version}/companies({company_guid})/{entity}\n\nThe four URL-path fields (`publisher`, `api_group`, `entity`,\n`api_version`) are kept separate so that authors can't accidentally\nglue them into a malformed path; the same structure also lets the\nextractor log one stable summary regardless of which entity is fetched.\n\n`bc_tenant_id` is the *BC* tenant GUID (the one that appears in the\nAPI URL) and may differ from `tenant_id` (the Azure AD tenant GUID\nused for the token endpoint), although in practice they are usually\nthe same.\n\n`filter` is an OData `$filter` expression (e.g.\n`\"postingDateYear eq 2025\"`) — server-side filtering, so it scales\nindependent of pagination. `select` projects a subset of fields\nserver-side; useful when the response payload is dominated by\ncolumns the pipeline does not need.\n\nPagination follows `@odata.nextLink` until exhausted. `page_size`\nis forwarded to BC as `?$top=` — leave unset to accept BC's default\n(20,000 rows per page); set it to a smaller value when running\nagainst a slow connection or to force a multi-page test on a small\nentity.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `bc_tenant_id` | string | yes | none | |\n| `environment` | string | yes | none | |\n| `publisher` | string | yes | none | |\n| `api_group` | string | yes | none | |\n| `company_guid` | string | yes | none | |\n| `entity` | string | yes | none | |\n| `api_version` | string | no | `\"v1.0\"` | |\n| `filter` | string or null | no | `null` | |\n| `select` | string or null | no | `null` | |\n| `page_size` | integer or null | no | `null` | integer: exclusiveMinimum=`0` |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n",
|
|
21
21
|
"CellsOptions": "## CellsOptions\n\nPer-entry options for cell value import.\n\nRows that land on the same coordinates in one import are summed, so the\nsource should already hold one row per cell.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `overwrite_cells` | boolean | yes | none | true replaces the existing value of every coordinate in this import; cells for coordinates not in the import keep their values. false refuses the whole import if any target cell already holds a value, so a rerun fails. |\n| `import_zeros` | boolean | no | `true` | false drops rows whose value is 0, so a value that fell to zero keeps its old number. |\n| `create_missing_members` | boolean | no | `false` | When true, members that appear in mapped source columns but not in the model are created during the import. Fixed dimension members are not created: each must already exist, or be written by a dimension load earlier in the same run. |\n| `missing_member_policy` | `\"DISALLOW\"`, `\"USE_DEFAULT\"`, `\"SKIP_ROW\"` | no | `\"DISALLOW\"` | What happens to a source value a dimension does not have: DISALLOW fails the whole import, USE_DEFAULT books the row to the table's default member, SKIP_ROW drops the row without counting it. |\n| `labels` | array of string | no | none | Stored on the import job; the engine adds pipeline:<load qualified name>. undo_previous finds earlier imports by all of them, so name exactly the slice one run owns. |\n| `undo_previous` | boolean | no | `false` | After this import commits, undo every earlier import carrying all the same labels. Undo deletes that import's cells and never restores the values they replaced; a failed undo is only a warning. |\n| `review_gate` | [ReviewGateConfig](#reviewgateconfig) or null | no | `null` | |\n| `allow_empty` | boolean | no | `false` | true turns a source with zero rows into a no-op instead of an error. Mapped columns must still be present, and nothing is undone. |\n",
|
|
22
22
|
"ColumnSchema": "## ColumnSchema\n\nSchema definition for a single column.\n\n`quality_rules:` carries the column's single-column quality rules —\neach one applies to *this* column with no further reference needed.\nRelational rules (which span multiple columns) sit in the top-level\n`quality_rules:` block on the dataset, not here.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `name` | string | yes | none | |\n| `type` | `\"str\"`, `\"int\"`, `\"float\"`, `\"datetime\"`, `\"bool\"`, `\"list[str]\"` or null | no | `null` | |\n| `not_null` | boolean | no | `false` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"FarseerDimensionsNumberColumn": "## FarseerDimensionsNumberColumn\n\nProjects a NUMBER attribute column on a dim table to a DataFrame column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table_column` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
47
47
|
"FarseerDimensionsTextColumn": "## FarseerDimensionsTextColumn\n\nProjects a TEXT attribute column on a dim table to a DataFrame column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table_column` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
48
48
|
"FarseerExtractConfig": "## FarseerExtractConfig\n\n`extract.type: farseer` — multi-source family.\n\n`source:` picks which Farseer concept to extract from; the\nmatching inner block carries source-specific config. Cross-tenant\ncredentials are shared across all sources via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [FarseerSource](#farseersource) | yes | none | |\n| `variables` | [FarseerVariablesExtractConfig](#farseervariablesextractconfig) or null | no | `null` | |\n| `files` | [FarseerFilesExtractConfig](#farseerfilesextractconfig) or null | no | `null` | |\n| `imports` | [FarseerImportsExtractConfig](#farseerimportsextractconfig) or null | no | `null` | |\n| `dimensions` | [FarseerDimensionsExtractConfig](#farseerdimensionsextractconfig) or null | no | `null` | |\n| `datasets` | [FarseerDatasetsExtractConfig](#farseerdatasetsextractconfig) or null | no | `null` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
49
|
-
"FarseerFilesExportConfig": "## FarseerFilesExportConfig\n\nFarseer Files export target: the source DataFrame as a user-chosen file.\n\nWrites to the tenant's own Files folder (the tree shown in the UI's left\nnav). The write-side mirror of `extract.farseer source: files`.\n\nDistinct from the `Data/` folder the `farseer_files` *data store*\nwrites intermediate step outputs to: that location is addressed by\nqualified name and is meant for developers / product-services, whereas\nthis target writes a single, user-readable report to a path the author\npicks (`file_path`, relative to the Files root — the leading `Files/`\nis implied, exactly like the extractor's `file:`).\n\n**Parquet
|
|
49
|
+
"FarseerFilesExportConfig": "## FarseerFilesExportConfig\n\nFarseer Files export target: the source DataFrame as a user-chosen file.\n\nWrites to the tenant's own Files folder (the tree shown in the UI's left\nnav). The write-side mirror of `extract.farseer source: files`.\n\nDistinct from the `Data/` folder the `farseer_files` *data store*\nwrites intermediate step outputs to: that location is addressed by\nqualified name and is meant for developers / product-services, whereas\nthis target writes a single, user-readable report to a path the author\npicks (`file_path`, relative to the Files root — the leading `Files/`\nis implied, exactly like the extractor's `file:`).\n\n**Parquet unless `format: xlsx`.** Parquet reproduces the DataFrame\nexactly: it stores dtypes, float precision, null-vs-NaN, datetimes and\nleading-zero string codes in the file's own metadata, and the Files page\npreviews it with those types. `format: xlsx` writes a workbook instead,\nfor a client who downloads the file and opens it in Excel: one sheet\nholding the table, named and headed by the `xlsx:` block as on the\nSharePoint export. Excel keeps at most 15 significant digits of a\nnumber, so an integer of more than 15 digits, such as a long\nsource-system ID, opens in Excel as a different number, without an error;\nkeep such a column as text in the step that feeds the export. A\nsheet holds at most 1,048,576 rows, its header included, and a larger\nsource fails the step before anything is written. `file_path` ends in\nthe format's extension, `.parquet` or `.xlsx`.\n\n`source_dataset` names the single dep whose DataFrame is written to the\nfile -- the same source-naming field SharePoint export uses. An export\nwrites exactly one dataset to one file, so the step's single dep must\nequal `source_dataset` (enforced on `DatasetDefinition`).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `file_path` | string | yes | none | Path under Files, ending in the file name. The folder must already exist: the export does not create folders. |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"fail\"` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n| `format` | `\"parquet\"`, `\"xlsx\"` | no | `\"parquet\"` | |\n| `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |\n",
|
|
50
50
|
"FarseerFilesExtractConfig": "## FarseerFilesExtractConfig\n\n`extract.farseer.source: files` — pick a file from Farseer Files.\n\nReads from the source tenant's store. Specify exactly one of `file`\n(slash-separated path under Files) or `file_id` (opaque ID). Cross-tenant\naccess lives on `FarseerExtractConfig`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `file` | string or null | no | `null` | |\n| `file_id` | string or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_raw.yaml: a file's name must match its `name:`.\n# Stores one month's CSV from Files unread, for the parse step `sales` to read.\n# The run argument picks the file, so each run reads its own month.\nname: sales_raw\ntype: extract\nextract:\n type: farseer\n farseer:\n source: files\n files:\n file: \"Imports/{{ pipeline_args.SOURCE_FILE }}\"\n```\n",
|
|
51
51
|
"FarseerImportsExtractConfig": "## FarseerImportsExtractConfig\n\n`extract.farseer.source: imports` — source-row audit of a variable.\n\nOne row per `import_cell`, preserving the `description` set when each\nrow was imported.\n\nCounterpart to `FarseerVariablesExtractConfig`, which\naggregates to one row per Rama cell (current state). Same variable\nsurface (`variable` + `dimensions` + `filters`) with an\nadditional `target_description_column` for the per-row description;\ncells without import provenance (manual entries, calculated cells)\nare excluded. This is the audit view: one row per imported cell with\nthe description it was imported with. For the current value of each\ncell, use `source: variables`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `variable` | string | yes | none | |\n| `target_value_column` | string | yes | none | |\n| `target_description_column` | string | yes | none | |\n| `dimensions` | array of [FarseerVariablesDimensionMapping](#farseervariablesdimensionmapping) | yes | none | minItems=`1` |\n| `filters` | array of [FarseerVariablesFilter](#farseervariablesfilter) | no | none | |\n",
|
|
52
52
|
"FarseerLoadConfig": "## FarseerLoadConfig\n\n`load.target: farseer` — push cells and/or dimension members.\n\nWrites into a Farseer tenant's model.\nOne atomic `/model/load` call can carry both `dimension_tables`\n(member sync) and `cells` (variable-cell import); at least one\nis required, and dim tables sync before cells when both are set.\nNo inner `entity:` discriminator because Farseer has a single\nload operation; if a second mode appears later it can add one.\nCross-tenant pushes are configured via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `dimension_tables` | [DimensionTablesConfig](#dimensiontablesconfig) or null | no | `null` | |\n| `cells` | array of [LoadCellsConfig](#loadcellsconfig) | no | none | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"S3ExtractConfig": "## S3ExtractConfig\n\nExtraction settings for one object in an Amazon S3 bucket.\n\nAuthenticates with an IAM access key pair the YAML supplies, typically\ntemplated via `{{ pipeline_args.NAME }}` from a Remote Job's secret\n`expectedArguments`. There is deliberately no fallback to an ambient AWS\nidentity: the runner serves every tenant, so whatever credentials its\nenvironment holds are not any one pipeline's to use.\n\n`key` is the object key exactly as S3 stores it -- no leading-slash\nstripping, because `/a.csv` and `a.csv` are different objects. `region`\nis optional; without it botocore follows S3's redirect to the bucket's\nregion at the cost of a round trip.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `bucket` | string | yes | none | |\n| `key` | string | yes | none | |\n| `region` | string or null | no | `null` | |\n| `access_key_id` | string or null | no | `null` | |\n| `secret_access_key` | string or null | no | `null` | |\n| `session_token` | string or null | no | `null` | |\n",
|
|
107
107
|
"SapOdataCursor": "## SapOdataCursor\n\nThe change stamp an incremental SAP OData read advances on.\n\n`column` is a UTC change timestamp that SAP writes whenever a row\nchanges, in ABAP's decimal form `YYYYMMDDhhmmss.fffffff`\n(`LASTCHANGEDATETIME` on the billing-document and product views). Each\nrun reads the rows stamped from one second past the previous bound\nthrough the last whole second that ended `settle_lag` before `now`, the\nrunner's clock, because SAP sends no clock of its own.\nConsecutive windows tile, so a run over a quiet source reads nothing and\nthe run publishes no new version.\n\n`settle_lag_seconds` is how long a stamped row gets to become visible. A\nrow whose commit lags its stamp by more than this, less the amount SAP's\nclock runs behind the runner's, is never read by a window. The default\nis SAP's own safety interval for generic timestamp delta.\n\n`zero_stamp` is the rule for rows whose stamp is ABAP's initial value 0,\nSAP's null, which no window can contain. It has no default, because on\nthe billing header those rows are real documents -- cancellations are\ncreated with 0 and keep it:\n\n* `refuse` fails the run when any such row exists: the first read counts\n them, and every later run probes for them.\n* `creation_date` reads them by `creation_date_column`, a day-grain\n `Edm.DateTime`, once each day has closed everywhere: a day `d` is read\n from `(d+1)T12:00Z + settle_lag`, which covers every time zone the\n date can have been written in.\n\n`full_read_every_days` makes a run read the whole entity set again when\nthe last whole read is that many days old. Under upsert that repairs\nwhat a window cannot see: a change that did not move the stamp, a row\nthat committed later than the lag, a row that changes more often than\nthe lag.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `column` | string | yes | none | |\n| `zero_stamp` | `\"refuse\"`, `\"creation_date\"` | yes | none | |\n| `creation_date_column` | string or null | no | `null` | |\n| `settle_lag_seconds` | integer | no | `1800` | minimum=`60`; maximum=`86400` |\n| `full_read_every_days` | integer or null | no | `null` | integer: minimum=`1`; maximum=`366` |\n",
|
|
108
108
|
"SapOdataExtractConfig": "## SapOdataExtractConfig\n\nExtraction settings for SAP S/4HANA via an OData V2 service.\n\nReads a CDS-view-backed entity set exposed through SAP Gateway,\nauthenticating with HTTP basic against a read-only SAP service user.\nCredentials (`username`, `password`) are supplied as YAML fields,\ntypically templated via `{{ pipeline_args.NAME }}`.\n\nThe entity URL is composed as `{base_url}{service_path}/{entity_set}`,\nkept as separate fields so authors can't glue them into a malformed path.\n`entity_set` is the set's name as the service's `$metadata` lists it,\nsince that entry types the columns: a key, a parameterised view's\nparameters or a navigation path is refused.\n\nWithout `cursor` or `odp`, every run re-reads the whole entity set, so pair it\nwith `write_mode: overwrite` on the parse step reading it for a full\nrefresh.\n\nWith `cursor` (see `SapOdataCursor`) the read is incremental: each run\nreads only the rows whose change stamp moved since the last published\nrun, and the watermark of the parse step's dataset, kept by the backend,\nremembers how far that was. The one parse step reading it must then declare\n`write_mode: upsert` with the entity's key as `merge_keys`, because a\nchanged row arrives again and has to replace the row it was, and the\nextract needs `sap_client`, because the stream is one client's data. Both\nare refused before any step runs. Nothing is registered in SAP -- the\nposition lives only in the watermark.\n\nWhat the cursor cannot see: a change that does not move the stamp, a\nrow whose commit lagged its stamp by more than the settle lag, a column\nadded to the view after a row was read, and a row deleted at the source\n(on these views, an archived document). `full_read_every_days` repairs\nall but the last; deleted rows stay.\n\n**Changing the stream needs an operator step.** The stored progress is\nkeyed by the Gateway origin and path, the entity set, the client, the\ncursor columns, the zero-stamp rule and a hash of `select`. Changing any of them makes every\nlater run refuse, until `DELETE /labs/datasets/{id}/watermark` -- the id\nof the parse step's dataset, where the position is kept -- resets the\nprogress and the next run reads the whole entity set again.\n\nWith `odp` (see `SapOdataOdp`) the read is incremental through SAP's own\nchange tracking instead. It opens a subscription in SAP, so it needs a\ndedicated SAP user or service per dataset and environment. Its stored\nprogress is keyed by a digest of the SAP user instead of the cursor\nsettings, and after the watermark is deleted a run refuses while the\nuser's subscription exists, until `odp.reset_subscription_until` is set\nfor one run. The parse-step and `sap_client` rules apply as for `cursor`,\nand besides them both together are refused,\n`odp.key` has to equal the parse step's `merge_keys`, and `select` is\nrefused: how SAP applies the initial load's projection to a delta read\nis not verified.\n\n`select` is OData `$select` passthrough. There is no `$filter`: SAP drops\na filter its ODP translation cannot handle and answers with every row,\nand nothing checks a full load's rows, so a filter belongs downstream.\n`max_page_size` is sent as `Prefer: odata.maxpagesize` and sizes each page\nSAP returns; the pages are then followed through their `__next` links.\nIt is not `$top`, which in SAP's V2 truncates the total result and is\nnever sent. Memory scales with it: a 146-column view peaked at about\n0.7 GB with the default of 10,000 and about 1.3 GB at 50,000. Unpatched\nSAP_BW 7.50-7.56 ignores a value above 50,000 (SAP note 3118751), so\n50,000 is the ceiling that pages on every release.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `base_url` | string | yes | none | |\n| `service_path` | string | yes | none | |\n| `entity_set` | string | yes | none | |\n| `max_page_size` | integer | no | `10000` | minimum=`1`; maximum=`50000` |\n| `sap_client` | string or null | no | `null` | |\n| `select` | string or null | no | `null` | |\n| `username` | string or null | no | `null` | |\n| `password` | string or null | no | `null` | |\n| `cursor` | [SapOdataCursor](#sapodatacursor) or null | no | `null` | |\n| `odp` | [SapOdataOdp](#sapodataodp) or null | no | `null` | |\n",
|
|
109
|
-
"SapOdataOdp": "## SapOdataOdp\n\nSAP's own change tracking (ODP delta) as the incremental read.\n\nThe first run sends `Prefer: odata.track-changes`, which opens a\nsubscription in SAP's operational delta queue (ODQ), and takes the new\ninitial-load token from `DeltaLinksOf<entity>`. Each later run reads the\nchanges since the committed token and commits the new one SAP hands out,\nalso from an empty read. SAP keeps the subscription, keyed by the SAP user\nand the OData service: one per pair, so every dataset and environment\nneeds its own user or service. A new initial load for the same pair\nsilently invalidates the tokens of whoever held it before.\n\n`key` is the entity's key. One delta can carry a key more than once, and\nthe last image in the response is the one kept. That is verified for a\nCDS view with change data capture, whose repeated images of one key are\nthe same. A recovery sends its requests in the order SAP delivered them,\nbut within one request SAP's order is not change order, so a source that\nsends two different images of one key in one request, as an extractor's\nafter-image delta process may, can keep the older one. It is wrong for\nsources that send differences. `key` has to equal the `merge_keys` of the\nparse step reading the extract.\n\n`deletes` is the rule for SAP's delete records. `
|
|
109
|
+
"SapOdataOdp": "## SapOdataOdp\n\nSAP's own change tracking (ODP delta) as the incremental read.\n\nThe first run sends `Prefer: odata.track-changes`, which opens a\nsubscription in SAP's operational delta queue (ODQ), and takes the new\ninitial-load token from `DeltaLinksOf<entity>`. Each later run reads the\nchanges since the committed token and commits the new one SAP hands out,\nalso from an empty read. SAP keeps the subscription, keyed by the SAP user\nand the OData service: one per pair, so every dataset and environment\nneeds its own user or service. A new initial load for the same pair\nsilently invalidates the tokens of whoever held it before.\n\n`key` is the entity's key. One delta can carry a key more than once, and\nthe last image in the response is the one kept. That is verified for a\nCDS view with change data capture, whose repeated images of one key are\nthe same. A recovery sends its requests in the order SAP delivered them,\nbut within one request SAP's order is not change order, so a source that\nsends two different images of one key in one request, as an extractor's\nafter-image delta process may, can keep the older one. It is wrong for\nsources that send differences. `key` has to equal the `merge_keys` of the\nparse step reading the extract.\n\n`deletes` is the rule for SAP's delete records. `apply` is the default: a\ndelete removes the keyed row, so the dataset mirrors the source's current\nstate. `ignore` drops the delete and counts it and keeps the row, for\nretaining history the source purges, as the cursor does.\n\n`reset_subscription_until` and `release_until` are lifecycle steps, each\nin effect until the instant it names and refused after it, so a copied\nor forgotten setting stops acting. `reset_subscription_until` ends this\nuser's subscription on the service before the initial load of a dataset\nwith no committed position; without it such a run refuses, since the\nsubscription may be another dataset's. `release_until` ends the\nsubscription of a dataset that holds a committed position, and the parse\nstep reading the extract publishes a released position, which every later\nrun reads as nothing to do;\nnothing else ends it, because the backend holds no SAP credentials.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `key` | array of string | yes | none | minItems=`1` |\n| `deletes` | `\"ignore\"`, `\"apply\"` | no | `\"apply\"` | |\n| `reset_subscription_until` | string or null | no | `null` | string: format=`\"date-time\"` |\n| `release_until` | string or null | no | `null` | string: format=`\"date-time\"` |\n",
|
|
110
110
|
"SharePointExportConfig": "## SharePointExportConfig\n\nSharePoint upload target via Microsoft Graph.\n\nSerializes the source DataFrame to `format` (csv / xlsx / parquet)\nand writes the bytes to `file_path` under `site_url`. Reuses the\nexact OAuth client-credentials flow and site/library resolution the\nSharePoint extractor already ships with — same `tenant_id` /\n`client_id` / `client_secret` triple, same `{{ pipeline_args.* }}`\ntemplating, same `library_name` conventions.\n\nWrite options live in the block named for `format` -- `csv:` or `xlsx:` --\nby the rule a parse step's read options follow: the block for `format` is\nfilled with defaults when omitted, a block for another format is refused\nrather than ignored, and `parquet` has none.\n\n format: xlsx\n xlsx:\n sheet_name: Monthly\n\nRequired Azure AD application permissions: either `Sites.ReadWrite.All`\n(tenant-wide) or `Sites.Selected` + per-site `write` grant.\n\n`conflict_behavior=REPLACE` (default) is safe for SharePoint\ndocument libraries because versioning is on by default — prior\nuploads remain recoverable through the SharePoint UI. Targets\nwithout versioning (future: raw SFTP) should interpret `REPLACE`\nas a genuinely destructive overwrite and document that caveat on\ntheir own config class.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `site_url` | string | yes | none | |\n| `file_path` | string | yes | none | |\n| `library_name` | string or null | no | `null` | |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n| `format` | [ExportFormat](#exportformat) | no | `\"csv\"` | |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"replace\"` | |\n| `csv` | [CsvWriteOptions](#csvwriteoptions) or null | no | `null` | |\n| `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |\n",
|
|
111
111
|
"SharePointExtractConfig": "## SharePointExtractConfig\n\nExtraction settings for SharePoint files via Microsoft Graph API.\n\nRequires an Azure AD app registration with Sites.Read.All (or\nSites.Selected) permission.\n\nCredentials (`tenant_id`, `client_id`, `client_secret`) are\nsupplied as YAML fields — typically templated via\n`{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `site_url` | string | yes | none | |\n| `file_path` | string | yes | none | |\n| `library_name` | string or null | no | `null` | |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n",
|
|
112
112
|
"SqlDatabaseExtractConfig": "## SqlDatabaseExtractConfig\n\nExtraction settings for SQL databases via SQLAlchemy.\n\nUses `pd.read_sql` / `pd.read_sql_table` under the hood. The\n*connection_string* must be a valid SQLAlchemy URL (e.g.\n`postgresql+psycopg2://user:pass@host/db`).\n\nSpecify exactly one of *query* or *table*.\n\n`cursor_column` makes the extract incremental. It names a column of the\nquery's result (or of the table) whose values only ever grow for new or\nchanged rows: an `updated_at` timestamp, an autoincrement id, a log\nsequence number. Each run then reads only the rows past the position the\nprevious run committed, and the dataset's watermark, kept by the backend,\nremembers that position across runs. The window is fixed before it is\nread: the run first asks the source for the column's current maximum, then\nreads `(committed, maximum]`. Each retry measures a new maximum; the bound\nis fixed within one attempt and does not provide a shared database snapshot.\nExactly one parse step reads it, and that step chooses `write_mode`\nindependently: append and upsert accumulate rows, while overwrite retains\nonly the latest published window. The window is published as part of the\nparse step's dataset, which is why the position is tracked on that dataset\nrather than on this one. The store must support the requested mode and the\nextraction lifecycle (see `WriteMode`).\n\nWhat the cursor cannot see: a row whose cursor value does not change when\nthe row changes, and a row deleted at the source. Both stay as they were\nlast read. An initial read (no committed bound) refuses null cursors, since\nno window can include them. Later runs only inspect rows past the committed\nbound, so historical nulls do not block progress; null rows remain excluded\nuntil assigned a cursor beyond that bound. Rows sharing the maximum value\nwith a row still being written at the moment of the read are read once and\nnever again, so the column should be one the source assigns at commit, not\nat the start of a transaction.\n\n**Renaming the cursor column, or moving the source, needs an operator step.**\nThe stored progress is keyed by the derivation's version, the driver name,\nthe host and port, the database, the relation *and* the cursor column (for\na `query`, the relation is a hash of its exact text), plus a hash of any\ndriver options left in the URL. Changing any of them in this YAML makes\nevery later run refuse:\na position measured against one stream never applied to another. Answering\nthat refusal is `PUT /labs/datasets/{id}/watermark` -- the id of the parse\nstep's dataset, where the position is kept -- which states the new\nkey and the position to carry over. Nothing about the data already stored\nchanges. The position carried over names the column it was measured on, and\na run whose cursor is a different column refuses it rather than bounding on\na value that was never compared against that column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `connection_string` | string | yes | none | |\n| `table` | string or null | no | `null` | |\n| `batch_size` | integer | no | `100000` | exclusiveMinimum=`0` |\n| `query` | string or null | no | `null` | |\n| `cursor_column` | string or null | no | `null` | |\n",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"TldvExtractConfig": "## TldvExtractConfig\n\n`extract.type: tldv` — multi-source family over the tl;dv REST API.\n\nAuthentication is a personal API key from tl;dv's settings, sent as\n`x-api-key`; it is a YAML field, typically templated via\n`{{ pipeline_args.TLDV_API_KEY }}`. A key sees the meetings its owner\ncan see, and a transcript is exported only for meetings whose organizer\nis on a paid plan -- tl;dv answers 403 for the others, which the\nextractor logs and skips per meeting rather than failing the run.\n\n`meetings` is one row per meeting; `transcripts` one row per spoken\nsegment; `notes` one row per meeting with tl;dv's generated notes as\nMarkdown. The filter block is the same on all three. Every source\nstores a parquet payload, which a parse step reads with `format: parquet`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [TldvSource](#tldvsource) | yes | none | |\n| `api_key` | string or null | no | `null` | |\n| `meetings` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `transcripts` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `notes` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n",
|
|
119
119
|
"TldvMeetingsFilter": "## TldvMeetingsFilter\n\nWhich meetings a tl;dv source reads: a date window.\n\nShared by every source, because transcripts and notes are addressed per\nmeeting and so start from the same meeting list. `from_date` and\n`to_date` are ISO 8601 dates.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `from_date` | string or null | no | `null` | |\n| `to_date` | string or null | no | `null` | |\n| `page_size` | integer | no | `50` | maximum=`50`; exclusiveMinimum=`0` |\n",
|
|
120
120
|
"TldvSource": "## TldvSource\n\nSub-discriminator on `extract.tldv.source`.\n\nValues: `\"meetings\"`, `\"transcripts\"`, `\"notes\"`\n",
|
|
121
|
-
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query
|
|
121
|
+
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query`. A query that should stop because the data isn't\nwhat the step needs calls `fail_step('…')` with what is wrong and what the\nclient does next, not `error()`: the client reads `fail_step`'s message as\nthe step's failure, and `error()` only as the app's own code failing.\n\nFor `engine: ibis`:\n\n`script` names a `Code/` file holding an `@ibis_transform` function. The\nrunner calls it with one lazy ibis `Table` per dep, named by the dep's leaf\nname, and it must return a `Table`; returning a DataFrame is refused. Rows\ncome back in no fixed order unless the expression ends in `.order_by()`.\n\n from farseer_simple_pipelines import ibis_transform\n\n @ibis_transform\n def sales_clean(sales_lines, *, args):\n t = sales_lines\n for column in args[\"code_columns\"]:\n t = t.mutate(**{column: t[column].strip().upper()})\n return t.order_by(args[\"code_columns\"])\n\nFor `engine: python`:\n\n`script` is the Python filename containing the `@transform` function.\nThe runner calls it with one pandas DataFrame per dep, as a keyword\nargument named by the dep's leaf name, and the function returns one\nDataFrame.\n\nFor both script surfaces:\n\n`function` optionally overrides which decorated function in the script\nbacks this dataset. When unset, the runner binds the function whose name\nmatches the dataset's leaf name. Setting this lets one shared function\nback many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,\n`tb_cih`). `args` is an arbitrary dict passed to the function's\nkeyword-only `args` parameter, if it declares one. The script lives under\n`Code/`, mirroring the dataset's folder under `Models/`.\n\nWhatever the engine, the output is parquet, so there is no format to set:\na transform's output is typed and read back by scanning it, and neither\nsurvives csv or json.\n\nReading a published version (`@published`):\n\nA `deps` entry `<name>@published` reads the published version of a\ndataset, not the version this run writes. It does not order the steps, so\na step can name its own dataset. For its own dataset the step reads exactly\nthe version its new version replaces, and if another run publishes first,\nthe publication of this run fails. For another dataset of the pipeline, it\nreads the version published before the run, also under `ON_COMPLETE`,\nwhich publishes each step when it finishes. For a dataset of another\npipeline, it reads the version published when the step starts, so two\nsteps that read it can see different versions if that pipeline publishes\nduring the run; when they must agree, read it in one step and pass that\nstep's output on as an ordinary dep. The name is the qualified name: in\n`Models/silver/`, the step `history` reads its own version as\n`silver.history@published`. SQL reads the entry as the view\n`\"<leaf>@published\"` (quoted); a script function takes it in a `**`\nparameter, under the same key. Only the Datasets and Iceberg stores keep\nversions, and a step reads only datasets of the store the pipeline runs\non; the Farseer Files store refuses the entry.\n\nA dataset with no published version has no relation, and SQL that reads it\nfails. `is_published('<name>')` is true when the dependency has a version on\nthis run, so guard the part of the query that reads it. The rows of\n`customers` that are new or changed since the last publication:\n\n deps: [customers, customers@published]\n query: >\n SELECT * FROM customers\n {{ 'EXCEPT SELECT * FROM \"customers@published\"'\n if is_published('customers') else '' }}\n\n`run_time()` is the instant the run started, in UTC, as text for\n`TIMESTAMP '{{ run_time() }}'`.\n\nSCD type 2 history (`scd2()`):\n\n name: customers_history\n type: transform\n deps: [customers, customers_history@published]\n transform:\n engine: duckdb\n query: >\n {{ scd2(snapshot='customers', key=['customer_id'],\n track=['region', 'sales_rep']) }}\n\nThe step publishes the snapshot's columns plus `__valid_from` and\n`__valid_to` (UTC `TIMESTAMP`; `__valid_to` is empty on the open row of a\nkey) and `__is_current` (`BOOLEAN`, true on that open row). A change of\na tracked column closes the open row and opens a new one at `run_time()`.\nAn untracked column changes on the open row only. A key that leaves the\nsnapshot closes (`close_missing=False` keeps it open), and a new or\nreturning key opens at `run_time()`. The first run opens every row at\n`initial_valid_from` (default `'1900-01-01 00:00:00'`). A NULL key value\nor a repeated key in the snapshot fails the step. An empty string is a key\nvalue: reject it in the snapshot step if it means no key. A tracked column\nthat the snapshot does not have fails the step, and so does a column that\nthe snapshot and the history both have with two types, also when only the\ncase of its name changed. A run fails when the published history holds a\ntime later than its own start, usually because a run that started later\npublished first. A later run fails when the snapshot has no rows and the\nhistory has open rows, because a source read that returned nothing would\nclose every key: `allow_empty=True` lets one run close them. The step logs\nhow many rows it opened and closed. The step must declare its own `<name>@published` and keep\n`write_mode: overwrite`, because it writes the whole history on every run.\nA `schema:` on the history step must declare the key and the tracked\ncolumns, and the three history columns by their exact names, because a\nstep with a `schema:` keeps only the columns it declares. An `initial_valid_from` later than the run's start\nis refused.\n\nThe snapshot must hold the complete population: a key that is missing\ncloses. Put quality rules on every dataset that the snapshot reads, so\nthat a partial read fails before the history sees it: a minimum on the\nkey (`custom__distinct_count` with `min`), a format rule on the key (for\nexample `str_length`), and `not_null` on columns that come from a joined\ntable.\nA dataset restore returns the history to an earlier version, and does not\nundo writes to the planning model. Never feed a shared history from a\npartial snapshot, such as an incremental window kept with `overwrite` or a\nrun narrowed to one company or period: every key outside it closes. Do not\noverlap history runs: an earlier run fails only when a later one published\nfirst and opened or closed a row. A later first run, a run with no change\nor a run that changed only untracked values writes no such time, so the\nearlier run still publishes its older snapshot after the newer one. Build the snapshot\nwith a `LEFT JOIN` from the table that holds the population, deduplicate\nwith a full\n`ORDER BY`, give each column a fixed type in its `schema:`, and keep the\nextract and its history in one pipeline. A change of `key` is not\ndetected: start a new history for a new key. A new column is untracked in\nthe run that adds it, because the published history does not have it yet:\nadd it to `track` from the next run. A snapshot column with the name of one\nof the three history columns, in any letter case, fails the step. A source\ncolumn such as `valid_from` is ordinary data and can be tracked. Load a\ndimension from the snapshot, or from the latest row per key, and never with\n`delete_missing: true` from a history. Facts by date, and the value on a\ndate beside today's:\n\n SELECT i.*, h.region FROM invoices i\n LEFT JOIN customers_history h ON h.customer_id = i.customer_id\n AND i.invoice_date >= CAST(h.__valid_from AS DATE)\n AND (h.__valid_to IS NULL OR i.invoice_date < CAST(h.__valid_to AS DATE))\n\n SELECT o.customer_id, o.region AS region_now, d.region AS region_nov_1\n FROM customers_history o LEFT JOIN customers_history d\n ON d.customer_id = o.customer_id\n AND CAST(d.__valid_from AS DATE) <= DATE '2026-11-01'\n AND (d.__valid_to IS NULL OR DATE '2026-11-01' < CAST(d.__valid_to AS DATE))\n WHERE o.__is_current\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `engine` | [TransformEngine](#transformengine) | no | `\"python\"` | |\n| `script` | string or null | no | `null` | |\n| `function` | string or null | no | `null` | |\n| `query` | string or null | no | `null` | |\n| `sql_file` | string or null | no | `null` | |\n| `args` | object | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_monthly.yaml: a file's name must match its `name:`.\n# Totals the month by product and region in SQL. Each dep is a view named after\n# its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.\nname: sales_monthly\ntype: transform\ndeps: [sales]\ntransform:\n engine: duckdb\n query: |\n SELECT\n product,\n region,\n strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,\n CAST(SUM(amount) AS DOUBLE) AS amount\n FROM sales\n GROUP BY ALL\n```\n",
|
|
122
122
|
"TransformEngine": "## TransformEngine\n\nHow a transform is authored, and therefore whether it materialises.\n\nNot the compute engine, despite the name: there is one of those, DuckDB, and\nevery surface here runs on it. What this selects is the authoring surface --\nand because exactly one surface holds a whole dataset in memory, it is also\nthe step's resource envelope, declared where a scheduler can read it before\nthe step has ever run. The name is kept because the field is a tenant's\nYAML.\n\n`duckdb` runs author SQL over the dependency relations. Streams.\n\n`ibis` runs an `@ibis_transform` function over lazy tables, returning one.\nStreams.\n\n`python` runs a `@transform` function over DataFrames, returning one. **The\nonly surface that materialises**, so a step declaring it is bounded by the\ncontainer rather than by a memory limit.\n\nValues: `\"python\"`, `\"duckdb\"`, `\"ibis\"`\n",
|
|
123
123
|
"WriteMode": "## WriteMode\n\nChoose how a parse step or transform writes its output to a dataset.\n\n`overwrite` replaces the rows, `append` adds rows, and `upsert` replaces\nmatching keys while retaining the others. The tenant chooses the mode on\neach run, independently of whether the source uses a SQL cursor.\nOverwriting an incremental window and appending a complete result are both\nintentional choices we support. A SAP OData window (`cursor` or `odp`) is\nthe exception: a changed row arrives again, so the parse step reading it\nmust upsert on the entity's key, or the run fails before any step runs. The\nstore must implement the requested mode; currently only the Iceberg store\nsupports append and upsert. An extract declares no mode: it stores a\npayload, and the dataset is the parse step reading it.\n\nQuality rules and `schema:` see the accumulated dataset rather than this\nrun's rows, because validation loads back what was persisted. A rule has to\nhold across runs. Schema-only checks avoid a cached copy, but quality rules\nmaterialize the full dataset; incremental reads do not make validation cost\nproportional to the new window.\n\nA run whose window read no rows publishes no version and adds no file, so\nwhat a consumer reads tracks changes rather than runs. The exception is an\nextractor that returns its position as a `MovedPosition` (SAP ODP, which\nserves an older delta token only as a recovery of what it already\ndelivered): that window is published, empty, to carry it. Declared validation\nstill checks the published dataset: rules may have changed since the last\npublication. A first run over an empty source does publish, so a consumer\nfinds an empty dataset rather than none, provided its columns are typed:\ndeclared under `schema:`, or already typed in the payload, as a SAP OData\nread's are from the service's `$metadata`. Without types the Iceberg store\nrefuses that run: every column of an empty result arrives untyped, and a\nnew table needs types.\n\nThe candidate that a quiet run opened is cancelled and its logical version\nnumber stays consumed. Physical cleanup and metadata retention are deferred;\nthe abandonment sweep only marks eligible active attempts cancelled.\n\nValues: `\"overwrite\"`, `\"append\"`, `\"upsert\"`\n",
|
|
124
124
|
"XlsxParseOptions": "## XlsxParseOptions\n\nHow to read an xlsx payload.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `sheet_name` | string or integer | no | `0` | |\n| `columns` | string or null | no | `null` | |\n| `has_header` | boolean | no | `true` | |\n| `start_row` | integer or null | no | `null` | |\n",
|
|
@@ -24,6 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
var import_node_api = require("@duckdb/node-api");
|
|
25
25
|
var path = __toESM(require("path"));
|
|
26
26
|
var import_queryDownloads = require("./queryDownloads");
|
|
27
|
+
var import_failStep = require("./failStep");
|
|
27
28
|
const literal = (s) => `'${s.replace(/'/g, "''")}'`;
|
|
28
29
|
process.once("message", async (request) => {
|
|
29
30
|
const { directory, limits } = request;
|
|
@@ -54,6 +55,7 @@ process.once("message", async (request) => {
|
|
|
54
55
|
`CREATE VIEW "${binding.name}" AS SELECT * FROM read_parquet([${groups[i].map(literal).join(",")}])`
|
|
55
56
|
);
|
|
56
57
|
}
|
|
58
|
+
await connection.run(import_failStep.FAIL_STEP_MACRO);
|
|
57
59
|
await connection.run("SET lock_configuration = true");
|
|
58
60
|
const statements = await connection.extractStatements(request.sql);
|
|
59
61
|
if (statements.count !== 1) throw new Error("Exactly one SELECT query is supported");
|
|
@@ -87,7 +89,7 @@ process.once("message", async (request) => {
|
|
|
87
89
|
}
|
|
88
90
|
});
|
|
89
91
|
} catch (error) {
|
|
90
|
-
const message = String(error instanceof Error ? error.message : error).replace(/https?:\/\/[^\s'"<>]+/g, "[signed URL redacted]").split(directory).join("[query temp]");
|
|
92
|
+
const message = (0, import_failStep.failStepText)(String(error instanceof Error ? error.message : error)).replace(/https?:\/\/[^\s'"<>]+/g, "[signed URL redacted]").split(directory).join("[query temp]");
|
|
91
93
|
process.send?.({ ok: false, error: message.slice(0, 2e3) });
|
|
92
94
|
} finally {
|
|
93
95
|
process.disconnect();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/pipeline/queryWorker.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AACA,sBAA8C;AAC9C,WAAsB;AAEtB,4BAAoD;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AACA,sBAA8C;AAC9C,WAAsB;AAEtB,4BAAoD;AACpD,sBAA8C;AAE9C,MAAM,UAAU,CAAC,MAAc,IAAI,EAAE,QAAQ,MAAM,IAAI,CAAC;AACxD,QAAQ,KAAK,WAAW,OAAO,YAAyE;AACpG,QAAM,EAAE,WAAW,OAAO,IAAI;AAC9B,MAAI;AACA,UAAM,EAAE,QAAQ,gBAAgB,IAC5B,QAAQ,YACP,UAAM,0CAAmB,SAAS,WAAW,OAAO,YAAY;AAC7D,YAAM,MAAM,IAAI,IAAI,OAAO;AAC3B,UACI,IAAI,aAAa,YACjB,EAAE,QAAQ,gBAAgB,IAAI,aAAa,WAAW,IAAI,aAAa,cACzE;AACE,cAAM,IAAI,MAAM,8BAA8B;AAAA,MAClD;AAEA,aAAO,MAAM,KAAK,EAAE,UAAU,QAAQ,CAAC;AAAA,IAC3C,CAAC;AACL,UAAM,QAAQ,OAAO,KAAK;AAC1B,UAAM,KAAK,MAAM,+BAAe,OAAO,YAAY;AAAA,MAC/C,cAAc,GAAG,OAAO,QAAQ;AAAA,MAChC,SAAS,OAAO,OAAO,OAAO;AAAA,M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A,aAAK,KAAK,GAAG;AACb,iBAAS;AAAA,MACb;AAAA,IACJ;AACA,YAAQ,OAAO;AAAA,MACX,IAAI;AAAA,MACJ,QAAQ;AAAA,QACJ,SAAS,OAAO,YAAY;AAAA,QAC5B;AAAA,QACA;AAAA,QACA,UAAU,CAAC;AAAA,QACX;AAAA,QACA,aAAa;AAAA,MACjB;AAAA,IACJ,CAAC;AAAA,EACL,SAAS,OAAO;AACZ,UAAM,cAAU,8BAAa,OAAO,iBAAiB,QAAQ,MAAM,UAAU,KAAK,CAAC,EAC9E,QAAQ,0BAA0B,uBAAuB,EACzD,MAAM,SAAS,EACf,KAAK,cAAc;AACxB,YAAQ,OAAO,EAAE,IAAI,OAAO,OAAO,QAAQ,MAAM,GAAG,GAAI,EAAE,CAAC;AAAA,EAC/D,UAAE;AACE,YAAQ,WAAW;AAAA,EACvB;AACJ,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -21,7 +21,6 @@ __export(requests_exports, {
|
|
|
21
21
|
PIPELINE_REQUEST_TIMEOUT_MS: () => PIPELINE_REQUEST_TIMEOUT_MS,
|
|
22
22
|
boundedPipelineCall: () => boundedPipelineCall,
|
|
23
23
|
boundedPipelineClient: () => boundedPipelineClient,
|
|
24
|
-
pausePipelineDeadlines: () => pausePipelineDeadlines,
|
|
25
24
|
pipelineFetch: () => pipelineFetch,
|
|
26
25
|
pipelineRequestSignal: () => pipelineRequestSignal,
|
|
27
26
|
withPipelineRequests: () => withPipelineRequests
|
|
@@ -42,50 +41,24 @@ function pipelineRequestSignal(existing) {
|
|
|
42
41
|
function pipelineFetch(fetcher = (...args) => fetch(...args)) {
|
|
43
42
|
return (input, init) => fetcher(input, { ...init, signal: pipelineRequestSignal(init?.signal) });
|
|
44
43
|
}
|
|
45
|
-
function pausePipelineDeadlines() {
|
|
46
|
-
const resume = [];
|
|
47
|
-
for (let current = context.getStore(); current; current = current.parent)
|
|
48
|
-
if (current.pause) resume.push(current.pause());
|
|
49
|
-
return () => resume.forEach((fn) => fn());
|
|
50
|
-
}
|
|
51
44
|
async function boundedPipelineCall(fn) {
|
|
52
45
|
const parent = context.getStore();
|
|
53
46
|
const controller = new AbortController();
|
|
54
47
|
const signal = parent?.signal ? AbortSignal.any([parent.signal, controller.signal]) : controller.signal;
|
|
55
48
|
signal.throwIfAborted();
|
|
56
49
|
const timeoutMs = parent?.timeoutMs ?? PIPELINE_REQUEST_TIMEOUT_MS;
|
|
57
|
-
|
|
58
|
-
let started = Date.now();
|
|
59
|
-
let pauses = 0;
|
|
60
|
-
let finished = false;
|
|
61
|
-
const startTimer = () => setTimeout(
|
|
50
|
+
const timer = setTimeout(
|
|
62
51
|
() => controller.abort(
|
|
63
52
|
new Error(
|
|
64
53
|
"Pipeline request timed out. A write may have been accepted; inspect its outcome before retrying."
|
|
65
54
|
)
|
|
66
55
|
),
|
|
67
|
-
|
|
56
|
+
timeoutMs
|
|
68
57
|
);
|
|
69
|
-
let timer = startTimer();
|
|
70
|
-
const pause = () => {
|
|
71
|
-
if (pauses++ === 0) {
|
|
72
|
-
clearTimeout(timer);
|
|
73
|
-
remaining = Math.max(0, remaining - (Date.now() - started));
|
|
74
|
-
}
|
|
75
|
-
let resumed = false;
|
|
76
|
-
return () => {
|
|
77
|
-
if (resumed) return;
|
|
78
|
-
resumed = true;
|
|
79
|
-
if (--pauses === 0 && !finished) {
|
|
80
|
-
started = Date.now();
|
|
81
|
-
timer = startTimer();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
58
|
let cancel = () => void 0;
|
|
86
59
|
try {
|
|
87
60
|
return await Promise.race([
|
|
88
|
-
context.run({ signal, timeoutMs
|
|
61
|
+
context.run({ signal, timeoutMs }, fn),
|
|
89
62
|
new Promise((_, reject) => {
|
|
90
63
|
cancel = () => reject(signal.reason);
|
|
91
64
|
signal.addEventListener("abort", cancel, { once: true });
|
|
@@ -93,7 +66,6 @@ async function boundedPipelineCall(fn) {
|
|
|
93
66
|
})
|
|
94
67
|
]);
|
|
95
68
|
} finally {
|
|
96
|
-
finished = true;
|
|
97
69
|
clearTimeout(timer);
|
|
98
70
|
signal.removeEventListener("abort", cancel);
|
|
99
71
|
}
|
|
@@ -114,7 +86,6 @@ function boundedPipelineClient(client) {
|
|
|
114
86
|
PIPELINE_REQUEST_TIMEOUT_MS,
|
|
115
87
|
boundedPipelineCall,
|
|
116
88
|
boundedPipelineClient,
|
|
117
|
-
pausePipelineDeadlines,
|
|
118
89
|
pipelineFetch,
|
|
119
90
|
pipelineRequestSignal,
|
|
120
91
|
withPipelineRequests
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/pipeline/requests.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAE3B,MAAM,8BAA8B;AAE3C,MAAM,UAAU,IAAI,qCAAkC;AAI/C,SAAS,qBACZ,IACA,QACA,YAAY,6BACd;AACE,UAAQ,eAAe;AACvB,SAAO,QAAQ,IAAI,EAAE,QAAQ,UAAU,GAAG,EAAE;AAChD;AAEO,SAAS,sBAAsB,UAAwD;AAC1F,QAAM,SAAS,QAAQ,SAAS,GAAG;AACnC,UAAQ,eAAe;AACvB,SAAO,UAAU,WAAW,YAAY,IAAI,CAAC,QAAQ,QAAQ,CAAC,IAAK,UAAU,YAAY;AAC7F;AAEO,SAAS,cAAc,UAAwB,IAAI,SAAS,MAAM,GAAG,IAAI,GAAiB;AAC7F,SAAO,CAAC,OAAO,SAAS,QAAQ,OAAO,EAAE,GAAG,MAAM,QAAQ,sBAAsB,MAAM,MAAM,EAAE,CAAC;AACnG;AAEA,eAAsB,oBAAuB,IAA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HANGED
|
@@ -29,8 +29,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var service_exports = {};
|
|
30
30
|
__export(service_exports, {
|
|
31
31
|
BLANK_SETUP: () => BLANK_SETUP,
|
|
32
|
+
DESCRIPTION_LIMIT: () => DESCRIPTION_LIMIT,
|
|
32
33
|
PipelineService: () => PipelineService,
|
|
33
34
|
SCHEDULE_NOTE: () => SCHEDULE_NOTE,
|
|
35
|
+
describedSteps: () => describedSteps,
|
|
34
36
|
loadOutcomes: () => loadOutcomes,
|
|
35
37
|
localSourceFiles: () => localSourceFiles,
|
|
36
38
|
pipelineArgumentNames: () => pipelineArgumentNames,
|
|
@@ -57,6 +59,7 @@ var import_requests = require("./requests");
|
|
|
57
59
|
var import_readiness = require("./readiness");
|
|
58
60
|
var import_errors = require("./errors");
|
|
59
61
|
var import_agentSandbox = require("../utils/agentSandbox");
|
|
62
|
+
const { load: loadYaml } = require("js-yaml");
|
|
60
63
|
const relative = import_zod.z.string().min(1).refine(
|
|
61
64
|
(s) => !s.includes("\\") && !s.startsWith("/") && s.split("/").every((p) => p && p !== "." && p !== ".." && !p.startsWith(".")),
|
|
62
65
|
"Expected a non-hidden relative path"
|
|
@@ -132,6 +135,25 @@ function pipelineArgumentNames(files) {
|
|
|
132
135
|
}
|
|
133
136
|
return names;
|
|
134
137
|
}
|
|
138
|
+
const DESCRIPTION_LIMIT = 300;
|
|
139
|
+
function describedSteps(files) {
|
|
140
|
+
const missing = [];
|
|
141
|
+
const long = [];
|
|
142
|
+
for (const file of files) {
|
|
143
|
+
let step;
|
|
144
|
+
try {
|
|
145
|
+
step = loadYaml(fs.readFileSync(file, "utf8"));
|
|
146
|
+
} catch {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
const expand = step?.expand;
|
|
150
|
+
const description = (expand?.template ?? step)?.description;
|
|
151
|
+
const text = typeof description === "string" ? description.trim() : "";
|
|
152
|
+
if (!text) missing.push(file);
|
|
153
|
+
else if (text.length > DESCRIPTION_LIMIT) long.push(file);
|
|
154
|
+
}
|
|
155
|
+
return { missing, long };
|
|
156
|
+
}
|
|
135
157
|
const SCHEDULE_NOTE = "Source you push runs at the next scheduled start. Verify it with run first, or pause the schedule for multi-step edits.";
|
|
136
158
|
function scheduleCheck(recorded, live, jobId) {
|
|
137
159
|
const restore = (cron) => `Restore it with farseer_configure_app schedule="${cron}" when done, or rerun init jobId=${jobId} force=true if the change was intended.`;
|
|
@@ -312,6 +334,25 @@ class PipelineService {
|
|
|
312
334
|
);
|
|
313
335
|
}
|
|
314
336
|
const models = this.localSources().filter((f) => /\/Models\/.+\.ya?ml$/.test(f));
|
|
337
|
+
if (models.length) {
|
|
338
|
+
const shown = (files) => files.map((f) => f.slice(f.indexOf("Models/"))).join(", ");
|
|
339
|
+
const { missing, long } = describedSteps(models.map((f) => path.join(this.filesDir, f)));
|
|
340
|
+
const gaps = [
|
|
341
|
+
missing.length ? `No description: ${shown(missing)}.` : "",
|
|
342
|
+
long.length ? `Over ${DESCRIPTION_LIMIT} characters: ${shown(long)}.` : ""
|
|
343
|
+
].filter(Boolean);
|
|
344
|
+
checks.push(
|
|
345
|
+
gaps.length ? {
|
|
346
|
+
name: "step-descriptions",
|
|
347
|
+
status: "warn",
|
|
348
|
+
detail: `${gaps.join(" ")} The client reads a step's description in its panel on the Pipeline tab: what the step does and any rule needed to judge its result, in plain words. This never blocks a run.`
|
|
349
|
+
} : {
|
|
350
|
+
name: "step-descriptions",
|
|
351
|
+
status: "pass",
|
|
352
|
+
detail: "Every step has a description for the client"
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}
|
|
315
356
|
if (!this.profile.datasetIds.length)
|
|
316
357
|
checks.push({
|
|
317
358
|
name: "declared-outputs",
|
|
@@ -377,7 +418,8 @@ class PipelineService {
|
|
|
377
418
|
return `Version ${versionId}: ${manifest.files.length} Parquet file(s), ${bytes} bytes. ${access} verified on the first file; full-query performance is not established by this probe.`;
|
|
378
419
|
});
|
|
379
420
|
}
|
|
380
|
-
const
|
|
421
|
+
const ready = (c) => c.status === "pass" || c.status === "warn";
|
|
422
|
+
const automatedReady = checks.every(ready);
|
|
381
423
|
const setup = readSetup(this.profile.setup);
|
|
382
424
|
checks.push(
|
|
383
425
|
"recorded" in setup ? {
|
|
@@ -394,7 +436,7 @@ class PipelineService {
|
|
|
394
436
|
tenant: this.profile.tenant,
|
|
395
437
|
jobId: this.profile.jobId,
|
|
396
438
|
automatedReady,
|
|
397
|
-
readyForAcceptance: checks.every(
|
|
439
|
+
readyForAcceptance: checks.every(ready),
|
|
398
440
|
checks,
|
|
399
441
|
limits: import_query.DEFAULT_LIMITS,
|
|
400
442
|
remainingAcceptance: "Run the two-person client exercise and the configured source/reconciliation task. This read-only check does not validate source credentials, replay, business results or client-provider agreements."
|
|
@@ -1012,8 +1054,10 @@ function setArgumentNames(source) {
|
|
|
1012
1054
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1013
1055
|
0 && (module.exports = {
|
|
1014
1056
|
BLANK_SETUP,
|
|
1057
|
+
DESCRIPTION_LIMIT,
|
|
1015
1058
|
PipelineService,
|
|
1016
1059
|
SCHEDULE_NOTE,
|
|
1060
|
+
describedSteps,
|
|
1017
1061
|
loadOutcomes,
|
|
1018
1062
|
localSourceFiles,
|
|
1019
1063
|
pipelineArgumentNames,
|