@funny-booth/agent-core 0.1.44 → 0.1.46

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.
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REDACT_MIN = void 0;
4
- exports.secretPairs = secretPairs;
5
- // FUNNY BOOTH の Mod(mod/hooks/register.js)が、道具の結果から伏せる秘密の値を受け取るための小さな入口。
6
- // 金庫の秘密のうち 6 文字以上のものを [名前, 値] の JSON で標準出力に出す(短い値は普通の文字まで伏せてしまうため除く)。
7
- // 受け取るのは Mod(Claude Code の中のプログラム)だけで、AI や会話の記録には渡らない。
8
- const vault_1 = require("./vault");
9
- exports.REDACT_MIN = 6;
10
- function secretPairs(secrets) {
11
- return Object.entries(secrets).filter(([, v]) => typeof v === "string" && v.length >= exports.REDACT_MIN)
12
- .sort((a, b) => b[1].length - a[1].length); // 長い値から伏せる(短い値が長い値の一部のとき取りこぼさない)
13
- }
14
- if (require.main === module) {
15
- try {
16
- process.stdout.write(JSON.stringify(secretPairs((0, vault_1.readSecrets)())));
17
- }
18
- catch {
19
- process.stdout.write("[]");
20
- }
21
- }
22
- //# sourceMappingURL=secretValues.js.map