feat(devtools): package Cloudflare and PikPak CLIs and patch Pi worker
This commit is contained in:
parent
92b7a1c67c
commit
8e0521e16b
10 changed files with 1247 additions and 7 deletions
|
|
@ -53,9 +53,13 @@
|
|||
# due to nixpkgs-unstable syrupy test failures breaking the font's Python build deps
|
||||
packages = with pkgs; [
|
||||
age
|
||||
awscli2
|
||||
cloudflared
|
||||
customPkgs.cf
|
||||
gh
|
||||
glab
|
||||
tea
|
||||
ffmpeg
|
||||
fzf
|
||||
htop
|
||||
jq
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [
|
||||
llmPkgs.claude-code # latest
|
||||
llmPkgs.pi # latest
|
||||
customPkgs.pi # latest, with the local codemode worker fix
|
||||
llmPkgs.ccstatusline # latest
|
||||
llmPkgs.ccusage # latest
|
||||
llmPkgs.codex
|
||||
|
|
@ -283,13 +283,14 @@ in
|
|||
llmPkgs.herdr # latest - terminal agent multiplexer
|
||||
llmPkgs.grok
|
||||
llmPkgs.omp # latest - oh-my-pi terminal coding agent
|
||||
customPkgs.pikpak-cli
|
||||
]
|
||||
++ zaiWrapperPackages
|
||||
++ kimiWrapperPackages
|
||||
++ cfg.extraPackages;
|
||||
|
||||
home.activation.installPiFff = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
if [ -x ${lib.getExe llmPkgs.pi} ]; then
|
||||
if [ -x ${lib.getExe customPkgs.pi} ]; then
|
||||
export PI_SKIP_VERSION_CHECK=1
|
||||
export PI_TELEMETRY=0
|
||||
export PATH=${pkgs.nodejs}/bin:${pkgs.git}/bin:$PATH
|
||||
|
|
@ -298,10 +299,10 @@ in
|
|||
mkdir -p "$(dirname "$settings_file")"
|
||||
${pkgs.nodejs}/bin/node -e "const fs=require('fs'); const path=process.env.HOME+'/.pi/agent/settings.json'; let settings={}; if (fs.existsSync(path)) settings=JSON.parse(fs.readFileSync(path,'utf8')); settings.theme='dark'; settings.defaultProvider='openai-codex'; settings.defaultModel='gpt-5.6-sol'; fs.writeFileSync(path, JSON.stringify(settings, null, 2)+String.fromCharCode(10));"
|
||||
|
||||
${lib.getExe llmPkgs.pi} list | ${pkgs.gnugrep}/bin/grep -q '@ff-labs/pi-fff' || \
|
||||
${lib.getExe llmPkgs.pi} install npm:@ff-labs/pi-fff@0.9.4
|
||||
${lib.getExe llmPkgs.pi} list | ${pkgs.gnugrep}/bin/grep -q '@juicesharp/rpiv-ask-user-question' || \
|
||||
${lib.getExe llmPkgs.pi} install npm:@juicesharp/rpiv-ask-user-question@1.20.0
|
||||
${lib.getExe customPkgs.pi} list | ${pkgs.gnugrep}/bin/grep -q '@ff-labs/pi-fff' || \
|
||||
${lib.getExe customPkgs.pi} install npm:@ff-labs/pi-fff@0.9.4
|
||||
${lib.getExe customPkgs.pi} list | ${pkgs.gnugrep}/bin/grep -q '@juicesharp/rpiv-ask-user-question' || \
|
||||
${lib.getExe customPkgs.pi} install npm:@juicesharp/rpiv-ask-user-question@1.20.0
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue