claude-use 11.17.0 → 11.17.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 -70
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34089,7 +34089,7 @@ var init_package = __esm({
|
|
|
34089
34089
|
"package.json"() {
|
|
34090
34090
|
package_default = {
|
|
34091
34091
|
name: "claude-use",
|
|
34092
|
-
version: "11.17.
|
|
34092
|
+
version: "11.17.1",
|
|
34093
34093
|
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.",
|
|
34094
34094
|
license: "MIT",
|
|
34095
34095
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -128254,79 +128254,15 @@ function messagesToGeminiContents(messages, names, toolIdToName) {
|
|
|
128254
128254
|
return contents;
|
|
128255
128255
|
}
|
|
128256
128256
|
var EMPTY_SCHEMA = { type: "object", properties: {} };
|
|
128257
|
-
var GEMINI_SCHEMA_KEYS = /* @__PURE__ */ new Set(["type", "format", "description", "nullable", "enum", "anyOf", "items", "properties", "required", "minimum", "maximum", "minItems", "maxItems"]);
|
|
128258
|
-
function describeSchemaValue(node2) {
|
|
128259
|
-
if (!isRecord9(node2)) {
|
|
128260
|
-
return "any value";
|
|
128261
|
-
}
|
|
128262
|
-
const type2 = node2.type;
|
|
128263
|
-
const name = typeof type2 === "string" ? type2 : Array.isArray(type2) && typeof type2[0] === "string" ? type2[0] : "value";
|
|
128264
|
-
if (name === "array") {
|
|
128265
|
-
return `a list of ${describeSchemaValue(node2.items)}`;
|
|
128266
|
-
}
|
|
128267
|
-
return name === "object" ? "an object" : `a ${name}`;
|
|
128268
|
-
}
|
|
128269
|
-
function toGeminiSchema(node2) {
|
|
128270
|
-
if (!isRecord9(node2)) {
|
|
128271
|
-
return node2;
|
|
128272
|
-
}
|
|
128273
|
-
const out = {};
|
|
128274
|
-
const notes = [];
|
|
128275
|
-
let nullable2 = false;
|
|
128276
|
-
for (const [key, value2] of Object.entries(node2)) {
|
|
128277
|
-
if (key === "type" && Array.isArray(value2)) {
|
|
128278
|
-
const named = value2.filter((entry) => entry !== "null");
|
|
128279
|
-
if (named.length > 0 && typeof named[0] === "string") {
|
|
128280
|
-
out.type = named[0];
|
|
128281
|
-
}
|
|
128282
|
-
nullable2 = value2.includes("null");
|
|
128283
|
-
continue;
|
|
128284
|
-
}
|
|
128285
|
-
if (!GEMINI_SCHEMA_KEYS.has(key)) {
|
|
128286
|
-
if (key === "additionalProperties" && value2 !== false) {
|
|
128287
|
-
notes.push(`Each value is ${describeSchemaValue(value2)}.`);
|
|
128288
|
-
} else if (key === "propertyNames" && isRecord9(value2) && typeof value2.pattern === "string") {
|
|
128289
|
-
notes.push(`Keys match ${value2.pattern}.`);
|
|
128290
|
-
}
|
|
128291
|
-
continue;
|
|
128292
|
-
}
|
|
128293
|
-
out[key] = value2;
|
|
128294
|
-
}
|
|
128295
|
-
if (out.type === "null") {
|
|
128296
|
-
delete out.type;
|
|
128297
|
-
}
|
|
128298
|
-
if (nullable2 && out.type !== void 0) {
|
|
128299
|
-
out.nullable = true;
|
|
128300
|
-
}
|
|
128301
|
-
if (notes.length > 0) {
|
|
128302
|
-
const description = typeof out.description === "string" ? out.description : "";
|
|
128303
|
-
out.description = `${description}${description === "" ? "" : " "}${notes.join(" ")}`;
|
|
128304
|
-
}
|
|
128305
|
-
if ("properties" in out && isRecord9(out.properties)) {
|
|
128306
|
-
out.properties = Object.fromEntries(Object.entries(out.properties).map(([name, child]) => [name, toGeminiSchema(child)]));
|
|
128307
|
-
}
|
|
128308
|
-
if ("items" in out) {
|
|
128309
|
-
out.items = toGeminiSchema(out.items);
|
|
128310
|
-
} else if (out.type === "array") {
|
|
128311
|
-
out.items = {};
|
|
128312
|
-
}
|
|
128313
|
-
if (Array.isArray(out.anyOf)) {
|
|
128314
|
-
out.anyOf = out.anyOf.map(toGeminiSchema);
|
|
128315
|
-
}
|
|
128316
|
-
return out;
|
|
128317
|
-
}
|
|
128318
128257
|
function mapTools2(tools, names) {
|
|
128319
128258
|
if (tools === void 0 || tools.length === 0) {
|
|
128320
128259
|
return void 0;
|
|
128321
128260
|
}
|
|
128322
|
-
const declarations = tools.map((tool) => {
|
|
128323
|
-
|
|
128324
|
-
|
|
128325
|
-
|
|
128326
|
-
|
|
128327
|
-
parameters: isRecord9(converted) ? converted : EMPTY_SCHEMA
|
|
128328
|
-
};
|
|
128329
|
-
});
|
|
128261
|
+
const declarations = tools.map((tool) => ({
|
|
128262
|
+
name: shortToolName2(tool.name, names),
|
|
128263
|
+
description: tool.description,
|
|
128264
|
+
parametersJsonSchema: tool.input_schema ?? EMPTY_SCHEMA
|
|
128265
|
+
}));
|
|
128330
128266
|
return [{ functionDeclarations: declarations }];
|
|
128331
128267
|
}
|
|
128332
128268
|
var EFFORT_SUFFIXES = /* @__PURE__ */ new Set(["low", "medium", "high"]);
|
package/dist/index.cjs
CHANGED
|
@@ -2837,7 +2837,7 @@ var init_package = __esm({
|
|
|
2837
2837
|
"package.json"() {
|
|
2838
2838
|
package_default = {
|
|
2839
2839
|
name: "claude-use",
|
|
2840
|
-
version: "11.17.
|
|
2840
|
+
version: "11.17.1",
|
|
2841
2841
|
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.",
|
|
2842
2842
|
license: "MIT",
|
|
2843
2843
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
package/dist/index.mjs
CHANGED
|
@@ -2813,7 +2813,7 @@ var init_package = __esm({
|
|
|
2813
2813
|
"package.json"() {
|
|
2814
2814
|
package_default = {
|
|
2815
2815
|
name: "claude-use",
|
|
2816
|
-
version: "11.17.
|
|
2816
|
+
version: "11.17.1",
|
|
2817
2817
|
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.",
|
|
2818
2818
|
license: "MIT",
|
|
2819
2819
|
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.17.
|
|
3
|
+
"version": "11.17.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>",
|