@neikyun/ciel 5.1.9 → 5.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neikyun/ciel",
3
- "version": "5.1.9",
3
+ "version": "5.2.0",
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",
@@ -191,19 +191,21 @@ async function main() {
191
191
  const action = isUpdate ? "mise à jour" : "configuration";
192
192
  console.log(`\n ${bold("✦ Ciel v" + CIEL_VERSION)} — ${action} pour ${cyan(platforms.join(" + "))}`);
193
193
 
194
- // Prompt (skip if unattended already accepted)
194
+ // Prompt (skip if non-interactive)
195
195
  let answer = "y";
196
- try {
197
- const readline = require("readline");
198
- const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
199
- answer = await new Promise((resolve) => {
200
- rl.question(` ${yellow("?")} ${isUpdate ? "Mettre à jour" : "Configurer"} Ciel ? ${green("(Y/n)")} `, (a) => {
201
- rl.close();
202
- resolve(a.trim().toLowerCase() || "y");
196
+ if (process.stdin.isTTY) {
197
+ try {
198
+ const readline = require("readline");
199
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
200
+ answer = await new Promise((resolve) => {
201
+ rl.question(` ${yellow("?")} ${isUpdate ? "Mettre à jour" : "Configurer"} Ciel ? ${green("(Y/n)")} `, (a) => {
202
+ rl.close();
203
+ resolve(a.trim().toLowerCase() || "y");
204
+ });
203
205
  });
204
- });
205
- } catch {
206
- answer = "y";
206
+ } catch {
207
+ answer = "y";
208
+ }
207
209
  }
208
210
 
209
211
  if (answer !== "y" && answer !== "yes") {