karin-plugin-kkk 2.26.0 โ†’ 2.26.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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [2.26.1](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.26.0...v2.26.1) (2026-03-14)
6
+
7
+
8
+ ### ๐Ÿ› ้”™่ฏฏไฟฎๅค
9
+
10
+ * referer ้”™่ฏฏ ([cd53fb7](https://github.com/ikenxuan/karin-plugin-kkk/commit/cd53fb7fc2e0a9759d904318b1cb7fdb86561c15))
11
+
12
+
13
+ ### ๐Ÿ’ฏ ็ป†่Š‚ไผ˜ๅŒ–
14
+
15
+ * ่‡ชๅŠจ่Žทๅ–ๆœ€ๆ–ฐๆต่งˆๅ™จ็‰ˆๆœฌ ([618244f](https://github.com/ikenxuan/karin-plugin-kkk/commit/618244fd32a3a917cadf35177e534782b2eafdbf))
16
+
5
17
  ## [2.26.0](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.25.2...v2.26.0) (2026-03-13)
6
18
 
7
19
 
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import "../core_chunk/main-1REuSilK.js";
2
+ import "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export {};
package/lib/apps/admin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { C as biLogin, E as task, T as removeOldFiles, w as dylogin } from "../core_chunk/main-1REuSilK.js";
2
+ import { C as biLogin, E as task, T as removeOldFiles, w as dylogin } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { biLogin, dylogin, removeOldFiles, task };
package/lib/apps/help.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { S as version, x as help } from "../core_chunk/main-1REuSilK.js";
2
+ import { S as version, x as help } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { help, version };
package/lib/apps/push.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { _ as forcePush, b as testDouyinPush, f as bilibiliPush, g as douyinPushList, h as douyinPush, m as changeBotID, p as bilibiliPushList, v as setbiliPush, y as setdyPush } from "../core_chunk/main-1REuSilK.js";
2
+ import { _ as forcePush, b as testDouyinPush, f as bilibiliPush, g as douyinPushList, h as douyinPush, m as changeBotID, p as bilibiliPushList, v as setbiliPush, y as setdyPush } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { bilibiliPush, bilibiliPushList, changeBotID, douyinPush, douyinPushList, forcePush, setbiliPush, setdyPush, testDouyinPush };
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { d as qrLogin } from "../core_chunk/main-1REuSilK.js";
2
+ import { d as qrLogin } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { qrLogin };
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { l as globalStatistics, u as groupStatistics } from "../core_chunk/main-1REuSilK.js";
2
+ import { l as globalStatistics, u as groupStatistics } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { globalStatistics, groupStatistics };
package/lib/apps/tools.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { a as douyinAPP, c as xiaohongshuAPP, i as bilibiliAPP, o as kuaishouAPP, s as prefix } from "../core_chunk/main-1REuSilK.js";
2
+ import { a as douyinAPP, c as xiaohongshuAPP, i as bilibiliAPP, o as kuaishouAPP, s as prefix } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { bilibiliAPP, douyinAPP, kuaishouAPP, prefix, xiaohongshuAPP };
@@ -1,5 +1,5 @@
1
1
  import "../core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { n as kkkUpdateCommand, r as update, t as kkkUpdate } from "../core_chunk/main-1REuSilK.js";
2
+ import { n as kkkUpdateCommand, r as update, t as kkkUpdate } from "../core_chunk/main-D3HfIAjn.js";
3
3
  import "../core_chunk/vendor-ewZQ4koY.js";
4
4
  import "../core_chunk/template-Da1NbX6g.js";
5
5
  export { kkkUpdate, kkkUpdateCommand, update };
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "2.26.0",
3
- "buildTime": "2026-03-13T22:03:13.675Z",
4
- "buildTimestamp": 1773439393675,
2
+ "version": "2.26.1",
3
+ "buildTime": "2026-03-14T00:15:35.635Z",
4
+ "buildTimestamp": 1773447335635,
5
5
  "name": "karin-plugin-kkk",
6
6
  "description": "Karin ็š„ใ€ŒๆŠ–้Ÿณใ€ใ€ŒB ็ซ™ใ€่ง†้ข‘่งฃๆž/ๅŠจๆ€ๆŽจ้€ๆ’ไปถ",
7
7
  "homepage": "https://github.com/ikenxuan/karin-plugin-kkk",
8
- "commitHash": "9e2238109613c18e4369602614ac75d6920d6f01",
9
- "shortCommitHash": "9e223810"
8
+ "commitHash": "9e5350a645e71c48b30760c2f28056c28f6ce967",
9
+ "shortCommitHash": "9e5350a6"
10
10
  }
@@ -7201,8 +7201,8 @@ var init_FFmpeg = __esmMin(async () => {
7201
7201
  return { success: result.status };
7202
7202
  };
7203
7203
  });
7204
- var ERROR_CODE_MAP, RECOVERABLE_ERROR_CODES, RECOVERABLE_KEYWORDS, BASE_HEADERS;
7205
- var init_constants = __esmMin(() => {
7204
+ var ERROR_CODE_MAP, RECOVERABLE_ERROR_CODES, RECOVERABLE_KEYWORDS, CHROME_VERSIONS_URL, PROXY_PREFIX, buildUserAgent, fetchLatestChromeVersion, DEFAULT_UA, RESOLVED_UA, BASE_HEADERS;
7205
+ var init_constants = __esmMin(async () => {
7206
7206
  ERROR_CODE_MAP = {
7207
7207
  ECONNRESET: "่ฟžๆŽฅ่ขซ้‡็ฝฎ",
7208
7208
  ECONNREFUSED: "่ฟžๆŽฅ่ขซๆ‹’็ป",
@@ -7247,15 +7247,36 @@ var init_constants = __esmMin(() => {
7247
7247
  "socket hang up",
7248
7248
  "connection reset"
7249
7249
  ];
7250
+ CHROME_VERSIONS_URL = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json";
7251
+ PROXY_PREFIX = "https://jiashu.1win.eu.org/";
7252
+ buildUserAgent = (version$1) => `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${version$1} Safari/537.36 Edg/${version$1}`;
7253
+ fetchLatestChromeVersion = async (url, proxyPrefix) => {
7254
+ try {
7255
+ const version$1 = (await axios.get(url, { timeout: 15e3 })).data?.channels?.Stable?.version;
7256
+ return typeof version$1 === "string" && version$1.length > 0 ? version$1 : null;
7257
+ } catch {
7258
+ try {
7259
+ const version$1 = (await axios.get(`${proxyPrefix}${url}`, { timeout: 15e3 })).data?.channels?.Stable?.version;
7260
+ return typeof version$1 === "string" && version$1.length > 0 ? version$1 : null;
7261
+ } catch {
7262
+ return null;
7263
+ }
7264
+ }
7265
+ };
7266
+ DEFAULT_UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0";
7267
+ RESOLVED_UA = await (async () => {
7268
+ const latest = await fetchLatestChromeVersion(CHROME_VERSIONS_URL, PROXY_PREFIX);
7269
+ return latest ? buildUserAgent(latest) : DEFAULT_UA;
7270
+ })();
7250
7271
  BASE_HEADERS = {
7251
7272
  Accept: "*/*",
7252
7273
  "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
7253
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0"
7274
+ "User-Agent": RESOLVED_UA
7254
7275
  };
7255
7276
  });
7256
7277
  var getErrorDescription, sanitizeHeaders, isRecoverableNetworkError, isThrottlingError, calculateBackoffDelay, formatBytes, sanitizeFilename;
7257
- var init_helpers = __esmMin(() => {
7258
- init_constants();
7278
+ var init_helpers = __esmMin(async () => {
7279
+ await init_constants();
7259
7280
  getErrorDescription = (error) => {
7260
7281
  const code = error?.code || (error instanceof AxiosError ? error.code : null);
7261
7282
  const message = error?.message || String(error);
@@ -7373,10 +7394,10 @@ var init_types = __esmMin(() => {
7373
7394
  };
7374
7395
  });
7375
7396
  var Downloader;
7376
- var init_Downloader = __esmMin(() => {
7377
- init_helpers();
7378
- init_ThrottleStream();
7379
- init_types();
7397
+ var init_Downloader = __esmMin(async () => {
7398
+ await init_helpers();
7399
+ await init_ThrottleStream();
7400
+ await init_types();
7380
7401
  Downloader = class {
7381
7402
  axiosInstance;
7382
7403
  url;
@@ -7586,9 +7607,9 @@ var init_Downloader = __esmMin(() => {
7586
7607
  };
7587
7608
  });
7588
7609
  var ImageDownloader;
7589
- var init_ImageDownloader = __esmMin(() => {
7590
- init_Config();
7591
- init_helpers();
7610
+ var init_ImageDownloader = __esmMin(async () => {
7611
+ await init_Config();
7612
+ await init_helpers();
7592
7613
  ImageDownloader = class {
7593
7614
  axiosInstance;
7594
7615
  tempDir;
@@ -7705,10 +7726,10 @@ var init_ImageDownloader = __esmMin(() => {
7705
7726
  };
7706
7727
  });
7707
7728
  var Network;
7708
- var init_Network$1 = __esmMin(() => {
7709
- init_constants();
7710
- init_Downloader();
7711
- init_helpers();
7729
+ var init_Network$1 = __esmMin(async () => {
7730
+ await init_constants();
7731
+ await init_Downloader();
7732
+ await init_helpers();
7712
7733
  Network = class {
7713
7734
  url;
7714
7735
  method;
@@ -7908,14 +7929,14 @@ var init_Network$1 = __esmMin(() => {
7908
7929
  }
7909
7930
  };
7910
7931
  });
7911
- var init_Network = __esmMin(() => {
7912
- init_Downloader();
7913
- init_helpers();
7914
- init_ImageDownloader();
7915
- init_Network$1();
7916
- init_ThrottleStream();
7917
- init_types();
7918
- init_constants();
7932
+ var init_Network = __esmMin(async () => {
7933
+ await init_constants();
7934
+ await init_Downloader();
7935
+ await init_helpers();
7936
+ await init_ImageDownloader();
7937
+ await init_Network$1();
7938
+ await init_ThrottleStream();
7939
+ await init_types();
7919
7940
  });
7920
7941
  function getImageDownloader() {
7921
7942
  if (!imageDownloader) imageDownloader = new ImageDownloader(axios.create({
@@ -7933,8 +7954,8 @@ var init_ImageHelper = __esmMin(async () => {
7933
7954
  await init_Network();
7934
7955
  imageDownloader = null;
7935
7956
  });
7936
- var init_Networks = __esmMin(() => {
7937
- init_Network();
7957
+ var init_Networks = __esmMin(async () => {
7958
+ await init_Network();
7938
7959
  });
7939
7960
  var isSemverGreater;
7940
7961
  var init_semver = __esmMin(() => {
@@ -22125,7 +22146,11 @@ var Xiaohongshu = class extends Base {
22125
22146
  const staticImg = await downloadFile(staticImageUrl, {
22126
22147
  title: `static_${Date.now()}_${index}.jpg`,
22127
22148
  filepath: staticImgTempPath,
22128
- headers: BASE_HEADERS
22149
+ headers: {
22150
+ ...BASE_HEADERS,
22151
+ Referer: "https://www.xiaohongshu.com",
22152
+ Cookie: Config.cookies.xiaohongshu
22153
+ }
22129
22154
  });
22130
22155
  let staticImgPath = "";
22131
22156
  if (staticImg.filepath) staticImgPath = staticImg.filepath;
@@ -22137,7 +22162,8 @@ var Xiaohongshu = class extends Base {
22137
22162
  filepath: livePhotoPath,
22138
22163
  headers: {
22139
22164
  ...BASE_HEADERS,
22140
- Referer: livePhotoVideo.master_url
22165
+ Referer: "https://www.xiaohongshu.com",
22166
+ Cookie: Config.cookies.xiaohongshu
22141
22167
  }
22142
22168
  });
22143
22169
  if (livePhoto.filepath) {
@@ -22238,7 +22264,8 @@ var Xiaohongshu = class extends Base {
22238
22264
  },
22239
22265
  headers: {
22240
22266
  ...BASE_HEADERS,
22241
- Referer: selectedVideo.master_url
22267
+ Referer: "https://www.xiaohongshu.com",
22268
+ Cookie: Config.cookies.xiaohongshu
22242
22269
  }
22243
22270
  }, { message_id: this.e.messageId });
22244
22271
  else await this.e.reply(segment.video(video.url_default));
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  globalThis.__kkkLoadStart ??= typeof process !== "undefined" && process.hrtime?.bigint ? process.hrtime.bigint() : BigInt(Date.now());
2
2
  import "./core_chunk/rolldown-runtime-BMXAG3ag.js";
3
- import "./core_chunk/main-1REuSilK.js";
3
+ import "./core_chunk/main-D3HfIAjn.js";
4
4
  import "./core_chunk/vendor-ewZQ4koY.js";
5
5
  import "./core_chunk/template-Da1NbX6g.js";
6
6
  export {};
package/lib/root.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { A as init_root, k as Root } from "./core_chunk/main-1REuSilK.js";
2
+ import { A as init_root, k as Root } from "./core_chunk/main-D3HfIAjn.js";
3
3
  init_root();
4
4
  export { Root };
package/lib/web.config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./core_chunk/rolldown-runtime-BMXAG3ag.js";
2
- import { D as webConfig, O as web_config_default } from "./core_chunk/main-1REuSilK.js";
2
+ import { D as webConfig, O as web_config_default } from "./core_chunk/main-D3HfIAjn.js";
3
3
  import "./core_chunk/vendor-ewZQ4koY.js";
4
4
  import "./core_chunk/template-Da1NbX6g.js";
5
5
  export { web_config_default as default, webConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karin-plugin-kkk",
3
- "version": "2.26.0",
3
+ "version": "2.26.1",
4
4
  "description": "Karin ็š„ใ€ŒๆŠ–้Ÿณใ€ใ€ŒB ็ซ™ใ€่ง†้ข‘่งฃๆž/ๅŠจๆ€ๆŽจ้€ๆ’ไปถ",
5
5
  "keywords": [
6
6
  "karin-plugin",