promptimizer-cli 0.1.20 → 0.1.21
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/bin/promptimizer.mjs +2 -1
- package/package.json +1 -1
package/bin/promptimizer.mjs
CHANGED
|
@@ -242,11 +242,12 @@ function printMeta(result) {
|
|
|
242
242
|
const meta = result.promptimizer ?? {};
|
|
243
243
|
const saved = result.usage?.cost?.saved_usd;
|
|
244
244
|
const bits = [meta.model || result.model, meta.tier].filter(Boolean);
|
|
245
|
+
if (meta.routing_policy) bits.push(String(meta.routing_policy));
|
|
245
246
|
if (saved != null) bits.push(`saved ${usd(saved)}`);
|
|
246
247
|
if (meta.exact_cache_hit) bits.push(color(ANSI.green, "cache hit"));
|
|
247
248
|
else if (meta.prefix_cache_hit) bits.push(color(ANSI.green, "prefix cache"));
|
|
248
249
|
else if ("cache_hit" in meta) bits.push(color(ANSI.gray, "miss"));
|
|
249
|
-
if (meta.escalated) bits.push("escalated");
|
|
250
|
+
if (meta.escalated) bits.push(meta.escalation_reason ? `escalated:${meta.escalation_reason}` : "escalated");
|
|
250
251
|
if (meta.latency_ms != null) bits.push(`${Math.round(Number(meta.latency_ms))}ms`);
|
|
251
252
|
out(color(ANSI.dim, ` ↳ ${bits.join(" · ")}`));
|
|
252
253
|
}
|