@cdoing/opentuicli 0.1.28 → 0.1.31

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.
Files changed (2) hide show
  1. package/bin/cdoing-tui +1 -14
  2. package/package.json +8 -7
package/bin/cdoing-tui CHANGED
@@ -25,12 +25,6 @@ if (envPath) {
25
25
  const scriptPath = fs.realpathSync(__filename)
26
26
  const scriptDir = path.dirname(scriptPath)
27
27
 
28
- // Cached binary path for fast subsequent launches
29
- const cached = path.join(scriptDir, ".cdoing-tui")
30
- if (fs.existsSync(cached)) {
31
- run(cached)
32
- }
33
-
34
28
  const platformMap = {
35
29
  darwin: "darwin",
36
30
  linux: "linux",
@@ -79,16 +73,9 @@ if (!resolved) {
79
73
  "No pre-built binary found for your platform (" + os.platform() + "-" + os.arch() + ").\n" +
80
74
  "Try manually installing " +
81
75
  names.map((n) => '"' + n + '"').join(" or ") +
82
- " package"
76
+ " package",
83
77
  )
84
78
  process.exit(1)
85
79
  }
86
80
 
87
- // Cache for fast subsequent launches
88
- try {
89
- fs.symlinkSync(resolved, cached)
90
- } catch {
91
- // ignore — cache is optional
92
- }
93
-
94
81
  run(resolved)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdoing/opentuicli",
3
- "version": "0.1.28",
3
+ "version": "0.1.31",
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",
@@ -13,9 +13,10 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "build": "bun run build.ts --single",
16
+ "build:dev": "bun run build.ts --single && node postinstall.mjs",
16
17
  "build:all": "bun run build.ts",
17
18
  "typecheck": "tsc --noEmit",
18
- "dev": "bun --watch src/index.ts",
19
+ "dev": "bun --preload ./preload.ts --watch src/index.ts",
19
20
  "start": "./dist/cdoing-tui-current/bin/cdoing-tui",
20
21
  "clean": "rm -rf dist"
21
22
  },
@@ -37,10 +38,10 @@
37
38
  },
38
39
  "license": "Apache-2.0",
39
40
  "optionalDependencies": {
40
- "@cdoing/opentuicli-darwin-arm64": "0.1.28",
41
- "@cdoing/opentuicli-darwin-x64": "0.1.28",
42
- "@cdoing/opentuicli-linux-arm64": "0.1.28",
43
- "@cdoing/opentuicli-linux-x64": "0.1.28",
44
- "@cdoing/opentuicli-windows-x64": "0.1.28"
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"
45
46
  }
46
47
  }