slash-tokens 1.6.2 → 1.6.3

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.3] — The Fixed Deal Edition
4
+
5
+ *2026-08-25*
6
+
7
+ Solo $20 mailbox, 10% waived. Team $39 for the data.
8
+
9
+ Tarball first screen is the try path (`bunx` / `npx`). `preflight` is analysis (all providers); `preflightRoute` is the same-provider route. SPDX MIT; brand reservation lives in NOTICE. Empty-folder CLI is a normal no-sites result, not a hang.
10
+
11
+ No price or fee change.
12
+
3
13
  ## [1.6.2] — The Fixed Deal Edition
4
14
 
5
15
  *2026-08-25*
package/LICENSE CHANGED
@@ -19,11 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
23
- ---
24
-
25
- This project's name, ⚡ mark, and red/gold color scheme ("brand") are not
26
- covered by the MIT license above and are reserved for the slash-tokens
27
- project. If you fork, you agree to ship your derivative under your own name
28
- and colors. Representing your product as "slash-tokens" / "Slash" without
29
- written consent is not permitted.
package/NOTICE ADDED
@@ -0,0 +1,9 @@
1
+ slash-tokens brand reservation
2
+
3
+ The code is MIT — see LICENSE.
4
+
5
+ The slash-tokens name, ⚡ mark, and red/gold color scheme ("brand") are
6
+ not covered by that license and stay with the project.
7
+
8
+ If you fork, ship the derivative under your own name and colors. Do not
9
+ represent your product as "slash-tokens" / "Slash" without written consent.
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # /slash-tokens
2
2
 
3
3
  [![CI/CD](https://github.com/Wolfe-Jam/slash-tokens/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Wolfe-Jam/slash-tokens/actions/workflows/test.yml)
4
- [![FAF Trophy 100%](https://img.shields.io/badge/FAF-%F0%9F%8F%86%20100%25-000000?labelColor=FF6B35)](https://faf.one)
5
4
  [![npm version](https://img.shields.io/npm/v/slash-tokens?style=flat&color=cb3837)](https://www.npmjs.com/package/slash-tokens)
6
5
  [![npm downloads](https://img.shields.io/npm/dm/slash-tokens?style=flat&color=brightgreen)](https://www.npmjs.com/package/slash-tokens)
7
6
  [![WASM size](https://img.shields.io/badge/WASM-4.8_KB-blue?style=flat)](https://bundlephobia.com/package/slash-tokens)
@@ -16,20 +15,19 @@ Know the cost before the call leaves your machine.
16
15
  Models change. Windows grow. Slash adapts — you keep building.
17
16
  Cheaper tokens haven't shrunk the bill — usage has.
18
17
 
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.
24
- >
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.
26
-
27
- ## v1.6.2 — The Fixed Deal Edition
18
+ ## v1.6.3 — The Fixed Deal Edition
28
19
 
29
20
  Solo $20 mailbox, 10% waived. Team $39 for the data.
30
21
 
31
22
  **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
23
 
24
+ ```bash
25
+ bunx slash-tokens
26
+ # or: npx --yes slash-tokens
27
+ ```
28
+
29
+ Run it in a project that already calls an LLM. An empty folder prints that nothing was found — that's normal.
30
+
33
31
  ```bash
34
32
  npm install slash-tokens
35
33
  ```
@@ -37,30 +35,29 @@ npm install slash-tokens
37
35
  ```js
38
36
  import { preflight, preflightRoute } from 'slash-tokens'
39
37
 
40
- // Analysis — all cheaper alternatives across all providers
38
+ // Analysis — cheaper alternatives across all providers. Not a route.
41
39
  const check = preflight(prompt, 'claude-opus-4.7')
42
- // tokens: 47,000 | cost: $0.71 | 11 cheaper options | save 99%
40
+ check.tokens
41
+ check.cost
42
+ check.fits
43
+ check.options
43
44
 
44
- // Routing decision — matches Slash proxy behavior (same-provider only)
45
+ // Routing decision — same-provider only, matches the Slash proxy
45
46
  const route = preflightRoute(prompt, 'claude-opus-4.7')
46
- // { model: 'claude-haiku', cost: 0.14, salvaged: 0.57, ... } or null
47
+ // { model: 'claude-haiku', cost, salvaged, salvagePercent } or null
47
48
  ```
48
49
 
49
- Or one line — every API call optimized pre-call:
50
+ Or one line — every LLM call checked pre-call:
50
51
 
51
52
  ```js
52
53
  import 'slash-tokens/auto'
53
54
  ```
54
55
 
55
- Every call routed to the cheapest model that can execute it efficiently. Session summary on exit:
56
-
57
- ```
58
- [slash] Session: 47 calls | 23 routed | $0.89 salvaged — The more you build, the more you save
59
- ```
56
+ Intercepts `fetch()` to Anthropic, OpenAI, xAI, and Google. Estimates before the call leaves your machine. Same-provider cheaper swap if one fits.
60
57
 
61
58
  ## See it work
62
59
 
63
- A live chat with every call through the gate: [slash-nextjs-wofejams-projects.vercel.app](https://slash-nextjs-wofejams-projects.vercel.app)
60
+ A live chat with every call through the gate: [live demo](https://slash-nextjs-wofejams-projects.vercel.app)
64
61
 
65
62
  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).
66
63
 
@@ -74,7 +71,7 @@ Full docs, examples, and model pricing at **[GitHub](https://github.com/Wolfe-Ja
74
71
 
75
72
  **Code: MIT.** Fork it, ship it, change it, show it, share it, sell it.
76
73
 
77
- **Brand: reserved.** The slash-tokens name, ⚡ mark, and red/gold colors stay with the project. If you're building on top of the SDK, ship under your own name and colors — don't represent your app as Slash.
74
+ **Brand: reserved.** The slash-tokens name, ⚡ mark, and red/gold colors stay with the project. If you're building on top of the SDK, ship under your own name and colors — don't represent your app as Slash. See [NOTICE](./NOTICE).
78
75
 
79
76
  ---
80
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slash-tokens",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
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",
@@ -21,7 +21,8 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
- "CHANGELOG.md"
24
+ "CHANGELOG.md",
25
+ "NOTICE"
25
26
  ],
26
27
  "sideEffects": false,
27
28
  "scripts": {