@legna-lnc/legnacode 1.3.6 → 1.3.7

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,26 @@
2
2
 
3
3
  All notable changes to LegnaCode CLI will be documented in this file.
4
4
 
5
+ ## [1.3.7] - 2026-04-09
6
+
7
+ ### Bug Fixes
8
+
9
+ - **Resume 会话检测** — `legna resume` 无法发现 v1.3.0+ 写入 `<project>/.legna/sessions/` 的会话。`getStatOnlyLogsForWorktrees()` 只扫描全局 `~/.legna/projects/`,现在同时扫描项目本地 sessions 目录,与 `fetchLogs()` 行为一致
10
+ - **Interrupted 诊断日志** — `onCancel()` 和 `query.ts` 中断点新增 abort reason + 调用栈日志,`--verbose` 模式下可追踪中断来源
11
+
12
+ ### Enhancements
13
+
14
+ - **Priority-now 中断可见性** — 排队命令中断当前任务时记录命令摘要到 debug 日志,不再静默 abort
15
+ - **后台任务状态可见性** — footer pill 单个后台 agent 显示实时活动摘要(最近工具 + token 统计),任务完成通知包含 progress 统计
16
+
17
+ ### Architecture
18
+
19
+ - `src/utils/sessionStorage.ts` — `getStatOnlyLogsForWorktrees()` Path A/B 均加入 `.legna/sessions/` 扫描
20
+ - `src/query.ts` — 两个 `createUserInterruptionMessage` 调用点加 abort reason 日志
21
+ - `src/screens/REPL.tsx` — `onCancel()` 调用栈日志,priority-now useEffect 记录命令摘要
22
+ - `src/tasks/pillLabel.ts` — 单 agent 任务显示 `getActivitySummary()` 实时活动
23
+ - `src/tasks/LocalMainSessionTask.ts` — `completeMainSessionTask` 捕获 progress,通知包含统计
24
+
5
25
  ## [1.3.6] - 2026-04-09
6
26
 
7
27
  ### Bug Fixes
package/README.md CHANGED
@@ -12,6 +12,7 @@ LegnaCode 是一个基于 Anthropic Claude 的智能终端编程助手,让你
12
12
 
13
13
  | 版本 | 日期 | 摘要 |
14
14
  |------|------|------|
15
+ | [1.3.7](./CHANGELOG.md#137---2026-04-09) | 2026-04-09 | Resume 会话检测修复,Interrupted 诊断日志,后台任务状态可见性增强 |
15
16
  | [1.3.6](./CHANGELOG.md#136---2026-04-09) | 2026-04-09 | 修复 Windows 路径分隔符导致 Edit 工具 "File has been unexpectedly modified" 误报 |
16
17
  | [1.3.5](./CHANGELOG.md#135---2026-04-07) | 2026-04-07 | 修复 SessionStart hook 报错,Windows alt-screen 渲染深度修复(消除 fullReset 闪烁) |
17
18
  | [1.3.4](./CHANGELOG.md#134---2026-04-07) | 2026-04-07 | OML Superpowers 工程纪律(/verify /tdd /debug /brainstorm 等 11 个 skill),SessionStart 技能引导 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legna-lnc/legnacode",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "LegnaCode — legna.lnc's official CLI for coding assistance",
5
5
  "type": "module",
6
6
  "bin": {
@@ -142,10 +142,10 @@
142
142
  "bun": ">=1.2.0"
143
143
  },
144
144
  "optionalDependencies": {
145
- "@legna-lnc/legnacode-darwin-arm64": "1.3.6",
146
- "@legna-lnc/legnacode-darwin-x64": "1.3.6",
147
- "@legna-lnc/legnacode-linux-x64": "1.3.6",
148
- "@legna-lnc/legnacode-linux-arm64": "1.3.6",
149
- "@legna-lnc/legnacode-win32-x64": "1.3.6"
145
+ "@legna-lnc/legnacode-darwin-arm64": "1.3.7",
146
+ "@legna-lnc/legnacode-darwin-x64": "1.3.7",
147
+ "@legna-lnc/legnacode-linux-x64": "1.3.7",
148
+ "@legna-lnc/legnacode-linux-arm64": "1.3.7",
149
+ "@legna-lnc/legnacode-win32-x64": "1.3.7"
150
150
  }
151
151
  }