- before: https://github.com/CorrectRoadH/niceeval/tree/main/examples/zh/origin/pi-sdk — a standalone
@earendil-works/pi-agent-coreHTTP service, before any eval integration. - after: https://github.com/CorrectRoadH/niceeval/tree/main/examples/zh/tier1/pi-sdk — the same app after integrating NiceEval.
AgentEvent events into standard events is handled by createPiAgentEventStream (exported from "niceeval/adapter"). The adapter only keeps transport glue: which URL the app uses and which endpoint handles approvals (calculate goes through HITL approval). You start the app yourself in its normal way (pnpm start); evals do not manage the process. App-side src/backend/* files are byte-for-byte unchanged.
All integration code changes (measured from both directories when generated):