@ai-ecoverse/slicc-serve 1.1.0 → 1.1.1

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/README.md CHANGED
@@ -122,7 +122,7 @@ The hub sends `preview.request {reqId, servedRoot, vfsPath, asText, range?}`; th
122
122
 
123
123
  ### Snapshots (`--ttl`)
124
124
 
125
- `scserve --ttl 7d DIR` collects the visible files (hidden ones, symlinks out of the directory and symlinks to hidden files excluded, each directory walked once so links between directories can't loop, sorted), refuses more than 1,000 files, a file over 25 MiB or more than 50 MiB in total before anything is sent, and needs its entry file (`index.html` by default; `scserve: DIR has no index.html; a --ttl snapshot needs its entry file (give one with --entry)`). It mints with `ttlMs`, uploads the files four at a time (`PUT …/preview/<token>/file?path=<path>` with the upload token and each file's type), finalizes, and prints the URL. If an upload or the finalize fails, it stops the snapshot on the hub before it exits. A snapshot counts toward the tray's 10-snapshot quota (`429 PREVIEW_LIMIT`, exit 4), lasts until its TTL, and is served by the hub without this machine. Subdirectory index pages aren't reachable by their directory URL in a snapshot (the hub serves stored paths only); link to `sub/index.html`.
125
+ `scserve --ttl 7d DIR` collects the visible files (hidden ones, symlinks out of the directory and symlinks to hidden files excluded, sorted). A directory reachable by several paths, its own and a symlink's (`latest -> v2`), is collected under each of them, as the live preview serves it; only a symlink back to a directory the walk is inside (`v2/up -> ..`) is skipped, so links can't loop, and the limits below, plus 10,000 directories walked, bound what repeats. It refuses more than 1,000 files, a file over 25 MiB or more than 50 MiB in total before anything is sent, and needs its entry file (`index.html` by default; `scserve: DIR has no index.html; a --ttl snapshot needs its entry file (give one with --entry)`). It mints with `ttlMs`, uploads the files four at a time (`PUT …/preview/<token>/file?path=<path>` with the upload token and each file's type), finalizes, and prints the URL. If an upload or the finalize fails, it stops the snapshot on the hub before it exits. A snapshot counts toward the tray's 10-snapshot quota (`429 PREVIEW_LIMIT`, exit 4), lasts until its TTL, and is served by the hub without this machine. Subdirectory index pages aren't reachable by their directory URL in a snapshot (the hub serves stored paths only); link to `sub/index.html`.
126
126
 
127
127
  ### `--list` and `--stop`
128
128
 
package/bin/serve.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-serve",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "serve and scserve: publish a directory or a local server at a public capability URL through the SLICC tray hub, on any host and inside SLICC",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -31,11 +31,11 @@
31
31
  }
32
32
  },
33
33
  "optionalDependencies": {
34
- "@ai-ecoverse/slicc-serve-darwin-arm64": "1.1.0",
35
- "@ai-ecoverse/slicc-serve-darwin-x64": "1.1.0",
36
- "@ai-ecoverse/slicc-serve-linux-arm64": "1.1.0",
37
- "@ai-ecoverse/slicc-serve-linux-x64": "1.1.0",
38
- "@ai-ecoverse/slicc-serve-win32-arm64": "1.1.0",
39
- "@ai-ecoverse/slicc-serve-win32-x64": "1.1.0"
34
+ "@ai-ecoverse/slicc-serve-darwin-arm64": "1.1.1",
35
+ "@ai-ecoverse/slicc-serve-darwin-x64": "1.1.1",
36
+ "@ai-ecoverse/slicc-serve-linux-arm64": "1.1.1",
37
+ "@ai-ecoverse/slicc-serve-linux-x64": "1.1.1",
38
+ "@ai-ecoverse/slicc-serve-win32-arm64": "1.1.1",
39
+ "@ai-ecoverse/slicc-serve-win32-x64": "1.1.1"
40
40
  }
41
41
  }