feedeas 0.1.0-alpha.19 → 0.1.0-alpha.20
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/dist/cli/index.js +11 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -4241,9 +4241,17 @@ async function generateGeminiMusicPcm(request) {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
ws.send(JSON.stringify({ playback_control: "PLAY" }));
|
|
4243
4243
|
};
|
|
4244
|
-
ws.onmessage = (event) => {
|
|
4244
|
+
ws.onmessage = async (event) => {
|
|
4245
4245
|
try {
|
|
4246
|
-
|
|
4246
|
+
let raw;
|
|
4247
|
+
if (typeof event.data === "string") {
|
|
4248
|
+
raw = event.data;
|
|
4249
|
+
} else if (event.data instanceof Blob) {
|
|
4250
|
+
const buffer = Buffer.from(await event.data.arrayBuffer());
|
|
4251
|
+
raw = buffer.toString("utf-8");
|
|
4252
|
+
} else {
|
|
4253
|
+
raw = Buffer.from(event.data).toString("utf-8");
|
|
4254
|
+
}
|
|
4247
4255
|
const message = JSON.parse(raw);
|
|
4248
4256
|
const audioChunks = message?.serverContent?.audioChunks;
|
|
4249
4257
|
if (message?.error?.message) {
|
|
@@ -5321,7 +5329,7 @@ var __dirname5 = path22.dirname(__filename5);
|
|
|
5321
5329
|
var program = new Command16();
|
|
5322
5330
|
var telemetry = new PostHogTelemetryService();
|
|
5323
5331
|
var commandStartTimes = /* @__PURE__ */ new WeakMap();
|
|
5324
|
-
program.name("feedeas").description("CLI for Feedeas - AI-native video creation tool").version("0.1.0-alpha.
|
|
5332
|
+
program.name("feedeas").description("CLI for Feedeas - AI-native video creation tool").version("0.1.0-alpha.20");
|
|
5325
5333
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
5326
5334
|
commandStartTimes.set(actionCommand, Date.now());
|
|
5327
5335
|
telemetry.trackCommandStarted(actionCommand);
|