switchroom 0.12.2 → 0.12.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.
@@ -46894,8 +46894,8 @@ var {
46894
46894
  } = import__.default;
46895
46895
 
46896
46896
  // src/build-info.ts
46897
- var VERSION = "0.12.2";
46898
- var COMMIT_SHA = "1eeb64be";
46897
+ var VERSION = "0.12.3";
46898
+ var COMMIT_SHA = "88d8cd0a";
46899
46899
 
46900
46900
  // src/cli/agent.ts
46901
46901
  init_source();
@@ -68770,22 +68770,27 @@ import { spawnSync as spawnSync8 } from "node:child_process";
68770
68770
  import { join as join42, dirname as dirname13, resolve as resolve30 } from "node:path";
68771
68771
  import { homedir as homedir22 } from "node:os";
68772
68772
  var DEFAULT_COMPOSE_PATH = join42(homedir22(), ".switchroom", "compose", "docker-compose.yml");
68773
- function isGitCheckout(scriptPath) {
68773
+ function runningFromSwitchroomCheckout(scriptPath) {
68774
68774
  let dir = dirname13(scriptPath);
68775
- for (let i = 0;i < 10; i++) {
68776
- if (existsSync48(join42(dir, ".git")))
68777
- return true;
68775
+ for (let i = 0;i < 12; i++) {
68776
+ if (existsSync48(join42(dir, ".git"))) {
68777
+ try {
68778
+ const pkg = JSON.parse(readFileSync45(join42(dir, "package.json"), "utf-8"));
68779
+ if (pkg.name === "switchroom")
68780
+ return true;
68781
+ } catch {}
68782
+ }
68778
68783
  const parent = dirname13(dir);
68779
68784
  if (parent === dir)
68780
- return false;
68785
+ break;
68781
68786
  dir = parent;
68782
68787
  }
68783
68788
  return false;
68784
68789
  }
68785
68790
  function rebuildRefusalMessage(scriptPath) {
68786
- if (isGitCheckout(scriptPath))
68791
+ if (runningFromSwitchroomCheckout(scriptPath))
68787
68792
  return null;
68788
- return `--rebuild builds the CLI from a git checkout, but switchroom is ` + `running from "${scriptPath}" \u2014 a published install (no .git ` + `ancestor). Rebuilding from source here would drift this host off ` + `the reviewed, CI-published release. Use the published path:
68793
+ return `--rebuild builds the CLI from a git checkout, but switchroom is ` + `running from "${scriptPath}" \u2014 not a switchroom source checkout ` + `(this is a published / installed copy). Rebuilding from source ` + `here would drift this host off the reviewed, CI-published ` + `release. Use the published path:
68789
68794
  ` + `
68790
68795
  ` + ` npm i -g switchroom@latest && switchroom update
68791
68796
  ` + `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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": {
@@ -46559,10 +46559,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
46559
46559
  }
46560
46560
 
46561
46561
  // ../src/build-info.ts
46562
- var VERSION = "0.12.2";
46563
- var COMMIT_SHA = "1eeb64be";
46564
- var COMMIT_DATE = "2026-05-18T09:09:53Z";
46565
- var LATEST_PR = 1507;
46562
+ var VERSION = "0.12.3";
46563
+ var COMMIT_SHA = "88d8cd0a";
46564
+ var COMMIT_DATE = "2026-05-18T09:24:07Z";
46565
+ var LATEST_PR = 1509;
46566
46566
  var COMMITS_AHEAD_OF_TAG = 2;
46567
46567
 
46568
46568
  // gateway/boot-version.ts