Automatically scanned data. Review the source before installing. Levels describe capabilities, not a safety certification.
View matches (18)
Write files · line128 lineplugins/context-diet/hooks/register.tsxawait $.fs.write(ignore, '# Context Diet keeps full tool outputs here. Nothing in this folder belongs in git.\n*\n')
Execute commands · line177 lineplugins/context-diet/hooks/register.tsxexport const persistedPath = (text: string) => PERSISTED.exec(text)?.[1]
Intercept tool calls · line580 lineplugins/context-diet/hooks/register.tsxon('tool.call', async ($, e, next) => {
Read files · line613 lineplugins/context-diet/hooks/register.tsxif (path) persisted[path] = await $.fs.read(path).catch(() => undefined) ?? ''
Read files · line621 lineplugins/context-diet/hooks/register.tsxconst text = await $.fs.read(info.capture).catch(() => undefined)
Write files · line637 lineplugins/context-diet/hooks/register.tsxfor (const save of saves) await $.fs.write(save.path, save.text)
Execute commands · line664 lineplugins/context-diet/hooks/register.tsxconst m = THRESHOLD_ARG.exec(arg)
Execute commands · line685 lineplugins/context-diet/hooks/register.tsxconst keepArg = /^(keep|unkeep)(?:\s+(.+))?$/i.exec(e.args.trim())
Execute commands · line210 lineplugins/context-diet/hooks/diet.tsconst m = /^diff --git a\/(.+?) b\/(.+)$/.exec(line)
Execute commands · line217 lineplugins/context-diet/hooks/diet.tsconst p = /^\+\+\+ (?:b\/)?(.+)$/.exec(line)
Execute commands · line273 lineplugins/context-diet/hooks/diet.tsconst m = /^([^\s:]+?)[:-](\d+)[:-](.*)$/.exec(line)
Execute commands · line131 lineplugins/context-diet/hooks/tools.tsconst run = /^=== RUN\s+(\S+)/.exec(l)
Execute commands · line134 lineplugins/context-diet/hooks/tools.tsconst fail = /^\s*--- FAIL: (\S+)/.exec(l)
Execute commands · line155 lineplugins/context-diet/hooks/tools.tsconst w = /^warning: (.+)$/.exec(l)
Execute commands · line174 lineplugins/context-diet/hooks/tools.tsconst m = TSC.exec(lines[k] ?? '')
Execute commands · line197 lineplugins/context-diet/hooks/tools.tsconst m = problem.exec(l)
Execute commands · line225 lineplugins/context-diet/hooks/tools.tsconst w = /^(?:npm (?:WARN|warn)|warning|WARNING:?)\s+(\S+)/.exec(l)
Execute commands · line240 lineplugins/context-diet/hooks/tools.tsconst step = /^#(\d+) \[/.exec(l)