@stage-labs/metro 0.1.0-beta.94 → 0.1.0-beta.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stage-labs/metro",
3
- "version": "0.1.0-beta.94",
3
+ "version": "0.1.0-beta.96",
4
4
  "description": "The metro command line. Sign in once per machine, then hand your MCP connector list to Claude Code without the credentials touching disk, argv or shell history.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- import { existsSync, readdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
1
+ import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import { errMsg, log } from '@metro-labs/core/log';
4
4
  import { claudeDir } from '../claude/files.js';
@@ -76,9 +76,7 @@ const readOrNull = (path: string): string | null => {
76
76
 
77
77
  function writeIfChanged(path: string, text: string): boolean {
78
78
  if (readOrNull(path) === text) return false;
79
- const tmp = `${path}.metro-${String(process.pid)}`;
80
- writeFileSync(tmp, text, { mode: 0o644 });
81
- renameSync(tmp, path);
79
+ writeFileSync(path, text, { mode: 0o644 });
82
80
  return true;
83
81
  }
84
82
 
@@ -106,7 +104,7 @@ export function syncPluginServers(opts: PluginSyncOptions = {}): number {
106
104
  if (written > 0)
107
105
  log.info(
108
106
  { files: written, servers: Object.keys(servers).length },
109
- 'plugin: connector servers written; a Claude Code session started after this sees them, /reload-plugins does not',
107
+ 'plugin: connector servers written; run /reload-plugins --force to pick them up in a running session',
110
108
  );
111
109
  return written;
112
110
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.94"
2
+ "version": "0.1.0-beta.96"
3
3
  }