@starlens-app/cli 0.1.3 → 0.1.4
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 +1 -1
- package/src/index.mjs +6 -2
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -1202,7 +1202,8 @@ async function runInstallSkillWizard(args, env) {
|
|
|
1202
1202
|
console.log("");
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
|
-
|
|
1205
|
+
// rl 在所有 raw-mode 交互结束后再创建,避免 wizardCheckbox 的 \r 泄漏进 readline 缓冲区
|
|
1206
|
+
let rl;
|
|
1206
1207
|
|
|
1207
1208
|
try {
|
|
1208
1209
|
// Step 1: 多选客户端
|
|
@@ -1220,6 +1221,9 @@ async function runInstallSkillWizard(args, env) {
|
|
|
1220
1221
|
console.log(`已选择:${clients.map(c => clientLabels[c]).join("、")}`);
|
|
1221
1222
|
}
|
|
1222
1223
|
|
|
1224
|
+
// wizardCheckbox(raw mode)完成后再创建 readline,避免 Enter 残留字符被提前消费
|
|
1225
|
+
rl = createReadlineInterface();
|
|
1226
|
+
|
|
1223
1227
|
const cwd = process.cwd();
|
|
1224
1228
|
|
|
1225
1229
|
// Step 2: 安装 Skill(默认是)
|
|
@@ -1389,7 +1393,7 @@ async function runInstallSkillWizard(args, env) {
|
|
|
1389
1393
|
console.log(` 3. 完整文档:${HOSTED_MCP_BASE_URL}/docs/integrations`);
|
|
1390
1394
|
console.log("");
|
|
1391
1395
|
} finally {
|
|
1392
|
-
rl
|
|
1396
|
+
rl?.close();
|
|
1393
1397
|
}
|
|
1394
1398
|
}
|
|
1395
1399
|
|