@rooode/dsh-suite 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. package/bin/cli.js +24 -0
  2. package/package.json +2 -1
package/bin/cli.js CHANGED
@@ -271,6 +271,30 @@ function ensureProfileConfigured() {
271
271
  }
272
272
  }
273
273
  }
274
+
275
+ // Ensure @deepseek-ai/cordis-plugin-group is polyfilled in ~/.dsh and ~/.dsh/profiles/web
276
+ const groupDirs = [
277
+ path.join(profileNodeModules, '@deepseek-ai', 'cordis-plugin-group'),
278
+ path.join(dshDir, 'node_modules', '@deepseek-ai', 'cordis-plugin-group'),
279
+ ];
280
+ for (const gDir of groupDirs) {
281
+ if (!fs.existsSync(path.join(gDir, 'package.json'))) {
282
+ try {
283
+ fs.mkdirSync(path.join(gDir, 'lib'), { recursive: true });
284
+ fs.writeFileSync(path.join(gDir, 'package.json'), JSON.stringify({
285
+ name: '@deepseek-ai/cordis-plugin-group',
286
+ version: '1.0.2',
287
+ type: 'module',
288
+ main: 'lib/index.js',
289
+ exports: {
290
+ '.': './lib/index.js',
291
+ './package.json': './package.json'
292
+ }
293
+ }, null, 2), 'utf-8');
294
+ fs.writeFileSync(path.join(gDir, 'lib', 'index.js'), `import { Group } from '@deepseek-ai/cordis-plugin-loader';\nexport default Group;\nexport { Group };\n`, 'utf-8');
295
+ } catch (e) {}
296
+ }
297
+ }
274
298
  }
275
299
 
276
300
  // Check for help or version flags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rooode/dsh-suite",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "DeepSeek Harness 一键全功能增强套件 (自动化调度 + WebStorm Git 提交对比 + 代码文档多标签预览 + 对话快捷栏)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -41,6 +41,7 @@
41
41
  "author": "rooode",
42
42
  "license": "MIT",
43
43
  "dependencies": {
44
+ "@deepseek-ai/cordis-plugin-group": "^1.0.2",
44
45
  "@rooode/dsh-plugin-automation": "^0.2.4",
45
46
  "@rooode/dsh-plugin-git": "^0.1.6",
46
47
  "@rooode/dsh-plugin-preview": "^0.1.17",