task-ledger 1.2.8 → 1.2.9
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 +1 -1
- package/package.json +1 -1
- package/scripts/progress.py +22 -0
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: task-ledger
|
|
3
3
|
description: 本地任务台账,跨会话记录在办任务的归属、进度与起止。当用户要登记一件新的事(新建任务 / 建个坑 / 这活我领了)、记录已有任务的进展(接着做 / 记一条进展 / 这轮先记下)、查看任务状态或历史(现在该做什么 / 这活谁在做 / 上周做过什么)时加载;对某个具体任务要求结案或退回时,只认用户的明确指令;只是改代码、讨论方案时不要用。
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.9
|
|
5
5
|
allowed-tools: Read,Write,Bash,Grep
|
|
6
6
|
---
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "task-ledger",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Task-ledger skill for coding agents: per-workspace progress tracking (ledger/progress.json, 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",
|
package/scripts/progress.py
CHANGED
|
@@ -982,6 +982,28 @@ def git_presync(action: str, args: argparse.Namespace) -> None:
|
|
|
982
982
|
file=sys.stderr,
|
|
983
983
|
)
|
|
984
984
|
|
|
985
|
+
# 离线攒下的台账提交:联网后第一笔写先把它们推上去,别拿「有 N 个没推」挡住写入。
|
|
986
|
+
# 用户自己的业务提交不碰:push 会把它们一并带走,那个决定归用户(见 _rebase_retry)。
|
|
987
|
+
if ahead_n > 0:
|
|
988
|
+
g_tuple = ("git", "-C", str(git_root))
|
|
989
|
+
foreign_n, _ = _foreign_commits(g_tuple, upstream)
|
|
990
|
+
if foreign_n == 0:
|
|
991
|
+
pushed = _git(*g_tuple, "push", timeout=30)
|
|
992
|
+
if pushed.returncode != 0 and _rebase_retry(g_tuple):
|
|
993
|
+
pushed = _git(*g_tuple, "push", timeout=30)
|
|
994
|
+
if pushed.returncode == 0:
|
|
995
|
+
print(
|
|
996
|
+
f"提示:写前把本地 {ahead_n} 个未推送的提交推上去了。",
|
|
997
|
+
file=sys.stderr,
|
|
998
|
+
)
|
|
999
|
+
ahead_n = 0
|
|
1000
|
+
else:
|
|
1001
|
+
print(
|
|
1002
|
+
"提示:写前推送失败"
|
|
1003
|
+
f"({_why(pushed.stderr or pushed.stdout, f'退出码 {pushed.returncode}')})。",
|
|
1004
|
+
file=sys.stderr,
|
|
1005
|
+
)
|
|
1006
|
+
|
|
985
1007
|
root = str(git_root)
|
|
986
1008
|
progress_rel = f"{ledger_rel}/{PROGRESS_REL.name}"
|
|
987
1009
|
worklog_rel = f"{ledger_rel}/{WORKLOG_DIR.name}"
|