@atolljs/cli 0.0.0-stage → 0.1.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Justin Henry
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,43 @@
1
- # Temporary Holding Version
1
+ # @atolljs/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `atoll` — scaffold worker pools, shared-memory contracts, and framework
4
+ islands into a new or existing app.
5
+
6
+ > **Experimental.** The command grammar and generated code are still
7
+ > evolving — expect breaking changes between minor releases.
8
+
9
+ ```
10
+ npx @atolljs/cli <command>
11
+ # or, once installed: atoll <command>
12
+ ```
13
+
14
+ Requires Node ≥ 20.12. The published bin is a bundled `dist/cli.js` —
15
+ Node refuses type stripping for `.ts` under `node_modules`, which is
16
+ where `npx` installs packages. The TypeScript sources ship alongside it;
17
+ `npm run build` (esbuild) regenerates the bundle, and `scripts/publish.mjs`
18
+ builds it automatically before staging.
19
+
20
+ ## Commands
21
+
22
+ ```bash
23
+ atoll new <dir> [--framework react|vue|solid|svelte|node] [--pm npm]
24
+ Scaffold a fresh app: vite shell with COOP/COEP headers, the
25
+ @atolljs/vite plugin (worker entries are dev-bundled — no
26
+ fast-refresh in workers), a worker-rendered counter island,
27
+ hardened .npmrc — or a tsx Node service with a pooled worker.
28
+
29
+ atoll init
30
+ Wire Atoll into the current project: .npmrc, installs the @atolljs/*
31
+ packages your framework needs, and generates a working spine —
32
+ app.memory.ts + app.worker.ts + app.ts under src/atoll/.
33
+
34
+ atoll add worker <name> pooled worker + typed client (browser or node)
35
+ atoll add memory <name> shared-memory contract module
36
+ atoll add island <name> worker-rendered component for your framework
37
+
38
+ atoll doctor [--fix] verify deps, lockfile, .npmrc policy,
39
+ worker-entry detectability, COOP/COEP headers
40
+ ```
41
+
42
+ Existing files are never overwritten without `--force`; missing answers
43
+ prompt interactively (or take defaults under `--yes` / no TTY).