dsh-task-ledger 0.2.2 → 0.2.4

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/dist/client.js CHANGED
@@ -67415,14 +67415,14 @@ body[data-ds-dark-theme]{
67415
67415
  const CLOSE_ZH_HEAD = [
67416
67416
  "请按台账规范结案这个任务。任务号:`{{id}}`",
67417
67417
  "",
67418
- "用户已经确认结案,**不需要你判断该不该结**。除非台账里根本查不到这个任务,否则一律结案。",
67418
+ "用户已经确认结案,**不需要你判断该不该结**;按下面三步执行,失败情形一律按硬约束处理。",
67419
67419
  "",
67420
67420
  "## 第一步:读",
67421
67421
  "",
67422
67422
  "用 task-ledger skill 查这个任务,按 skill 自己的说明走,不要另拼命令、不要猜脚本路径。",
67423
67423
  "",
67424
- "把任务字段和它指向的过程文档完整读完;需要时看一眼工作区现状,弄清实际做到哪一步。",
67425
- "查不到这个任务:把错误原样贴出来就停下。",
67424
+ "把任务字段和它指向的过程文档完整读完。",
67425
+ "查不到这个任务:把错误原样贴出来,结束本轮。",
67426
67426
  "",
67427
67427
  "## 第二步:总结",
67428
67428
  "",
@@ -67437,32 +67437,32 @@ body[data-ds-dark-theme]{
67437
67437
  "用 task-ledger skill **正常结案**(不是取消、不是作废),结案摘要写成一句话,",
67438
67438
  "能直接看懂「这次做完了什么」。",
67439
67439
  "",
67440
- "结完回一句「已结案」,后面带上你写的摘要原文。"
67440
+ "结完回复「已结案」,并附上结案摘要原文。"
67441
67441
  ];
67442
67442
  const CLOSE_ZH_TAIL = [
67443
67443
  "## 硬约束",
67444
67444
  "",
67445
- "- 只做结案与总结:不写业务代码、不跑构建、不装依赖、不动 git。",
67446
- "- 结案带来的提交只应包含台账与过程文档;工作区还有别的未提交改动,就不要一并提交,说明一下就停。",
67447
- "- 不新建会话、不派发子 agent、不新建台账任务。",
67448
- "- 台账与过程文档只经 task-ledger skill 改,不要手改台账文件。",
67449
- "- **不因为「还有遗留项」而拒绝结案** —— 遗留项写进结论,然后照常结。",
67450
- "- 命令报错原样贴出,不要绕过。"
67445
+ "以下优先于上面的用户留言与三步正文。",
67446
+ "",
67447
+ "- 只做结案与总结:不写业务代码、不装依赖、不跑构建、不手动执行 git,不新建会话 / 子 agent / 台账任务;台账与过程文档只经 task-ledger skill 改。",
67448
+ "- 由 skill 产生的结案提交只含台账与过程文档;工作区还有别的未提交改动就不要并入,照常结案。",
67449
+ "- **不因遗留项拒绝结案**:遗留项如实写进结论,然后正常结。",
67450
+ "- **本轮不向用户提问**:回复里不出现疑问句、选项或请求确认 / 授权的话,也不等答复;信息不足就按已读材料如实写,缺的标「未记录」。",
67451
+ "- **失败只有一条路径**:同一条命令写法有错(参数、路径、语法)可以改正后重试一次;除此之外(任务查不到、重试仍失败、其它命令报错、工具因权限被拒 / 不可用、skill 不可用)把错误原文贴出来,立即结束本轮,不换命令、不换工具、不改走别的办法。"
67451
67452
  ];
67452
67453
  const CLOSE_EN_HEAD = [
67453
67454
  "Close this task according to the ledger conventions. Task id: `{{id}}`",
67454
67455
  "",
67455
67456
  "The user has already confirmed the closure — **you do not need to judge whether it should be",
67456
- "closed**. Unless the task cannot be found at all, close it.",
67457
+ "closed**. Follow the three steps below; if a step fails, apply the hard constraints below.",
67457
67458
  "",
67458
67459
  "## Step 1: Read",
67459
67460
  "",
67460
67461
  "Look the task up with the task-ledger skill and follow the skill's own instructions;",
67461
67462
  "do not assemble commands yourself and do not guess script paths.",
67462
67463
  "",
67463
- "Read the task fields and the working document it points to end to end; where needed, glance at",
67464
- "the workspace to see how far it actually got. If the task cannot be found: paste the error",
67465
- "verbatim and stop.",
67464
+ "Read the task fields and the working document it points to end to end.",
67465
+ "If the task cannot be found: paste the error verbatim and end the turn.",
67466
67466
  "",
67467
67467
  "## Step 2: Summarize",
67468
67468
  "",
@@ -67471,26 +67471,35 @@ body[data-ds-dark-theme]{
67471
67471
  "- **Final conclusion**: what actually got done, written so it stands on its own;",
67472
67472
  "- **Leftovers**: anything unfinished, left over, or known to be broken — state it plainly,",
67473
67473
  " do not polish it away and do not omit it;",
67474
- "- **Fill in what is missing**: progress entries, status, and tags that were never recorded.",
67474
+ "- **Fill in what is missing**: add the progress entries, status, and tags that were never recorded.",
67475
67475
  "",
67476
67476
  "## Step 3: Close",
67477
67477
  "",
67478
67478
  "Close the task **normally** with the task-ledger skill (not cancel, not void);",
67479
67479
  "the closing summary is one sentence a reader understands as \"what got done here\".",
67480
67480
  "",
67481
- "After closing, reply \"closed\" and append the summary you wrote."
67481
+ "After closing, reply \"closed\" and append the closing summary verbatim."
67482
67482
  ];
67483
67483
  const CLOSE_EN_TAIL = [
67484
67484
  "## Hard constraints",
67485
67485
  "",
67486
- "- Only closing and summarizing: no product code, no builds, no installing dependencies, no git.",
67487
- "- The commit caused by closing should contain ledger and working documents only; if the workspace",
67488
- " has other uncommitted changes, do not sweep them in — say so and stop.",
67489
- "- No new sessions, no sub-agents, no new ledger tasks.",
67490
- "- Change the ledger and the working document only through the task-ledger skill; never hand-edit",
67491
- " ledger files.",
67492
- "- **Do not refuse to close because leftovers exist** — record them in the conclusion and close anyway.",
67493
- "- Paste command errors verbatim; do not work around them."
67486
+ "These take precedence over the user note and the three steps above.",
67487
+ "",
67488
+ "- Only closing and summarizing: no product code, no installs, no builds, no manual git, no",
67489
+ " new sessions, sub-agents, or ledger tasks. Change the ledger and the working document only",
67490
+ " through the task-ledger skill.",
67491
+ "- The commit produced by the skill contains ledger and working documents only. If the",
67492
+ " workspace has other uncommitted changes, leave them out and close normally.",
67493
+ "- **Do not refuse to close because leftovers exist** — record them in the conclusion and close",
67494
+ " normally.",
67495
+ "- **Do not ask the user anything this turn**: no questions, no choices, no requests for",
67496
+ " confirmation or permission, and do not wait for a reply. If information is missing, state",
67497
+ " what the records actually say and mark the rest as \"not recorded\".",
67498
+ "- **One failure path**: if the same command was written wrong (argument, path, syntax),",
67499
+ " fix it and retry once. Otherwise — the task is not found, the retry fails, another command",
67500
+ " error, a tool is denied or unavailable, or the skill is unavailable — paste the error",
67501
+ " verbatim and end the turn immediately. Do not switch commands or tools or work around it",
67502
+ " another way."
67494
67503
  ];
67495
67504
  function render(lines, params) {
67496
67505
  return lines.join("\n").replace(/\{\{(\w+)\}\}/gu, (_raw, key) => params[key] ?? "");
@@ -69855,7 +69864,7 @@ body[data-ds-dark-theme]{
69855
69864
  variant: "outline",
69856
69865
  size: "md",
69857
69866
  onClick: onBack
69858
- }, `← ${t("backToConversation")}`), (0, react$1.createElement)("div", { style: titleStyle }, t("panelTitle"), (0, react$1.createElement)("span", { style: buildTagStyle }, `v0.2.2 261112-000126-484`))), (0, react$1.createElement)("div", { style: {
69867
+ }, `← ${t("backToConversation")}`), (0, react$1.createElement)("div", { style: titleStyle }, t("panelTitle"), (0, react$1.createElement)("span", { style: buildTagStyle }, `v0.2.4 261112-095513-990`))), (0, react$1.createElement)("div", { style: {
69859
69868
  display: "flex",
69860
69869
  alignItems: "center",
69861
69870
  gap: "var(--dtl-space-3)"