reasonix-termux 0.0.0 → 1.31.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 masgzy
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 ADDED
@@ -0,0 +1,59 @@
1
+ # reasonix-termux
2
+
3
+ Prebuilt `reasonix` CLI binary for **Termux (Android/aarch64)**.
4
+
5
+ [Reasonix](https://github.com/esengine/DeepSeek-Reasonix) is a cache-first DeepSeek-native coding agent for the terminal. The official `reasonix` npm package ships prebuilt binaries for `linux/darwin/win32 × x64/arm64` — but **not** for `android/arm64`. This package fills that gap so you can install Reasonix in Termux via `npm` instead of an `apt` source.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ # In Termux (Android arm64)
11
+ pkg install nodejs # if you don't have Node.js yet
12
+ npm install -g reasonix-termux
13
+
14
+ # Verify
15
+ reasonix --version
16
+ ```
17
+
18
+ > Non-Termux users: this package sets `os: ["android"], cpu: ["arm64"]` in `package.json`, so `npm install` will refuse to install it on other platforms with `EBADPLATFORM`. That's intentional — the binary only runs on Android/arm64.
19
+
20
+ ## How it differs from upstream `reasonix`
21
+
22
+ - Upstream `reasonix` (npm) → JS wrapper + platform-specific subpackages (`@reasonix/cli-{os}-{arch}`)
23
+ - This package → ships the **android/arm64 binary** directly, built with `GOOS=android GOARCH=arm64 CGO_ENABLED=0` (static ELF)
24
+ - Same upstream source, two small Termux-specific patches applied at build time:
25
+ 1. `TMPDIR` patched to `~/.reasonix/tmp/` (Termux's `/tmp` is read-only)
26
+ 2. `atto/clipboard` init bypassed (Android `seccomp` faccessat2 workaround)
27
+
28
+ ## Build pipeline
29
+
30
+ - **Source**: [esengine/DeepSeek-Reasonix](https://github.com/esengine/DeepSeek-Reasonix)
31
+ - **Build pipeline**: [masgzy/reasonix-termux](https://github.com/masgzy/reasonix-termux) — auto-syncs upstream every 6 hours, rebuilds, and publishes to:
32
+ - **npm** (this package)
33
+ - **apt** (Termux `pkg install reasonix` via orphan `apt` branch)
34
+
35
+ ## Alternative install (apt)
36
+
37
+ If you prefer apt over npm:
38
+
39
+ ```bash
40
+ curl -fsSL https://raw.githubusercontent.com/masgzy/reasonix-termux/main/scripts/install.sh | bash
41
+ # or manually:
42
+ echo 'deb [trusted=yes] https://raw.githubusercontent.com/masgzy/reasonix-termux/apt stable main' \
43
+ > $PREFIX/etc/apt/sources.list.d/reasonix.list
44
+ pkg update && pkg install reasonix
45
+ ```
46
+
47
+ ## License
48
+
49
+ - **Reasonix binary**: MIT — upstream license, see [esengine/DeepSeek-Reasonix](https://github.com/esengine/DeepSeek-Reasonix)
50
+ - **Build scripts** (in source repo, not in this npm tarball): GPL-3.0
51
+
52
+ ## Issues
53
+
54
+ - Reasonix CLI bugs → upstream: <https://github.com/esengine/DeepSeek-Reasonix/issues>
55
+ - Termux packaging / npm package issues → <https://github.com/masgzy/reasonix-termux/issues>
56
+
57
+ ## Provenance
58
+
59
+ This package is published with npm [provenance](https://docs.npmjs.com/generating-provenance-statements) attestation via GitHub Actions. You can verify the binary was built from a specific commit on the official pipeline.
package/bin/reasonix ADDED
Binary file
package/package.json CHANGED
@@ -1,16 +1,48 @@
1
1
  {
2
2
  "name": "reasonix-termux",
3
- "version": "0.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
3
+ "version": "1.31.3",
4
+ "description": "Prebuilt reasonix CLI binary for Termux (Android/aarch64). Auto-built from esengine/DeepSeek-Reasonix with GOOS=android GOARCH=arm64.",
5
+ "license": "MIT",
6
+ "author": "masgzy/reasonix-termux contributors",
7
+ "homepage": "https://github.com/masgzy/reasonix-termux#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/masgzy/reasonix-termux.git",
11
+ "directory": "npm"
8
12
  },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "type": "commonjs",
13
- "publishConfig": {
14
- "access": "public"
13
+ "bugs": {
14
+ "url": "https://github.com/masgzy/reasonix-termux/issues"
15
+ },
16
+ "keywords": [
17
+ "reasonix",
18
+ "deepseek",
19
+ "deepseek-reasonix",
20
+ "termux",
21
+ "android",
22
+ "aarch64",
23
+ "arm64",
24
+ "cli",
25
+ "ai",
26
+ "agent",
27
+ "coding-agent",
28
+ "binary",
29
+ "prebuilt"
30
+ ],
31
+ "os": [
32
+ "android"
33
+ ],
34
+ "cpu": [
35
+ "arm64"
36
+ ],
37
+ "bin": {
38
+ "reasonix": "bin/reasonix"
39
+ },
40
+ "files": [
41
+ "bin/",
42
+ "README.md",
43
+ "LICENSE"
44
+ ],
45
+ "engines": {
46
+ "node": ">=16"
15
47
  }
16
48
  }
package/index.js DELETED
@@ -1 +0,0 @@
1
- console.warn('此包为占位包,正在迁移中。。。'); module.exports = {};