Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

485 B
Raw Blame
/** The process incarnation used by external adoption, checked again by core before any signal. */
import { processStartMarker } from './processLiveness.js'

export function externalProcessGeneration(pid: number): string | null {
  const marker = processStartMarker(pid)
  if (marker?.startsWith('linux:')) return marker
  if (!marker?.startsWith('ps-c:')) return null
  const started = Date.parse(`${marker.slice(5)} UTC`)
  return Number.isFinite(started) ? `ps:${started}` : null
}