@agent-wechat/cli 0.10.0 → 0.10.2
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.js +5 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7852,7 +7852,7 @@ var getMediaParamsSchema = external_exports.object({
|
|
|
7852
7852
|
localId: external_exports.number().int()
|
|
7853
7853
|
});
|
|
7854
7854
|
var mediaResultSchema = external_exports.object({
|
|
7855
|
-
type: external_exports.enum(["image", "emoji", "voice", "unsupported"]),
|
|
7855
|
+
type: external_exports.enum(["image", "emoji", "voice", "video", "unsupported"]),
|
|
7856
7856
|
data: external_exports.string().optional(),
|
|
7857
7857
|
url: external_exports.string().optional(),
|
|
7858
7858
|
format: external_exports.string(),
|
|
@@ -7911,7 +7911,7 @@ import qrTerminal from "qrcode-terminal";
|
|
|
7911
7911
|
import os from "os";
|
|
7912
7912
|
import path from "path";
|
|
7913
7913
|
import { fileURLToPath } from "url";
|
|
7914
|
-
var VERSION = "0.10.
|
|
7914
|
+
var VERSION = "0.10.2";
|
|
7915
7915
|
var CONTAINER_NAME = "agent-wechat";
|
|
7916
7916
|
var GHCR_IMAGE = "ghcr.io/thisnick/agent-wechat";
|
|
7917
7917
|
var DEFAULT_PORT = 6174;
|
|
@@ -8342,6 +8342,9 @@ async function cmdMedia(client, chatId, localId, outputPath) {
|
|
|
8342
8342
|
} else if (result.type === "image") {
|
|
8343
8343
|
console.error("Image thumbnail not yet cached by WeChat. Try opening the chat in the app first.");
|
|
8344
8344
|
process.exit(1);
|
|
8345
|
+
} else if (result.type === "video") {
|
|
8346
|
+
console.error("Video not yet downloaded by WeChat. Try playing the video in the app first.");
|
|
8347
|
+
process.exit(1);
|
|
8345
8348
|
} else {
|
|
8346
8349
|
console.error(`Media type "${result.type}" has no downloadable data.`);
|
|
8347
8350
|
process.exit(1);
|