agent-shim 9.2.0 → 9.2.1
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/dist/cli.cjs +6 -2
- package/dist/index.cjs +6 -2
- package/dist/index.mjs +6 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -33191,7 +33191,7 @@ var init_package = __esm({
|
|
|
33191
33191
|
"package.json"() {
|
|
33192
33192
|
package_default = {
|
|
33193
33193
|
name: "agent-shim",
|
|
33194
|
-
version: "9.2.
|
|
33194
|
+
version: "9.2.1",
|
|
33195
33195
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
33196
33196
|
license: "MIT",
|
|
33197
33197
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -33377,7 +33377,11 @@ var init_account = __esm({
|
|
|
33377
33377
|
|
|
33378
33378
|
// src/usage/plan.ts
|
|
33379
33379
|
function planOf(account) {
|
|
33380
|
-
const
|
|
33380
|
+
const userTier = account?.userRateLimitTier;
|
|
33381
|
+
if (userTier !== void 0 && ZERO_TIER.test(userTier)) {
|
|
33382
|
+
return { kind: "pay-per-use", tier: userTier };
|
|
33383
|
+
}
|
|
33384
|
+
const tier = account?.organizationRateLimitTier ?? userTier;
|
|
33381
33385
|
const tierField = tier === void 0 ? {} : { tier };
|
|
33382
33386
|
if (tier === void 0) {
|
|
33383
33387
|
return { kind: "subscription", capacity: 1, recognised: false };
|
package/dist/index.cjs
CHANGED
|
@@ -2649,7 +2649,7 @@ var init_package = __esm({
|
|
|
2649
2649
|
"package.json"() {
|
|
2650
2650
|
package_default = {
|
|
2651
2651
|
name: "agent-shim",
|
|
2652
|
-
version: "9.2.
|
|
2652
|
+
version: "9.2.1",
|
|
2653
2653
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
2654
2654
|
license: "MIT",
|
|
2655
2655
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -4268,7 +4268,11 @@ var init_account = __esm({
|
|
|
4268
4268
|
|
|
4269
4269
|
// src/usage/plan.ts
|
|
4270
4270
|
function planOf(account) {
|
|
4271
|
-
const
|
|
4271
|
+
const userTier = account?.userRateLimitTier;
|
|
4272
|
+
if (userTier !== void 0 && ZERO_TIER.test(userTier)) {
|
|
4273
|
+
return { kind: "pay-per-use", tier: userTier };
|
|
4274
|
+
}
|
|
4275
|
+
const tier = account?.organizationRateLimitTier ?? userTier;
|
|
4272
4276
|
const tierField = tier === void 0 ? {} : { tier };
|
|
4273
4277
|
if (tier === void 0) {
|
|
4274
4278
|
return { kind: "subscription", capacity: 1, recognised: false };
|
package/dist/index.mjs
CHANGED
|
@@ -2625,7 +2625,7 @@ var init_package = __esm({
|
|
|
2625
2625
|
"package.json"() {
|
|
2626
2626
|
package_default = {
|
|
2627
2627
|
name: "agent-shim",
|
|
2628
|
-
version: "9.2.
|
|
2628
|
+
version: "9.2.1",
|
|
2629
2629
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
2630
2630
|
license: "MIT",
|
|
2631
2631
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -4243,7 +4243,11 @@ var init_account = __esm({
|
|
|
4243
4243
|
// src/usage/plan.ts
|
|
4244
4244
|
import { z as z8 } from "zod";
|
|
4245
4245
|
function planOf(account) {
|
|
4246
|
-
const
|
|
4246
|
+
const userTier = account?.userRateLimitTier;
|
|
4247
|
+
if (userTier !== void 0 && ZERO_TIER.test(userTier)) {
|
|
4248
|
+
return { kind: "pay-per-use", tier: userTier };
|
|
4249
|
+
}
|
|
4250
|
+
const tier = account?.organizationRateLimitTier ?? userTier;
|
|
4247
4251
|
const tierField = tier === void 0 ? {} : { tier };
|
|
4248
4252
|
if (tier === void 0) {
|
|
4249
4253
|
return { kind: "subscription", capacity: 1, recognised: false };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7054,7 +7054,7 @@ declare const PlanClassSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
7054
7054
|
}, z.core.$strict>]>;
|
|
7055
7055
|
type PlanClass = z.infer<typeof PlanClassSchema>;
|
|
7056
7056
|
/**
|
|
7057
|
-
* Classifies an account from the rate-limit tier of its stored login (`organizationRateLimitTier`, which decides the organisation's limits, then `userRateLimitTier`). The tier strings are free text on Anthropic's side, so only the shapes seen are read: a trailing `<n>x` is that multiple, a bare `pro` is 1, a `zero` tier is pay-per-use. Anything else is a subscription of unrecognised size, counted as 1 and marked so the ranking can say it guessed.
|
|
7057
|
+
* Classifies an account from the rate-limit tier of its stored login (`organizationRateLimitTier`, which decides the organisation's limits, then `userRateLimitTier`), except that a `zero` user tier decides alone: a seat whose own allowance is zero draws on no plan whatever its organisation's tier says (a usage-based Enterprise seat sits in an organisation tier that reads as a subscription). The tier strings are free text on Anthropic's side, so only the shapes seen are read: a trailing `<n>x` is that multiple, a bare `pro` is 1, a `zero` tier is pay-per-use. Anything else is a subscription of unrecognised size, counted as 1 and marked so the ranking can say it guessed.
|
|
7058
7058
|
*/
|
|
7059
7059
|
declare function planOf(account: AccountMetadata | undefined): PlanClass;
|
|
7060
7060
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.1",
|
|
4
4
|
"description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|