switchroom 0.13.45 → 0.13.47

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.
@@ -47902,8 +47902,8 @@ var {
47902
47902
  } = import__.default;
47903
47903
 
47904
47904
  // src/build-info.ts
47905
- var VERSION = "0.13.45";
47906
- var COMMIT_SHA = "e6c3e655";
47905
+ var VERSION = "0.13.47";
47906
+ var COMMIT_SHA = "f8dcdada";
47907
47907
 
47908
47908
  // src/cli/agent.ts
47909
47909
  init_source();
@@ -48474,11 +48474,14 @@ Example response shapes:
48474
48474
  function alignAgentUid(name, agentDir, uid, opts = {}) {
48475
48475
  const writeOut = opts.writeOut ?? ((s) => process.stdout.write(s));
48476
48476
  const logsDir = join8(homedir4(), ".switchroom", "logs", name);
48477
+ const auditDir = join8(homedir4(), ".switchroom", "audit", name);
48477
48478
  const paths = [];
48478
48479
  if (existsSync11(agentDir))
48479
48480
  paths.push(agentDir);
48480
48481
  if (existsSync11(logsDir))
48481
48482
  paths.push(logsDir);
48483
+ if (existsSync11(auditDir))
48484
+ paths.push(auditDir);
48482
48485
  if (paths.length === 0)
48483
48486
  return { chowned: false, paths: [] };
48484
48487
  const priors = [];
@@ -74711,6 +74714,7 @@ async function ensureHostMountSources(config) {
74711
74714
  dirs.push(join62(home2, ".switchroom", "agents", name));
74712
74715
  dirs.push(join62(home2, ".switchroom", "logs", name));
74713
74716
  dirs.push(join62(home2, ".claude", "projects", name));
74717
+ dirs.push(join62(home2, ".switchroom", "audit", name));
74714
74718
  }
74715
74719
  for (const dir of dirs) {
74716
74720
  await mkdir(dir, { recursive: true });
@@ -77869,12 +77873,14 @@ function initPersonalAction(name, opts) {
77869
77873
  const agentsRoot = resolveAgentsRoot(opts);
77870
77874
  const files = loadFiles(opts);
77871
77875
  loadValidateWrite(agentsRoot, agent, name, files, true);
77876
+ appendAudit(agent, "skill.init_personal", { name, files: Object.keys(files).length }, 0);
77872
77877
  }
77873
77878
  function editPersonalAction(name, opts) {
77874
77879
  const agent = resolveAgent(opts);
77875
77880
  const agentsRoot = resolveAgentsRoot(opts);
77876
77881
  const files = loadFiles(opts);
77877
77882
  loadValidateWrite(agentsRoot, agent, name, files, false);
77883
+ appendAudit(agent, "skill.edit_personal", { name, files: Object.keys(files).length }, 0);
77878
77884
  }
77879
77885
  function removePersonalAction(name, opts) {
77880
77886
  const agent = resolveAgent(opts);
@@ -77911,6 +77917,7 @@ function removePersonalAction(name, opts) {
77911
77917
  trash_path: trashTarget,
77912
77918
  recoverable_until: new Date(ts + TRASH_TTL_MS).toISOString()
77913
77919
  }));
77920
+ appendAudit(agent, "skill.remove_personal", { name }, 0);
77914
77921
  }
77915
77922
  function listPersonalAction(opts) {
77916
77923
  const agent = resolveAgent(opts);
@@ -78210,8 +78217,9 @@ function searchAction(opts) {
78210
78217
  }
78211
78218
  limit = Math.floor(n);
78212
78219
  }
78220
+ const resolvedAgent = opts.agent ?? process.env.SWITCHROOM_AGENT_NAME ?? undefined;
78213
78221
  const results = searchSkills({
78214
- agent: opts.agent,
78222
+ agent: resolvedAgent,
78215
78223
  query: opts.query,
78216
78224
  tier,
78217
78225
  limit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchroom",
3
- "version": "0.13.45",
3
+ "version": "0.13.47",
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": {
@@ -48732,10 +48732,10 @@ function sweepStaleTurnActiveMarker(stateDir, opts) {
48732
48732
  }
48733
48733
 
48734
48734
  // ../src/build-info.ts
48735
- var VERSION = "0.13.45";
48736
- var COMMIT_SHA = "e6c3e655";
48737
- var COMMIT_DATE = "2026-05-25T13:58:24Z";
48738
- var LATEST_PR = 1823;
48735
+ var VERSION = "0.13.47";
48736
+ var COMMIT_SHA = "f8dcdada";
48737
+ var COMMIT_DATE = "2026-05-25T19:41:23Z";
48738
+ var LATEST_PR = 1835;
48739
48739
  var COMMITS_AHEAD_OF_TAG = 0;
48740
48740
 
48741
48741
  // gateway/boot-version.ts