th3w1zard1 commited on
Commit
d856122
·
verified ·
1 Parent(s): b5762ec

Deploy from community-bots@6d7cf514f78b8f695b451f40a2aad50eca8c579c

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. server.mjs +4 -4
README.md CHANGED
@@ -2,6 +2,6 @@
2
 
3
  This Hugging Face Space previously served **bundled** technical-reference answers. That path was removed.
4
 
5
- Use **`OpenKotOR/holocron-trask-http`** (`infra/trask-http-public/`) for full GPTR + `trask-http-server` instead.
6
 
7
  This directory remains only as a **503 stub** if the old Space is still deployed by CI. Do not point production Holocron at it.
 
2
 
3
  This Hugging Face Space previously served **bundled** technical-reference answers. That path was removed.
4
 
5
+ Use **`OpenKotOR/holocron-trask-http`** (`infra/trask-http-public/`) for full `trask-http-server` with live research instead.
6
 
7
  This directory remains only as a **503 stub** if the old Space is still deployed by CI. Do not point production Holocron at it.
server.mjs CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * Deprecated HF mirror — bundled reference Q&A removed. Deploy holocron-trask-http for live GPTR.
3
  */
4
 
5
  import { createServer } from 'node:http';
@@ -26,7 +26,7 @@ function jsonResponse(status, body, origin) {
26
 
27
  const LIVE_RESEARCH_REQUIRED = {
28
  error:
29
- 'Bundled reference answers are disabled on this Space. Use OpenKotOR/holocron-trask-http (full trask-http-server + GPTR) as TRASK_RESEARCHWIZARD_BASE_URL.',
30
  };
31
 
32
  async function handleRequest(request) {
@@ -50,12 +50,12 @@ async function handleRequest(request) {
50
  return {
51
  status: 200,
52
  headers: { 'Content-Type': 'text/plain; charset=utf-8' },
53
- body: 'Holocron Trask API — live GPTR only (bundled references removed).\n',
54
  };
55
  }
56
 
57
  if (url.pathname === '/healthz' && request.method === 'GET') {
58
- return jsonResponse(200, { ok: true, mode: 'live-gptr-required', bundledReferenceApi: false }, origin);
59
  }
60
 
61
  if (url.pathname.startsWith('/reference') || url.pathname.startsWith('/api/trask')) {
 
1
  /**
2
+ * Deprecated HF mirror — bundled reference Q&A removed. Deploy holocron-trask-http for live research.
3
  */
4
 
5
  import { createServer } from 'node:http';
 
26
 
27
  const LIVE_RESEARCH_REQUIRED = {
28
  error:
29
+ 'Bundled reference answers are disabled on this Space. Use OpenKotOR/holocron-trask-http (full trask-http-server) as TRASK_RESEARCHWIZARD_BASE_URL.',
30
  };
31
 
32
  async function handleRequest(request) {
 
50
  return {
51
  status: 200,
52
  headers: { 'Content-Type': 'text/plain; charset=utf-8' },
53
+ body: 'Holocron Trask API — live research only (bundled references removed).\n',
54
  };
55
  }
56
 
57
  if (url.pathname === '/healthz' && request.method === 'GET') {
58
+ return jsonResponse(200, { ok: true, mode: 'live-trask-http-required', bundledReferenceApi: false }, origin);
59
  }
60
 
61
  if (url.pathname.startsWith('/reference') || url.pathname.startsWith('/api/trask')) {