@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 +1 -1
- package/runtime/marketplace/plugin/.claude-plugin/plugin.json +1 -1
- package/runtime/node_modules/@metro-labs/daemon/src/connectors/migration-guard.ts +2 -1
- package/runtime/node_modules/@metro-labs/daemon/src/connectors/org-runtime-discovery.ts +3 -2
- package/runtime/runtime.json +1 -1
- package/runtime/sdk-runner/runner.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metro",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
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
|
|
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
|
-
|
|
102
|
-
|
|
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);
|
package/runtime/runtime.json
CHANGED