@gobing-ai/knowledge-kit 0.1.27 → 0.1.28

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.
Files changed (53) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/board/collect/index.js +10 -0
  3. package/dist/board/daily-voice/index.js +1327 -2168
  4. package/dist/board/itc/index.js +10 -0
  5. package/dist/index.js +5980 -4651
  6. package/package.json +1 -1
  7. package/plugins/ingestions/aihot-ingest/dist/index.js +4 -1
  8. package/plugins/ingestions/aihot-ingest/src/rss.ts +22 -11
  9. package/plugins/kk/plugin.json +1 -1
  10. package/plugins/kk/scripts/daily-stages.ts +7 -7
  11. package/plugins/kk/workflows/kk-news-generate.yaml +1 -1
  12. package/plugins/publishings/bilibili-pub/dist/index.js +81 -80
  13. package/plugins/publishings/bilibili-pub/dist/profile-check.js +1 -1
  14. package/plugins/publishings/cnblogs-pub/dist/index.js +81 -80
  15. package/plugins/publishings/cnblogs-pub/dist/profile-check.js +1 -1
  16. package/plugins/publishings/csdn-pub/dist/index.js +81 -80
  17. package/plugins/publishings/csdn-pub/dist/profile-check.js +1 -1
  18. package/plugins/publishings/infoq-pub/dist/index.js +81 -80
  19. package/plugins/publishings/infoq-pub/dist/profile-check.js +1 -1
  20. package/plugins/publishings/jike-pub/dist/index.js +81 -80
  21. package/plugins/publishings/jike-pub/dist/profile-check.js +1 -1
  22. package/plugins/publishings/juejin-pub/dist/index.js +81 -80
  23. package/plugins/publishings/juejin-pub/dist/profile-check.js +1 -1
  24. package/plugins/publishings/linkedin-pub/dist/index.js +81 -80
  25. package/plugins/publishings/linkedin-pub/dist/profile-check.js +1 -1
  26. package/plugins/publishings/medium-pub/dist/index.js +81 -80
  27. package/plugins/publishings/medium-pub/dist/profile-check.js +1 -1
  28. package/plugins/publishings/shipinhao-pub/dist/index.js +272 -85
  29. package/plugins/publishings/shipinhao-pub/dist/profile-check.js +112 -3
  30. package/plugins/publishings/shipinhao-pub/src/cover-crop.ts +60 -0
  31. package/plugins/publishings/shipinhao-pub/src/flow.ts +15 -2
  32. package/plugins/publishings/shipinhao-pub/src/profile-check.ts +15 -12
  33. package/plugins/publishings/shipinhao-pub/src/selectors.ts +22 -1
  34. package/plugins/publishings/sspai-pub/dist/index.js +81 -80
  35. package/plugins/publishings/sspai-pub/dist/profile-check.js +1 -1
  36. package/plugins/publishings/substack-pub/dist/index.js +81 -80
  37. package/plugins/publishings/substack-pub/dist/profile-check.js +1 -1
  38. package/plugins/publishings/surfdash-pub/dist/index.js +43 -5
  39. package/plugins/publishings/threads-pub/dist/index.js +86 -81
  40. package/plugins/publishings/threads-pub/dist/profile-check.js +1 -1
  41. package/plugins/publishings/threads-pub/src/index.ts +10 -0
  42. package/plugins/publishings/wechatmp-pub/dist/index.js +84 -83
  43. package/plugins/publishings/wechatmp-pub/dist/profile-check.js +1 -1
  44. package/plugins/publishings/weibo-pub/dist/index.js +217 -83
  45. package/plugins/publishings/weibo-pub/dist/profile-check.js +123 -3
  46. package/plugins/publishings/weibo-pub/src/index.ts +60 -2
  47. package/plugins/publishings/weibo-pub/src/profile-check.ts +4 -2
  48. package/plugins/publishings/x-pub/dist/index.js +81 -80
  49. package/plugins/publishings/x-pub/dist/profile-check.js +1 -1
  50. package/plugins/publishings/xhs-pub/dist/index.js +81 -80
  51. package/plugins/publishings/xhs-pub/dist/profile-check.js +1 -1
  52. package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +81 -80
  53. package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +1 -1
@@ -20171,6 +20171,86 @@ var ATTACHED_CLOSERS = new Set(["\u201D", "\u2019", "\u300D", "\u300F", "\uFF09"
20171
20171
  import { homedir } from "os";
20172
20172
  import { join, resolve } from "path";
20173
20173
 
20174
+ // ../../packages/publish-harness/src/bot-fs.ts
20175
+ import {
20176
+ chmodSync,
20177
+ closeSync,
20178
+ copyFileSync,
20179
+ lstatSync,
20180
+ mkdirSync as mkdirSync2,
20181
+ openSync,
20182
+ readdirSync as readdirSync2,
20183
+ readlinkSync,
20184
+ realpathSync as realpathSync2,
20185
+ renameSync as renameSync2,
20186
+ rmdirSync,
20187
+ unlinkSync
20188
+ } from "fs";
20189
+ function lstat(path) {
20190
+ try {
20191
+ return lstatSync(path);
20192
+ } catch (error) {
20193
+ if (error.code === "ENOENT")
20194
+ return null;
20195
+ throw error;
20196
+ }
20197
+ }
20198
+ function realpath(path) {
20199
+ return realpathSync2(path);
20200
+ }
20201
+ function mkdirExclusive(path, mode = 448) {
20202
+ try {
20203
+ mkdirSync2(path, { mode });
20204
+ return true;
20205
+ } catch (error) {
20206
+ if (error.code === "EEXIST")
20207
+ return false;
20208
+ throw error;
20209
+ }
20210
+ }
20211
+ function rmdir(path) {
20212
+ try {
20213
+ rmdirSync(path);
20214
+ return true;
20215
+ } catch (error) {
20216
+ const code = error.code;
20217
+ if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
20218
+ return false;
20219
+ throw error;
20220
+ }
20221
+ }
20222
+ function readlink(path) {
20223
+ try {
20224
+ return readlinkSync(path);
20225
+ } catch {
20226
+ return null;
20227
+ }
20228
+ }
20229
+ function unlink(path) {
20230
+ try {
20231
+ unlinkSync(path);
20232
+ return true;
20233
+ } catch (error) {
20234
+ if (error.code === "ENOENT")
20235
+ return false;
20236
+ throw error;
20237
+ }
20238
+ }
20239
+ function rename(from, to) {
20240
+ try {
20241
+ renameSync2(from, to);
20242
+ return true;
20243
+ } catch (error) {
20244
+ if (error.code === "ENOENT")
20245
+ return false;
20246
+ throw error;
20247
+ }
20248
+ }
20249
+ function chmod(path, mode) {
20250
+ chmodSync(path, mode);
20251
+ }
20252
+
20253
+ // ../../packages/publish-harness/src/index.ts
20174
20254
  class FakeTransportCore {
20175
20255
  callLogs = [];
20176
20256
  nextResult;
@@ -20455,85 +20535,6 @@ init_dist();
20455
20535
  import { homedir as homedir4 } from "os";
20456
20536
  import { isAbsolute, join as join4, relative, resolve as resolve4, sep } from "path";
20457
20537
 
20458
- // ../../packages/publish-harness/src/bot-fs.ts
20459
- import {
20460
- chmodSync,
20461
- closeSync,
20462
- copyFileSync,
20463
- lstatSync,
20464
- mkdirSync as mkdirSync2,
20465
- openSync,
20466
- readdirSync as readdirSync2,
20467
- readlinkSync,
20468
- realpathSync as realpathSync2,
20469
- renameSync as renameSync2,
20470
- rmdirSync,
20471
- unlinkSync
20472
- } from "fs";
20473
- function lstat(path) {
20474
- try {
20475
- return lstatSync(path);
20476
- } catch (error) {
20477
- if (error.code === "ENOENT")
20478
- return null;
20479
- throw error;
20480
- }
20481
- }
20482
- function realpath(path) {
20483
- return realpathSync2(path);
20484
- }
20485
- function mkdirExclusive(path, mode = 448) {
20486
- try {
20487
- mkdirSync2(path, { mode });
20488
- return true;
20489
- } catch (error) {
20490
- if (error.code === "EEXIST")
20491
- return false;
20492
- throw error;
20493
- }
20494
- }
20495
- function rmdir(path) {
20496
- try {
20497
- rmdirSync(path);
20498
- return true;
20499
- } catch (error) {
20500
- const code = error.code;
20501
- if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
20502
- return false;
20503
- throw error;
20504
- }
20505
- }
20506
- function readlink(path) {
20507
- try {
20508
- return readlinkSync(path);
20509
- } catch {
20510
- return null;
20511
- }
20512
- }
20513
- function unlink(path) {
20514
- try {
20515
- unlinkSync(path);
20516
- return true;
20517
- } catch (error) {
20518
- if (error.code === "ENOENT")
20519
- return false;
20520
- throw error;
20521
- }
20522
- }
20523
- function rename(from, to) {
20524
- try {
20525
- renameSync2(from, to);
20526
- return true;
20527
- } catch (error) {
20528
- if (error.code === "ENOENT")
20529
- return false;
20530
- throw error;
20531
- }
20532
- }
20533
- function chmod(path, mode) {
20534
- chmodSync(path, mode);
20535
- }
20536
-
20537
20538
  // ../../packages/publish-harness/src/bot-transaction.ts
20538
20539
  import { homedir as homedir2 } from "os";
20539
20540
  import { dirname as dirname2, join as join2, resolve as resolve2 } from "path";
@@ -20833,7 +20834,7 @@ function quarantineProfileSyncData(profileDir) {
20833
20834
  const syncData = join5(profileDir, "Default", "Sync Data");
20834
20835
  if (lstat(syncData) === null)
20835
20836
  return false;
20836
- return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 15)}`);
20837
+ return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
20837
20838
  }
20838
20839
  function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
20839
20840
  return {
@@ -20537,7 +20537,7 @@ function quarantineProfileSyncData(profileDir) {
20537
20537
  const syncData = join5(profileDir, "Default", "Sync Data");
20538
20538
  if (lstat(syncData) === null)
20539
20539
  return false;
20540
- return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 15)}`);
20540
+ return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
20541
20541
  }
20542
20542
  function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
20543
20543
  return {
@@ -20171,6 +20171,86 @@ var ATTACHED_CLOSERS = new Set(["\u201D", "\u2019", "\u300D", "\u300F", "\uFF09"
20171
20171
  import { homedir } from "os";
20172
20172
  import { join, resolve } from "path";
20173
20173
 
20174
+ // ../../packages/publish-harness/src/bot-fs.ts
20175
+ import {
20176
+ chmodSync,
20177
+ closeSync,
20178
+ copyFileSync,
20179
+ lstatSync,
20180
+ mkdirSync as mkdirSync2,
20181
+ openSync,
20182
+ readdirSync as readdirSync2,
20183
+ readlinkSync,
20184
+ realpathSync as realpathSync2,
20185
+ renameSync as renameSync2,
20186
+ rmdirSync,
20187
+ unlinkSync
20188
+ } from "fs";
20189
+ function lstat(path) {
20190
+ try {
20191
+ return lstatSync(path);
20192
+ } catch (error) {
20193
+ if (error.code === "ENOENT")
20194
+ return null;
20195
+ throw error;
20196
+ }
20197
+ }
20198
+ function realpath(path) {
20199
+ return realpathSync2(path);
20200
+ }
20201
+ function mkdirExclusive(path, mode = 448) {
20202
+ try {
20203
+ mkdirSync2(path, { mode });
20204
+ return true;
20205
+ } catch (error) {
20206
+ if (error.code === "EEXIST")
20207
+ return false;
20208
+ throw error;
20209
+ }
20210
+ }
20211
+ function rmdir(path) {
20212
+ try {
20213
+ rmdirSync(path);
20214
+ return true;
20215
+ } catch (error) {
20216
+ const code = error.code;
20217
+ if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
20218
+ return false;
20219
+ throw error;
20220
+ }
20221
+ }
20222
+ function readlink(path) {
20223
+ try {
20224
+ return readlinkSync(path);
20225
+ } catch {
20226
+ return null;
20227
+ }
20228
+ }
20229
+ function unlink(path) {
20230
+ try {
20231
+ unlinkSync(path);
20232
+ return true;
20233
+ } catch (error) {
20234
+ if (error.code === "ENOENT")
20235
+ return false;
20236
+ throw error;
20237
+ }
20238
+ }
20239
+ function rename(from, to) {
20240
+ try {
20241
+ renameSync2(from, to);
20242
+ return true;
20243
+ } catch (error) {
20244
+ if (error.code === "ENOENT")
20245
+ return false;
20246
+ throw error;
20247
+ }
20248
+ }
20249
+ function chmod(path, mode) {
20250
+ chmodSync(path, mode);
20251
+ }
20252
+
20253
+ // ../../packages/publish-harness/src/index.ts
20174
20254
  class FakeTransportCore {
20175
20255
  callLogs = [];
20176
20256
  nextResult;
@@ -20454,85 +20534,6 @@ init_dist();
20454
20534
  import { homedir as homedir4 } from "os";
20455
20535
  import { isAbsolute, join as join4, relative, resolve as resolve4, sep } from "path";
20456
20536
 
20457
- // ../../packages/publish-harness/src/bot-fs.ts
20458
- import {
20459
- chmodSync,
20460
- closeSync,
20461
- copyFileSync,
20462
- lstatSync,
20463
- mkdirSync as mkdirSync2,
20464
- openSync,
20465
- readdirSync as readdirSync2,
20466
- readlinkSync,
20467
- realpathSync as realpathSync2,
20468
- renameSync as renameSync2,
20469
- rmdirSync,
20470
- unlinkSync
20471
- } from "fs";
20472
- function lstat(path) {
20473
- try {
20474
- return lstatSync(path);
20475
- } catch (error) {
20476
- if (error.code === "ENOENT")
20477
- return null;
20478
- throw error;
20479
- }
20480
- }
20481
- function realpath(path) {
20482
- return realpathSync2(path);
20483
- }
20484
- function mkdirExclusive(path, mode = 448) {
20485
- try {
20486
- mkdirSync2(path, { mode });
20487
- return true;
20488
- } catch (error) {
20489
- if (error.code === "EEXIST")
20490
- return false;
20491
- throw error;
20492
- }
20493
- }
20494
- function rmdir(path) {
20495
- try {
20496
- rmdirSync(path);
20497
- return true;
20498
- } catch (error) {
20499
- const code = error.code;
20500
- if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
20501
- return false;
20502
- throw error;
20503
- }
20504
- }
20505
- function readlink(path) {
20506
- try {
20507
- return readlinkSync(path);
20508
- } catch {
20509
- return null;
20510
- }
20511
- }
20512
- function unlink(path) {
20513
- try {
20514
- unlinkSync(path);
20515
- return true;
20516
- } catch (error) {
20517
- if (error.code === "ENOENT")
20518
- return false;
20519
- throw error;
20520
- }
20521
- }
20522
- function rename(from, to) {
20523
- try {
20524
- renameSync2(from, to);
20525
- return true;
20526
- } catch (error) {
20527
- if (error.code === "ENOENT")
20528
- return false;
20529
- throw error;
20530
- }
20531
- }
20532
- function chmod(path, mode) {
20533
- chmodSync(path, mode);
20534
- }
20535
-
20536
20537
  // ../../packages/publish-harness/src/bot-transaction.ts
20537
20538
  import { homedir as homedir2 } from "os";
20538
20539
  import { dirname as dirname2, join as join2, resolve as resolve2 } from "path";
@@ -20832,7 +20833,7 @@ function quarantineProfileSyncData(profileDir) {
20832
20833
  const syncData = join5(profileDir, "Default", "Sync Data");
20833
20834
  if (lstat(syncData) === null)
20834
20835
  return false;
20835
- return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 15)}`);
20836
+ return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
20836
20837
  }
20837
20838
  function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
20838
20839
  return {
@@ -20537,7 +20537,7 @@ function quarantineProfileSyncData(profileDir) {
20537
20537
  const syncData = join5(profileDir, "Default", "Sync Data");
20538
20538
  if (lstat(syncData) === null)
20539
20539
  return false;
20540
- return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 15)}`);
20540
+ return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
20541
20541
  }
20542
20542
  function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
20543
20543
  return {