@zaofan/dsh-qqbot 1.11.0 → 1.11.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/package.json +1 -1
- package/settings-host.js +14 -1
package/package.json
CHANGED
package/settings-host.js
CHANGED
|
@@ -6473,7 +6473,20 @@ const WHY_MAP = { busy: '目标会话回合活跃,已等待至回合结束仍超
|
|
|
6473
6473
|
else failed.push(r.rel + ': ' + (r.err || '未知'));
|
|
6474
6474
|
}
|
|
6475
6475
|
|
|
6476
|
-
|
|
6476
|
+
// ★ 2026-10-27(主人问:市场装完包能自动铺 UI 吗):
|
|
6477
|
+
// 能,但原来只在**插件启动时**铺(installExtUi 在 apply 里跑),
|
|
6478
|
+
// 装完包不重启就看不到那张卡。这里装完立刻铺一次 —— 扩展包里的
|
|
6479
|
+
// slot=settings 卡片会自动归位到 {PROFILE_ROOT}/.qqbot-extensions/ui/。
|
|
6480
|
+
let uiSeeded = null;
|
|
6481
|
+
try {
|
|
6482
|
+
const seedMod = await import('./dist/features/ext-ui-seed.js');
|
|
6483
|
+
const profileRoot = String(process.env.DSH_PROFILE_DIR || process.env.DSH_PROFILE_ROOT || '').trim();
|
|
6484
|
+
const r = seedMod.installExtUi({ dataRoot, profileRoot });
|
|
6485
|
+
uiSeeded = { installed: r.installed.length, skipped: r.skipped.length, errors: r.errors };
|
|
6486
|
+
} catch (e) {
|
|
6487
|
+
uiSeeded = { error: e instanceof Error ? e.message : String(e) };
|
|
6488
|
+
}
|
|
6489
|
+
writeJson(res, 200, { ok: written > 0, written, total: files.length, failed, dest, uiSeeded });
|
|
6477
6490
|
} catch (e) {
|
|
6478
6491
|
writeJson(res, 500, { ok: false, error: String((e && e.message) || e) });
|
|
6479
6492
|
}
|