@skrr-ai/cli 0.1.184 → 0.1.186
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.
|
@@ -289,6 +289,18 @@ export declare function createManagedEngineHooks(input: ManagedEngineHooksInput)
|
|
|
289
289
|
* Returns null when there is nothing worth saying.
|
|
290
290
|
*/
|
|
291
291
|
export declare function managedRenewalStoppedLine(reason: RenewalStopReason, detail?: string): string | null;
|
|
292
|
+
/**
|
|
293
|
+
* Account-decision codes newer than the server's first ones, which the server sends only to a
|
|
294
|
+
* client that lists them in its admit request.
|
|
295
|
+
*
|
|
296
|
+
* `balance-held` (OSK-24743) is a short balance whose money is held by work that gives it back on
|
|
297
|
+
* its own, usually this workspace's previous session in the seconds before its usage is recorded.
|
|
298
|
+
* Like `plan-concurrency-exhausted` it clears without anyone acting and still stops the run: the
|
|
299
|
+
* server read the account and named the remedy (wait for the other run, or add credit), and
|
|
300
|
+
* falling back would move this session onto the user's own key because another session holds the
|
|
301
|
+
* money. A CLI that does not list it is sent `balance-exhausted` with the same sentence.
|
|
302
|
+
*/
|
|
303
|
+
export declare const ANNOUNCED_REFUSAL_CODES: readonly string[];
|
|
292
304
|
export type ManagedAcquisitionFailure =
|
|
293
305
|
/** The server decided about the account. The engine must not start. */
|
|
294
306
|
{
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
* forbids, and without a key it only starts an engine that cannot run.
|
|
60
60
|
*/
|
|
61
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.ManagedAcquisitionError = void 0;
|
|
62
|
+
exports.ANNOUNCED_REFUSAL_CODES = exports.ManagedAcquisitionError = void 0;
|
|
63
63
|
exports.acquireManagedSession = acquireManagedSession;
|
|
64
64
|
exports.managedLeaseClockLine = managedLeaseClockLine;
|
|
65
65
|
exports.createManagedEngineHooks = createManagedEngineHooks;
|
|
@@ -915,6 +915,10 @@ signal) {
|
|
|
915
915
|
...(input.reasoningEffort !== undefined ? { reasoningEffort: input.reasoningEffort } : {}),
|
|
916
916
|
localRuntimeId: input.localRuntimeId,
|
|
917
917
|
machineUuid: input.machineUuid,
|
|
918
|
+
// The refusal codes this CLI acts on beyond the ones every version knew. The server sends
|
|
919
|
+
// `balance-held` only to a client that lists it, because an older CLI would read an unknown
|
|
920
|
+
// code as "nothing was decided" and fall back to another credential (OSK-24743).
|
|
921
|
+
refusalCodes: exports.ANNOUNCED_REFUSAL_CODES,
|
|
918
922
|
}),
|
|
919
923
|
...(signal ? { signal } : {}),
|
|
920
924
|
});
|
|
@@ -1392,12 +1396,25 @@ function managedRenewalStoppedLine(reason, detail) {
|
|
|
1392
1396
|
*/
|
|
1393
1397
|
const ACCOUNT_DECISION_CODES = new Set([
|
|
1394
1398
|
'balance-exhausted',
|
|
1399
|
+
'balance-held',
|
|
1395
1400
|
'billing-account-missing',
|
|
1396
1401
|
'plan-allowance-exhausted',
|
|
1397
1402
|
'plan-model-denied',
|
|
1398
1403
|
'plan-window-exhausted',
|
|
1399
1404
|
'plan-concurrency-exhausted',
|
|
1400
1405
|
]);
|
|
1406
|
+
/**
|
|
1407
|
+
* Account-decision codes newer than the server's first ones, which the server sends only to a
|
|
1408
|
+
* client that lists them in its admit request.
|
|
1409
|
+
*
|
|
1410
|
+
* `balance-held` (OSK-24743) is a short balance whose money is held by work that gives it back on
|
|
1411
|
+
* its own, usually this workspace's previous session in the seconds before its usage is recorded.
|
|
1412
|
+
* Like `plan-concurrency-exhausted` it clears without anyone acting and still stops the run: the
|
|
1413
|
+
* server read the account and named the remedy (wait for the other run, or add credit), and
|
|
1414
|
+
* falling back would move this session onto the user's own key because another session holds the
|
|
1415
|
+
* money. A CLI that does not list it is sent `balance-exhausted` with the same sentence.
|
|
1416
|
+
*/
|
|
1417
|
+
exports.ANNOUNCED_REFUSAL_CODES = Object.freeze(['balance-held']);
|
|
1401
1418
|
/**
|
|
1402
1419
|
* What a failed acquisition does next, and the ONE line that says so.
|
|
1403
1420
|
*
|
package/oclif.manifest.json
CHANGED
|
@@ -151482,5 +151482,5 @@
|
|
|
151482
151482
|
]
|
|
151483
151483
|
}
|
|
151484
151484
|
},
|
|
151485
|
-
"version": "0.1.
|
|
151485
|
+
"version": "0.1.186"
|
|
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.186",
|
|
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": "fdba7cb041694fe96dc000df2c3c25a22af0f869"
|
|
711
711
|
}
|