gitnexus 1.6.4-rc.68 → 1.6.4-rc.69

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.
@@ -155,6 +155,7 @@ a.ext:hover{text-decoration:underline}
155
155
  <div class="section-title">Endpoints</div>
156
156
  <p class="endpoint"><a href="/api/info">/api/info</a> <span style="color:#5a5a70">— Server version &amp; context</span></p>
157
157
  <p class="endpoint"><a href="/api/repos">/api/repos</a> <span style="color:#5a5a70">— Indexed repositories</span></p>
158
+ <p class="endpoint"><code>/api/health</code> <span style="color:#5a5a70">— Docker/orchestrator healthcheck</span></p>
158
159
  <p class="endpoint"><code>/api/heartbeat</code> <span style="color:#5a5a70">— SSE heartbeat</span></p>
159
160
  <p class="endpoint"><code>/api/graph</code> <code>/api/query</code> <code>/api/search</code> <span style="color:#5a5a70">— Data</span></p>
160
161
  <p class="endpoint"><code>/api/mcp</code> <span style="color:#5a5a70">— MCP over StreamableHTTP</span></p>
@@ -669,6 +670,12 @@ export const createServer = async (port, host = '127.0.0.1') => {
669
670
  }
670
671
  return found;
671
672
  };
673
+ // Lightweight healthcheck for Docker/orchestrator probes (#1147).
674
+ // Returns immediately so container managers do not confuse a long-lived
675
+ // SSE stream with an unhealthy server.
676
+ app.get('/api/health', (_req, res) => {
677
+ res.json({ status: 'ok' });
678
+ });
672
679
  // SSE heartbeat — clients connect to detect server liveness instantly.
673
680
  // When the server shuts down, the TCP connection drops and the client's
674
681
  // EventSource fires onerror immediately (no polling delay).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.4-rc.68",
3
+ "version": "1.6.4-rc.69",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",