Repository navigation
Update pi to 1.5.0 and patch vulnerable dependencies - #416
Merged
Merged
Conversation
pi-ai 1.5 types StringEnum as a pi-schema Schema, which TypeBox's Static reads as unknown, and ExecResult gains a required truncated field. The emitted schema is unchanged, and hosts before 1.5 still compile.
pi 1.5.0 pins undici 8.12.3. On 8.10.2 a server sending more than five content codings and closing early ended the process through global fetch, which MCP HTTP transports and HTTP hooks use (GHSA-xjj6-f33q-929c). Lockfile only: fast-uri 3.1.9, body-parser 2.4.0, ip-address 10.7.5, zod 4.6.7, qs 6.17.1, minimatch 11.0.3. pi 1.5.0 reworded the prompt line output styles cut at, so a style applied after an earlier extension forced the prompt was appended instead of replacing the instructions. Both the current and the older line now match.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Moves the pi packages to 1.5.0 and updates vulnerable transitive dependencies, clearing all open Dependabot alerts and every
npm auditfinding. pi 1.5.0 changes its published types and system prompt, so three extensions change with it. The published dependency ranges inpackage.jsonare unchanged.Process crash from a malicious server
undici8.10.2 to 8.12.3, through pi 1.5.0 (GHSA-xjj6-f33q-929c). A response with six content codings followed by an early close ended the process with an uncaughtUND_ERR_SOCKET, even when thefetch()rejection was caught. MCP HTTP transports and HTTP hooks use globalfetch, which pi routes through this copy. The same response now only rejects thefetch()call.Lockfile-only updates
body-parserip-addressfast-urizodqsminimatchpi 1.5.0 compatibility
Output styles replace the instructions after an earlier extension forced the prompt (
extensions/output-styles.ts). pi 1.5.0 reworded the prompt line the string fallback cuts at, so the style was appended and the default instructions stayed. The fallback now matches the current line and the line used before 1.5. The structured prompt path is unchanged.Tool parameters keep their types (
extensions/internal/string-enum.ts). pi-ai 1.5.0 typesStringEnumas a pi-schemaSchema, which TypeBox'sStaticreads asunknown, sotodoandsubagentfailedtsc. A wrapper restores the type and emits the same{ type: 'string', enum }schema.gitShadowreturnstruncated(extensions/git-checkpoint.ts).ExecResultnow requires the field.npm run checkpasses (Biome, strict tsc, Vitest)Tests cover the change