codeam-cli 2.74.14 → 2.75.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/index.js +139 -39
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to `codeam-cli` are documented here.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.75.0] — 2026-09-12
8
+
9
+ ### Added
10
+
11
+ - **shared:** Managed provider ids in @codeam/shared; CLI runs them on the house rail (#751)
12
+
13
+ ## [2.74.14] — 2026-09-11
14
+
15
+ ### Fixed
16
+
17
+ - **cli:** Stop dropping short ACP text deltas that are a prefix of the reply (#748)
18
+ - **cli:** Resolve select_option by optionId, stop adding `from` as an index offset (#749)
19
+
7
20
  ## [2.74.13] — 2026-09-10
8
21
 
9
22
  ### Added
package/dist/index.js CHANGED
@@ -950,6 +950,38 @@ function isKnownAgentId(id) {
950
950
  var HOUSE_AGENT_ID = "house-codeagent-cloud";
951
951
  var HOUSE_AGENT_NAME = "CodeAgent Cloud";
952
952
  var HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
953
+ var MANAGED_PROVIDER_IDS = [
954
+ "managed-deepseek",
955
+ "managed-deepseek-flash",
956
+ "managed-qwen-coder",
957
+ "managed-codex",
958
+ "managed-claude"
959
+ ];
960
+ function isManagedProviderId(value) {
961
+ return typeof value === "string" && MANAGED_PROVIDER_IDS.includes(value);
962
+ }
963
+ var MANAGED_PROVIDER_DISPLAY_NAMES = {
964
+ "managed-deepseek": "DeepSeek V4",
965
+ "managed-deepseek-flash": "DeepSeek V4 Flash",
966
+ "managed-qwen-coder": "Qwen3 Coder",
967
+ "managed-codex": "Codex",
968
+ "managed-claude": "Claude"
969
+ };
970
+ var MANAGED_AGENT_SUBTITLE = "Prepaid usage credits";
971
+ var MANAGED_AGENT_ENV = "CODEAM_MANAGED_AGENT_ID";
972
+ var LINKED_AGENT_IDS = [
973
+ "claude_code",
974
+ "codex",
975
+ "cursor",
976
+ "aider",
977
+ "coderabbit",
978
+ "gemini",
979
+ "kimi",
980
+ "openrouter",
981
+ "opencode",
982
+ HOUSE_AGENT_ID,
983
+ ...MANAGED_PROVIDER_IDS
984
+ ];
953
985
  var PUBLIC_TO_INTERNAL = {
954
986
  claude_code: "claude",
955
987
  // CLI-side extra: self-hosted deploy payloads may carry the internal id.
@@ -976,7 +1008,13 @@ var PUBLIC_TO_INTERNAL = {
976
1008
  openrouter: "claude",
977
1009
  // The house agent runs Claude Code under the hood (pointed at the
978
1010
  // MiniMax proxy). Its internal runtime is therefore `claude`.
979
- [HOUSE_AGENT_ID]: "claude"
1011
+ [HOUSE_AGENT_ID]: "claude",
1012
+ // Every managed provider runs Claude Code against our proxy too.
1013
+ "managed-deepseek": "claude",
1014
+ "managed-deepseek-flash": "claude",
1015
+ "managed-qwen-coder": "claude",
1016
+ "managed-codex": "claude",
1017
+ "managed-claude": "claude"
980
1018
  };
981
1019
  function isPublicToInternalKey(v) {
982
1020
  return Object.prototype.hasOwnProperty.call(PUBLIC_TO_INTERNAL, v);
@@ -10199,7 +10237,7 @@ function readAnonId() {
10199
10237
  }
10200
10238
  function superProperties() {
10201
10239
  return {
10202
- cliVersion: true ? "2.74.14" : "0.0.0-dev",
10240
+ cliVersion: true ? "2.75.1" : "0.0.0-dev",
10203
10241
  nodeVersion: process.version,
10204
10242
  platform: process.platform,
10205
10243
  arch: process.arch,
@@ -10441,7 +10479,7 @@ var http = __toESM(require("http"));
10441
10479
  // package.json
10442
10480
  var package_default = {
10443
10481
  name: "codeam-cli",
10444
- version: "2.74.14",
10482
+ version: "2.75.1",
10445
10483
  description: "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device \u2014 async. The terminal companion for CodeAgent Mobile.",
10446
10484
  type: "commonjs",
10447
10485
  main: "dist/index.js",
@@ -10875,6 +10913,7 @@ async function fetchProvisionCredentialDetailed(input) {
10875
10913
  method: data.method,
10876
10914
  credential: data.credential,
10877
10915
  ...typeof data.baseUrl === "string" && data.baseUrl.length > 0 ? { baseUrl: data.baseUrl } : {},
10916
+ ...typeof data.model === "string" && data.model.length > 0 ? { model: data.model } : {},
10878
10917
  ...typeof data.installScript === "string" && data.installScript.length > 0 ? { installScript: data.installScript } : {}
10879
10918
  };
10880
10919
  }
@@ -12131,7 +12170,7 @@ var CommandRelayService = class _CommandRelayService {
12131
12170
  // fresh + clear the "CLI update available" banner after a self-update
12132
12171
  // (a codespace that reinstalls @latest reconnects via heartbeat, not
12133
12172
  // pair/reconnect). Older backends ignore the extra field.
12134
- ..."2.74.14" ? { ideVersion: "2.74.14" } : {}
12173
+ ..."2.75.1" ? { ideVersion: "2.75.1" } : {}
12135
12174
  }).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
12136
12175
  }
12137
12176
  /**
@@ -24210,7 +24249,9 @@ function readHouseProxyChildEnv() {
24210
24249
  baseUrl: o.baseUrl,
24211
24250
  token: o.token,
24212
24251
  openRouter: o.openRouter === true,
24213
- ...typeof o.claudeConfigDir === "string" && o.claudeConfigDir ? { claudeConfigDir: o.claudeConfigDir } : {}
24252
+ ...typeof o.claudeConfigDir === "string" && o.claudeConfigDir ? { claudeConfigDir: o.claudeConfigDir } : {},
24253
+ ...typeof o.model === "string" && o.model ? { model: o.model } : {},
24254
+ ...typeof o.managedAgentId === "string" && o.managedAgentId ? { managedAgentId: o.managedAgentId } : {}
24214
24255
  });
24215
24256
  } catch {
24216
24257
  return {};
@@ -24250,16 +24291,24 @@ function buildHouseProxyChildEnv(cfg) {
24250
24291
  if (cfg.openRouter === true) {
24251
24292
  env.ANTHROPIC_API_KEY = "";
24252
24293
  } else {
24253
- env.ANTHROPIC_MODEL = "MiniMax-M3";
24254
- env.ANTHROPIC_DEFAULT_SONNET_MODEL = "MiniMax-M3";
24255
- env.ANTHROPIC_DEFAULT_OPUS_MODEL = "MiniMax-M3";
24256
- env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "MiniMax-M3";
24294
+ const model = typeof cfg.model === "string" && cfg.model ? cfg.model : "MiniMax-M3";
24295
+ env.ANTHROPIC_MODEL = model;
24296
+ env.ANTHROPIC_DEFAULT_SONNET_MODEL = model;
24297
+ env.ANTHROPIC_DEFAULT_OPUS_MODEL = model;
24298
+ env.ANTHROPIC_DEFAULT_HAIKU_MODEL = model;
24257
24299
  }
24258
24300
  if (typeof cfg.claudeConfigDir === "string" && cfg.claudeConfigDir) {
24259
24301
  env.CLAUDE_CONFIG_DIR = cfg.claudeConfigDir;
24260
24302
  }
24303
+ if (isManagedProviderId(cfg.managedAgentId)) {
24304
+ env[MANAGED_AGENT_ENV] = cfg.managedAgentId;
24305
+ }
24261
24306
  return env;
24262
24307
  }
24308
+ function houseRailWireId(env) {
24309
+ const managed = env[MANAGED_AGENT_ENV];
24310
+ return isManagedProviderId(managed) ? managed : HOUSE_AGENT_ID;
24311
+ }
24263
24312
  var HOUSE_PROXY_ENV_KEYS = [
24264
24313
  "ANTHROPIC_BASE_URL",
24265
24314
  "ANTHROPIC_AUTH_TOKEN",
@@ -24271,7 +24320,8 @@ var HOUSE_PROXY_ENV_KEYS = [
24271
24320
  "CLAUDE_CODE_AUTO_COMPACT_WINDOW",
24272
24321
  "CLAUDE_CODE_MAX_CONTEXT_TOKENS",
24273
24322
  "API_TIMEOUT_MS",
24274
- "CLAUDE_CONFIG_DIR"
24323
+ "CLAUDE_CONFIG_DIR",
24324
+ MANAGED_AGENT_ENV
24275
24325
  ];
24276
24326
  function clearHouseProxyEnvOverrides() {
24277
24327
  const out2 = {};
@@ -24451,7 +24501,7 @@ async function autoUpgradeBeforeCriticalCommand() {
24451
24501
  if (process.env.NODE_ENV === "test") return;
24452
24502
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
24453
24503
  if (process.env.CI) return;
24454
- const current2 = true ? "2.74.14" : null;
24504
+ const current2 = true ? "2.75.1" : null;
24455
24505
  if (!current2) return;
24456
24506
  const cache = readCache();
24457
24507
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -24468,7 +24518,7 @@ function checkForUpdates() {
24468
24518
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
24469
24519
  if (process.env.CI) return;
24470
24520
  if (!process.stdout.isTTY) return;
24471
- const current2 = true ? "2.74.14" : null;
24521
+ const current2 = true ? "2.75.1" : null;
24472
24522
  if (!current2) return;
24473
24523
  const cache = readCache();
24474
24524
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -24491,7 +24541,7 @@ var SELF_UPDATE_INSTALL_TIMEOUT_MS = 18e4;
24491
24541
  var SELF_UPDATE_LS_TIMEOUT_MS = 15e3;
24492
24542
  var SUDO_PREFLIGHT_TIMEOUT_MS = 5e3;
24493
24543
  function currentCliVersion() {
24494
- return true ? "2.74.14" : null;
24544
+ return true ? "2.75.1" : null;
24495
24545
  }
24496
24546
  async function installedVersion(deps) {
24497
24547
  const ls = await deps.run(
@@ -39210,18 +39260,25 @@ var NON_SWITCHABLE = /* @__PURE__ */ new Set([
39210
39260
  ]);
39211
39261
  function displayName(id) {
39212
39262
  if (id === HOUSE_AGENT_ID) return HOUSE_AGENT_NAME;
39263
+ if (isManagedProviderId(id)) return MANAGED_PROVIDER_DISPLAY_NAMES[id];
39213
39264
  return isKnownAgentId(id) ? AGENT_REGISTRY[id]?.displayName ?? id : id;
39214
39265
  }
39215
39266
  function credentialFailureMessage(agentId, failure) {
39216
39267
  if (failure.message) return failure.message;
39217
39268
  return `No linked credential for ${displayName(agentId)}. Link it in Profile \u203A Agents first.`;
39218
39269
  }
39219
- function resolveSwitchTarget(raw, currentAgent, currentIsHouse = false) {
39270
+ function resolveSwitchTarget(raw, currentAgent, currentIsHouse = false, currentHouseWireId = HOUSE_AGENT_ID) {
39220
39271
  if (typeof raw !== "string" || raw.length === 0) {
39221
39272
  return { ok: false, error: "switch_agent: missing agentId" };
39222
39273
  }
39274
+ if (isManagedProviderId(raw)) {
39275
+ if (currentIsHouse && currentHouseWireId === raw) {
39276
+ return { ok: false, error: `${displayName(raw)} is already this session's agent.` };
39277
+ }
39278
+ return { ok: true, agentId: "claude", wireId: raw, house: true };
39279
+ }
39223
39280
  if (raw === HOUSE_AGENT_ID) {
39224
- if (currentIsHouse) {
39281
+ if (currentIsHouse && currentHouseWireId === HOUSE_AGENT_ID) {
39225
39282
  return { ok: false, error: `${HOUSE_AGENT_NAME} is already this session's agent.` };
39226
39283
  }
39227
39284
  return { ok: true, agentId: "claude", wireId: HOUSE_AGENT_ID, house: true };
@@ -39317,7 +39374,8 @@ function makeSerializedSwitchEmitter(post2) {
39317
39374
  async function performAgentSwitch(deps, rawAgentId, fastPath = {}) {
39318
39375
  const from = deps.currentAgent();
39319
39376
  const fromIsHouse = deps.currentIsHouse();
39320
- const target = resolveSwitchTarget(rawAgentId, from, fromIsHouse);
39377
+ const fromHouseWireId = deps.currentHouseWireId?.() ?? HOUSE_AGENT_ID;
39378
+ const target = resolveSwitchTarget(rawAgentId, from, fromIsHouse, fromHouseWireId);
39321
39379
  if (!target.ok) {
39322
39380
  return {
39323
39381
  ok: false,
@@ -39327,7 +39385,7 @@ async function performAgentSwitch(deps, rawAgentId, fastPath = {}) {
39327
39385
  }
39328
39386
  const agentId = target.agentId;
39329
39387
  const wireId = target.wireId;
39330
- const fromWireId = fromIsHouse ? HOUSE_AGENT_ID : from;
39388
+ const fromWireId = fromIsHouse ? fromHouseWireId : from;
39331
39389
  const targetName = displayName(wireId);
39332
39390
  const emitStatus = (status2) => deps.postEvent("switch_agent_status", { ...status2 });
39333
39391
  const emitStep = (step) => deps.postEvent("switch_agent_progress", { step, agentId: wireId });
@@ -39350,7 +39408,12 @@ async function performAgentSwitch(deps, rawAgentId, fastPath = {}) {
39350
39408
  return fail2(`${targetName} isn't available on this backend yet.`);
39351
39409
  }
39352
39410
  try {
39353
- deps.provisionHouseProxy({ baseUrl: cred.baseUrl, token: cred.credential });
39411
+ deps.provisionHouseProxy({
39412
+ baseUrl: cred.baseUrl,
39413
+ token: cred.credential,
39414
+ ...cred.model ? { model: cred.model } : {},
39415
+ ...isManagedProviderId(wireId) ? { managedAgentId: wireId } : {}
39416
+ });
39354
39417
  } catch (err) {
39355
39418
  log.warn("switchAgent", `house proxy provisioning failed: ${err.message}`);
39356
39419
  return fail2(`Couldn't configure ${targetName} on this machine.`);
@@ -39377,11 +39440,17 @@ async function performAgentSwitch(deps, rawAgentId, fastPath = {}) {
39377
39440
  }
39378
39441
  void emitStep("restart");
39379
39442
  try {
39380
- await deps.swapRuntime(agentId, { house: target.house });
39443
+ await deps.swapRuntime(agentId, {
39444
+ house: target.house,
39445
+ ...isManagedProviderId(wireId) ? { wireId } : {}
39446
+ });
39381
39447
  } catch (err) {
39382
39448
  log.warn("switchAgent", `swap failed, reverting to ${fromWireId}: ${err.message}`);
39383
39449
  try {
39384
- await deps.revertRuntime(from, { house: fromIsHouse });
39450
+ await deps.revertRuntime(from, {
39451
+ house: fromIsHouse,
39452
+ ...fromIsHouse && isManagedProviderId(fromHouseWireId) ? { wireId: fromHouseWireId } : {}
39453
+ });
39385
39454
  } catch (revertErr) {
39386
39455
  log.warn("switchAgent", `revert failed: ${revertErr.message}`);
39387
39456
  return fail2(
@@ -42606,9 +42675,9 @@ function rebindSessionHandles(ctx, outcome) {
42606
42675
  Object.assign(ctx, outcome.handles);
42607
42676
  return outcome;
42608
42677
  }
42609
- function namesCurrentAgent(requested, currentAgent, currentIsHouse) {
42678
+ function namesCurrentAgent(requested, currentAgent, currentIsHouse, currentHouseWireId = HOUSE_AGENT_ID) {
42610
42679
  if (requested === currentAgent) return true;
42611
- if (currentIsHouse) return requested === HOUSE_AGENT_ID;
42680
+ if (currentIsHouse) return requested === currentHouseWireId;
42612
42681
  return publicToInternal(requested) === currentAgent;
42613
42682
  }
42614
42683
  async function routeSquadTask(ctx, target) {
@@ -42821,7 +42890,12 @@ async function startTaskH(ctx) {
42821
42890
  await relay.sendResult(cmd.id, "failed", { error: "empty prompt" });
42822
42891
  return;
42823
42892
  }
42824
- if (requestedAgentId.length > 0 && !namesCurrentAgent(requestedAgentId, opts.agent, ctx.currentIsHouse?.() ?? false)) {
42893
+ if (requestedAgentId.length > 0 && !namesCurrentAgent(
42894
+ requestedAgentId,
42895
+ opts.agent,
42896
+ ctx.currentIsHouse?.() ?? false,
42897
+ ctx.currentHouseWireId?.() ?? HOUSE_AGENT_ID
42898
+ )) {
42825
42899
  const routed = await routeSquadTask(ctx, requestedAgentId);
42826
42900
  if (!routed.ok) {
42827
42901
  log.warn("acpRunner", `start_task routing to ${requestedAgentId} failed: ${routed.error}`);
@@ -43134,6 +43208,15 @@ async function getConversationH(ctx) {
43134
43208
  }
43135
43209
  async function listModelsH(ctx) {
43136
43210
  const { cmd, relay, client: client3 } = ctx;
43211
+ const wireId = ctx.currentHouseWireId?.();
43212
+ if (ctx.currentIsHouse?.() && isManagedProviderId(wireId) && wireId !== "managed-claude") {
43213
+ const pinned = process.env.ANTHROPIC_MODEL?.trim() || client3.getCurrentModelId() || wireId;
43214
+ await relay.sendResult(cmd.id, "completed", {
43215
+ models: [{ id: pinned, label: MANAGED_PROVIDER_DISPLAY_NAMES[wireId] }],
43216
+ currentModelId: pinned
43217
+ });
43218
+ return;
43219
+ }
43137
43220
  await relay.sendResult(cmd.id, "completed", {
43138
43221
  models: client3.getAvailableModels(),
43139
43222
  currentModelId: client3.getCurrentModelId()
@@ -44286,6 +44369,8 @@ async function runAcpSession(opts) {
44286
44369
  };
44287
44370
  let client3 = new AcpClient(clientOptions);
44288
44371
  let _budgetReachedPosted = false;
44372
+ const initialWireId = houseRailWireId(process.env);
44373
+ const initialManagedId = isHouseProxyEnv(process.env) && isManagedProviderId(initialWireId) ? initialWireId : null;
44289
44374
  const makeBudgetRecovery = () => createBudgetRecovery({
44290
44375
  publishText: (text) => publisher.publishOutput({ type: "text", content: text, done: true }),
44291
44376
  publishSelectPrompt: (question, options) => publisher.publishOutput({
@@ -44302,7 +44387,7 @@ async function runAcpSession(opts) {
44302
44387
  appendAgentReply: (text) => history.appendAgentReply(text),
44303
44388
  flushHistory: () => void history.flush(),
44304
44389
  relaunchProxyWithoutBudget,
44305
- agentId: opts.agent,
44390
+ agentId: initialManagedId ?? opts.agent,
44306
44391
  log: (msg) => log.info("acpRunner", msg)
44307
44392
  });
44308
44393
  let budgetRecovery = makeBudgetRecovery();
@@ -44350,7 +44435,7 @@ async function runAcpSession(opts) {
44350
44435
  showRelayNotice();
44351
44436
  void publisher.publishOutput({
44352
44437
  type: "agent_banner",
44353
- agentId: opts.agent,
44438
+ agentId: initialManagedId ?? opts.agent,
44354
44439
  // "Welcome back!" ONLY when we actually resumed a prior conversation.
44355
44440
  // A fresh pairing is somebody's FIRST turn — greeting them with "back"
44356
44441
  // is plainly wrong and was the top confusion in new-user recordings.
@@ -44359,7 +44444,7 @@ async function runAcpSession(opts) {
44359
44444
  // (codex-acp returns `currentModelId` on newSession; claude /
44360
44445
  // gemini adapters omit it). Falls back to `<display name>`
44361
44446
  // alone so the card never renders with a dangling separator.
44362
- subtitle: buildBannerSubtitle(opts.agent, acpSessionId, handshakeModel, handshakeTier),
44447
+ subtitle: initialManagedId ? `${MANAGED_PROVIDER_DISPLAY_NAMES[initialManagedId]} \xB7 ${MANAGED_AGENT_SUBTITLE}` : buildBannerSubtitle(opts.agent, acpSessionId, handshakeModel, handshakeTier),
44363
44448
  // A human location, NOT the raw cwd. On a self-hosted box the cwd is
44364
44449
  // `/home/box/.codeam/self-hosted/<uuid>` and on a codespace it's a UUID
44365
44450
  // directory — both are noise to the user and leak internal layout.
@@ -44405,7 +44490,7 @@ async function runAcpSession(opts) {
44405
44490
  sessionId: opts.sessionId,
44406
44491
  pluginId: opts.pluginId,
44407
44492
  pluginAuthToken: opts.pluginAuthToken,
44408
- agentId: opts.agent
44493
+ agentId: initialManagedId ?? opts.agent
44409
44494
  });
44410
44495
  void turnFiles.flushTurn().catch(() => {
44411
44496
  });
@@ -44479,7 +44564,9 @@ async function runAcpSession(opts) {
44479
44564
  emitSwitchEvent,
44480
44565
  // Same live flag the switch deps read — a start_task naming the
44481
44566
  // house agent on a house session is the agent already running.
44482
- () => houseActive
44567
+ () => houseActive,
44568
+ // …and WHICH house-rail agent (a managed id, or the house sentinel).
44569
+ () => houseWireId
44483
44570
  );
44484
44571
  },
44485
44572
  { id: opts.agent, name: opts.agent, displayName: opts.agent },
@@ -44518,6 +44605,7 @@ async function runAcpSession(opts) {
44518
44605
  const pendingProposal = { current: null };
44519
44606
  let switchCredentialEnv = {};
44520
44607
  let houseActive = isHouseProxyEnv(process.env);
44608
+ let houseWireId = houseRailWireId(process.env);
44521
44609
  let houseEnv = houseActive ? pickHouseProxyEnv(process.env) : {};
44522
44610
  let pendingHouseConfig = null;
44523
44611
  const relaunchWith = async (nextAgent, swapOpts = { house: false }) => {
@@ -44565,6 +44653,7 @@ async function runAcpSession(opts) {
44565
44653
  const wasHouse = houseActive;
44566
44654
  houseActive = swapOpts.house;
44567
44655
  if (swapOpts.house) {
44656
+ houseWireId = swapOpts.wireId ?? HOUSE_AGENT_ID;
44568
44657
  if (pendingHouseConfig) {
44569
44658
  persistHouseProxyConfig(pendingHouseConfig);
44570
44659
  pendingHouseConfig = null;
@@ -44572,12 +44661,14 @@ async function runAcpSession(opts) {
44572
44661
  } else if (wasHouse) {
44573
44662
  clearHouseProxyConfig();
44574
44663
  }
44664
+ const managedBanner = swapOpts.house && isManagedProviderId(houseWireId) ? houseWireId : null;
44575
44665
  void publisher.publishOutput({
44576
44666
  type: "agent_banner",
44577
- agentId: swapOpts.house ? HOUSE_AGENT_ID : nextAgent,
44667
+ agentId: swapOpts.house ? houseWireId : nextAgent,
44578
44668
  // A switch starts a FRESH conversation with the new agent — never "back".
44579
- title: swapOpts.house ? HOUSE_AGENT_NAME : bannerTitle(false),
44580
- subtitle: swapOpts.house ? HOUSE_AGENT_SUBTITLE : buildBannerSubtitle(nextAgent, hs.sessionId, hs.model, hs.tier),
44669
+ // A managed target is named by its model; the house agent stays white-label.
44670
+ title: managedBanner ? MANAGED_PROVIDER_DISPLAY_NAMES[managedBanner] : swapOpts.house ? HOUSE_AGENT_NAME : bannerTitle(false),
44671
+ subtitle: managedBanner ? MANAGED_AGENT_SUBTITLE : swapOpts.house ? HOUSE_AGENT_SUBTITLE : buildBannerSubtitle(nextAgent, hs.sessionId, hs.model, hs.tier),
44581
44672
  path: swapOpts.house ? "" : bannerLocation(opts.cwd),
44582
44673
  done: true
44583
44674
  });
@@ -44594,6 +44685,7 @@ async function runAcpSession(opts) {
44594
44685
  const switchDeps = {
44595
44686
  currentAgent: () => opts.agent,
44596
44687
  currentIsHouse: () => houseActive,
44688
+ currentHouseWireId: () => houseWireId,
44597
44689
  postEvent: emitSwitchEvent,
44598
44690
  fetchCredential: (agentId) => fetchProvisionCredentialDetailed({
44599
44691
  agentId,
@@ -44605,7 +44697,7 @@ async function runAcpSession(opts) {
44605
44697
  provisionCredential: (agentId, auth) => {
44606
44698
  switchCredentialEnv = provisionAgentCredentials(agentId, auth);
44607
44699
  },
44608
- provisionHouseProxy: ({ baseUrl, token }) => {
44700
+ provisionHouseProxy: ({ baseUrl, token, model, managedAgentId }) => {
44609
44701
  const claudeConfigDir = path87.join(
44610
44702
  os62.homedir(),
44611
44703
  ".codeam",
@@ -44616,8 +44708,15 @@ async function runAcpSession(opts) {
44616
44708
  fs78.mkdirSync(claudeConfigDir, { recursive: true, mode: 448 });
44617
44709
  } catch {
44618
44710
  }
44619
- houseEnv = buildHouseProxyChildEnv({ baseUrl, token, claudeConfigDir });
44620
- pendingHouseConfig = { baseUrl, token, claudeConfigDir };
44711
+ const cfg = {
44712
+ baseUrl,
44713
+ token,
44714
+ claudeConfigDir,
44715
+ ...model ? { model } : {},
44716
+ ...managedAgentId ? { managedAgentId } : {}
44717
+ };
44718
+ houseEnv = buildHouseProxyChildEnv(cfg);
44719
+ pendingHouseConfig = cfg;
44621
44720
  switchCredentialEnv = {};
44622
44721
  },
44623
44722
  ensureBinary: (agentId, installScript, onRetry) => ensureAgentBinaryForSwitch(agentId, installScript, { onRetry }),
@@ -44705,7 +44804,7 @@ async function runAcpSession(opts) {
44705
44804
  await new Promise(() => {
44706
44805
  });
44707
44806
  }
44708
- async function handleCommand(cmd, client3, relay, acpSessionId, streaming, opts, history, jsonlHistory, agentCaps, turnFiles, getBeads, publisher, recentStderr, budgetRecovery, budgetReachedFlag, onActiveSessionChanged, switchAgent, pendingHandoff, squad, routeToAgent, pendingProposal, postSquadEvent, currentIsHouse) {
44807
+ async function handleCommand(cmd, client3, relay, acpSessionId, streaming, opts, history, jsonlHistory, agentCaps, turnFiles, getBeads, publisher, recentStderr, budgetRecovery, budgetReachedFlag, onActiveSessionChanged, switchAgent, pendingHandoff, squad, routeToAgent, pendingProposal, postSquadEvent, currentIsHouse, currentHouseWireId) {
44709
44808
  const session = {
44710
44809
  client: client3,
44711
44810
  relay,
@@ -44728,7 +44827,8 @@ async function handleCommand(cmd, client3, relay, acpSessionId, streaming, opts,
44728
44827
  routeToAgent,
44729
44828
  pendingProposal,
44730
44829
  postSquadEvent,
44731
- currentIsHouse
44830
+ currentIsHouse,
44831
+ currentHouseWireId
44732
44832
  };
44733
44833
  await dispatchAcpCommand(assembleAcpCommandContext(session, cmd));
44734
44834
  }
@@ -47006,7 +47106,7 @@ async function start(requestedAgent, presetSession) {
47006
47106
  // The house agent runs the `claude` runtime, so `session.agent` cannot
47007
47107
  // tell it apart; the managed-proxy env can (`isHouseProxyEnv`). The
47008
47108
  // backend turns the tool router on for the house agent ONLY.
47009
- agent: isHouseProxyEnv(process.env) ? HOUSE_AGENT_ID : session.agent
47109
+ agent: isHouseProxyEnv(process.env) ? houseRailWireId(process.env) : session.agent
47010
47110
  });
47011
47111
  }
47012
47112
  const mcpServers = mergeWithLocalMcpServers(
@@ -49857,7 +49957,7 @@ function checkChokidar() {
49857
49957
  }
49858
49958
  async function doctor(args2 = []) {
49859
49959
  const json = args2.includes("--json");
49860
- const cliVersion = true ? "2.74.14" : "0.0.0-dev";
49960
+ const cliVersion = true ? "2.75.1" : "0.0.0-dev";
49861
49961
  const apiBase2 = resolveApiBaseUrl();
49862
49962
  const diagnosticId = (0, import_node_crypto13.randomUUID)();
49863
49963
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -50381,7 +50481,7 @@ async function mcpWarm(argv = [], opts = {}) {
50381
50481
  // src/commands/version.ts
50382
50482
  var import_picocolors15 = __toESM(require("picocolors"));
50383
50483
  function version2() {
50384
- const v = true ? "2.74.14" : "unknown";
50484
+ const v = true ? "2.75.1" : "unknown";
50385
50485
  console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
50386
50486
  }
50387
50487
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.74.14",
3
+ "version": "2.75.1",
4
4
  "description": "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device — async. The terminal companion for CodeAgent Mobile.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",