farseer-cli 1.25.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/dashboards.js +2 -0
  3. package/dist/commands/dashboards.js.map +1 -1
  4. package/dist/commands/login.js +18 -7
  5. package/dist/commands/login.js.map +1 -1
  6. package/dist/commands/logout.js +28 -12
  7. package/dist/commands/logout.js.map +1 -1
  8. package/dist/commands/run.js +2 -3
  9. package/dist/commands/run.js.map +1 -1
  10. package/dist/commands/whoami.js +12 -5
  11. package/dist/commands/whoami.js.map +1 -1
  12. package/dist/mcp/tools/authTools.js +2 -1
  13. package/dist/mcp/tools/authTools.js.map +1 -1
  14. package/dist/mcp/tools/dashboardTools.js +3 -1
  15. package/dist/mcp/tools/dashboardTools.js.map +1 -1
  16. package/dist/mcp/tools/runTools.js +2 -3
  17. package/dist/mcp/tools/runTools.js.map +1 -1
  18. package/dist/mcp/utils/helpers.js +8 -6
  19. package/dist/mcp/utils/helpers.js.map +2 -2
  20. package/dist/mcp/utils/session.js +6 -2
  21. package/dist/mcp/utils/session.js.map +1 -1
  22. package/dist/operations/dashboards.js +1 -1
  23. package/dist/operations/dashboards.js.map +1 -1
  24. package/dist/pipeline/generated-reference.json +8 -8
  25. package/dist/services/codefirst/layoutReadback.js +95 -0
  26. package/dist/services/codefirst/layoutReadback.js.map +2 -2
  27. package/dist/services/configService.js +33 -18
  28. package/dist/services/configService.js.map +1 -1
  29. package/dist/services/credentials.js +26 -11
  30. package/dist/services/credentials.js.map +1 -1
  31. package/dist/services/farseerService.js +34 -32
  32. package/dist/services/farseerService.js.map +1 -1
  33. package/dist/services/keycloak.js +44 -0
  34. package/dist/services/keycloak.js.map +6 -0
  35. package/dist/services/preflight.js +1 -2
  36. package/dist/services/preflight.js.map +1 -1
  37. package/dist/services/realms.js +67 -15
  38. package/dist/services/realms.js.map +1 -1
  39. package/dist/utils/serverUrl.js +42 -0
  40. package/dist/utils/serverUrl.js.map +6 -0
  41. package/docs/pipeline-reference.md +13 -3
  42. package/package.json +1 -1
  43. package/skills/farseer-code-tiles/SKILL.md +153 -0
  44. package/skills/farseer-code-tiles/anti-patterns.md +183 -0
  45. package/skills/farseer-code-tiles/api.md +237 -0
  46. package/skills/farseer-code-tiles/check-tile.mjs +521 -0
  47. package/skills/farseer-code-tiles/design.md +159 -0
  48. package/skills/farseer-code-tiles/echarts-look.md +110 -0
  49. package/skills/farseer-code-tiles/examples/board-deck.js +695 -0
  50. package/skills/farseer-code-tiles/examples/data-checks.js +475 -0
  51. package/skills/farseer-code-tiles/examples/kpi-cards.js +374 -0
  52. package/skills/farseer-code-tiles/examples/map-countries.js +377 -0
  53. package/skills/farseer-code-tiles/examples/month-plan.js +443 -0
  54. package/skills/farseer-code-tiles/examples/new-location.js +581 -0
  55. package/skills/farseer-code-tiles/examples/open-forecast.js +598 -0
  56. package/skills/farseer-code-tiles/examples/pl-sankey.js +402 -0
  57. package/skills/farseer-code-tiles/examples/ranked-bars.js +337 -0
  58. package/skills/farseer-code-tiles/examples/request-form.js +464 -0
  59. package/skills/farseer-code-tiles/farseer-table.md +98 -0
  60. package/skills/farseer-code-tiles/known-mistakes.md +178 -0
  61. package/skills/farseer-code-tiles/maps/europe.geo.json +1 -0
  62. package/skills/farseer-code-tiles/maps/pick-map.mjs +59 -0
  63. package/skills/farseer-code-tiles/maps/world.geo.json +1 -0
  64. package/skills/farseer-dashboards/SKILL.md +3 -2
  65. package/skills/farseer-dashboards/check.md +3 -2
  66. package/skills/farseer-dashboards/measures.md +3 -1
  67. package/skills/farseer-optimize-model/SKILL.md +9 -1
  68. package/skills/farseer-pnl/SKILL.md +3 -3
  69. package/skills/pipeline-authoring/SKILL.md +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/operations/dashboards.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;A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AAiB;AAC1E,QAAM,WAAW,QAAQ,UAAU,eAAe,QAAQ,EAAE,UAAU,OAAO,MAAM,EAAE;AACrF,SAAO;AAAA,IACH,WAAW,EAAE,IAAI,QAAQ,IAAI,MAAM,QAAQ,KAAK;AAAA,IAChD,QAAQ;AAAA,IACR,QAAQ,OAAO;AAAA,IACf,SAAS,QAAQ,OAAO,MAAM,4BAA4B,QAAQ,IAAI;AAAA,EAC1E;AACJ;",
5
5
  "names": ["dashboards"]
6
6
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "formatVersion": 1,
3
- "engineVersion": "3.6.0",
4
- "engineProfile": "3.6",
5
- "runnerImage": "runner-python-simple-pipelines:1.21.0",
3
+ "engineVersion": "3.7.0",
4
+ "engineProfile": "3.7",
5
+ "runnerImage": "runner-python-simple-pipelines:1.22.0",
6
6
  "sourceHashes": {
7
- "data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "581d604b005e7d0c6a86411035af873c6c3b82ff0c27507756f578cd05dd6448",
8
- "data-platform/packages/simple-pipelines/pyproject.toml": "08f85fa2cd7df9f982cf38c7c673fdea510c288bb7308cec6466aa64dd594070",
7
+ "data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "8982fb79b0d9158124cec9458b236cff8684b6da1021b3d9f6462a91b155cbd9",
8
+ "data-platform/packages/simple-pipelines/pyproject.toml": "dd75481ff81035e591d2431f2fccece2ffe8cb42f22ccd8e1d79da3f3af5b3db",
9
9
  "tools/pipeline/generate_docs.py": "3a3639b1421f06ed816a35def8861fc42104324eff3c38892ae8367bf877e4cc",
10
- "runner-images/VERSION": "65a6bd97a4a6b72911ae6c3d45991f4326c95f792e196f8bf74857a557b27585",
11
- "runner-images/python-simple-pipelines/pyproject.toml": "56841db31c8b3da01ce7b628cae987b0c6ef686cc0ad99fa0596a171007c2f49",
10
+ "runner-images/VERSION": "a482aec6f30758f5ba391b686d1f33d8ef1ab78ac649da44307ae41eb5ecad43",
11
+ "runner-images/python-simple-pipelines/pyproject.toml": "c4fb6fb43ffb8d6db28b1039100e1ab0a220257c5b4b507c391f918c597b6d41",
12
12
  "tools/pipeline/examples/FarseerFilesExtractConfig.yaml": "20950da2f5413833dcaa1e700f13dd0597530c5a17d75ed96e35d6e3ca87eaa4",
13
13
  "tools/pipeline/examples/LoadCellsConfig.yaml": "2b56bd84e35765b616916c21c98fd306e2b93127358979777a77083991ac8bf1",
14
14
  "tools/pipeline/examples/ParseConfig.yaml": "c5b2deada46ba2edbe29410a37d4b3fd53ffd231d506417a5990cdd3c2d7f8ac",
@@ -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`. 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",
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\n`<name>@published`. With the default `write_mode: overwrite` it writes the\nwhole history on every run. On the Iceberg store, `write_mode: upsert` with\n`merge_keys` set to the key plus `__valid_from` writes only the rows that\nchange, and the store keeps the rest; start such a history as a new dataset.\nA delta also fails a run that starts at a time the history already holds,\nand a run whose snapshot adds a column but that writes no row, because the\nstore shows a column only from a file that holds a row.\nThe store rewrites every file that holds a changed row, so the delta saves\nstorage only when the changes fall into few files, such as a large history\nof mostly closed rows or changes grouped by key. Each run also adds a file\nand Iceberg metadata, so run a delta history daily or less often.\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",
@@ -2114,6 +2114,99 @@ function removeAssignedLocalKeys(patches) {
2114
2114
  }
2115
2115
  }
2116
2116
  }
2117
+ const LINE_KEY_POSITIONS = {
2118
+ sheet: [
2119
+ { path: ["display", "rowConfig"] },
2120
+ { path: ["display", "keyedColumnConfig"] },
2121
+ { path: ["rows", "sort", "rules"], field: "columnKey" }
2122
+ ],
2123
+ tile: [
2124
+ { path: ["visualization", "chart", "rowVisualizationByPath"] },
2125
+ { path: ["visualization", "chart", "columnVisualizationByPath"] },
2126
+ { path: ["visualization", "table", "rowStyles"] },
2127
+ { path: ["visualization", "table", "columnVisualizationByKey"] }
2128
+ ],
2129
+ dashboard: [{ path: ["rows", "sort", "rules"], field: "columnKey" }]
2130
+ };
2131
+ function rewriteLineKeys(holder, scope, rewrite) {
2132
+ for (const { path, field } of LINE_KEY_POSITIONS[scope]) {
2133
+ let owner = holder;
2134
+ for (const part of path.slice(0, -1)) owner = (0, import_layoutCore.object)(owner?.[part]);
2135
+ const name = path[path.length - 1];
2136
+ const value = owner?.[name];
2137
+ if (!owner || value === void 0 || value === null) continue;
2138
+ if (field !== void 0) {
2139
+ if (Array.isArray(value))
2140
+ for (const item of value) {
2141
+ const entry = (0, import_layoutCore.object)(item);
2142
+ if (entry && typeof entry[field] === "string") entry[field] = rewrite(entry[field]);
2143
+ }
2144
+ continue;
2145
+ }
2146
+ const map = (0, import_layoutCore.object)(value);
2147
+ if (!map) continue;
2148
+ const renamed = {};
2149
+ for (const [key, entry] of Object.entries(map)) {
2150
+ const next = rewrite(key);
2151
+ const target = next !== key && (Object.hasOwn(map, next) || Object.hasOwn(renamed, next)) ? key : next;
2152
+ Object.defineProperty(renamed, target, {
2153
+ value: entry,
2154
+ enumerable: true,
2155
+ configurable: true,
2156
+ writable: true
2157
+ });
2158
+ }
2159
+ owner[name] = renamed;
2160
+ }
2161
+ }
2162
+ function substituteLineKeyPlaceholders(document) {
2163
+ const unique = (entries) => {
2164
+ const result = /* @__PURE__ */ new Map(), repeated = /* @__PURE__ */ new Set();
2165
+ for (const [key, value] of entries) {
2166
+ if (result.has(key)) repeated.add(key);
2167
+ result.set(key, value);
2168
+ }
2169
+ for (const key of repeated) result.delete(key);
2170
+ return result;
2171
+ };
2172
+ const lineIds = (sheet) => unique(
2173
+ (Array.isArray(sheet.lines) ? sheet.lines : []).flatMap((entry) => {
2174
+ const line = (0, import_layoutCore.object)(entry);
2175
+ return line && typeof line.key === "string" && typeof line.id === "string" ? [[line.key, line.id]] : [];
2176
+ })
2177
+ );
2178
+ const substitute = (key, sheet, lines) => key.replace(
2179
+ /<([^<>]*)>/g,
2180
+ (token, name, offset) => (offset === 0 ? sheet(name) : lines.get(name)) ?? token
2181
+ );
2182
+ const sheetId = (sheet) => typeof sheet.id === "string" ? sheet.id : void 0;
2183
+ const own2 = (sheet) => (name) => name === "sheet" ? sheetId(sheet) : void 0;
2184
+ if (Array.isArray(document.lines)) {
2185
+ const lines = lineIds(document);
2186
+ rewriteLineKeys(document, "sheet", (key) => substitute(key, own2(document), lines));
2187
+ return;
2188
+ }
2189
+ if (!Array.isArray(document.tiles)) return;
2190
+ const tileSheets = [];
2191
+ const sheetsById = /* @__PURE__ */ new Map();
2192
+ for (const entry of document.tiles) {
2193
+ const tile = (0, import_layoutCore.object)(entry), data = (0, import_layoutCore.object)(tile?.data), sheet = (0, import_layoutCore.object)(data?.sheet);
2194
+ if (!tile || !data || !sheet) continue;
2195
+ const lines = lineIds(sheet);
2196
+ rewriteLineKeys(sheet, "sheet", (key) => substitute(key, own2(sheet), lines));
2197
+ rewriteLineKeys(data, "tile", (key) => substitute(key, own2(sheet), lines));
2198
+ const tileSheet = { id: sheetId(sheet), lines };
2199
+ if (typeof tile.key === "string" && typeof tile.id === "string") tileSheets.push([tile.key, tileSheet]);
2200
+ if (tileSheet.id !== void 0) sheetsById.set(tileSheet.id, tileSheet);
2201
+ }
2202
+ const byTileKey = unique(tileSheets);
2203
+ rewriteLineKeys(document, "dashboard", (key) => {
2204
+ const tileKey = /^<([^<>]*)>/.exec(key)?.[1];
2205
+ const sheet = tileKey !== void 0 ? byTileKey.get(tileKey) : sheetsById.get(/^[0-9]+/.exec(key)?.[0] ?? "");
2206
+ if (!sheet) return key;
2207
+ return substitute(key, () => sheet.id, sheet.lines);
2208
+ });
2209
+ }
2117
2210
  function locatePatchTarget(current, original, expected, location, assignedId) {
2118
2211
  let actual = current;
2119
2212
  let submitted = original;
@@ -2180,6 +2273,8 @@ function applyIdentityPatch(host, patch) {
2180
2273
  keys: ambiguous.map((entry) => `${entry.item.assignment.kind}/${entry.item.assignment.id}`)
2181
2274
  };
2182
2275
  for (const entry of located) entry.target.actual.id = entry.item.assignment.id;
2276
+ if (patch.submittedDocument.kind === "sheet" || patch.submittedDocument.kind === "dashboard")
2277
+ substituteLineKeyPlaceholders(host);
2183
2278
  removeAssignedLocalKeys(
2184
2279
  located.map((entry) => ({
2185
2280
  target: entry.target,