@shelken/pi-co-authored-by 0.2.14 → 0.2.15

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
@@ -26,6 +26,8 @@ pi install npm:@shelken/pi-co-authored-by
26
26
 
27
27
  装好后 `/reload`。之后 agent 提交即可,无需额外命令。
28
28
 
29
+ runner 使用 `PATH` 中的 `bash`。macOS 上请将现代 Bash(例如 Bash 5.x)放在系统 `/bin/bash` 前,避免 Bash 3.2 解析 `$(cat <<'EOF' … EOF)` 中的反引号或引号时导致提交失败
30
+
29
31
  ## 配置
30
32
 
31
33
  无配置文件。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelken/pi-co-authored-by",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "agent 执行 git commit 时自动追加 Co-Authored-By / Generated-By trailer",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/commit.ts CHANGED
@@ -50,7 +50,7 @@ export function wrapBashWithCommitHook(
50
50
  }
51
51
 
52
52
  function buildRunnerScript(): string {
53
- return `#!/bin/bash
53
+ return `#!/usr/bin/env bash
54
54
  # PI_CO_AUTHORED_BY_RUNNER
55
55
  export PI_CO_AUTHORED_BY_HOOK_SRC="$(dirname "$0")/prepare-commit-msg"
56
56