larkway 0.3.59 → 0.3.61
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 +2 -1
- package/README.zh.md +1 -1
- package/bin/larkway.mjs +25 -16
- package/dist/cli/index.js +11825 -7205
- package/dist/main.js +10863 -6618
- package/package.json +8 -6
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.
|
|
11
|
+
**Current release: v0.3.61**
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -163,6 +163,7 @@ Secrets live only in `~/.larkway/.env` (mode 0600). Config and memory contain no
|
|
|
163
163
|
- **Session continuity** — every Feishu thread maps to a persistent `session_id`; the agent remembers what it did in prior turns
|
|
164
164
|
- **Agent Workspace** — each bot gets its own workspace where the agent clones the repo itself, with per-thread session dirs; concurrent threads don't trip over each other's git state (expect disk usage and a slower first turn on large repos — clones are per-session, GC'd after 24h idle)
|
|
165
165
|
- **Codex runtime pre-checks** — `larkway doctor` validates Codex state directory writability before start
|
|
166
|
+
- **OS-service daemon** — `larkway start` registers the bridge with launchd (macOS) / systemd (Linux): survives reboots and auto-restarts on crash; `larkway stop` stops it and disables autostart
|
|
166
167
|
- **Topic ↔ Feishu task handle** — turn a topic into a Feishu task and the agent claims it, then keeps its lifecycle (done/failed/reopened, stalled, handed off, overdue) in sync automatically — see below
|
|
167
168
|
|
|
168
169
|
---
|
package/README.zh.md
CHANGED
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
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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);
|