bridge-agent 0.15.2 → 0.16.0

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.
@@ -22381,8 +22381,8 @@ async function listAgents(ctx) {
22381
22381
  async function getAgentStatus(ctx, agentId) {
22382
22382
  return request(ctx, "GET", projectPath(ctx, `/agents/${agentId}`));
22383
22383
  }
22384
- async function spawnAgent(ctx, agentKey, daemonId, role, cmd) {
22385
- return request(ctx, "POST", projectPath(ctx, "/agents"), { agentKey, daemonId, role, cmd });
22384
+ async function spawnAgent(ctx, agentKey, daemonId, role, cmd, model) {
22385
+ return request(ctx, "POST", projectPath(ctx, "/agents"), { agentKey, daemonId, role, cmd, model });
22386
22386
  }
22387
22387
  async function killAgent(ctx, agentId) {
22388
22388
  const base = ctx.serverUrl.replace(/\/$/, "");
@@ -22785,26 +22785,27 @@ function registerOrchestrationTools(server, ctx) {
22785
22785
  );
22786
22786
  server.tool(
22787
22787
  "bridge_list_agents",
22788
- `List active agents in your scope. Project-scoped contexts (the default) see ONLY this project's agents; workspace-scoped contexts see all agents across projects. Each entry includes agentId, agentKey, status (idle/busy/disconnected), assignedTodo, role, runnerCmd, projectId, inRun, state (idle/working), lastOutputAt, and contextUsedPct (0\u2013100, null if not a Claude agent). inRun:true means the agent is already registered in the active run. inRun:false means it was spawned after the run started or in a previous session \u2014 it can still be assigned (auto-registered on first assign). Runner agents (role:"runner") are dev server consoles \u2014 use bridge_get_agent_output to read them.`,
22788
+ `List active agents in your scope. Project-scoped contexts (the default) see ONLY this project's agents; workspace-scoped contexts see all agents across projects. Each entry includes agentId, agentKey, name (human-readable label like "OpenCode #2 \xB7 Sonnet"), model, status (idle/busy/disconnected), assignedTodo, role, runnerCmd, projectId, inRun, state (idle/working), lastOutputAt, and contextUsedPct (0\u2013100, null if not a Claude agent). inRun:true means the agent is already registered in the active run. inRun:false means it was spawned after the run started or in a previous session \u2014 it can still be assigned (auto-registered on first assign). Runner agents (role:"runner") are dev server consoles \u2014 use bridge_get_agent_output to read them.`,
22789
22789
  {},
22790
22790
  () => safe(() => listAgents(ctx))
22791
22791
  );
22792
22792
  server.tool(
22793
22793
  "bridge_get_agent_status",
22794
- "Get current status of a specific agent \u2014 idle or busy, which todo is assigned, MCP configured. Use this to check if a worker is free before assigning a task.",
22794
+ "Get current status of a specific agent \u2014 name, model, idle or busy, which todo is assigned, MCP configured. Use this to check if a worker is free before assigning a task. Returns all agent fields including the human-readable name and launch model.",
22795
22795
  { agentId: external_exports.string().describe("The agent ID to inspect") },
22796
22796
  ({ agentId }) => safe(() => getAgentStatus(ctx, agentId))
22797
22797
  );
22798
22798
  server.tool(
22799
22799
  "bridge_spawn_worker",
22800
- 'Spawn a new worker agent on the connected machine. Returns { agentId }. Use bridge_assign_task after spawning to give the worker a task. For dev servers (npm run dev, flutter run, etc.) set role="runner" \u2014 the agent appears in the debug dock, not the agent grid. Shell runner panels are idempotent on cmd: if a runner with the same cmd already exists, its agentId is returned.',
22800
+ 'Spawn a new worker agent on the connected machine. Returns { agentId, name (human-readable label), ordinal (sequential number, null for orchestrators), model }. Use bridge_assign_task after spawning to give the worker a task. For dev servers (npm run dev, flutter run, etc.) set role="runner" \u2014 the agent appears in the debug dock, not the agent grid. Shell runner panels are idempotent on cmd: if a runner with the same cmd already exists, its agentId is returned.',
22801
22801
  {
22802
22802
  agentKey: external_exports.string().describe("Agent type: claude, codex, sh, qwen, agy, ollama, aider, copilot"),
22803
22803
  daemonId: external_exports.string().optional().describe("Target machine ID. Omit to use the workspace default machine."),
22804
22804
  role: external_exports.enum(USER_ASSIGNABLE_ROLES).optional().describe(`Panel role: ${USER_ASSIGNABLE_ROLES.join(", ")}`),
22805
- cmd: external_exports.string().max(512).optional().describe('Command to run after spawn (sh panels only, e.g. "npm run dev"). Sets role to runner automatically.')
22805
+ cmd: external_exports.string().max(512).optional().describe('Command to run after spawn (sh panels only, e.g. "npm run dev"). Sets role to runner automatically.'),
22806
+ model: external_exports.string().max(128).optional().describe("Launch-time model id (agent-specific format). Ignored by agents without launch-model support.")
22806
22807
  },
22807
- ({ agentKey, daemonId, role, cmd }) => safe(() => spawnAgent(ctx, agentKey, daemonId, role, cmd))
22808
+ ({ agentKey, daemonId, role, cmd, model }) => safe(() => spawnAgent(ctx, agentKey, daemonId, role, cmd, model))
22808
22809
  );
22809
22810
  server.tool(
22810
22811
  "bridge_kill_agent",