@gravity-rail/cli 0.55.1 → 0.56.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 +3 -3
- package/dist/{account-verify-phone-OXHKM36Z.js → account-verify-phone-IK6O7IQJ.js} +3 -3
- package/dist/{chunk-73INPBWK.js → chunk-5UCDTTIU.js} +2 -2
- package/dist/{chunk-73INPBWK.js.map → chunk-5UCDTTIU.js.map} +1 -1
- package/dist/{chunk-RAFKHKG2.js → chunk-SSJ7CRGL.js} +2 -2
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +40 -46
- package/dist/gr.js.map +1 -1
- package/dist/lib.js +10 -30
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
- /package/dist/{account-verify-phone-OXHKM36Z.js.map → account-verify-phone-IK6O7IQJ.js.map} +0 -0
- /package/dist/{chunk-RAFKHKG2.js.map → chunk-SSJ7CRGL.js.map} +0 -0
package/dist/lib.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
startAccountPhoneVerify,
|
|
34
34
|
stderr,
|
|
35
35
|
unwrapItems
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SSJ7CRGL.js";
|
|
37
37
|
import {
|
|
38
38
|
AGUIClient,
|
|
39
39
|
formatTimestamp,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
isRecord,
|
|
43
43
|
performOAuthFlow,
|
|
44
44
|
selectFromList
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5UCDTTIU.js";
|
|
46
46
|
import {
|
|
47
47
|
AuthRequiredError,
|
|
48
48
|
CLIError,
|
|
@@ -19588,13 +19588,6 @@ var pronunciationsDomain = {
|
|
|
19588
19588
|
|
|
19589
19589
|
// src/domains/recordings.ts
|
|
19590
19590
|
import { writeFileSync as writeFileSync3 } from "fs";
|
|
19591
|
-
var CHUNK_COLUMNS = [
|
|
19592
|
-
{ header: "IDX", getValue: (item) => String(item.chunkIndex ?? "") },
|
|
19593
|
-
{ header: "ROLE", getValue: (item) => item.role ?? "" },
|
|
19594
|
-
{ header: "START", getValue: (item) => item.startTime ?? "" },
|
|
19595
|
-
{ header: "FORMAT", getValue: (item) => item.audioFormat ?? "" },
|
|
19596
|
-
{ header: "MIME", getValue: (item) => item.mimeType ?? "" }
|
|
19597
|
-
];
|
|
19598
19591
|
var URL_COLUMNS = [
|
|
19599
19592
|
{ header: "DOWNLOAD URL", getValue: (item) => item.downloadUrl ?? "" },
|
|
19600
19593
|
{ header: "EXPIRES IN", getValue: (item) => String(item.expiresIn ?? "") },
|
|
@@ -19611,24 +19604,6 @@ var recordingsDomain = {
|
|
|
19611
19604
|
name: "recordings",
|
|
19612
19605
|
description: "Download recorded voice-call audio (per chat)",
|
|
19613
19606
|
commands: [
|
|
19614
|
-
{
|
|
19615
|
-
path: ["recordings", "list"],
|
|
19616
|
-
description: "List recorded audio chunks for a chat (metadata only)",
|
|
19617
|
-
requiresWorkspace: true,
|
|
19618
|
-
args: [
|
|
19619
|
-
{ name: "chat-id", aliases: ["id"], description: "Chat ID", required: true },
|
|
19620
|
-
{ name: "role", description: "Filter by role: 'assistant' or 'member'" }
|
|
19621
|
-
],
|
|
19622
|
-
handler: async ({ ctx, workspace, args }) => {
|
|
19623
|
-
const role = typeof args.role === "string" ? args.role : void 0;
|
|
19624
|
-
const result2 = await requireAuth(ctx).apiClient.listChatRecordings(
|
|
19625
|
-
workspace,
|
|
19626
|
-
requireNumber(args, "chat-id"),
|
|
19627
|
-
role ? { role } : {}
|
|
19628
|
-
);
|
|
19629
|
-
outputData(result2.items, ctx, CHUNK_COLUMNS);
|
|
19630
|
-
}
|
|
19631
|
-
},
|
|
19632
19607
|
{
|
|
19633
19608
|
path: ["recordings", "download-url"],
|
|
19634
19609
|
description: "Get a single short-lived presigned URL for the whole-call recording WAV",
|
|
@@ -24486,10 +24461,15 @@ var RealtimeClient = class extends EventEmitter {
|
|
|
24486
24461
|
message: { role: "user", content }
|
|
24487
24462
|
});
|
|
24488
24463
|
}
|
|
24489
|
-
/**
|
|
24464
|
+
/**
|
|
24465
|
+
* Send interrupt signal with playback position.
|
|
24466
|
+
*
|
|
24467
|
+
* The position goes out as whole non-negative milliseconds, as the browser
|
|
24468
|
+
* sends it: the player reports fractional sample durations.
|
|
24469
|
+
*/
|
|
24490
24470
|
sendInterrupt(audioEndMs, messageId) {
|
|
24491
24471
|
this.sendCustom("voice.interrupt", {
|
|
24492
|
-
audio_end_ms: audioEndMs,
|
|
24472
|
+
audio_end_ms: Math.max(0, Math.floor(audioEndMs)),
|
|
24493
24473
|
message_id: messageId
|
|
24494
24474
|
});
|
|
24495
24475
|
}
|
|
@@ -27213,7 +27193,7 @@ var topLevelCommands = [
|
|
|
27213
27193
|
mutates: true,
|
|
27214
27194
|
args: [{ name: "phone", description: "E.164 phone number (optional; prompts if omitted)" }],
|
|
27215
27195
|
handler: async (hctx) => {
|
|
27216
|
-
const { accountVerifyPhoneCommand } = await import("./account-verify-phone-
|
|
27196
|
+
const { accountVerifyPhoneCommand } = await import("./account-verify-phone-IK6O7IQJ.js");
|
|
27217
27197
|
await accountVerifyPhoneCommand(hctx);
|
|
27218
27198
|
}
|
|
27219
27199
|
},
|