@unlaxer/dxe-suite 0.1.0

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 (3) hide show
  1. package/README.md +39 -0
  2. package/bin/dxe.js +61 -0
  3. package/package.json +36 -0
package/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # DxE-suite
2
+
3
+ DGE / DDE / DRE toolkit を一括インストール・管理するスイートパッケージ。
4
+
5
+ ```
6
+ D*E シリーズ:
7
+ DGE — Design-Gap Extraction 設計の穴を会話劇で発見
8
+ DDE — Document-Deficit Extraction ドキュメントの穴をLLM+CLIで発見
9
+ DRE — Document Rule Engine rules/skills/agentsをパッケージ化
10
+ ```
11
+
12
+ ## インストール
13
+
14
+ ```bash
15
+ npm install @unlaxer/dxe-suite
16
+ ```
17
+
18
+ ## 使い方
19
+
20
+ ```bash
21
+ # 全部インストール
22
+ npx dxe install
23
+
24
+ # 使いたいものだけ
25
+ npx dxe install dge
26
+ npx dxe install dde dre
27
+
28
+ # まとめてアップデート
29
+ npx dxe update
30
+
31
+ # インストール済みバージョン確認
32
+ npx dxe status
33
+ ```
34
+
35
+ ## 各 toolkit の詳細
36
+
37
+ - [DGE-toolkit](../DGE-toolkit/README.md) — 会話劇で設計の穴を抽出
38
+ - [DDE-toolkit](../DDE-toolkit/README.md) — ドキュメントの穴をLLM+CLIで補完
39
+ - [DRE-toolkit](../DRE-toolkit/README.md) — Claude Code の rules/skills/agents を配布・管理
package/bin/dxe.js ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+ // dxe — DxE Suite CLI
3
+ // Usage:
4
+ // npx dxe install 全toolkit をインストール
5
+ // npx dxe install dge DGE のみ
6
+ // npx dxe install dde dre DDE + DRE
7
+ // npx dxe update 全toolkit をアップデート
8
+ // npx dxe status インストール済みバージョンを表示
9
+
10
+ const { execSync } = require('child_process');
11
+ const path = require('path');
12
+
13
+ const TOOLKITS = {
14
+ dge: { pkg: '@unlaxer/dge-toolkit', install: 'dge-install', update: 'dge-update' },
15
+ dde: { pkg: '@unlaxer/dde-toolkit', install: 'dde-install', update: 'dde-update' },
16
+ dre: { pkg: '@unlaxer/dre-toolkit', install: 'dre-install', update: 'dre-update' },
17
+ };
18
+
19
+ const [,, command, ...args] = process.argv;
20
+ const targets = args.length > 0 ? args : Object.keys(TOOLKITS);
21
+
22
+ function run(cmd) {
23
+ console.log(`\n → ${cmd}`);
24
+ execSync(cmd, { stdio: 'inherit' });
25
+ }
26
+
27
+ if (command === 'install') {
28
+ for (const name of targets) {
29
+ const tk = TOOLKITS[name];
30
+ if (!tk) { console.error(`Unknown toolkit: ${name}`); process.exit(1); }
31
+ console.log(`\n[${name.toUpperCase()}] installing...`);
32
+ run(`npx ${tk.install}`);
33
+ }
34
+ } else if (command === 'update') {
35
+ for (const name of targets) {
36
+ const tk = TOOLKITS[name];
37
+ if (!tk) { console.error(`Unknown toolkit: ${name}`); process.exit(1); }
38
+ console.log(`\n[${name.toUpperCase()}] updating...`);
39
+ run(`npx ${tk.update}`);
40
+ }
41
+ } else if (command === 'status') {
42
+ for (const [name, tk] of Object.entries(TOOLKITS)) {
43
+ try {
44
+ const pkg = require(path.join(process.cwd(), 'node_modules', tk.pkg, 'package.json'));
45
+ console.log(` ${name.toUpperCase()}: ${pkg.version}`);
46
+ } catch {
47
+ console.log(` ${name.toUpperCase()}: not installed`);
48
+ }
49
+ }
50
+ } else {
51
+ console.log(`
52
+ DxE Suite — DGE / DDE / DRE toolkit manager
53
+
54
+ Usage:
55
+ npx dxe install 全toolkit をインストール
56
+ npx dxe install dge DGE のみ
57
+ npx dxe install dde dre DDE + DRE
58
+ npx dxe update 全toolkit をアップデート
59
+ npx dxe status インストール済みバージョンを表示
60
+ `);
61
+ }
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@unlaxer/dxe-suite",
3
+ "version": "0.1.0",
4
+ "description": "DxE Suite — DGE / DDE / DRE toolkit を一括インストール・管理するスイートパッケージ",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/xxx/DxE-suite"
9
+ },
10
+ "keywords": [
11
+ "claude-code",
12
+ "claude-config",
13
+ "dge",
14
+ "dde",
15
+ "dre",
16
+ "dxe",
17
+ "llm",
18
+ "suite"
19
+ ],
20
+ "bin": {
21
+ "dxe": "./bin/dxe.js"
22
+ },
23
+ "peerDependencies": {
24
+ "@unlaxer/dge-toolkit": ">=3.0.0",
25
+ "@unlaxer/dde-toolkit": ">=1.0.0",
26
+ "@unlaxer/dre-toolkit": ">=0.1.0"
27
+ },
28
+ "peerDependenciesMeta": {
29
+ "@unlaxer/dge-toolkit": { "optional": true },
30
+ "@unlaxer/dde-toolkit": { "optional": true },
31
+ "@unlaxer/dre-toolkit": { "optional": true }
32
+ },
33
+ "scripts": {
34
+ "postinstall": "node -e \"console.log('\\n DxE Suite installed.\\n Run: npx dxe install\\n to set up DGE / DDE / DRE in your project.\\n')\""
35
+ }
36
+ }