deplyze-code 0.1.0 → 0.1.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.en.md CHANGED
@@ -1,210 +1,161 @@
1
- # Deplyze Code
2
-
3
- <p align="right"><a href="./README.md">中文</a> | <strong>English</strong></p>
4
-
5
- Deplyze Code is a Gemini-powered terminal coding assistant with the original-style Ink TUI and REPL preserved.
6
-
7
- > This repository keeps the working terminal UI and command flow intact while routing the active runtime through the Gemini API-key path.
8
-
9
- <p align="center">
10
- <img src="docs/00runtime.png" alt="Runtime screenshot" width="800">
11
- </p>
12
-
13
- ## Features
14
-
15
- - Full Ink TUI and interactive REPL
16
- - `--print` headless mode for scripts and CI
17
- - Slash commands, tools, MCP, plugins, and Skills
18
- - Gemini model switching through `/model`
19
- - Fallback Recovery CLI mode
20
-
21
- ---
22
-
23
- ## Quick Start
24
-
25
- ### 1. Install Bun
26
-
27
- This project requires [Bun](https://bun.sh).
28
-
29
- ```bash
30
- # macOS / Linux
31
- curl -fsSL https://bun.sh/install | bash
32
- ```
33
-
34
- ```bash
35
- # macOS (Homebrew)
36
- brew install bun
37
- ```
38
-
39
- ```powershell
40
- # Windows (PowerShell)
41
- powershell -c "irm bun.sh/install.ps1 | iex"
42
- ```
43
-
44
- Verify the installation:
45
-
46
- ```bash
47
- bun --version
48
- ```
49
-
50
- ### 2. Install Dependencies
51
-
52
- ```bash
53
- bun install
54
- ```
55
-
56
- ### 3. Configure Environment Variables
57
-
58
- Copy the example file:
59
-
60
- ```bash
61
- cp .env.example .env
62
- ```
63
-
64
- Set at least:
65
-
66
- ```env
67
- GEMINI_API_KEY=your_api_key_here
68
- ```
69
-
70
- Optional:
71
-
72
- ```env
73
- GEMINI_MODEL=gemini-3.1-pro-preview
74
- GEMINI_SMALL_FAST_MODEL=gemini-3.1-flash-lite-preview
75
- DISABLE_TELEMETRY=1
76
- CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
77
- ```
78
-
79
- ### 4. Run Locally From Source
80
-
81
- #### macOS / Linux
82
-
83
- ```bash
84
- ./bin/deplyze
85
- ```
86
-
87
- ```bash
88
- ./bin/deplyze -p "hello"
89
- ```
90
-
91
- ```bash
92
- echo "inspect this repository" | ./bin/deplyze -p
93
- ```
94
-
95
- ```bash
96
- ./bin/deplyze --help
97
- ```
98
-
99
- #### Windows
100
-
101
- ```powershell
102
- bun ./bin/deplyze
103
- ```
104
-
105
- ```powershell
106
- bun ./bin/deplyze -p "hello"
107
- ```
108
-
109
- ```powershell
110
- bun ./bin/deplyze --help
111
- ```
112
-
113
- ### 5. Install Globally
114
-
115
- ```bash
116
- npm install -g deplyze-code
117
- ```
118
-
119
- Then run:
120
-
121
- ```bash
122
- deplyze
123
- ```
124
-
125
- ---
126
-
127
- ## Environment Variables
128
-
129
- | Variable | Required | Description |
130
- |------|------|------|
131
- | `GEMINI_API_KEY` | Yes | Gemini API key used by the normal interactive runtime |
132
- | `GEMINI_MODEL` | No | Default main model override |
133
- | `GEMINI_SMALL_FAST_MODEL` | No | Fast verification / low-cost model override |
134
- | `DISABLE_TELEMETRY` | No | Set to `1` to disable telemetry |
135
- | `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` | No | Set to `1` to disable non-essential network traffic |
136
-
137
- ---
138
-
139
- ## Models
140
-
141
- The active `/model` flow exposes:
142
-
143
- - `Gemini 3.1 Pro`
144
- - `Gemini 3 Flash`
145
- - `Gemini 3.1 Flash-Lite`
146
-
147
- The runtime uses the current Gemini API handles underneath:
148
-
149
- - `gemini-3.1-pro-preview`
150
- - `gemini-3-flash-preview`
151
- - `gemini-3.1-flash-lite-preview`
152
-
153
- ---
154
-
155
- ## Fallback Mode
156
-
157
- If the full TUI has issues, use the simplified recovery CLI:
158
-
159
- ```bash
160
- CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/deplyze
161
- ```
162
-
163
- On Windows PowerShell:
164
-
165
- ```powershell
166
- $env:CLAUDE_CODE_FORCE_RECOVERY_CLI='1'
167
- bun ./bin/deplyze
168
- ```
169
-
170
- ---
171
-
172
- ## Project Structure
173
-
174
- ```text
175
- bin/deplyze # Release entry script
176
- preload.ts # Bun preload (sets MACRO globals)
177
- .env.example # Environment variable template
178
- src/
179
- ├── entrypoints/cli.tsx # Main CLI entry
180
- ├── main.tsx # Main TUI logic (Commander.js + React/Ink)
181
- ├── localRecoveryCli.ts # Fallback Recovery CLI
182
- ├── screens/REPL.tsx # Interactive REPL screen
183
- ├── components/ # UI components
184
- ├── commands/ # Slash commands
185
- ├── tools/ # Agent tools (Bash, Edit, Grep, etc.)
186
- ├── services/ # Service layer
187
- ├── hooks/ # React hooks
188
- └── utils/ # Utility functions
189
- ```
190
-
191
- ---
192
-
193
- ## Tech Stack
194
-
195
- | Category | Technology |
196
- |------|------|
197
- | Runtime | [Bun](https://bun.sh) |
198
- | Language | TypeScript |
199
- | Terminal UI | React + [Ink](https://github.com/vadimdemedes/ink) |
200
- | CLI parsing | Commander.js |
201
- | API | Gemini via [`@google/genai`](https://www.npmjs.com/package/@google/genai) |
202
- | Protocols | MCP, LSP |
203
-
204
- ---
205
-
206
- ## Notes
207
-
208
- - The active runtime uses API-key auth only for now.
209
- - Legacy login and onboarding code remains in the repository but is not required for normal Gemini usage.
210
- - The `CLAUDE.md` filename is intentionally unchanged for compatibility.
1
+ # Deplyze Code
2
+
3
+ Deplyze Code is a Gemini-powered terminal coding assistant with an interactive Ink TUI, REPL, tools, and slash commands.
4
+
5
+ This package is intended to be installed globally and started with:
6
+
7
+ ```bash
8
+ deplyze
9
+ ```
10
+
11
+ ## Status
12
+
13
+ - Current private release: `0.1.3`
14
+ - Active auth path: Gemini API key
15
+ - Active model picker: Gemini 3.1 Pro, Gemini 3 Flash, Gemini 3.1 Flash-Lite
16
+ - `CLAUDE.md` remains the repository guidance filename for compatibility
17
+
18
+ ## Install
19
+
20
+ Install Bun first if it is not already available:
21
+
22
+ ```bash
23
+ curl -fsSL https://bun.sh/install | bash
24
+ ```
25
+
26
+ ```powershell
27
+ powershell -c "irm bun.sh/install.ps1 | iex"
28
+ ```
29
+
30
+ Install the package globally:
31
+
32
+ ```bash
33
+ npm install -g deplyze-code
34
+ ```
35
+
36
+ ## Required Environment Variable
37
+
38
+ Set your Gemini API key:
39
+
40
+ ```bash
41
+ export GEMINI_API_KEY="your_api_key_here"
42
+ ```
43
+
44
+ PowerShell:
45
+
46
+ ```powershell
47
+ $env:GEMINI_API_KEY="your_api_key_here"
48
+ ```
49
+
50
+ Optional:
51
+
52
+ ```bash
53
+ export GEMINI_MODEL="gemini-3.1-pro-preview"
54
+ export GEMINI_SMALL_FAST_MODEL="gemini-3.1-flash-lite-preview"
55
+ ```
56
+
57
+ ## Start
58
+
59
+ Run:
60
+
61
+ ```bash
62
+ deplyze
63
+ ```
64
+
65
+ On first launch with `GEMINI_API_KEY` set, Deplyze Code should open directly into the main REPL without the legacy onboarding flow.
66
+
67
+ ## If `deplyze` Is Not Found
68
+
69
+ If global install succeeds but the shell says `deplyze` is not recognized, your npm global bin directory is probably not on `PATH`.
70
+
71
+ Check the prefix:
72
+
73
+ ```bash
74
+ npm prefix -g
75
+ ```
76
+
77
+ Make sure the corresponding global bin directory is on your shell `PATH`, then reopen the terminal.
78
+
79
+ ## Basic Usage
80
+
81
+ Plain interactive launch:
82
+
83
+ ```bash
84
+ deplyze
85
+ ```
86
+
87
+ Single prompt:
88
+
89
+ ```bash
90
+ deplyze -p "hello"
91
+ ```
92
+
93
+ Repository question:
94
+
95
+ ```bash
96
+ deplyze -p "Inspect this repository and tell me what file launches the REPL."
97
+ ```
98
+
99
+ Bash tool example:
100
+
101
+ ```bash
102
+ deplyze -p "Use the Bash tool to print the current working directory, then answer with only that path." --allowedTools Bash --dangerously-skip-permissions
103
+ ```
104
+
105
+ ## Model Switching
106
+
107
+ Inside the interactive UI, run:
108
+
109
+ ```text
110
+ /model
111
+ ```
112
+
113
+ Available models in the active UI:
114
+
115
+ - `Gemini 3.1 Pro`
116
+ - `Gemini 3 Flash`
117
+ - `Gemini 3.1 Flash-Lite`
118
+
119
+ Underlying Gemini API model handles:
120
+
121
+ - `gemini-3.1-pro-preview`
122
+ - `gemini-3-flash-preview`
123
+ - `gemini-3.1-flash-lite-preview`
124
+
125
+ ## What This Release Uses
126
+
127
+ - Provider flow: Gemini API key
128
+ - Required auth for normal usage: `GEMINI_API_KEY`
129
+ - UI flow: existing Deplyze Code TUI and REPL
130
+ - Legacy login and OAuth code still exists in the repository, but it is not required for the standard Gemini path
131
+
132
+ ## Source Checkout Usage
133
+
134
+ If you are running from a local checkout instead of a global install:
135
+
136
+ ```bash
137
+ bun install
138
+ ./bin/deplyze
139
+ ```
140
+
141
+ Windows:
142
+
143
+ ```powershell
144
+ bun install
145
+ bun ./bin/deplyze
146
+ ```
147
+
148
+ ## Recovery Mode
149
+
150
+ If you need the simplified recovery CLI:
151
+
152
+ ```bash
153
+ CLAUDE_CODE_FORCE_RECOVERY_CLI=1 deplyze
154
+ ```
155
+
156
+ PowerShell:
157
+
158
+ ```powershell
159
+ $env:CLAUDE_CODE_FORCE_RECOVERY_CLI='1'
160
+ deplyze
161
+ ```