@cdoing/opentuicli 0.1.31 → 0.1.32

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.
@@ -25,6 +25,12 @@ if (envPath) {
25
25
  const scriptPath = fs.realpathSync(__filename)
26
26
  const scriptDir = path.dirname(scriptPath)
27
27
 
28
+ // Check for hard-linked binary from postinstall
29
+ const localBinary = path.join(scriptDir, ".cdoing-tui")
30
+ if (fs.existsSync(localBinary)) {
31
+ run(localBinary)
32
+ }
33
+
28
34
  const platformMap = {
29
35
  darwin: "darwin",
30
36
  linux: "linux",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@cdoing/opentuicli",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "OpenTUI-based terminal interface for cdoing agent (inspired by opencode's TUI)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "cdoing-tui": "bin/cdoing-tui"
9
+ "cdoing-tui": "bin/cdoing-tui.cjs"
10
10
  },
11
11
  "files": [
12
12
  "bin/"
@@ -18,6 +18,7 @@
18
18
  "typecheck": "tsc --noEmit",
19
19
  "dev": "bun --preload ./preload.ts --watch src/index.ts",
20
20
  "start": "./dist/cdoing-tui-current/bin/cdoing-tui",
21
+ "postinstall": "node postinstall.mjs",
21
22
  "clean": "rm -rf dist"
22
23
  },
23
24
  "devDependencies": {
@@ -38,10 +39,10 @@
38
39
  },
39
40
  "license": "Apache-2.0",
40
41
  "optionalDependencies": {
41
- "@cdoing/opentuicli-darwin-arm64": "0.1.31",
42
- "@cdoing/opentuicli-darwin-x64": "0.1.31",
43
- "@cdoing/opentuicli-linux-arm64": "0.1.31",
44
- "@cdoing/opentuicli-linux-x64": "0.1.31",
45
- "@cdoing/opentuicli-windows-x64": "0.1.31"
42
+ "@cdoing/opentuicli-darwin-arm64": "0.1.32",
43
+ "@cdoing/opentuicli-darwin-x64": "0.1.32",
44
+ "@cdoing/opentuicli-linux-arm64": "0.1.32",
45
+ "@cdoing/opentuicli-linux-x64": "0.1.32",
46
+ "@cdoing/opentuicli-windows-x64": "0.1.32"
46
47
  }
47
48
  }