deplyze-code 0.1.1 → 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,163 +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 an interactive Ink TUI, REPL, tools, and slash commands.
6
-
7
- This package is intended to be installed globally and started with:
8
-
9
- ```bash
10
- deplyze
11
- ```
12
-
13
- ## Status
14
-
15
- - Current private release: `0.1.1`
16
- - Active auth path: Gemini API key
17
- - Active model picker: Gemini 3.1 Pro, Gemini 3 Flash, Gemini 3.1 Flash-Lite
18
- - `CLAUDE.md` remains the repository guidance filename for compatibility
19
-
20
- ## Install
21
-
22
- Install Bun first if it is not already available:
23
-
24
- ```bash
25
- curl -fsSL https://bun.sh/install | bash
26
- ```
27
-
28
- ```powershell
29
- powershell -c "irm bun.sh/install.ps1 | iex"
30
- ```
31
-
32
- Install the package globally:
33
-
34
- ```bash
35
- npm install -g deplyze-code
36
- ```
37
-
38
- ## Required Environment Variable
39
-
40
- Set your Gemini API key:
41
-
42
- ```bash
43
- export GEMINI_API_KEY="your_api_key_here"
44
- ```
45
-
46
- PowerShell:
47
-
48
- ```powershell
49
- $env:GEMINI_API_KEY="your_api_key_here"
50
- ```
51
-
52
- Optional:
53
-
54
- ```bash
55
- export GEMINI_MODEL="gemini-3.1-pro-preview"
56
- export GEMINI_SMALL_FAST_MODEL="gemini-3.1-flash-lite-preview"
57
- ```
58
-
59
- ## Start
60
-
61
- Run:
62
-
63
- ```bash
64
- deplyze
65
- ```
66
-
67
- On first launch with `GEMINI_API_KEY` set, Deplyze Code should open directly into the main REPL without the legacy onboarding flow.
68
-
69
- ## If `deplyze` Is Not Found
70
-
71
- If global install succeeds but the shell says `deplyze` is not recognized, your npm global bin directory is probably not on `PATH`.
72
-
73
- Check the prefix:
74
-
75
- ```bash
76
- npm prefix -g
77
- ```
78
-
79
- Make sure the corresponding global bin directory is on your shell `PATH`, then reopen the terminal.
80
-
81
- ## Basic Usage
82
-
83
- Plain interactive launch:
84
-
85
- ```bash
86
- deplyze
87
- ```
88
-
89
- Single prompt:
90
-
91
- ```bash
92
- deplyze -p "hello"
93
- ```
94
-
95
- Repository question:
96
-
97
- ```bash
98
- deplyze -p "Inspect this repository and tell me what file launches the REPL."
99
- ```
100
-
101
- Bash tool example:
102
-
103
- ```bash
104
- deplyze -p "Use the Bash tool to print the current working directory, then answer with only that path." --allowedTools Bash --dangerously-skip-permissions
105
- ```
106
-
107
- ## Model Switching
108
-
109
- Inside the interactive UI, run:
110
-
111
- ```text
112
- /model
113
- ```
114
-
115
- Available models in the active UI:
116
-
117
- - `Gemini 3.1 Pro`
118
- - `Gemini 3 Flash`
119
- - `Gemini 3.1 Flash-Lite`
120
-
121
- Underlying Gemini API model handles:
122
-
123
- - `gemini-3.1-pro-preview`
124
- - `gemini-3-flash-preview`
125
- - `gemini-3.1-flash-lite-preview`
126
-
127
- ## What This Release Uses
128
-
129
- - Provider flow: Gemini API key
130
- - Required auth for normal usage: `GEMINI_API_KEY`
131
- - UI flow: existing Deplyze Code TUI and REPL
132
- - Legacy login and OAuth code still exists in the repository, but it is not required for the standard Gemini path
133
-
134
- ## Source Checkout Usage
135
-
136
- If you are running from a local checkout instead of a global install:
137
-
138
- ```bash
139
- bun install
140
- ./bin/deplyze
141
- ```
142
-
143
- Windows:
144
-
145
- ```powershell
146
- bun install
147
- bun ./bin/deplyze
148
- ```
149
-
150
- ## Recovery Mode
151
-
152
- If you need the simplified recovery CLI:
153
-
154
- ```bash
155
- CLAUDE_CODE_FORCE_RECOVERY_CLI=1 deplyze
156
- ```
157
-
158
- PowerShell:
159
-
160
- ```powershell
161
- $env:CLAUDE_CODE_FORCE_RECOVERY_CLI='1'
162
- deplyze
163
- ```
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
+ ```
package/README.md CHANGED
@@ -1,163 +1,161 @@
1
- # Deplyze Code
2
-
3
- <p align="right"><strong>中文</strong> | <a href="./README.en.md">English</a></p>
4
-
5
- Deplyze Code 是一个基于 Gemini 的终端编码助手,提供交互式 Ink TUI、REPL、工具调用和斜杠命令。
6
-
7
- 当前推荐用法是全局安装后直接运行:
8
-
9
- ```bash
10
- deplyze
11
- ```
12
-
13
- ## 当前状态
14
-
15
- - 当前私有发布版本:`0.1.1`
16
- - 主认证路径:Gemini API Key
17
- - 主模型菜单:Gemini 3.1 Pro、Gemini 3 Flash、Gemini 3.1 Flash-Lite
18
- - 为兼容性保留 `CLAUDE.md` 文件名
19
-
20
- ## 安装
21
-
22
- 如果还没有 Bun,请先安装:
23
-
24
- ```bash
25
- curl -fsSL https://bun.sh/install | bash
26
- ```
27
-
28
- ```powershell
29
- powershell -c "irm bun.sh/install.ps1 | iex"
30
- ```
31
-
32
- 然后全局安装:
33
-
34
- ```bash
35
- npm install -g deplyze-code
36
- ```
37
-
38
- ## 必需环境变量
39
-
40
- 设置 Gemini API Key:
41
-
42
- ```bash
43
- export GEMINI_API_KEY="your_api_key_here"
44
- ```
45
-
46
- PowerShell:
47
-
48
- ```powershell
49
- $env:GEMINI_API_KEY="your_api_key_here"
50
- ```
51
-
52
- 可选:
53
-
54
- ```bash
55
- export GEMINI_MODEL="gemini-3.1-pro-preview"
56
- export GEMINI_SMALL_FAST_MODEL="gemini-3.1-flash-lite-preview"
57
- ```
58
-
59
- ## 启动
60
-
61
- 直接运行:
62
-
63
- ```bash
64
- deplyze
65
- ```
66
-
67
- `GEMINI_API_KEY` 已设置时,首次启动应直接进入主 REPL,不再进入旧 onboarding 流程。
68
-
69
- ## 如果提示找不到 `deplyze`
70
-
71
- 如果全局安装成功,但终端提示 `deplyze` 无法识别,通常是 npm 全局 bin 目录没有加入 `PATH`。
72
-
73
- 先查看前缀:
74
-
75
- ```bash
76
- npm prefix -g
77
- ```
78
-
79
- 确认对应的全局 bin 目录已经加入 shell 的 `PATH`,然后重新打开终端。
80
-
81
- ## 基本用法
82
-
83
- 交互模式:
84
-
85
- ```bash
86
- deplyze
87
- ```
88
-
89
- 单次提问:
90
-
91
- ```bash
92
- deplyze -p "hello"
93
- ```
94
-
95
- 仓库问题示例:
96
-
97
- ```bash
98
- deplyze -p "Inspect this repository and tell me what file launches the REPL."
99
- ```
100
-
101
- Bash 工具示例:
102
-
103
- ```bash
104
- deplyze -p "Use the Bash tool to print the current working directory, then answer with only that path." --allowedTools Bash --dangerously-skip-permissions
105
- ```
106
-
107
- ## 模型切换
108
-
109
- 在交互界面中运行:
110
-
111
- ```text
112
- /model
113
- ```
114
-
115
- 当前主流程提供:
116
-
117
- - `Gemini 3.1 Pro`
118
- - `Gemini 3 Flash`
119
- - `Gemini 3.1 Flash-Lite`
120
-
121
- 底层实际使用的 Gemini API 模型句柄:
122
-
123
- - `gemini-3.1-pro-preview`
124
- - `gemini-3-flash-preview`
125
- - `gemini-3.1-flash-lite-preview`
126
-
127
- ## 当前发布路径说明
128
-
129
- - Provider:Gemini API key
130
- - 正常使用只需要:`GEMINI_API_KEY`
131
- - 界面:沿用当前 Deplyze Code TUI 和 REPL
132
- - 旧登录/OAuth 代码仍保留在仓库中,但标准 Gemini 主流程不依赖它
133
-
134
- ## 源码运行
135
-
136
- 如果你是在本地源码目录中运行,而不是全局安装:
137
-
138
- ```bash
139
- bun install
140
- ./bin/deplyze
141
- ```
142
-
143
- Windows:
144
-
145
- ```powershell
146
- bun install
147
- bun ./bin/deplyze
148
- ```
149
-
150
- ## Recovery 模式
151
-
152
- 如果需要简化版 recovery CLI:
153
-
154
- ```bash
155
- CLAUDE_CODE_FORCE_RECOVERY_CLI=1 deplyze
156
- ```
157
-
158
- PowerShell:
159
-
160
- ```powershell
161
- $env:CLAUDE_CODE_FORCE_RECOVERY_CLI='1'
162
- deplyze
163
- ```
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
+ ```
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "deplyze-code",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Deplyze Code is a Gemini-powered terminal coding assistant with an interactive Ink TUI.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "deplyze": "bin/deplyze"
8
8
  },
9
9
  "scripts": {
10
+ "test": "bun test",
11
+ "smoke": "bun run ./scripts/smoke.ts",
10
12
  "deplyze": "bun run ./bin/deplyze",
11
13
  "start": "bun run ./bin/deplyze"
12
14
  },
package/preload.ts CHANGED
@@ -1,5 +1,5 @@
1
- const version = process.env.CLAUDE_CODE_LOCAL_VERSION ?? '0.1.1';
2
- const packageUrl = process.env.CLAUDE_CODE_LOCAL_PACKAGE_URL ?? 'deplyze-code';
1
+ const version = process.env.CLAUDE_CODE_LOCAL_VERSION ?? '0.1.3';
2
+ const packageUrl = process.env.CLAUDE_CODE_LOCAL_PACKAGE_URL ?? 'deplyze-code';
3
3
  const buildTime = process.env.CLAUDE_CODE_LOCAL_BUILD_TIME ?? new Date().toISOString();
4
4
 
5
5
  process.env.CLAUDE_CODE_LOCAL_SKIP_REMOTE_PREFETCH ??= '1';