@rindle/cli 0.7.3-rc.1 → 0.7.3
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 +8 -10
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/cli.ts +2 -2
- package/src/index.ts +5 -5
package/README.md
CHANGED
|
@@ -8,9 +8,8 @@ The Rindle CLI and local fleet components ship as prebuilt, per-platform binarie
|
|
|
8
8
|
subscription/lease plane). It tails a `rindle-replicator` write-master and has no write
|
|
9
9
|
ingress of its own.
|
|
10
10
|
- **`rindle`** — the CLI to inspect, run, and manage the data tier: `rindle status` / `migrate` /
|
|
11
|
-
`schema`, plus
|
|
12
|
-
|
|
13
|
-
migrate-restart).
|
|
11
|
+
`schema`, plus **`rindle init`** (scaffold `rindle.ncl`), **`rindle up`** (fleet-only
|
|
12
|
+
supervision), and **`rindle dev`** (the complete fleet/bootstrap/app lifecycle).
|
|
14
13
|
- **`rindle-dev-edge`** — the development-only stable HTTP/WebSocket fleet endpoint. `rindle up`
|
|
15
14
|
supervises it automatically; applications never install or launch it directly.
|
|
16
15
|
|
|
@@ -22,11 +21,9 @@ the wire. Talk to a running daemon from JS with [`@rindle/daemon-client`](../dae
|
|
|
22
21
|
```sh
|
|
23
22
|
npm i -D @rindle/cli
|
|
24
23
|
npx rindle init # scaffold rindle.ncl (the colocated pair) + migrations/
|
|
25
|
-
npx rindle
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
npx rindle exec -- vite dev
|
|
29
|
-
# launch the app with stable read/write/ws bindings derived from rindle.ncl
|
|
24
|
+
npx rindle dev --migrate --gen shared/schema.gen.ts -- vite dev
|
|
25
|
+
# evaluate rindle.ncl once; supervise + wait for the fleet; migrate + generate/watch schema;
|
|
26
|
+
# launch the app with RINDLE_URL + RINDLE_DATABASE_TOKEN; own signals and teardown
|
|
30
27
|
```
|
|
31
28
|
|
|
32
29
|
Installing pulls in exactly one prebuilt-binary package for your platform via
|
|
@@ -42,7 +39,8 @@ Full docs — the command reference, flags & env vars, the local dev loop, and r
|
|
|
42
39
|
|
|
43
40
|
## Embedding the daemon in your own supervisor
|
|
44
41
|
|
|
45
|
-
`rindled` is **not** exposed as a CLI command here — `rindle
|
|
42
|
+
`rindled` is **not** exposed as a CLI command here — `rindle dev` is the normal app-development
|
|
43
|
+
entry point, while `rindle up` runs the local fleet by itself.
|
|
46
44
|
The binary still ships (co-located with `rindle`), so for embedding a follower in your own Node
|
|
47
45
|
supervisor there are programmatic helpers:
|
|
48
46
|
|
|
@@ -86,7 +84,7 @@ the build directory — one env var lights up the whole fleet:
|
|
|
86
84
|
|
|
87
85
|
```sh
|
|
88
86
|
cargo build -p rindle-cli -p rindle-server -p rindle-replicator -p rindle-dev-edge --bins --release
|
|
89
|
-
RINDLE_BIN_DIR="$PWD/target/release" npx rindle
|
|
87
|
+
RINDLE_BIN_DIR="$PWD/target/release" npx rindle dev -- vite dev # finds every component beside it
|
|
90
88
|
RINDLE_BIN_DIR="$PWD/target/release" npx rindle status
|
|
91
89
|
```
|
|
92
90
|
|
package/dist/cli.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// The `rindle` CLI bin (package.json "bin" → dist/cli.js; tsc preserves this shebang). Resolves the
|
|
3
3
|
// prebuilt `rindle` binary for this host and execs it, forwarding argv + stdio and propagating its
|
|
4
4
|
// exit code (or re-raising its terminating signal). The daemon (`rindled`) is intentionally NOT a
|
|
5
|
-
// bin — run
|
|
6
|
-
//
|
|
5
|
+
// bin — run the normal app lifecycle via `rindle dev`, the fleet alone via `rindle up`, or embed it
|
|
6
|
+
// with `spawnRindled()`; its binary still ships co-located so both supervisors find it.
|
|
7
7
|
import { spawnSync } from "node:child_process";
|
|
8
8
|
import { binaryPath, UnsupportedPlatformError } from "./index.js";
|
|
9
9
|
let bin;
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,oGAAoG;AACpG,mGAAmG;AACnG,kGAAkG;AAClG
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,oGAAoG;AACpG,mGAAmG;AACnG,kGAAkG;AAClG,oGAAoG;AACpG,wFAAwF;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAElE,IAAI,GAAW,CAAC;AAChB,IAAI,CAAC;IACH,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtF,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB;AAClF,CAAC;AAED,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAC9F,IAAI,KAAK,EAAE,CAAC;IACV,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,4BAA4B,GAAG,KAAK,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;IAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AACD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;IAC/B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC;AACD,uFAAuF;AACvF,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
// `rindled` is the *network front* of the engine: the `rindle-server` crate — the SQLite-backed
|
|
4
4
|
// `rindle-replica` live-query engine plus the public subscription/lease plane. `rindle` is the CLI
|
|
5
5
|
// that inspects and manages a deployed daemon (`rindle status`/`migrate`/…) and, for local dev,
|
|
6
|
-
// scaffolds and supervises one (`rindle init` / `rindle up`). Where
|
|
6
|
+
// scaffolds and supervises one (`rindle init` / `rindle dev` / `rindle up`). Where
|
|
7
|
+
// `@rindle/replica` is a napi
|
|
7
8
|
// addon that embeds the engine *in-process*, this package ships the standalone executables,
|
|
8
|
-
// prebuilt per platform by dist (cargo-dist), **co-located** so `rindle
|
|
9
|
+
// prebuilt per platform by dist (cargo-dist), **co-located** so `rindle dev` finds every component
|
|
9
10
|
// beside it. This module resolves the right binary for the host; the `rindle` bin (dist/cli.js)
|
|
10
|
-
// execs the CLI
|
|
11
|
-
//
|
|
12
|
-
// running daemon.
|
|
11
|
+
// execs the CLI. `rindle dev` owns the normal app lifecycle, `rindle up` runs only the fleet, and
|
|
12
|
+
// `spawnRindled()` embeds a follower in another supervisor (it is not exposed as its own bin).
|
|
13
13
|
import { spawn } from "node:child_process";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { createRequire } from "node:module";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,EAAE;AACF,gGAAgG;AAChG,mGAAmG;AACnG,gGAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"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C,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9C,CAAC;AAED,8GAA8G;AAC9G,MAAM,UAAU,YAAY,CAAC,OAAiB,EAAE,EAAE,UAAwB,EAAE;IAC1E,OAAO,WAAW,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindle/cli",
|
|
3
|
-
"version": "0.7.3
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"directory": "packages/cli"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"description": "The Rindle toolchain for JS devs: prebuilt CLI, write-master, follower, and local fleet-edge binaries. `rindle
|
|
11
|
+
"description": "The Rindle toolchain for JS devs: prebuilt CLI, write-master, follower, and local fleet-edge binaries. `rindle dev` owns the fleet + app lifecycle with topology-derived bindings.",
|
|
12
12
|
"main": "./dist/index.js",
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"sideEffects": false,
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
"typescript": "^5.7.0"
|
|
87
87
|
},
|
|
88
88
|
"optionalDependencies": {
|
|
89
|
-
"@rindle/cli-darwin-arm64": "0.7.3
|
|
90
|
-
"@rindle/cli-darwin-x64": "0.7.3
|
|
91
|
-
"@rindle/cli-linux-arm64-gnu": "0.7.3
|
|
92
|
-
"@rindle/cli-linux-arm64-musl": "0.7.3
|
|
93
|
-
"@rindle/cli-linux-x64-gnu": "0.7.3
|
|
94
|
-
"@rindle/cli-linux-x64-musl": "0.7.3
|
|
89
|
+
"@rindle/cli-darwin-arm64": "0.7.3",
|
|
90
|
+
"@rindle/cli-darwin-x64": "0.7.3",
|
|
91
|
+
"@rindle/cli-linux-arm64-gnu": "0.7.3",
|
|
92
|
+
"@rindle/cli-linux-arm64-musl": "0.7.3",
|
|
93
|
+
"@rindle/cli-linux-x64-gnu": "0.7.3",
|
|
94
|
+
"@rindle/cli-linux-x64-musl": "0.7.3"
|
|
95
95
|
}
|
|
96
96
|
}
|
package/src/cli.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// The `rindle` CLI bin (package.json "bin" → dist/cli.js; tsc preserves this shebang). Resolves the
|
|
3
3
|
// prebuilt `rindle` binary for this host and execs it, forwarding argv + stdio and propagating its
|
|
4
4
|
// exit code (or re-raising its terminating signal). The daemon (`rindled`) is intentionally NOT a
|
|
5
|
-
// bin — run
|
|
6
|
-
//
|
|
5
|
+
// bin — run the normal app lifecycle via `rindle dev`, the fleet alone via `rindle up`, or embed it
|
|
6
|
+
// with `spawnRindled()`; its binary still ships co-located so both supervisors find it.
|
|
7
7
|
import { spawnSync } from "node:child_process";
|
|
8
8
|
|
|
9
9
|
import { binaryPath, UnsupportedPlatformError } from "./index.ts";
|
package/src/index.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
// `rindled` is the *network front* of the engine: the `rindle-server` crate — the SQLite-backed
|
|
4
4
|
// `rindle-replica` live-query engine plus the public subscription/lease plane. `rindle` is the CLI
|
|
5
5
|
// that inspects and manages a deployed daemon (`rindle status`/`migrate`/…) and, for local dev,
|
|
6
|
-
// scaffolds and supervises one (`rindle init` / `rindle up`). Where
|
|
6
|
+
// scaffolds and supervises one (`rindle init` / `rindle dev` / `rindle up`). Where
|
|
7
|
+
// `@rindle/replica` is a napi
|
|
7
8
|
// addon that embeds the engine *in-process*, this package ships the standalone executables,
|
|
8
|
-
// prebuilt per platform by dist (cargo-dist), **co-located** so `rindle
|
|
9
|
+
// prebuilt per platform by dist (cargo-dist), **co-located** so `rindle dev` finds every component
|
|
9
10
|
// beside it. This module resolves the right binary for the host; the `rindle` bin (dist/cli.js)
|
|
10
|
-
// execs the CLI
|
|
11
|
-
//
|
|
12
|
-
// running daemon.
|
|
11
|
+
// execs the CLI. `rindle dev` owns the normal app lifecycle, `rindle up` runs only the fleet, and
|
|
12
|
+
// `spawnRindled()` embeds a follower in another supervisor (it is not exposed as its own bin).
|
|
13
13
|
import { spawn, type ChildProcess, type SpawnOptions } from "node:child_process";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import { createRequire } from "node:module";
|