diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c1ce8a..c84c0ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: cache: npm - run: npm ci - run: npm run check - - run: shellcheck sandbox/*.sh sandbox/build/*.sh + - run: git ls-files -z 'sandbox/*.sh' | xargs -0 shellcheck - run: npm audit --omit=dev --audit-level=high # Validation checks plans, regions, and conflicts against a real workspace, so it needs an API key. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d72ccd7..bc4d882 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,7 +86,7 @@ TEST_DATABASE_URL=postgresql://postgres@localhost:5432/postgres npx vitest run - Run additional checks when relevant: ```bash -shellcheck sandbox/*.sh sandbox/build/*.sh +git ls-files -z 'sandbox/*.sh' | xargs -0 shellcheck render blueprints validate render.yaml npm audit --omit=dev --audit-level=high ``` diff --git a/package-lock.json b/package-lock.json index 1f47295..0a59811 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,15 +9,15 @@ "version": "0.2.0", "license": "MIT", "dependencies": { - "@earendil-works/pi-agent-core": "1.5.2", - "@earendil-works/pi-ai": "1.5.2", - "@earendil-works/pi-coding-agent": "1.5.2", - "@hono/node-server": "^2.0.0", + "@earendil-works/pi-agent-core": "1.8.0", + "@earendil-works/pi-ai": "1.8.0", + "@earendil-works/pi-coding-agent": "1.8.0", + "@hono/node-server": "^2.1.11", "@renderinc/sdk": "^1.12.0", "esbuild": "^0.28.2", - "hono": "^4.0.0", + "hono": "^4.13.23", "pg": "^8.23.1", - "tar": "^7.5.22", + "tar": "^8.1.1", "tsx": "^4.19.0", "typebox": "1.3.27", "zod": "^4.6.7" @@ -609,33 +609,34 @@ } }, "node_modules/@earendil-works/pi-agent-core": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.5.2.tgz", - "integrity": "sha512-ie5mejS7mGfXt//9As7i3LfxVXdktZvF1JP4EQsUXTp4mU437h23MNGx7wXZ5VYs3YiG/Qnj3e7OZ2HC069OMw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.8.0.tgz", + "integrity": "sha512-IPhSF+FRO3aM8A2ClvPeCI69Ysdws9LjZGPSlE6ynn4wFpuovaxT2ANZtELUffpAUn6eOrBT9YOioLiW73I0OQ==", "license": "MIT", "dependencies": { - "@earendil-works/pi-ai": "1.5.2", - "@earendil-works/pi-schema": "1.5.2" + "@earendil-works/pi-ai": "1.8.0", + "@earendil-works/pi-schema": "1.8.0" }, "engines": { "node": ">=22.19.0" } }, "node_modules/@earendil-works/pi-ai": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.5.2.tgz", - "integrity": "sha512-2tWPSnV3qzfiDIY3aWluBag3vC++Vs+VsXt/UquSU5onPMohPih72FUhIhaqmDdMYubOgB3Byl9uF4Vk40JLvQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.8.0.tgz", + "integrity": "sha512-piJgd8RcoF4AmGB2wHXdefCa7ERua9bgnTZTTJNaEfgiTt8Q3mAcvVWSavEk43/S9WG58lK8O36RTJty6EFUDw==", "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "0.129.0", "@aws-sdk/client-bedrock-runtime": "3.1127.0", - "@earendil-works/pi-schema": "1.5.2", - "@earendil-works/pi-telemetry": "1.5.2", - "@google/genai": "2.21.0", + "@aws-sdk/credential-provider-node": "3.972.82", + "@earendil-works/pi-schema": "1.8.0", + "@earendil-works/pi-telemetry": "1.8.0", + "@google/genai": "3.6.1", "@smithy/node-http-handler": "4.12.1", "http-proxy-agent": "9.1.0", "https-proxy-agent": "9.1.0", - "openai": "7.19.0", + "openai": "7.59.0", "partial-json": "0.1.7" }, "bin": { @@ -645,10 +646,32 @@ "node": ">=22.19.0" } }, + "node_modules/@earendil-works/pi-ai/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.972.82", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.82.tgz", + "integrity": "sha512-znDkEOGXB8W3kG1LJUKP3foBZY/9qLM0eil/DxWXSp37XsdsRLQHE/d/OaCGGVgKpA6znR38h/+INk8do1FjiA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "^3.972.70", + "@aws-sdk/credential-provider-http": "^3.972.72", + "@aws-sdk/credential-provider-ini": "^3.973.15", + "@aws-sdk/credential-provider-process": "^3.972.70", + "@aws-sdk/credential-provider-sso": "^3.973.14", + "@aws-sdk/credential-provider-web-identity": "^3.972.76", + "@aws-sdk/types": "^3.974.5", + "@smithy/core": "^3.33.3", + "@smithy/credential-provider-imds": "^4.4.16", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@earendil-works/pi-codemode": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.5.2.tgz", - "integrity": "sha512-HoZQ40a9RgdZ1VgmrX6x8887cNXedaRJT1l+Ie5YRIMK4gY7v0EpsiNqf6dmixrKylZlTgUSyR+vE8xhjfkr+w==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.8.0.tgz", + "integrity": "sha512-J7r96VwJZQfVwhLBGh/1aKbBVLsXluwM7ae/3Bx0FYOATq/dzydPcUGa8Fcev5Ew3foquddudSCGAWAQZkw6JA==", "license": "MIT", "dependencies": { "quickjs-wasi": "3.6.2" @@ -658,32 +681,33 @@ } }, "node_modules/@earendil-works/pi-coding-agent": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.5.2.tgz", - "integrity": "sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.8.0.tgz", + "integrity": "sha512-0ZsEDc+/Gl/ag6TNpPGecIWfC0DGsaVJonAT/8erGfBbSBwd8y/MQHZ+27uKT6SdWRsNjORQgcOz+dBILLep5g==", "license": "MIT", "dependencies": { - "@earendil-works/pi-agent-core": "1.5.2", - "@earendil-works/pi-ai": "1.5.2", - "@earendil-works/pi-codemode": "1.5.2", - "@earendil-works/pi-mcp": "1.5.2", - "@earendil-works/pi-tui": "1.5.2", + "@earendil-works/pi-agent-core": "1.8.0", + "@earendil-works/pi-ai": "1.8.0", + "@earendil-works/pi-codemode": "1.8.0", + "@earendil-works/pi-mcp": "1.8.0", + "@earendil-works/pi-schema": "1.8.0", + "@earendil-works/pi-tui": "1.8.0", "@silvia-odwyer/photon-node": "0.3.4", "brace-expansion": "5.0.12", "chalk": "6.0.0", - "cross-spawn": "7.0.6", + "cross-spawn": "7.1.2", "diff": "8.0.4", "highlight.js": "10.7.3", "hosted-git-info": "9.0.3", "ignore": "7.0.8", "jiti": "2.7.0", "lovely-mermaid": "0.3.3", - "minimatch": "11.0.3", + "minimatch": "11.0.9", "proper-lockfile": "4.1.2", "quickjs-wasi": "3.6.2", "semver": "7.8.5", "typebox": "1.3.27", - "undici": "8.12.3", + "undici": "8.12.4", "yaml": "2.9.0" }, "bin": { @@ -694,39 +718,40 @@ } }, "node_modules/@earendil-works/pi-mcp": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.5.2.tgz", - "integrity": "sha512-zU1UgeXDlbixPqGEWD7Ql0brEMIpYr7aEWjoEE5h5enJbM/kQ2jIr7lN8JoR80oUnq1fJSU7SC8kLx2Fx/IZYg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.8.0.tgz", + "integrity": "sha512-s3vK0TvxuKoK5oWuQhui7XDjn9KA6CYJ1UVZXHMFrj6wISRZAJFnLfHMt7nVZIHbMeflspSOii/sbI2pa1M1yA==", "license": "MIT", "dependencies": { - "cross-spawn": "7.0.6" + "@earendil-works/pi-schema": "1.8.0", + "cross-spawn": "7.1.2" }, "engines": { "node": ">=22.19.0" } }, "node_modules/@earendil-works/pi-schema": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.5.2.tgz", - "integrity": "sha512-hJoyCXWUhsSrXY5wJo2Q4kHXUsR51pNhkJHAMkWRwVMLDRtMDPkKNaa+JlVRVqTw1hjdSxcVVaFLSDbKlaTXEQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.8.0.tgz", + "integrity": "sha512-RMqRvlbCUIhTDBd9Jlqpyr2Yn07cDncq0CGGeworZP3Ic/MvEspEnK6zbu+KtCzIO5jfVJ3JJqDFICUXOi7QYg==", "license": "MIT", "engines": { "node": ">=22.19.0" } }, "node_modules/@earendil-works/pi-telemetry": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.5.2.tgz", - "integrity": "sha512-m+cumjIqNh1aMISi/9ttcG3ZOwIdriPbz/eMyWmRMJCGa/WcgY1RX4lrb7HvsHhSfI/JUeBESA4nOCr8C3y5ow==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.8.0.tgz", + "integrity": "sha512-jqDSA1DXSS7zBdXQGZENjqbs9aG0ph4uqjuCzcYqPmYBUJiAontFUvjTH44MCb4TdHrf4JsjAg+v5Jh6MSDTjA==", "license": "MIT", "engines": { "node": ">=22.19.0" } }, "node_modules/@earendil-works/pi-tui": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.5.2.tgz", - "integrity": "sha512-WK8ih+c88GWizaB79y7Pq3PV7ySf5VI1pZ1i/6aBBjDOAiG2EE3ojKjl+pxQqLfyQGnzHYu4VfakOBJgumuoyw==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.8.0.tgz", + "integrity": "sha512-e3h1m8G9t3D7YlbqjqrukVurH6aAuzzSepNbyP6b8xsyvxEUNe4IKLbxXKMd5g6nHhwbvgZmp8LeKdFZVan6gw==", "license": "MIT", "dependencies": { "get-east-asian-width": "1.6.0", @@ -1159,19 +1184,18 @@ } }, "node_modules/@google/genai": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.21.0.tgz", - "integrity": "sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==", - "hasInstallScript": true, + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@google/genai/-/genai-3.6.1.tgz", + "integrity": "sha512-DQIkZkl+VoZc+RUSaJ41vRuywjQDpP0t/oUf5/ddQhNW6JsPjVULW2EgHmuJ1mrr6ACtrmUdPlqtNXF1yfKySg==", "license": "Apache-2.0", "dependencies": { "google-auth-library": "^10.3.0", "p-retry": "^4.6.2", - "protobufjs": "^7.5.4", - "ws": "^8.18.0" + "protobufjs": "^7.6.5", + "ws": "^8.21.0" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" }, "peerDependencies": { "@modelcontextprotocol/sdk": "^1.25.2" @@ -1183,25 +1207,15 @@ } }, "node_modules/@hono/node-server": { - "version": "2.1.1", + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz", + "integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==", "license": "MIT", "engines": { "node": ">=20" }, "peerDependencies": { - "hono": "^4" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" + "hono": "^4 || ^5.0.0-0" } }, "node_modules/@isaacs/nonrecursive-glob-match": { @@ -2016,15 +2030,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, "node_modules/cluster-key-slot": { "version": "1.1.2", "license": "Apache-2.0", @@ -2040,9 +2045,9 @@ "license": "MIT" }, "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz", + "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -2360,9 +2365,9 @@ } }, "node_modules/hono": { - "version": "4.13.13", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.13.tgz", - "integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==", + "version": "4.13.23", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.23.tgz", + "integrity": "sha512-OS90dj7dcsftEEWCOef8jRbnHE5lbrOq0hNRqjSyPsOnaGZvvfof1KS05hQNb4kUOCfDq1mG3PmHoX37DMnHQg==", "license": "MIT", "engines": { "node": ">=16.9.0" @@ -2807,42 +2812,21 @@ } }, "node_modules/minimatch": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.3.tgz", - "integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/nonrecursive-glob-match": "^1.0.3", + "@isaacs/nonrecursive-glob-match": "^1.1.0", "brace-expansion": "^5.0.12" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/minizlib": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", - "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", - "license": "MIT", - "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -2921,9 +2905,9 @@ } }, "node_modules/openai": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-7.19.0.tgz", - "integrity": "sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==", + "version": "7.59.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-7.59.0.tgz", + "integrity": "sha512-wPYKJkLPFEdNJ2tThSg4jE1Ptsv4X3u8g8LIvu0Qz/UIhsKeCzl73rl48PtQsDVrJL/ku0liXOsbyd2TsRsPJw==", "license": "Apache-2.0", "engines": { "node": ">=22.0.0" @@ -2932,6 +2916,7 @@ "@aws-sdk/credential-provider-node": ">=3.972.0 <4", "@smithy/hash-node": ">=4.3.0 <5", "@smithy/signature-v4": ">=5.4.0 <6", + "google-auth-library": ">=9.15.1 <12", "undici": ">=5 <9", "ws": "^8.21.0", "zod": "^3.25 || ^4.0" @@ -2946,6 +2931,9 @@ "@smithy/signature-v4": { "optional": true }, + "google-auth-library": { + "optional": true + }, "undici": { "optional": true }, @@ -3409,19 +3397,12 @@ "license": "MIT" }, "node_modules/tar": { - "version": "7.5.22", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", - "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-8.1.1.tgz", + "integrity": "sha512-PKbN6g5KthXDjceiEVoYuwBoa0rZmZL6McGUgGwypU/kS8YEiZdY4ySgvx1y0g/zS4JP9OR5vQMFnfKnf0FyiA==", "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.1.0", - "yallist": "^5.0.0" - }, "engines": { - "node": ">=18" + "node": ">=22" } }, "node_modules/tinybench": { @@ -3513,9 +3494,9 @@ } }, "node_modules/undici": { - "version": "8.12.3", - "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz", - "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==", + "version": "8.12.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz", + "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==", "license": "MIT", "engines": { "node": ">=22.19.0" @@ -3733,9 +3714,9 @@ } }, "node_modules/ws": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz", - "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==", + "version": "8.23.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz", + "integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -3762,15 +3743,6 @@ "node": ">=0.4" } }, - "node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, "node_modules/yaml": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", diff --git a/package.json b/package.json index a53c944..fa13b2b 100644 --- a/package.json +++ b/package.json @@ -28,15 +28,15 @@ "check": "npm run lint && npm run typecheck && npm test" }, "dependencies": { - "@earendil-works/pi-agent-core": "1.5.2", - "@earendil-works/pi-ai": "1.5.2", - "@earendil-works/pi-coding-agent": "1.5.2", - "@hono/node-server": "^2.0.0", + "@earendil-works/pi-agent-core": "1.8.0", + "@earendil-works/pi-ai": "1.8.0", + "@earendil-works/pi-coding-agent": "1.8.0", + "@hono/node-server": "^2.1.11", "@renderinc/sdk": "^1.12.0", "esbuild": "^0.28.2", - "hono": "^4.0.0", + "hono": "^4.13.23", "pg": "^8.23.1", - "tar": "^7.5.22", + "tar": "^8.1.1", "tsx": "^4.19.0", "typebox": "1.3.27", "zod": "^4.6.7" diff --git a/tests/publish.test.ts b/tests/publish.test.ts index 37b220e..571c2c0 100644 --- a/tests/publish.test.ts +++ b/tests/publish.test.ts @@ -446,7 +446,6 @@ describe("publish against a subverted sandbox", () => { cwd: dir, env, encoding: "utf8", - input: "/etc/passwd", }).trim(); run("read-tree", base); const link = execFileSync("git", ["hash-object", "-w", "--stdin"], { diff --git a/tests/sandbox-render.test.ts b/tests/sandbox-render.test.ts index ba0a4d4..737c973 100644 --- a/tests/sandbox-render.test.ts +++ b/tests/sandbox-render.test.ts @@ -1,5 +1,3 @@ -import { Readable } from "node:stream"; -import { pipeline } from "node:stream/promises"; import { SandboxCredentialNotFoundError, type SandboxExecEvent, SandboxSnapshotNotFoundError } from "@renderinc/sdk"; import { list as listTar } from "tar"; import { beforeEach, describe, expect, it, vi } from "vitest"; @@ -16,16 +14,12 @@ import { runnerPayload } from "../app/sandbox/snapshot.js"; async function untar(data: Buffer): Promise> { const files = new Map(); - await pipeline( - Readable.from(data), - listTar({ - onReadEntry: (e) => { - const chunks: Buffer[] = []; - e.on("data", (c: Buffer) => chunks.push(c)); - e.on("end", () => files.set(e.path.replace(/^\.\//, ""), Buffer.concat(chunks).toString("utf8"))); - }, - }), - ); + await listTar({ + input: data, + onEntry: async (entry) => { + files.set(entry.path.replace(/^\.\//, ""), await entry.text()); + }, + }); return files; }