@kunal_dutt/token-lens 0.2.27 → 0.2.29
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/check-agent.mjs +22 -22
- package/gateway.mjs +13 -13
- package/package.json +1 -1
- package/sdk.mjs +4 -0
- package/server.mjs +141 -90
- package/token-lens.mcpb +0 -0
- package/types/src/core/coach.d.ts +113 -0
- package/types/src/core/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kunal_dutt/token-lens",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "Count and cut the tokens your prompts, chats and agents use, adapted to the model and task. MCP server and self-hosted gateway. Collects no data.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
package/sdk.mjs
CHANGED
|
@@ -206656,6 +206656,10 @@ function detectProfile(hint, siteId = "generic") {
|
|
|
206656
206656
|
return PROFILES[SITE_DEFAULTS[siteId] ?? "generic"];
|
|
206657
206657
|
}
|
|
206658
206658
|
|
|
206659
|
+
// src/core/coach.ts
|
|
206660
|
+
var SESSION_MS = 5 * 36e5;
|
|
206661
|
+
var WEEK_MS = 7 * 864e5;
|
|
206662
|
+
|
|
206659
206663
|
// src/gateway/customers.ts
|
|
206660
206664
|
import { createHash } from "node:crypto";
|
|
206661
206665
|
|