Site assistant: the knowledge index rebuilds as soon as the network set from the hub changes (was up to 30 s after boot, so the first cross-site questions missed the other sites)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 12:55:06 -06:00
parent ae7077da57
commit e69bdc77ee
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -102,4 +102,5 @@ function init(opts) {
function view() { return Object.assign({ enabled: enabled(), site: siteName(), version: merged.version, sites: Object.keys(merged.sites || {}), entries: (merged.entries || []).length, remote: remote().length, loadedAt }, stats); }
function _set(m) { merged = m; } // tests
module.exports = { init, publish, publishSoon, refresh, remote, sites, view, enabled, _set };
const version = () => merged.version || '';
module.exports = { init, publish, publishSoon, refresh, remote, sites, view, enabled, version, _set };