@kyan-du/agent-wechat-cli 0.14.0 → 0.14.1

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 CHANGED
@@ -7813,11 +7813,12 @@ var WeChatClient = class {
7813
7813
  await throwHttpError(res);
7814
7814
  return res.json();
7815
7815
  }
7816
- async post(path6, body) {
7816
+ async post(path6, body, signal) {
7817
7817
  const res = await fetch(`${this.base}${path6}`, {
7818
7818
  method: "POST",
7819
7819
  headers: this.headers,
7820
- body: body != null ? JSON.stringify(body) : void 0
7820
+ body: body != null ? JSON.stringify(body) : void 0,
7821
+ signal
7821
7822
  });
7822
7823
  if (!res.ok)
7823
7824
  await throwHttpError(res);
@@ -7862,8 +7863,8 @@ var WeChatClient = class {
7862
7863
  async markChatRead(chatId) {
7863
7864
  return this.post(`/api/chats/${encodeURIComponent(chatId)}/mark-read`);
7864
7865
  }
7865
- async openChat(chatId, clearUnreads) {
7866
- return this.post(`/api/chats/${encodeURIComponent(chatId)}/open${qs({ clearUnreads })}`);
7866
+ async openChat(chatId, clearUnreads, signal, executionTimeoutMs) {
7867
+ return this.post(`/api/chats/${encodeURIComponent(chatId)}/open${qs({ clearUnreads, executionTimeoutMs })}`, void 0, signal);
7867
7868
  }
7868
7869
  async listGroupMembersPage(groupId, limit, cursor) {
7869
7870
  const page = groupMembersPageSchema.parse(await this.get(`/api/groups/${encodeURIComponent(groupId)}/members${qs({ limit, cursor })}`));
@@ -9736,7 +9737,7 @@ function checkCliUpgrade(currentVersion, readLatest = () => execFileSync2("npm",
9736
9737
  }
9737
9738
 
9738
9739
  // src/cli.ts
9739
- var VERSION = false ? "0.0.0-test" : "0.14.0";
9740
+ var VERSION = false ? "0.0.0-test" : "0.14.1";
9740
9741
  var MAX_UPLOAD_BYTES = 50 * 1024 * 1024;
9741
9742
  function readToken() {
9742
9743
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "cliVersion": "0.14.0",
3
+ "cliVersion": "0.14.1",
4
4
  "repository": "ghcr.io/kyan-du/agent-wechat",
5
5
  "apiVersion": 1,
6
6
  "allowedReferences": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyan-du/agent-wechat-cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "wx": "./dist/cli.js"