@skrr-ai/cli 0.1.185 → 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.
- package/bin/dev.cjs +29 -0
- package/bin/run.js +9 -16
- package/dist/commands/agents/delete.js +5 -2
- package/dist/lib/command-manifest.d.ts +2 -0
- package/dist/lib/command-manifest.js +8 -0
- package/dist/lib/first-party-harness-broker.d.ts +24 -0
- package/dist/lib/first-party-harness-broker.js +33 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +9678 -9651
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.d.ts +4 -1
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-broker.d.ts +4 -1
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-broker.js +6 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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.
|
|
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.
|
|
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 &&
|
|
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;
|
package/oclif.manifest.json
CHANGED
|
@@ -151482,5 +151482,5 @@
|
|
|
151482
151482
|
]
|
|
151483
151483
|
}
|
|
151484
151484
|
},
|
|
151485
|
-
"version": "0.1.
|
|
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.
|
|
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": "
|
|
710
|
+
"gitHead": "ccf6f5223e2cf741385b1dbe440eeaadbe3fd206"
|
|
711
711
|
}
|