@onreza/nrz 0.1.6 → 0.2.0

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 ONREZA
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,101 +1,48 @@
1
- # nrz — ONREZA Platform CLI
1
+ # @onreza/nrz
2
2
 
3
- [![CI](https://github.com/ONREZA/nrz-cli/actions/workflows/release.yml/badge.svg)](https://github.com/ONREZA/nrz-cli/actions)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
3
+ ONREZA platform CLI — dev, build, deploy.
5
4
 
6
- > Analog of `vercel` / `wrangler` for ONREZA platform. Rust-based, single binary.
5
+ ## Install
7
6
 
8
- ## Installation
9
-
10
- ### Quick Install
11
-
12
- **Linux/macOS:**
13
7
  ```bash
14
- curl -fsSL https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.sh | bash
15
- ```
16
-
17
- **Windows (PowerShell):**
18
- ```powershell
19
- iwr -useb https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.ps1 | iex
8
+ npm install -g @onreza/nrz
20
9
  ```
21
10
 
22
- ### From Source
23
-
24
- ```bash
25
- cargo install --git https://github.com/ONREZA/nrz-cli
26
- ```
11
+ After installation the `nrz` binary is available in your `$PATH`.
27
12
 
28
13
  ## Usage
29
14
 
30
15
  ```bash
31
- # Development mode with platform emulation
32
- nrz dev
33
-
34
- # Validate build output
35
- nrz build
36
-
37
- # Deploy to platform
38
- nrz deploy
39
-
40
- # Manage KV store
41
- nrz kv set mykey "my value"
42
- nrz kv get mykey
43
- nrz kv list
44
-
45
- # Manage D1-compatible SQLite database
46
- nrz db execute "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)"
47
- nrz db info
48
-
49
- # Self-update
50
- nrz upgrade
16
+ nrz dev # Start dev server with ONREZA runtime emulation
17
+ nrz build # Validate build output and manifest
18
+ nrz deploy # Deploy to ONREZA platform
19
+ nrz upgrade # Self-update to the latest version
51
20
  ```
52
21
 
53
- ## Supported Platforms
54
-
55
- | Platform | Binary |
56
- |----------|--------|
57
- | Linux x64 | `nrz-linux-x64` |
58
- | macOS x64 | `nrz-macos-x64` |
59
- | macOS ARM64 | `nrz-macos-arm64` |
60
- | Windows x64 | `nrz-windows-x64.exe` |
22
+ ## Supported platforms
61
23
 
62
- ## Features
24
+ | Platform | Architecture |
25
+ |----------|-------------|
26
+ | Linux | x86_64 |
27
+ | macOS | x86_64, Apple Silicon |
28
+ | Windows | x86_64 |
63
29
 
64
- - 🚀 **Dev Server** — Local development with KV, DB, and Context emulation
65
- - 📦 **Build Validation** — Verify output against BUILD_OUTPUT_SPEC v1
66
- - ☁️ **Deploy** — Push to ONREZA platform
67
- - 🔄 **Self-update** — Built-in upgrade mechanism
68
- - 🔧 **Framework Detection** — Auto-detect Astro, Nuxt, SvelteKit, Nitro
69
-
70
- ## Development
30
+ ## Alternative installation
71
31
 
32
+ **Linux/macOS:**
72
33
  ```bash
73
- # Run tests
74
- cargo test
75
-
76
- # Build release binary
77
- cargo build --release
78
-
79
- # Generate changelog
80
- git-cliff -o CHANGELOG.md
34
+ curl -fsSL https://raw.githubusercontent.com/onreza/nrz-cli/main/install.sh | bash
81
35
  ```
82
36
 
83
- ## Commit Convention
84
-
85
- This project follows [Conventional Commits](https://www.conventionalcommits.org/):
86
-
87
- ```
88
- feat(scope): add new feature
89
- fix(scope): fix bug
90
- docs(scope): update documentation
91
- perf(scope): optimize performance
37
+ **Windows (PowerShell 7+):**
38
+ ```powershell
39
+ iwr -useb https://raw.githubusercontent.com/onreza/nrz-cli/main/install.ps1 | iex
92
40
  ```
93
41
 
94
- ## Related
42
+ ## Documentation
95
43
 
96
- - [onreza/adapters](https://github.com/onreza/adapters) — TypeScript adapters
97
- - [onreza/deployment](https://github.com/onreza/deployment) — Platform infrastructure
44
+ Full documentation and source code: [github.com/onreza/nrz-cli](https://github.com/onreza/nrz-cli)
98
45
 
99
46
  ## License
100
47
 
101
- MIT © ONREZA
48
+ MIT
package/README.md.bak ADDED
@@ -0,0 +1,101 @@
1
+ # nrz — ONREZA Platform CLI
2
+
3
+ [![CI](https://github.com/ONREZA/nrz-cli/actions/workflows/release.yml/badge.svg)](https://github.com/ONREZA/nrz-cli/actions)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
5
+
6
+ > Analog of `vercel` / `wrangler` for ONREZA platform. Rust-based, single binary.
7
+
8
+ ## Installation
9
+
10
+ ### Quick Install
11
+
12
+ **Linux/macOS:**
13
+ ```bash
14
+ curl -fsSL https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.sh | bash
15
+ ```
16
+
17
+ **Windows (PowerShell):**
18
+ ```powershell
19
+ iwr -useb https://raw.githubusercontent.com/ONREZA/nrz-cli/main/install.ps1 | iex
20
+ ```
21
+
22
+ ### From Source
23
+
24
+ ```bash
25
+ cargo install --git https://github.com/ONREZA/nrz-cli
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```bash
31
+ # Development mode with platform emulation
32
+ nrz dev
33
+
34
+ # Validate build output
35
+ nrz build
36
+
37
+ # Deploy to platform
38
+ nrz deploy
39
+
40
+ # Manage KV store
41
+ nrz kv set mykey "my value"
42
+ nrz kv get mykey
43
+ nrz kv list
44
+
45
+ # Manage D1-compatible SQLite database
46
+ nrz db execute "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)"
47
+ nrz db info
48
+
49
+ # Self-update
50
+ nrz upgrade
51
+ ```
52
+
53
+ ## Supported Platforms
54
+
55
+ | Platform | Binary |
56
+ |----------|--------|
57
+ | Linux x64 | `nrz-linux-x64` |
58
+ | macOS x64 | `nrz-macos-x64` |
59
+ | macOS ARM64 | `nrz-macos-arm64` |
60
+ | Windows x64 | `nrz-windows-x64.exe` |
61
+
62
+ ## Features
63
+
64
+ - 🚀 **Dev Server** — Local development with KV, DB, and Context emulation
65
+ - 📦 **Build Validation** — Verify output against BUILD_OUTPUT_SPEC v1
66
+ - ☁️ **Deploy** — Push to ONREZA platform
67
+ - 🔄 **Self-update** — Built-in upgrade mechanism
68
+ - 🔧 **Framework Detection** — Auto-detect Astro, Nuxt, SvelteKit, Nitro
69
+
70
+ ## Development
71
+
72
+ ```bash
73
+ # Run tests
74
+ cargo test
75
+
76
+ # Build release binary
77
+ cargo build --release
78
+
79
+ # Generate changelog
80
+ git-cliff -o CHANGELOG.md
81
+ ```
82
+
83
+ ## Commit Convention
84
+
85
+ This project follows [Conventional Commits](https://www.conventionalcommits.org/):
86
+
87
+ ```
88
+ feat(scope): add new feature
89
+ fix(scope): fix bug
90
+ docs(scope): update documentation
91
+ perf(scope): optimize performance
92
+ ```
93
+
94
+ ## Related
95
+
96
+ - [onreza/adapters](https://github.com/onreza/adapters) — TypeScript adapters
97
+ - [onreza/deployment](https://github.com/onreza/deployment) — Platform infrastructure
98
+
99
+ ## License
100
+
101
+ MIT © ONREZA
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@onreza/nrz",
3
- "version": "0.1.6",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
- "description": "ONREZA platform CLI",
5
+ "description": "ONREZA platform CLI — dev, build, deploy",
6
6
  "files": [
7
7
  "bin",
8
8
  "scripts",
@@ -10,14 +10,13 @@
10
10
  "LICENSE"
11
11
  ],
12
12
  "scripts": {
13
- "prepare": "lefthook install || echo 'Install lefthook: https://github.com/evilmartians/lefthook'",
14
- "commitlint": "commitlint",
15
- "release": "onreza-release"
13
+ "postinstall": "node scripts/postinstall.js"
16
14
  },
17
- "devDependencies": {
18
- "@commitlint/cli": "^18.6.0",
19
- "lefthook": "^1.6.0",
20
- "onreza-release": "^2.6.2"
15
+ "bin": {
16
+ "nrz": "bin/nrz.js"
17
+ },
18
+ "dependencies": {
19
+ "tar": "^7.0.0"
21
20
  },
22
21
  "repository": {
23
22
  "type": "git",
@@ -13,13 +13,13 @@ const __dirname = dirname(__filename);
13
13
 
14
14
  const MANIFEST = {
15
15
  "assets": {
16
- "linux-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.1.6/nrz-linux-x64.tar.gz",
17
- "darwin-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.1.6/nrz-darwin-x64.tar.gz",
18
- "darwin-arm64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.1.6/nrz-darwin-arm64.tar.gz",
19
- "win32-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.1.6/nrz-win32-x64.tar.gz"
16
+ "linux-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.2.0/nrz-linux-x64.tar.gz",
17
+ "darwin-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.2.0/nrz-darwin-x64.tar.gz",
18
+ "darwin-arm64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.2.0/nrz-darwin-arm64.tar.gz",
19
+ "win32-x64": "https://github.com/ONREZA/nrz-cli/releases/download/v0.2.0/nrz-win32-x64.tar.gz"
20
20
  },
21
21
  "binName": "nrz",
22
- "version": "0.1.6"
22
+ "version": "0.2.0"
23
23
  };
24
24
 
25
25
  const platformKey = `${platform}-${arch}`;