agent-shim 11.87.1 → 11.87.2

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
@@ -41960,7 +41960,7 @@ var init_package = __esm({
41960
41960
  "package.json"() {
41961
41961
  package_default = {
41962
41962
  name: "agent-shim",
41963
- version: "11.87.1",
41963
+ version: "11.87.2",
41964
41964
  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.",
41965
41965
  license: "MIT",
41966
41966
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -143449,12 +143449,24 @@ function descend(value3, key) {
143449
143449
  if (Array.isArray(value3) && /^\d+$/u.test(key)) return value3[Number(key)];
143450
143450
  return record2(value3) && Object.hasOwn(value3, key) ? value3[key] : void 0;
143451
143451
  }
143452
+ function descendExpanded(root, value3, key) {
143453
+ const seen = /* @__PURE__ */ new Set();
143454
+ let current = value3;
143455
+ for (; ; ) {
143456
+ const child = descend(current, key);
143457
+ if (child !== void 0) return child;
143458
+ if (!record2(current) || typeof current.$ref !== "string" || !current.$ref.startsWith("#/") || seen.has(current.$ref)) return void 0;
143459
+ const ref = current.$ref;
143460
+ seen.add(ref);
143461
+ current = root;
143462
+ for (const part of ref.slice(2).split("/")) current = descend(current, part.replaceAll("~1", "/").replaceAll("~0", "~"));
143463
+ }
143464
+ }
143452
143465
  function relaxRejectedRecursiveProperty(request7, body) {
143453
143466
  const path92 = rejectedPath(body);
143454
143467
  if (path92 === void 0) return void 0;
143455
- const propertyIndex = path92.lastIndexOf("properties");
143456
- const name = path92[propertyIndex + 1];
143457
- if (propertyIndex < 0 || name === void 0) return void 0;
143468
+ const propertyIndices = path92.flatMap((part, index) => part === "properties" && path92[index + 1] !== void 0 ? [index] : []).reverse();
143469
+ if (propertyIndices.length === 0) return void 0;
143458
143470
  const copy2 = structuredClone(request7);
143459
143471
  let changed = false;
143460
143472
  for (const tool of copy2.tools ?? []) {
@@ -143462,18 +143474,38 @@ function relaxRejectedRecursiveProperty(request7, body) {
143462
143474
  const schema = declaration.parametersJsonSchema;
143463
143475
  if (schema === void 0) continue;
143464
143476
  let leaf = schema;
143465
- for (const part of path92) leaf = descend(leaf, part);
143477
+ for (const part of path92) leaf = descendExpanded(schema, leaf, part);
143466
143478
  if (!record2(leaf) || typeof leaf.$ref !== "string") continue;
143467
- let owner = schema;
143468
- for (const part of path92.slice(0, propertyIndex)) owner = descend(owner, part);
143469
- if (!record2(owner) || !Array.isArray(owner.required) || !owner.required.includes(name) || !record2(owner.properties)) continue;
143470
- const property = owner.properties[name];
143471
- if (!record2(property)) continue;
143472
- owner.required = owner.required.filter((item) => item !== name);
143473
- const description = typeof property.description === "string" ? `${property.description}
143479
+ let repairedProperty = false;
143480
+ for (const propertyIndex of propertyIndices) {
143481
+ const name = path92[propertyIndex + 1];
143482
+ if (name === void 0) continue;
143483
+ let owner = schema;
143484
+ for (const part of path92.slice(0, propertyIndex)) owner = descendExpanded(schema, owner, part);
143485
+ if (!record2(owner) || !Array.isArray(owner.required) || !owner.required.includes(name) || !record2(owner.properties)) continue;
143486
+ const property = owner.properties[name];
143487
+ if (!record2(property)) continue;
143488
+ owner.required = owner.required.filter((item) => item !== name);
143489
+ const description = typeof property.description === "string" ? `${property.description}
143474
143490
  ` : "";
143475
- property.description = `${description}This property is required by the original tool schema.`;
143476
- changed = true;
143491
+ property.description = `${description}This property is required by the original tool schema.`;
143492
+ changed = true;
143493
+ repairedProperty = true;
143494
+ break;
143495
+ }
143496
+ if (!repairedProperty) {
143497
+ let parent = schema;
143498
+ for (const part of path92.slice(0, -1)) parent = descendExpanded(schema, parent, part);
143499
+ const key = path92.at(-1);
143500
+ const truncated = { description: "Recursive value: the original tool schema validates this value." };
143501
+ if (record2(parent) && key !== void 0 && Object.hasOwn(parent, key)) {
143502
+ parent[key] = truncated;
143503
+ changed = true;
143504
+ } else if (Array.isArray(parent) && key !== void 0 && /^\d+$/u.test(key) && Number(key) < parent.length) {
143505
+ parent[Number(key)] = truncated;
143506
+ changed = true;
143507
+ }
143508
+ }
143477
143509
  }
143478
143510
  }
143479
143511
  return changed ? copy2 : void 0;
@@ -143666,7 +143698,7 @@ async function* callLocalAntigravity(params) {
143666
143698
  init_quota();
143667
143699
  var MS_PER_SECOND13 = 1e3;
143668
143700
  var ROUTING_MEMORY_SESSIONS = 256;
143669
- var MAX_SCHEMA_RETRIES = 16;
143701
+ var MAX_SCHEMA_RETRIES = 32;
143670
143702
  function exhaustedMessage(exhaustion) {
143671
143703
  const window = exhaustion.window === "five_hour" ? "5-hour" : "weekly";
143672
143704
  return `Antigravity ${window} limit reached; it resets at ${new Date(exhaustion.resetSec * MS_PER_SECOND13).toISOString()}.`;
package/dist/index.cjs CHANGED
@@ -5173,7 +5173,7 @@ var init_package = __esm({
5173
5173
  "package.json"() {
5174
5174
  package_default = {
5175
5175
  name: "agent-shim",
5176
- version: "11.87.1",
5176
+ version: "11.87.2",
5177
5177
  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.",
5178
5178
  license: "MIT",
5179
5179
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -5148,7 +5148,7 @@ var init_package = __esm({
5148
5148
  "package.json"() {
5149
5149
  package_default = {
5150
5150
  name: "agent-shim",
5151
- version: "11.87.1",
5151
+ version: "11.87.2",
5152
5152
  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.",
5153
5153
  license: "MIT",
5154
5154
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "11.87.1",
3
+ "version": "11.87.2",
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>",