@jseeio/jsee 0.8.2 → 0.8.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.8 - 2026-05-25
4
+
5
+ - Applied app package `browser` field aliases during CLI dependency bundling so installed JSEE app packages can bundle legacy browser dependencies reliably.
6
+
7
+ ## 0.8.7
8
+ ### Features:
9
+ - Add `jsee --run` for one-shot CLI execution of local JavaScript JSEE apps. Default output is pipeable stdout; `--outputs <dir>` writes all outputs into a directory; named output flags such as `--file out.csv` write individual outputs.
10
+ - Allow raw camelCase schema input names on the CLI, so inputs such as `nSamples` work with both `--nSamples` and sanitized `--nsamples`.
11
+
12
+ ### Fixes:
13
+ - Keep `runPackage(..., ['--run', ...])` output paths relative to the caller working directory instead of the package root.
14
+
3
15
  ## 0.8.1
4
16
  ### Fixes:
5
17
  - Fix `jsee init` JavaScript templates so generated minimal and chat apps accept the default object payload in both browser and server-side execution modes.
package/README.md CHANGED
@@ -34,7 +34,7 @@ Smallest browser example:
34
34
  <script src="https://cdn.jsdelivr.net/npm/@jseeio/jsee@latest/dist/jsee.core.js"></script>
35
35
  ```
36
36
 
37
- Pin a version for production, for example `@jseeio/jsee@0.8.1`.
37
+ Pin a version for production, for example `@jseeio/jsee@0.8.8`.
38
38
 
39
39
  **npm CLI/dev server:**
40
40
 
@@ -509,7 +509,7 @@ JSEE is part of the [StatSim](https://statsim.com) ecosystem. The schema/runtime
509
509
  ## CLI — Node.js
510
510
 
511
511
  ```
512
- jsee [schema.json] [data...] [options]
512
+ jsee [schema.json|package] [data...] [options]
513
513
  jsee init [template] [--html]
514
514
  ```
515
515
 
@@ -525,16 +525,24 @@ jsee init chat # chat template
525
525
  jsee init --html # single index.html with CDN script
526
526
  ```
527
527
 
528
- #### `jsee <schema> [data...]`
528
+ #### `jsee <schema|package> [data...]`
529
529
 
530
- Start a dev server or generate a static HTML file from a schema.
530
+ Start a dev server or generate a static HTML file from a local schema or a JSEE app package. Package inputs resolve the package `jsee` field, for example `{ "jsee": "schema.json" }`, and use the package directory as the app root. If the app package is not installed locally, let npm provide both packages with `npx -p @jseeio/jsee -p <package> jsee <package> --serve`.
531
531
 
532
532
  ```bash
533
- jsee schema.json # dev server on port 3000
534
- jsee schema.json -o app.html # generate static HTML
535
- jsee schema.json -o app.html --bundle # self-contained HTML with bundled runtime
533
+ jsee schema.json # dev server on port 3000
534
+ jsee @statsim/gen --serve # serve a resolvable JSEE app package
535
+ jsee schema.json -o app.html # generate static HTML
536
+ jsee @statsim/gen -o app.html --bundle # bundled HTML from package app
537
+ jsee @statsim/gen --run --dataset Moons --nSamples 500
538
+ jsee @statsim/gen --run --dataset Moons --file moons.csv
539
+ npx -p @jseeio/jsee -p @statsim/gen jsee @statsim/gen --serve
536
540
  ```
537
541
 
542
+ JSEE app packages can also expose their own bin with `require('@jseeio/jsee').runPackage(__dirname, process.argv.slice(2))`. The helper reads the package `jsee` field, uses the package root as the app root, and forwards ordinary JSEE CLI options.
543
+
544
+ Use `--run` for one-shot CLI execution. With no output target, JSEE writes a pipeable stdout stream: a single `file` output writes its file content, a single text/table/object output writes that value, and multiple outputs write a JSON object. In `--run` mode, `--outputs <dir>` writes all outputs into a directory, while an output-name flag such as `--file moons.csv` or `--output-file moons.csv` writes one named output to a specific path.
545
+
538
546
  ### Options
539
547
 
540
548
  | Flag | Description |
@@ -546,6 +554,8 @@ jsee schema.json -o app.html --bundle # self-contained HTML with bundled runtim
546
554
  | `-v, --version <version>` | JSEE runtime version (`latest`, `dev`, or semver) |
547
555
  | `-b, --bundle` | Bundle runtime + all deps into a single offline HTML |
548
556
  | `-f, --fetch` | Backward-compatible alias for `--bundle` |
557
+ | `-s, --serve` | Serve explicitly (default when no output is provided) |
558
+ | `--run` | Execute the model once from the CLI and write pipeable outputs |
549
559
  | `-e, --execute` | Run models server-side (auto-enabled when serving local .js models) |
550
560
  | `--client` | Force client-side execution (disable auto server-side) |
551
561
  | `-c, --cdn <url\|bool>` | Rewrite model URLs for CDN deployment |