dsh-codex-port 0.2.2 → 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).
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)
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,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-codex-port",
3
- "version": "0.2.2",
4
- "description": "DSH 技能移植工具插件:把 ~/.codex 里的 Codex 官方插件(170+ 个)一键移植为 DSH 技能(codex_list / codex_port / codex_status),frontmatter 自动转换、名称清洗、幂等跳过。",
3
+ "version": "0.2.3",
4
+ "description": "DSH 技能移植插件:把 Codex 官方技能一键移植为 DSH 技能,frontmatter 自动转换、名称清洗、幂等跳过。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",