@stage-labs/metro 0.1.0-beta.210 → 0.1.0-beta.212
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": "metro",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.212",
|
|
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",
|
|
@@ -154,13 +154,24 @@ function capturePane(tmux: string): string {
|
|
|
154
154
|
return run.error === undefined && run.status === 0 ? run.stdout : '';
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
function noteLaunchLines(pane: string, seen: Set<string>): void {
|
|
158
|
+
for (const line of pane.split('\n').map((l) => l.trim()))
|
|
159
|
+
if (line.startsWith('metro claude:') && !seen.has(line)) {
|
|
160
|
+
seen.add(line);
|
|
161
|
+
log.info({ line }, 'claude-session: metro claude said');
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
157
165
|
function confirmChannels(tmux: string, until: number): void {
|
|
166
|
+
const seen = new Set<string>();
|
|
167
|
+
let confirmed = false;
|
|
158
168
|
const tick = (): void => {
|
|
159
169
|
const pane = capturePane(tmux);
|
|
160
|
-
|
|
170
|
+
noteLaunchLines(pane, seen);
|
|
171
|
+
if (!confirmed && pane.includes(WARNING) && pane.includes('server:metro')) {
|
|
161
172
|
spawnSync(...asAgent(tmux, ['send-keys', '-t', SESSION_NAME, 'Enter']), { stdio: 'ignore' });
|
|
162
173
|
log.info('claude-session: confirmed the development channels dialog for server:metro');
|
|
163
|
-
|
|
174
|
+
confirmed = true;
|
|
164
175
|
}
|
|
165
176
|
if (Date.now() < until && sessionRunning(tmux)) setTimeout(tick, CONFIRM_POLL_MS).unref();
|
|
166
177
|
};
|
package/runtime/runtime.json
CHANGED