@klarkxy/dsh-dev-index 0.1.0 → 0.1.1
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/README.md +7 -5
- package/README.zh-CN.md +7 -5
- package/dsh.plugin.json +2 -2
- package/lib/skill-body.d.ts +4 -2
- package/lib/skill-body.js +34 -7
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,28 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
[Chinese documentation](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
A DeepSeek Harness bundle that
|
|
5
|
+
A DeepSeek Harness bundle that walks an agent through a short workflow: confirm the target DSH version, prefer the official plugin-development skill and runtime inspection when they exist, pick a task, then verify the plugin. The docs stay outside this package.
|
|
6
6
|
|
|
7
|
-
The index itself is not in this package. `docs/` in [klarkxy/dsh-plugins](https://github.com/klarkxy/dsh-plugins) is the only copy, and it is published at [https://klarkxy.github.io/dsh-plugins/](https://klarkxy.github.io/dsh-plugins/). `docs/meta.json` records `officialTag` and `officialCommit` for the [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) revision those pages describe. Every area names the official file it came from. The index does not invent APIs.
|
|
7
|
+
The index itself is not in this package. `docs/` in [klarkxy/dsh-plugins](https://github.com/klarkxy/dsh-plugins) is the only copy, and it is published at [https://klarkxy.github.io/dsh-plugins/](https://klarkxy.github.io/dsh-plugins/). `docs/meta.json` records `officialTag` and `officialCommit` for the [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) revision those pages describe. Every area, task, and architecture-rules page names the official file it came from. The index does not invent APIs.
|
|
8
8
|
|
|
9
9
|
## Why a skill
|
|
10
10
|
|
|
11
11
|
DSH's agent-facing knowledge contract is a skill on `ctx.skills`. `@deepseek-ai/dsh-skill` documents `ctx.skills.register` for an embedded instruction set, and `@deepseek-ai/dsh-tool-skill` puts model-invocable skills in the session catalog and loads them with the `skill` tool. A preset would replace the agent's composition. A tool would have to be called before the agent knew the index existed. A host-level skill is listed beside the agent's other skills and stays available in every base-backed profile.
|
|
12
12
|
|
|
13
|
-
On `apply`, this plugin registers the skill `dsh-dev-index`. The body
|
|
13
|
+
On `apply`, this plugin registers the skill `dsh-dev-index`. The body is a short workflow, then the fetch list. It tells the agent to compare `meta.json` `officialTag` and `officialCommit` with the target DSH version and, on a mismatch, to treat the pages as unverified. It does not embed that revision, so a daily docs refresh does not require a new package release.
|
|
14
14
|
|
|
15
15
|
- `https://klarkxy.github.io/dsh-plugins/llms.txt`
|
|
16
16
|
- `https://klarkxy.github.io/dsh-plugins/index.json`
|
|
17
17
|
- `https://klarkxy.github.io/dsh-plugins/meta.json`
|
|
18
|
+
- `https://klarkxy.github.io/dsh-plugins/tasks/index.md`
|
|
19
|
+
- `https://klarkxy.github.io/dsh-plugins/tasks/<id>.md`
|
|
18
20
|
- `https://klarkxy.github.io/dsh-plugins/areas/<id>.md`
|
|
19
21
|
|
|
20
|
-
English is the default. Human-readable pages also exist in Simplified Chinese under `zh/` (for example `zh/llms.txt` and `zh/areas/<id>.md`). `index.json` and `meta.json` stay in English.
|
|
22
|
+
English is the default. Human-readable pages also exist in Simplified Chinese under `zh/` (for example `zh/llms.txt`, `zh/tasks/<id>.md`, and `zh/areas/<id>.md`). `index.json` and `meta.json` stay in English.
|
|
21
23
|
|
|
22
24
|
If Pages does not respond, the same paths are on GitHub `main`:
|
|
23
25
|
|
|
24
26
|
`https://raw.githubusercontent.com/klarkxy/dsh-plugins/main/docs/`
|
|
25
27
|
|
|
26
|
-
The body also lists area ids so the agent knows which
|
|
28
|
+
The body also lists task ids and area ids so the agent knows which files exist. It does not copy page text.
|
|
27
29
|
|
|
28
30
|
`sdk-minimal` does not mount `@deepseek-ai/dsh-skill`. There the plugin stays pending because it injects `skills`. Web, headless, sdk, and acp build on `@deepseek-ai/dsh-base`, which mounts the registry.
|
|
29
31
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,28 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
[English documentation](README.md)
|
|
4
4
|
|
|
5
|
-
这是一个 DeepSeek Harness bundle
|
|
5
|
+
这是一个 DeepSeek Harness bundle。它给 agent 一段短流程:确认目标 DSH 版本,在官方插件开发技能和运行时检查可用时优先使用它们,再选一个任务并验证插件。文档不在这个包里。
|
|
6
6
|
|
|
7
|
-
索引正文不在这个包里。[klarkxy/dsh-plugins](https://github.com/klarkxy/dsh-plugins) 仓库的 `docs/` 是唯一副本,并发布在 [https://klarkxy.github.io/dsh-plugins/](https://klarkxy.github.io/dsh-plugins/)。`docs/meta.json` 记录这些页面所描述的 [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) 修订:`officialTag` 与 `officialCommit
|
|
7
|
+
索引正文不在这个包里。[klarkxy/dsh-plugins](https://github.com/klarkxy/dsh-plugins) 仓库的 `docs/` 是唯一副本,并发布在 [https://klarkxy.github.io/dsh-plugins/](https://klarkxy.github.io/dsh-plugins/)。`docs/meta.json` 记录这些页面所描述的 [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) 修订:`officialTag` 与 `officialCommit`。每个 area、任务和架构规则页都标明官方文件路径。索引不发明 API。
|
|
8
8
|
|
|
9
9
|
## 为什么用 skill
|
|
10
10
|
|
|
11
11
|
DSH 面向 agent 的知识契约是 `ctx.skills` 上的 skill。`@deepseek-ai/dsh-skill` 用 `ctx.skills.register` 登记嵌入式说明,`@deepseek-ai/dsh-tool-skill` 把模型可调用的 skill 放进会话目录,并用 `skill` 工具加载。Preset 会换掉 agent 的组合。工具必须先被调用,agent 才知道索引存在。宿主层 skill 会和其他 skill 一起出现在目录里,base 上的 profile 都能用。
|
|
12
12
|
|
|
13
|
-
`apply` 时本插件登记 skill `dsh-dev-index
|
|
13
|
+
`apply` 时本插件登记 skill `dsh-dev-index`。正文先是一段短流程,再列出读取地址。它让 agent 把 `meta.json` 的 `officialTag`、`officialCommit` 和目标 DSH 版本比较;不一致时把页面当作未经核实。正文不写入该修订,因此每天刷新 `docs/` 不需要发布新的插件包。
|
|
14
14
|
|
|
15
15
|
- `https://klarkxy.github.io/dsh-plugins/llms.txt`
|
|
16
16
|
- `https://klarkxy.github.io/dsh-plugins/index.json`
|
|
17
17
|
- `https://klarkxy.github.io/dsh-plugins/meta.json`
|
|
18
|
+
- `https://klarkxy.github.io/dsh-plugins/tasks/index.md`
|
|
19
|
+
- `https://klarkxy.github.io/dsh-plugins/tasks/<id>.md`
|
|
18
20
|
- `https://klarkxy.github.io/dsh-plugins/areas/<id>.md`
|
|
19
21
|
|
|
20
|
-
英文是默认语言。给人读的页面在 `zh/` 下另有简体中文版(例如 `zh/llms.txt` 和 `zh/areas/<id>.md`)。`index.json` 和 `meta.json` 保持英文。Agent 默认仍读取上面的英文文件。
|
|
22
|
+
英文是默认语言。给人读的页面在 `zh/` 下另有简体中文版(例如 `zh/llms.txt`、`zh/tasks/<id>.md` 和 `zh/areas/<id>.md`)。`index.json` 和 `meta.json` 保持英文。Agent 默认仍读取上面的英文文件。
|
|
21
23
|
|
|
22
24
|
Pages 没有响应时,同样的路径在 GitHub 的 `main` 上:
|
|
23
25
|
|
|
24
26
|
`https://raw.githubusercontent.com/klarkxy/dsh-plugins/main/docs/`
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
正文还列出任务 id 和 area id,方便 agent 知道有哪些文件。它不复制页面正文。
|
|
27
29
|
|
|
28
30
|
`sdk-minimal` 没有挂载 `@deepseek-ai/dsh-skill`。本插件 `inject` 了 `skills`,在那里会一直等待。`web`、`headless`、`sdk` 和 `acp` 建立在 `@deepseek-ai/dsh-base` 上,base 会挂载这个注册表。
|
|
29
31
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "@klarkxy/dsh-dev-index",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
|
-
"description": "DeepSeek Harness
|
|
5
|
+
"description": "Workflow skill that helps an agent pick a DeepSeek Harness extension mechanism and deliver a verified plugin.",
|
|
6
6
|
"engines": {
|
|
7
7
|
"dsh": ">=0.1.7-rc.2 <0.2.0"
|
|
8
8
|
},
|
package/lib/skill-body.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const RAW_DOCS_BASE = "https://raw.githubusercontent.com/klarkxy/dsh-plugins/main/docs/";
|
|
2
2
|
export declare const SKILL_NAME = "dsh-dev-index";
|
|
3
|
-
export declare const SKILL_DESCRIPTION = "
|
|
4
|
-
export declare const SKILL_WHEN_TO_USE = "Use
|
|
3
|
+
export declare const SKILL_DESCRIPTION = "Pick a DeepSeek Harness extension mechanism and deliver a verified plugin. Prefer the official plugin-development skill and runtime inspection inside DSH. Cite pinned docs. Do not invent APIs.";
|
|
4
|
+
export declare const SKILL_WHEN_TO_USE = "Use for DSH secondary development when choosing how to extend the harness: tools, execution policy, settings UI, panels, session-derived state, or providers.";
|
|
5
5
|
/** Area ids the skill names so an agent knows what to fetch. Docs stay authoritative. */
|
|
6
6
|
export declare const AREA_IDS: readonly ["orientation", "plugin-module", "bundle-profile-patch", "cli", "tools", "skills", "presets-persona", "system-prompt", "sessions-titles", "llm-providers", "hooks", "mcp", "ui-slots", "settings-approval", "plugin-manager-inspect", "other-seams"];
|
|
7
|
+
/** Task ids. The architecture-rules guide is a page, not a task pack. */
|
|
8
|
+
export declare const TASK_IDS: readonly ["add-a-tool", "add-a-tool-policy", "add-a-settings-ui", "add-a-ui-panel", "add-session-derived-state", "implement-or-replace-a-provider"];
|
|
7
9
|
export declare function renderSkillBody(pagesBaseUrl: string): string;
|
|
8
10
|
//# sourceMappingURL=skill-body.d.ts.map
|
package/lib/skill-body.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const BODY_LIMIT = 7500;
|
|
2
2
|
export const RAW_DOCS_BASE = "https://raw.githubusercontent.com/klarkxy/dsh-plugins/main/docs/";
|
|
3
3
|
export const SKILL_NAME = "dsh-dev-index";
|
|
4
|
-
export const SKILL_DESCRIPTION = "
|
|
5
|
-
export const SKILL_WHEN_TO_USE = "Use
|
|
4
|
+
export const SKILL_DESCRIPTION = "Pick a DeepSeek Harness extension mechanism and deliver a verified plugin. Prefer the official plugin-development skill and runtime inspection inside DSH. Cite pinned docs. Do not invent APIs.";
|
|
5
|
+
export const SKILL_WHEN_TO_USE = "Use for DSH secondary development when choosing how to extend the harness: tools, execution policy, settings UI, panels, session-derived state, or providers.";
|
|
6
6
|
/** Area ids the skill names so an agent knows what to fetch. Docs stay authoritative. */
|
|
7
7
|
export const AREA_IDS = [
|
|
8
8
|
"orientation",
|
|
@@ -22,26 +22,53 @@ export const AREA_IDS = [
|
|
|
22
22
|
"plugin-manager-inspect",
|
|
23
23
|
"other-seams",
|
|
24
24
|
];
|
|
25
|
+
/** Task ids. The architecture-rules guide is a page, not a task pack. */
|
|
26
|
+
export const TASK_IDS = [
|
|
27
|
+
"add-a-tool",
|
|
28
|
+
"add-a-tool-policy",
|
|
29
|
+
"add-a-settings-ui",
|
|
30
|
+
"add-a-ui-panel",
|
|
31
|
+
"add-session-derived-state",
|
|
32
|
+
"implement-or-replace-a-provider",
|
|
33
|
+
];
|
|
25
34
|
export function renderSkillBody(pagesBaseUrl) {
|
|
26
35
|
const lines = [
|
|
27
|
-
"
|
|
28
|
-
"
|
|
36
|
+
"Deliver a verified DeepSeek Harness plugin. Do not invent APIs. This skill does not bundle a copy of the docs.",
|
|
37
|
+
"",
|
|
38
|
+
"1. Confirm the development goal and the target DSH version: the tag or commit the process is actually running.",
|
|
39
|
+
"2. Read meta.json. officialTag and officialCommit are the DSH revision these pages were written against. If the target version differs, treat every page as unverified for that version and check type declarations and source pinned to the target commit. Do not silently substitute this index for another version.",
|
|
40
|
+
"3. Inside a running DSH, check whether the official cordis-plugin-development skill and the runtime tools cordis_inspect_list and cordis_inspect_query are available. Prefer that skill for install, configuration, and debugging, and prefer those tools for what is actually mounted. cordis_inspect_query does not itself request danger-full-access. Every plugin_manager action does. The environment's tool permission policy still applies to both.",
|
|
41
|
+
"4. Outside DSH, do not assume those tools exist. Read the docs, type declarations, and source pinned to the target version. Mark every conclusion that could not be runtime-verified.",
|
|
42
|
+
"5. Open the task index, pick one task, and load the linked area pages, official contracts, and constraints. Read tasks/architecture-rules.md before choosing a mechanism.",
|
|
43
|
+
"6. Verify the exact APIs you will call. Use runtime inspection when it is available. Otherwise use the pinned types. Do not copy an API from memory.",
|
|
44
|
+
"7. Implement, then run that task's verification checklist.",
|
|
45
|
+
"8. Report which checklist items were verified and which remain unverified.",
|
|
29
46
|
"",
|
|
30
|
-
"
|
|
47
|
+
"Context7 (/deepseek-ai/deepseek-harness) tracks master. Use it only as a secondary source for scattered examples. It is not this index's pinned revision. If it disagrees with the target version, ignore it.",
|
|
48
|
+
"",
|
|
49
|
+
"Fetch the English index from GitHub Pages:",
|
|
31
50
|
`- ${pagesBaseUrl}llms.txt`,
|
|
32
51
|
`- ${pagesBaseUrl}index.json`,
|
|
33
52
|
`- ${pagesBaseUrl}meta.json`,
|
|
53
|
+
`- ${pagesBaseUrl}tasks/index.md`,
|
|
54
|
+
`- ${pagesBaseUrl}tasks/<id>.md`,
|
|
55
|
+
`- ${pagesBaseUrl}tasks/architecture-rules.md`,
|
|
34
56
|
`- ${pagesBaseUrl}areas/<id>.md`,
|
|
35
57
|
"",
|
|
36
|
-
"index.json
|
|
37
|
-
"Simplified Chinese human-readable pages exist under zh/ on the same hosts (zh/llms.txt and zh/areas/<id>.md). index.json and meta.json stay in English.",
|
|
58
|
+
"index.json lists task ids, guide ids, and area ids. meta.json records officialTag and officialCommit. English is the default. Simplified Chinese human-readable pages live under zh/ (zh/llms.txt, zh/tasks/<id>.md, zh/areas/<id>.md). index.json and meta.json stay in English.",
|
|
38
59
|
"",
|
|
39
60
|
"If the Pages site does not respond, fetch the same files from GitHub main:",
|
|
40
61
|
`- ${RAW_DOCS_BASE}llms.txt`,
|
|
41
62
|
`- ${RAW_DOCS_BASE}index.json`,
|
|
42
63
|
`- ${RAW_DOCS_BASE}meta.json`,
|
|
64
|
+
`- ${RAW_DOCS_BASE}tasks/index.md`,
|
|
65
|
+
`- ${RAW_DOCS_BASE}tasks/<id>.md`,
|
|
66
|
+
`- ${RAW_DOCS_BASE}tasks/architecture-rules.md`,
|
|
43
67
|
`- ${RAW_DOCS_BASE}areas/<id>.md`,
|
|
44
68
|
"",
|
|
69
|
+
"Task ids:",
|
|
70
|
+
...TASK_IDS.map((id) => `- ${id}`),
|
|
71
|
+
"",
|
|
45
72
|
"Area ids:",
|
|
46
73
|
...AREA_IDS.map((id) => `- ${id}`),
|
|
47
74
|
];
|
package/locale/en.json
CHANGED
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klarkxy/dsh-dev-index",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "DeepSeek Harness
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Workflow skill that helps an agent pick a DeepSeek Harness extension mechanism and deliver a verified plugin.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"dsh-plugin",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"registry": "https://registry.npmjs.org/"
|
|
85
85
|
},
|
|
86
86
|
"dshRelease": {
|
|
87
|
-
"contentHash": "
|
|
87
|
+
"contentHash": "271e90a176f8975205471618d07c5841fdbddbb080174f6e53c8226b6175b476"
|
|
88
88
|
}
|
|
89
89
|
}
|