engine7 7.0.2 → 7.0.3
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/dist/cli.mjs +23 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -123,7 +123,26 @@ async function interactiveConfig(rl, defaults) {
|
|
|
123
123
|
};
|
|
124
124
|
const models = modelMap[v.primaryProvider] || ["dashscope/qwen3.7-max"];
|
|
125
125
|
v.primaryModel = await askChoice(rl, "\u4E3B\u6A21\u578B:", models, 0);
|
|
126
|
-
|
|
126
|
+
const visionCapableMap = {
|
|
127
|
+
"dashscope/qwen3.7-max": true,
|
|
128
|
+
"dashscope/qwen3.7-plus": true,
|
|
129
|
+
"minimax/MiniMax-M3": true,
|
|
130
|
+
"zhipu/glm-5v-turbo": true,
|
|
131
|
+
"zhipu/glm-5.1": false,
|
|
132
|
+
"deepseek/deepseek-v4-pro": false,
|
|
133
|
+
"deepseek/deepseek-v4-flash": false
|
|
134
|
+
};
|
|
135
|
+
const primarySupportsVision = visionCapableMap[v.primaryModel] ?? true;
|
|
136
|
+
if (primarySupportsVision) {
|
|
137
|
+
v.visionModel = v.primaryModel;
|
|
138
|
+
} else {
|
|
139
|
+
console.log(`
|
|
140
|
+
\u26A0\uFE0F \u4E3B\u6A21\u578B ${v.primaryModel} \u4E0D\u652F\u6301\u56FE\u7247`);
|
|
141
|
+
v.visionModel = await ask(rl, "Vision \u6A21\u578B\uFF08\u7528\u4E8E\u56FE\u7247\u8BC6\u522B\uFF0C\u5982 dashscope/qwen3.7-max\uFF09", "dashscope/qwen3.7-max");
|
|
142
|
+
if (!v.visionModel.startsWith(v.primaryProvider)) {
|
|
143
|
+
console.log(` \u6CE8\u610F\uFF1AVision \u6A21\u578B\u7528\u4E86\u4E0D\u540C provider\uFF0C\u9700\u8981\u5728 config \u91CC\u8865\u5145\u5BF9\u5E94\u7684 API key`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
127
146
|
console.log("\n=== \u7B2C\u4E8C\u6B65\uFF1A\u53EF\u9009\u914D\u7F6E\uFF08\u56DE\u8F66\u8DF3\u8FC7\uFF09===\n");
|
|
128
147
|
const discordAns = await ask(rl, "\u542F\u7528 Discord? (y/n)", "n");
|
|
129
148
|
v.discordEnabled = discordAns.toLowerCase() === "y";
|
|
@@ -207,7 +226,9 @@ function generateConfig(v) {
|
|
|
207
226
|
},
|
|
208
227
|
api: { port: v.apiPort },
|
|
209
228
|
prompt: {
|
|
210
|
-
|
|
229
|
+
mode: "custom",
|
|
230
|
+
staticFiles: ["AGENTS.md", "USER.md", "MEMORY.md", "memory/distill-output.md"],
|
|
231
|
+
order: ["soul", "AGENTS.md", "prompts/contacts.md", "using-tools", "USER.md", "MEMORY.md", "memory/distill-output.md", "auto-memory-instructions"]
|
|
211
232
|
},
|
|
212
233
|
compaction: {
|
|
213
234
|
enabled: true,
|