switchroom 0.15.23 → 0.15.24

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.
@@ -50477,8 +50477,8 @@ var {
50477
50477
  } = import__.default;
50478
50478
 
50479
50479
  // src/build-info.ts
50480
- var VERSION = "0.15.23";
50481
- var COMMIT_SHA = "4c70a87a";
50480
+ var VERSION = "0.15.24";
50481
+ var COMMIT_SHA = "3fce3b89";
50482
50482
 
50483
50483
  // src/cli/agent.ts
50484
50484
  init_source();
@@ -52078,6 +52078,21 @@ function dedupe2(items) {
52078
52078
  function shellSingleQuote(s) {
52079
52079
  return "'" + s.replace(/'/g, `'"'"'`) + "'";
52080
52080
  }
52081
+ function hostHomeForBake() {
52082
+ return process.env.SWITCHROOM_HOST_HOME || process.env.HOME || undefined;
52083
+ }
52084
+ function hostHomeQForBake() {
52085
+ const h = hostHomeForBake();
52086
+ return h ? shellSingleQuote(h) : undefined;
52087
+ }
52088
+ function toHostHomePath(p) {
52089
+ const hostHome = process.env.SWITCHROOM_HOST_HOME;
52090
+ const containerHome = process.env.HOME;
52091
+ if (hostHome && containerHome && hostHome !== containerHome && (p === containerHome || p.startsWith(containerHome + "/"))) {
52092
+ return hostHome + p.slice(containerHome.length);
52093
+ }
52094
+ return p;
52095
+ }
52081
52096
  function composeWithSidecar(renderedBase, sidecarPath) {
52082
52097
  if (!existsSync14(sidecarPath))
52083
52098
  return renderedBase;
@@ -52648,7 +52663,7 @@ function buildWorkspaceContext(args) {
52648
52663
  } = args;
52649
52664
  return {
52650
52665
  name,
52651
- agentDir,
52666
+ agentDir: toHostHomePath(agentDir),
52652
52667
  repoRoot: REPO_ROOT,
52653
52668
  topicId,
52654
52669
  topicName: agentConfig.topic_name,
@@ -52687,7 +52702,7 @@ function buildWorkspaceContext(args) {
52687
52702
  hindsightTopicAliasesJsonQ: hindsightTopicAliasesJson ? shellSingleQuote(hindsightTopicAliasesJson) : undefined,
52688
52703
  hindsightTopicFilterMode,
52689
52704
  switchroomConfigPathQ: switchroomConfigPath ? shellSingleQuote(resolve11(switchroomConfigPath)) : undefined,
52690
- hostHomeQ: process.env.HOME ? shellSingleQuote(process.env.HOME) : undefined,
52705
+ hostHomeQ: hostHomeQForBake(),
52691
52706
  modelQ: shellSingleQuote(resolveMainModel(agentConfig.model)),
52692
52707
  ...buildCronSessionContext(agentConfig),
52693
52708
  thinkingEffort: agentConfig.thinking_effort ?? SWITCHROOM_DEFAULT_THINKING_EFFORT,
@@ -53761,7 +53776,7 @@ function reconcileAgent(name, agentConfigRaw, agentsDir, telegramConfig, switchr
53761
53776
  const basePath = getBaseProfilePath();
53762
53777
  const startShContext = {
53763
53778
  name,
53764
- agentDir,
53779
+ agentDir: toHostHomePath(agentDir),
53765
53780
  repoRoot: REPO_ROOT,
53766
53781
  botToken: resolvedBotToken ?? rawBotToken,
53767
53782
  forumChatId: telegramConfig.forum_chat_id,
@@ -53778,7 +53793,7 @@ function reconcileAgent(name, agentConfigRaw, agentsDir, telegramConfig, switchr
53778
53793
  hindsightRecallMinOverlap,
53779
53794
  hindsightTopicAliasesJsonQ: hindsightTopicAliasesJson ? shellSingleQuote(hindsightTopicAliasesJson) : undefined,
53780
53795
  hindsightTopicFilterMode,
53781
- hostHomeQ: process.env.HOME ? shellSingleQuote(process.env.HOME) : undefined,
53796
+ hostHomeQ: hostHomeQForBake(),
53782
53797
  modelQ: shellSingleQuote(resolveMainModel(agentConfig.model)),
53783
53798
  ...buildCronSessionContext(agentConfig),
53784
53799
  thinkingEffort: agentConfig.thinking_effort ?? SWITCHROOM_DEFAULT_THINKING_EFFORT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.15.23",
3
+ "version": "0.15.24",
4
4
  "description": "Run Claude Code 24/7 on your Claude Pro/Max subscription over Telegram. Open-source alternative to OpenClaw and NanoClaw — no API keys.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -54420,11 +54420,11 @@ function readTurnActiveMarkerAgeMs(stateDir, now) {
54420
54420
  }
54421
54421
 
54422
54422
  // ../src/build-info.ts
54423
- var VERSION = "0.15.23";
54424
- var COMMIT_SHA = "4c70a87a";
54425
- var COMMIT_DATE = "2026-06-14T15:15:27+10:00";
54426
- var LATEST_PR = null;
54427
- var COMMITS_AHEAD_OF_TAG = 2;
54423
+ var VERSION = "0.15.24";
54424
+ var COMMIT_SHA = "3fce3b89";
54425
+ var COMMIT_DATE = "2026-06-14T21:03:53Z";
54426
+ var LATEST_PR = 2354;
54427
+ var COMMITS_AHEAD_OF_TAG = 0;
54428
54428
 
54429
54429
  // gateway/boot-version.ts
54430
54430
  function formatRelativeAgo(iso) {