Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: pi-coding-agent 0.64.0 -> 0.66.1 https://github.com/badlogic/pi-mono/releases attrpath: pi-coding-agent Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] skipping because derivation has updateScript [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/f0xq2jswzhkkbhpcdh38g91kkn61h1l9-packages.json.drv building '/nix/store/f0xq2jswzhkkbhpcdh38g91kkn61h1l9-packages.json.drv'... Going to be running update for following packages: - pi-coding-agent-0.64.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - pi-coding-agent-0.64.0: UPDATING ... - pi-coding-agent-0.64.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/pi/pi-coding-agent/package.nix b/pkgs/by-name/pi/pi-coding-agent/package.nix index 8fb9efa2f697..c9d806f2d530 100644 --- a/pkgs/by-name/pi/pi-coding-agent/package.nix +++ b/pkgs/by-name/pi/pi-coding-agent/package.nix @@ -10,16 +10,16 @@ }: buildNpmPackage (finalAttrs: { pname = "pi-coding-agent"; - version = "0.64.0"; + version = "0.66.1"; src = fetchFromGitHub { owner = "badlogic"; repo = "pi-mono"; tag = "v${finalAttrs.version}"; - hash = "sha256-knCfmoTjq5RADkGRcX7AAxTBhW+2GL4pDtgvMH8pMoY="; + hash = "sha256-ZLa4IU7WpXixn9q158m17AvsofE43qj11JoaHCA1BWI="; }; - npmDepsHash = "sha256-dzBmtAhm0X4TsKW9nwKVyhvYlMLphzNtKkDvubWQFPk="; + npmDepsHash = "sha256-ZR9KAu9zKqYw7Kduf2lkijNVJ03iGzUhty8txSSliD4="; npmWorkspace = "packages/coding-agent"; No auto update branch exists Old version 0.64.0" not present in master derivation file with contents: { lib, buildNpmPackage, fetchFromGitHub, nix-update-script, versionCheckHook, writableTmpDirAsHomeHook, ripgrep, makeBinaryWrapper, }: buildNpmPackage (finalAttrs: { pname = "pi-coding-agent"; version = "0.66.1"; src = fetchFromGitHub { owner = "badlogic"; repo = "pi-mono"; tag = "v${finalAttrs.version}"; hash = "sha256-ZLa4IU7WpXixn9q158m17AvsofE43qj11JoaHCA1BWI="; }; npmDepsHash = "sha256-ZR9KAu9zKqYw7Kduf2lkijNVJ03iGzUhty8txSSliD4="; npmWorkspace = "packages/coding-agent"; # Skip native module rebuild for unneeded workspaces (e.g. canvas from web-ui) npmRebuildFlags = [ "--ignore-scripts" ]; nativeBuildInputs = [ makeBinaryWrapper ]; # Build workspace dependencies in order, then the coding-agent. # We invoke tsgo directly for workspace deps to skip pi-ai's # generate-models script which requires network access # (models.generated.ts is committed to the repo). buildPhase = '' runHook preBuild npx tsgo -p packages/ai/tsconfig.build.json npx tsgo -p packages/tui/tsconfig.build.json npx tsgo -p packages/agent/tsconfig.build.json npm run build --workspace=packages/coding-agent runHook postBuild ''; # npm workspace symlinks in the output point into packages/ which # doesn't exist there. Replace runtime deps with built content and # delete the rest. postInstall = '' local nm="$out/lib/node_modules/pi-monorepo/node_modules" # Replace workspace deps needed at runtime with real copies for ws in @mariozechner/pi-ai:packages/ai \ @mariozechner/pi-agent-core:packages/agent \ @mariozechner/pi-tui:packages/tui; do IFS=: read -r pkg src <<< "$ws" rm "$nm/$pkg" cp -r "$src" "$nm/$pkg" done # Delete remaining workspace symlinks find "$nm" -type l -lname '*/packages/*' -delete # Clean up now-dangling .bin symlinks find "$nm/.bin" -xtype l -delete ''; postFixup = "wrapProgram $out/bin/pi --prefix PATH : ${lib.makeBinPath [ ripgrep ]}"; doInstallCheck = true; nativeInstallCheckInputs = [ writableTmpDirAsHomeHook versionCheckHook ]; versionCheckKeepEnvironment = [ "HOME" ]; versionCheckProgram = "${placeholder "out"}/bin/pi"; versionCheckProgramArg = "--version"; passthru.updateScript = nix-update-script { }; meta = { description = "Coding agent CLI with read, bash, edit, write tools and session management"; homepage = "https://shittycodingagent.ai/"; downloadPage = "https://www.npmjs.com/package/@mariozechner/pi-coding-agent"; changelog = "https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ munksgaard ]; mainProgram = "pi"; }; })