@gobing-ai/knowledge-kit 0.0.33 → 0.0.34

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 (47) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/index.js +25191 -24167
  3. package/package.json +4 -4
  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 +14 -20
  7. package/plugins/generations/daily-article-gen/src/index.ts +7 -11
  8. package/plugins/generations/dailynews-gen/dist/index.js +22 -21
  9. package/plugins/generations/dailynews-gen/src/script-builder.ts +25 -26
  10. package/plugins/generations/episode-plan-gen/dist/index.js +12 -12
  11. package/plugins/generations/gemini-tts/dist/index.js +9 -9
  12. package/plugins/generations/image-gen/dist/index.js +26 -11
  13. package/plugins/generations/image-gen/presets/formats/xhs-card.yaml +16 -14
  14. package/plugins/generations/image-gen/presets/styles/xhs-knowledge.yaml +2 -2
  15. package/plugins/generations/image-gen/src/compose/card.ts +17 -2
  16. package/plugins/generations/news-report-gen/dist/index.js +12 -12
  17. package/plugins/generations/voice-gen/dist/index.js +9 -9
  18. package/plugins/ingestions/aihot-ingest/dist/index.js +12 -12
  19. package/plugins/ingestions/horizon-ingest/dist/index.js +12 -12
  20. package/plugins/ingestions/karakeep-local/dist/index.js +13 -13
  21. package/plugins/ingestions/last30days-ingest/dist/index.js +12 -12
  22. package/plugins/ingestions/web-search/dist/index.js +10 -10
  23. package/plugins/kk/decisions/extract/ai-news.yaml +6 -0
  24. package/plugins/kk/decisions/kk-items.yaml +69 -3
  25. package/plugins/kk/plugin.json +1 -1
  26. package/plugins/kk/scripts/daily-stages.ts +539 -49
  27. package/plugins/kk/scripts/daily-voice-style.zh.md +15 -10
  28. package/plugins/kk/scripts/kk-workflow-stages.ts +6 -3
  29. package/plugins/kk/skills/content-safety/SKILL.md +1 -1
  30. package/plugins/kk/skills/content-safety/references/platforms/apple-podcasts.md +2 -2
  31. package/plugins/kk/workflows/kk-collect.yaml +7 -9
  32. package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +163 -44
  33. package/plugins/kk/workflows/kk-daily-safety.yaml +8 -11
  34. package/plugins/publishings/emdash-pub/dist/index.js +9 -9
  35. package/plugins/publishings/infoq-pub/dist/index.js +22 -22
  36. package/plugins/publishings/juejin-pub/dist/index.js +22 -22
  37. package/plugins/publishings/medium-pub/dist/index.js +9 -9
  38. package/plugins/publishings/podcast-pub/dist/index.js +9 -9
  39. package/plugins/publishings/qiita-pub/dist/index.js +9 -9
  40. package/plugins/publishings/substack-pub/dist/index.js +22 -22
  41. package/plugins/publishings/surfdash-pub/dist/index.js +9 -9
  42. package/plugins/publishings/wechatmp-pub/dist/index.js +22 -22
  43. package/plugins/publishings/x-pub/dist/index.js +22 -22
  44. package/plugins/publishings/xhs-pub/dist/index.js +76 -27
  45. package/plugins/publishings/xhs-pub/src/flow.ts +9 -3
  46. package/plugins/publishings/xhs-pub/src/index.ts +111 -5
  47. package/plugins/publishings/zenn-pub/dist/index.js +9 -9
@@ -14642,7 +14642,7 @@ var init_zod = __esm(() => {
14642
14642
  init_external();
14643
14643
  });
14644
14644
 
14645
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/errors.js
14645
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/errors.js
14646
14646
  var ErrorCode;
14647
14647
  var init_errors3 = __esm(() => {
14648
14648
  ErrorCode = {
@@ -14653,7 +14653,7 @@ var init_errors3 = __esm(() => {
14653
14653
  };
14654
14654
  });
14655
14655
 
14656
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14656
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14657
14657
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
14658
14658
  var init_api_response = __esm(() => {
14659
14659
  init_errors3();
@@ -14676,13 +14676,13 @@ var init_api_response = __esm(() => {
14676
14676
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
14677
14677
  });
14678
14678
 
14679
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14679
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14680
14680
  var init_cursor = () => {};
14681
14681
 
14682
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14682
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14683
14683
  var init_event_severity = () => {};
14684
14684
 
14685
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/output.js
14685
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/output.js
14686
14686
  function processStream(name) {
14687
14687
  const proc = globalThis.process;
14688
14688
  const stream = proc?.[name];
@@ -14700,7 +14700,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
14700
14700
  }
14701
14701
  var defaultStderrTarget;
14702
14702
 
14703
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/index.js
14703
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/index.js
14704
14704
  var init_dist = __esm(() => {
14705
14705
  init_api_response();
14706
14706
  init_cursor();
@@ -21698,7 +21698,7 @@ var init_dist2 = __esm(() => {
21698
21698
  $visitAsync = visit.visitAsync;
21699
21699
  });
21700
21700
 
21701
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/config.js
21701
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/config.js
21702
21702
  var configSchema;
21703
21703
  var init_config = __esm(() => {
21704
21704
  init_dist2();
@@ -21722,7 +21722,7 @@ var init_config = __esm(() => {
21722
21722
  });
21723
21723
  });
21724
21724
 
21725
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21725
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21726
21726
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
21727
21727
  import { dirname, resolve as resolvePath } from "path";
21728
21728
  function createNodeFileSystem(root, paths) {
@@ -21902,14 +21902,14 @@ var PluginManifestSchema = exports_external.looseObject({
21902
21902
  description: exports_external.string().optional(),
21903
21903
  operations: exports_external.record(exports_external.string(), PluginOperationSchema).optional()
21904
21904
  });
21905
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/index.js
21905
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/index.js
21906
21906
  init_file_system_node();
21907
21907
  init_config();
21908
21908
 
21909
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21909
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21910
21910
  init_file_system_node();
21911
21911
 
21912
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/path.js
21912
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/path.js
21913
21913
  function normalizeSeparators(path) {
21914
21914
  return path.replaceAll("\\", "/");
21915
21915
  }
@@ -21943,7 +21943,7 @@ function dirnamePath(path) {
21943
21943
  return normalized.slice(0, index);
21944
21944
  }
21945
21945
 
21946
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21946
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21947
21947
  async function ensureDirForFile(path, fs = createNodeFileSystem()) {
21948
21948
  await fs.ensureDir(dirnamePath(path));
21949
21949
  }
@@ -17,7 +17,7 @@ var __export = (target, all) => {
17
17
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
18
18
  var __require = import.meta.require;
19
19
 
20
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/errors.js
20
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/errors.js
21
21
  var ErrorCode;
22
22
  var init_errors = __esm(() => {
23
23
  ErrorCode = {
@@ -28,7 +28,7 @@ var init_errors = __esm(() => {
28
28
  };
29
29
  });
30
30
 
31
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/api-response.js
31
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/api-response.js
32
32
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
33
33
  var init_api_response = __esm(() => {
34
34
  init_errors();
@@ -51,13 +51,13 @@ var init_api_response = __esm(() => {
51
51
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
52
52
  });
53
53
 
54
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/cursor.js
54
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/cursor.js
55
55
  var init_cursor = () => {};
56
56
 
57
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
57
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
58
58
  var init_event_severity = () => {};
59
59
 
60
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/output.js
60
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/output.js
61
61
  function processStream(name) {
62
62
  const proc = globalThis.process;
63
63
  const stream = proc?.[name];
@@ -75,7 +75,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
75
75
  }
76
76
  var defaultStderrTarget;
77
77
 
78
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/index.js
78
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/index.js
79
79
  var init_dist = __esm(() => {
80
80
  init_api_response();
81
81
  init_cursor();
@@ -21698,7 +21698,7 @@ var init_zod = __esm(() => {
21698
21698
  init_external();
21699
21699
  });
21700
21700
 
21701
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/config.js
21701
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/config.js
21702
21702
  var configSchema;
21703
21703
  var init_config = __esm(() => {
21704
21704
  init_dist2();
@@ -21722,7 +21722,7 @@ var init_config = __esm(() => {
21722
21722
  });
21723
21723
  });
21724
21724
 
21725
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21725
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21726
21726
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
21727
21727
  import { dirname, resolve as resolvePath } from "path";
21728
21728
  function createNodeFileSystem(root, paths) {
@@ -23942,7 +23942,7 @@ var ConfigError = class extends Error {
23942
23942
  }
23943
23943
  };
23944
23944
 
23945
- // ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.18+54f059b6897bbcdb/node_modules/@gobing-ai/ts-infra/dist/logger.js
23945
+ // ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.21+ea72d0fc11646b5f/node_modules/@gobing-ai/ts-infra/dist/logger.js
23946
23946
  var ROOT_CATEGORY = "app";
23947
23947
  function toLogTapeLevel(level) {
23948
23948
  return level === "warn" ? "warning" : level;
@@ -24011,14 +24011,14 @@ async function initializeLogger(options = {}) {
24011
24011
  throw error;
24012
24012
  }
24013
24013
  }
24014
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/index.js
24014
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/index.js
24015
24015
  init_file_system_node();
24016
24016
  init_config();
24017
24017
 
24018
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
24018
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
24019
24019
  init_file_system_node();
24020
24020
 
24021
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/path.js
24021
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/path.js
24022
24022
  function normalizeSeparators(path) {
24023
24023
  return path.replaceAll("\\", "/");
24024
24024
  }
@@ -24035,7 +24035,7 @@ function joinPath(...segments) {
24035
24035
  return absolute ? joined : joined.replace(/^\//, "");
24036
24036
  }
24037
24037
 
24038
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
24038
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
24039
24039
  async function walkDir(path, fs = createNodeFileSystem(), exclude) {
24040
24040
  const startReal = fs.realPath?.(path) ?? path;
24041
24041
  const visited = new Set([startReal]);
@@ -14642,7 +14642,7 @@ var init_zod = __esm(() => {
14642
14642
  init_external();
14643
14643
  });
14644
14644
 
14645
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/errors.js
14645
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/errors.js
14646
14646
  var ErrorCode;
14647
14647
  var init_errors3 = __esm(() => {
14648
14648
  ErrorCode = {
@@ -14653,7 +14653,7 @@ var init_errors3 = __esm(() => {
14653
14653
  };
14654
14654
  });
14655
14655
 
14656
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14656
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14657
14657
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
14658
14658
  var init_api_response = __esm(() => {
14659
14659
  init_errors3();
@@ -14676,13 +14676,13 @@ var init_api_response = __esm(() => {
14676
14676
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
14677
14677
  });
14678
14678
 
14679
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14679
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14680
14680
  var init_cursor = () => {};
14681
14681
 
14682
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14682
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14683
14683
  var init_event_severity = () => {};
14684
14684
 
14685
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/output.js
14685
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/output.js
14686
14686
  function processStream(name) {
14687
14687
  const proc = globalThis.process;
14688
14688
  const stream = proc?.[name];
@@ -14700,7 +14700,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
14700
14700
  }
14701
14701
  var defaultStderrTarget;
14702
14702
 
14703
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/index.js
14703
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/index.js
14704
14704
  var init_dist = __esm(() => {
14705
14705
  init_api_response();
14706
14706
  init_cursor();
@@ -21698,7 +21698,7 @@ var init_dist2 = __esm(() => {
21698
21698
  $visitAsync = visit.visitAsync;
21699
21699
  });
21700
21700
 
21701
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/config.js
21701
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/config.js
21702
21702
  var configSchema;
21703
21703
  var init_config = __esm(() => {
21704
21704
  init_dist2();
@@ -21722,7 +21722,7 @@ var init_config = __esm(() => {
21722
21722
  });
21723
21723
  });
21724
21724
 
21725
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21725
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21726
21726
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
21727
21727
  import { dirname, resolve as resolvePath } from "path";
21728
21728
  function createNodeFileSystem(root, paths) {
@@ -21903,14 +21903,14 @@ var PluginManifestSchema = exports_external.looseObject({
21903
21903
  description: exports_external.string().optional(),
21904
21904
  operations: exports_external.record(exports_external.string(), PluginOperationSchema).optional()
21905
21905
  });
21906
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/index.js
21906
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/index.js
21907
21907
  init_file_system_node();
21908
21908
  init_config();
21909
21909
 
21910
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21910
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21911
21911
  init_file_system_node();
21912
21912
 
21913
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/path.js
21913
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/path.js
21914
21914
  function normalizeSeparators(path) {
21915
21915
  return path.replaceAll("\\", "/");
21916
21916
  }
@@ -21944,7 +21944,7 @@ function dirnamePath(path) {
21944
21944
  return normalized.slice(0, index);
21945
21945
  }
21946
21946
 
21947
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21947
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/fs.js
21948
21948
  async function ensureDirForFile(path, fs = createNodeFileSystem()) {
21949
21949
  await fs.ensureDir(dirnamePath(path));
21950
21950
  }
@@ -14642,7 +14642,7 @@ var init_zod = __esm(() => {
14642
14642
  init_external();
14643
14643
  });
14644
14644
 
14645
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/errors.js
14645
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/errors.js
14646
14646
  var ErrorCode;
14647
14647
  var init_errors3 = __esm(() => {
14648
14648
  ErrorCode = {
@@ -14653,7 +14653,7 @@ var init_errors3 = __esm(() => {
14653
14653
  };
14654
14654
  });
14655
14655
 
14656
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14656
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/api-response.js
14657
14657
  var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
14658
14658
  var init_api_response = __esm(() => {
14659
14659
  init_errors3();
@@ -14676,13 +14676,13 @@ var init_api_response = __esm(() => {
14676
14676
  CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
14677
14677
  });
14678
14678
 
14679
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14679
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/cursor.js
14680
14680
  var init_cursor = () => {};
14681
14681
 
14682
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14682
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
14683
14683
  var init_event_severity = () => {};
14684
14684
 
14685
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/output.js
14685
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/output.js
14686
14686
  function processStream(name) {
14687
14687
  const proc = globalThis.process;
14688
14688
  const stream = proc?.[name];
@@ -14700,7 +14700,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
14700
14700
  }
14701
14701
  var defaultStderrTarget;
14702
14702
 
14703
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.18/node_modules/@gobing-ai/ts-utils/dist/index.js
14703
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.21/node_modules/@gobing-ai/ts-utils/dist/index.js
14704
14704
  var init_dist = __esm(() => {
14705
14705
  init_api_response();
14706
14706
  init_cursor();
@@ -21698,7 +21698,7 @@ var init_dist2 = __esm(() => {
21698
21698
  $visitAsync = visit.visitAsync;
21699
21699
  });
21700
21700
 
21701
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/config.js
21701
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/config.js
21702
21702
  var configSchema;
21703
21703
  var init_config = __esm(() => {
21704
21704
  init_dist2();
@@ -21722,7 +21722,7 @@ var init_config = __esm(() => {
21722
21722
  });
21723
21723
  });
21724
21724
 
21725
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21725
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21726
21726
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
21727
21727
  import { dirname, resolve as resolvePath } from "path";
21728
21728
  function createNodeFileSystem(root, paths) {
@@ -21902,7 +21902,7 @@ var PluginManifestSchema = exports_external.looseObject({
21902
21902
  description: exports_external.string().optional(),
21903
21903
  operations: exports_external.record(exports_external.string(), PluginOperationSchema).optional()
21904
21904
  });
21905
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.18+ea28d47622d670ff/node_modules/@gobing-ai/ts-runtime/dist/index.js
21905
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.21+44edd5c4d6372504/node_modules/@gobing-ai/ts-runtime/dist/index.js
21906
21906
  init_file_system_node();
21907
21907
  init_config();
21908
21908
 
@@ -24037,7 +24037,7 @@ var ConfigError = class extends Error {
24037
24037
  }
24038
24038
  };
24039
24039
 
24040
- // ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.18+54f059b6897bbcdb/node_modules/@gobing-ai/ts-infra/dist/logger.js
24040
+ // ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.21+ea72d0fc11646b5f/node_modules/@gobing-ai/ts-infra/dist/logger.js
24041
24041
  var ROOT_CATEGORY = "app";
24042
24042
  function toLogTapeLevel(level) {
24043
24043
  return level === "warn" ? "warning" : level;
@@ -18,4 +18,10 @@ where:
18
18
  # finding). Raise this back when a full-text ingest source lands.
19
19
  kk-item-quality: { gte: 2 }
20
20
  kk-item-importance: { gte: 3 }
21
+ # Conservative moderation gate (task 0229 R5): 0-1 is "no reference to the political system" or
22
+ # "a factual policy/government mention as news context". A `where` key is an INNER join on
23
+ # `labels_current`, so an item with NO current china-politics answer is excluded (fail-closed) —
24
+ # the pool shrinks rather than admitting an unjudged item. Chinese companies/models/industry do
25
+ # not trip the gate: they score 0.
26
+ kk-item-china-politics: { lte: 1 }
21
27
  order: [kk-item-urgency desc, kk-item-impact desc, first_seen_at desc]
@@ -13,9 +13,11 @@ $schema: "@gobing-ai/spur/schemas/decision-catalog.schema.json"
13
13
  version: 1
14
14
 
15
15
  defaults:
16
- # ADR-125 value, in lockstep with config/decisions/task-pipeline.yaml. A model answer
17
- # below this resolves to the decision's declared fallback with source: default.
18
- minConfidence: 0.8
16
+ # 0 since task 0226: every model answer is accepted raw, so a low-confidence answer is
17
+ # recorded (raw_value/raw_confidence) instead of being resolved to the declared fallback.
18
+ # The confidence threshold lives in the kk config (`store.labels.min_confidence`), where it
19
+ # gates only which stored observation is current for extraction — never this pass.
20
+ minConfidence: 0
19
21
 
20
22
  decisions:
21
23
  kk-item-category:
@@ -111,3 +113,67 @@ decisions:
111
113
  - Engagement magnitude above 100 — a widely shared story.
112
114
  - Engagement magnitude above 1000 — a breakout story.
113
115
  fallback: 2
116
+
117
+ # Task 0229 R1: moderation-risk judgment, consulted for every labelled item (the plugin's
118
+ # keyword heuristic has no signal for it). Four levels, 0-3. The description carries the
119
+ # scope rule verbatim: this decision exists to avoid platform-moderation rejection and must
120
+ # NOT exclude China-related content.
121
+ kk-item-china-politics:
122
+ type: score
123
+ description: >-
124
+ Moderation risk from China's current political system or institutions, or from the top
125
+ leader's personal information. Purpose: avoid unnecessary platform-moderation
126
+ rejection. It must NOT exclude China-related content in general: Chinese companies,
127
+ models and products, the Chinese AI industry and ordinary regulation news stay eligible.
128
+ parameters:
129
+ title:
130
+ type: string
131
+ description: Item title (the keyword-prefilter surface).
132
+ source:
133
+ type: string
134
+ description: Ingest plugin that produced the item.
135
+ criteria:
136
+ - No reference to China's political system, institutions or top leader. Chinese companies, models and products count as 0.
137
+ - A factual mention of a Chinese government body or policy as news context (a CAC filing, an export rule).
138
+ - Commentary or analysis of the political system or institutions.
139
+ - The top leader's personal information, or a direct critique of the system.
140
+ fallback: 3
141
+
142
+ # Task 0229 R2: broader publish risk (unverified claims, legal exposure, other political
143
+ # sensitivity), consulted for every labelled item.
144
+ kk-item-sensitivity:
145
+ type: score
146
+ description: >-
147
+ Broader publish risk: unverified claims, legal exposure, and other political
148
+ sensitivity that could draw a takedown, correction or complaint after publishing.
149
+ parameters:
150
+ title:
151
+ type: string
152
+ description: Item title.
153
+ source:
154
+ type: string
155
+ description: Ingest plugin that produced the item.
156
+ criteria:
157
+ - No publish risk — verifiable claims, no legal exposure, no political sensitivity.
158
+ - Mild risk — an unverified or single-source claim the episode can attribute.
159
+ - Notable risk — a contested factual claim, a named individual's allegation, or legal exposure to hedge.
160
+ - High risk — a defamatory or legally actionable claim, or acute political sensitivity.
161
+ fallback: 1
162
+
163
+ # Task 0229 R2: reader depth, which routes an item to a future topic. Consulted for every
164
+ # labelled item.
165
+ kk-item-audience:
166
+ type: choice
167
+ description: Which reader depth does this item best serve (which future topic it routes to)?
168
+ parameters:
169
+ title:
170
+ type: string
171
+ description: Item title.
172
+ source:
173
+ type: string
174
+ description: Ingest plugin that produced the item.
175
+ criteria:
176
+ general: Accessible with no AI background — product, company or market news.
177
+ practitioner: Assumes working AI engineering knowledge — APIs, tooling, deployment, benchmarks.
178
+ researcher: Assumes research fluency — papers, methods, evaluations, alignment findings.
179
+ fallback: general
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "kk",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "knowledge-kit Claude Code plugin: skills, commands, subagents, hooks, and rules"
5
5
  }