@gravity-rail/cli 0.42.0 → 0.44.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/README.md +4 -5
- package/dist/gr.js +182 -18
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +16 -6
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
package/dist/lib.js
CHANGED
|
@@ -3153,10 +3153,14 @@ Assistant / models (live on the DRAFT revision \u2014 publish to go live)
|
|
|
3153
3153
|
chatModelId (string) Text chat model (see \`gr ai-models chat\`)
|
|
3154
3154
|
chatModelConfig (object|null) Chat model overrides
|
|
3155
3155
|
realtimeModelId (string|null) Voice/realtime model (see \`gr ai-models realtime\`)
|
|
3156
|
+
create: omit \u2192 xai:realtime:voice-agent-2 with
|
|
3157
|
+
voice xai:voice:cosmo; null = voice off
|
|
3158
|
+
update: null = voice off
|
|
3156
3159
|
One-shot voice example:
|
|
3157
3160
|
{"realtimeModelId":"xai:realtime:voice-agent-2"}
|
|
3158
|
-
|
|
3159
|
-
|
|
3161
|
+
A native model named WITHOUT a config gets
|
|
3162
|
+
tts=native + the provider fallback voice
|
|
3163
|
+
(xAI \u2192 xai:voice:eve, not cosmo). Explicit config:
|
|
3160
3164
|
{"realtimeModelId":"xai:realtime:voice-agent-2",
|
|
3161
3165
|
"realtimeModelConfig":{"ttsModel":"native",
|
|
3162
3166
|
"voiceModel":"xai:voice:ara"}}
|
|
@@ -9387,7 +9391,6 @@ var metricsDomain = {
|
|
|
9387
9391
|
var COLUMNS12 = [
|
|
9388
9392
|
COL.id(),
|
|
9389
9393
|
COL.name(),
|
|
9390
|
-
{ header: "AGE", getValue: (item) => item.age != null ? String(item.age) : "" },
|
|
9391
9394
|
{
|
|
9392
9395
|
header: "HAS_PHONE",
|
|
9393
9396
|
getValue: (item) => item.hasPhone ? "yes" : "no"
|
|
@@ -19486,6 +19489,14 @@ var supervisorsDomain = {
|
|
|
19486
19489
|
function runOutcome(run) {
|
|
19487
19490
|
return run.outcome ?? run.status ?? "";
|
|
19488
19491
|
}
|
|
19492
|
+
function replayedPages(run) {
|
|
19493
|
+
return typeof run.replayedPages === "number" ? run.replayedPages : 0;
|
|
19494
|
+
}
|
|
19495
|
+
function countSummary(run) {
|
|
19496
|
+
const replayed = replayedPages(run);
|
|
19497
|
+
const replay = replayed > 0 ? `, replayed pages: ${replayed}` : "";
|
|
19498
|
+
return `${run.synced} synced, ${run.failed} failed, ${run.skipped} skipped (${run.total} total${replay})`;
|
|
19499
|
+
}
|
|
19489
19500
|
var RUN_COLUMNS2 = [
|
|
19490
19501
|
{ header: "RUN ID", getValue: (item) => item.runId ?? "" },
|
|
19491
19502
|
{ header: "OUTCOME", getValue: (item) => runOutcome(item) },
|
|
@@ -19495,6 +19506,7 @@ var RUN_COLUMNS2 = [
|
|
|
19495
19506
|
{ header: "SYNCED", getValue: (item) => String(item.synced ?? 0) },
|
|
19496
19507
|
{ header: "FAILED", getValue: (item) => String(item.failed ?? 0) },
|
|
19497
19508
|
{ header: "SKIPPED", getValue: (item) => String(item.skipped ?? 0) },
|
|
19509
|
+
{ header: "REPLAYED PAGES", getValue: (item) => String(replayedPages(item)) },
|
|
19498
19510
|
{ header: "DRY RUN", getValue: (item) => item.dryRun ? "yes" : "no" },
|
|
19499
19511
|
{ header: "STARTED", getValue: (item) => item.startedAt ?? "" }
|
|
19500
19512
|
];
|
|
@@ -19533,9 +19545,7 @@ async function streamSyncRun(response, verbose) {
|
|
|
19533
19545
|
lastRun = data;
|
|
19534
19546
|
if (verbose) {
|
|
19535
19547
|
const s = data;
|
|
19536
|
-
process.stderr.write(
|
|
19537
|
-
`\r ${runOutcome(s)} \u2014 ${s.synced} synced, ${s.failed} failed, ${s.skipped} skipped (${s.total} total)`
|
|
19538
|
-
);
|
|
19548
|
+
process.stderr.write(`\r ${runOutcome(s)} \u2014 ${countSummary(s)}`);
|
|
19539
19549
|
}
|
|
19540
19550
|
} else if (data.type === "sync_item") {
|
|
19541
19551
|
if (verbose) {
|