slash-tokens 1.6.0 → 1.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.2] — The Fixed Deal Edition
4
+
5
+ *2026-08-25*
6
+
7
+ Solo $20 mailbox, 10% waived. Team $39 for the data.
8
+
9
+ Worker already returns `fee_usd` 0. This patch is the tarball identity. House `$20` is the mailbox — we show savings, we don't skim. 10% is the comparison, waived. Team is `$39` for the data (`$390`/year). Free forever is `bunx` — no account. No `$5` house credit for Solo.
10
+
11
+ Dropped the CLI scanner's invented second 10% ("gate efficiency"). One 10% = the savings cut, waived.
12
+
13
+ ## [1.6.1] — The Fixed Deal Edition
14
+
15
+ *2026-08-24*
16
+
17
+ Team/Pro is the live cart; 10% of savings shows on the weekly number as the comparison, not as what Team is charged.
18
+
19
+ 1.6.0 put `counterfactual_fee_usd` on npm without Doc Gate (the tarball README still headlined v1.4). This patch is the public identity for that ship. At ship, trial metered 10% on a $5 credit (superseded the same day: house credit is $20). Team `fee_usd` is 0.
20
+
21
+ **Not claimed:** a walked Team checkout (cart unbought). 10% is postponed until-further-notice, not dropped. CLI scanner “10% gate efficiency” is a different 10% (salvage rate).
22
+
23
+ **Verification:** `cd npm && bun test` (157 pass, 2 skip). Worker: `npx vitest run tests/wjttc/slash-usage-counterfactual.test.ts tests/wjttc/slash-statement-comparison.test.ts`.
24
+
3
25
  ## 1.6.0 (2026-08-24)
4
26
 
5
27
  ### Fixed Deal — 10% on the report, not the Team invoice
package/README.md CHANGED
@@ -13,10 +13,23 @@ For anyone building with LLMs. 4.8 KB WASM. Sub-millisecond. Zero dependencies.
13
13
 
14
14
  Know the cost before the call leaves your machine.
15
15
 
16
- > 🆕 **v1.4 The Single-Source-of-Truth Edition.** New `preflightRoute()` matches the Slash proxy exactly same-provider only, zero routing drift. `PROVIDER_MODELS` is now the single source of truth across the SDK.
16
+ Models change. Windows grow. Slash adaptsyou keep building.
17
+ Cheaper tokens haven't shrunk the bill — usage has.
18
+
19
+ > 🆕 **v1.6.2 — The Fixed Deal Edition.** Solo $20 mailbox, 10% waived. Team $39 for the data.
20
+ >
21
+ > **v1.5 — The Calibration Fix Edition.** Per-model calibration is wired into every call path. All four providers checked against the same 29-sample corpus.
22
+ >
23
+ > **v1.4 — The Single-Source-of-Truth Edition.** New `preflightRoute()` matches the Slash proxy exactly — same-provider only, zero routing drift. `PROVIDER_MODELS` is now the single source of truth across the SDK.
17
24
  >
18
25
  > **v1.3 — The Opus 4.7 Edition.** Same-day support for Claude Opus 4.7 with measured token calibration (1.16–1.51x). Plus Gemini proxy fix and benchmark harness for any upstream.
19
26
 
27
+ ## v1.6.2 — The Fixed Deal Edition
28
+
29
+ Solo $20 mailbox, 10% waived. Team $39 for the data.
30
+
31
+ **Free forever is bunx** — no account. A one-person account is email → key, **$20 on the house**. We show the savings. We don't charge. 10% is the model, waived. Team is **$39 for the data** (`$390`/year).
32
+
20
33
  ```bash
21
34
  npm install slash-tokens
22
35
  ```
@@ -45,17 +58,15 @@ Every call routed to the cheapest model that can execute it efficiently. Session
45
58
  [slash] Session: 47 calls | 23 routed | $0.89 salvaged — The more you build, the more you save
46
59
  ```
47
60
 
48
- ## Next.js Starter
49
-
50
- One-click deploy with Vercel AI SDK + slash-tokens built in:
61
+ ## See it work
51
62
 
52
- [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Wolfe-Jam/slash-nextjs&project-name=slash-nextjs&env=ANTHROPIC_API_KEY)
63
+ A live chat with every call through the gate: [slash-nextjs-wofejams-projects.vercel.app](https://slash-nextjs-wofejams-projects.vercel.app)
53
64
 
54
- [slash-nextjs on GitHub](https://github.com/Wolfe-Jam/slash-nextjs)
65
+ Then `bunx slash-tokens`, [get a key](https://mcpaas.live/slash/setup) ($20 on the house), or [Team — $39 for the data](https://slashtokens.com).
55
66
 
56
67
  ## Dashboard
57
68
 
58
- Track savings across all your apps. Free key at [mcpaas.live/slash/setup](https://mcpaas.live/slash/setup)
69
+ Track savings across all your apps. One-person key (email, $20 on the house) at [mcpaas.live/slash/setup](https://mcpaas.live/slash/setup)
59
70
 
60
71
  Full docs, examples, and model pricing at **[GitHub](https://github.com/Wolfe-Jam/slash-tokens)**
61
72
 
package/dist/auto.js CHANGED
@@ -7,8 +7,8 @@ import { hasKey, isQuiet } from './config.js';
7
7
  // Silent by default. Routes to cheapest model within same provider.
8
8
  // Tracks cumulative savings. Nudges at thresholds.
9
9
  //
10
- // No key: routing still works (free forever), no dashboard tracking
11
- // With key (init or SLASH_KEY): savings reported to MCPaaS
10
+ // No key: routing still works (same as bunx — free forever), no dashboard
11
+ // With key (init or SLASH_KEY): one-person account; savings reported to MCPaaS
12
12
  // Session state
13
13
  let totalSalvaged = 0;
14
14
  let totalCalls = 0;
package/dist/cli.js CHANGED
@@ -289,13 +289,6 @@ function printReport(sites, filesScanned, timeMs, cwd) {
289
289
  console.log(`${GRAY} (${unknownProviderSites} call site${unknownProviderSites === 1 ? "" : "s"} use an assumed price — the detected SDK doesn't reveal the exact provider)${R}`);
290
290
  }
291
291
  console.log("");
292
- const recoveryPct = 10;
293
- const monthlyRecovered = monthlyCost * recoveryPct / 100;
294
- console.log(`${GOLD} ⚡ TOKENS SALVAGED ${GRAY}(${recoveryPct}% gate efficiency)${R}`);
295
- console.log(`${DIM} ${"─".repeat(60)}${R}`);
296
- console.log(`${WHITE} Monthly salvaged: ${GOLD}${B}$${monthlyRecovered.toFixed(2)}/mo${R}`);
297
- console.log(`${WHITE} Annual salvaged: ${GOLD}${B}$${(monthlyRecovered * 12).toFixed(2)}/yr${R}`);
298
- console.log("");
299
292
  console.log(`${GRAY} 4.8 KB WASM · sub-ms · zero deps${R}`);
300
293
  console.log(`${GRAY} → ${ORANGE}slashtokens.com${R}`);
301
294
  console.log("");
package/dist/report.js CHANGED
@@ -76,14 +76,6 @@ export function printReport(sites, filesScanned, timeMs, cwd) {
76
76
  console.log(`${GRAY} (${unknownProviderSites} call site${unknownProviderSites === 1 ? '' : 's'} use an assumed price — the detected SDK doesn't reveal the exact provider)${R}`);
77
77
  }
78
78
  console.log('');
79
- // Slash — sunk cost recovery (conservative 10% gate efficiency)
80
- const recoveryPct = 10;
81
- const monthlyRecovered = monthlyCost * recoveryPct / 100;
82
- console.log(`${GOLD} ⚡ TOKENS SALVAGED ${GRAY}(${recoveryPct}% gate efficiency)${R}`);
83
- console.log(`${DIM} ${'─'.repeat(60)}${R}`);
84
- console.log(`${WHITE} Monthly salvaged: ${GOLD}${B}$${monthlyRecovered.toFixed(2)}/mo${R}`);
85
- console.log(`${WHITE} Annual salvaged: ${GOLD}${B}$${(monthlyRecovered * 12).toFixed(2)}/yr${R}`);
86
- console.log('');
87
79
  console.log(`${GRAY} 4.8 KB WASM · sub-ms · zero deps${R}`);
88
80
  console.log(`${GRAY} → ${ORANGE}slashtokens.com${R}`);
89
81
  console.log('');
@@ -11,7 +11,5 @@ export interface ReportResult {
11
11
  fee_usd: number;
12
12
  balance_remaining_usd: number;
13
13
  timestamp: string;
14
- /** 10% of this call's savings — comparison only. Charged fee is fee_usd (0 on Team). */
15
- counterfactual_fee_usd?: number;
16
14
  }
17
15
  export declare function report(opts: ReportOptions): Promise<ReportResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slash-tokens",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Token Optimization for Context Engineers. 4.8 KB WASM. Sub-millisecond. Zero dependencies.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",