larkway 0.3.12 → 0.3.13
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 +1 -1
- package/README.zh.md +1 -1
- package/dist/main.js +3 -13
- package/package.json +1 -1
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.13**
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
package/README.zh.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -119066,18 +119066,8 @@ var CodexRunner = class {
|
|
|
119066
119066
|
// src/lark/profileBootstrap.ts
|
|
119067
119067
|
import { spawnSync } from "node:child_process";
|
|
119068
119068
|
function ensureLarkCliProfile(botId, profileName, appId, appSecret, _spawnSync = spawnSync, _console = console) {
|
|
119069
|
-
try {
|
|
119070
|
-
const showResult = _spawnSync("lark-cli", ["config", "show", "--profile", profileName], {
|
|
119071
|
-
encoding: "utf-8",
|
|
119072
|
-
timeout: 5e3
|
|
119073
|
-
});
|
|
119074
|
-
if (showResult.status === 0 && typeof showResult.stdout === "string" && showResult.stdout.includes(appId)) {
|
|
119075
|
-
return;
|
|
119076
|
-
}
|
|
119077
|
-
} catch {
|
|
119078
|
-
}
|
|
119079
119069
|
_console.log(
|
|
119080
|
-
`[larkway] bot "${botId}":
|
|
119070
|
+
`[larkway] bot "${botId}": provisioning lark-cli profile "${profileName}" for app ${appId.slice(0, 8)}\u2026`
|
|
119081
119071
|
);
|
|
119082
119072
|
try {
|
|
119083
119073
|
const initResult = _spawnSync(
|
|
@@ -119090,11 +119080,11 @@ function ensureLarkCliProfile(botId, profileName, appId, appSecret, _spawnSync =
|
|
|
119090
119080
|
}
|
|
119091
119081
|
);
|
|
119092
119082
|
if (initResult.status === 0) {
|
|
119093
|
-
_console.log(`[larkway] bot "${botId}": lark-cli profile "${profileName}"
|
|
119083
|
+
_console.log(`[larkway] bot "${botId}": lark-cli profile "${profileName}" provisioned OK.`);
|
|
119094
119084
|
} else {
|
|
119095
119085
|
const stderr = typeof initResult.stderr === "string" ? initResult.stderr.trim() : "";
|
|
119096
119086
|
_console.warn(
|
|
119097
|
-
`[larkway] WARNING: bot "${botId}" failed to
|
|
119087
|
+
`[larkway] WARNING: bot "${botId}" failed to provision lark-cli profile "${profileName}" (exit ${initResult.status}${stderr ? `: ${stderr}` : ""}). Multi-bot lark-cli calls may use the wrong app credentials. Fix: lark-cli config init --app-id ${appId} --app-secret-stdin --name ${profileName}`
|
|
119098
119088
|
);
|
|
119099
119089
|
}
|
|
119100
119090
|
} catch (err) {
|