agent-shim 11.72.4 → 11.74.0

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 CHANGED
@@ -37387,7 +37387,7 @@ var init_package = __esm({
37387
37387
  "package.json"() {
37388
37388
  package_default = {
37389
37389
  name: "agent-shim",
37390
- version: "11.72.4",
37390
+ version: "11.74.0",
37391
37391
  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.",
37392
37392
  license: "MIT",
37393
37393
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -37475,7 +37475,8 @@ var init_package = __esm({
37475
37475
  turbo: "^2.11.5",
37476
37476
  typescript: "^6.0.3",
37477
37477
  "typescript-eslint": "^8.70.0",
37478
- vitest: "^4.1.12"
37478
+ vitest: "^4.1.12",
37479
+ yaml: "2.9.1"
37479
37480
  },
37480
37481
  main: "dist/index.cjs",
37481
37482
  module: "dist/index.mjs",
@@ -37604,7 +37605,7 @@ var init_plan2 = __esm({
37604
37605
  PlanClassSchema = external_exports.union([
37605
37606
  external_exports.strictObject({
37606
37607
  kind: external_exports.literal("subscription"),
37607
- /** The plan's size as a multiple of the smallest subscription tier (Max 5x is 5, Max 20x is 20). */
37608
+ /** The plan's size as a multiple of the smallest subscription tier (Max is 5, Ultra is 20). */
37608
37609
  capacity: external_exports.number().positive(),
37609
37610
  /** False when the tier string named no multiplier and no tier this project knows, so `capacity` is the neutral 1 rather than a reading. */
37610
37611
  recognised: external_exports.boolean(),
@@ -141477,17 +141478,27 @@ init_statusline();
141477
141478
 
141478
141479
  // src/statusline/elements/header/account.ts
141479
141480
  init_graphemes();
141480
- function tierSuffixOf(tier) {
141481
- const match = /_(\d+x)$/i.exec(tier ?? "");
141481
+ function tierMultiplierOf(tier) {
141482
+ const match = /_(\d+)x$/i.exec(tier ?? "");
141482
141483
  return match === null ? void 0 : match[1];
141483
141484
  }
141485
+ function maxPlanLabel(multiplier) {
141486
+ switch (multiplier) {
141487
+ case void 0:
141488
+ case "5":
141489
+ return "Max";
141490
+ case "20":
141491
+ return "Ultra";
141492
+ default:
141493
+ return `Max ${multiplier}x`;
141494
+ }
141495
+ }
141484
141496
  function accountPlanLabel(summary) {
141485
141497
  switch (summary.loginOrganizationType) {
141486
141498
  case void 0:
141487
141499
  return planLabelOf(summary.loginRateLimitTier);
141488
141500
  case "claude_max": {
141489
- const tier = tierSuffixOf(summary.loginRateLimitTier);
141490
- return tier === void 0 ? "Max" : `Max ${tier}`;
141501
+ return maxPlanLabel(tierMultiplierOf(summary.loginRateLimitTier));
141491
141502
  }
141492
141503
  case "claude_pro":
141493
141504
  return "Pro";
@@ -141515,10 +141526,10 @@ function planLabelOf(tier) {
141515
141526
  }
141516
141527
  const maxWithMultiplier = /^claude_max_(\d+)x$/.exec(cleaned);
141517
141528
  if (maxWithMultiplier !== null) {
141518
- return `Max ${maxWithMultiplier[1] ?? ""}x`;
141529
+ return maxPlanLabel(maxWithMultiplier[1]);
141519
141530
  }
141520
141531
  if (cleaned === "claude_max") {
141521
- return "Max";
141532
+ return maxPlanLabel(void 0);
141522
141533
  }
141523
141534
  if (cleaned === "claude_pro") {
141524
141535
  return "Pro";
package/dist/index.cjs CHANGED
@@ -4762,7 +4762,7 @@ var init_package = __esm({
4762
4762
  "package.json"() {
4763
4763
  package_default = {
4764
4764
  name: "agent-shim",
4765
- version: "11.72.4",
4765
+ version: "11.74.0",
4766
4766
  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.",
4767
4767
  license: "MIT",
4768
4768
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -4850,7 +4850,8 @@ var init_package = __esm({
4850
4850
  turbo: "^2.11.5",
4851
4851
  typescript: "^6.0.3",
4852
4852
  "typescript-eslint": "^8.70.0",
4853
- vitest: "^4.1.12"
4853
+ vitest: "^4.1.12",
4854
+ yaml: "2.9.1"
4854
4855
  },
4855
4856
  main: "dist/index.cjs",
4856
4857
  module: "dist/index.mjs",
@@ -7058,7 +7059,7 @@ var init_plan2 = __esm({
7058
7059
  PlanClassSchema = import_zod13.z.union([
7059
7060
  import_zod13.z.strictObject({
7060
7061
  kind: import_zod13.z.literal("subscription"),
7061
- /** The plan's size as a multiple of the smallest subscription tier (Max 5x is 5, Max 20x is 20). */
7062
+ /** The plan's size as a multiple of the smallest subscription tier (Max is 5, Ultra is 20). */
7062
7063
  capacity: import_zod13.z.number().positive(),
7063
7064
  /** False when the tier string named no multiplier and no tier this project knows, so `capacity` is the neutral 1 rather than a reading. */
7064
7065
  recognised: import_zod13.z.boolean(),
package/dist/index.mjs CHANGED
@@ -4738,7 +4738,7 @@ var init_package = __esm({
4738
4738
  "package.json"() {
4739
4739
  package_default = {
4740
4740
  name: "agent-shim",
4741
- version: "11.72.4",
4741
+ version: "11.74.0",
4742
4742
  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.",
4743
4743
  license: "MIT",
4744
4744
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -4826,7 +4826,8 @@ var init_package = __esm({
4826
4826
  turbo: "^2.11.5",
4827
4827
  typescript: "^6.0.3",
4828
4828
  "typescript-eslint": "^8.70.0",
4829
- vitest: "^4.1.12"
4829
+ vitest: "^4.1.12",
4830
+ yaml: "2.9.1"
4830
4831
  },
4831
4832
  main: "dist/index.cjs",
4832
4833
  module: "dist/index.mjs",
@@ -7033,7 +7034,7 @@ var init_plan2 = __esm({
7033
7034
  PlanClassSchema = z13.union([
7034
7035
  z13.strictObject({
7035
7036
  kind: z13.literal("subscription"),
7036
- /** The plan's size as a multiple of the smallest subscription tier (Max 5x is 5, Max 20x is 20). */
7037
+ /** The plan's size as a multiple of the smallest subscription tier (Max is 5, Ultra is 20). */
7037
7038
  capacity: z13.number().positive(),
7038
7039
  /** False when the tier string named no multiplier and no tier this project knows, so `capacity` is the neutral 1 rather than a reading. */
7039
7040
  recognised: z13.boolean(),