Files
harness-tools/scripts/pi-orca-runtime.fish
T
2026-08-24 16:33:11 -04:00

15 lines
631 B
Fish

function configure_pi_orca_runtime --argument-names profile
set -g pi_orca_node_executable /usr/bin/node
set -gx PI_CODING_AGENT_DIR /home/jb/.pi/agent
if test "$profile" = pi-work
set pi_orca_node_executable /home/jb/.local/share/fnm/node-versions/v22.23.2/installation/bin/node
set PI_CODING_AGENT_DIR /home/jb/.pi/profiles/cyone
end
# Keep Pi and its subprocesses on the same Node installation. Orca inherits
# fnm's PATH, which otherwise makes tool commands resolve a different Node.
set -l node_bin (path dirname "$pi_orca_node_executable")
set -gx PATH "$node_bin" $PATH
end