@neikyun/ciel 5.2.12 → 5.2.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.
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,29 @@ 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
+ const cielCmd = join(ASSETS, "platforms/opencode/.opencode/commands/ciel.md");
98
+ if (existsSync(cielCmd)) {
99
+ copyFileSync(cielCmd, join(targetDir, ".claude/commands/ciel.md"));
100
+ total++;
101
+ }
102
+ if (existsSync(join(ASSETS, ".claude/settings.json"))) {
103
+ copyFileSync(join(ASSETS, ".claude/settings.json"), join(targetDir, ".claude/settings.json"));
104
+ }
105
+ if (existsSync(join(ASSETS, "CLAUDE.md"))) {
106
+ copyFileSync(join(ASSETS, "CLAUDE.md"), join(targetDir, "CLAUDE.md"));
107
+ }
108
+ return total;
109
+ }
110
+ if (patchOpencodeJson(targetDir)) total++;
111
+ return total;
112
+ }
113
+
91
114
  function installClaude() {
92
115
  let total = 0;
93
116
  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.12",
3
+ "version": "5.2.13",
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",
@@ -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,13 @@ 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"));
102
+ // Copier ciel.md (commande principale) depuis les assets génériques OU OpenCode
103
+ const cielCmd = join(assets, "platforms/opencode/.opencode/commands/ciel.md");
104
+ if (existsSync(cielCmd)) {
105
+ copyFileSync(cielCmd, join(targetDir, ".claude/commands/ciel.md"));
106
+ count++;
107
+ }
99
108
  const settings = join(assets, ".claude/settings.json");
100
109
  if (existsSync(settings)) { copyFileSync(settings, join(targetDir, ".claude/settings.json")); count++; }
101
110
  const claudeMd = join(assets, "CLAUDE.md");