@hermenics/deepseek-code 0.4.12 → 0.4.14
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 +3 -3
- package/dist/cli.mjs +291 -291
- package/dist/deepseek +14 -1
- package/package.json +5 -4
package/dist/deepseek
CHANGED
|
@@ -7,6 +7,19 @@ while [ -L "$SELF" ]; do
|
|
|
7
7
|
done
|
|
8
8
|
DIR="$(cd "$(dirname "$SELF")" && pwd -P)"
|
|
9
9
|
# Restore terminal on exit (handles SIGKILL where Node cleanup can't run)
|
|
10
|
-
_restore_terminal() { printf '\033[?1000l\033[?1002l\033[?1003l\033[?25h' > /dev/tty 2>/dev/null; }
|
|
10
|
+
_restore_terminal() { { [ -t 0 ] || [ -t 1 ] || [ -t 2 ]; } && printf '\033[?1000l\033[?1002l\033[?1003l\033[?25h' > /dev/tty 2>/dev/null; }
|
|
11
11
|
trap _restore_terminal EXIT
|
|
12
|
+
if ! command -v bun >/dev/null 2>&1; then
|
|
13
|
+
echo "DeepSeek Code requires Bun 1.1+ at runtime. Install Bun: https://bun.sh" >&2
|
|
14
|
+
exit 1
|
|
15
|
+
fi
|
|
16
|
+
BUN_VERSION="$(bun --version)"
|
|
17
|
+
if [[ ! "$BUN_VERSION" =~ ^([0-9]+).([0-9]+) ]]; then
|
|
18
|
+
echo "Could not determine the installed Bun version." >&2
|
|
19
|
+
exit 1
|
|
20
|
+
fi
|
|
21
|
+
if (( BASH_REMATCH[1] < 1 || (BASH_REMATCH[1] == 1 && BASH_REMATCH[2] < 1) )); then
|
|
22
|
+
echo "DeepSeek Code requires Bun 1.1+ (found $BUN_VERSION)." >&2
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
12
25
|
bun "$DIR/cli.mjs" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hermenics/deepseek-code",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.14",
|
|
4
4
|
"description": "An AI-powered coding assistant that lives in your terminal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -32,15 +32,16 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
|
-
"
|
|
36
|
-
"bun": ">=1.0"
|
|
35
|
+
"bun": ">=1.1"
|
|
37
36
|
},
|
|
38
37
|
"scripts": {
|
|
39
38
|
"start": "NODE_ENV=development bun src/index.tsx",
|
|
40
39
|
"dev": "NODE_ENV=development bun --watch src/index.tsx",
|
|
41
40
|
"build": "bun run build.ts",
|
|
42
41
|
"typecheck": "bunx tsc --noEmit",
|
|
43
|
-
"test": "bun test"
|
|
42
|
+
"test": "bun test",
|
|
43
|
+
"test:ink": "bun test tests/ink",
|
|
44
|
+
"test:plugins": "bun test tests/plugins"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
47
|
"@alcalzone/ansi-tokenize": "^0.3.0",
|