refactor: Append runtime information to context hook output

This commit is contained in:
Alex Newman
2025-12-07 17:25:29 -05:00
parent 9855ccf66d
commit cb1d939750
+2 -1
View File
@@ -26,7 +26,8 @@ async function contextHook(input?: SessionStartInput): Promise<string> {
const port = getWorkerPort();
const url = `http://127.0.0.1:${port}/api/context/inject?project=${encodeURIComponent(project)}`;
const result = execSync(`curl -s "${url}"`, { encoding: "utf-8", timeout: 5000 });
return result;
const runtime = process.title.includes('bun') ? 'bun' : 'node';
return result + "\n\n [Executed with " + runtime + " runtime]";
}
// Entry Point - handle stdin/stdout