@skrr-ai/cli 0.1.186 → 0.1.188

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.
@@ -322,7 +322,10 @@ export declare const MANAGED_PROMPT_CACHING_ENV = "OVERSKY_MANAGED_PROMPT_CACHIN
322
322
  * `maxInputTokens` is NOT a provider token count. The relay counts it with the
323
323
  * reservation's `inputTokenAccounting` algorithm, and for every reviewed Claude
324
324
  * model that is the request JSON's UTF-8 bytes plus a structural allowance, so
325
- * 131,072 is about 33-46k real Claude tokens. The cap and its unit therefore
325
+ * 131,072 is about 33-46k real Claude tokens. Only a Claude Messages request on
326
+ * the Anthropic upstream whose byte bound is over the cap is then counted by the
327
+ * provider, and admitted on that count (OSK-32128); a harness that budgets in
328
+ * bytes stays inside the cap either way. The cap and its unit therefore
326
329
  * travel together, from the one place that holds the validated lease: this
327
330
  * broker, on both hosts (the daemon's routes and `skrr code`). A harness that
328
331
  * reads only the number, and compares it with provider usage, never sees the
@@ -322,7 +322,10 @@ export declare const MANAGED_PROMPT_CACHING_ENV = "OVERSKY_MANAGED_PROMPT_CACHIN
322
322
  * `maxInputTokens` is NOT a provider token count. The relay counts it with the
323
323
  * reservation's `inputTokenAccounting` algorithm, and for every reviewed Claude
324
324
  * model that is the request JSON's UTF-8 bytes plus a structural allowance, so
325
- * 131,072 is about 33-46k real Claude tokens. The cap and its unit therefore
325
+ * 131,072 is about 33-46k real Claude tokens. Only a Claude Messages request on
326
+ * the Anthropic upstream whose byte bound is over the cap is then counted by the
327
+ * provider, and admitted on that count (OSK-32128); a harness that budgets in
328
+ * bytes stays inside the cap either way. The cap and its unit therefore
326
329
  * travel together, from the one place that holds the validated lease: this
327
330
  * broker, on both hosts (the daemon's routes and `skrr code`). A harness that
328
331
  * reads only the number, and compares it with provider usage, never sees the
@@ -117,7 +117,10 @@ export const MANAGED_PROMPT_CACHING_ENV = 'OVERSKY_MANAGED_PROMPT_CACHING';
117
117
  * `maxInputTokens` is NOT a provider token count. The relay counts it with the
118
118
  * reservation's `inputTokenAccounting` algorithm, and for every reviewed Claude
119
119
  * model that is the request JSON's UTF-8 bytes plus a structural allowance, so
120
- * 131,072 is about 33-46k real Claude tokens. The cap and its unit therefore
120
+ * 131,072 is about 33-46k real Claude tokens. Only a Claude Messages request on
121
+ * the Anthropic upstream whose byte bound is over the cap is then counted by the
122
+ * provider, and admitted on that count (OSK-32128); a harness that budgets in
123
+ * bytes stays inside the cap either way. The cap and its unit therefore
121
124
  * travel together, from the one place that holds the validated lease: this
122
125
  * broker, on both hosts (the daemon's routes and `skrr code`). A harness that
123
126
  * reads only the number, and compares it with provider usage, never sees the
@@ -457,7 +460,8 @@ export async function startManagedInferenceBroker(options) {
457
460
  let activeRequests = 0;
458
461
  let totalRequests = 0;
459
462
  const maxModelRequests = options.maxModelRequests;
460
- if (maxModelRequests !== undefined && (!Number.isSafeInteger(maxModelRequests) || maxModelRequests < 1 || maxModelRequests > 8)) {
463
+ if (maxModelRequests !== undefined &&
464
+ (!Number.isSafeInteger(maxModelRequests) || maxModelRequests < 1 || maxModelRequests > 8)) {
461
465
  throw new Error('invalid managed work model call limit');
462
466
  }
463
467
  let admittedModelRequests = 0;
@@ -151482,5 +151482,5 @@
151482
151482
  ]
151483
151483
  }
151484
151484
  },
151485
- "version": "0.1.186"
151485
+ "version": "0.1.188"
151486
151486
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.186",
3
+ "version": "0.1.188",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -707,5 +707,5 @@
707
707
  "engines": {
708
708
  "node": ">=20.0.0"
709
709
  },
710
- "gitHead": "fdba7cb041694fe96dc000df2c3c25a22af0f869"
710
+ "gitHead": "ccf6f5223e2cf741385b1dbe440eeaadbe3fd206"
711
711
  }