@agentrouter/agentrouter 0.2.1 → 0.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAYX,KAAK,GAAG,EAET,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,oFAAoF;AACpF,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,4EAA4E;AAC5E,eAAO,MAAM,IAAI;;;;;;;;;;;CAWP,CAAC;AAEX,MAAM,WAAW,KAAK;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAyFD,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAE,KAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAyc5E"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAYX,KAAK,GAAG,EAET,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,oFAAoF;AACpF,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,4EAA4E;AAC5E,eAAO,MAAM,IAAI;;;;;;;;;;;CAWP,CAAC;AAEX,MAAM,WAAW,KAAK;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAyFD,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAE,KAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CA0c5E"}
package/dist/core.js CHANGED
@@ -224,6 +224,8 @@ export async function runCli(argv, io = {}) {
224
224
  `${run.run_id} ${run.status} ${run.tool_id}`,
225
225
  ` charge $${run.billing.customer_charge_usd} (${run.billing.reason ?? "pending"}), multiplier ${run.billing.price_multiplier}, max $${run.billing.max_cost_usd}`
226
226
  ];
227
+ if (run.queue)
228
+ lines.push(` queued: ${run.queue.reason}, waited ${Math.floor(run.queue.waited_ms / 1000)}s, reserved $${run.billing.reserved_usd}`);
227
229
  if (run.error)
228
230
  lines.push(` error ${run.error.code}: ${run.error.message}`);
229
231
  if (run.provider_response?.request_id)
@@ -458,7 +460,7 @@ export async function runCli(argv, io = {}) {
458
460
  fail(result);
459
461
  }
460
462
  let final = result;
461
- if (result.json?.run_id && ["RUNNING", "READY"].includes(result.json.status) && flags.wait) {
463
+ if (result.json?.run_id && ["READY", "RUNNING", "STOPPING"].includes(result.json.status) && flags.wait) {
462
464
  final = await waitForRun(result.json.run_id, Number(flags["timeout-ms"]) || 10 * 60000);
463
465
  }
464
466
  const run = final.json?.run_id ? final.json : final.json?.run;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrouter/agentrouter",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "AgentRouter CLI: find, describe and invoke provider tools with one wallet.",
5
5
  "type": "module",
6
6
  "bin": {