@vatio-ai/cli 0.117.0 → 0.119.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.
- package/lib/commands/deploy.mjs +30 -0
- package/package.json +1 -1
package/lib/commands/deploy.mjs
CHANGED
|
@@ -407,6 +407,36 @@ export async function status(config) {
|
|
|
407
407
|
console.error(" `vatio pull` brings them into your files before your next push.");
|
|
408
408
|
}
|
|
409
409
|
printVatioSide(payload.vatio);
|
|
410
|
+
printImpact(payload.impact);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// What Vatio did for this workspace in the last 30 days, in one line a
|
|
414
|
+
// coding agent can repeat to the person: on stderr like the rest, and only
|
|
415
|
+
// when there is something to count.
|
|
416
|
+
function printImpact(impact) {
|
|
417
|
+
if (!impact) return;
|
|
418
|
+
const saved = impact.saved_replies ?? {};
|
|
419
|
+
const parts = [];
|
|
420
|
+
if (saved.total > 0) {
|
|
421
|
+
parts.push(
|
|
422
|
+
`Vatio saved ${saved.total} ${saved.total === 1 ? "reply" : "replies"} on live ` +
|
|
423
|
+
`(${saved.corrected?.total ?? 0} corrected before sending, ${saved.recovered?.total ?? 0} recovered after an error, ` +
|
|
424
|
+
`${saved.stopped?.total ?? 0} with a tool call stopped before your backend)`
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
const hours = impact.after_hours ?? {};
|
|
428
|
+
if (hours.after_hours > 0) parts.push(`${hours.after_hours} of ${hours.conversations} conversations came in after hours`);
|
|
429
|
+
const asked = impact.asked_team ?? {};
|
|
430
|
+
if (asked.questions > 0) parts.push(`the agent asked your team ${asked.questions} ${asked.questions === 1 ? "time" : "times"} instead of guessing`);
|
|
431
|
+
if (impact.test_replays > 0) parts.push(`Vatio replayed ${impact.test_replays} test conversations`);
|
|
432
|
+
const held = impact.regressions_held ?? {};
|
|
433
|
+
if (held.count > 0) parts.push(`the publish gate kept ${held.count} ${held.count === 1 ? "regression" : "regressions"} off live`);
|
|
434
|
+
const fixed = impact.reports_fixed ?? {};
|
|
435
|
+
if (fixed.count > 0) {
|
|
436
|
+
parts.push(`${fixed.count} ${fixed.count === 1 ? "report was" : "reports were"} fixed (median ${fixed.median_hours} h)`);
|
|
437
|
+
}
|
|
438
|
+
if (parts.length === 0) return;
|
|
439
|
+
console.error(`Last 30 days: ${parts.join("; ")}. Details under "impact".`);
|
|
410
440
|
}
|
|
411
441
|
|
|
412
442
|
// Is it Vatio or is it me? The replies Vatio wrote here because the agent's
|