sprag-cli 3.106.1 → 3.107.1
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/README.ko.md +2 -0
- package/README.md +2 -0
- package/bin/cli.js +60 -7
- package/package.json +2 -2
- package/presets/delegation/bounds.md +7 -1
- package/src/caps-cache.js +12 -2
- package/src/codex/delegation.js +24 -8
- package/src/codex/route-scan.js +2 -1
- package/src/commands/brief.js +45 -3
- package/src/commands/doc2md.js +7 -0
- package/src/commands/route-scan.js +15 -0
- package/src/commands/routing.js +57 -2
- package/src/commands/secrets.js +107 -0
- package/src/compact-window.js +2 -1
- package/src/delegation-guard.js +74 -5
- package/src/doc2md.cjs +38 -0
- package/src/formatters/statusline.js +145 -17
- package/src/glyphs.js +5 -0
- package/src/grade-counts.js +85 -0
- package/src/harness.js +7 -6
- package/src/installer.js +2 -0
- package/src/judgement-prompt.js +145 -0
- package/src/model-rules.js +44 -3
- package/src/permission-secrets.js +239 -0
- package/src/preset-ratchet.js +2 -1
- package/src/private-file.js +20 -0
- package/src/redact.js +189 -0
- package/src/relax-offer.js +51 -0
- package/src/route-follow.js +42 -0
- package/src/route-inject.js +133 -4
- package/src/route-scan.js +25 -1
- package/src/routing-switch.js +105 -0
- package/src/session-effort.js +71 -0
- package/src/session-records.js +10 -1
- package/src/statusline-running.js +116 -0
- package/src/team-prompts.js +4 -83
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The effort level each session runs at, as the statusline last saw it.
|
|
3
|
+
*
|
|
4
|
+
* Claude Code puts `effort.level` into the statusline payload, but the
|
|
5
|
+
* UserPromptSubmit payload does not carry it. The statusline therefore writes
|
|
6
|
+
* the level to <userDataDir>/session-effort/<sessionId>, and the prompt hook
|
|
7
|
+
* reads it back (effortNotice in src/route-inject.js).
|
|
8
|
+
*
|
|
9
|
+
* The statusline renders every few seconds, so an unchanged level is not
|
|
10
|
+
* written again. Files untouched for 7 days are removed, checked on roughly one
|
|
11
|
+
* write in PRUNE_EVERY. Every failure is swallowed: this is a hint input.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { readFileSync, readdirSync, statSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
15
|
+
import { join } from 'node:path';
|
|
16
|
+
import { userDataDir } from './paths.js';
|
|
17
|
+
import { debug } from './debug.js';
|
|
18
|
+
|
|
19
|
+
export const SESSION_ID_RE = /^[A-Za-z0-9_-]{1,100}$/;
|
|
20
|
+
const PRUNE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
21
|
+
const PRUNE_EVERY = 100;
|
|
22
|
+
|
|
23
|
+
export const sessionEffortDir = (dir) => join(dir || userDataDir(), 'session-effort');
|
|
24
|
+
|
|
25
|
+
/** Removes level files older than 7 days. */
|
|
26
|
+
export function pruneSessionEffort({ dir, now = Date.now() } = {}) {
|
|
27
|
+
try {
|
|
28
|
+
const d = sessionEffortDir(dir);
|
|
29
|
+
for (const name of readdirSync(d)) {
|
|
30
|
+
try {
|
|
31
|
+
if (now - statSync(join(d, name)).mtimeMs > PRUNE_MS) rmSync(join(d, name), { force: true });
|
|
32
|
+
} catch { /* gone already */ }
|
|
33
|
+
}
|
|
34
|
+
} catch (e) { if (e?.code !== 'ENOENT') debug('session-effort:prune', e); }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Record the level for a session. Returns true when a file was written; false
|
|
39
|
+
* for a malformed id, an empty level, an unchanged level, or a failure.
|
|
40
|
+
*
|
|
41
|
+
* @param {{dir?: string, now?: number, random?: () => number}} [opts] `dir` replaces the user data dir (tests)
|
|
42
|
+
*/
|
|
43
|
+
export function recordSessionEffort(sessionId, level, { dir, now = Date.now(), random = Math.random } = {}) {
|
|
44
|
+
if (typeof sessionId !== 'string' || !SESSION_ID_RE.test(sessionId)) return false;
|
|
45
|
+
if (typeof level !== 'string' || level === '') return false;
|
|
46
|
+
try {
|
|
47
|
+
const file = join(sessionEffortDir(dir), sessionId);
|
|
48
|
+
let prev = null;
|
|
49
|
+
try { prev = readFileSync(file, 'utf8').trim(); } catch { /* first write */ }
|
|
50
|
+
if (prev === level) return false;
|
|
51
|
+
mkdirSync(sessionEffortDir(dir), { recursive: true });
|
|
52
|
+
// Not writeStateFile: that treats a file that is not JSON as corrupt and keeps a copy.
|
|
53
|
+
writeFileSync(file, level + '\n');
|
|
54
|
+
if (random() < 1 / PRUNE_EVERY) pruneSessionEffort({ dir, now });
|
|
55
|
+
return true;
|
|
56
|
+
} catch (e) {
|
|
57
|
+
debug('session-effort:record', e);
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The recorded level for a session, or null. */
|
|
63
|
+
export function readSessionEffort(sessionId, { dir } = {}) {
|
|
64
|
+
if (typeof sessionId !== 'string' || !SESSION_ID_RE.test(sessionId)) return null;
|
|
65
|
+
try {
|
|
66
|
+
const v = readFileSync(join(sessionEffortDir(dir), sessionId), 'utf8').trim();
|
|
67
|
+
return v === '' ? null : v;
|
|
68
|
+
} catch {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
package/src/session-records.js
CHANGED
|
@@ -74,6 +74,15 @@ const NO_SIGNAL_RE = /^\s*(Command failed with no output|Exit code \d+)\s*$/;
|
|
|
74
74
|
// curl's transport-timeout exit, never a generic non-zero exit.
|
|
75
75
|
const ENVIRONMENT_RE = /command not found|curl: \(28\)|Operation timed out after|ETIMEDOUT|ENOTFOUND|getaddrinfo/i;
|
|
76
76
|
|
|
77
|
+
// The shell refusing the command line before it runs, and a call to a tool the
|
|
78
|
+
// agent does not have, say nothing about the task either. On a zsh machine
|
|
79
|
+
// `echo ====` as a separator fails with "(eval):3: ==== not found" after the
|
|
80
|
+
// real output was already collected, and an unquoted URL with "?" fails with
|
|
81
|
+
// "no matches found". In 2026-11-09's review of the run rule's 34 "failed"
|
|
82
|
+
// delegations, these made 53 of 101 counted errors (sprag sessions, 14 days),
|
|
83
|
+
// and 32 of the 34 runs had finished with a full report anyway.
|
|
84
|
+
const SHELL_SYNTAX_RE = /\(eval\):\d+: (?:=\S* not found|no matches found:|parse error near)|No such tool available|is not among the tools available here/;
|
|
85
|
+
|
|
77
86
|
function toolResultText(content) {
|
|
78
87
|
if (typeof content === 'string') return content;
|
|
79
88
|
if (!Array.isArray(content)) return '';
|
|
@@ -84,7 +93,7 @@ function isRealToolError(block) {
|
|
|
84
93
|
if (!block || block.type !== 'tool_result' || !block.is_error) return false;
|
|
85
94
|
const txt = toolResultText(block.content);
|
|
86
95
|
return !REJECTION_RE.test(txt) && !SELF_CORRECTED_RE.test(txt)
|
|
87
|
-
&& !ENVIRONMENT_RE.test(txt) && !NO_SIGNAL_RE.test(txt);
|
|
96
|
+
&& !ENVIRONMENT_RE.test(txt) && !NO_SIGNAL_RE.test(txt) && !SHELL_SYNTAX_RE.test(txt);
|
|
88
97
|
}
|
|
89
98
|
|
|
90
99
|
export async function collectSessionRecords(filePath, { includeContent = true } = {}) {
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subagents that are running right now, for the statusline's leading chip.
|
|
3
|
+
*
|
|
4
|
+
* Claude Code keeps one transcript per subagent run beside the session's own:
|
|
5
|
+
* <projects>/<slug>/<sessionId>.jsonl the session
|
|
6
|
+
* <projects>/<slug>/<sessionId>/subagents/agent-<id>.jsonl one per run
|
|
7
|
+
* <projects>/<slug>/<sessionId>/subagents/agent-<id>.meta.json
|
|
8
|
+
*
|
|
9
|
+
* Which signal says "finished" was measured on 418 real subagent transcripts
|
|
10
|
+
* (2026-11-09), not guessed:
|
|
11
|
+
* - The last record of a finished run is usually NOT an assistant answer. Of
|
|
12
|
+
* the last 400 transcripts older than 10 minutes, 303 ended on a `user`
|
|
13
|
+
* tool_result (a SubagentHandback call returns one and the file stops
|
|
14
|
+
* there) and only 83 on an assistant `end_turn`. A "last record is the
|
|
15
|
+
* final answer" test would call most finished runs still running.
|
|
16
|
+
* - The sibling `agent-<id>.meta.json` carries `"finished": true` once the run
|
|
17
|
+
* ended. Of 418 transcripts, 391 had the key; the 2 being written at
|
|
18
|
+
* measurement time and 25 stale ones (24 older than 10 minutes, killed
|
|
19
|
+
* with their session) did not. The meta file is a few hundred bytes, so it
|
|
20
|
+
* is the cheapest and most reliable signal.
|
|
21
|
+
* - A run killed with its session never gets the key. The recent-modification
|
|
22
|
+
* window below is what keeps those from counting forever.
|
|
23
|
+
* So a run is "running" when its transcript was modified within the window and
|
|
24
|
+
* its meta file does not say `finished`.
|
|
25
|
+
*
|
|
26
|
+
* This is the statusline path, re-run every few seconds, so the cost is one
|
|
27
|
+
* readdir and one stat per transcript, a meta read for the few recent ones and a
|
|
28
|
+
* tail read (a few KB) for at most MAX_FILES of them. Nothing parses a whole file.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
import { closeSync, openSync, readdirSync, readFileSync, readSync, statSync } from 'node:fs';
|
|
32
|
+
import { join } from 'node:path';
|
|
33
|
+
import { modelFamily } from './savings-ledger.js';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A run silent for longer than this is treated as gone. A live run writes a
|
|
37
|
+
* record per model turn and per tool result, but a long tool call (a test suite,
|
|
38
|
+
* a render) writes nothing until it returns, so the window is wider than a turn.
|
|
39
|
+
*/
|
|
40
|
+
export const RUNNING_WINDOW_MS = 30_000;
|
|
41
|
+
/** Most transcripts whose model is read per render. */
|
|
42
|
+
export const MAX_FILES = 5;
|
|
43
|
+
const TAIL_BYTES = 16 * 1024;
|
|
44
|
+
/** Longest family name shown, as in the session chip. */
|
|
45
|
+
const FAMILY_MAX = 14;
|
|
46
|
+
|
|
47
|
+
/** The model id named last in the final bytes of a transcript, or null. */
|
|
48
|
+
function modelFromTail(file, size) {
|
|
49
|
+
let fd;
|
|
50
|
+
try {
|
|
51
|
+
fd = openSync(file, 'r');
|
|
52
|
+
const len = Math.min(size, TAIL_BYTES);
|
|
53
|
+
const buf = Buffer.alloc(len);
|
|
54
|
+
readSync(fd, buf, 0, len, size - len);
|
|
55
|
+
const hits = [...buf.toString('utf8').matchAll(/"model":"([^"]+)"/g)];
|
|
56
|
+
return hits.length ? hits[hits.length - 1][1] : null;
|
|
57
|
+
} catch {
|
|
58
|
+
return null;
|
|
59
|
+
} finally {
|
|
60
|
+
if (fd !== undefined) {
|
|
61
|
+
try { closeSync(fd); } catch { /* nothing to release */ }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** True when the run's meta file says it ended. Unreadable or absent counts as running. */
|
|
67
|
+
function isFinished(metaFile) {
|
|
68
|
+
try {
|
|
69
|
+
return JSON.parse(readFileSync(metaFile, 'utf8')).finished === true;
|
|
70
|
+
} catch {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The subagents of the session behind `transcriptPath` that are still working.
|
|
77
|
+
*
|
|
78
|
+
* @param {string|null} transcriptPath the statusline payload's `transcript_path`
|
|
79
|
+
* @param {{ now?: number, windowMs?: number, maxFiles?: number }} [o]
|
|
80
|
+
* @returns {{ count: number, families: Array<{ family: string, runs: number }> }|null}
|
|
81
|
+
* null when nothing is running (the common case) or the directory is missing
|
|
82
|
+
*/
|
|
83
|
+
export function runningSubagents(transcriptPath, { now = Date.now(), windowMs = RUNNING_WINDOW_MS, maxFiles = MAX_FILES } = {}) {
|
|
84
|
+
if (typeof transcriptPath !== 'string' || !transcriptPath.endsWith('.jsonl')) return null;
|
|
85
|
+
const dir = join(transcriptPath.slice(0, -'.jsonl'.length), 'subagents');
|
|
86
|
+
let names;
|
|
87
|
+
try {
|
|
88
|
+
names = readdirSync(dir);
|
|
89
|
+
} catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
const live = [];
|
|
93
|
+
for (const name of names) {
|
|
94
|
+
if (!name.startsWith('agent-') || !name.endsWith('.jsonl')) continue;
|
|
95
|
+
const file = join(dir, name);
|
|
96
|
+
let st;
|
|
97
|
+
try { st = statSync(file); } catch { continue; }
|
|
98
|
+
if (now - st.mtimeMs > windowMs) continue;
|
|
99
|
+
if (isFinished(file.slice(0, -'.jsonl'.length) + '.meta.json')) continue;
|
|
100
|
+
live.push({ file, size: st.size, mtimeMs: st.mtimeMs });
|
|
101
|
+
}
|
|
102
|
+
if (live.length === 0) return null;
|
|
103
|
+
live.sort((a, b) => b.mtimeMs - a.mtimeMs);
|
|
104
|
+
const byFamily = new Map();
|
|
105
|
+
for (const run of live.slice(0, maxFiles)) {
|
|
106
|
+
const model = modelFromTail(run.file, run.size);
|
|
107
|
+
if (!model) continue;
|
|
108
|
+
const fam = modelFamily(model);
|
|
109
|
+
const name = fam.length > FAMILY_MAX ? `${fam.slice(0, FAMILY_MAX - 1)}…` : fam;
|
|
110
|
+
byFamily.set(name, (byFamily.get(name) || 0) + 1);
|
|
111
|
+
}
|
|
112
|
+
const families = [...byFamily.entries()]
|
|
113
|
+
.map(([family, runs]) => ({ family, runs }))
|
|
114
|
+
.sort((a, b) => b.runs - a.runs || a.family.localeCompare(b.family));
|
|
115
|
+
return { count: live.length, families };
|
|
116
|
+
}
|
package/src/team-prompts.js
CHANGED
|
@@ -34,6 +34,7 @@ import { codexUserDir } from './agent.js';
|
|
|
34
34
|
import { discoverCodexSessionFiles } from './codex/parser.js';
|
|
35
35
|
import { writeStateFile } from './state-file.js';
|
|
36
36
|
import { debug } from './debug.js';
|
|
37
|
+
import { redactSecrets, redactPersonal } from './redact.js';
|
|
37
38
|
|
|
38
39
|
export const MAX_RUN_PROMPTS = 2000;
|
|
39
40
|
export const MAX_RUN_BYTES = 8 * 1024 * 1024;
|
|
@@ -45,89 +46,9 @@ const READ_WINDOW_MAX = 256 * 1024 * 1024;
|
|
|
45
46
|
|
|
46
47
|
export const promptOffsetsPath = (dir = userDataDir()) => join(dir, 'prompts-offsets.json');
|
|
47
48
|
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const REDACTED = '[redacted]';
|
|
53
|
-
const SECRET_PATTERNS = [
|
|
54
|
-
/-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z ]*PRIVATE KEY-----/g,
|
|
55
|
-
/-----BEGIN [A-Z ]*PRIVATE KEY-----[\s\S]*$/g, // key block cut off by the end of the prompt
|
|
56
|
-
/\bsk-ant-[A-Za-z0-9_-]{16,}/g,
|
|
57
|
-
/\bsk-[A-Za-z0-9_-]{20,}/g,
|
|
58
|
-
/\bgh[pousr]_[A-Za-z0-9]{20,}/g,
|
|
59
|
-
/\bgithub_pat_[A-Za-z0-9_]{20,}/g,
|
|
60
|
-
/\bAKIA[0-9A-Z]{16}\b/g,
|
|
61
|
-
/\bxox[abpr]-[A-Za-z0-9-]{10,}/g,
|
|
62
|
-
];
|
|
63
|
-
|
|
64
|
-
/** Replace obvious secrets with "[redacted]". Conservative: it may over-redact, never under-redact these shapes. */
|
|
65
|
-
export function redactSecrets(text) {
|
|
66
|
-
let s = String(text ?? '');
|
|
67
|
-
for (const re of SECRET_PATTERNS) s = s.replace(re, REDACTED);
|
|
68
|
-
s = s.replace(/\b(Bearer\s+)[A-Za-z0-9._~+/=-]{16,}/gi, `$1${REDACTED}`);
|
|
69
|
-
s = s.replace(
|
|
70
|
-
/\b([A-Za-z0-9_]*(?:KEY|TOKEN|PASSWORD|PASSWD|SECRET)[A-Za-z0-9_]*)(\s*=\s*)("[^"\n]*"|'[^'\n]*'|[^\s"']+)/gi,
|
|
71
|
-
(m, name, eq, val) => (val === REDACTED ? m : `${name}${eq}${REDACTED}`),
|
|
72
|
-
);
|
|
73
|
-
return s;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ---------------------------------------------------------------------------
|
|
77
|
-
// Personal data (PII) redaction. Typed markers: [redacted:email] [redacted:phone] [redacted:rrn] [redacted:card].
|
|
78
|
-
// Tuned for coding prompts: a miss is acceptable, a mangled code snippet is not.
|
|
79
|
-
// ---------------------------------------------------------------------------
|
|
80
|
-
|
|
81
|
-
const MARK_EMAIL = '[redacted:email]';
|
|
82
|
-
const MARK_PHONE = '[redacted:phone]';
|
|
83
|
-
const MARK_RRN = '[redacted:rrn]';
|
|
84
|
-
const MARK_CARD = '[redacted:card]';
|
|
85
|
-
|
|
86
|
-
// local@a.b.tld: dotted domain, TLD of 2+ letters. `react@18.3.1` has no letter TLD; the `git@github.com` SSH remote user is skipped in the callback.
|
|
87
|
-
const EMAIL_RE = /(?<![A-Za-z0-9._%+-])[A-Za-z0-9._%+-]+@([A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*)\.[A-Za-z]{2,}(?![A-Za-z0-9-])/g;
|
|
88
|
-
// asset names such as logo@2x.png and a version with a prerelease tag such as react@18.3.1-beta.abc are not addresses
|
|
89
|
-
const looksLikeAssetOrVersion = (domain) => { const first = domain.split('.')[0]; return !/[A-Za-z]/.test(first) || /^\d+x$/i.test(first); };
|
|
90
|
-
|
|
91
|
-
const PHONE_RES = [
|
|
92
|
-
// mobile: 010 / 011 / 016 / 017 / 018 / 019, separators optional
|
|
93
|
-
/(?<![\w.])01[016789][-. ]?\d{3,4}[-. ]?\d{4}(?!\w)/g,
|
|
94
|
-
// international form of a mobile number: +82 10 ..., +82-10-..., +82 (0)10 ...
|
|
95
|
-
/(?<![\w])\+82[-. ]?(?:\(0\)[-. ]?)?10[-. ]?\d{3,4}[-. ]?\d{4}(?!\w)/g,
|
|
96
|
-
// landline and 070: area code only when joined by hyphens, so plain digit runs stay untouched
|
|
97
|
-
/(?<![\w-])0(?:[2-6][0-9]?|70)-\d{3,4}-\d{4}(?![\w-])/g,
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
// YYMMDD-GXXXXXX, G is 1-8 (birth century and sex, foreigners 5-8); month and day are range-checked below
|
|
101
|
-
const RRN_RE = /(?<![\w-])(\d{2})(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])[- ][1-8]\d{6}(?!\w)/g;
|
|
102
|
-
|
|
103
|
-
// grouped (4-4-4-4, 4-4-4-4-3, 4-6-5) or contiguous 15-16 digits
|
|
104
|
-
const CARD_RE = /(?<![\w-])(?:\d{4}([ -])\d{4}\1\d{4}\1\d{4}(?:\1\d{3})?|\d{4}([ -])\d{6}\2\d{5}|\d{15,16})(?![\w-])/g;
|
|
105
|
-
const CARD_IIN_RE = /^(?:4|5[1-5]|222[1-9]|22[3-9]\d|2[3-6]\d\d|27[01]\d|2720|3[457]|6011|65|9)/;
|
|
106
|
-
|
|
107
|
-
function luhnOk(digits) {
|
|
108
|
-
let sum = 0;
|
|
109
|
-
for (let i = digits.length - 1, dbl = false; i >= 0; i--, dbl = !dbl) {
|
|
110
|
-
let d = digits.charCodeAt(i) - 48;
|
|
111
|
-
if (dbl) { d *= 2; if (d > 9) d -= 9; }
|
|
112
|
-
sum += d;
|
|
113
|
-
}
|
|
114
|
-
return sum % 10 === 0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** Mask email addresses, Korean phone numbers, resident registration numbers and card numbers with typed markers. */
|
|
118
|
-
export function redactPersonal(text) {
|
|
119
|
-
let s = String(text ?? '');
|
|
120
|
-
s = s.replace(EMAIL_RE, (m, domain) => (/^git@/i.test(m) || looksLikeAssetOrVersion(domain) ? m : MARK_EMAIL));
|
|
121
|
-
s = s.replace(CARD_RE, (m) => {
|
|
122
|
-
const digits = m.replace(/\D/g, '');
|
|
123
|
-
if (digits.length < 13 || digits.length > 19 || !luhnOk(digits)) return m;
|
|
124
|
-
if (/^\d+$/.test(m) && !CARD_IIN_RE.test(digits)) return m; // contiguous digits need a real issuer prefix
|
|
125
|
-
return MARK_CARD;
|
|
126
|
-
});
|
|
127
|
-
s = s.replace(RRN_RE, MARK_RRN);
|
|
128
|
-
for (const re of PHONE_RES) s = s.replace(re, MARK_PHONE);
|
|
129
|
-
return s;
|
|
130
|
-
}
|
|
49
|
+
// Redaction lives in redact.js (shared with the rule examples); re-exported so
|
|
50
|
+
// existing importers keep working.
|
|
51
|
+
export { redactSecrets, redactPersonal };
|
|
131
52
|
|
|
132
53
|
// ---------------------------------------------------------------------------
|
|
133
54
|
// Prompt extraction
|