dsh-task-ledger 0.1.9 → 0.1.10

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.
@@ -3,9 +3,10 @@ export interface SkillRegistration {
3
3
  name: string;
4
4
  description: string;
5
5
  content: string;
6
+ /** 宿主加载期必填:register() 不补默认值,缺了要等模型调用 skill 才报错。 */
7
+ source: "runtime";
6
8
  whenToUse?: string;
7
9
  path?: string;
8
- source?: string;
9
10
  resourceBase?: {
10
11
  kind: "directory";
11
12
  path: string;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 内嵌 skill 的注册体组装(任务 2「skill 注册最小闭环」)。
3
- * 宿主事实(0.2.0-rc.2 npm pack 亲验):docs/dependencies/dsh-skill-registration.md。
3
+ * 宿主事实(0.2.2-rc.1 npm pack 亲验):docs/dependencies/dsh-skill-registration.md。
4
4
  */
5
5
  import { readFileSync } from "node:fs";
6
6
  import { fileURLToPath } from "node:url";
@@ -44,5 +44,11 @@ export function buildSkillRegistration(skillDir = SKILL_DIR) {
44
44
  if (!content.includes(`${skillDir}/scripts/progress`)) {
45
45
  throw new Error("占位符替换异常:替换后找不到脚本路径");
46
46
  }
47
- return { name, description, content, path: `${skillDir}/SKILL.md` };
47
+ return {
48
+ name,
49
+ description,
50
+ content,
51
+ source: "runtime",
52
+ path: `${skillDir}/SKILL.md`,
53
+ };
48
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-task-ledger",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
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": [
@@ -32,7 +32,7 @@
32
32
  "build:host": "node scripts/clean-dist.mjs && tsc && node scripts/copy-skill.mjs",
33
33
  "build:client": "tsc --noEmit -p tsconfig.client.json && tsdown --config tsdown.client.config.ts",
34
34
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.client.json",
35
- "verify": "npm run build && npm run typecheck"
35
+ "verify": "npm run build && npm run typecheck && node scripts/verify-skill.mjs"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.5"