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 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.12**
11
+ **Current release: v0.3.13**
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.12**
11
+ **当前版本:v0.3.13**
12
12
 
13
13
  ---
14
14
 
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}": creating lark-cli profile "${profileName}" for app ${appId.slice(0, 8)}\u2026`
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}" created/updated OK.`);
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 create 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}`
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkway",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Thin bridge: Feishu thread to local Claude Code CLI",
5
5
  "license": "MIT",
6
6
  "author": "Chuck Wu (chuckwu0)",