dsh-codex-port 0.2.1 → 0.2.3

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.en.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  # dsh-codex-port
6
6
 
7
+ ## 0.2.3 update (2026-09-27)
8
+
9
+ Resolves the Codex directory from explicit codexHome, then CODEX_HOME, then ~/.codex. Custom and isolated homes can now discover plugin skills.
10
+
11
+ Validation host: Harness 0.1.7-rc.2 built from official sources, retaining the local tool-scheduler fix. Build and automated checks pass; interactive coverage and external-service limits are recorded in this release round.
12
+
7
13
  [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
8
14
 
9
15
  Move the whole **official Codex plugin family** into DSH: scan `~/.codex` unpacked plugins and plugin caches, then batch-port their skills into DSH skills (automatic frontmatter conversion, codex-only files stripped, name sanitization, idempotent skips).
@@ -12,7 +18,7 @@ Move the whole **official Codex plugin family** into DSH: scan `~/.codex` unpack
12
18
 
13
19
  ## Compatibility
14
20
 
15
- Verified against `@deepseek-ai/dsh@0.1.2-alpha.2` on 2026-08-31. Built for the cordis patch-bundle plugin model (`cordis.patch.yml` + `dsh.bundle.patch`). No runtime imports of `@deepseek-ai/*` internals.
21
+ Verified with official `@deepseek-ai/dsh@0.1.5-rc.1` and Node `24.16.0` on 2026-09-11: all 18 components load alongside Modlens, with passing tool-schema, skill-registration and offline read-only invocation checks. Uses the `cordis.patch.yml` + `dsh.bundle.patch` bundle model. Node requirements match this Harness release: 22.19 or later within 22.x, or 24 or later. Live external-service workflows require separate configuration and validation.
16
22
 
17
23
  ## Installation
18
24
 
package/README.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # dsh-codex-port
4
4
 
5
+ ## 0.2.3 更新(2026-09-27)
6
+
7
+ Codex 目录按显式 codexHome、CODEX_HOME、默认 ~/.codex 的顺序解析,修复自定义或隔离目录无法发现插件技能的问题。
8
+
9
+ 验证宿主:官方源码构建的 Harness 0.1.7-rc.2(保留本地工具调度器修复)。构建与自动测试通过;实际操作和外部服务限制见本轮验收记录。
10
+
5
11
  > **Codex 全家桶,一条命令进 DSH**:实测 186 插件、583 技能、移植 577 个 0 失败。
6
12
 
7
13
  ![npm version](https://img.shields.io/npm/v/dsh-codex-port?label=npm&color=blue) ![npm downloads](https://img.shields.io/npm/dm/dsh-codex-port) ![license](https://img.shields.io/npm/l/dsh-codex-port) ![stars](https://img.shields.io/github/stars/STARDUSTLC666/dsh-codex-port?style=social)
@@ -15,7 +21,7 @@
15
21
 
16
22
  ## 兼容性
17
23
 
18
- 在 `@deepseek-ai/dsh@0.1.2-alpha.2` 上验证(2026-08-31)。遵循 cordis 组合包补丁模型(`cordis.patch.yml` + `dsh.bundle.patch`),运行时不 import 任何 `@deepseek-ai/*` 内部模块。
24
+ 已在官方 `@deepseek-ai/dsh@0.1.5-rc.1`、Node `24.16.0` 上验证(2026-09-11):18 个组件与 Modlens 同载,工具 schema、技能注册及离线只读调用检查通过。采用 `cordis.patch.yml` + `dsh.bundle.patch` 组合包模型。Node 要求与该版本 Harness 一致:22.19 及以上的 22.x,或 24 及以上。外部服务的实际业务操作需按各组件配置单独验证。
19
25
 
20
26
  ## 安装
21
27
 
package/cordis.patch.yml CHANGED
@@ -1,12 +1,12 @@
1
1
  # dsh-codex-port 组合包补丁:把 Codex 技能移植工具插件行插入 profile。
2
2
  # 本补丁按 id 覆盖;用户应在自己 profile 的 cordis.patch.yml 里覆盖本行的整个
3
- # config(见 README 的配置示例)。配置缺失时插件仍会加载,扫描默认 ~/.codex。
3
+ # config(见 README 的配置示例)。配置缺失时扫描 CODEX_HOME,未设置时使用 ~/.codex。
4
4
  #
5
5
  # 示例(用户 profile 的 cordis.patch.yml):
6
6
  # - id: codex-port
7
7
  # name: 'dsh-codex-port'
8
8
  # config:
9
- # # codexHome: C:\Users\you\.codex # Codex 家目录(默认 ~/.codex)
9
+ # # codexHome: C:\Users\you\.codex # 优先于 CODEX_HOME,默认 ~/.codex
10
10
  # # targetDir: C:\Users\you\.dsh\skills # 目标技能目录(默认 <DSH_HOME>/skills)
11
11
  # # overwrite: true # 覆盖同名技能(默认跳过)
12
12
  #
package/lib/config.js CHANGED
@@ -16,7 +16,9 @@ export function defaultTargetDir(env = process.env) {
16
16
  */
17
17
  export function resolveConfig(config) {
18
18
  const cfg = config ?? {};
19
- const codexHome = typeof cfg.codexHome === 'string' && cfg.codexHome.trim() !== '' ? cfg.codexHome.trim() : join(homedir(), '.codex');
19
+ const codexHome = typeof cfg.codexHome === 'string' && cfg.codexHome.trim() !== ''
20
+ ? cfg.codexHome.trim()
21
+ : process.env.CODEX_HOME?.trim() || join(homedir(), '.codex');
20
22
  const targetDir = typeof cfg.targetDir === 'string' && cfg.targetDir.trim() !== '' ? cfg.targetDir.trim() : defaultTargetDir();
21
23
  const overwrite = cfg.overwrite === true;
22
24
  return { codexHome, targetDir, overwrite };
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "dsh-codex-port",
3
- "version": "0.2.1",
4
- "description": "DSH 技能移植工具插件:把 ~/.codex 里的 Codex 官方插件(170+ 个)一键移植为 DSH 技能(codex_list / codex_port / codex_status),frontmatter 自动转换、名称清洗、幂等跳过。",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/index.d.ts",
11
- "default": "./lib/index.js"
12
- },
13
- "./cordis.patch.yml": "./cordis.patch.yml",
14
- "./package.json": "./package.json"
15
- },
16
- "files": [
17
- "lib",
18
- "cordis.patch.yml",
19
- "README.md",
20
- "README.en.md"
21
- ],
22
- "scripts": {
23
- "build": "tsc -p tsconfig.json",
24
- "typecheck": "tsc -p tsconfig.json --noEmit",
25
- "test": "pnpm run build && node --test \"test/*.test.mjs\"",
26
- "prepublishOnly": "pnpm run build"
27
- },
28
- "dsh": {
29
- "bundle": {
30
- "patch": "./cordis.patch.yml"
31
- }
32
- },
33
- "keywords": [
34
- "dsh",
35
- "deepseek-harness",
36
- "plugin",
37
- "codex",
38
- "skills",
39
- "migration",
40
- "dsh-plugin"
41
- ],
42
- "license": "MIT",
43
- "engines": {
44
- "node": ">=22"
45
- },
46
- "dependencies": {
47
- "yaml": "^2.9.0"
48
- },
49
- "devDependencies": {
50
- "@types/node": "^24.0.0",
51
- "typescript": "^5.6.0"
52
- },
53
- "repository": {
54
- "type": "git",
55
- "url": "git+https://github.com/STARDUSTLC666/dsh-codex-port.git"
56
- },
57
- "bugs": {
58
- "url": "https://github.com/STARDUSTLC666/dsh-codex-port/issues"
59
- },
60
- "homepage": "https://github.com/STARDUSTLC666/dsh-codex-port#readme",
61
- "author": "stardustlc",
62
- "packageManager": "pnpm@11.7.0"
63
- }
1
+ {
2
+ "name": "dsh-codex-port",
3
+ "version": "0.2.3",
4
+ "description": "DSH 技能移植插件:把 Codex 官方技能一键移植为 DSH 技能,frontmatter 自动转换、名称清洗、幂等跳过。",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./cordis.patch.yml": "./cordis.patch.yml",
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "lib",
18
+ "cordis.patch.yml",
19
+ "README.md",
20
+ "README.en.md"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit",
25
+ "test": "pnpm run build && node --test \"test/*.test.mjs\"",
26
+ "prepublishOnly": "pnpm run build"
27
+ },
28
+ "dsh": {
29
+ "bundle": {
30
+ "patch": "./cordis.patch.yml"
31
+ }
32
+ },
33
+ "keywords": [
34
+ "dsh",
35
+ "deepseek-harness",
36
+ "plugin",
37
+ "codex",
38
+ "skills",
39
+ "migration",
40
+ "dsh-plugin"
41
+ ],
42
+ "license": "MIT",
43
+ "engines": {
44
+ "node": "^22.19.0 || >=24.0.0"
45
+ },
46
+ "dependencies": {
47
+ "yaml": "^2.9.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "^24.0.0",
51
+ "typescript": "^5.6.0"
52
+ },
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "git+https://github.com/STARDUSTLC666/dsh-codex-port.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/STARDUSTLC666/dsh-codex-port/issues"
59
+ },
60
+ "homepage": "https://github.com/STARDUSTLC666/dsh-codex-port#readme",
61
+ "author": "stardustlc",
62
+ "packageManager": "pnpm@11.7.0"
63
+ }