dsh-task-ledger 0.0.88 → 0.0.89
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/package.json +1 -1
- package/skill/SKILL.md +2 -2
- package/skill/package.json +1 -1
- package/skill/scripts/ledgerkit/shell/cli.py +25 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-task-ledger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "Task ledger board for dsh (DeepSeek Harness): read-only board over task-ledger skill workspaces. The task-ledger skill is bundled — install the plugin, get the skill globally.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek",
|
package/skill/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: task-ledger
|
|
3
3
|
description: 本地任务台账,跨会话记录在办任务的归属、进度与起止。当用户要登记一件新的事(新建任务 / 建个坑 / 这活我领了)、记录已有任务的进展(接着做 / 记一条进展 / 这轮先记下)、查看任务状态或历史(现在该做什么 / 这活谁在做 / 上周做过什么)、给任务结案或退回(做完了 / 验收通过 / 不做了 / 退回待认领)、整理标签或检查台账一致性时加载;只是改代码、讨论方案时不要用。
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.15
|
|
5
5
|
allowed-tools: Read,Edit,Bash,Grep
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -45,7 +45,7 @@ allowed-tools: Read,Edit,Bash,Grep
|
|
|
45
45
|
| `--claim <uuid>` | 认领名册里已有的 uuid(名字一起复制) |
|
|
46
46
|
| `--new --name "…"` | 新建身份:生成 uuid + 名字 |
|
|
47
47
|
|
|
48
|
-
干什么:写本机身份文件(`~/.taskledger/identity.json`),**一台机器只一次**,与台账无关。在终端里**裸跑 `init` 即交互式选择框**:读当前仓库名册,用**上下箭头**移动、**Enter** 认领某个身份,末尾「+ 新建身份」可输入新用户名自建;名册为空则直接让你输入用户名;选定或输入名字后需 **Y/N
|
|
48
|
+
干什么:写本机身份文件(`~/.taskledger/identity.json`),**一台机器只一次**,与台账无关。在终端里**裸跑 `init` 即交互式选择框**:读当前仓库名册,用**上下箭头**移动、**Enter** 认领某个身份,末尾「+ 新建身份」可输入新用户名自建;名册为空则直接让你输入用户名;选定或输入名字后需 **Y/N 确认**才写入(选 **N** 会返回选择菜单重新选,不会直接退出);**ESC 或 Ctrl-C** 可随时取消。全程要真终端。`--claim <uuid>` / `--new --name "<名字>"` 也只接受真终端,agent 的无终端调用会被脚本拒绝。
|
|
49
49
|
|
|
50
50
|
### new — 建任务
|
|
51
51
|
|
package/skill/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "task-ledger",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
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",
|
|
@@ -390,12 +390,9 @@ def _select_identity(opts: list[dict], *, title: str) -> tuple[str, int | None]:
|
|
|
390
390
|
|
|
391
391
|
|
|
392
392
|
def _confirm(question: str) -> bool:
|
|
393
|
-
"""Y/N 确认:Y 返回 True,N
|
|
393
|
+
"""Y/N 确认:Y 返回 True,N 返回 False;Ctrl-C/Ctrl-D 向上抛,当作取消退出。"""
|
|
394
394
|
while True:
|
|
395
|
-
|
|
396
|
-
ans = input(question + " [Y/N]:").strip().lower()
|
|
397
|
-
except (EOFError, KeyboardInterrupt):
|
|
398
|
-
return False
|
|
395
|
+
ans = input(question + " [Y/N]:").strip().lower()
|
|
399
396
|
if ans in ("y", "yes"):
|
|
400
397
|
return True
|
|
401
398
|
if ans in ("n", "no"):
|
|
@@ -447,27 +444,33 @@ def _run_init(args: argparse.Namespace) -> int:
|
|
|
447
444
|
"请重跑:init --claim=<uuid> 认领,或 init --new --name=<名字> 新建"
|
|
448
445
|
)
|
|
449
446
|
return 0
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
if not prompt_name:
|
|
459
|
-
print("\x1b[2m✕ 未输入用户名,已取消。\x1b[0m")
|
|
460
|
-
return 0
|
|
461
|
-
if not _confirm(f"您确认要用「{prompt_name}」这个名称新建账户吗?"):
|
|
462
|
-
print("\x1b[2m✕ 已取消,未做任何更改。\x1b[0m")
|
|
447
|
+
while True:
|
|
448
|
+
kind, idx = _select_identity(
|
|
449
|
+
opts, title="这台机器还没初始化。选择你的身份,或新建一个:"
|
|
450
|
+
)
|
|
451
|
+
if kind == "cancel":
|
|
452
|
+
print(
|
|
453
|
+
"\x1b[2m✕ 已取消初始化。随时可重跑 init 重新开始。\x1b[0m"
|
|
454
|
+
)
|
|
463
455
|
return 0
|
|
464
|
-
|
|
465
|
-
|
|
456
|
+
if kind == "new":
|
|
457
|
+
prompt_name = input("输入用户名:").strip()
|
|
458
|
+
if not prompt_name:
|
|
459
|
+
print("\x1b[2m✕ 未输入用户名,已取消。\x1b[0m")
|
|
460
|
+
return 0
|
|
461
|
+
if not _confirm(
|
|
462
|
+
f"您确认要用「{prompt_name}」这个名称新建账户吗?"
|
|
463
|
+
):
|
|
464
|
+
continue # N:回到选择菜单重来
|
|
465
|
+
res = init_identity(
|
|
466
|
+
repo, claim=None, new=True, name=prompt_name
|
|
467
|
+
)
|
|
468
|
+
break
|
|
466
469
|
chosen = opts[idx]
|
|
467
470
|
if not _confirm(f"您确认是要使用「@{chosen['name']}」这个身份吗?"):
|
|
468
|
-
|
|
469
|
-
return 0
|
|
471
|
+
continue # N:回到选择菜单重来
|
|
470
472
|
res = init_identity(repo, claim=chosen["uuid"], new=False, name="")
|
|
473
|
+
break
|
|
471
474
|
else:
|
|
472
475
|
# 名册空:交互输入名字;非终端交给用户去终端跑(init_identity 会报需要名字)
|
|
473
476
|
prompt_name = input("输入用户名:").strip() if tty else ""
|