@liwenkai/deepcode 0.5.0 → 0.5.2

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 CHANGED
@@ -4,8 +4,10 @@ AI coding assistant in your terminal — powered by DeepSeek.
4
4
 
5
5
  ## Install
6
6
 
7
+ Use Node.js 24 or newer with npm 11.16.0 or newer. Approve the DeepCode package's installation script when installing it globally.
8
+
7
9
  ```sh
8
- npm install -g @liwenkai/deepcode
10
+ npm install -g --allow-scripts=@liwenkai/deepcode @liwenkai/deepcode
9
11
  ```
10
12
 
11
13
  (The installed command is `deepcode`.)
@@ -43,6 +45,8 @@ stdout into exactly one object to branch on:
43
45
  to approve it, and a retry fails the same way.
44
46
  - **Close stdin when spawning**: an inherited idle pipe costs 2 s on macOS/Linux and hangs on
45
47
  Windows, and `--timeout` does not cover that read.
48
+ - **Headless runs have a finite default**: omitting `--timeout` uses a 900-second wall-clock
49
+ ceiling, so an unattended wrapper cannot run forever by accident.
46
50
 
47
51
  Exit codes: `0` finished / `1` error / `2` usage / `124` timeout / `130` Ctrl-C.
48
52
 
@@ -59,7 +63,7 @@ Full contract, flags and approval posture: [README](https://github.com/liwenka1/
59
63
 
60
64
  ## Notes
61
65
 
62
- - Requires Node.js >= 24 (for the installer only; the CLI itself is a native binary).
66
+ - The CLI itself is a native binary. The npm installer and launcher use Node.js.
63
67
  - If your network blocks GitHub, grab a binary from the
64
68
  [releases page](https://github.com/liwenka1/deep-code/releases) manually, or
65
69
  build from source: clone `liwenka1/deep-code` and run
package/bin/deepcode CHANGED
@@ -30,8 +30,9 @@ const invokedAs = basename(process.argv[1] || 'deepcode');
30
30
 
31
31
  if (!existsSync(binary)) {
32
32
  console.error('deepcode: native binary not found.');
33
- console.error('Reinstall without --ignore-scripts, or grab a prebuilt binary from');
34
- console.error('https://github.com/liwenka1/deep-code/releases');
33
+ console.error('Reinstall with npm 11.16.0 or newer and approve the DeepCode installation script.');
34
+ console.error(' npm install -g --allow-scripts=@liwenkai/deepcode @liwenkai/deepcode');
35
+ console.error('Prebuilt binaries are available at https://github.com/liwenka1/deep-code/releases');
35
36
  process.exit(1);
36
37
  }
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liwenkai/deepcode",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "AI coding assistant in your terminal — powered by DeepSeek",
5
5
  "bin": {
6
6
  "deepcode": "bin/deepcode"
@@ -37,6 +37,7 @@
37
37
  "arm64"
38
38
  ],
39
39
  "engines": {
40
- "node": ">=18"
40
+ "node": ">=18",
41
+ "npm": ">=11.16.0"
41
42
  }
42
43
  }