@stage-labs/metro 0.1.0-beta.127 → 0.1.0-beta.128

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.127",
3
+ "version": "0.1.0-beta.128",
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,6 +1,6 @@
1
1
  {
2
2
  "name": "metro",
3
- "version": "0.1.0-beta.127",
3
+ "version": "0.1.0-beta.128",
4
4
  "description": "Metro for Claude Code, installed by the metro daemon on this machine: every connector the agent holds as its own MCP server relayed through the daemon, the orchestrator-only guard on the main thread, the standing rules loaded at each session start, and a refresh skill for when the daemon could not keep the server list current. No vendor credential ever sits in a config file.",
5
5
  "author": {
6
6
  "name": "Bonustrack",
@@ -114,11 +114,6 @@ export function localImportConnectors(
114
114
  mode === 'overwrite'
115
115
  ? rows
116
116
  : rows.filter((row) => !current.some((r) => r.id === row.id || r.name === row.name));
117
- for (const row of fresh) {
118
- const other = current.find((r) => r.id !== row.id && r.name === row.name);
119
- if (other !== undefined)
120
- throw new ConnectorError(`a connector named '${row.name}' already exists on this daemon; rename it first`, 409);
121
- }
122
117
  const imported: LocalConnectorRow[] = fresh.map((row) => ({
123
118
  id: row.id,
124
119
  name: row.name,
@@ -127,7 +122,8 @@ export function localImportConnectors(
127
122
  config: readConfig(row.config),
128
123
  }));
129
124
  const ids = new Set(imported.map((r) => r.id));
130
- writeRows(dir, [...current.filter((r) => !ids.has(r.id)), ...imported]);
125
+ const names = new Set(imported.map((r) => r.name));
126
+ writeRows(dir, [...current.filter((r) => !ids.has(r.id) && !names.has(r.name)), ...imported]);
131
127
  return imported.length;
132
128
  }
133
129
 
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.127"
2
+ "version": "0.1.0-beta.128"
3
3
  }