agent-shim 11.72.1 → 11.72.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
@@ -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.2",
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>",
@@ -120948,6 +120948,13 @@ function mergeLiveTasks(tree, live) {
120948
120948
 
120949
120949
  // src/frontdoor/rcSessions.ts
120950
120950
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
120951
+ function pathnameOf(url2) {
120952
+ return new URL(url2 ?? "/", "http://127.0.0.1").pathname;
120953
+ }
120954
+ function isRcSessionExchange(url2) {
120955
+ const path73 = pathnameOf(url2);
120956
+ return path73 === RC_SESSIONS_PATH_PREFIX || path73.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
120957
+ }
120951
120958
  var RC_SESSION_ID_PREFIX = "cse_";
120952
120959
  var RC_IDLE_EXPIRY_MS = 45e3;
120953
120960
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -121112,11 +121119,10 @@ function createRcSessionTracker(deps) {
121112
121119
  };
121113
121120
  const observeExchange = (request7) => {
121114
121121
  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)) {
121122
+ if (!isRcSessionExchange(request7.url)) {
121117
121123
  return void 0;
121118
121124
  }
121119
- const tail = path73.slice(RC_SESSIONS_PATH_PREFIX.length);
121125
+ const tail = pathnameOf(request7.url).slice(RC_SESSIONS_PATH_PREFIX.length);
121120
121126
  const facts = {
121121
121127
  oauthAuthorization: oauthAuthorizationOf(request7.headers),
121122
121128
  anthropicVersion: singleHeader(request7.headers, "anthropic-version"),
@@ -139837,9 +139843,13 @@ function respawnInvocation(paths) {
139837
139843
  function rcObservingResolver(resolve3, tracker, hub) {
139838
139844
  return async (request7) => {
139839
139845
  const resolution = await resolve3(request7);
139840
- return resolution.ok ? { ...resolution, route: observingRoutedRoute(resolution.route, tracker, hub === void 0 ? void 0 : { onExchangeSettled: () => {
139846
+ if (!resolution.ok) {
139847
+ return resolution;
139848
+ }
139849
+ const observing = observingRoutedRoute(resolution.route, tracker, hub === void 0 ? void 0 : { onExchangeSettled: () => {
139841
139850
  hub.reconcile();
139842
- } }) } : resolution;
139851
+ } });
139852
+ return { ...resolution, route: isRcSessionExchange(request7.url) ? { ...observing, headroomEligible: false } : observing };
139843
139853
  };
139844
139854
  }
139845
139855
  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.2",
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>",
@@ -13467,6 +13467,13 @@ function mergeLiveTasks(tree, live) {
13467
13467
 
13468
13468
  // src/frontdoor/rcSessions.ts
13469
13469
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
13470
+ function pathnameOf(url) {
13471
+ return new URL(url ?? "/", "http://127.0.0.1").pathname;
13472
+ }
13473
+ function isRcSessionExchange(url) {
13474
+ const path42 = pathnameOf(url);
13475
+ return path42 === RC_SESSIONS_PATH_PREFIX || path42.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
13476
+ }
13470
13477
  var RC_SESSION_ID_PREFIX = "cse_";
13471
13478
  var RC_IDLE_EXPIRY_MS = 45e3;
13472
13479
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -13631,11 +13638,10 @@ function createRcSessionTracker(deps) {
13631
13638
  };
13632
13639
  const observeExchange = (request4) => {
13633
13640
  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)) {
13641
+ if (!isRcSessionExchange(request4.url)) {
13636
13642
  return void 0;
13637
13643
  }
13638
- const tail = path42.slice(RC_SESSIONS_PATH_PREFIX.length);
13644
+ const tail = pathnameOf(request4.url).slice(RC_SESSIONS_PATH_PREFIX.length);
13639
13645
  const facts = {
13640
13646
  oauthAuthorization: oauthAuthorizationOf(request4.headers),
13641
13647
  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.2",
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>",
@@ -13052,6 +13052,13 @@ function mergeLiveTasks(tree, live) {
13052
13052
 
13053
13053
  // src/frontdoor/rcSessions.ts
13054
13054
  var RC_SESSIONS_PATH_PREFIX = "/v1/code/sessions";
13055
+ function pathnameOf(url) {
13056
+ return new URL(url ?? "/", "http://127.0.0.1").pathname;
13057
+ }
13058
+ function isRcSessionExchange(url) {
13059
+ const path42 = pathnameOf(url);
13060
+ return path42 === RC_SESSIONS_PATH_PREFIX || path42.startsWith(`${RC_SESSIONS_PATH_PREFIX}/`);
13061
+ }
13055
13062
  var RC_SESSION_ID_PREFIX = "cse_";
13056
13063
  var RC_IDLE_EXPIRY_MS = 45e3;
13057
13064
  var RC_CREATE_RESPONSE_CAP_BYTES = 8192;
@@ -13216,11 +13223,10 @@ function createRcSessionTracker(deps) {
13216
13223
  };
13217
13224
  const observeExchange = (request4) => {
13218
13225
  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)) {
13226
+ if (!isRcSessionExchange(request4.url)) {
13221
13227
  return void 0;
13222
13228
  }
13223
- const tail = path42.slice(RC_SESSIONS_PATH_PREFIX.length);
13229
+ const tail = pathnameOf(request4.url).slice(RC_SESSIONS_PATH_PREFIX.length);
13224
13230
  const facts = {
13225
13231
  oauthAuthorization: oauthAuthorizationOf(request4.headers),
13226
13232
  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.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>",