@neikyun/ciel 5.2.1 → 5.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neikyun/ciel",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
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",
@@ -93,7 +93,9 @@ function installClaude(targetDir, assets) {
93
93
  async function main() {
94
94
  if (process.env.CI || process.env.NO_CIEL_POSTINSTALL) return;
95
95
 
96
- const targetDir = process.cwd();
96
+ // INIT_CWD = répertoire où l'utilisateur a lancé npm install
97
+ // (npm lance les lifecycle scripts dans node_modules/<pkg>/, pas dans le projet)
98
+ const targetDir = process.env.INIT_CWD || process.cwd();
97
99
  const platforms = detectPlatforms(targetDir);
98
100
  const assetsDir = resolveAssets();
99
101