更新 lib/routes.js

This commit is contained in:
QQ 2026-11-11 10:51:23 +08:00
parent 59dafcb2eb
commit 35842b9174
1 changed files with 6 additions and 1 deletions

View File

@ -69,8 +69,13 @@ function statusPayload(deps) {
defaultK: view.defaultK,
summaryEnabled: view.summaryEnabled,
summaryMaxChars: view.summaryMaxChars,
skillsSyncEnabled: view.skillsSyncEnabled,
skillsDir: view.skillsDir,
};
return {
ok: true, settings, tokens, settingsPath: view.statePath, reporter: deps.reporter.snapshot(),
...(deps.skills === undefined ? {} : { skills: deps.skills() }),
};
return { ok: true, settings, tokens, settingsPath: view.statePath, reporter: deps.reporter.snapshot() };
}
/** Serve the configuration page. */
function servePage(deps, req, res) {