@aris-mcp/server 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -475,15 +475,19 @@ var ArisCache = class {
475
475
  };
476
476
 
477
477
  // src/config.ts
478
- var DEFAULT_API_KEY = "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";
479
478
  function envBool(value, defaultValue) {
480
479
  if (value === void 0) return defaultValue;
481
480
  return value.toLowerCase() === "true";
482
481
  }
483
482
  function loadConfig() {
484
483
  const llmProvider = process.env.ARIS_LLM_PROVIDER ?? "openrouter";
485
- const llmApiKey = process.env.ARIS_API_KEY ?? DEFAULT_API_KEY;
484
+ const llmApiKey = process.env.ARIS_API_KEY;
486
485
  const ollamaUrl = process.env.ARIS_OLLAMA_URL ?? "http://localhost:11434";
486
+ if (llmProvider === "openrouter" && !llmApiKey) {
487
+ throw new Error(
488
+ "ARIS_API_KEY is required when ARIS_LLM_PROVIDER is 'openrouter'"
489
+ );
490
+ }
487
491
  return {
488
492
  endpoint: process.env.ARIS_ENDPOINT,
489
493
  llmProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aris-mcp/server",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "aris-mcp": "dist/index.js"