@stage-labs/metro 0.1.0-beta.297 → 0.1.0-beta.298

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.297",
3
+ "version": "0.1.0-beta.298",
4
4
  "description": "The metro command line: run your agent on this machine, relaying its chat channels and connectors to Claude Code.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metro",
3
- "version": "0.1.0-beta.297",
3
+ "version": "0.1.0-beta.298",
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, and the standing rules loaded at each session start. No vendor credential ever sits in a config file.",
5
5
  "author": {
6
6
  "name": "Bonustrack",
@@ -8,6 +8,7 @@ import { assertMigrationOutcomeKnown, beginMigrationOperation, drainMigrationLis
8
8
  const locked = (phase: string): boolean => phase !== 'rolled_back';
9
9
  const retired = (record: NonNullable<ReturnType<typeof migrationRecord>>): boolean => record.move === true || record.phase === 'cutover' || record.phase === 'active' || record.phase === 'rollback';
10
10
  const refused = (): ApiError => new ApiError('This local connector is locked while it moves to the organization.', 409);
11
+ const editRefused = (): ApiError => new ApiError('This local connector is locked while it moves to the organization. To change or remove it, open Move to organization and roll back its migration first.', 409);
11
12
 
12
13
  export function migrationSource(id: string, dir = agentsDir()): ReturnType<typeof migrationRecords>[number] | null {
13
14
  const record = migrationRecord(id, dir);
@@ -27,7 +28,7 @@ export function assertLocalMigrationUse(id: string, dir = agentsDir()): void {
27
28
  }
28
29
 
29
30
  export function assertLocalMigrationEdit(id: string, dir = agentsDir()): void {
30
- if (migrationRecords(dir).some((record) => locked(record.phase) && record.sourceId === id)) throw refused();
31
+ if (migrationRecords(dir).some((record) => locked(record.phase) && record.sourceId === id)) throw editRefused();
31
32
  }
32
33
 
33
34
  export function migrationExportableRows<T extends { id: string; name: string }>(rows: readonly T[], dir = agentsDir()): T[] {
@@ -98,8 +98,9 @@ export async function discoverOrgGroups(url: string, guard: DiscoveryGuard): Pro
98
98
  try {
99
99
  return await guardedRequest(input, init, guard, budget);
100
100
  } catch (error) {
101
- failure.error = orgRuntimeError(error);
102
- throw failure.error;
101
+ const safe = orgRuntimeError(error);
102
+ if (init?.method !== 'DELETE' || safe.status !== 502) failure.error = safe;
103
+ throw safe;
103
104
  }
104
105
  };
105
106
  const tools = await listRemoteTools(new URL(url), { kind: 'none' }, send);
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.297"
2
+ "version": "0.1.0-beta.298"
3
3
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0-beta.297",
2
+ "version": "0.1.0-beta.298",
3
3
  "dependencies": {
4
4
  "@anthropic-ai/claude-agent-sdk": "0.3.287",
5
5
  "@modelcontextprotocol/sdk": "^1.29.0",