Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

551 B
Raw Blame
import { spawnSync } from "node:child_process";
import { writeFileSync } from "node:fs";
import { createRequire } from "node:module";
import {
  targetArch,
  targetPlatform,
} from "../packages/agent/build/native-binary.mjs";

writeFileSync(
  new URL("../.platform-stamp", import.meta.url),
  `${targetPlatform()}-${targetArch()}\n`,
);

const turbo = createRequire(import.meta.url).resolve("turbo/bin/turbo");
const result = spawnSync(process.execPath, [turbo, ...process.argv.slice(2)], {
  stdio: "inherit",
});
process.exit(result.status ?? 1);