tako-cli 0.3.17 → 0.3.19

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/dist/index.js CHANGED
@@ -5,9 +5,14 @@ const isOpentuiMissing = (error) => {
5
5
  return code === "ERR_MODULE_NOT_FOUND" || code === "MODULE_NOT_FOUND" || /@opentui\/core/.test(message);
6
6
  };
7
7
  const inkUrl = new URL("./index-ink.js", import.meta.url).href;
8
- try {
9
- await import(new URL("./index-opentui.js", import.meta.url).href);
10
- } catch (error) {
11
- if (!isOpentuiMissing(error)) throw error;
8
+ // Windows: OpenTUI 后端存在问题,直接使用 Ink 渲染后端
9
+ if (process.platform === "win32") {
12
10
  await import(inkUrl);
11
+ } else {
12
+ try {
13
+ await import(new URL("./index-opentui.js", import.meta.url).href);
14
+ } catch (error) {
15
+ if (!isOpentuiMissing(error)) throw error;
16
+ await import(inkUrl);
17
+ }
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tako-cli",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Tako CLI — unified launcher for AI coding tools (Claude Code, Codex, Gemini) with multi-agent session management",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/tako-dev/cli#readme",