task-ledger 1.3.12 → 1.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/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: task-ledger
3
3
  description: 本地任务台账,跨会话记录在办任务的归属、进度与起止。当用户要登记一件新的事(新建任务 / 建个坑 / 这活我领了)、记录已有任务的进展(接着做 / 记一条进展 / 这轮先记下)、查看任务状态或历史(现在该做什么 / 这活谁在做 / 上周做过什么)、给任务结案或退回(做完了 / 验收通过 / 不做了 / 退回待认领)、整理标签或检查台账一致性时加载;只是改代码、讨论方案时不要用。
4
- version: 1.3.12
4
+ version: 1.3.13
5
5
  allowed-tools: Read,Edit,Bash,Grep
6
6
  ---
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-ledger",
3
- "version": "1.3.12",
3
+ "version": "1.3.13",
4
4
  "description": "Task-ledger skill for coding agents: per-workspace progress tracking (ledger/pool.json + owners/<hash>.json shards + owners.json index, history, worklog) driven by a CLI script. Standalone install for CodeBuddy and other agents; also bundled inside the dsh-task-ledger DSH plugin.",
5
5
  "keywords": [
6
6
  "skill",
@@ -325,15 +325,14 @@ def _select_identity(opts: list[dict], *, title: str) -> tuple[str, int | None]:
325
325
  tty.setraw(fd)
326
326
  sys.stdout.write("\x1b[?25l") # 隐藏光标
327
327
  while True:
328
- rows = _frame(sel)
329
328
  if drew:
330
- sys.stdout.write(f"\x1b[{height}A") # 回到本块第一行
329
+ sys.stdout.write("\x1b[1A" * height) # 相对上移回块顶
331
330
  else:
332
- sys.stdout.write("\r\n") # 从新行开始,避开 shell 提示
331
+ sys.stdout.write("\n") # 另起一行,不覆盖 shell 提示
333
332
  drew = True
334
- for row in rows:
335
- # raw 模式下 \n 不回行首,必须显式 \r\n,否则逐行右移
336
- sys.stdout.write("\r\x1b[K" + row + "\r\n")
333
+ # promptui 同款:每行「清整行 + 回车 + 内容 + LF」
334
+ for row in _frame(sel):
335
+ sys.stdout.write("\x1b[2K\r" + row + "\n")
337
336
  sys.stdout.flush()
338
337
 
339
338
  ch = sys.stdin.read(1)
@@ -356,8 +355,8 @@ def _select_identity(opts: list[dict], *, title: str) -> tuple[str, int | None]:
356
355
  finally:
357
356
  sys.stdout.write("\x1b[?25h") # 显示光标
358
357
  if drew:
359
- # 原地擦掉菜单块(不滚动主屏),光标留在块首,结果从这里打印
360
- sys.stdout.write(f"\x1b[{height}A\r\x1b[J")
358
+ # promptui 同款擦除:逐行「上移 + 清整行 + 回车」,不动主屏滚动
359
+ sys.stdout.write("\x1b[1A\x1b[2K\r" * height)
361
360
  termios.tcsetattr(fd, termios.TCSADRAIN, old)
362
361
  sys.stdout.flush()
363
362
  return result