engine7 7.1.60 → 7.1.61
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 +10 -0
- package/dist/engine-startup.mjs +5 -1
- package/dist/main.mjs +5 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -19735,6 +19735,8 @@ function parseCcRunArgs(argv) {
|
|
|
19735
19735
|
args.configName = takeValue().trim();
|
|
19736
19736
|
} else if (a === "--agent") {
|
|
19737
19737
|
args.agentName = takeValue().trim();
|
|
19738
|
+
} else if (a === "--resume") {
|
|
19739
|
+
takeValue();
|
|
19738
19740
|
}
|
|
19739
19741
|
}
|
|
19740
19742
|
if (!hasPrompt) {
|
|
@@ -19885,6 +19887,14 @@ async function runQuery(args) {
|
|
|
19885
19887
|
systemPrompt,
|
|
19886
19888
|
channels: config.channels,
|
|
19887
19889
|
config,
|
|
19890
|
+
// 0902 修2: recall 走 everos——之前 deps 没传 everosCfg,handle-query 每单打
|
|
19891
|
+
// "everosCfg not configured, falling back to LLM recall",sideQuery 拿整个任务
|
|
19892
|
+
// prompt 当查询词(查"赢男"召回"cc-run 协议")+ 拖 30-65s。装配对齐 engine-startup:680。
|
|
19893
|
+
everosCfg: config.everos ? {
|
|
19894
|
+
...config.everos,
|
|
19895
|
+
llm: config.everos.llm?.provider && config.providers?.[config.everos.llm.provider] ? { ...config.everos.llm, apiKey: config.providers[config.everos.llm.provider].apiKey } : config.everos.llm,
|
|
19896
|
+
rerank: config.everos.rerank?.provider && config.providers?.[config.everos.rerank.provider] ? { ...config.everos.rerank, apiKey: config.providers[config.everos.rerank.provider].apiKey } : config.everos.rerank
|
|
19897
|
+
} : void 0,
|
|
19888
19898
|
mcpManager: void 0
|
|
19889
19899
|
};
|
|
19890
19900
|
let thinking = "";
|
package/dist/engine-startup.mjs
CHANGED
|
@@ -30486,7 +30486,7 @@ Use full ref like \`/primary ${candidates[0].ref}\``);
|
|
|
30486
30486
|
await fs45.promises.writeFile(writePath, JSON.stringify(cfg, null, 2), "utf-8");
|
|
30487
30487
|
console.log(`[primary] Persisted primary=${target} to ${writePath}`);
|
|
30488
30488
|
await ctx.reply(`\u2705 Primary model set to **${target}** (${candidates[0].name})
|
|
30489
|
-
Written to config
|
|
30489
|
+
Written to config, hot-reloading provider chain now.`);
|
|
30490
30490
|
} catch (err) {
|
|
30491
30491
|
await ctx.reply(`\u26A0\uFE0F Failed to write config: ${err.message}`);
|
|
30492
30492
|
}
|
|
@@ -32500,6 +32500,10 @@ async function doReloadConfig(config, deps, provider) {
|
|
|
32500
32500
|
lastLoadedConfigRaw = configRaw.trim();
|
|
32501
32501
|
const changes = [];
|
|
32502
32502
|
const oldProviderKey = JSON.stringify({
|
|
32503
|
+
// 0902 修:必须含"选中的 primary 是哪个 provider"——此前 key 只有 providers 整字典
|
|
32504
|
+
// + model 名,从 agentrouter/glm-5.3 切 zai-anthropic/glm-5.3(同模型名)时 key
|
|
32505
|
+
// 完全相同 → 不重建链 → /primary 热加载失效(翀哥 0902 15:03 实测切了还在走旧链)。
|
|
32506
|
+
primary: config.provider?.id,
|
|
32503
32507
|
providers: config.providers,
|
|
32504
32508
|
model: config.model,
|
|
32505
32509
|
fallbacks: config.fallbacks,
|
package/dist/main.mjs
CHANGED
|
@@ -30570,7 +30570,7 @@ Use full ref like \`/primary ${candidates[0].ref}\``);
|
|
|
30570
30570
|
await fs45.promises.writeFile(writePath, JSON.stringify(cfg, null, 2), "utf-8");
|
|
30571
30571
|
console.log(`[primary] Persisted primary=${target} to ${writePath}`);
|
|
30572
30572
|
await ctx.reply(`\u2705 Primary model set to **${target}** (${candidates[0].name})
|
|
30573
|
-
Written to config
|
|
30573
|
+
Written to config, hot-reloading provider chain now.`);
|
|
30574
30574
|
} catch (err) {
|
|
30575
30575
|
await ctx.reply(`\u26A0\uFE0F Failed to write config: ${err.message}`);
|
|
30576
30576
|
}
|
|
@@ -32584,6 +32584,10 @@ async function doReloadConfig(config2, deps, provider) {
|
|
|
32584
32584
|
lastLoadedConfigRaw = configRaw.trim();
|
|
32585
32585
|
const changes = [];
|
|
32586
32586
|
const oldProviderKey = JSON.stringify({
|
|
32587
|
+
// 0902 修:必须含"选中的 primary 是哪个 provider"——此前 key 只有 providers 整字典
|
|
32588
|
+
// + model 名,从 agentrouter/glm-5.3 切 zai-anthropic/glm-5.3(同模型名)时 key
|
|
32589
|
+
// 完全相同 → 不重建链 → /primary 热加载失效(翀哥 0902 15:03 实测切了还在走旧链)。
|
|
32590
|
+
primary: config2.provider?.id,
|
|
32587
32591
|
providers: config2.providers,
|
|
32588
32592
|
model: config2.model,
|
|
32589
32593
|
fallbacks: config2.fallbacks,
|