agent-shim 11.73.0 → 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.73.0",
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>",
@@ -37605,7 +37605,7 @@ var init_plan2 = __esm({
37605
37605
  PlanClassSchema = external_exports.union([
37606
37606
  external_exports.strictObject({
37607
37607
  kind: external_exports.literal("subscription"),
37608
- /** 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). */
37609
37609
  capacity: external_exports.number().positive(),
37610
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. */
37611
37611
  recognised: external_exports.boolean(),
@@ -141478,17 +141478,27 @@ init_statusline();
141478
141478
 
141479
141479
  // src/statusline/elements/header/account.ts
141480
141480
  init_graphemes();
141481
- function tierSuffixOf(tier) {
141482
- const match = /_(\d+x)$/i.exec(tier ?? "");
141481
+ function tierMultiplierOf(tier) {
141482
+ const match = /_(\d+)x$/i.exec(tier ?? "");
141483
141483
  return match === null ? void 0 : match[1];
141484
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
+ }
141485
141496
  function accountPlanLabel(summary) {
141486
141497
  switch (summary.loginOrganizationType) {
141487
141498
  case void 0:
141488
141499
  return planLabelOf(summary.loginRateLimitTier);
141489
141500
  case "claude_max": {
141490
- const tier = tierSuffixOf(summary.loginRateLimitTier);
141491
- return tier === void 0 ? "Max" : `Max ${tier}`;
141501
+ return maxPlanLabel(tierMultiplierOf(summary.loginRateLimitTier));
141492
141502
  }
141493
141503
  case "claude_pro":
141494
141504
  return "Pro";
@@ -141516,10 +141526,10 @@ function planLabelOf(tier) {
141516
141526
  }
141517
141527
  const maxWithMultiplier = /^claude_max_(\d+)x$/.exec(cleaned);
141518
141528
  if (maxWithMultiplier !== null) {
141519
- return `Max ${maxWithMultiplier[1] ?? ""}x`;
141529
+ return maxPlanLabel(maxWithMultiplier[1]);
141520
141530
  }
141521
141531
  if (cleaned === "claude_max") {
141522
- return "Max";
141532
+ return maxPlanLabel(void 0);
141523
141533
  }
141524
141534
  if (cleaned === "claude_pro") {
141525
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.73.0",
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>",
@@ -7059,7 +7059,7 @@ var init_plan2 = __esm({
7059
7059
  PlanClassSchema = import_zod13.z.union([
7060
7060
  import_zod13.z.strictObject({
7061
7061
  kind: import_zod13.z.literal("subscription"),
7062
- /** 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). */
7063
7063
  capacity: import_zod13.z.number().positive(),
7064
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. */
7065
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.73.0",
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>",
@@ -7034,7 +7034,7 @@ var init_plan2 = __esm({
7034
7034
  PlanClassSchema = z13.union([
7035
7035
  z13.strictObject({
7036
7036
  kind: z13.literal("subscription"),
7037
- /** 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). */
7038
7038
  capacity: z13.number().positive(),
7039
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. */
7040
7040
  recognised: z13.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "11.73.0",
3
+ "version": "11.74.0",
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>",