Loading…
Reference in a new issue
No description provided.
Delete branch "deps/npm-audit-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR lands three changes together (merge commits, no rewrites):
#40
flower/preflight-reject-compat: Flower treats a prompt that pi 1.x rejects without callingpreflightResultas retryable. Works on pi 0.84.4 and 1.x.#39 (this branch): npm audit fixes for
web/andmodules/flower/pi, including pi-coding-agent 0.84.4 to 1.4.0 (details below).#38
ci/move-to-pool: movescurrency,rust-tests,supply-chainandcontainer-buildoffbosbitch-releaseto the shared pool.containers/media-tools/Dockerfile: pinmusl/musl-dev1.2.6-r3. Alpine replacedmusl-dev-r2, so the pinnedapk addno longer resolves and every image builtFROM media-toolsfailed incontainer-build(run 6161). This is pre-existing breakage on main, which CI there hasn't been able to show since runner 11 retired.scripts/smoke-module-images.sh: each module container is removed after its health check. The pool's Podman sidecars share one network namespace per job (netns="host", see elephant-hand-monorepo#230), so modules that use the same port collided (Port 8377 is in use, run 6166)..forgejo/workflows/ci.yml: whencontainer-buildfails, its trivy, effective-policy and reachability reports are uploaded as thecontainer-scan-reportsartifact, so a blocked VEX gate can be triaged.Merged with
container-buildred, on purpose. Every other job is green.container-buildstops ingenerate_container_vex.pyon CVE-2026-16742 (HIGH, systemd-homed local privilege escalation). Trivy maps it tolibsystemd0andlibudev1257.13-1~deb13u1 in thepython:3.12-slim@sha256:57cd7c3abase, which has no fix in trixie. Those libraries are hard dependencies of coreutils, util-linux, PAM and apt, so they can't be removed. main has the same finding, so this PR doesn't introduce it. A not-affected VEX statement was drafted but dropped without sign-off, because embodied-ai is shelved. Reopen that when the repo is unshelved or the base image gets a fixed systemd.Why together: runner 11, the only runner with
bosbitch-release, is retired, and every jobneeds: currency, so no PR based on main can run CI. #38 is the only branch that runs, but it is red until these audit fixes land. This bump needs #40 first, or pi 1.x breaks Flower's retry path. That is a cycle, so all three merge as one. Forgejo should mark #40 and #38 as merged, because their heads are in this branch. Python dependency scanning is still a gap, tracked separately in #41.npm audit --package-lock-only --audit-level=highfails inweb/andmodules/flower/pi. This bumps the affected packages; the audit level and the step are unchanged.vite8.3.5,vitestand@vitest/coverage-v85.0.5 (fixes vitest, vite and source-map-js).undici7.29.0 to 7.30.1 comes in via the lockfile (jsdom 29 allows it).@earendil-works/pi-coding-agent0.84.4 to 1.4.0. 0.84.4 shipped annpm-shrinkwrap.jsonthat pinnedundici8.9.0 andbrace-expansion5.0.9 and ignored rootoverrides. 1.4.0 has no shrinkwrap, so theoverrides(undici8.12.2,brace-expansion5.0.12) now apply. The Dockerfile's shrinkwrap workaround is removed, andmodules/flower/AGENTS.mdis updated to match.Run in
node:24containers:npm auditreports 0 vulnerabilities in both directories. Inweb/,npm ci, typecheck,npm test -- --run(42 passed) and build pass. Inmodules/flower/pi,npm ci,npm test(8 passed) andnode --check server.mjspass.Risk: pi-coding-agent is a major bump. The unit tests use a mocked SDK. I checked that the SDK exports used in
runtime.mjsstill exist, but the real Pi session path has not been exercised. The Flower image smoke runs incontainer-build.pi-coding-agent 1.x breaking changes, checked against Flower's calls (
modules/flower/pi/runtime.mjs,server.mjs):PromptOptions.preflightResult. In 1.x it isn't called when pi rejects a prompt (0.84.4 passedfalse), and on acceptance it receives a"handled" | "queued" | "started"string. With this bump alone, an auth failure or a missing key would become a fail-closed "uncertain" turn that refuses retries. The mocked tests don't catch this. The fix is #40, which works on both versions and is merged into this branch.thinkingLevelis now typed asoff|minimal|low|medium|high|xhigh|max.resolveThinkingreturns only those values.ModelRuntime.create,SessionManager.open/create,SettingsManager.inMemory;DefaultResourceLoaderoptions and thecreateAgentSessionoptions;setModel,setThinkingLevel,subscribe,dispose,getSessionFile;message_update/text_delta,tool_execution_startandmessage_endevents;defineTool;registerProviderwithapi: "openai-completions". Only the legacystream*aliases are deprecated.before_agent_startunion;shouldStopAfterTurn;state.messages);🤖 Generated with Claude Code
Bump web and Flower Pi dependencies to fix npm auditto Bump web and Flower Pi deps to fix npm audit, with #40 and #38 (CI on the pool)cd435e175f75b5e8eded