@gabrielsmartin/orbit-sdk 0.4.0 → 0.4.1

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/package.json +1 -1
  2. package/src/index.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gabrielsmartin/orbit-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Rule-based LLM router. Classifies queries across 8 axes and picks the optimal model. Fast, deterministic, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -12,7 +12,7 @@ import { route, calculateSavings, MODEL_MATRIX } from './router.js';
12
12
 
13
13
  export { fingerprint, route, calculateSavings, MODEL_MATRIX };
14
14
 
15
- const GATEWAY_URL = 'https://gtll-soul-guide-81e596e1.base44.app/functions/orbitGateway';
15
+ const GATEWAY_URL = 'https://gtll-soul-guide-81e596e1.base44.app/functions/orbitWaitlist';
16
16
 
17
17
  /**
18
18
  * OrbitClient — the main class
@@ -85,6 +85,11 @@ export class OrbitClient {
85
85
 
86
86
  if (this.config.log) {
87
87
  console.log(`[ORBIT] → ${decision.model.name} | ${decision.rule} | saved $${savings.savings.toFixed(5)} (${savings.reductionPct}% vs GPT-4o)`);
88
+
89
+ // Nudge unauthenticated users toward API key
90
+ if (!this.config.apiKey && this._stats.total_queries === 3) {
91
+ console.warn(`[ORBIT] Free tier: 15 API queries/day. Get your key → https://gtll-soul-guide-81e596e1.base44.app/functions/orbitWaitlist (POST { action: "get_key", email })`);
92
+ }
88
93
  }
89
94
 
90
95
  if (this.config.on_route) {