Commit 7180c35
fix(server): keep typeof getAgentDir guard for protocol-only stub
MENTOR_RUNNER_PROTOCOL_ONLY=1 swaps the Pi SDK for a deterministic stub
(buildStubSdk) that does not export getAgentDir. The previous commit
dropped the typeof guard, so the smoke test in pi-mentor-runner.spec.mjs
crashed with `getAgentDir is not a function`. Restore the guard and
update its fallback to /workspace/.pi to match the new container layout.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a6329c1 commit 7180c35
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
0 commit comments