@stage-labs/metro 0.1.0-beta.212 → 0.1.0-beta.213
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/dist/claude.js
CHANGED
|
@@ -38,6 +38,7 @@ export function gatewayEnv(base, agentKey, port) {
|
|
|
38
38
|
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY: '1',
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
+
export const channelEnv = (env) => set(env, 'MCP_PROTOCOL_NEGOTIATION') ? env : { ...env, MCP_PROTOCOL_NEGOTIATION: 'legacy' };
|
|
41
42
|
const OWN_CREDENTIALS = ['ANTHROPIC_API_KEY', 'ANTHROPIC_AUTH_TOKEN'];
|
|
42
43
|
export function credentialEnv(env, agentKey, signedIn) {
|
|
43
44
|
if (signedIn || OWN_CREDENTIALS.some((name) => set(env, name)))
|
|
@@ -142,9 +143,9 @@ export async function launchClaude(extra) {
|
|
|
142
143
|
try {
|
|
143
144
|
if ('skip' in decision) {
|
|
144
145
|
process.stderr.write(`metro claude: ${decision.skip}\n`);
|
|
145
|
-
return await runClaude(claudeArgs(extra, mcp?.path, mode, prompt), process.env);
|
|
146
|
+
return await runClaude(claudeArgs(extra, mcp?.path, mode, prompt), channelEnv(process.env));
|
|
146
147
|
}
|
|
147
|
-
return await runClaude(claudeArgs(extra, mcp?.path, mode, prompt), gatewayLaunchEnv(decision.key, port));
|
|
148
|
+
return await runClaude(claudeArgs(extra, mcp?.path, mode, prompt), channelEnv(gatewayLaunchEnv(decision.key, port)));
|
|
148
149
|
}
|
|
149
150
|
finally {
|
|
150
151
|
mcp?.cleanup();
|
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.213",
|
|
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",
|
package/runtime/runtime.json
CHANGED