promptimizer-cli 0.1.25 → 0.1.26

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.
@@ -302,8 +302,17 @@ function printMeta(result) {
302
302
  if (meta.provider_id || meta.host) bits.push(String(meta.provider_id || meta.host));
303
303
  if (saved != null) bits.push(`saved ${usd(saved)}`);
304
304
  if (meta.exact_cache_hit) bits.push(color(ANSI.green, "cache hit"));
305
- else if (meta.prefix_cache_hit) bits.push(color(ANSI.green, "prefix cache"));
305
+ else if (meta.semantic_cache_hit) {
306
+ const mode = meta.semantic_cache_mode === "full" ? "semantic full" : "semantic hybrid";
307
+ const sim =
308
+ meta.semantic_similarity != null ? ` ${Math.round(Number(meta.semantic_similarity) * 100)}%` : "";
309
+ bits.push(color(ANSI.green, `${mode}${sim}`));
310
+ } else if (meta.prefix_cache_hit) bits.push(color(ANSI.green, "prefix cache"));
306
311
  else if ("cache_hit" in meta) bits.push(color(ANSI.gray, "miss"));
312
+ if (meta.quality_gate) bits.push(`gate:${meta.quality_gate}`);
313
+ if (meta.quality_audit) {
314
+ bits.push(meta.quality_audit_pass === false ? color(ANSI.yellow, "audit fail") : "audit ok");
315
+ }
307
316
  if (meta.escalated) bits.push(meta.escalation_reason ? `escalated:${meta.escalation_reason}` : "escalated");
308
317
  if (meta.latency_ms != null) bits.push(`${Math.round(Number(meta.latency_ms))}ms`);
309
318
  out(color(ANSI.dim, ` ↳ ${bits.join(" · ")}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptimizer-cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Interactive Promptimizer CLI — Gemini-style REPL for quality-aware routing.",
5
5
  "type": "module",
6
6
  "bin": {