@verentis/cli 0.2.17 → 0.2.18

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 (2) hide show
  1. package/README.md +41 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -133,6 +133,47 @@ verentis validate engine.yaml # manifest checks before
133
133
 
134
134
  `dev run` writes `.verentis/context.json` (mode 600 — contains a short-lived token; git-ignore `.verentis/`).
135
135
 
136
+ There are two different ways to run a Python engine script from your machine:
137
+
138
+ | Goal | Command | `engine.files` uses |
139
+ | --- | --- | --- |
140
+ | Test against a real Verentis workspace | `verentis dev run transform.py` | Workspace VFS through the API |
141
+ | Test without Verentis | `python run-local.py` | A directory on your local filesystem |
142
+
143
+ Do **not** add `configure_local()` to the production script that you deploy to Verentis. Keep the
144
+ production logic in `transform.py`, then add a separate, local-only runner:
145
+
146
+ ```python
147
+ # run-local.py — do not package or deploy this file
148
+ from verentis import engine
149
+
150
+ engine.configure_local(
151
+ files_root="./workspace",
152
+ runtime_dir="./.verentis-runtime",
153
+ setting_aliases={"my-engine.api-key": "MY_ENGINE_API_KEY"},
154
+ )
155
+
156
+ from transform import main
157
+
158
+ main()
159
+ ```
160
+
161
+ Run the offline version with ordinary Python:
162
+
163
+ ```bash
164
+ export MY_ENGINE_API_KEY="..."
165
+ python run-local.py
166
+ ```
167
+
168
+ The local runner configures the shared `engine` singleton before importing and calling the production
169
+ entry point. The production script itself remains unchanged and continues to work when deployed,
170
+ because Verentis initializes `engine` from `/verentis/context.json`. `verentis dev run` has not been
171
+ removed; use it when you specifically want real workspace files, platform APIs, and scoped-token
172
+ behavior.
173
+
174
+ Offline local mode is a feature of the Python `verentis-engine-sdk`, not the TypeScript
175
+ `@verentis/sdk`.
176
+
136
177
  ### Standalone application launch
137
178
 
138
179
  Applications that can open without a selected file opt in through their manifest:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verentis/cli",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Verentis CLI — pack, sign and publish applications, execution engines and file bundles to the Verentis marketplace",
5
5
  "type": "module",
6
6
  "bin": {