@neikyun/ciel 5.2.12 → 5.2.14
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/bin/ciel.js +19 -1
- package/package.json +1 -1
- package/scripts/postinstall.cjs +3 -0
package/bin/ciel.js
CHANGED
|
@@ -75,11 +75,11 @@ function detectPlatforms() {
|
|
|
75
75
|
// ---- Installer une plateforme ----
|
|
76
76
|
function installOpenCode() {
|
|
77
77
|
let total = 0;
|
|
78
|
-
// Nettoyer ancien plugin curl
|
|
79
78
|
const old = join(targetDir, ".opencode/plugins/ciel.ts");
|
|
80
79
|
if (existsSync(old)) { try { unlinkSync(old); } catch {} }
|
|
81
80
|
total += copyDir(join(ASSETS, "platforms/opencode/.opencode/agents"), join(targetDir, ".opencode/agents"));
|
|
82
81
|
total += copyDir(join(ASSETS, "platforms/opencode/.opencode/commands"), join(targetDir, ".opencode/commands"));
|
|
82
|
+
total += copyDir(join(ASSETS, "skills"), join(targetDir, ".opencode/skills"));
|
|
83
83
|
if (existsSync(join(ASSETS, "platforms/opencode/AGENTS.md"))) {
|
|
84
84
|
copyFileSync(join(ASSETS, "platforms/opencode/AGENTS.md"), join(targetDir, "AGENTS.md"));
|
|
85
85
|
total++;
|
|
@@ -88,6 +88,24 @@ function installOpenCode() {
|
|
|
88
88
|
return total;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
function installClaude() {
|
|
92
|
+
let total = 0;
|
|
93
|
+
total += copyDir(join(ASSETS, ".claude/agents"), join(targetDir, ".claude/agents"));
|
|
94
|
+
total += copyDir(join(ASSETS, ".claude/hooks"), join(targetDir, ".claude/hooks"));
|
|
95
|
+
total += copyDir(join(ASSETS, "commands"), join(targetDir, ".claude/commands"));
|
|
96
|
+
total += copyDir(join(ASSETS, "skills"), join(targetDir, ".claude/skills"));
|
|
97
|
+
if (existsSync(join(ASSETS, ".claude/settings.json"))) {
|
|
98
|
+
copyFileSync(join(ASSETS, ".claude/settings.json"), join(targetDir, ".claude/settings.json"));
|
|
99
|
+
}
|
|
100
|
+
if (existsSync(join(ASSETS, "CLAUDE.md"))) {
|
|
101
|
+
copyFileSync(join(ASSETS, "CLAUDE.md"), join(targetDir, "CLAUDE.md"));
|
|
102
|
+
}
|
|
103
|
+
return total;
|
|
104
|
+
}
|
|
105
|
+
if (patchOpencodeJson(targetDir)) total++;
|
|
106
|
+
return total;
|
|
107
|
+
}
|
|
108
|
+
|
|
91
109
|
function installClaude() {
|
|
92
110
|
let total = 0;
|
|
93
111
|
total += copyDir(join(ASSETS, ".claude/agents"), join(targetDir, ".claude/agents"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neikyun/ciel",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.14",
|
|
4
4
|
"description": "Ciel — Deep-reasoning pipeline for LLM-assisted development. OpenCode plugin + multi-platform CLI (OpenCode, Claude Code, more).",
|
|
5
5
|
"main": "./dist/plugin/index.js",
|
|
6
6
|
"types": "./dist/plugin/index.d.ts",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -68,6 +68,8 @@ function installOpenCode(targetDir, assets) {
|
|
|
68
68
|
count += copyDir(join(assets, "platforms/opencode/.opencode/agents"), join(targetDir, ".opencode/agents"));
|
|
69
69
|
// Copier commandes
|
|
70
70
|
count += copyDir(join(assets, "platforms/opencode/.opencode/commands"), join(targetDir, ".opencode/commands"));
|
|
71
|
+
// Copier skills (OpenCode supporte aussi les skills)
|
|
72
|
+
count += copyDir(join(assets, "skills"), join(targetDir, ".opencode/skills"));
|
|
71
73
|
// Copier AGENTS.md
|
|
72
74
|
if (existsSync(join(assets, "platforms/opencode/AGENTS.md"))) {
|
|
73
75
|
copyFileSync(join(assets, "platforms/opencode/AGENTS.md"), join(targetDir, "AGENTS.md"));
|
|
@@ -96,6 +98,7 @@ function installClaude(targetDir, assets) {
|
|
|
96
98
|
count += copyDir(join(assets, ".claude/agents"), join(targetDir, ".claude/agents"));
|
|
97
99
|
count += copyDir(join(assets, ".claude/hooks"), join(targetDir, ".claude/hooks"));
|
|
98
100
|
count += copyDir(join(assets, "commands"), join(targetDir, ".claude/commands"));
|
|
101
|
+
count += copyDir(join(assets, "skills"), join(targetDir, ".claude/skills"));
|
|
99
102
|
const settings = join(assets, ".claude/settings.json");
|
|
100
103
|
if (existsSync(settings)) { copyFileSync(settings, join(targetDir, ".claude/settings.json")); count++; }
|
|
101
104
|
const claudeMd = join(assets, "CLAUDE.md");
|