Pi Monorepo Deep Dive: A TypeScript AI Agent Stack