summaryrefslogtreecommitdiff
path: root/skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-03-09 21:36:37 -0700
committerJesse Vincent <jesse@fsck.com>2026-03-09 21:36:37 -0700
commit7446c842d8754a9ce54dd82a9258443d08c490c3 (patch)
treee68400d83088f125ec6a7ed1a030bc749c90061f /skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js
parent5e2a89e985eb3c3f5ea2bccc2fa6f19ac5d26797 (diff)
Bundle brainstorm server dependencies instead of requiring npm install
Vendor node_modules into the repo so the brainstorm server works immediately on fresh plugin installs without needing npm at runtime.
Diffstat (limited to 'skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js')
-rw-r--r--skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js b/skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js
new file mode 100644
index 0000000..60ea6c0
--- /dev/null
+++ b/skills/brainstorming/scripts/node_modules/debug/src/inspector-log.js
@@ -0,0 +1,15 @@
+module.exports = inspectorLog;
+
+// black hole
+const nullStream = new (require('stream').Writable)();
+nullStream._write = () => {};
+
+/**
+ * Outputs a `console.log()` to the Node.js Inspector console *only*.
+ */
+function inspectorLog() {
+ const stdout = console._stdout;
+ console._stdout = nullStream;
+ console.log.apply(console, arguments);
+ console._stdout = stdout;
+}