@stage-labs/metro 0.1.0-beta.269 → 0.1.0-beta.270

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.269",
3
+ "version": "0.1.0-beta.270",
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.269",
3
+ "version": "0.1.0-beta.270",
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",
@@ -46,6 +46,7 @@ export interface RunnerTask {
46
46
  status: RunnerTaskState;
47
47
  background: boolean;
48
48
  startedAt: number;
49
+ firstStartedAt?: number;
49
50
  updatedAt: number;
50
51
  endedAt: number | null;
51
52
  lastTool: string | null;
@@ -133,6 +134,7 @@ function task(raw: unknown): RunnerTask | null {
133
134
  id: String(raw.id), kind: name(raw.kind), agent: name(raw.agent), status: raw.status, background: raw.background === true,
134
135
  startedAt: count(raw.startedAt), updatedAt: count(raw.updatedAt), endedAt: count(raw.endedAt) || null,
135
136
  lastTool: name(raw.lastTool), toolUses: count(raw.toolUses), durationMs: count(raw.durationMs),
137
+ ...(count(raw.firstStartedAt) > 0 ? { firstStartedAt: count(raw.firstStartedAt) } : {}),
136
138
  ...(raw.description === undefined ? {} : { description: runnerTaskDescription(raw.description) }),
137
139
  ...(raw.lastObservedModel === undefined ? {} : { lastObservedModel: runnerTaskModel(raw.lastObservedModel) }),
138
140
  };
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.269"
2
+ "version": "0.1.0-beta.270"
3
3
  }
@@ -46,6 +46,7 @@ export interface RunnerTask {
46
46
  status: RunnerTaskState;
47
47
  background: boolean;
48
48
  startedAt: number;
49
+ firstStartedAt?: number;
49
50
  updatedAt: number;
50
51
  endedAt: number | null;
51
52
  lastTool: string | null;
@@ -133,6 +134,7 @@ function task(raw: unknown): RunnerTask | null {
133
134
  id: String(raw.id), kind: name(raw.kind), agent: name(raw.agent), status: raw.status, background: raw.background === true,
134
135
  startedAt: count(raw.startedAt), updatedAt: count(raw.updatedAt), endedAt: count(raw.endedAt) || null,
135
136
  lastTool: name(raw.lastTool), toolUses: count(raw.toolUses), durationMs: count(raw.durationMs),
137
+ ...(count(raw.firstStartedAt) > 0 ? { firstStartedAt: count(raw.firstStartedAt) } : {}),
136
138
  ...(raw.description === undefined ? {} : { description: runnerTaskDescription(raw.description) }),
137
139
  ...(raw.lastObservedModel === undefined ? {} : { lastObservedModel: runnerTaskModel(raw.lastObservedModel) }),
138
140
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0-beta.269",
2
+ "version": "0.1.0-beta.270",
3
3
  "dependencies": {
4
4
  "@anthropic-ai/claude-agent-sdk": "0.3.287",
5
5
  "@modelcontextprotocol/sdk": "^1.29.0",
@@ -123,6 +123,7 @@ export class ActivityTasks {
123
123
  task.agent = activityName(message.subagent_type) ?? task.agent;
124
124
  task.background = message.is_backgrounded === true;
125
125
  task.startedAt = Date.now();
126
+ task.firstStartedAt ??= task.startedAt;
126
127
  task.endedAt = null;
127
128
  if (message.tool_use_id) this.link(message.tool_use_id, task.id);
128
129
  this.describe(task, message.description);