@tea-agent/loop-agent 0.28.10 → 0.28.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.28.11] - 2026-08-06
6
+
7
+ ### 重点更新
8
+
9
+ - 修复 Night Scheduler 收尾提交因前导空格处理不当导致变更路径截断、暂存失败的问题
10
+
11
+ ### 修复
12
+
13
+ - Night Scheduler 收尾提交改用 trimEnd 替代 trim,保留 git porcelain 格式的前导空格,修复 worktree-only 变更路径被截断(如 src/hello.js 变为 rc/hello.js)导致 git add 失败的问题
14
+
5
15
  ## [0.28.10] - 2026-08-05
6
16
 
7
17
  ### 重点更新
@@ -26,11 +26,14 @@ export async function createNightClosingCommit(input) {
26
26
  reason: card.ok ? "task card required for closing commit" : card.reason,
27
27
  };
28
28
  }
29
+ // Never full String#trim() porcelain: a leading space is the index column for
30
+ // worktree-only changes (` M path`). Trimming turns ` M src/a` into `M src/a`,
31
+ // which parseGitStatusPorcelain then mis-reads as `rc/a`.
29
32
  const status = (await runGit(input.workspaceRoot, [
30
33
  "status",
31
34
  "--porcelain=v1",
32
35
  "--untracked-files=all",
33
- ])).trim();
36
+ ])).trimEnd();
34
37
  if (!status) {
35
38
  return { ok: false, reason: "no changes to commit after execution" };
36
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tea-agent/loop-agent",
3
- "version": "0.28.10",
3
+ "version": "0.28.11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "loop-agent": "bin/loop-agent.js",