@askalf/dario 3.37.17 → 3.37.19

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/doctor.js +8 -1
  2. package/package.json +1 -1
package/dist/doctor.js CHANGED
@@ -392,11 +392,18 @@ export async function runChecks(opts = {}) {
392
392
  // - Else fall back to direct-to-Anthropic with Haiku only.
393
393
  // Unified buckets surface but per-model buckets won't.
394
394
  const dario_base = process.env.DARIO_TEST_URL || 'http://127.0.0.1:3456';
395
+ // The proxy validates Authorization against DARIO_API_KEY when set.
396
+ // Fall back to literal 'dario' (the documented loopback-only default)
397
+ // when unset so local-dev probes against a no-auth proxy continue to
398
+ // work. Without reading the env here, `dario doctor --usage` 401s on
399
+ // every deploy that sets a real auth secret — which is every prod
400
+ // deploy that follows the README's "non-loopback bind" guidance.
401
+ const dario_auth = process.env.DARIO_API_KEY || 'dario';
395
402
  let probeEndpoint = `${dario_base}/v1/messages`;
396
403
  let probeHeaders = {
397
404
  'content-type': 'application/json',
398
405
  'anthropic-version': '2023-06-01',
399
- 'authorization': 'Bearer dario',
406
+ 'authorization': `Bearer ${dario_auth}`,
400
407
  };
401
408
  let proxyAvailable = false;
402
409
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askalf/dario",
3
- "version": "3.37.17",
3
+ "version": "3.37.19",
4
4
  "description": "A local LLM router. One endpoint, every provider — Claude subscriptions, OpenAI, OpenRouter, Groq, local LiteLLM, any OpenAI-compat endpoint — your tools don't need to change.",
5
5
  "type": "module",
6
6
  "bin": {