codewave-openclaw-installer 2.3.0 → 2.3.1
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/install.mjs +7 -7
- package/package.json +1 -1
package/bin/install.mjs
CHANGED
|
@@ -841,11 +841,11 @@ async function collectInteractiveConfigWrites(missing, options = {}) {
|
|
|
841
841
|
env: process.env,
|
|
842
842
|
toolkitConfig,
|
|
843
843
|
});
|
|
844
|
-
console.log(dim(' [
|
|
844
|
+
console.log(dim(' [智能客服] 可配置外部知识目录;留空则继续使用 skill 自带 docs/'));
|
|
845
845
|
if (configuredDocsDir) {
|
|
846
846
|
console.log(dim(` 当前知识目录: ${configuredDocsDir}`));
|
|
847
847
|
}
|
|
848
|
-
const wantsDocsDir = await askYesNo('
|
|
848
|
+
const wantsDocsDir = await askYesNo(' 是否现在配置智能客服知识目录?[Y/n] ', false);
|
|
849
849
|
if (wantsDocsDir) {
|
|
850
850
|
const docsDir = await ask(' SMART_CS_DOCS_DIR / docsDir absolute path: ');
|
|
851
851
|
if (docsDir) {
|
|
@@ -857,17 +857,17 @@ async function collectInteractiveConfigWrites(missing, options = {}) {
|
|
|
857
857
|
configuredAt: new Date().toISOString(),
|
|
858
858
|
},
|
|
859
859
|
}));
|
|
860
|
-
console.log(green(` ✅
|
|
860
|
+
console.log(green(` ✅ 已写入智能客服知识目录: ${docsDir}`));
|
|
861
861
|
} else {
|
|
862
862
|
console.log(dim(' 未填写知识目录,将继续使用默认 docs/'));
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
console.log(dim(' [
|
|
866
|
+
console.log(dim(' [智能客服] 可选配置向量检索;安装时只记录配置,不立即构建索引'));
|
|
867
867
|
if (configuredVector.enabled) {
|
|
868
868
|
console.log(dim(` 当前向量配置: enabled=true, model=${configuredVector.model || '(unset)'}`));
|
|
869
869
|
}
|
|
870
|
-
const wantsVector = await askYesNo('
|
|
870
|
+
const wantsVector = await askYesNo(' 是否现在配置智能客服向量模型?[y/N] ', true);
|
|
871
871
|
if (wantsVector) {
|
|
872
872
|
console.log(dim(' [Vector] 回车可跳过;若填写完整,首次使用时自动建索引,后续按文档变更增量重建'));
|
|
873
873
|
const baseUrl = await ask(' SMART_CS_VECTOR_BASE_URL: ');
|
|
@@ -894,7 +894,7 @@ async function collectInteractiveConfigWrites(missing, options = {}) {
|
|
|
894
894
|
configuredAt: new Date().toISOString(),
|
|
895
895
|
},
|
|
896
896
|
}));
|
|
897
|
-
console.log(green(` ✅
|
|
897
|
+
console.log(green(` ✅ 已写入智能客服向量配置: ${model}`));
|
|
898
898
|
} else {
|
|
899
899
|
console.log(dim(' 向量配置未填写完整,保持 grep / 默认检索路径'));
|
|
900
900
|
}
|
|
@@ -1469,7 +1469,7 @@ async function main() {
|
|
|
1469
1469
|
toolkitConfig,
|
|
1470
1470
|
});
|
|
1471
1471
|
const smartMode = smartVector.enabled ? 'vector(auto)' : 'grep';
|
|
1472
|
-
console.log('
|
|
1472
|
+
console.log(' 智能客服:');
|
|
1473
1473
|
console.log(` 知识目录 : ${smartDocsDir || '内置 docs/'}`);
|
|
1474
1474
|
console.log(` 检索模式 : ${smartMode}`);
|
|
1475
1475
|
console.log('');
|