adc62957a7
CI / Multi-repo Path Gate (AST-grep) (windows-latest) (push) Has been cancelled
CI / Version Consistency Check (push) Has been cancelled
CI / npm pack + install test (push) Has been cancelled
CI / Lint & Type Check (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Test (Windows path suite) (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / No Committed Build Artifacts (push) Has been cancelled
CI / Multi-repo Path Gate (AST-grep) (ubuntu-latest) (push) Has been cancelled
Upgrade Test / omc update + session-start hook (push) Has been cancelled
29 lines
886 B
JavaScript
29 lines
886 B
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* OMC Context Safety Hook (PreToolUse) - compatibility no-op
|
|
*
|
|
* TeamCreate was removed from this guard in #1006 because blocking lightweight
|
|
* orchestration setup caused silent fallback behavior. ExitPlanMode was removed
|
|
* in #1597 because blocking a lightweight plan-mode exit traps long-running
|
|
* planning skills such as /deep-interview in irreversible approval loops once
|
|
* context crosses the warning threshold.
|
|
*
|
|
* The script remains as a permissive compatibility shim so older patched hook
|
|
* installations that still point at scripts/context-safety.mjs do not fail.
|
|
*/
|
|
|
|
import { readStdin } from './lib/stdin.mjs';
|
|
|
|
async function main() {
|
|
try {
|
|
await readStdin();
|
|
} catch {
|
|
// Ignore malformed input - this hook is intentionally permissive.
|
|
}
|
|
|
|
console.log(JSON.stringify({ continue: true, suppressOutput: true }));
|
|
}
|
|
|
|
main();
|