@datarails-ai/dr-appspace-cli 0.10.8 → 0.10.9

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 (3) hide show
  1. package/README.md +21 -0
  2. package/dist/cli.js +9601 -8107
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -100,6 +100,27 @@ place is `assemble-*`, exit 1. `--app-id <id>` names the app a first pass is
100
100
  for, and `--expect <card>=<figure>` holds a card to the figure the user
101
101
  confirmed once the package runs (exit 6 when it does not).
102
102
 
103
+ A dataset `series` row may be drawn through its own transform — `"transform":
104
+ "transforms/<name>.py"`, the App Builder's `transform(rows, ctx, params)`,
105
+ handed the dataset's whole monthly history. A draft carries the file as
106
+ `"transforms": {"transforms/<name>.py": "<text>"}`; it is written beside
107
+ `contract.json` (not under `--check`) and compiled into the handler, and a
108
+ later draft's text replaces it and says so — unless a card that is not the
109
+ draft's is drawn through that file, which is refused. A skeleton page may
110
+ carry `controls` (`{id, label, param, kind: "slider"|"number", min, max, step,
111
+ default}`) and a card `params`: the control is written once a row on the page
112
+ declares its param, the card redraws with it, and a row whose own rule is not
113
+ the control's is refused. `preview` draws such a card in two round trips: the
114
+ server hands over the rows the transform would get, the transform runs here
115
+ with `python3 -I` — 20 s at most, what it prints shown under the card rather
116
+ than read as its answer — and the server draws what it returned, so the
117
+ figure printed is the card's. Only a transform the previewed file's drafts
118
+ carry runs here, never a file in the folder: `get` restores there what the
119
+ live app carries, whoever pushed it. `compile`'s lint and the server's own
120
+ `ast` check run first, so preview refuses what the page would; neither is a
121
+ sandbox, and the run starts with no environment beyond PATH, HOME, the locale
122
+ and a Python version manager's own variables.
123
+
103
124
  ```
104
125
  app-space ship [dir] --draft spec-draft-cfo.json --app-id app-7k2m3f --expect revenue=870,000
105
126
  ```