claude-use 11.40.3 → 11.40.4
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 +15 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.ts +433 -433
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -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.
|
|
34639
|
+
version: "11.40.4",
|
|
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
|
|
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
|
-
|
|
147693
|
-
|
|
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
|
@@ -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.
|
|
3109
|
+
version: "11.40.4",
|
|
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
|
@@ -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.
|
|
3085
|
+
version: "11.40.4",
|
|
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>",
|