@wrongstack/webui-server 0.296.3 → 0.296.4

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/index.js CHANGED
@@ -4959,6 +4959,7 @@ import { isSageProjectServerAvailable, SageProjectServerConnection } from "@wron
4959
4959
  import {
4960
4960
  checkCodebaseIndexServerHealth,
4961
4961
  getIndexState,
4962
+ resolveProjectIndexDaemonAvailability,
4962
4963
  shutdownCodebaseIndexServer
4963
4964
  } from "@wrongstack/tools";
4964
4965
  async function handleConnectionsHealthRoute(context, ws, message) {
@@ -5051,6 +5052,19 @@ async function chronicleHealth(projectRoot) {
5051
5052
  }
5052
5053
  async function codebaseIndexHealth(projectRoot, indexDir) {
5053
5054
  const startedAt = Date.now();
5055
+ const availability = resolveProjectIndexDaemonAvailability(projectRoot, indexDir);
5056
+ if (availability.kind === "endpoint-invalid") {
5057
+ return {
5058
+ id: "codebase-index",
5059
+ label: "Codebase index",
5060
+ status: "unavailable",
5061
+ required: false,
5062
+ mode: "endpoint-invalid",
5063
+ detail: `Socket path is ${availability.byteLength} bytes \u2014 over this platform's ${availability.maxBytes}-byte sun_path limit. Queries fall back to a process-local index. Set a shorter TMPDIR to restore the shared daemon.`,
5064
+ endpoint: availability.endpoint,
5065
+ latencyMs: Date.now() - startedAt
5066
+ };
5067
+ }
5054
5068
  try {
5055
5069
  const health = await checkCodebaseIndexServerHealth(projectRoot, indexDir, {
5056
5070
  timeoutMs: 2e3