@gobing-ai/knowledge-kit 0.1.4 → 0.1.6
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/.claude-plugin/marketplace.json +1 -1
- package/dist/board/collect/index.css +447 -0
- package/dist/board/collect/index.js +2505 -453
- package/dist/board/daily-voice/index.css +447 -0
- package/dist/board/daily-voice/index.js +415 -8
- package/dist/board/itc/index.css +447 -0
- package/dist/board/itc/index.js +415 -8
- package/dist/index.js +494 -136
- package/package.json +6 -5
- package/plugins/generations/content-gen/dist/index.js +9 -9
- package/plugins/generations/core-facts-gen/dist/index.js +12 -12
- package/plugins/generations/daily-article-gen/dist/index.js +15 -13
- package/plugins/generations/daily-article-gen/src/index.ts +5 -3
- package/plugins/generations/dailynews-gen/dist/index.js +9 -9
- package/plugins/generations/episode-plan-gen/dist/index.js +12 -12
- package/plugins/generations/gemini-tts/dist/index.js +9 -9
- package/plugins/generations/image-gen/dist/index.js +28 -12
- package/plugins/generations/image-gen/src/compose/card.ts +19 -3
- package/plugins/generations/news-report-gen/dist/index.js +12 -12
- package/plugins/generations/voice-gen/dist/index.js +9 -9
- package/plugins/generations/voxcpm-tts/README.md +31 -0
- package/plugins/generations/voxcpm-tts/dist/index.js +9 -9
- package/plugins/generations/voxcpm-tts/scripts/probe-long-render.py +134 -0
- package/plugins/ingestions/aihot-ingest/dist/index.js +12 -12
- package/plugins/ingestions/horizon-ingest/dist/index.js +12 -12
- package/plugins/ingestions/karakeep-local/dist/index.js +13 -13
- package/plugins/ingestions/last30days-ingest/dist/index.js +12 -12
- package/plugins/ingestions/web-search/dist/index.js +10 -10
- package/plugins/kk/decisions/kk-podcast.yaml +44 -0
- package/plugins/kk/decisions/kk-safety.yaml +46 -0
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/scripts/audio-quality.ts +635 -0
- package/plugins/kk/scripts/daily-stages.ts +163 -0
- package/plugins/kk/scripts/kk-workflow-stages.ts +34 -0
- package/plugins/kk/workflows/kk-daily-ai-voice2.yaml +25 -9
- package/plugins/kk/workflows/kk-daily-safety.yaml +37 -10
- package/plugins/kk/workflows/kk-solo-podcast.yaml +65 -1
- package/plugins/publishings/bilibili-pub/dist/index.js +22 -22
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/cnblogs-pub/dist/index.js +22 -22
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/csdn-pub/dist/index.js +22 -22
- package/plugins/publishings/csdn-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/emdash-pub/dist/index.js +9 -9
- package/plugins/publishings/infoq-pub/dist/index.js +22 -22
- package/plugins/publishings/infoq-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/jike-pub/dist/index.js +22 -22
- package/plugins/publishings/jike-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/juejin-pub/dist/index.js +22 -22
- package/plugins/publishings/juejin-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/medium-pub/dist/index.js +9 -9
- package/plugins/publishings/podcast-pub/dist/index.js +9 -9
- package/plugins/publishings/qiita-pub/dist/index.js +9 -9
- package/plugins/publishings/shipinhao-pub/dist/index.js +22 -22
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/sspai-pub/dist/index.js +22 -22
- package/plugins/publishings/sspai-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/substack-pub/dist/index.js +22 -22
- package/plugins/publishings/substack-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/surfdash-pub/dist/index.js +39 -12
- package/plugins/publishings/surfdash-pub/src/index.ts +33 -6
- package/plugins/publishings/surfdash-pub/src/patch.ts +4 -0
- package/plugins/publishings/threads-pub/dist/index.js +9 -9
- package/plugins/publishings/wechatmp-pub/dist/index.js +22 -22
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/weibo-pub/dist/index.js +22 -22
- package/plugins/publishings/weibo-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/x-pub/dist/index.js +22 -22
- package/plugins/publishings/x-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/xhs-pub/dist/index.js +22 -22
- package/plugins/publishings/xhs-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +22 -22
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +22 -22
- package/plugins/publishings/zenn-pub/dist/index.js +9 -9
- package/plugins/kk/workflows/feature-verification.yaml +0 -89
|
@@ -5065,7 +5065,7 @@ var init_zod = __esm(() => {
|
|
|
5065
5065
|
init_external();
|
|
5066
5066
|
});
|
|
5067
5067
|
|
|
5068
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5068
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/errors.js
|
|
5069
5069
|
var ErrorCode;
|
|
5070
5070
|
var init_errors3 = __esm(() => {
|
|
5071
5071
|
ErrorCode = {
|
|
@@ -5076,7 +5076,7 @@ var init_errors3 = __esm(() => {
|
|
|
5076
5076
|
};
|
|
5077
5077
|
});
|
|
5078
5078
|
|
|
5079
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5079
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/api-response.js
|
|
5080
5080
|
var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
|
|
5081
5081
|
var init_api_response = __esm(() => {
|
|
5082
5082
|
init_errors3();
|
|
@@ -5099,13 +5099,13 @@ var init_api_response = __esm(() => {
|
|
|
5099
5099
|
CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
|
|
5100
5100
|
});
|
|
5101
5101
|
|
|
5102
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5102
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/cursor.js
|
|
5103
5103
|
var init_cursor = () => {};
|
|
5104
5104
|
|
|
5105
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5105
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
|
|
5106
5106
|
var init_event_severity = () => {};
|
|
5107
5107
|
|
|
5108
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5108
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/output.js
|
|
5109
5109
|
function processStream(name) {
|
|
5110
5110
|
const proc = globalThis.process;
|
|
5111
5111
|
const stream = proc?.[name];
|
|
@@ -5123,7 +5123,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
|
|
|
5123
5123
|
}
|
|
5124
5124
|
var defaultStderrTarget;
|
|
5125
5125
|
|
|
5126
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
5126
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/index.js
|
|
5127
5127
|
var init_dist = __esm(() => {
|
|
5128
5128
|
init_api_response();
|
|
5129
5129
|
init_cursor();
|
|
@@ -12121,7 +12121,7 @@ var init_dist2 = __esm(() => {
|
|
|
12121
12121
|
$visitAsync = visit.visitAsync;
|
|
12122
12122
|
});
|
|
12123
12123
|
|
|
12124
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12124
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/config.js
|
|
12125
12125
|
var configSchema;
|
|
12126
12126
|
var init_config = __esm(() => {
|
|
12127
12127
|
init_dist2();
|
|
@@ -12145,7 +12145,7 @@ var init_config = __esm(() => {
|
|
|
12145
12145
|
});
|
|
12146
12146
|
});
|
|
12147
12147
|
|
|
12148
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12148
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
|
|
12149
12149
|
import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
12150
12150
|
import { dirname, resolve as resolvePath } from "path";
|
|
12151
12151
|
function createNodeFileSystem(root, paths) {
|
|
@@ -12500,14 +12500,14 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
|
|
|
12500
12500
|
});
|
|
12501
12501
|
}
|
|
12502
12502
|
});
|
|
12503
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12503
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
12504
12504
|
init_file_system_node();
|
|
12505
12505
|
init_config();
|
|
12506
12506
|
|
|
12507
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12507
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12508
12508
|
init_file_system_node();
|
|
12509
12509
|
|
|
12510
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12510
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
12511
12511
|
function normalizeSeparators(path) {
|
|
12512
12512
|
return path.replaceAll("\\", "/");
|
|
12513
12513
|
}
|
|
@@ -12541,7 +12541,7 @@ function dirnamePath(path) {
|
|
|
12541
12541
|
return normalized.slice(0, index);
|
|
12542
12542
|
}
|
|
12543
12543
|
|
|
12544
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12544
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12545
12545
|
async function ensureDirForFile(path, fs = createNodeFileSystem()) {
|
|
12546
12546
|
await fs.ensureDir(dirnamePath(path));
|
|
12547
12547
|
}
|
|
@@ -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.
|
|
4816
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4827
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4850
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4853
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4856
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4874
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
11872
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/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.
|
|
11896
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/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) {
|
|
@@ -12249,14 +12249,14 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
|
|
|
12249
12249
|
});
|
|
12250
12250
|
}
|
|
12251
12251
|
});
|
|
12252
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12252
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
12253
12253
|
init_file_system_node();
|
|
12254
12254
|
init_config();
|
|
12255
12255
|
|
|
12256
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12256
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12257
12257
|
init_file_system_node();
|
|
12258
12258
|
|
|
12259
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12259
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
12260
12260
|
function normalizeSeparators(path) {
|
|
12261
12261
|
return path.replaceAll("\\", "/");
|
|
12262
12262
|
}
|
|
@@ -12290,7 +12290,7 @@ function dirnamePath(path) {
|
|
|
12290
12290
|
return normalized.slice(0, index);
|
|
12291
12291
|
}
|
|
12292
12292
|
|
|
12293
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12293
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12294
12294
|
async function ensureDirForFile(path, fs = createNodeFileSystem()) {
|
|
12295
12295
|
await fs.ensureDir(dirnamePath(path));
|
|
12296
12296
|
}
|
|
@@ -27,7 +27,7 @@ var __esm = (fn, res, err) => () => {
|
|
|
27
27
|
};
|
|
28
28
|
var __require = import.meta.require;
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
30
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/errors.js
|
|
31
31
|
var ErrorCode;
|
|
32
32
|
var init_errors = __esm(() => {
|
|
33
33
|
ErrorCode = {
|
|
@@ -38,7 +38,7 @@ var init_errors = __esm(() => {
|
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
41
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/api-response.js
|
|
42
42
|
var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
|
|
43
43
|
var init_api_response = __esm(() => {
|
|
44
44
|
init_errors();
|
|
@@ -61,13 +61,13 @@ var init_api_response = __esm(() => {
|
|
|
61
61
|
CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
64
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/cursor.js
|
|
65
65
|
var init_cursor = () => {};
|
|
66
66
|
|
|
67
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
67
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
|
|
68
68
|
var init_event_severity = () => {};
|
|
69
69
|
|
|
70
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
70
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/output.js
|
|
71
71
|
function processStream(name) {
|
|
72
72
|
const proc = globalThis.process;
|
|
73
73
|
const stream = proc?.[name];
|
|
@@ -85,7 +85,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
|
|
|
85
85
|
}
|
|
86
86
|
var defaultStderrTarget;
|
|
87
87
|
|
|
88
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
88
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/index.js
|
|
89
89
|
var init_dist = __esm(() => {
|
|
90
90
|
init_api_response();
|
|
91
91
|
init_cursor();
|
|
@@ -11611,7 +11611,7 @@ var init_zod = __esm(() => {
|
|
|
11611
11611
|
init_external();
|
|
11612
11612
|
});
|
|
11613
11613
|
|
|
11614
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
11614
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/config.js
|
|
11615
11615
|
var configSchema;
|
|
11616
11616
|
var init_config = __esm(() => {
|
|
11617
11617
|
init_dist2();
|
|
@@ -11635,7 +11635,7 @@ var init_config = __esm(() => {
|
|
|
11635
11635
|
});
|
|
11636
11636
|
});
|
|
11637
11637
|
|
|
11638
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
11638
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
|
|
11639
11639
|
import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
11640
11640
|
import { dirname, resolve as resolvePath } from "path";
|
|
11641
11641
|
function createNodeFileSystem(root, paths) {
|
|
@@ -13857,7 +13857,7 @@ var ConfigError = class extends Error {
|
|
|
13857
13857
|
}
|
|
13858
13858
|
};
|
|
13859
13859
|
|
|
13860
|
-
// ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.
|
|
13860
|
+
// ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.32+7037256b2d91fd75/node_modules/@gobing-ai/ts-infra/dist/logger.js
|
|
13861
13861
|
var ROOT_CATEGORY = "app";
|
|
13862
13862
|
function toLogTapeLevel(level) {
|
|
13863
13863
|
return level === "warn" ? "warning" : level;
|
|
@@ -13926,14 +13926,14 @@ async function initializeLogger(options = {}) {
|
|
|
13926
13926
|
throw error;
|
|
13927
13927
|
}
|
|
13928
13928
|
}
|
|
13929
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
13929
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
13930
13930
|
init_file_system_node();
|
|
13931
13931
|
init_config();
|
|
13932
13932
|
|
|
13933
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
13933
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
13934
13934
|
init_file_system_node();
|
|
13935
13935
|
|
|
13936
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
13936
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
13937
13937
|
function normalizeSeparators(path) {
|
|
13938
13938
|
return path.replaceAll("\\", "/");
|
|
13939
13939
|
}
|
|
@@ -13950,7 +13950,7 @@ function joinPath(...segments) {
|
|
|
13950
13950
|
return absolute ? joined : joined.replace(/^\//, "");
|
|
13951
13951
|
}
|
|
13952
13952
|
|
|
13953
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
13953
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
13954
13954
|
async function walkDir(path, fs = createNodeFileSystem(), exclude) {
|
|
13955
13955
|
const startReal = fs.realPath?.(path) ?? path;
|
|
13956
13956
|
const visited = new Set([startReal]);
|
|
@@ -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.
|
|
4816
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4827
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4850
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4853
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4856
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
4874
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/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.
|
|
11872
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/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.
|
|
11896
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/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) {
|
|
@@ -12250,14 +12250,14 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
|
|
|
12250
12250
|
});
|
|
12251
12251
|
}
|
|
12252
12252
|
});
|
|
12253
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12253
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
12254
12254
|
init_file_system_node();
|
|
12255
12255
|
init_config();
|
|
12256
12256
|
|
|
12257
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12257
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12258
12258
|
init_file_system_node();
|
|
12259
12259
|
|
|
12260
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12260
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/path.js
|
|
12261
12261
|
function normalizeSeparators(path) {
|
|
12262
12262
|
return path.replaceAll("\\", "/");
|
|
12263
12263
|
}
|
|
@@ -12291,7 +12291,7 @@ function dirnamePath(path) {
|
|
|
12291
12291
|
return normalized.slice(0, index);
|
|
12292
12292
|
}
|
|
12293
12293
|
|
|
12294
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12294
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/fs.js
|
|
12295
12295
|
async function ensureDirForFile(path, fs = createNodeFileSystem()) {
|
|
12296
12296
|
await fs.ensureDir(dirnamePath(path));
|
|
12297
12297
|
}
|
|
@@ -4827,7 +4827,7 @@ var init_zod = __esm(() => {
|
|
|
4827
4827
|
init_external();
|
|
4828
4828
|
});
|
|
4829
4829
|
|
|
4830
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4830
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/errors.js
|
|
4831
4831
|
var ErrorCode;
|
|
4832
4832
|
var init_errors3 = __esm(() => {
|
|
4833
4833
|
ErrorCode = {
|
|
@@ -4838,7 +4838,7 @@ var init_errors3 = __esm(() => {
|
|
|
4838
4838
|
};
|
|
4839
4839
|
});
|
|
4840
4840
|
|
|
4841
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4841
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/api-response.js
|
|
4842
4842
|
var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
|
|
4843
4843
|
var init_api_response = __esm(() => {
|
|
4844
4844
|
init_errors3();
|
|
@@ -4861,13 +4861,13 @@ var init_api_response = __esm(() => {
|
|
|
4861
4861
|
CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
|
|
4862
4862
|
});
|
|
4863
4863
|
|
|
4864
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4864
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/cursor.js
|
|
4865
4865
|
var init_cursor = () => {};
|
|
4866
4866
|
|
|
4867
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4867
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
|
|
4868
4868
|
var init_event_severity = () => {};
|
|
4869
4869
|
|
|
4870
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4870
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/output.js
|
|
4871
4871
|
function processStream(name) {
|
|
4872
4872
|
const proc = globalThis.process;
|
|
4873
4873
|
const stream = proc?.[name];
|
|
@@ -4885,7 +4885,7 @@ function echoError(message, target = defaultStderrTarget ?? processStream("stder
|
|
|
4885
4885
|
}
|
|
4886
4886
|
var defaultStderrTarget;
|
|
4887
4887
|
|
|
4888
|
-
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.
|
|
4888
|
+
// ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.32/node_modules/@gobing-ai/ts-utils/dist/index.js
|
|
4889
4889
|
var init_dist = __esm(() => {
|
|
4890
4890
|
init_api_response();
|
|
4891
4891
|
init_cursor();
|
|
@@ -11883,7 +11883,7 @@ var init_dist2 = __esm(() => {
|
|
|
11883
11883
|
$visitAsync = visit.visitAsync;
|
|
11884
11884
|
});
|
|
11885
11885
|
|
|
11886
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
11886
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/config.js
|
|
11887
11887
|
var configSchema;
|
|
11888
11888
|
var init_config = __esm(() => {
|
|
11889
11889
|
init_dist2();
|
|
@@ -11907,7 +11907,7 @@ var init_config = __esm(() => {
|
|
|
11907
11907
|
});
|
|
11908
11908
|
});
|
|
11909
11909
|
|
|
11910
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
11910
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
|
|
11911
11911
|
import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
|
|
11912
11912
|
import { dirname, resolve as resolvePath } from "path";
|
|
11913
11913
|
function createNodeFileSystem(root, paths) {
|
|
@@ -12269,7 +12269,7 @@ var PluginManifestSchema = PluginManifestSchemaBase.superRefine((manifest, ctx)
|
|
|
12269
12269
|
});
|
|
12270
12270
|
}
|
|
12271
12271
|
});
|
|
12272
|
-
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.
|
|
12272
|
+
// ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.32+180a6e424da77181/node_modules/@gobing-ai/ts-runtime/dist/index.js
|
|
12273
12273
|
init_file_system_node();
|
|
12274
12274
|
init_config();
|
|
12275
12275
|
|
|
@@ -14400,7 +14400,7 @@ var ConfigError = class extends Error {
|
|
|
14400
14400
|
}
|
|
14401
14401
|
};
|
|
14402
14402
|
|
|
14403
|
-
// ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.
|
|
14403
|
+
// ../../node_modules/.bun/@gobing-ai+ts-infra@0.5.32+7037256b2d91fd75/node_modules/@gobing-ai/ts-infra/dist/logger.js
|
|
14404
14404
|
var ROOT_CATEGORY = "app";
|
|
14405
14405
|
function toLogTapeLevel(level) {
|
|
14406
14406
|
return level === "warn" ? "warning" : level;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Solo-podcast outline binding (task 0317 R7).
|
|
2
|
+
#
|
|
3
|
+
# The outline gate in `kk-solo-podcast` (`outline-select`) always paused. Under an auto profile the
|
|
4
|
+
# pipeline now asks this catalog decision over the written option files first and only pauses when
|
|
5
|
+
# the decision cannot answer confidently — the same pattern `kk-itc` uses for its outline slot
|
|
6
|
+
# (`plugins/kk/workflows/kk-itc-author.yaml` → `outline-autopick` → `itc-decision`).
|
|
7
|
+
#
|
|
8
|
+
# The fallback is a declared label because the catalog format requires one, but the workflow never
|
|
9
|
+
# treats a fallback as a pick: its projection reads `degraded` and defers to the operator gate when
|
|
10
|
+
# the answer did not come from a maker.
|
|
11
|
+
#
|
|
12
|
+
# Resolution: registered through `decisions.paths` in `.spur/config.yaml`
|
|
13
|
+
# (project-relative `plugins/kk/decisions`).
|
|
14
|
+
$schema: "@gobing-ai/spur/schemas/decision-catalog.schema.json"
|
|
15
|
+
version: 1
|
|
16
|
+
|
|
17
|
+
defaults:
|
|
18
|
+
# A low-confidence answer still names a slot; the workflow's own `degraded` check is what decides
|
|
19
|
+
# whether the answer is usable, so folding it into the fallback would lose the distinction.
|
|
20
|
+
minConfidence: 0
|
|
21
|
+
|
|
22
|
+
decisions:
|
|
23
|
+
kk-podcast-outline:
|
|
24
|
+
type: choice
|
|
25
|
+
description: >-
|
|
26
|
+
Which written outline option should this episode follow, given the briefing and the
|
|
27
|
+
option files as evidence?
|
|
28
|
+
parameters:
|
|
29
|
+
briefing:
|
|
30
|
+
type: string
|
|
31
|
+
description: >-
|
|
32
|
+
The briefing summary the options were written from (thesis, listener takeaways,
|
|
33
|
+
audience, target spoken duration, tone).
|
|
34
|
+
criteria:
|
|
35
|
+
a: >-
|
|
36
|
+
The narrative / storytelling arc — the option that leads with a story or a single
|
|
37
|
+
thread and earns its conclusion.
|
|
38
|
+
b: >-
|
|
39
|
+
The analytical / explainer breakdown — the option that decomposes the topic into
|
|
40
|
+
ordered mechanics a listener can follow.
|
|
41
|
+
c: >-
|
|
42
|
+
The third written alternative, when the option files include one; never chosen when
|
|
43
|
+
no `outline-option-c.md` exists.
|
|
44
|
+
fallback: a
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Publish-verdict decision for the daily content-safety gate (task 0317 R6).
|
|
2
|
+
#
|
|
3
|
+
# `kk-daily-safety` used to read the judge's self-reported `confidence` field in a shell `jq`
|
|
4
|
+
# filter on the accept edge. The verdict is now a catalog decision over the SAME artifacts as
|
|
5
|
+
# evidence, so the outcome is calibrated, ledgered (`decision_logs`) and carries a declared
|
|
6
|
+
# fallback. The fallback is `escalate`, never `pass`: a missing, unreadable or garbled report has
|
|
7
|
+
# to land on a recorded human decision, not on a silent publish.
|
|
8
|
+
#
|
|
9
|
+
# Resolution: registered through `decisions.paths` in `.spur/config.yaml`
|
|
10
|
+
# (project-relative `plugins/kk/decisions`). No maker is named here on purpose — the project
|
|
11
|
+
# (`decisions.makers` / `decisions.maker`) decides which backend answers, and spur degrades to this
|
|
12
|
+
# catalog's fallback when no maker is configured or available.
|
|
13
|
+
$schema: "@gobing-ai/spur/schemas/decision-catalog.schema.json"
|
|
14
|
+
version: 1
|
|
15
|
+
|
|
16
|
+
defaults:
|
|
17
|
+
# The gate's own review already screened the drafts; this decision only files the publish
|
|
18
|
+
# verdict, so a low-confidence model answer keeps its own value (an explicit pass/escalate/
|
|
19
|
+
# exclude) instead of being folded into the fallback.
|
|
20
|
+
minConfidence: 0
|
|
21
|
+
|
|
22
|
+
decisions:
|
|
23
|
+
kk-safety-verdict:
|
|
24
|
+
type: choice
|
|
25
|
+
description: >-
|
|
26
|
+
Final publish verdict for the reviewed article + VoiceScript pair, from the
|
|
27
|
+
content-safety report and the content-judge verdict as evidence.
|
|
28
|
+
parameters:
|
|
29
|
+
report:
|
|
30
|
+
type: string
|
|
31
|
+
description: >-
|
|
32
|
+
Summary of the safety report and the judge verdict the gate consumed (per-platform
|
|
33
|
+
decisions, judge findings, and the gate's own pass/escalate/exclude/revise/block
|
|
34
|
+
classification).
|
|
35
|
+
criteria:
|
|
36
|
+
pass: >-
|
|
37
|
+
Every platform decision is OK and the judge verdict is PASS on unchanged drafts — the
|
|
38
|
+
pair is publishable as it stands.
|
|
39
|
+
escalate: >-
|
|
40
|
+
Admitted only through a recorded human decision, or the evidence is missing, garbled or
|
|
41
|
+
contradicts itself. The safe landing for anything the evidence cannot settle.
|
|
42
|
+
exclude: >-
|
|
43
|
+
Publishable but not on every target — admission-only findings (per-platform rules,
|
|
44
|
+
formal fits) mean named platforms are dropped while the remaining targets publish at
|
|
45
|
+
recorded risk.
|
|
46
|
+
fallback: escalate
|
package/plugins/kk/plugin.json
CHANGED