larkway 0.3.60 → 0.3.62

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 CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  You @ the bot in a Feishu thread. It runs on your machine — reading your real codebase, executing commands, opening MRs — and posts the result back. You define what the agent knows and what it can do. Larkway just carries the messages.
10
10
 
11
- **Current release: v0.3.60**
11
+ **Current release: v0.3.62**
12
12
 
13
13
  ---
14
14
 
package/README.zh.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  你在飞书话题里 @ bot,它在你的机器上运行——读真实代码库、执行命令、开 MR——把结果贴回飞书。你定义 agent 知道什么、能做什么。Larkway 只负责传递消息。
10
10
 
11
- **当前版本:v0.3.60**
11
+ **当前版本:v0.3.62**
12
12
 
13
13
  ---
14
14
 
package/bin/larkway.mjs CHANGED
@@ -16,22 +16,31 @@ import path from "node:path";
16
16
  import { fileURLToPath, pathToFileURL } from "node:url";
17
17
 
18
18
  if (process.platform === "win32") {
19
- // The bridge runtime depends on POSIX tooling (bash supervisor, pgrep, lsof),
20
- // so native Windows is not supported yet fail fast with guidance instead of
21
- // crashing later with an obscure error.
22
- console.error(
23
- [
24
- "larkway 暂不支持原生 Windows 运行(依赖 bash / pgrep 等 POSIX 工具)。",
25
- "推荐在 WSL(Windows Subsystem for Linux)中安装使用:",
26
- " 1. 安装 WSL: https://learn.microsoft.com/windows/wsl/install",
27
- " 2. WSL 终端内安装 Node.js 20+,然后 `npm i -g larkway`",
28
- " 3. Claude Code / Codex 也需安装在 WSL 内",
29
- "",
30
- "larkway does not yet support native Windows (it depends on POSIX tooling",
31
- "such as bash and pgrep). Please install and run it inside WSL instead.",
32
- ].join("\n"),
33
- );
34
- process.exit(1);
19
+ // Native Windows support is implemented (cross-spawn layer + schtasks
20
+ // service adapter) but not yet validated on real hardware, so it stays
21
+ // behind an explicit opt-in until then. Default: fail fast with WSL
22
+ // guidance instead of letting users hit rough edges unwarned.
23
+ if (process.env.LARKWAY_EXPERIMENTAL_WINDOWS === "1") {
24
+ console.error(
25
+ "[larkway] native Windows support is EXPERIMENTAL (LARKWAY_EXPERIMENTAL_WINDOWS=1) — please report issues.",
26
+ );
27
+ } else {
28
+ console.error(
29
+ [
30
+ "larkway 的原生 Windows 支持仍在验证中,默认未开放。",
31
+ "推荐在 WSL(Windows Subsystem for Linux)中安装使用:",
32
+ " 1. 安装 WSL: https://learn.microsoft.com/windows/wsl/install",
33
+ " 2. 在 WSL 终端内安装 Node.js 20+,然后 `npm i -g larkway`",
34
+ " 3. Claude Code / Codex 也需安装在 WSL 内",
35
+ "",
36
+ "想帮忙试用原生 Windows(实验性):设置环境变量 LARKWAY_EXPERIMENTAL_WINDOWS=1 后重试,并欢迎反馈问题。",
37
+ "",
38
+ "Native Windows support is implemented but still being validated.",
39
+ "Use WSL for now, or set LARKWAY_EXPERIMENTAL_WINDOWS=1 to try the experimental native mode.",
40
+ ].join("\n"),
41
+ );
42
+ process.exit(1);
43
+ }
35
44
  }
36
45
 
37
46
  const selfPath = fileURLToPath(import.meta.url);