farseer-cli 1.14.2 → 1.16.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/updateCheck.ts"],
4
- "sourcesContent": ["import * as https from 'https';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as os from 'os';\nimport chalk from 'chalk';\nimport { CLI_VERSION } from './constants';\n\nconst CONFIG_DIR = path.join(os.homedir(), '.farseer');\nconst CACHE_FILE = path.join(CONFIG_DIR, 'update-check.json');\nconst CACHE_TTL_MS = 4 * 60 * 60 * 1000; // 4 hours\nconst FETCH_TIMEOUT_MS = 3000;\nconst REGISTRY_URL = 'https://registry.npmjs.org/farseer-cli/latest';\n\ninterface UpdateCache {\n lastCheck: number;\n latestVersion: string;\n}\n\nfunction isNewerVersion(latest: string, current: string): boolean {\n const latestParts = latest.split('.').map(Number);\n const currentParts = current.split('.').map(Number);\n for (let i = 0; i < 3; i++) {\n const l = latestParts[i] || 0;\n const c = currentParts[i] || 0;\n if (l > c) return true;\n if (l < c) return false;\n }\n return false;\n}\n\nfunction readCache(): UpdateCache | null {\n try {\n const data = JSON.parse(fs.readFileSync(CACHE_FILE, 'utf-8'));\n if (typeof data.lastCheck === 'number' && typeof data.latestVersion === 'string') {\n return data as UpdateCache;\n }\n } catch {\n // Cache missing or corrupt \u2014 ignore\n }\n return null;\n}\n\nfunction writeCache(latestVersion: string): void {\n try {\n if (!fs.existsSync(CONFIG_DIR)) {\n fs.mkdirSync(CONFIG_DIR, { recursive: true });\n }\n const data: UpdateCache = { lastCheck: Date.now(), latestVersion };\n fs.writeFileSync(CACHE_FILE, JSON.stringify(data), 'utf-8');\n } catch {\n // Non-critical \u2014 ignore write errors\n }\n}\n\nfunction fetchLatestVersion(): Promise<string | null> {\n return new Promise((resolve) => {\n const req = https.get(REGISTRY_URL, { timeout: FETCH_TIMEOUT_MS }, (res) => {\n if (res.statusCode !== 200) {\n res.resume(); // drain response\n resolve(null);\n return;\n }\n let body = '';\n res.setEncoding('utf-8');\n res.on('data', (chunk) => (body += chunk));\n res.on('end', () => {\n try {\n const json = JSON.parse(body);\n resolve(typeof json.version === 'string' ? json.version : null);\n } catch {\n resolve(null);\n }\n });\n });\n req.on('error', () => resolve(null));\n req.on('timeout', () => {\n req.destroy();\n resolve(null);\n });\n });\n}\n\nexport async function checkForUpdates(): Promise<string | null> {\n try {\n let latestVersion: string | null = null;\n\n const cache = readCache();\n if (cache && Date.now() - cache.lastCheck < CACHE_TTL_MS) {\n latestVersion = cache.latestVersion;\n } else {\n latestVersion = await fetchLatestVersion();\n if (latestVersion) {\n writeCache(latestVersion);\n }\n }\n\n if (latestVersion && isNewerVersion(latestVersion, CLI_VERSION)) {\n return [\n '',\n chalk.yellow(` Update available: ${CLI_VERSION} \u2192 ${chalk.green(latestVersion)}`),\n chalk.yellow(` Run ${chalk.cyan('npm install -g farseer-cli@latest')} to update`),\n '',\n ].join('\\n');\n }\n\n return null;\n } catch {\n // Graceful failure \u2014 never let update check break the CLI\n return null;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,SAAoB;AACpB,WAAsB;AACtB,SAAoB;AACpB,mBAAkB;AAClB,uBAA4B;AAE5B,MAAM,aAAa,KAAK,KAAK,GAAG,QAAQ,GAAG,UAAU;AACrD,MAAM,aAAa,KAAK,KAAK,YAAY,mBAAmB;AAC5D,MAAM,eAAe,IAAI,KAAK,KAAK;AACnC,MAAM,mBAAmB;AACzB,MAAM,eAAe;AAOrB,SAAS,eAAe,QAAgB,SAA0B;AAC9D,QAAM,cAAc,OAAO,MAAM,GAAG,EAAE,IAAI,MAAM;AAChD,QAAM,eAAe,QAAQ,MAAM,GAAG,EAAE,IAAI,MAAM;AAClD,WAAS,IAAI,GAAG,IAAI,GAAG,KAAK;AACxB,U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,IAAI,CAAC;AACnC,QAAI,GAAG,WAAW,MAAM;AACpB,UAAI,QAAQ;AACZ,cAAQ,IAAI;AAAA,IAChB,CAAC;AAAA,EACL,CAAC;AACL;AAEA,eAAsB,kBAA0C;AAC5D,MAAI;AACA,QAAI,gBAA+B;AAEnC,UAAM,QAAQ,UAAU;AACxB,QAAI,SAAS,KAAK,IAAI,IAAI,MAAM,YAAY,cAAc;AACtD,sBAAgB,MAAM;AAAA,IAC1B,OAAO;AACH,sBAAgB,MAAM,mBAAmB;AACzC,UAAI,eAAe;AACf,mBAAW,aAAa;AAAA,MAC5B;AAAA,IACJ;AAEA,QAAI,iBAAiB,eAAe,eAAe,4BAAW,GAAG;AAC7D,aAAO;AAAA,QACH;AAAA,QACA,aAAAA,QAAM,OAAO,uBAAuB,4BAAW,WAAM,aAAAA,QAAM,MAAM,aAAa,CAAC,EAAE;AAAA,QACjF,aAAAA,QAAM,OAAO,SAAS,aAAAA,QAAM,KAAK,mCAAmC,CAAC,YAAY;AAAA,QACjF;AAAA,MACJ,EAAE,KAAK,IAAI;AAAA,IACf;AAEA,WAAO;AAAA,EACX,QAAQ;AAEJ,WAAO;AAAA,EACX;AACJ;",
4
+ "sourcesContent": ["import * as https from 'https';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as os from 'os';\nimport chalk from 'chalk';\nimport { CLI_VERSION } from './constants';\n\nconst CONFIG_DIR = path.join(os.homedir(), '.farseer');\nconst CACHE_FILE = path.join(CONFIG_DIR, 'update-check.json');\nconst CACHE_TTL_MS = 4 * 60 * 60 * 1000; // 4 hours\nconst FETCH_TIMEOUT_MS = 3000;\nconst REGISTRY_URL = 'https://registry.npmjs.org/farseer-cli/latest';\n\ninterface UpdateCache {\n lastCheck: number;\n latestVersion: string;\n}\n\nexport function isNewerVersion(latest: string, current: string): boolean {\n const latestParts = latest.split('.').map(Number);\n const currentParts = current.split('.').map(Number);\n for (let i = 0; i < 3; i++) {\n const l = latestParts[i] || 0;\n const c = currentParts[i] || 0;\n if (l > c) return true;\n if (l < c) return false;\n }\n return false;\n}\n\nfunction readCache(): UpdateCache | null {\n try {\n const data = JSON.parse(fs.readFileSync(CACHE_FILE, 'utf-8'));\n if (typeof data.lastCheck === 'number' && typeof data.latestVersion === 'string') {\n return data as UpdateCache;\n }\n } catch {\n // Cache missing or corrupt \u2014 ignore\n }\n return null;\n}\n\nfunction writeCache(latestVersion: string): void {\n try {\n if (!fs.existsSync(CONFIG_DIR)) {\n fs.mkdirSync(CONFIG_DIR, { recursive: true });\n }\n const data: UpdateCache = { lastCheck: Date.now(), latestVersion };\n fs.writeFileSync(CACHE_FILE, JSON.stringify(data), 'utf-8');\n } catch {\n // Non-critical \u2014 ignore write errors\n }\n}\n\nfunction fetchLatestVersion(): Promise<string | null> {\n return new Promise((resolve) => {\n const req = https.get(REGISTRY_URL, { timeout: FETCH_TIMEOUT_MS }, (res) => {\n if (res.statusCode !== 200) {\n res.resume(); // drain response\n resolve(null);\n return;\n }\n let body = '';\n res.setEncoding('utf-8');\n res.on('data', (chunk) => (body += chunk));\n res.on('end', () => {\n try {\n const json = JSON.parse(body);\n resolve(typeof json.version === 'string' ? json.version : null);\n } catch {\n resolve(null);\n }\n });\n });\n req.on('error', () => resolve(null));\n req.on('timeout', () => {\n req.destroy();\n resolve(null);\n });\n });\n}\n\nexport async function checkForUpdates(): Promise<string | null> {\n try {\n let latestVersion: string | null = null;\n\n const cache = readCache();\n if (cache && Date.now() - cache.lastCheck < CACHE_TTL_MS) {\n latestVersion = cache.latestVersion;\n } else {\n latestVersion = await fetchLatestVersion();\n if (latestVersion) {\n writeCache(latestVersion);\n }\n }\n\n if (latestVersion && isNewerVersion(latestVersion, CLI_VERSION)) {\n return [\n '',\n chalk.yellow(` Update available: ${CLI_VERSION} \u2192 ${chalk.green(latestVersion)}`),\n chalk.yellow(` Run ${chalk.cyan('npm install -g farseer-cli@latest')} to update`),\n '',\n ].join('\\n');\n }\n\n return null;\n } catch {\n // Graceful failure \u2014 never let update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;AAEA,WAAO;AAAA,EACX,QAAQ;AAEJ,WAAO;AAAA,EACX;AACJ;",
6
6
  "names": ["chalk"]
7
7
  }
@@ -32,11 +32,11 @@ Before it reads any source, the engine checks a pipeline's shape (valid YAML, sc
32
32
  | Create a pipeline and its job (`init`) | the remote jobs feature (FEATURE.REMOTE_JOBS, which makes the Apps folder visible), create remote jobs in the tenant folder, write files |
33
33
  | Run, list runs, inspect | run remote jobs, read run history |
34
34
  | Read what a load imported (`inspect-import`) | the import feature (FEATURE.IMPORT) and FEATURE.SEE_ALL_IMPORT_JOBS, because the runner creates the import, not the analyst |
35
- | Read datasets and versions (`query`, `versions`) | run remote jobs |
35
+ | Read datasets and versions (`init`, `check`, `query`, `versions`) | update remote jobs, or the Data Hub permission (FEATURE.DATA_HUB) |
36
36
  | Restore an earlier dataset version | update remote jobs |
37
37
  | Create or delete datasets | super user |
38
38
 
39
- These are the remote job, file and feature permissions you already manage in the web app. No new permission class. Super user does not stand in for the feature permissions: grant them explicitly. The job itself runs as the tenant's runner identity, which needs the import feature (FEATURE.IMPORT) for a load to commit.
39
+ These are the remote job, file and feature permissions you manage in the web app. The Data Hub permission and the right to update remote jobs both read every dataset in the tenant, payroll included, so grant them on purpose. Super user does not stand in for the feature permissions: grant them explicitly. The job itself runs as the tenant's runner identity, which needs the import feature (FEATURE.IMPORT) for a load to commit, and must be a super user or hold CLASS.REMOTE_JOB.RUN_AS_SERVICE, because every extract keeps the source's file in Farseer's payload area for 30 days (a shared jobrunner's identity is a super user; a dedicated jobrunner's holds RUN_AS_SERVICE). The payload area needs Farseer's files in cloud storage: an installation that keeps files in the tenant database refuses it, and every extract fails.
40
40
 
41
41
  The permissions alone are not enough for an analyst who is not a super user: Farseer shows such a user only the folders and model items shared with them. Give the analyst access to the `Files` folder (where `init` creates the pipeline's folder) and to the dimension tables and variables the pipeline loads, or make them a tenant admin. Without that access, `init` fails with `Folder not found: Files` and reading the model's members fails, even though every permission above is granted.
42
42
 
@@ -44,7 +44,7 @@ The permissions alone are not enough for an analyst who is not a super user: Far
44
44
 
45
45
  The CLI authors for exactly one engine version: the one inside the runner image it was released with. When Farseer releases a new runner image it also releases a CLI, and for a while the backend accepts both. `check` reports a newer CLI as available; below the minimum, pipeline commands stop with "update the CLI". IT should expect to update `farseer-cli` on analysts' laptops a few times a year.
46
46
 
47
- The CLI never changes which engine a job runs on its own. A job on an older image keeps running on it. To edit it with a newer CLI, someone runs `farseer pipeline upgrade-runtime`, which moves the job to the CLI's image and says what it moved from; until then the CLI refuses to push to it. That includes pipelines Farseer consultants built for you earlier: the assistant asks before upgrading one, and if the newer engine rejects something it will say so and offer to fix it. A job set to follow `latest` is left alone.
47
+ The CLI never changes which engine a job runs on its own. A job on an older image keeps running on it. To edit it with a newer CLI, someone runs `farseer pipeline upgrade-runtime`, which moves the job to the CLI's image and says what it moved from; until then the CLI refuses to push to it. That includes pipelines Farseer consultants built for you earlier: the assistant asks before upgrading one, and if the newer engine rejects something it will say so and offer to fix it. A job set to follow `latest` is left alone. Moving a pipeline from simple-pipelines 2.x to 3.0 is a breaking change: every extract must be split into an extract, which only fetches the source's file, and a parse step that reads it, so an inherited pipeline's runs fail on the new engine from its upgrade until it is changed. The assistant's pipeline skill describes the new shape and can make that change. If you would rather a consultant did that, ask before an inherited pipeline is upgraded.
48
48
 
49
49
  ## Moving to production
50
50
 
@@ -1,4 +1,4 @@
1
- # Pipeline YAML reference: engine 2.9.1
1
+ # Pipeline YAML reference: engine 3.0.0
2
2
 
3
3
  Generated file. Regenerate with `tools/pipeline/generate_docs.py`.
4
4
 
@@ -8,14 +8,13 @@ Read a topic through `farseer pipeline guide --topic NAME` or MCP `farseer_pipel
8
8
 
9
9
  - [DatasetDefinition](#datasetdefinition)
10
10
  - [BusinessCentralExtractConfig](#businesscentralextractconfig)
11
- - [CSVWriteOptions](#csvwriteoptions)
12
11
  - [CellsOptions](#cellsoptions)
13
12
  - [ColumnSchema](#columnschema)
14
13
  - [ConflictBehavior](#conflictbehavior)
15
14
  - [Connection](#connection)
16
15
  - [CsvParseOptions](#csvparseoptions)
16
+ - [CsvWriteOptions](#csvwriteoptions)
17
17
  - [CustomField](#customfield)
18
- - [DataFormat](#dataformat)
19
18
  - [DataSchema](#dataschema)
20
19
  - [DateColumn](#datecolumn)
21
20
  - [DimensionTableEntryOptions](#dimensiontableentryoptions)
@@ -100,14 +99,14 @@ Read a topic through `farseer pipeline guide --topic NAME` or MCP `farseer_pipel
100
99
  - [TransformConfig](#transformconfig)
101
100
  - [TransformEngine](#transformengine)
102
101
  - [WriteMode](#writemode)
103
- - [XLSXWriteOptions](#xlsxwriteoptions)
104
102
  - [XlsxParseOptions](#xlsxparseoptions)
103
+ - [XlsxWriteOptions](#xlsxwriteoptions)
105
104
 
106
105
  ## DatasetDefinition
107
106
 
108
107
  Validated representation of a single dataset YAML file.
109
108
 
110
- - Set exactly the configuration block matching type: extract, transform, load or export.
109
+ - Set exactly the configuration block matching type: extract, parse, transform, load or export.
111
110
  - For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.
112
111
  - 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.
113
112
  - 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.
@@ -122,6 +121,7 @@ Unknown fields are rejected.
122
121
  | `deps` | array of string | no | none | |
123
122
  | `description` | string | no | `""` | |
124
123
  | `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |
124
+ | `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |
125
125
  | `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |
126
126
  | `load` | [LoadConfig](#loadconfig) or null | no | `null` | |
127
127
  | `export` | [ExportConfig](#exportconfig) or null | no | `null` | |
@@ -188,20 +188,6 @@ Unknown fields are rejected.
188
188
  | `client_id` | string or null | no | `null` | |
189
189
  | `client_secret` | string or null | no | `null` | |
190
190
 
191
- ## CSVWriteOptions
192
-
193
- Options for DataFrame → CSV serialization on export.
194
-
195
- Unknown fields are rejected.
196
-
197
- | YAML field | Type | Required | Default | Constraints / description |
198
- | --- | --- | --- | --- | --- |
199
- | `separator` | string | no | `","` | |
200
- | `decimal` | string | no | `"."` | |
201
- | `encoding` | string | no | `"utf-8"` | |
202
- | `include_header` | boolean | no | `true` | |
203
- | `lineterminator` | string | no | `"\n"` | minLength=`1` |
204
-
205
191
  ## CellsOptions
206
192
 
207
193
  Per-entry options for cell value import.
@@ -263,7 +249,7 @@ Unknown fields are rejected.
263
249
 
264
250
  ## CsvParseOptions
265
251
 
266
- csv-specific parse options (passed to `pd.read_csv`).
252
+ How to read a csv payload.
267
253
 
268
254
  Unknown fields are rejected.
269
255
 
@@ -275,6 +261,20 @@ Unknown fields are rejected.
275
261
  | `has_header` | boolean | no | `true` | |
276
262
  | `columns` | string or null | no | `null` | |
277
263
 
264
+ ## CsvWriteOptions
265
+
266
+ Options for DataFrame → CSV serialization on export.
267
+
268
+ Unknown fields are rejected.
269
+
270
+ | YAML field | Type | Required | Default | Constraints / description |
271
+ | --- | --- | --- | --- | --- |
272
+ | `separator` | string | no | `","` | |
273
+ | `decimal` | string | no | `"."` | |
274
+ | `encoding` | string | no | `"utf-8"` | |
275
+ | `include_header` | boolean | no | `true` | |
276
+ | `lineterminator` | string | no | `"\n"` | minLength=`1` |
277
+
278
278
  ## CustomField
279
279
 
280
280
  Maps a DataFrame column to a CUSTOM column meta.
@@ -289,10 +289,6 @@ Unknown fields are rejected.
289
289
  | --- | --- | --- | --- | --- |
290
290
  | `source_column` | string | yes | none | |
291
291
 
292
- ## DataFormat
293
-
294
- Values: `"parquet"`, `"csv"`, `"json"`
295
-
296
292
  ## DataSchema
297
293
 
298
294
  Top-level `schema:` block in a dataset YAML.
@@ -403,8 +399,7 @@ Unknown fields are rejected.
403
399
  | `hubspot` | [HubspotExtractConfig](#hubspotextractconfig) or null | no | `null` | |
404
400
  | `sap_odata` | [SapOdataExtractConfig](#sapodataextractconfig) or null | no | `null` | |
405
401
  | `s3` | [S3ExtractConfig](#s3extractconfig) or null | no | `null` | |
406
- | `parse` | [ParseConfig](#parseconfig) | no | none | |
407
- | `optional` | boolean | no | `false` | When true, a source that does not exist (404, no such table, no such file) skips this dataset instead of failing the run. The skip propagates to every step that depends on it, loads and exports included, and the run still finishes successfully. Network errors, authentication failures, timeouts and 5xx responses still fail the run. |
402
+ | `optional` | boolean | no | `false` | When true, a source that does not exist (404, no such table, no such file) skips this extract instead of failing the run. The skip propagates to the parse step reading it and every step that depends on that, loads and exports included, and the run still finishes successfully. Network errors, authentication failures, timeouts and 5xx responses still fail the run. |
408
403
 
409
404
  ## ExtractType
410
405
 
@@ -627,8 +622,8 @@ Unknown fields are rejected.
627
622
 
628
623
  ```yaml
629
624
  # Models/sales_raw.yaml: a file's name must match its `name:`.
630
- # Reads one month's CSV from Files. The run argument picks the file, so each run
631
- # reads its own month.
625
+ # Stores one month's CSV from Files unread, for the parse step `sales` to read.
626
+ # The run argument picks the file, so each run reads its own month.
632
627
  name: sales_raw
633
628
  type: extract
634
629
  extract:
@@ -637,8 +632,6 @@ extract:
637
632
  source: files
638
633
  files:
639
634
  file: "Imports/{{ pipeline_args.SOURCE_FILE }}"
640
- parse:
641
- format: csv
642
635
  ```
643
636
 
644
637
  ## FarseerImportsExtractConfig
@@ -858,9 +851,10 @@ token is supplied as a YAML field, typically templated via
858
851
  `source:` picks the grain; the matching inner block carries its
859
852
  config. One token covers every source, so it lives out here.
860
853
 
861
- Every source lands parquet, so a surrounding `parse:` block is never
862
- consulted — same as `business_central` and `sql_database`. A declared
863
- `schema:` therefore checks the result rather than instructing the read.
854
+ Every source stores a parquet payload, which a parse step reads with
855
+ `format: parquet` — same as `business_central` and `sql_database`. A
856
+ `schema:` goes on that parse step, where it checks the result rather than
857
+ instructing the read.
864
858
 
865
859
  HubSpot serializes every record property as a JSON *string*, including
866
860
  numbers, booleans and dates. The extractor reads the object's property
@@ -1058,9 +1052,9 @@ workspace (a "private" app for this one workspace is the usual shape);
1058
1052
  it is supplied as a YAML field, typically templated via
1059
1053
  `{{ pipeline_args.INTERCOM_ACCESS_TOKEN }}`. `region` picks the API host.
1060
1054
 
1061
- Every source lands parquet, so a surrounding `parse:` block is never
1062
- consulted, and a declared `schema:` checks the result rather than
1063
- instructing the read. Timestamps arrive as seconds since the epoch and
1055
+ Every source stores a parquet payload, which a parse step reads with
1056
+ `format: parquet`; a `schema:` on that parse step checks the result rather
1057
+ than instructing the read. Timestamps arrive as seconds since the epoch and
1064
1058
  land as timezone-naive UTC datetimes. Lists on a record (contact ids,
1065
1059
  tag names) land as `|`-joined text; structures with no fixed shape
1066
1060
  (custom attributes) land as JSON text.
@@ -1096,7 +1090,7 @@ Values: `"conversations"`, `"conversation_parts"`, `"contacts"`, `"admins"`
1096
1090
 
1097
1091
  ## JsonParseOptions
1098
1092
 
1099
- json-specific parse options (passed to `pd.read_json`).
1093
+ How to read a json payload.
1100
1094
 
1101
1095
  Unknown fields are rejected.
1102
1096
 
@@ -1335,7 +1329,8 @@ database directly; Notion's later versions split a database from its
1335
1329
  data sources, and a database with more than one data source needs the
1336
1330
  query addressed to a data source, which this extractor does not do.
1337
1331
 
1338
- Every source lands parquet; a `parse:` block is never consulted.
1332
+ Every source stores a parquet payload, which a parse step reads with
1333
+ `format: parquet`.
1339
1334
 
1340
1335
  Unknown fields are rejected.
1341
1336
 
@@ -1383,22 +1378,56 @@ Unknown fields are rejected.
1383
1378
 
1384
1379
  ## ParseConfig
1385
1380
 
1386
- Parsing options for downloaded extract data.
1381
+ The `parse:` block of a `type: parse` dataset.
1382
+
1383
+ Exactly one of `format` or `script` says how the payload is read: a
1384
+ built-in reader for a format we handle, or an author's `@parse` function in
1385
+ `Code/`, for a source the built-ins cannot read. Neither is defaulted --
1386
+ a step that quietly assumed csv would read a spreadsheet as text and
1387
+ produce one unusable column.
1388
+
1389
+ `function` names which `@parse` function in `script` backs this dataset,
1390
+ for a script holding several; it binds by dataset leaf name when omitted.
1387
1391
 
1388
- Format-specific options live in per-format blocks (`csv_options` /
1389
- `xlsx_options` / `json_options`); only the block matching `format`
1390
- may be set, and the matching block defaults when omitted. `parquet` has
1391
- no read options. Same per-format block *shape* as the export side, but
1392
- stricter: a block that does not match `format` is rejected, not ignored.
1392
+ Read options live in the block named for `format` -- `csv:`, `xlsx:`, `json:`
1393
+ -- and a block that does not match is rejected rather than ignored, so an
1394
+ option written under the wrong format fails instead of silently doing
1395
+ nothing. `parquet` carries its own types and has no options.
1396
+
1397
+ parse:
1398
+ format: csv
1399
+ csv:
1400
+ encoding: windows-1250
1401
+
1402
+ The four formats are the four the built-in readers handle: a source that
1403
+ hands back a table lands parquet, a file source lands the file it
1404
+ downloaded, and `xlsx` reads both Excel containers by sniffing the file,
1405
+ because one logical dataset can arrive as `.xlsx` one month and legacy
1406
+ `.xls` the next.
1393
1407
 
1394
1408
  Unknown fields are rejected.
1395
1409
 
1396
1410
  | YAML field | Type | Required | Default | Constraints / description |
1397
1411
  | --- | --- | --- | --- | --- |
1398
- | `format` | `"csv"`, `"parquet"`, `"json"`, `"xlsx"` | no | `"csv"` | |
1399
- | `csv_options` | [CsvParseOptions](#csvparseoptions) or null | no | `null` | |
1400
- | `xlsx_options` | [XlsxParseOptions](#xlsxparseoptions) or null | no | `null` | |
1401
- | `json_options` | [JsonParseOptions](#jsonparseoptions) or null | no | `null` | |
1412
+ | `format` | `"csv"`, `"parquet"`, `"json"`, `"xlsx"` or null | no | `null` | |
1413
+ | `script` | string or null | no | `null` | |
1414
+ | `function` | string or null | no | `null` | |
1415
+ | `csv` | [CsvParseOptions](#csvparseoptions) or null | no | `null` | |
1416
+ | `xlsx` | [XlsxParseOptions](#xlsxparseoptions) or null | no | `null` | |
1417
+ | `json` | [JsonParseOptions](#jsonparseoptions) or null | no | `null` | |
1418
+
1419
+ ### Example
1420
+
1421
+ ```yaml
1422
+ # Models/sales.yaml: a file's name must match its `name:`.
1423
+ # Reads the CSV the extract `sales_raw` stored. Every extract is read by a parse
1424
+ # step, and only a parse step reads an extract.
1425
+ name: sales
1426
+ type: parse
1427
+ deps: [sales_raw]
1428
+ parse:
1429
+ format: csv
1430
+ ```
1402
1431
 
1403
1432
  ## QualityRuleEntry
1404
1433
 
@@ -1555,17 +1584,23 @@ typically templated via `{{ pipeline_args.NAME }}`.
1555
1584
 
1556
1585
  The entity URL is composed as `{base_url}{service_path}/{entity_set}`,
1557
1586
  kept as separate fields so authors can't glue them into a malformed path.
1587
+ `entity_set` is the set's name as the service's `$metadata` lists it,
1588
+ since that entry types the columns: a key, a parameterised view's
1589
+ parameters or a navigation path is refused.
1558
1590
 
1559
- Without `cursor`, every run re-reads the whole entity set, so pair it
1560
- with the dataset's `write_mode: overwrite` for a full refresh.
1591
+ Without `cursor` or `odp`, every run re-reads the whole entity set, so pair it
1592
+ with `write_mode: overwrite` on the parse step reading it for a full
1593
+ refresh.
1561
1594
 
1562
1595
  With `cursor` (see `SapOdataCursor`) the read is incremental: each run
1563
1596
  reads only the rows whose change stamp moved since the last published
1564
- run, and the dataset's watermark, kept by the backend, remembers how far
1565
- that was. Discovery then requires `write_mode: upsert` on the entity's
1566
- key, because a changed row arrives again and has to replace the row it
1567
- was, and `sap_client`, because the stream is one client's data. Nothing
1568
- is registered in SAP -- the position lives only in the watermark.
1597
+ run, and the watermark of the parse step's dataset, kept by the backend,
1598
+ remembers how far that was. The one parse step reading it must then declare
1599
+ `write_mode: upsert` with the entity's key as `merge_keys`, because a
1600
+ changed row arrives again and has to replace the row it was, and the
1601
+ extract needs `sap_client`, because the stream is one client's data. Both
1602
+ are refused before any step runs. Nothing is registered in SAP -- the
1603
+ position lives only in the watermark.
1569
1604
 
1570
1605
  What the cursor cannot see: a change that does not move the stamp, a
1571
1606
  row whose commit lagged its stamp by more than the settle lag, a column
@@ -1576,15 +1611,21 @@ all but the last; deleted rows stay.
1576
1611
  **Changing the stream needs an operator step.** The stored progress is
1577
1612
  keyed by the Gateway origin and path, the entity set, the client, the
1578
1613
  cursor columns, the zero-stamp rule and a hash of `select`. Changing any of them makes every
1579
- later run refuse, until `DELETE /labs/datasets/{id}/watermark` resets the
1614
+ later run refuse, until `DELETE /labs/datasets/{id}/watermark` -- the id
1615
+ of the parse step's dataset, where the position is kept -- resets the
1580
1616
  progress and the next run reads the whole entity set again.
1581
1617
 
1582
1618
  With `odp` (see `SapOdataOdp`) the read is incremental through SAP's own
1583
1619
  change tracking instead. It opens a subscription in SAP, so it needs a
1584
- dedicated SAP user or service per dataset and environment. Discovery
1585
- applies the same rules as for `cursor`, refuses both together, requires
1586
- `odp.key` to equal `merge_keys`, and refuses `select`: how SAP applies
1587
- the initial load's projection to a delta read is not verified.
1620
+ dedicated SAP user or service per dataset and environment. Its stored
1621
+ progress is keyed by a digest of the SAP user instead of the cursor
1622
+ settings, and after the watermark is deleted a run refuses while the
1623
+ user's subscription exists, until `odp.reset_subscription_until` is set
1624
+ for one run. The parse-step and `sap_client` rules apply as for `cursor`,
1625
+ and besides them both together are refused,
1626
+ `odp.key` has to equal the parse step's `merge_keys`, and `select` is
1627
+ refused: how SAP applies the initial load's projection to a delta read
1628
+ is not verified.
1588
1629
 
1589
1630
  `select` is OData `$select` passthrough. There is no `$filter`: SAP drops
1590
1631
  a filter its ODP translation cannot handle and answers with every row,
@@ -1632,8 +1673,8 @@ the same. A recovery sends its requests in the order SAP delivered them,
1632
1673
  but within one request SAP's order is not change order, so a source that
1633
1674
  sends two different images of one key in one request, as an extractor's
1634
1675
  after-image delta process may, can keep the older one. It is wrong for
1635
- sources that send differences. `key` has to equal the dataset's
1636
- `merge_keys`.
1676
+ sources that send differences. `key` has to equal the `merge_keys` of the
1677
+ parse step reading the extract.
1637
1678
 
1638
1679
  `deletes` is the rule for SAP's delete records. `ignore` is the only rule
1639
1680
  for now: they are dropped and counted, so an archived document stays in
@@ -1645,8 +1686,9 @@ or forgotten setting stops acting. `reset_subscription_until` ends this
1645
1686
  user's subscription on the service before the initial load of a dataset
1646
1687
  with no committed position; without it such a run refuses, since the
1647
1688
  subscription may be another dataset's. `release_until` ends the
1648
- subscription of a dataset that holds a committed position and publishes
1649
- a released position, which every later run reads as nothing to do;
1689
+ subscription of a dataset that holds a committed position, and the parse
1690
+ step reading the extract publishes a released position, which every later
1691
+ run reads as nothing to do;
1650
1692
  nothing else ends it, because the backend holds no SAP credentials.
1651
1693
 
1652
1694
  Unknown fields are rejected.
@@ -1669,6 +1711,15 @@ SharePoint extractor already ships with — same `tenant_id` /
1669
1711
  `client_id` / `client_secret` triple, same `{{ pipeline_args.* }}`
1670
1712
  templating, same `library_name` conventions.
1671
1713
 
1714
+ Write options live in the block named for `format` -- `csv:` or `xlsx:` --
1715
+ by the rule a parse step's read options follow: the block for `format` is
1716
+ filled with defaults when omitted, a block for another format is refused
1717
+ rather than ignored, and `parquet` has none.
1718
+
1719
+ format: xlsx
1720
+ xlsx:
1721
+ sheet_name: Monthly
1722
+
1672
1723
  Required Azure AD application permissions: either `Sites.ReadWrite.All`
1673
1724
  (tenant-wide) or `Sites.Selected` + per-site `write` grant.
1674
1725
 
@@ -1692,8 +1743,8 @@ Unknown fields are rejected.
1692
1743
  | `client_secret` | string or null | no | `null` | |
1693
1744
  | `format` | [ExportFormat](#exportformat) | no | `"csv"` | |
1694
1745
  | `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `"replace"` | |
1695
- | `csv_options` | [CSVWriteOptions](#csvwriteoptions) | no | none | |
1696
- | `xlsx_options` | [XLSXWriteOptions](#xlsxwriteoptions) | no | none | |
1746
+ | `csv` | [CsvWriteOptions](#csvwriteoptions) or null | no | `null` | |
1747
+ | `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |
1697
1748
 
1698
1749
  ## SharePointExtractConfig
1699
1750
 
@@ -1737,9 +1788,12 @@ remembers that position across runs. The window is fixed before it is
1737
1788
  read: the run first asks the source for the column's current maximum, then
1738
1789
  reads `(committed, maximum]`. Each retry measures a new maximum; the bound
1739
1790
  is fixed within one attempt and does not provide a shared database snapshot.
1740
- The tenant chooses `write_mode` independently: append and upsert accumulate
1741
- rows, while overwrite retains only the latest published window. The store
1742
- must support the requested mode and the extraction lifecycle (see `WriteMode`).
1791
+ Exactly one parse step reads it, and that step chooses `write_mode`
1792
+ independently: append and upsert accumulate rows, while overwrite retains
1793
+ only the latest published window. The window is published as part of the
1794
+ parse step's dataset, which is why the position is tracked on that dataset
1795
+ rather than on this one. The store must support the requested mode and the
1796
+ extraction lifecycle (see `WriteMode`).
1743
1797
 
1744
1798
  What the cursor cannot see: a row whose cursor value does not change when
1745
1799
  the row changes, and a row deleted at the source. Both stay as they were
@@ -1758,7 +1812,8 @@ a `query`, the relation is a hash of its exact text), plus a hash of any
1758
1812
  driver options left in the URL. Changing any of them in this YAML makes
1759
1813
  every later run refuse:
1760
1814
  a position measured against one stream never applied to another. Answering
1761
- that refusal is `PUT /labs/datasets/{id}/watermark`, which states the new
1815
+ that refusal is `PUT /labs/datasets/{id}/watermark` -- the id of the parse
1816
+ step's dataset, where the position is kept -- which states the new
1762
1817
  key and the position to carry over. Nothing about the data already stored
1763
1818
  changes. The position carried over names the column it was measured on, and
1764
1819
  a run whose cursor is a different column refuses it rather than bounding on
@@ -1776,7 +1831,7 @@ Unknown fields are rejected.
1776
1831
 
1777
1832
  ## StepType
1778
1833
 
1779
- Values: `"extract"`, `"transform"`, `"load"`, `"export"`
1834
+ Values: `"extract"`, `"parse"`, `"transform"`, `"load"`, `"export"`
1780
1835
 
1781
1836
  ## TenantCredentialsConfig
1782
1837
 
@@ -1857,7 +1912,7 @@ extractor logs and skips per meeting rather than failing the run.
1857
1912
  `meetings` is one row per meeting; `transcripts` one row per spoken
1858
1913
  segment; `notes` one row per meeting with tl;dv's generated notes as
1859
1914
  Markdown. The filter block is the same on all three. Every source
1860
- lands parquet; a `parse:` block is never consulted.
1915
+ stores a parquet payload, which a parse step reads with `format: parquet`.
1861
1916
 
1862
1917
  Unknown fields are rejected.
1863
1918
 
@@ -1942,11 +1997,9 @@ back many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,
1942
1997
  keyword-only `args` parameter, if it declares one. The script lives under
1943
1998
  `Code/`, mirroring the dataset's folder under `Models/`.
1944
1999
 
1945
- `format` must be parquet, which is also its default, so there is normally
1946
- no reason to set it. A transform's output is typed and read back by
1947
- scanning it, and neither survives csv or json; the rule is enforced at
1948
- discovery by `validate_transform_declarations`, not here, so that a bad
1949
- value fails the run rather than skipping the dataset.
2000
+ Whatever the engine, the output is parquet, so there is no format to set:
2001
+ a transform's output is typed and read back by scanning it, and neither
2002
+ survives csv or json.
1950
2003
 
1951
2004
  Unknown fields are rejected.
1952
2005
 
@@ -1957,7 +2010,6 @@ Unknown fields are rejected.
1957
2010
  | `function` | string or null | no | `null` | |
1958
2011
  | `query` | string or null | no | `null` | |
1959
2012
  | `sql_file` | string or null | no | `null` | |
1960
- | `format` | [DataFormat](#dataformat) | no | `"parquet"` | |
1961
2013
  | `args` | object | no | none | |
1962
2014
  | `max_file_size` | string or integer or null | no | `null` | |
1963
2015
 
@@ -1969,7 +2021,7 @@ Unknown fields are rejected.
1969
2021
  # its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.
1970
2022
  name: sales_monthly
1971
2023
  type: transform
1972
- deps: [sales_raw]
2024
+ deps: [sales]
1973
2025
  transform:
1974
2026
  engine: duckdb
1975
2027
  query: |
@@ -1978,7 +2030,7 @@ transform:
1978
2030
  region,
1979
2031
  strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,
1980
2032
  CAST(SUM(amount) AS DOUBLE) AS amount
1981
- FROM sales_raw
2033
+ FROM sales
1982
2034
  GROUP BY ALL
1983
2035
  ```
1984
2036
 
@@ -2006,14 +2058,18 @@ Values: `"python"`, `"duckdb"`, `"ibis"`
2006
2058
 
2007
2059
  ## WriteMode
2008
2060
 
2009
- Choose how an extract or transform writes its output to a dataset.
2061
+ Choose how a parse step or transform writes its output to a dataset.
2010
2062
 
2011
2063
  `overwrite` replaces the rows, `append` adds rows, and `upsert` replaces
2012
2064
  matching keys while retaining the others. The tenant chooses the mode on
2013
- each run, independently of whether the source uses a cursor. Overwriting
2014
- an incremental window and appending a complete result are both intentional
2015
- choices we support. The store must implement the requested mode; currently
2016
- only the Iceberg store supports append and upsert.
2065
+ each run, independently of whether the source uses a SQL cursor.
2066
+ Overwriting an incremental window and appending a complete result are both
2067
+ intentional choices we support. A SAP OData window (`cursor` or `odp`) is
2068
+ the exception: a changed row arrives again, so the parse step reading it
2069
+ must upsert on the entity's key, or the run fails before any step runs. The
2070
+ store must implement the requested mode; currently only the Iceberg store
2071
+ supports append and upsert. An extract declares no mode: it stores a
2072
+ payload, and the dataset is the parse step reading it.
2017
2073
 
2018
2074
  Quality rules and `schema:` see the accumulated dataset rather than this
2019
2075
  run's rows, because validation loads back what was persisted. A rule has to
@@ -2028,10 +2084,11 @@ serves an older delta token only as a recovery of what it already
2028
2084
  delivered): that window is published, empty, to carry it. Declared validation
2029
2085
  still checks the published dataset: rules may have changed since the last
2030
2086
  publication. A first run over an empty source does publish, so a consumer
2031
- finds an empty dataset rather than none, provided the step declares its
2032
- column types under `schema:`. Without them the Iceberg store refuses that
2033
- run: every column of an empty result arrives untyped, and a new table needs
2034
- types.
2087
+ finds an empty dataset rather than none, provided its columns are typed:
2088
+ declared under `schema:`, or already typed in the payload, as a SAP OData
2089
+ read's are from the service's `$metadata`. Without types the Iceberg store
2090
+ refuses that run: every column of an empty result arrives untyped, and a
2091
+ new table needs types.
2035
2092
 
2036
2093
  The candidate that a quiet run opened is cancelled and its logical version
2037
2094
  number stays consumed. Physical cleanup and metadata retention are deferred;
@@ -2039,26 +2096,26 @@ the abandonment sweep only marks eligible active attempts cancelled.
2039
2096
 
2040
2097
  Values: `"overwrite"`, `"append"`, `"upsert"`
2041
2098
 
2042
- ## XLSXWriteOptions
2099
+ ## XlsxParseOptions
2043
2100
 
2044
- Options for DataFrame → XLSX serialization on export.
2101
+ How to read an xlsx payload.
2045
2102
 
2046
2103
  Unknown fields are rejected.
2047
2104
 
2048
2105
  | YAML field | Type | Required | Default | Constraints / description |
2049
2106
  | --- | --- | --- | --- | --- |
2050
- | `sheet_name` | string | no | `"Sheet1"` | |
2051
- | `include_header` | boolean | no | `true` | |
2107
+ | `sheet_name` | string or integer | no | `0` | |
2108
+ | `columns` | string or null | no | `null` | |
2109
+ | `has_header` | boolean | no | `true` | |
2110
+ | `start_row` | integer or null | no | `null` | |
2052
2111
 
2053
- ## XlsxParseOptions
2112
+ ## XlsxWriteOptions
2054
2113
 
2055
- xlsx-specific parse options (passed to `pd.read_excel`).
2114
+ Options for DataFrame → XLSX serialization on export.
2056
2115
 
2057
2116
  Unknown fields are rejected.
2058
2117
 
2059
2118
  | YAML field | Type | Required | Default | Constraints / description |
2060
2119
  | --- | --- | --- | --- | --- |
2061
- | `sheet_name` | string or integer | no | `0` | |
2062
- | `columns` | string or null | no | `null` | |
2063
- | `has_header` | boolean | no | `true` | |
2064
- | `start_row` | integer or null | no | `null` | |
2120
+ | `sheet_name` | string | no | `"Sheet1"` | |
2121
+ | `include_header` | boolean | no | `true` | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "farseer-cli",
3
- "version": "1.14.2",
3
+ "version": "1.16.0",
4
4
  "description": "CLI tool for syncing Farseer App scripts between local folder and Farseer instances",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -54,7 +54,7 @@
54
54
  "chalk": "^4.1.2",
55
55
  "commander": "^11.1.0",
56
56
  "diff": "^5.1.0",
57
- "farseer-client": "https://storage.googleapis.com/farseer-remote-jobs-results/farseer-client/release-1.8.12.tar",
57
+ "farseer-client": "npm:@farseerdev/farseer-client@1.18.1",
58
58
  "inquirer": "^8.2.6",
59
59
  "js-yaml": "4.1.1",
60
60
  "zod": "^3.25.0"