Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix: replace dynamic code eval with globalThis in instrumentation
Gusc120a2cd247b
diff --git a/src/web/src/instrumentation.ts b/src/web/src/instrumentation.tsindex 35eed1afa..d619bbd0e 100644--- a/src/web/src/instrumentation.ts+++ b/src/web/src/instrumentation.ts@@ -6,11 +6,9 @@ export function register() {if (process.env.NODE_ENV !== "development") return// Patch stdout.write to prepend timestamps to Next.js dev request logs.- // Use Function constructor to access process.stdout without the Edge bundler- // statically detecting the Node.js API reference.try {- const getStdout = new Function("return process.stdout") as () => typeof process.stdout- const stdout = getStdout()+ const proc = (globalThis as Record<string, unknown>)["process"] as typeof process | undefined+ const stdout = proc?.stdoutif (typeof stdout?.write === "function") {const origWrite = stdout.write.bind(stdout)const REQUEST_LOG_RE = /^ +(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS) /