claude-use 11.40.3 → 11.40.5

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
@@ -27569,7 +27569,7 @@ var init_state = __esm({
27569
27569
  "use strict";
27570
27570
  import_node_path5 = __toESM(require("node:path"), 1);
27571
27571
  init_zod();
27572
- FRONT_DOOR_PROTOCOL = 3;
27572
+ FRONT_DOOR_PROTOCOL = 4;
27573
27573
  FrontDoorSessionSchema = external_exports.strictObject({ pid: external_exports.number().int().positive(), startedAt: external_exports.number(), token: external_exports.string().min(1), supervisorPid: external_exports.number().int().positive().optional() });
27574
27574
  FrontDoorStateSchema = external_exports.strictObject({
27575
27575
  /**
@@ -34636,7 +34636,7 @@ var init_package = __esm({
34636
34636
  "package.json"() {
34637
34637
  package_default = {
34638
34638
  name: "claude-use",
34639
- version: "11.40.3",
34639
+ version: "11.40.5",
34640
34640
  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.",
34641
34641
  license: "MIT",
34642
34642
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -147675,6 +147675,15 @@ function providerQuotaOf(paths) {
147675
147675
  return snapshot === void 0 ? {} : quotaFactsOf(snapshot.providers[provider]?.rateLimit?.unified, Date.now());
147676
147676
  };
147677
147677
  }
147678
+ function describeUnroutedMembers(members2) {
147679
+ return members2.flatMap((member) => {
147680
+ if (member.startsWith("acct:")) {
147681
+ const [identity] = member.slice("acct:".length).split("/");
147682
+ return [`${member} is served by relaunching the session under identity "${identity ?? ""}", so no quota signal ranks it`];
147683
+ }
147684
+ return member.startsWith("family:") ? [`${member} is resolved from the live catalogues, which the door does not read yet, so it is not a candidate`] : [];
147685
+ });
147686
+ }
147678
147687
  function explainVirtualModel(paths, name) {
147679
147688
  const models = readModels(paths);
147680
147689
  const definition = models?.virtual?.[name];
@@ -147683,14 +147692,16 @@ function explainVirtualModel(paths, name) {
147683
147692
  }
147684
147693
  const quotaOf = providerQuotaOf(paths);
147685
147694
  const observations = createTargetObservationStore(realFarmFs, paths);
147686
- const candidates = expandMembers(name, models).filter((member) => !member.startsWith("acct:") && !member.startsWith("family:")).map((ref, order) => {
147695
+ const members2 = expandMembers(name, models);
147696
+ const candidates = members2.filter((member) => !member.startsWith("acct:") && !member.startsWith("family:")).map((ref, order) => {
147687
147697
  const [provider] = ref.split("/");
147688
147698
  return candidateOf(ref, order, { quota: quotaOf(provider ?? ""), ...observations.observation(ref) === void 0 ? {} : { observation: observations.observation(ref) }, ...models?.prices?.[ref] === void 0 ? {} : { price: models.prices[ref] } }, false);
147689
147699
  });
147690
147700
  const evaluated = candidates.map((candidate) => ({ candidate, capabilities: { vision: true, tools: true, thinking: true } }));
147691
147701
  const selection = selectMember(definition.mode, evaluated, {});
147692
- console.log(`${name} (${definition.mode}) chooses ${selection.ref ?? "nothing"}:`);
147693
- for (const line of selection.reasons) {
147702
+ const unrouted = describeUnroutedMembers(members2);
147703
+ console.log(`${name} (${definition.mode}) chooses ${selection.ref ?? (candidates.length === 0 ? "nothing by quota" : "nothing")}:`);
147704
+ for (const line of candidates.length === 0 ? unrouted : [...selection.reasons, ...unrouted]) {
147694
147705
  console.log(` ${line}`);
147695
147706
  }
147696
147707
  }
package/dist/index.cjs CHANGED
@@ -3033,7 +3033,7 @@ var init_state = __esm({
3033
3033
  "use strict";
3034
3034
  import_node_path8 = __toESM(require("node:path"), 1);
3035
3035
  import_zod3 = require("zod");
3036
- FRONT_DOOR_PROTOCOL = 3;
3036
+ FRONT_DOOR_PROTOCOL = 4;
3037
3037
  FrontDoorSessionSchema = import_zod3.z.strictObject({ pid: import_zod3.z.number().int().positive(), startedAt: import_zod3.z.number(), token: import_zod3.z.string().min(1), supervisorPid: import_zod3.z.number().int().positive().optional() });
3038
3038
  FrontDoorStateSchema = import_zod3.z.strictObject({
3039
3039
  /**
@@ -3106,7 +3106,7 @@ var init_package = __esm({
3106
3106
  "package.json"() {
3107
3107
  package_default = {
3108
3108
  name: "claude-use",
3109
- version: "11.40.3",
3109
+ version: "11.40.5",
3110
3110
  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.",
3111
3111
  license: "MIT",
3112
3112
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -3009,7 +3009,7 @@ var FRONT_DOOR_PROTOCOL, FrontDoorSessionSchema, FrontDoorStateSchema, MAX_TCP_P
3009
3009
  var init_state = __esm({
3010
3010
  "src/frontdoor/state.ts"() {
3011
3011
  "use strict";
3012
- FRONT_DOOR_PROTOCOL = 3;
3012
+ FRONT_DOOR_PROTOCOL = 4;
3013
3013
  FrontDoorSessionSchema = z3.strictObject({ pid: z3.number().int().positive(), startedAt: z3.number(), token: z3.string().min(1), supervisorPid: z3.number().int().positive().optional() });
3014
3014
  FrontDoorStateSchema = z3.strictObject({
3015
3015
  /**
@@ -3082,7 +3082,7 @@ var init_package = __esm({
3082
3082
  "package.json"() {
3083
3083
  package_default = {
3084
3084
  name: "claude-use",
3085
- version: "11.40.3",
3085
+ version: "11.40.5",
3086
3086
  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.",
3087
3087
  license: "MIT",
3088
3088
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.40.3",
3
+ "version": "11.40.5",
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>",