agent-shim 11.72.1 → 11.72.3

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.72.1",
37390
+ version: "11.72.3",
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>",
@@ -37460,6 +37460,7 @@ var init_package = __esm({
37460
37460
  "@types/node": "^26.5.1",
37461
37461
  "@types/picomatch": "^4.0.3",
37462
37462
  "@vitest/coverage-v8": "^4.1.12",
37463
+ combinatrix: "1.0.0",
37463
37464
  "conventional-changelog-conventionalcommits": "^10.4.0",
37464
37465
  esbuild: "^0.28.2",
37465
37466
  eslint: "^10.10.0",
@@ -120948,6 +120949,13 @@ function mergeLiveTasks(tree, live) {
120948
120949
 
120949
120950
  // src/frontdoor/rcSessions.ts
120950
120951
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
120952
+ function pathnameOf(url2) {
120953
+ return new URL(url2 ?? "/", "http://127.0.0.1").pathname;
120954
+ }
120955
+ function isRcSessionExchange(url2) {
120956
+ const path73 = pathnameOf(url2);
120957
+ return path73 === RC_SESSIONS_PATH_PREFIX || path73.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
120958
+ }
120951
120959
  var RC_SESSION_ID_PREFIX = "cse_";
120952
120960
  var RC_IDLE_EXPIRY_MS = 45e3;
120953
120961
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -121112,11 +121120,10 @@ function createRcSessionTracker(deps) {
121112
121120
  };
121113
121121
  const observeExchange = (request7) => {
121114
121122
  const method = (request7.method ?? "").toUpperCase();
121115
- const path73 = new URL(request7.url ?? "/", "http://127.0.0.1").pathname;
121116
- if (!path73.startsWith(RC_SESSIONS_PATH_PREFIX)) {
121123
+ if (!isRcSessionExchange(request7.url)) {
121117
121124
  return void 0;
121118
121125
  }
121119
- const tail = path73.slice(RC_SESSIONS_PATH_PREFIX.length);
121126
+ const tail = pathnameOf(request7.url).slice(RC_SESSIONS_PATH_PREFIX.length);
121120
121127
  const facts = {
121121
121128
  oauthAuthorization: oauthAuthorizationOf(request7.headers),
121122
121129
  anthropicVersion: singleHeader(request7.headers, "anthropic-version"),
@@ -139837,9 +139844,13 @@ function respawnInvocation(paths) {
139837
139844
  function rcObservingResolver(resolve3, tracker, hub) {
139838
139845
  return async (request7) => {
139839
139846
  const resolution = await resolve3(request7);
139840
- return resolution.ok ? { ...resolution, route: observingRoutedRoute(resolution.route, tracker, hub === void 0 ? void 0 : { onExchangeSettled: () => {
139847
+ if (!resolution.ok) {
139848
+ return resolution;
139849
+ }
139850
+ const observing = observingRoutedRoute(resolution.route, tracker, hub === void 0 ? void 0 : { onExchangeSettled: () => {
139841
139851
  hub.reconcile();
139842
- } }) } : resolution;
139852
+ } });
139853
+ return { ...resolution, route: isRcSessionExchange(request7.url) ? { ...observing, headroomEligible: false } : observing };
139843
139854
  };
139844
139855
  }
139845
139856
  function realStatOwnExecutable(watchPath) {
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.72.1",
4765
+ version: "11.72.3",
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>",
@@ -4835,6 +4835,7 @@ var init_package = __esm({
4835
4835
  "@types/node": "^26.5.1",
4836
4836
  "@types/picomatch": "^4.0.3",
4837
4837
  "@vitest/coverage-v8": "^4.1.12",
4838
+ combinatrix: "1.0.0",
4838
4839
  "conventional-changelog-conventionalcommits": "^10.4.0",
4839
4840
  esbuild: "^0.28.2",
4840
4841
  eslint: "^10.10.0",
@@ -13467,6 +13468,13 @@ function mergeLiveTasks(tree, live) {
13467
13468
 
13468
13469
  // src/frontdoor/rcSessions.ts
13469
13470
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
13471
+ function pathnameOf(url) {
13472
+ return new URL(url ?? "/", "http://127.0.0.1").pathname;
13473
+ }
13474
+ function isRcSessionExchange(url) {
13475
+ const path42 = pathnameOf(url);
13476
+ return path42 === RC_SESSIONS_PATH_PREFIX || path42.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
13477
+ }
13470
13478
  var RC_SESSION_ID_PREFIX = "cse_";
13471
13479
  var RC_IDLE_EXPIRY_MS = 45e3;
13472
13480
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -13631,11 +13639,10 @@ function createRcSessionTracker(deps) {
13631
13639
  };
13632
13640
  const observeExchange = (request4) => {
13633
13641
  const method = (request4.method ?? "").toUpperCase();
13634
- const path42 = new URL(request4.url ?? "/", "http://127.0.0.1").pathname;
13635
- if (!path42.startsWith(RC_SESSIONS_PATH_PREFIX)) {
13642
+ if (!isRcSessionExchange(request4.url)) {
13636
13643
  return void 0;
13637
13644
  }
13638
- const tail = path42.slice(RC_SESSIONS_PATH_PREFIX.length);
13645
+ const tail = pathnameOf(request4.url).slice(RC_SESSIONS_PATH_PREFIX.length);
13639
13646
  const facts = {
13640
13647
  oauthAuthorization: oauthAuthorizationOf(request4.headers),
13641
13648
  anthropicVersion: singleHeader(request4.headers, "anthropic-version"),
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.72.1",
4741
+ version: "11.72.3",
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>",
@@ -4811,6 +4811,7 @@ var init_package = __esm({
4811
4811
  "@types/node": "^26.5.1",
4812
4812
  "@types/picomatch": "^4.0.3",
4813
4813
  "@vitest/coverage-v8": "^4.1.12",
4814
+ combinatrix: "1.0.0",
4814
4815
  "conventional-changelog-conventionalcommits": "^10.4.0",
4815
4816
  esbuild: "^0.28.2",
4816
4817
  eslint: "^10.10.0",
@@ -13052,6 +13053,13 @@ function mergeLiveTasks(tree, live) {
13052
13053
 
13053
13054
  // src/frontdoor/rcSessions.ts
13054
13055
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
13056
+ function pathnameOf(url) {
13057
+ return new URL(url ?? "/", "http://127.0.0.1").pathname;
13058
+ }
13059
+ function isRcSessionExchange(url) {
13060
+ const path42 = pathnameOf(url);
13061
+ return path42 === RC_SESSIONS_PATH_PREFIX || path42.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
13062
+ }
13055
13063
  var RC_SESSION_ID_PREFIX = "cse_";
13056
13064
  var RC_IDLE_EXPIRY_MS = 45e3;
13057
13065
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -13216,11 +13224,10 @@ function createRcSessionTracker(deps) {
13216
13224
  };
13217
13225
  const observeExchange = (request4) => {
13218
13226
  const method = (request4.method ?? "").toUpperCase();
13219
- const path42 = new URL(request4.url ?? "/", "http://127.0.0.1").pathname;
13220
- if (!path42.startsWith(RC_SESSIONS_PATH_PREFIX)) {
13227
+ if (!isRcSessionExchange(request4.url)) {
13221
13228
  return void 0;
13222
13229
  }
13223
- const tail = path42.slice(RC_SESSIONS_PATH_PREFIX.length);
13230
+ const tail = pathnameOf(request4.url).slice(RC_SESSIONS_PATH_PREFIX.length);
13224
13231
  const facts = {
13225
13232
  oauthAuthorization: oauthAuthorizationOf(request4.headers),
13226
13233
  anthropicVersion: singleHeader(request4.headers, "anthropic-version"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "11.72.1",
3
+ "version": "11.72.3",
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>",
@@ -73,6 +73,7 @@
73
73
  "@types/node": "^26.5.1",
74
74
  "@types/picomatch": "^4.0.3",
75
75
  "@vitest/coverage-v8": "^4.1.12",
76
+ "combinatrix": "1.0.0",
76
77
  "conventional-changelog-conventionalcommits": "^10.4.0",
77
78
  "esbuild": "^0.28.2",
78
79
  "eslint": "^10.10.0",