@virsanghavi/axis-server 1.0.3 → 1.0.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/mcp-server.mjs +7 -5
- package/package.json +1 -1
package/dist/mcp-server.mjs
CHANGED
|
@@ -222,10 +222,13 @@ var NerveCenter = class {
|
|
|
222
222
|
const supabaseUrl = options.supabaseUrl || process.env.NEXT_PUBLIC_SUPABASE_URL;
|
|
223
223
|
const supabaseKey = options.supabaseServiceRoleKey || process.env.SUPABASE_SERVICE_ROLE_KEY;
|
|
224
224
|
if (!supabaseUrl || !supabaseKey) {
|
|
225
|
-
|
|
225
|
+
logger.warn("Supabase credentials missing. Running in local-only mode (state will be ephemeral or file-based).");
|
|
226
|
+
this.supabase = void 0;
|
|
227
|
+
this.useSupabase = false;
|
|
228
|
+
} else {
|
|
229
|
+
this.supabase = createClient(supabaseUrl, supabaseKey);
|
|
230
|
+
this.useSupabase = true;
|
|
226
231
|
}
|
|
227
|
-
this.supabase = createClient(supabaseUrl, supabaseKey);
|
|
228
|
-
this.useSupabase = true;
|
|
229
232
|
this.state = {
|
|
230
233
|
locks: {},
|
|
231
234
|
jobs: {},
|
|
@@ -744,8 +747,7 @@ var RagEngine = class {
|
|
|
744
747
|
// ../../src/local/mcp-server.ts
|
|
745
748
|
dotenv2.config({ path: ".env.local" });
|
|
746
749
|
if (!process.env.NEXT_PUBLIC_SUPABASE_URL || !process.env.SUPABASE_SERVICE_ROLE_KEY) {
|
|
747
|
-
logger.
|
|
748
|
-
process.exit(1);
|
|
750
|
+
logger.warn("Supabase credentials missing. RAG & Persistence disabled. Running in local/ephemeral mode.");
|
|
749
751
|
}
|
|
750
752
|
var manager = new ContextManager(
|
|
751
753
|
process.env.SHARED_CONTEXT_API_URL || "https://aicontext.vercel.app/api/v1",
|