dsh-skill-harbor 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 drscrewdriver
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # dsh-skill-harbor(技能港湾)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > 占位仓库 —— 项目启动占位,代码尚未落地。
4
+
5
+ DSH 技能管理面板插件:技能发现 / 遮蔽判定 / 审计 / 市场管理。
6
+
7
+ - npm 包名:`dsh-skill-harbor`(截至 2026-11-29 未占用)
8
+ - 版本线:`0.0.0`(核实)→ `0.1.0`(证据层)→ `0.2.0`(本地管理)→ `0.3.0`(预算与审计 = MVP)→ `0.4.0`(市场)
9
+ - 发布粒度:每个 Phase 一个中版本,每个 task 一次 rc
10
+ - 开发计划:见 `.agents/plans/dsh-skill-harbor/`(spec / tasks / checklist / findings)
11
+
12
+ 状态:🚧 规划完成,等待实现。
@@ -0,0 +1,4 @@
1
+ # dsh-skill-harbor bundle patch — mounts the plugin via the official CLI.
2
+ - insert:
3
+ - id: dsh-skill-harbor
4
+ name: 'dsh-skill-harbor'
@@ -0,0 +1,16 @@
1
+ {
2
+ "id": "dsh-external/dsh-skill-harbor",
3
+ "version": "0.0.1",
4
+ "main": "./lib/index.js",
5
+ "description": "技能港湾:技能发现、遮蔽判定、审计与市场管理(基础骨架)",
6
+ "engines": {
7
+ "dsh": ">=0.1.7-rc.1"
8
+ },
9
+ "contributes": {
10
+ "tools": [],
11
+ "skills": []
12
+ },
13
+ "client": {
14
+ "main": "./lib/client.js"
15
+ }
16
+ }
package/lib/client.js ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * dsh-skill-harbor — client half (skeleton).
3
+ * Registration id MUST equal the npm package name, or DSH silently ignores it.
4
+ */
5
+ const id = 'dsh-skill-harbor'
6
+
7
+ function factory() {
8
+ return { id, ready: true }
9
+ }
10
+
11
+ if (typeof window !== 'undefined' && window.__ModuleLoader__?.load) {
12
+ window.__ModuleLoader__.load({ id, factory })
13
+ }
14
+
15
+ export { id, factory }
package/lib/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * dsh-skill-harbor — host half (skeleton).
3
+ * Real skill discovery / shadowing / audit / market logic lands in Phase 0~4.
4
+ */
5
+ export const name = 'dsh-skill-harbor'
6
+
7
+ export function apply(ctx, config = {}) {
8
+ // Phase 1+: ctx.skills.registerProvider(...) wrapped in ctx.effect + mounted() guard.
9
+ return {
10
+ name,
11
+ config,
12
+ skills: [],
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,47 @@
1
1
  {
2
2
  "name": "dsh-skill-harbor",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "DSH 技能港湾:技能发现、遮蔽判定、审计与市场管理插件(基础骨架)",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/drscrewdriver/dsh-skill-harbor"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org"
14
+ },
15
+ "main": "lib/index.js",
16
+ "exports": {
17
+ ".": "./lib/index.js",
18
+ "./client": "./lib/client.js",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "engines": {
22
+ "node": ">=20"
23
+ },
24
+ "dsh": {
25
+ "bundle": {
26
+ "patch": "./cordis.patch.yml"
27
+ },
28
+ "client": {
29
+ "inject": [],
30
+ "platform": "web"
31
+ },
32
+ "manifestVersion": 1
33
+ },
34
+ "files": [
35
+ "lib",
36
+ "src",
37
+ "cordis.patch.yml",
38
+ "dsh.plugin.json",
39
+ "README.md",
40
+ "LICENSE"
41
+ ],
42
+ "scripts": {
43
+ "build": "node scripts/build.mjs",
44
+ "prepublishOnly": "npm run build",
45
+ "test": "node -e \"console.log('skeleton ok')\""
46
+ }
47
+ }
package/src/client.js ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * dsh-skill-harbor — client half (skeleton).
3
+ * Registration id MUST equal the npm package name, or DSH silently ignores it.
4
+ */
5
+ const id = 'dsh-skill-harbor'
6
+
7
+ function factory() {
8
+ return { id, ready: true }
9
+ }
10
+
11
+ if (typeof window !== 'undefined' && window.__ModuleLoader__?.load) {
12
+ window.__ModuleLoader__.load({ id, factory })
13
+ }
14
+
15
+ export { id, factory }
package/src/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * dsh-skill-harbor — host half (skeleton).
3
+ * Real skill discovery / shadowing / audit / market logic lands in Phase 0~4.
4
+ */
5
+ export const name = 'dsh-skill-harbor'
6
+
7
+ export function apply(ctx, config = {}) {
8
+ // Phase 1+: ctx.skills.registerProvider(...) wrapped in ctx.effect + mounted() guard.
9
+ return {
10
+ name,
11
+ config,
12
+ skills: [],
13
+ }
14
+ }