dsh-task-ledger 0.1.14 → 0.2.0

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.
@@ -1,7 +1,7 @@
1
1
  export type RulesLang = "zh" | "en";
2
2
  /** 恢复默认的唯一参照:中英各一份写死常量;用户保存的值另存,写入不覆盖它们。 */
3
3
  export declare const DEFAULT_RULES_TEXT_ZH: string;
4
- /** 英文与中文条目对齐,格式同为 `- **关键词**:…`;最后那句问话按定稿保留中文原句。 */
4
+ /** 英文与中文条目对齐,格式同为 `- **关键词**:…`;最后那句问话也要说英文(英文界面下出现中文原句是 bug)。 */
5
5
  export declare const DEFAULT_RULES_TEXT_EN: string;
6
6
  export interface RulesInjectionView {
7
7
  readonly enabled: boolean;
@@ -21,14 +21,14 @@ export const DEFAULT_RULES_TEXT_ZH = [
21
21
  "- **怎么建、按什么顺序**:命令的授权与确认口径,一律以 task-ledger skill 的说明为准。",
22
22
  "- **顺手问一句**:用户在推进一件跨轮的事(这轮答完、手上还有下一步动作没做完)、却从没提过记账时,答完问一次「你现在这个任务是需要帮你建一个台账吗?(如果无需,忽略这句话,也不用去回复。)」;本会话问过一次就别再问,用户不接就当他不需要。",
23
23
  ].join("\n");
24
- /** 英文与中文条目对齐,格式同为 `- **关键词**:…`;最后那句问话按定稿保留中文原句。 */
24
+ /** 英文与中文条目对齐,格式同为 `- **关键词**:…`;最后那句问话也要说英文(英文界面下出现中文原句是 bug)。 */
25
25
  export const DEFAULT_RULES_TEXT_EN = [
26
26
  "Usage rules for the task-ledger tool [task-ledger skill]:",
27
27
  "",
28
28
  "- **Task progress, work items and work logs**: (create / advance / query / close) go through the task-ledger skill; answer questions about progress and task history from it, never from conversation memory or a hand-rolled list.",
29
29
  '- **Creation anchor**: register a task only when the user explicitly asks for a new one ("open a task", "log this first", "create a task"); questions, queries, discussion and small incidental edits do not count — ask when unsure, and never create a task without an explicit instruction.',
30
30
  "- **How to create and in what order**: the authorization and confirmation rules all follow the task-ledger skill's own instructions.",
31
- '- **Ask in passing**: when the user is pushing forward work that spans turns (this turn ends with actions still on your plate) and has never mentioned tracking it, ask once after answering: "你现在这个任务是需要帮你建一个台账吗?(如果无需,忽略这句话,也不用去回复。)"; once asked in a session, do not ask again; no reply means ignore it.',
31
+ '- **Ask in passing**: when the user is pushing forward work that spans turns (this turn ends with actions still on your plate) and has never mentioned tracking it, ask once after answering: "Want me to open a ledger for this task? (Ignore this if not needed — no reply necessary.)"; once asked in a session, do not ask again; no reply means ignore it.',
32
32
  ].join("\n");
33
33
  const DEFAULTS = {
34
34
  zh: DEFAULT_RULES_TEXT_ZH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-task-ledger",
3
- "version": "0.1.14",
3
+ "version": "0.2.0",
4
4
  "description": "Tasks are created, claimed, advanced and closed by the agent and written straight into a plain-text ledger in the workspace, so the owner, the current state and the next step are always on record. It is not limited to development work — research, documentation, presentations and video production all fit. No cloud service is involved: everything is managed locally. Single-user and multi-user both work, with Git synchronisation, and every action is on record. The control panel summarises in-flight, overdue and stalled work with weekly trends.",
5
5
  "icon": "./assets/icon.svg",
6
6
  "keywords": [
package/skill/README.md CHANGED
@@ -103,7 +103,7 @@ The skill only loads when a request matches one of those intents, and "should th
103
103
  ```markdown
104
104
  - **Every piece of task progress, work item and work log (create / advance / query / close) goes through the `task-ledger` skill**; answer progress and history questions from it, never from conversation memory or a hand-rolled list.
105
105
  - **Creation anchor**: hand something to `task-ledger` only when the user explicitly asks for a new task ("open a task", "log this first", "create a task"). Questions, queries, discussion and small incidental edits do not count — ask when unsure, and never create a task without an explicit instruction.
106
- - **Ask in passing**: when the user is pushing forward work that spans turns (this turn ends with actions still on your plate) and has never mentioned tracking it, ask once after answering: "你现在这个任务是需要帮你建一个台账吗?(如果无需,忽略这句话,也不用去回复。)" Once asked in a session, do not ask again; no reply means ignore it.
106
+ - **Ask in passing**: when the user is pushing forward work that spans turns (this turn ends with actions still on your plate) and has never mentioned tracking it, ask once after answering: "Want me to open a ledger for this task? (Ignore this if not needed — no reply necessary.)" Once asked in a session, do not ask again; no reply means ignore it.
107
107
  ```
108
108
 
109
109
  Without it the skill still works — it just acts only when you mention the task yourself.