larkway 0.3.58 → 0.3.60

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/main.js CHANGED
@@ -115431,7 +115431,7 @@ async function renderPrompt(input) {
115431
115431
  ` lark-cli docs +get <doc-url>${profileFlag}`,
115432
115432
  "- \u53D6\u672C\u6761\u6D88\u606F\u7684\u9644\u4EF6/\u5185\u8054\u56FE(post \u5185\u8054\u56FE\u4E0D\u5728\u4E0A\u9762 attachments/images \u91CC)\u3001\u62C9\u8BDD\u9898\u5386\u53F2:",
115433
115433
  attachmentHelpLine,
115434
- "- glab / gh / git API",
115434
+ "- gh / glab / git API",
115435
115435
  "- pnpm / npm",
115436
115436
  "",
115437
115437
  chatHistoryFirst ? "**\u91CD\u8981**:\u8FD9\u662F\u5355\u804A/\u7C98\u8FDE session \u573A\u666F,\u4E0A\u4E0B\u6587\u5386\u53F2\u7528\u4E0A\u9762\u7684 chat-messages-list \u62C9\u53D6;\u4E0D\u8981\u628A `thread_id` \u5F53\u4F5C\u53EF\u62C9\u53D6\u7684\u6D88\u606F id \u4F7F\u7528\u3002" : "**\u91CD\u8981**:`thread_id` \u5C31\u662F\u8BDD\u9898\u9996\u697C\u7684 message_id\u3002\u5982\u679C\u5F53\u524D\u6D88\u606F attachments/feishu_doc_links \u4E3A\u7A7A,\u8BF4\u660E\u8FD0\u8425\u628A\u7D20\u6750\u653E\u5728\u9996\u697C,**\u5148\u62C9\u9996\u697C\u770B\u8FD0\u8425\u539F\u59CB\u9700\u6C42**,\u518D\u51B3\u5B9A\u4E0B\u4E00\u6B65\u3002",
@@ -118792,6 +118792,7 @@ stderr: ${stderr}`));
118792
118792
  var CORE_ALLOW_RULES = [
118793
118793
  "Bash(lark-cli *)",
118794
118794
  "Bash(git *)",
118795
+ "Bash(gh *)",
118795
118796
  "Bash(glab *)",
118796
118797
  "Bash(lsof *)",
118797
118798
  "Bash(curl *)",
@@ -127694,6 +127695,9 @@ function repoLooksGitLab(urlOrSlug) {
127694
127695
  function botUsesGitLab(bot) {
127695
127696
  return bot.repos.some((repo) => repoLooksGitLab(repo.url ?? repo.slug));
127696
127697
  }
127698
+ function botUsesGitHub(bot) {
127699
+ return bot.repos.some((repo) => !repoLooksGitLab(repo.url ?? repo.slug));
127700
+ }
127697
127701
  function addCliRequirement(requirements, input) {
127698
127702
  const existing = requirements.get(`cli:${input.command}`);
127699
127703
  if (existing) {
@@ -127777,6 +127781,16 @@ function runtimeRequirementsForBots(bots) {
127777
127781
  });
127778
127782
  }
127779
127783
  }
127784
+ if (botUsesGitHub(bot)) {
127785
+ addCliRequirement(requirements, {
127786
+ command: "gh",
127787
+ label: "GitHub CLI",
127788
+ severity: "optional",
127789
+ botIds: [bot.id],
127790
+ reason: "Only needed when an agent uses GitHub-specific actions such as PRs, issues, or releases.",
127791
+ installHint: "Install gh only for bots that need GitHub-specific workflow commands."
127792
+ });
127793
+ }
127780
127794
  if (botUsesGitLab(bot)) {
127781
127795
  addCliRequirement(requirements, {
127782
127796
  command: "glab",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkway",
3
- "version": "0.3.58",
3
+ "version": "0.3.60",
4
4
  "description": "Thin bridge: Feishu thread to local Claude Code CLI",
5
5
  "license": "MIT",
6
6
  "author": "Chuck Wu (chuckwu0)",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "type": "module",
19
19
  "bin": {
20
- "larkway": "bin/larkway"
20
+ "larkway": "bin/larkway.mjs"
21
21
  },
22
22
  "scripts": {
23
23
  "start": "tsx src/main.ts",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "files": [
56
56
  "dist/",
57
- "bin/larkway",
57
+ "bin/larkway.mjs",
58
58
  "README.md"
59
59
  ]
60
60
  }
package/bin/larkway DELETED
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env bash
2
- # larkway CLI shim — resolves the package root from this script's own location
3
- # so it works whether invoked via `bin/larkway`, an absolute path, or a symlink
4
- # on PATH (e.g. after `npm i -g`).
5
- #
6
- # Startup priority:
7
- # 1. dist/cli/index.js exists → `node dist/cli/index.js` (installed package / post-build)
8
- # 2. otherwise → `npx tsx src/cli/index.ts` (fresh clone dev mode, no build)
9
- set -euo pipefail
10
- SOURCE="${BASH_SOURCE[0]}"
11
- while [ -h "$SOURCE" ]; do
12
- DIR="$(cd -P "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)"
13
- SOURCE="$(readlink "$SOURCE")"
14
- [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
15
- done
16
- REPO_ROOT="$(cd -P "$(dirname "$SOURCE")/.." >/dev/null 2>&1 && pwd)"
17
-
18
- DIST_ENTRY="$REPO_ROOT/dist/cli/index.js"
19
-
20
- if [ -f "$DIST_ENTRY" ]; then
21
- exec node "$DIST_ENTRY" "$@"
22
- else
23
- # Dev fallback: run TypeScript source directly via tsx.
24
- exec npx tsx "$REPO_ROOT/src/cli/index.ts" "$@"
25
- fi