@gobing-ai/knowledge-kit 0.1.23 → 0.1.24

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 (84) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/index.js +117 -56
  3. package/package.json +5 -5
  4. package/plugins/generations/content-gen/dist/index.js +9 -9
  5. package/plugins/generations/core-facts-gen/dist/index.js +12 -12
  6. package/plugins/generations/daily-article-gen/dist/index.js +12 -12
  7. package/plugins/generations/dailynews-gen/dist/index.js +11 -11
  8. package/plugins/generations/dailynews-gen/src/script-plan.ts +2 -2
  9. package/plugins/generations/episode-plan-gen/dist/index.js +12 -12
  10. package/plugins/generations/gemini-tts/dist/index.js +9 -9
  11. package/plugins/generations/image-gen/dist/index.js +9 -9
  12. package/plugins/generations/music-gen/dist/index.js +16 -16
  13. package/plugins/generations/news-report-gen/dist/index.js +12 -12
  14. package/plugins/generations/vibe-voice-tts/dist/index.js +9 -9
  15. package/plugins/generations/voice-gen/dist/index.js +9 -9
  16. package/plugins/generations/voxcpm-tts/dist/index.js +9 -9
  17. package/plugins/ingestions/aihot-ingest/dist/index.js +12 -12
  18. package/plugins/ingestions/horizon-ingest/dist/index.js +12 -12
  19. package/plugins/ingestions/karakeep-local/dist/index.js +13 -13
  20. package/plugins/ingestions/last30days-ingest/dist/index.js +12 -12
  21. package/plugins/ingestions/web-search/dist/index.js +10 -10
  22. package/plugins/kk/plugin.json +1 -1
  23. package/plugins/kk/publish-presets/daily-ai-voice.json +16 -16
  24. package/plugins/kk/scripts/cover-compositor.ts +104 -26
  25. package/plugins/kk/scripts/daily-stages.ts +217 -33
  26. package/plugins/kk/scripts/kk-workflow-stages.ts +144 -6
  27. package/plugins/kk/scripts/series-names.ts +16 -3
  28. package/plugins/kk/skills/news-editorial/SKILL.md +1 -1
  29. package/plugins/kk/skills/news-editorial/references/style-contract.zh.md +3 -3
  30. package/plugins/kk/workflows/kk-news-generate.yaml +3 -0
  31. package/plugins/publishings/bilibili-pub/dist/index.js +22 -22
  32. package/plugins/publishings/bilibili-pub/dist/profile-check.js +22 -22
  33. package/plugins/publishings/cnblogs-pub/dist/index.js +22 -22
  34. package/plugins/publishings/cnblogs-pub/dist/profile-check.js +22 -22
  35. package/plugins/publishings/csdn-pub/dist/index.js +22 -22
  36. package/plugins/publishings/csdn-pub/dist/profile-check.js +22 -22
  37. package/plugins/publishings/emdash-pub/dist/index.js +9 -9
  38. package/plugins/publishings/infoq-pub/dist/index.js +22 -22
  39. package/plugins/publishings/infoq-pub/dist/profile-check.js +22 -22
  40. package/plugins/publishings/jike-pub/dist/index.js +22 -22
  41. package/plugins/publishings/jike-pub/dist/profile-check.js +22 -22
  42. package/plugins/publishings/juejin-pub/dist/index.js +22 -22
  43. package/plugins/publishings/juejin-pub/dist/profile-check.js +22 -22
  44. package/plugins/publishings/linkedin-pub/dist/index.js +82 -24
  45. package/plugins/publishings/linkedin-pub/dist/profile-check.js +22 -22
  46. package/plugins/publishings/linkedin-pub/src/index.ts +93 -6
  47. package/plugins/publishings/medium-pub/dist/index.js +9 -9
  48. package/plugins/publishings/podcast-pub/dist/index.js +240 -37
  49. package/plugins/publishings/podcast-pub/src/index.ts +154 -3
  50. package/plugins/publishings/podcast-pub/src/seo.ts +25 -8
  51. package/plugins/publishings/podcast-pub/src/show-notes-brief.ts +93 -23
  52. package/plugins/publishings/podcast-pub/src/show-notes.ts +26 -6
  53. package/plugins/publishings/qiita-pub/dist/index.js +9 -9
  54. package/plugins/publishings/shipinhao-pub/dist/index.js +23 -23
  55. package/plugins/publishings/shipinhao-pub/dist/profile-check.js +23 -23
  56. package/plugins/publishings/shipinhao-pub/src/selectors.ts +2 -1
  57. package/plugins/publishings/sspai-pub/dist/index.js +22 -22
  58. package/plugins/publishings/sspai-pub/dist/profile-check.js +22 -22
  59. package/plugins/publishings/substack-pub/dist/index.js +22 -22
  60. package/plugins/publishings/substack-pub/dist/profile-check.js +22 -22
  61. package/plugins/publishings/surfdash-pub/dist/index.js +200 -92
  62. package/plugins/publishings/surfdash-pub/src/digest-check.ts +30 -1
  63. package/plugins/publishings/surfdash-pub/src/index.ts +94 -75
  64. package/plugins/publishings/surfdash-pub/src/media-upload.ts +83 -0
  65. package/plugins/publishings/surfdash-pub/src/patch.ts +28 -23
  66. package/plugins/publishings/surfdash-pub/src/topic-claims.ts +12 -4
  67. package/plugins/publishings/threads-pub/dist/index.js +36 -22
  68. package/plugins/publishings/threads-pub/dist/profile-check.js +27 -22
  69. package/plugins/publishings/threads-pub/src/post-rail.ts +20 -0
  70. package/plugins/publishings/wechatmp-pub/dist/index.js +180 -64
  71. package/plugins/publishings/wechatmp-pub/dist/profile-check.js +27 -23
  72. package/plugins/publishings/wechatmp-pub/src/enrich.ts +56 -10
  73. package/plugins/publishings/wechatmp-pub/src/flow.ts +155 -43
  74. package/plugins/publishings/wechatmp-pub/src/modes.ts +30 -12
  75. package/plugins/publishings/weibo-pub/dist/index.js +22 -22
  76. package/plugins/publishings/weibo-pub/dist/profile-check.js +22 -22
  77. package/plugins/publishings/x-pub/dist/index.js +51 -45
  78. package/plugins/publishings/x-pub/dist/profile-check.js +22 -22
  79. package/plugins/publishings/x-pub/src/post-rail.ts +40 -47
  80. package/plugins/publishings/xhs-pub/dist/index.js +22 -22
  81. package/plugins/publishings/xhs-pub/dist/profile-check.js +22 -22
  82. package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +22 -22
  83. package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +22 -22
  84. package/plugins/publishings/zenn-pub/dist/index.js +9 -9
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "plugins": [
8
8
  {
9
- "version": "0.1.23",
9
+ "version": "0.1.24",
10
10
  "name": "kk",
11
11
  "source": "./plugins/kk",
12
12
  "description": "knowledge-kit — a set of toolkit for knowledge management"
package/dist/index.js CHANGED
@@ -2127,7 +2127,7 @@ var init_commander = __esm(() => {
2127
2127
  program = new Command;
2128
2128
  });
2129
2129
 
2130
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/errors.js
2130
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/errors.js
2131
2131
  var ErrorCode;
2132
2132
  var init_errors = __esm(() => {
2133
2133
  ErrorCode = {
@@ -2138,7 +2138,7 @@ var init_errors = __esm(() => {
2138
2138
  };
2139
2139
  });
2140
2140
 
2141
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/api-response.js
2141
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/api-response.js
2142
2142
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
2143
2143
  var init_api_response = __esm(() => {
2144
2144
  init_errors();
@@ -2161,10 +2161,10 @@ var init_api_response = __esm(() => {
2161
2161
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
2162
2162
  });
2163
2163
 
2164
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/cursor.js
2164
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/cursor.js
2165
2165
  var init_cursor = () => {};
2166
2166
 
2167
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/env.js
2167
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/env.js
2168
2168
  function getEnvVar(name, fallback) {
2169
2169
  const raw = process.env[name];
2170
2170
  return raw === undefined ? fallback : raw;
@@ -2173,10 +2173,10 @@ function getEnvVars() {
2173
2173
  return process.env;
2174
2174
  }
2175
2175
 
2176
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
2176
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
2177
2177
  var init_event_severity = () => {};
2178
2178
 
2179
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/object.js
2179
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/object.js
2180
2180
  function isPlainObject(value) {
2181
2181
  return typeof value === "object" && value !== null && !Array.isArray(value);
2182
2182
  }
@@ -2194,7 +2194,7 @@ function deepMerge(target, source) {
2194
2194
  return result;
2195
2195
  }
2196
2196
 
2197
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/output.js
2197
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/output.js
2198
2198
  function processStream(name) {
2199
2199
  const proc = globalThis.process;
2200
2200
  const stream = proc?.[name];
@@ -2227,7 +2227,7 @@ function setDefaultOutputTargets(opts) {
2227
2227
  }
2228
2228
  var defaultStdoutTarget, defaultStderrTarget;
2229
2229
 
2230
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/index.js
2230
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/index.js
2231
2231
  var init_dist = __esm(() => {
2232
2232
  init_api_response();
2233
2233
  init_cursor();
@@ -23850,7 +23850,7 @@ var init_zod = __esm(() => {
23850
23850
  init_external();
23851
23851
  });
23852
23852
 
23853
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/config.js
23853
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/config.js
23854
23854
  function getProcessEnv() {
23855
23855
  return getEnvVars();
23856
23856
  }
@@ -23928,7 +23928,7 @@ var init_config = __esm(() => {
23928
23928
  };
23929
23929
  });
23930
23930
 
23931
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
23931
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
23932
23932
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
23933
23933
  import { dirname, resolve as resolvePath } from "path";
23934
23934
  function createNodeFileSystem(root, paths) {
@@ -24015,7 +24015,7 @@ function findProjectRoot(startDir) {
24015
24015
  }
24016
24016
  var init_file_system_node = () => {};
24017
24017
 
24018
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/db-errors.js
24018
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/db-errors.js
24019
24019
  var DbModuleNotInstalledError;
24020
24020
  var init_db_errors = __esm(() => {
24021
24021
  DbModuleNotInstalledError = class DbModuleNotInstalledError extends Error {
@@ -31226,7 +31226,7 @@ var init_execa = __esm(() => {
31226
31226
  } = getIpcExport());
31227
31227
  });
31228
31228
 
31229
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/process-group.js
31229
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-group.js
31230
31230
  function resolveDeadline(optionTimeout, defaultTimeout) {
31231
31231
  if (optionTimeout === null)
31232
31232
  return null;
@@ -31318,7 +31318,7 @@ function ownProcessGroupLifecycle(ownership) {
31318
31318
  }
31319
31319
  var MAX_TIMEOUT_MS = 2147483647, DEFAULT_KILL_GRACE_MS = 5000, GROUP_POLL_INTERVAL_MS = 25, GROUP_KILL_PATIENCE_MS = 2000;
31320
31320
 
31321
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/process-executor.js
31321
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/process-executor.js
31322
31322
  import { spawnSync as spawnSync2 } from "child_process";
31323
31323
  import { isatty } from "tty";
31324
31324
  function processEventSeverity(reason, exitCode) {
@@ -31720,7 +31720,7 @@ var init_process_executor = __esm(() => {
31720
31720
  init_config();
31721
31721
  });
31722
31722
 
31723
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/runtime-node-bun.js
31723
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/runtime-node-bun.js
31724
31724
  function getNodeFileSystem() {
31725
31725
  if (!_nodeFileSystem)
31726
31726
  _nodeFileSystem = createNodeFileSystem();
@@ -31780,10 +31780,10 @@ var init_runtime_node_bun = __esm(() => {
31780
31780
  };
31781
31781
  });
31782
31782
 
31783
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/context.js
31783
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/context.js
31784
31784
  var init_context = () => {};
31785
31785
 
31786
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/path.js
31786
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/path.js
31787
31787
  function normalizeSeparators(path) {
31788
31788
  return path.replaceAll("\\", "/");
31789
31789
  }
@@ -31844,7 +31844,7 @@ var init_path = __esm(() => {
31844
31844
  SEP = globalThis.process?.platform === "win32" ? "\\" : "/";
31845
31845
  });
31846
31846
 
31847
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
31847
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/fs.js
31848
31848
  async function walkDir(path, fs = createNodeFileSystem(), exclude) {
31849
31849
  const startReal = fs.realPath?.(path) ?? path;
31850
31850
  const visited = new Set([startReal]);
@@ -31878,17 +31878,17 @@ var init_fs = __esm(() => {
31878
31878
  init_path();
31879
31879
  });
31880
31880
 
31881
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/schema-validation.js
31881
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/schema-validation.js
31882
31882
  var REMOTE_SCHEMA_MAX_BYTES;
31883
31883
  var init_schema_validation = __esm(() => {
31884
31884
  init_dist2();
31885
31885
  REMOTE_SCHEMA_MAX_BYTES = 5 * 1024 * 1024;
31886
31886
  });
31887
31887
 
31888
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/types.js
31888
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/types.js
31889
31889
  var init_types = () => {};
31890
31890
 
31891
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
31891
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
31892
31892
  var init_dist3 = __esm(() => {
31893
31893
  init_file_system_node();
31894
31894
  init_fs();
@@ -31902,7 +31902,7 @@ var init_dist3 = __esm(() => {
31902
31902
  init_types();
31903
31903
  });
31904
31904
 
31905
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/config.js
31905
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/config.js
31906
31906
  var configSchema2;
31907
31907
  var init_config2 = __esm(() => {
31908
31908
  init_dist2();
@@ -31926,7 +31926,7 @@ var init_config2 = __esm(() => {
31926
31926
  });
31927
31927
  });
31928
31928
 
31929
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
31929
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
31930
31930
  import { appendFileSync as appendFileSync3, cpSync as cpSync2, createReadStream as createReadStream3, createWriteStream as createWriteStream3, existsSync as existsSync4, mkdirSync as mkdirSync2, readdirSync as readdirSync3, readFileSync as readFileSync6, realpathSync as realpathSync3, renameSync as renameSync2, rmSync as rmSync2, statSync as statSync5, writeFileSync as writeFileSync3 } from "fs";
31931
31931
  import { dirname as dirname4, resolve as resolvePath3 } from "path";
31932
31932
  function createNodeFileSystem2(root, paths) {
@@ -32013,10 +32013,10 @@ function findProjectRoot2(startDir) {
32013
32013
  }
32014
32014
  var init_file_system_node2 = () => {};
32015
32015
 
32016
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/context.js
32016
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/context.js
32017
32017
  var init_context2 = () => {};
32018
32018
 
32019
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/path.js
32019
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/path.js
32020
32020
  function normalizeSeparators2(path) {
32021
32021
  return path.replaceAll("\\", "/");
32022
32022
  }
@@ -32077,17 +32077,17 @@ var init_path2 = __esm(() => {
32077
32077
  SEP2 = globalThis.process?.platform === "win32" ? "\\" : "/";
32078
32078
  });
32079
32079
 
32080
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/schema-validation.js
32080
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/schema-validation.js
32081
32081
  var REMOTE_SCHEMA_MAX_BYTES2;
32082
32082
  var init_schema_validation2 = __esm(() => {
32083
32083
  init_dist2();
32084
32084
  REMOTE_SCHEMA_MAX_BYTES2 = 5 * 1024 * 1024;
32085
32085
  });
32086
32086
 
32087
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/types.js
32087
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/types.js
32088
32088
  var init_types2 = () => {};
32089
32089
 
32090
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/index.js
32090
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/index.js
32091
32091
  var init_dist4 = __esm(() => {
32092
32092
  init_file_system_node2();
32093
32093
  init_config2();
@@ -32097,7 +32097,7 @@ var init_dist4 = __esm(() => {
32097
32097
  init_types2();
32098
32098
  });
32099
32099
 
32100
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+98832255fbfe9409/node_modules/@gobing-ai/ts-runtime/dist/bun-sqlite.js
32100
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+01334333455a284a/node_modules/@gobing-ai/ts-runtime/dist/bun-sqlite.js
32101
32101
  import { Database } from "bun:sqlite";
32102
32102
  var init_bun_sqlite = () => {};
32103
32103
 
@@ -36484,7 +36484,7 @@ var init_bun_sqlite2 = __esm(() => {
36484
36484
  init_session2();
36485
36485
  });
36486
36486
 
36487
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/inbox-messages.js
36487
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/inbox-messages.js
36488
36488
  var inboxMessages;
36489
36489
  var init_inbox_messages = __esm(() => {
36490
36490
  init_sqlite_core();
@@ -36504,7 +36504,7 @@ var init_inbox_messages = __esm(() => {
36504
36504
  }, (table) => [index("idx_inbox_messages_to_status").on(table.toId, table.status)]);
36505
36505
  });
36506
36506
 
36507
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/common.js
36507
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/common.js
36508
36508
  function nowTimestamp() {
36509
36509
  return Date.now();
36510
36510
  }
@@ -36533,7 +36533,7 @@ var init_common2 = __esm(() => {
36533
36533
  appendOnlyColumns = buildAppendOnlyColumns();
36534
36534
  });
36535
36535
 
36536
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/queue-jobs.js
36536
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/queue-jobs.js
36537
36537
  var queueJobs;
36538
36538
  var init_queue_jobs = __esm(() => {
36539
36539
  init_sqlite_core();
@@ -36557,7 +36557,7 @@ var init_queue_jobs = __esm(() => {
36557
36557
  }, (table) => [index("queue_jobs_ready_idx").on(table.status, table.nextRetryAt, table.createdAt)]);
36558
36558
  });
36559
36559
 
36560
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/runtime.js
36560
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/runtime.js
36561
36561
  var exports_runtime = {};
36562
36562
  __export(exports_runtime, {
36563
36563
  inboxMessages: () => inboxMessages,
@@ -36568,7 +36568,7 @@ var init_runtime = __esm(() => {
36568
36568
  init_queue_jobs();
36569
36569
  });
36570
36570
 
36571
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/adapters/bun-sqlite.js
36571
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/adapters/bun-sqlite.js
36572
36572
  class BunSqliteAdapter {
36573
36573
  sqlite;
36574
36574
  drizzleDb;
@@ -36874,7 +36874,7 @@ var init_d1 = __esm(() => {
36874
36874
  init_session3();
36875
36875
  });
36876
36876
 
36877
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/adapters/d1.js
36877
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/adapters/d1.js
36878
36878
  class D1Adapter {
36879
36879
  binding;
36880
36880
  drizzleDb;
@@ -36933,7 +36933,7 @@ var init_d12 = __esm(() => {
36933
36933
  init_runtime();
36934
36934
  });
36935
36935
 
36936
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/adapter.js
36936
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/adapter.js
36937
36937
  async function createDbAdapter(config) {
36938
36938
  switch (config.driver) {
36939
36939
  case "bun-sqlite": {
@@ -36967,7 +36967,7 @@ var init_drizzle_orm = __esm(() => {
36967
36967
  init_view_common();
36968
36968
  });
36969
36969
 
36970
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/query-spec.js
36970
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/query-spec.js
36971
36971
  function compilePredicate(predicate) {
36972
36972
  if ("and" in predicate) {
36973
36973
  const parts = predicate.and.map(compilePredicate).filter((p) => p !== undefined);
@@ -37005,7 +37005,7 @@ var init_query_spec = __esm(() => {
37005
37005
  };
37006
37006
  });
37007
37007
 
37008
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/base-dao.js
37008
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/base-dao.js
37009
37009
  function asSelectQuery(query) {
37010
37010
  return query;
37011
37011
  }
@@ -37047,7 +37047,7 @@ var init_base_dao = __esm(() => {
37047
37047
  init_query_spec();
37048
37048
  });
37049
37049
 
37050
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/entity-dao.js
37050
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/entity-dao.js
37051
37051
  var EntityDao;
37052
37052
  var init_entity_dao = __esm(() => {
37053
37053
  init_drizzle_orm();
@@ -37209,7 +37209,7 @@ var init_entity_dao = __esm(() => {
37209
37209
  };
37210
37210
  });
37211
37211
 
37212
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/index.js
37212
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/index.js
37213
37213
  var init_dist5 = __esm(() => {
37214
37214
  init_base_dao();
37215
37215
  init_entity_dao();
@@ -37713,7 +37713,7 @@ var init_ledger2 = __esm(() => {
37713
37713
  init_output2();
37714
37714
  });
37715
37715
 
37716
- // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.5.32+0f5f0476d0d466a6/node_modules/@gobing-ai/ts-browser-automation/dist/errors.js
37716
+ // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/errors.js
37717
37717
  var BrowserAutomationError, InvalidProfileDirError, BrowserProfileMissingError, BrowserProfileBusyError, PlaywrightUnavailableError, LoginTimeoutError, OperationAbortedError;
37718
37718
  var init_errors5 = __esm(() => {
37719
37719
  BrowserAutomationError = class BrowserAutomationError extends Error {
@@ -37760,7 +37760,7 @@ var init_errors5 = __esm(() => {
37760
37760
  };
37761
37761
  });
37762
37762
 
37763
- // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.5.32+0f5f0476d0d466a6/node_modules/@gobing-ai/ts-browser-automation/dist/profile-dir.js
37763
+ // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/profile-dir.js
37764
37764
  function resolveProfileDir(profileDir) {
37765
37765
  if (profileDir.trim() === "") {
37766
37766
  throw new InvalidProfileDirError;
@@ -37776,7 +37776,7 @@ var init_profile_dir = __esm(() => {
37776
37776
  init_errors5();
37777
37777
  });
37778
37778
 
37779
- // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.5.32+0f5f0476d0d466a6/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
37779
+ // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/launcher.js
37780
37780
  import { mkdir } from "fs/promises";
37781
37781
  async function ensureProfileDir(profileDir, headless, fs) {
37782
37782
  const existing = await fs.stat(profileDir);
@@ -37833,7 +37833,7 @@ var init_launcher = __esm(() => {
37833
37833
  CHROMIUM_MISSING_PATTERN = /playwright install|executable doesn't exist/i;
37834
37834
  });
37835
37835
 
37836
- // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.5.32+0f5f0476d0d466a6/node_modules/@gobing-ai/ts-browser-automation/dist/operations.js
37836
+ // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/operations.js
37837
37837
  function getDefaultLauncher() {
37838
37838
  if (defaultLauncher === undefined)
37839
37839
  defaultLauncher = createPersistentLauncher();
@@ -37931,7 +37931,7 @@ var init_operations = __esm(() => {
37931
37931
  init_profile_dir();
37932
37932
  });
37933
37933
 
37934
- // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.5.32+0f5f0476d0d466a6/node_modules/@gobing-ai/ts-browser-automation/dist/index.js
37934
+ // ../../node_modules/.bun/@gobing-ai+ts-browser-automation@0.8.4+7a0bf9ce62a9b753/node_modules/@gobing-ai/ts-browser-automation/dist/index.js
37935
37935
  var init_dist6 = __esm(() => {
37936
37936
  init_errors5();
37937
37937
  init_operations();
@@ -43237,7 +43237,7 @@ var ConfigError = class extends Error {
43237
43237
  }
43238
43238
  };
43239
43239
 
43240
- // ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.32+7037256b2d91fd75/node_modules/@gobing-ai/ts-infra/dist/logger.js
43240
+ // ../../node_modules/.bun/@gobing-ai+ts-infra@0.8.4+5042690a1c1c0ae5/node_modules/@gobing-ai/ts-infra/dist/logger.js
43241
43241
  var ROOT_CATEGORY = "app";
43242
43242
  function toLogTapeLevel(level) {
43243
43243
  return level === "warn" ? "warning" : level;
@@ -43927,6 +43927,17 @@ function pluginEnvFromConfig(kind, name, configFile = resolveKkConfigPath()) {
43927
43927
  break;
43928
43928
  }
43929
43929
  }
43930
+ if (name === "surfdash-pub") {
43931
+ const podcastNode = collectionNode["podcast-pub"];
43932
+ if (isPlainObject5(podcastNode) && isPlainObject5(podcastNode.env)) {
43933
+ for (const key of ["MICROFEED_BASE_URL", "MICROFEED_API_KEY"]) {
43934
+ const inherited = stringifyEnvValue(podcastNode.env[key]);
43935
+ if (inherited !== undefined && inherited !== "") {
43936
+ out[key] = inherited;
43937
+ }
43938
+ }
43939
+ }
43940
+ }
43930
43941
  }
43931
43942
  const pluginNode = collectionNode[name];
43932
43943
  if (!isPlainObject5(pluginNode) || !isPlainObject5(pluginNode.env)) {
@@ -45514,11 +45525,11 @@ async function resolveStorePath(configFile, explicitPath) {
45514
45525
  // ../../packages/kk-store/src/dao/collect-runs.ts
45515
45526
  init_dist5();
45516
45527
 
45517
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/index.js
45528
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/index.js
45518
45529
  init_sqlite_core();
45519
45530
  init_common2();
45520
45531
 
45521
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/define-table.js
45532
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/define-table.js
45522
45533
  init_sqlite_core();
45523
45534
 
45524
45535
  // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/index.js
@@ -45790,10 +45801,10 @@ var createInsertSchema = (entity, refine) => {
45790
45801
  return handleColumns(columns, refine ?? {}, insertConditions);
45791
45802
  };
45792
45803
 
45793
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/ddl.js
45804
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/ddl.js
45794
45805
  init_sqlite_core();
45795
45806
 
45796
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/drizzle-internals.js
45807
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/drizzle-internals.js
45797
45808
  function sqlExpressionToText(value) {
45798
45809
  if (typeof value !== "object" || value === null || !("queryChunks" in value)) {
45799
45810
  return;
@@ -45816,7 +45827,7 @@ function getDrizzleTableName(table) {
45816
45827
  return String(table[nameSym]);
45817
45828
  }
45818
45829
 
45819
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/ddl.js
45830
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/ddl.js
45820
45831
  function quoteIdent(name) {
45821
45832
  return `"${name.replace(/"/g, '""')}"`;
45822
45833
  }
@@ -45907,7 +45918,7 @@ function generateCreateTableSql(table) {
45907
45918
  )`;
45908
45919
  }
45909
45920
 
45910
- // ../../node_modules/.bun/@gobing-ai+ts-db@0.5.32+91736011317b4165/node_modules/@gobing-ai/ts-db/dist/schema/define-table.js
45921
+ // ../../node_modules/.bun/@gobing-ai+ts-db@0.8.4+5cdeb656394cd753/node_modules/@gobing-ai/ts-db/dist/schema/define-table.js
45911
45922
  function defineTable(name, columns) {
45912
45923
  const table = sqliteTable(name, columns);
45913
45924
  let insert;
@@ -50882,6 +50893,30 @@ async function readLinkMap(fs, publishDir, plan) {
50882
50893
  }
50883
50894
  return { real, live, all };
50884
50895
  }
50896
+ async function readPodcastTier0AssetLinks(fs, receiptsDir, parentRunId, consumerMode) {
50897
+ if (!await fs.exists(receiptsDir))
50898
+ return null;
50899
+ for (const name of (await fs.readDir(receiptsDir)).filter((entry) => entry.endsWith(".json"))) {
50900
+ try {
50901
+ const receipt = JSON.parse(await fs.readFile(join10(receiptsDir, name)));
50902
+ if (receipt.plugin !== "podcast-pub" || receipt.parentRunId !== parentRunId || receipt.status !== "succeeded" || receipt.dummy === true || consumerMode === "live" && receipt.mode !== "live" || receipt.aggregatePath === undefined) {
50903
+ continue;
50904
+ }
50905
+ if (!await fs.exists(receipt.aggregatePath))
50906
+ continue;
50907
+ const aggregate = JSON.parse(await fs.readFile(receipt.aggregatePath));
50908
+ const first = aggregate.targets?.[0];
50909
+ const rawImage = typeof first?.metadata?.imageUrl === "string" ? first.metadata.imageUrl : undefined;
50910
+ const rawUrl = typeof first?.url === "string" ? first.url : receipt.url;
50911
+ const imageUrl = rawImage !== undefined && /^https:\/\//.test(rawImage) ? rawImage : undefined;
50912
+ const podcastUrl = rawUrl !== undefined && /^https:\/\//.test(rawUrl) ? rawUrl : undefined;
50913
+ if (imageUrl !== undefined || podcastUrl !== undefined) {
50914
+ return { ...imageUrl ? { imageUrl } : {}, ...podcastUrl ? { podcastUrl } : {} };
50915
+ }
50916
+ } catch {}
50917
+ }
50918
+ return null;
50919
+ }
50885
50920
  async function readOwnerReceipts(fs, publishDir) {
50886
50921
  const receiptsDir = join10(publishDir, "receipts");
50887
50922
  if (!await fs.exists(receiptsDir))
@@ -51064,8 +51099,36 @@ async function sendPublishMatrix(args, deps = {}) {
51064
51099
  ...deps.dispatch ? { dispatch: deps.dispatch } : {},
51065
51100
  dummyReceipt: (row, context) => writeDummyReceipt(fs, row, { ...context, parentRunId: plan.parentRunId, planDigest }),
51066
51101
  preparePayload: async (row) => {
51067
- if (tier === 0)
51102
+ if (tier === 0) {
51103
+ if (row.plugin === "surfdash-pub" && await fs.exists(row.payloadPath)) {
51104
+ const rawDigest = createHash2("sha256").update(await fs.readFile(row.payloadPath)).digest("hex");
51105
+ const priorReceiptPath = join10(receiptsDir, `${row.key}.json`);
51106
+ if (await fs.exists(priorReceiptPath)) {
51107
+ try {
51108
+ const prior = JSON.parse(await fs.readFile(priorReceiptPath));
51109
+ if (prior.status === "succeeded" && prior.dummy !== true && prior.parentRunId === plan.parentRunId && prior.payloadDigest === rawDigest) {
51110
+ return { payloadPath: row.payloadPath };
51111
+ }
51112
+ } catch {}
51113
+ }
51114
+ const podcastLinks = await readPodcastTier0AssetLinks(fs, receiptsDir, plan.parentRunId, row.mode);
51115
+ if (podcastLinks !== null) {
51116
+ const parsed = JSON.parse(await fs.readFile(row.payloadPath));
51117
+ const nextMetadata = { ...parsed.metadata ?? {} };
51118
+ if (podcastLinks.imageUrl !== undefined) {
51119
+ nextMetadata.coverImage = podcastLinks.imageUrl;
51120
+ }
51121
+ if (podcastLinks.podcastUrl !== undefined) {
51122
+ nextMetadata.podcastUrl = podcastLinks.podcastUrl;
51123
+ }
51124
+ const resolvedPath = join10(workDir, "4-publish", "payloads", `content.${row.key}.resolved.json`);
51125
+ await fs.writeFile(resolvedPath, `${JSON.stringify({ ...parsed, metadata: nextMetadata }, null, 2)}
51126
+ `);
51127
+ return { payloadPath: resolvedPath };
51128
+ }
51129
+ }
51068
51130
  return { payloadPath: row.payloadPath };
51131
+ }
51069
51132
  const raw = await fs.exists(row.payloadPath) ? await fs.readFile(row.payloadPath) : "";
51070
51133
  const links = row.mode === "dummy" ? linkMaps.all : row.mode === "live" ? linkMaps.live : linkMaps.real;
51071
51134
  let cardLink;
@@ -58114,10 +58177,7 @@ function validateLiveTokens(preset, window, tokens, presetName) {
58114
58177
  fail2(5, "kk.content.publish", `cannot validate --live-channels: preset '${presetName}' was not found`);
58115
58178
  }
58116
58179
  const inWindow = (preset.targets ?? []).filter((target) => (target.window ?? "after-generate") === window);
58117
- const refused = tokens.filter((token) => {
58118
- const row = inWindow.find((target) => target.plugin === token || target.id === token);
58119
- return row === undefined || (row.mode ?? "draft") === "off";
58120
- });
58180
+ const refused = tokens.filter((token) => !inWindow.some((target) => (target.plugin === token || target.id === token) && (target.mode ?? "draft") !== "off"));
58121
58181
  if (refused.length > 0) {
58122
58182
  fail2(5, "kk.content.publish", `live token(s) ${refused.join(", ")} have no active row in window '${window}' of preset '${presetName}'`);
58123
58183
  }
@@ -58634,6 +58694,7 @@ async function settleAction(type, options) {
58634
58694
  return commandFailure(command, 1, "publish-settle: classification failed");
58635
58695
  if (context.window === "after-generate") {
58636
58696
  await quietStdout2(() => runStageCancellable(["publish-matrix-patch-surfdash", context.workDir, "--window", context.window]));
58697
+ await quietStdout2(() => runStageCancellable(["publish-matrix-patch-podcast", context.workDir, "--window", context.window]));
58637
58698
  }
58638
58699
  const statusPath = join32(context.workDir, "4-publish", `publish-status.${context.window}.txt`);
58639
58700
  if (await fs.exists(statusPath) && /^(full|partial|none)$/.test((await fs.readFile(statusPath)).trim())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobing-ai/knowledge-kit",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "An ingest → create → publish content pipeline CLI (Bun).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,10 +46,10 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@gobing-ai/ts-ai-decision": "^0.5.32",
50
- "@gobing-ai/ts-infra": "^0.5.32",
51
- "@gobing-ai/ts-runtime": "^0.5.32",
52
- "@gobing-ai/ts-utils": "^0.5.32",
49
+ "@gobing-ai/ts-ai-decision": "^0.8.4",
50
+ "@gobing-ai/ts-infra": "^0.8.4",
51
+ "@gobing-ai/ts-runtime": "^0.8.4",
52
+ "@gobing-ai/ts-utils": "^0.8.4",
53
53
  "commander": "15.0.0",
54
54
  "playwright": "1.55.0",
55
55
  "zod": "4.4.3"
@@ -4813,7 +4813,7 @@ var init_zod = __esm(() => {
4813
4813
  init_external();
4814
4814
  });
4815
4815
 
4816
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/errors.js
4816
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/errors.js
4817
4817
  var ErrorCode;
4818
4818
  var init_errors3 = __esm(() => {
4819
4819
  ErrorCode = {
@@ -4824,7 +4824,7 @@ var init_errors3 = __esm(() => {
4824
4824
  };
4825
4825
  });
4826
4826
 
4827
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/api-response.js
4827
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/api-response.js
4828
4828
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
4829
4829
  var init_api_response = __esm(() => {
4830
4830
  init_errors3();
@@ -4847,13 +4847,13 @@ var init_api_response = __esm(() => {
4847
4847
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
4848
4848
  });
4849
4849
 
4850
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/cursor.js
4850
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/cursor.js
4851
4851
  var init_cursor = () => {};
4852
4852
 
4853
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
4853
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
4854
4854
  var init_event_severity = () => {};
4855
4855
 
4856
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/output.js
4856
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/output.js
4857
4857
  function processStream(name) {
4858
4858
  const proc = globalThis.process;
4859
4859
  const stream = proc?.[name];
@@ -4871,7 +4871,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
4871
4871
  }
4872
4872
  var defaultStderrTarget;
4873
4873
 
4874
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/index.js
4874
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.8.4/node_modules/@gobing-ai/ts-utils/dist/index.js
4875
4875
  var init_dist = __esm(() => {
4876
4876
  init_api_response();
4877
4877
  init_cursor();
@@ -11869,7 +11869,7 @@ var init_dist2 = __esm(() => {
11869
11869
  $visitAsync = visit.visitAsync;
11870
11870
  });
11871
11871
 
11872
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/config.js
11872
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/config.js
11873
11873
  var configSchema;
11874
11874
  var init_config = __esm(() => {
11875
11875
  init_dist2();
@@ -11893,7 +11893,7 @@ var init_config = __esm(() => {
11893
11893
  });
11894
11894
  });
11895
11895
 
11896
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
11896
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
11897
11897
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
11898
11898
  import { dirname, resolve as resolvePath } from "path";
11899
11899
  function createNodeFileSystem(root, paths) {
@@ -12247,7 +12247,7 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
12247
12247
  });
12248
12248
  }
12249
12249
  });
12250
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
12250
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.8.4+b85a65bb895e3074/node_modules/@gobing-ai/ts-runtime/dist/index.js
12251
12251
  init_file_system_node();
12252
12252
  init_config();
12253
12253