AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
fix(console): point first-run login at the printed setup link (#1711)
xerj-orgcd4cd3d8f459
diff --git a/engine/crates/xerj-console-api/tests/spa_assets.rs b/engine/crates/xerj-console-api/tests/spa_assets.rsindex 82ab91ae9..b90c12454 100644--- a/engine/crates/xerj-console-api/tests/spa_assets.rs+++ b/engine/crates/xerj-console-api/tests/spa_assets.rs@@ -57,6 +57,10 @@ async fn setup_html_is_bundled_and_served() {body.contains("token") && body.contains("redeemMagic"),"setup page must include the magic-link consumption logic");+ assert!(+ body.contains("one-time setup link") && body.contains("still unclaimed"),+ "a setup URL with no #token= must say where the link was printed"+ );}#[tokio::test]@@ -72,6 +76,14 @@ async fn login_html_is_bundled_and_served() {body.contains("beginLogin"),"login page must include the WebAuthn login logic");+ assert!(+ body.contains("one-time setup link") && body.contains("#token="),+ "login must point at the boot-time setup link"+ );+ assert!(+ !body.contains("href=\"/_xerj-console/setup\""),+ "a bare /setup link has no token and dead-ends"+ );}#[tokio::test]diff --git a/xerj-ux/login.html b/xerj-ux/login.htmlindex 8427353d2..abd63937a 100644--- a/xerj-ux/login.html+++ b/xerj-ux/login.html@@ -76,7 +76,9 @@</form><p class="footnote">- Don't have a passkey yet? <a href="/_xerj-console/setup">Set up</a>.+ First launch has no passkey yet. The node printed a one-time setup link+ when it started — open that URL (it contains <code>#token=</code>).+ A restart prints a new link while the owner account is still unclaimed.</p></div>diff --git a/xerj-ux/setup.html b/xerj-ux/setup.htmlindex 62fd93b97..1499d1ca2 100644--- a/xerj-ux/setup.html+++ b/xerj-ux/setup.html@@ -154,7 +154,7 @@ const nextRoute = (() => {return '#/' + n.replace(/^[#/]+/, '');})();if (!token) {- showError('No magic-link token in URL. The link must include #token=…');+ showError('No magic-link token in this URL. The node printed a one-time setup link when it started — open that URL (it contains #token=). A restart prints a new link while the owner account is still unclaimed. An existing owner signs in at /_xerj-console/login.');$btnEnrol.disabled = true;}