{"_id":"@earendil-works/pi-durable","_rev":"21-aba9afccd2fea892411a529716a5fca1","name":"@earendil-works/pi-durable","dist-tags":{"latest":"1.6.0"},"versions":{"0.0.1":{"name":"@earendil-works/pi-durable","version":"0.0.1","author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.0.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"3c6aade804f90476647c05b9f2eeefa317ddbc85","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.0.1.tgz","fileCount":3,"integrity":"sha512-4q6LMh0+d9kstmTd+l9Tiu4ZOwdOG8ntMZGpE5nlosXXk2QvUbKPjBP2bMqtQHVybOIcItzcFmKg6unQoR9CkA==","signatures":[{"sig":"MEQCIDJ+4/Kpatsys2fR+1y2aM9rtvGEqwtpi84634EhjtfoAiA0CxEyWO1JWH+bN0nX+2GtCCTmEcM7n7IQBEbzNi9Z6A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":808},"main":"./index.js","type":"module","engines":{"node":">=22.19.0"},"exports":"./index.js","_npmUser":{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.15.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.0.1_1789841507336_0.9576843078625452","host":"s3://npm-registry-packages-npm-production"}},"0.86.0":{"name":"@earendil-works/pi-durable","version":"0.86.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.86.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"4fe56a0d74088c5cf9493b375725f2c3e90cdc66","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.86.0.tgz","fileCount":18,"integrity":"sha512-U1Au8veU37QaOUI7SJqOEtKpKohY0iH24F4yL7prtcJ17VqcoKL/3U6c7VnfdQORV4aKpUTjtF1qNkbNUAD2fw==","signatures":[{"sig":"MEYCIQCE0CTCg6x8GshiABR50+DnVPg/rfS1JQTYIi27oEcbWwIhAI8ZEpmcREv0dUeZ4tjEYlZnnCtpT5k5NjOhVjyXPqgA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIBZSy1Z7us4+/66KB9GSzk/BRJNJkCGTMP3yF/FgczmNAiEAmJ7LGywk0x34B/mFfQf+17PQF/Fi2FQIR3hfvK5fIBk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.86.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":254132},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./package.json":"./package.json"},"gitHead":"ecac0a9c4edad3dac5d9f8b40e0c7db7a56471fc","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.86.0","@earendil-works/pi-ai":"^0.86.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.86.0_1789859405009_0.9957195409230868","host":"s3://npm-registry-packages-npm-production"}},"0.86.1":{"name":"@earendil-works/pi-durable","version":"0.86.1","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.86.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"9869066505f8d93939d7b875b3a2e1bfc5b80644","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.86.1.tgz","fileCount":18,"integrity":"sha512-tfpmFhZSVIZsTJb4yvHveNOH2PY459Vl/GDj1XyZzxhvMttX8qJZRWsTZVfBSx5Ek7iqeD/35n/kSCxsMktGxQ==","signatures":[{"sig":"MEQCIGT4ELCaZYk8a9wy7A3c1vMJulT82Db0l4nWMYA5YmPfAiA/y/u9AAUzbZlI3sZsN3R5lyHCE8ctWYWP57Iut0UjYQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDRJ+A3QdtPOWOSa7wndgfRIYrZP6PnUAyDGIu/2gKOrwIgdhtv4iVhbrlT5aViQObgk96CRf3Hw3WR9bcW5GS8Wz8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.86.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":254132},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./package.json":"./package.json"},"gitHead":"13cbf77df2396303013a41646bcfa77b4271ae56","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.86.1","@earendil-works/pi-ai":"^0.86.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.86.1_1789902808835_0.8792277735371539","host":"s3://npm-registry-packages-npm-production"}},"0.87.0":{"name":"@earendil-works/pi-durable","version":"0.87.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.87.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"82d0dbd4ada15ee90236ba412e2c60548a932a88","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.87.0.tgz","fileCount":18,"integrity":"sha512-sKy4qiJXYH8aScQN4wO0D1zCvQlNWQYTQnPM04/a8as3nnAh4eaHqya6TxZbFvEq0fm47dbz8wmMKcG3GyYhcw==","signatures":[{"sig":"MEUCIAHawvB0Z5AlB67WiBdVyufdqeW3zfmZXHnbl48OfWKsAiEA/Ws3GxwrrVbQLESufObvoAS5BbZYSt4RHSuRAKkVKrw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDlDgovN1yuEeaOgVDL203L+x6XFMuxrpKoF7/87e9KNAIgSJUfY4+OPiv3PxctcpKJtlvg402UKy7Mn357w5aZJWo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.87.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":254198},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./package.json":"./package.json"},"gitHead":"16787ad5b2dc748047f314ca1bfe7708f30f54f3","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.87.0","@earendil-works/pi-ai":"^0.87.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.87.0_1790008927403_0.9025373652948843","host":"s3://npm-registry-packages-npm-production"}},"0.87.1":{"name":"@earendil-works/pi-durable","version":"0.87.1","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.87.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"f735c81bc1cd8398cc20bff035a4525d40f66d0b","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.87.1.tgz","fileCount":38,"integrity":"sha512-6FpUkV3yk1PYjzaOjVVCETogiSGWqf6g3ZorHOqU6UQ2QMMAYbZNchVxwmtfZVFh2r3tk3DSJoMV8Z8aK/mCyA==","signatures":[{"sig":"MEUCIBbfvKiLJj5ACVvCiIDXptc19ZYc7N067ohlFuOUSzQXAiEAiDNnC7lk73OLJ3WpSCyErNOaKWNjt56box7sQ1bdtXY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFO9q+cTqqrn3F3sZ2YhxfkM4CpaBQCoXQl5aubQs1ENAiB5nqNKluIFhSkcHXlH4lTRhEeDFSNRiCUC+/Wo85zLUw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.87.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":475735},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./package.json":"./package.json","./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts"}},"gitHead":"f07218c4d4bbc12bef056a7058c3dd49dfe41abe","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.87.1","@earendil-works/pi-ai":"^0.87.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.87.1_1790105927839_0.8162236955322673","host":"s3://npm-registry-packages-npm-production"}},"0.99.0":{"name":"@earendil-works/pi-durable","version":"0.99.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.99.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"969e35ef7cfcedbf9b489b6b6a035ae6996a0d56","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.99.0.tgz","fileCount":174,"integrity":"sha512-zyBboP6JFDu66SCHtaT89B5EDZl+N7xDZ72Uf/tCTIHfhfVCAYr3g19zJU2D/j8tgqO+/ZwsMisZAMefpVfndg==","signatures":[{"sig":"MEUCIQDhiEtB1VGHkjcoBLlVlNL0SjTcMPF47+zYKUna2euOtwIgRHBXRBWOu0QR5IWraqHDlKpGsXO84ilw0d4aL6ZfGzU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGeAQdov2sdu+jKS0dqXlBtBYplhmB/mYJrSULm8/V3IAiEAvjEXZPrTPLC61e18AX9CAXpW7kCJmg+iH8rV9LtmT/U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.99.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1712091},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts"}},"gitHead":"4b060d3a98618019adb9985d517516c8e99a2bbe","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.99.0","@earendil-works/pi-ai":"^0.99.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.99.0_1790702247396_0.4791011032405834","host":"s3://npm-registry-packages-npm-production"}},"0.99.1":{"name":"@earendil-works/pi-durable","version":"0.99.1","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.99.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"6423d51dce64b292ddac75df813294f7d51a3f36","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.99.1.tgz","fileCount":174,"integrity":"sha512-SpUP6DM3jdpo0f5y+SfTWXk0R4pDKMXoSwiGR/P7k4+B37Ojo4BAR8xLvo8PS2cOgW3drKyosyl4gd/yWEBzhA==","signatures":[{"sig":"MEUCIQC15EgLCwZoDQZ1pfcKcu2Bek8bBbfRhKVRxbgX7zyUtAIgQhvGtYy9oR0qVuoVt4tkgxWuzueWsDNhbdIjamW8jig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHhn5+GVr5R46aJLOXqsj26BaLBeHKcjH9i2wi2CHEF7AiEA67kRFDbHWbL0mrLB1DO2urv/yBne6yoQ1QXLkbobAOs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.99.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1712091},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts"}},"gitHead":"d86654abb8862e201933517d6f1fce9f88dd117f","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"@earendil-works/chord":"^0.99.1","@earendil-works/pi-ai":"^0.99.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.99.1_1790706026585_0.16305825157723675","host":"s3://npm-registry-packages-npm-production"}},"0.99.2":{"name":"@earendil-works/pi-durable","version":"0.99.2","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@0.99.2","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"a3a85cfb8b6ec40c131ef1bc5ecdaea60598b9ba","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-0.99.2.tgz","fileCount":238,"integrity":"sha512-ZBHK0JDoUoaNMB3V/UK15v4tRnAg8+ODqTK8d6ZoHlflpicgfDNvNbJIcq6RxeUl0l60Qgx8McN4MDFZJICWRQ==","signatures":[{"sig":"MEUCIFk2OeAR6Tx152gD/Mf4nE9i05ogcj6ZKjyWOisqcYG2AiEA6gwFGqG91MQWN9BKwtL93EOR6TvVCCr+xarJ39wms/I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBMFgtxKbEU+/xC1w3IusBvBj2lC60AkZxIb5NO56xehAiBn/9tMRFl/92gMDpQViZQYEf5mAHWWlHOoVpKOlHHOYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@0.99.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2424483},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts"}},"gitHead":"005af57d88ee23b33778f343a9595b32e67ff788","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.2","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^0.99.2","@earendil-works/pi-ai":"^0.99.2"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_0.99.2_1790796351687_0.5807977870375822","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@earendil-works/pi-durable","version":"1.0.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.0.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"82596ad7fc3d33441ffb67ded915e3c7fa4e0e49","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.0.0.tgz","fileCount":243,"integrity":"sha512-PvjCIdy5jRsBoJDRpCCI0RfwBax2ZPnMT5aw/tRQxcQOqbGGj2mq1z0WuVxoyimWWi+WYSYT2VySg3RO1qzySw==","signatures":[{"sig":"MEYCIQDM7c/39TozbzFfhfIsIH7VHC8humsRGiF2r+5eHE3tkwIhAMarkwIC8mnJbvo4zr1xpJ3WACN0IvJ++wEhgxembEsi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAlTwYquKFDXPYgdlg2Z6sdDaR+1H/3W++fU0CFEkm9RAiEA1EVW3wpx2XRIW4ZeIo9WS+4E59aMGjmrzdyNTBUJwZw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2176976},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"}},"gitHead":"a13d35a742c6ef8462812a28fbe1d8c8b7431c32","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.0.0","@earendil-works/pi-ai":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.0.0_1790881864657_0.4426959559813941","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@earendil-works/pi-durable","version":"1.0.1","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.0.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"4af5c9b2c8938806392cd94876f8bf769f48c790","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.0.1.tgz","fileCount":243,"integrity":"sha512-M+H+lhUhOtfZT1STEdb+X7Bki04USsm+0mNOt5Xn30kr0eQO73d3//WmQphFkc7+cAMw1Kgu7Xki8plgZw03OQ==","signatures":[{"sig":"MEUCIFAZf00w9hPOxHl32UNEd/8kZ97FBPujRwu1+A5JAthiAiEAzvJ+703JuvRMmt+29ZnXa7v/bzeJevgIcJ1920ufOHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHdWfYInoXkTAX0KopjN22YmYfeAoFerAiEBpNi2DDM5AiEA4+KGi8IEbJY4XoDgkOcbLVVrqlONRsJSgFfILg8H+fI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2177001},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"}},"gitHead":"a7229ddc21810d6245105978033b7df645ecc2f7","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.0.1","@earendil-works/pi-ai":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.0.1_1791030621780_0.9546334570539774","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@earendil-works/pi-durable","version":"1.0.2","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.0.2","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"337efe219dee334871fb9710ec2e31740dfb5878","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.0.2.tgz","fileCount":247,"integrity":"sha512-pDh8eMSSFIVOTh0H53KhtjaS/XFrulEVREN8wnY8vtbYY0srioZ2impajvkXwoZcG6pRgbPz/WVatZLyk5TIbg==","signatures":[{"sig":"MEYCIQC9h02DB6WM6Gx9oIbhjwQhIQPwvY6Ym3C09clZLITIsgIhANKJa6UZaBvTu4tooob+z37hy1j3s/pkY+NnVYijzS4Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGK1tDfUcMi0m+t5H5MDDh96zxp9etVJsQ7G5fBJ6TZ4AiEA0MiYB+uKpYkQLzAGxvZqWRSFBanzs6VKP5r5WMuMa48=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2184462},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"}},"gitHead":"cd32f7725fdbddbaecdff5b1e68491563394e0ca","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.0.2","@earendil-works/pi-ai":"^1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.0.2_1791075128483_0.37369617367288255","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@earendil-works/pi-durable","version":"1.0.3","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.0.3","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"3f41b2adabaa50e16fd089dbc63fa019bdce3d91","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.0.3.tgz","fileCount":263,"integrity":"sha512-ARA+YQcqiQJz2pqxLL2ZA4ayZoulSDu1cMCMIYiKBnByTryGVfBhkEv6pT+QOP+3NgXzs0zPi3FpvyuSJ9harg==","signatures":[{"sig":"MEYCIQDRLBrCBEtHXHRhgRGiy2fqIe2VPKx2AcxDL9NgflRwKwIhAJ6M+5DibD78kzHVbTdK/tylPG6rA+fUkIvS4XvCRvd8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHdn7OE4wnxriCL+tSqd8slhwYOcF6eLnyd4WRxcYtQxAiEA1AudARmMOQHlxUQqk6TZjlRrxWXJVDvdIZaqJ2CKc7I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2419587},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"}},"gitHead":"d78dc83d633229d12f8b79631384c4c2717c399f","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.0.3","@earendil-works/pi-ai":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.0.3_1791189182501_0.6115028737789001","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@earendil-works/pi-durable","version":"1.0.4","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.0.4","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"bcd355280351d29c49846a7b142292d931d2ce0a","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.0.4.tgz","fileCount":263,"integrity":"sha512-i22unyhavxrTF/KS/JcBOKprQRgepufOIztnqBKZXJCWbEHsXDzcINtjmmBSbFB/3S+4FWIl3eJ5FMbRe33Ybg==","signatures":[{"sig":"MEUCIQDyS5RVA1ZFcWQeJYasqt3VMCsY4Hr3luRP+euq1Mpf1AIgRYphs/9iSFzrRuWua8HRg5IC8aARS1+w3fjdjLxSXIE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIF7y519zwyqtVpBfMimEKvwcg9Q/qQV1B+CUEAMQA5NLAiEAzUcJKLn7tTmwbEsFKrzmZ7RpJzC/mAkGWBvbO/W3Km4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2448283},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"}},"gitHead":"7c10bd4337495ee613f2224843ecdf349b80d1df","scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.0.4","@earendil-works/pi-ai":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.0.4_1791236791156_0.41041221265198646","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@earendil-works/pi-durable","version":"1.1.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.1.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"17592b5975cffc39a82bc91dda51de5d06e28548","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.1.0.tgz","fileCount":271,"integrity":"sha512-NtuB3RY24vQ+0/rWYpeHupyFWBfXuKq17to3VMYUYqfD/uuGnz6F6UTPBEm51VSxxA6LZwRcDwLX2LtRehnIgQ==","signatures":[{"sig":"MEQCIEVI60vrF/p3nHFgQxt1Jl1dZM1PpzjGvHnkneDJ0BexAiB7sYKPFGv331FgTuD2X8WpdKKUjURMnLym1DjXO2GJDA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD7kl6c06Thl47TiJUBELmKuADCWs+d5AHD2CgL2qu4fgIhALS630IBWnMO/M3R21ObrFGP9GuGy1mxtvpDekGbzqcP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2543542},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-gBWTz8/tarballs/earendil-works-pi-durable-1.1.0-36db81dd1636.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-gBWTz8/tarballs/earendil-works-pi-durable-1.1.0-36db81dd1636.tgz","_integrity":"sha512-NtuB3RY24vQ+0/rWYpeHupyFWBfXuKq17to3VMYUYqfD/uuGnz6F6UTPBEm51VSxxA6LZwRcDwLX2LtRehnIgQ==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.1.0","@earendil-works/pi-ai":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.1.0_1791411038576_0.6663936945092048","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@earendil-works/pi-durable","version":"1.2.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.2.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"bd73bc51f56955706a53c64e51bba7c94a0705bc","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.2.0.tgz","fileCount":327,"integrity":"sha512-2kDyK7HVCTcxf3CTHkDR0rRGCUfIpoZr76fC6n/KZDu7hkDWR62anEujIkJ+8sKjtNpEM+zyKW3bi2NIEUyiCw==","signatures":[{"sig":"MEUCIQD/zDf6PYxGRC/tgrZgcnju2YLR1qfPYGThJeNDHupeewIgce7MAKikhXI70NScBjgpg6Yo91hg1ElrLUpi8XQwlDM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDvM7TOzevLMaom4rqGTRSGk1AYqeDJolIxqCa+mR84hAIhAPsftugdfd0yKUCkGoqNdc90txN+9GnOSKAdFxpRudzc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3211103},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-Jw8Saj/tarballs/earendil-works-pi-durable-1.2.0-da40f22bb1d5.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-Jw8Saj/tarballs/earendil-works-pi-durable-1.2.0-da40f22bb1d5.tgz","_integrity":"sha512-2kDyK7HVCTcxf3CTHkDR0rRGCUfIpoZr76fC6n/KZDu7hkDWR62anEujIkJ+8sKjtNpEM+zyKW3bi2NIEUyiCw==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"^1.2.0","@earendil-works/pi-ai":"^1.2.0","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-codemode":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.2.0_1791846037001_0.9706975752016278","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@earendil-works/pi-durable","version":"1.3.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.3.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"e0d25c2b885d1df15f29fa88f51bf07c36a881d8","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.3.0.tgz","fileCount":327,"integrity":"sha512-2aD0xead1LH0BBwUBxex28in/PpUJEwyaEiW/nLoTFUcZ/lDYEl6LHX6mGZKJG8tUHzERwJyysDgy0ruidt84w==","signatures":[{"sig":"MEUCIEsJWxB4ulwfhrbAiXC52yBXkgqLAewozbaVmDjN6Xp5AiEAjRbRu2BAM59SioUav731VFkflFoII0v0uZyGRE7822I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC+ABBfu2eZITiU0DnKPSy345Z3xTi7aWKlwao/x4lqywIgQERbYGro1bPCBb/8U+r+Jh+sADHC6aWthv7KS+a64wk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3196385},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-O3jHRV/tarballs/earendil-works-pi-durable-1.3.0-d9a0f4c5e69d.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-O3jHRV/tarballs/earendil-works-pi-durable-1.3.0-d9a0f4c5e69d.tgz","_integrity":"sha512-2aD0xead1LH0BBwUBxex28in/PpUJEwyaEiW/nLoTFUcZ/lDYEl6LHX6mGZKJG8tUHzERwJyysDgy0ruidt84w==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"1.3.0","@earendil-works/pi-ai":"1.3.0","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-codemode":"1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","vitest":"4.1.11"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.3.0_1792091615407_0.20042671326752948","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@earendil-works/pi-durable","version":"1.4.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.4.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"4c41ed84c03a964e8e15645665ee26b2d96ccf74","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.4.0.tgz","fileCount":339,"integrity":"sha512-EtIyXH1MBSXdJSkodmy+CYXuwfve3gPrD4GNCZ0XmuRWLPupwRlNQ7fdaXjRcLoKb6SWkT/yEzK+sMmrqvYK+Q==","signatures":[{"sig":"MEUCIQDpyzPGZA1Rf6dfJ2B92ZKltDoBWEB2xpZPl9+z1Q5ipAIgHIsCzFdvuhUehSqXzX3BI1HUC72sjkVQkh2RkgXGXys=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCFVE6RGNWb9wACYiQDa80hPCliuSsSJzcwOqSWYYXLhAIhAP5dDycDViZPl2PG+dc1mSjxig8u5JBv/cExp3GYPGVA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3516915},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-e5Jxrf/tarballs/earendil-works-pi-durable-1.4.0-12d2325c7d4c.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/indexeddb":{"types":"./dist/storage/indexeddb.d.ts","import":"./dist/storage/indexeddb.js","source":"./src/storage/indexeddb.ts","default":"./dist/storage/indexeddb.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run && npm run test:workers","build":"tsc -p tsconfig.build.json","clean":"shx rm -rf dist","test:workers":"vitest --run --config test-workers/vitest.config.ts","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-e5Jxrf/tarballs/earendil-works-pi-durable-1.4.0-12d2325c7d4c.tgz","_integrity":"sha512-EtIyXH1MBSXdJSkodmy+CYXuwfve3gPrD4GNCZ0XmuRWLPupwRlNQ7fdaXjRcLoKb6SWkT/yEzK+sMmrqvYK+Q==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.3","dependencies":{"diff":"8.0.4","typebox":"1.3.27","@earendil-works/chord":"1.4.0","@earendil-works/pi-ai":"1.4.0","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-codemode":"1.4.0","@earendil-works/pi-telemetry":"1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.3.4","vitest":"4.1.11","fake-indexeddb":"6.2.6","@cloudflare/vitest-plugin":"1.4.4"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.4.0_1792622649191_0.8730241590762984","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@earendil-works/pi-durable","version":"1.5.0","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.5.0","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"464e600ef81152dc3788e0860d273bd6c2704d11","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.5.0.tgz","fileCount":387,"integrity":"sha512-xeBP2vIo5NvsCMQ4Y/V+Z164xQEi9JWiBWHdjn4Z15EnFqV3c0FxJAX26FqyyyintrYyk+Enre94GNcvRlBA5g==","signatures":[{"sig":"MEQCIC13wI4x8tmnX4Ta/erQ61eO/5t17GwXKIYnU5kP0dI3AiBh9stfH1X+whJTbTi4opUZJUZILUwsm+Wlld9M7JS8RA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIB6MgfKY5gthJ8jG726yRonakgvhmmagVVYvsRYsAS6sAiEAtKo8wFgHXb/e23hme7Bp7ncPqw4D/dHzHEnNvMcWXiQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4398465},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-SFwuIz/tarballs/earendil-works-pi-durable-1.5.0-c5e04fdaf228.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/store":{"types":"./dist/storage/store/index.d.ts","import":"./dist/storage/store/index.js","source":"./src/storage/store/index.ts","default":"./dist/storage/store/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/indexeddb":{"types":"./dist/storage/indexeddb.d.ts","import":"./dist/storage/indexeddb.js","source":"./src/storage/indexeddb.ts","default":"./dist/storage/indexeddb.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run && npm run test:store && npm run test:workers","build":"tsc -p tsconfig.build.json","clean":"node ../../scripts/package-files.mjs clean dist","test:store":"vitest --run --config vitest.store.config.ts","test:workers":"vitest --run --config test-workers/vitest.config.ts","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts","bench:conversation-view":"node --conditions=source --experimental-strip-types --expose-gc test/conversation-view-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-SFwuIz/tarballs/earendil-works-pi-durable-1.5.0-c5e04fdaf228.tgz","_integrity":"sha512-xeBP2vIo5NvsCMQ4Y/V+Z164xQEi9JWiBWHdjn4Z15EnFqV3c0FxJAX26FqyyyintrYyk+Enre94GNcvRlBA5g==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.4","dependencies":{"diff":"8.0.4","@earendil-works/chord":"1.5.0","@earendil-works/pi-ai":"1.5.0","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-schema":"1.5.0","@earendil-works/pi-codemode":"1.5.0","@earendil-works/pi-telemetry":"1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.12","fake-indexeddb":"6.2.6","@cloudflare/vitest-plugin":"1.4.10"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.5.0_1793617119433_0.7350662092609723","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@earendil-works/pi-durable","version":"1.5.1","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.5.1","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"c5c003d4a4a704d99339060ad68645b0a98761dc","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.5.1.tgz","fileCount":399,"integrity":"sha512-kepvz2Fh0JPtvD/vUXp0gvnBHXk3VT/CN2jbsA9Ejd6SIEcMTm2DQQQzLJeFxMFvn6Lfs9BvropI0c/F8U2jmA==","signatures":[{"sig":"MEQCIFkMiP/T6XEr9kqNkpdGCF5oa49pmULFRnKIR3ljTGWYAiAvSF/J6dvFyUSsLZDJ4rZoFAhih4ECHtTxYvh6DwiXzw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAyyNwNbjs8UJ2Qn/to09EMx1S2Uu0Ku9wcKvuIm8rgbAiAup9PmQFPOegpJa1nufpc/cH4ytC3zc69cmlaVJXjYpw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4476765},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-XfVuNb/tarballs/earendil-works-pi-durable-1.5.1-91ea6fcf6161.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/store":{"types":"./dist/storage/store/index.d.ts","import":"./dist/storage/store/index.js","source":"./src/storage/store/index.ts","default":"./dist/storage/store/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/indexeddb":{"types":"./dist/storage/indexeddb.d.ts","import":"./dist/storage/indexeddb.js","source":"./src/storage/indexeddb.ts","default":"./dist/storage/indexeddb.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run && npm run test:store && npm run test:workers","build":"tsc -p tsconfig.build.json","clean":"node ../../scripts/package-files.mjs clean dist","test:store":"vitest --run --config vitest.store.config.ts","test:workers":"vitest --run --config test-workers/vitest.config.ts","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts","bench:conversation-view":"node --conditions=source --experimental-strip-types --expose-gc test/conversation-view-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-XfVuNb/tarballs/earendil-works-pi-durable-1.5.1-91ea6fcf6161.tgz","_integrity":"sha512-kepvz2Fh0JPtvD/vUXp0gvnBHXk3VT/CN2jbsA9Ejd6SIEcMTm2DQQQzLJeFxMFvn6Lfs9BvropI0c/F8U2jmA==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.4","dependencies":{"diff":"8.0.4","@earendil-works/chord":"1.5.1","@earendil-works/pi-ai":"1.5.1","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-schema":"1.5.1","@earendil-works/pi-codemode":"1.5.1","@earendil-works/pi-telemetry":"1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.12","fake-indexeddb":"6.2.6","@cloudflare/vitest-plugin":"1.4.10"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.5.1_1794267768833_0.19433977413698178","host":"s3://npm-registry-packages-npm-production"}},"1.5.2":{"name":"@earendil-works/pi-durable","version":"1.5.2","keywords":["durable-execution","agents","conversations","tasks"],"author":{"name":"Earendil Works"},"license":"MIT","_id":"@earendil-works/pi-durable@1.5.2","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"homepage":"https://github.com/earendil-works/pi#readme","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"ba2029d62e2a4a31cf30a0a9e45b6fb35e58b099","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.5.2.tgz","fileCount":399,"integrity":"sha512-zDB3anbI/yD0IG+VVY+g5tU+c5XOVqQAFwLkXRMiqZb4p/afWro0voZtLNoRAWcDA2r73kvmH6kKin9Ka8l55g==","signatures":[{"sig":"MEUCIQC3DO0G5OJIAYISMRhFZKPj1Hv6u7++TW+RFMX2CYpK+wIgLPmswlNAcW5Ds0QitsxxkWNcMyevgdpm/MvyEpsSyO8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDe99JFZWl9iXDErXYxuoZQhZFVE33OpETgCjMkcc5T7QIgI5kYSUOvFnmHJ/xZ0IwPkV5PKGDeg7WsIgJi/fJQgbU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4476790},"main":"./dist/index.js","type":"module","_from":"file:/tmp/pi-package-artifacts-2iQbyc/tarballs/earendil-works-pi-durable-1.5.2-cc30776a76c8.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/store":{"types":"./dist/storage/store/index.d.ts","import":"./dist/storage/store/index.js","source":"./src/storage/store/index.ts","default":"./dist/storage/store/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/indexeddb":{"types":"./dist/storage/indexeddb.d.ts","import":"./dist/storage/indexeddb.js","source":"./src/storage/indexeddb.ts","default":"./dist/storage/indexeddb.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run && npm run test:store && npm run test:workers","build":"tsc -p tsconfig.build.json","clean":"node ../../scripts/package-files.mjs clean dist","test:store":"vitest --run --config vitest.store.config.ts","test:workers":"vitest --run --config test-workers/vitest.config.ts","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts","bench:conversation-view":"node --conditions=source --experimental-strip-types --expose-gc test/conversation-view-bench.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"_resolved":"/tmp/pi-package-artifacts-2iQbyc/tarballs/earendil-works-pi-durable-1.5.2-cc30776a76c8.tgz","_integrity":"sha512-zDB3anbI/yD0IG+VVY+g5tU+c5XOVqQAFwLkXRMiqZb4p/afWro0voZtLNoRAWcDA2r73kvmH6kKin9Ka8l55g==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"sideEffects":false,"_nodeVersion":"22.23.4","dependencies":{"diff":"8.0.4","@earendil-works/chord":"1.5.2","@earendil-works/pi-ai":"1.5.2","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-schema":"1.5.2","@earendil-works/pi-codemode":"1.5.2","@earendil-works/pi-telemetry":"1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.12","fake-indexeddb":"6.2.6","@cloudflare/vitest-plugin":"1.4.10"},"_npmOperationalInternal":{"tmp":"tmp/pi-durable_1.5.2_1794313318136_0.9131884752001699","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"_id":"@earendil-works/pi-durable@1.6.0","bugs":{"url":"https://github.com/earendil-works/pi/issues"},"dist":{"shasum":"a452b90dc1713ba560805c2599d7113dfdc9a0b2","tarball":"https://registry.npmjs.org/@earendil-works/pi-durable/-/pi-durable-1.6.0.tgz","fileCount":411,"integrity":"sha512-nyPjInj/7ZjLEUCDMS7oNGRj1ynftOCVqXilWRBhIuT/xoRHrPy5yFNle/64hvs3F1rukMZ7Ar/4reA7auvUWQ==","signatures":[{"sig":"MEUCICdhJtZcr6FCMYTnZyFN7Z3lbUT9TGucC+PbPH/qGp86AiEAitEuAaLQLwerZhbdksDtrizrY5+/7pazOA9HDpOp0sw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGAWNBGwdezRF5IPWM5AT6jsdgwh1dRzqUPEAdBI2uAyAiEAnl8cE5qU2cFcMLUIgdFwnV4J8QSM/AmDLkEDklHRmxs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@earendil-works%2fpi-durable@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4716565},"main":"./dist/index.js","name":"@earendil-works/pi-durable","type":"module","_from":"file:/tmp/pi-package-artifacts-PfFgBq/tarballs/earendil-works-pi-durable-1.6.0-9f23e32278ff.tgz","types":"./dist/index.d.ts","author":{"name":"Earendil Works"},"engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./env":{"types":"./dist/env/index.d.ts","import":"./dist/env/index.js","source":"./src/env/index.ts","default":"./dist/env/index.js"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","source":"./src/tools/index.ts","default":"./dist/tools/index.js"},"./images":{"types":"./dist/images/index.d.ts","import":"./dist/images/index.js","source":"./src/images/index.ts","default":"./dist/images/index.js"},"./testing":{"types":"./dist/testing/index.d.ts","import":"./dist/testing/index.js","source":"./src/testing/index.ts","default":"./dist/testing/index.js"},"./codemode":{"types":"./dist/codemode/index.d.ts","import":"./dist/codemode/index.js","source":"./src/codemode/index.ts","default":"./dist/codemode/index.js"},"./env/node":{"types":"./dist/env/node.d.ts","import":"./dist/env/node.js","source":"./src/env/node.ts","default":"./dist/env/node.js"},"./images/fit":{"types":"./dist/images/fit.d.ts","import":"./dist/images/fit.js","source":"./src/images/fit.ts","default":"./dist/images/fit.js"},"./images/node":{"types":"./dist/images/node.d.ts","import":"./dist/images/node.js","source":"./src/images/node.ts","default":"./dist/images/node.js"},"./tool-search":{"types":"./dist/tool-search/index.d.ts","import":"./dist/tool-search/index.js","source":"./src/tool-search/index.ts","default":"./dist/tool-search/index.js"},"./package.json":"./package.json","./storage/jsonl":{"types":"./dist/storage/jsonl/index.d.ts","import":"./dist/storage/jsonl/index.js","source":"./src/storage/jsonl/index.ts","default":"./dist/storage/jsonl/index.js"},"./storage/store":{"types":"./dist/storage/store/index.d.ts","import":"./dist/storage/store/index.js","source":"./src/storage/store/index.ts","default":"./dist/storage/store/index.js"},"./storage/memory":{"types":"./dist/storage/memory.d.ts","import":"./dist/storage/memory.js","source":"./src/storage/memory.ts","default":"./dist/storage/memory.js"},"./storage/sqlite":{"types":"./dist/storage/sqlite/index.d.ts","import":"./dist/storage/sqlite/index.js","source":"./src/storage/sqlite/index.ts","default":"./dist/storage/sqlite/index.js"},"./images/cloudflare":{"types":"./dist/images/cloudflare.d.ts","import":"./dist/images/cloudflare.js","source":"./src/images/cloudflare.ts","default":"./dist/images/cloudflare.js"},"./storage/indexeddb":{"types":"./dist/storage/indexeddb.d.ts","import":"./dist/storage/indexeddb.js","source":"./src/storage/indexeddb.ts","default":"./dist/storage/indexeddb.js"},"./storage/jsonl/node":{"types":"./dist/storage/jsonl/node.d.ts","import":"./dist/storage/jsonl/node.js","source":"./src/storage/jsonl/node.ts","default":"./dist/storage/jsonl/node.js"},"./storage/sqlite/node":{"types":"./dist/storage/sqlite/node.d.ts","import":"./dist/storage/sqlite/node.js","source":"./src/storage/sqlite/node.ts","default":"./dist/storage/sqlite/node.js"},"./storage/sqlite/cloudflare":{"types":"./dist/storage/sqlite/cloudflare.d.ts","import":"./dist/storage/sqlite/cloudflare.js","source":"./src/storage/sqlite/cloudflare.ts","default":"./dist/storage/sqlite/cloudflare.js"}},"license":"MIT","scripts":{"test":"vitest --run && PI_DURABLE_DOCUMENT_RETENTION_MS=0 vitest --run && npm run test:store && npm run test:workers","build":"tsc -p tsconfig.build.json","clean":"node ../../scripts/package-files.mjs clean dist","test:store":"vitest --run --config vitest.store.config.ts","test:workers":"vitest --run --config test-workers/vitest.config.ts","bench:storage":"vitest bench --config vitest.benchmark.config.ts","bench:codemode":"node --conditions=source --experimental-strip-types test/codemode-bench.ts","prepublishOnly":"npm run clean && npm run build","bench:tool-output":"node --conditions=source --experimental-strip-types --expose-gc test/tool-output-bench.ts","bench:nested-tools":"node --conditions=source --experimental-strip-types --expose-gc test/nested-tools-bench.ts","bench:nested-images":"node --conditions=source --experimental-strip-types --expose-gc test/nested-images-bench.ts","bench:document-cache":"node --conditions=source --experimental-strip-types test/session-document-cache-bench.ts","bench:storage:memory":"node --conditions=source --experimental-strip-types test/storage-memory.ts","bench:document-append":"node --conditions=source --experimental-strip-types test/document-append-bench.ts","bench:scheduler-fanout":"node --conditions=source --experimental-strip-types test/scheduler-fanout-bench.ts","bench:scheduler-memory":"node --conditions=source --experimental-strip-types test/scheduler-memory-bench.ts","bench:conversation-view":"node --conditions=source --experimental-strip-types --expose-gc test/conversation-view-bench.ts"},"version":"1.6.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7262d628-5be1-488f-9f3c-2baf1b6e85fb"}},"homepage":"https://github.com/earendil-works/pi#readme","keywords":["durable-execution","agents","conversations","tasks"],"_resolved":"/tmp/pi-package-artifacts-PfFgBq/tarballs/earendil-works-pi-durable-1.6.0-9f23e32278ff.tgz","_integrity":"sha512-nyPjInj/7ZjLEUCDMS7oNGRj1ynftOCVqXilWRBhIuT/xoRHrPy5yFNle/64hvs3F1rukMZ7Ar/4reA7auvUWQ==","repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"_npmVersion":"11.16.0","description":"Durable conversation, task, and document runtime for Pi","directories":{},"maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"sideEffects":false,"_nodeVersion":"22.23.4","dependencies":{"diff":"8.0.4","@earendil-works/chord":"1.6.0","@earendil-works/pi-ai":"1.6.0","@silvia-odwyer/photon":"0.3.3","@earendil-works/pi-schema":"1.6.0","@earendil-works/pi-codemode":"1.6.0","@earendil-works/pi-telemetry":"1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"4.1.12","fake-indexeddb":"6.2.6","@cloudflare/vitest-plugin":"1.4.10"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-durable_1.6.0_1795172717288_0.9980710495488914"}}},"time":{"created":"2026-09-19T18:11:47.174Z","modified":"2026-11-20T11:05:17.851Z","0.0.1":"2026-09-19T18:11:47.458Z","0.86.0":"2026-09-19T23:10:05.093Z","0.86.1":"2026-09-20T11:13:28.923Z","0.87.0":"2026-09-21T16:42:07.517Z","0.87.1":"2026-09-22T19:38:47.943Z","0.99.0":"2026-09-29T17:17:27.501Z","0.99.1":"2026-09-29T18:20:26.688Z","0.99.2":"2026-09-30T19:25:51.800Z","1.0.0":"2026-10-01T19:11:04.822Z","1.0.1":"2026-10-03T12:30:21.930Z","1.0.2":"2026-10-04T00:52:08.576Z","1.0.3":"2026-10-05T08:33:02.589Z","1.0.4":"2026-10-05T21:46:31.297Z","1.1.0":"2026-10-07T22:10:38.752Z","1.2.0":"2026-10-12T23:00:37.181Z","1.3.0":"2026-10-15T19:13:35.556Z","1.4.0":"2026-10-21T22:44:09.320Z","1.5.0":"2026-11-02T10:58:39.550Z","1.5.1":"2026-11-09T23:42:48.943Z","1.5.2":"2026-11-10T12:21:58.246Z","1.6.0":"2026-11-20T11:05:17.451Z"},"bugs":{"url":"https://github.com/earendil-works/pi/issues"},"author":{"name":"Earendil Works"},"license":"MIT","homepage":"https://github.com/earendil-works/pi#readme","keywords":["durable-execution","agents","conversations","tasks"],"repository":{"url":"git+https://github.com/earendil-works/pi.git","type":"git","directory":"packages/durable"},"description":"Durable conversation, task, and document runtime for Pi","maintainers":[{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"badlogic","email":"mario@badlogicgames.com"},{"name":"rwachtler","email":"r.wachtler@outlook.com"}],"readme":"# @earendil-works/pi-durable\n\n> **Experimental.** The API changes without notice between releases.\n\nA durable agent harness. Conversations, model turns, tool calls, and your own state are committed to storage before anything is shown. If the process dies mid-turn, reopening the storage picks the work up where it stopped; a model request it died during counts as a failed attempt and is retried, so a request that keeps killing the process ends (see [Persist and Resume](#persist-and-resume)).\n\nBuilt on [`@earendil-works/pi-ai`](../ai/README.md) for model access and `@earendil-works/chord` for document state.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Concepts](#concepts)\n- [Persist and Resume](#persist-and-resume)\n- [Extensions](#extensions)\n- [Tools](#tools)\n- [Code Mode](#code-mode)\n- [System Prompt](#system-prompt)\n- [Per-Conversation Agent](#per-conversation-agent)\n- [Settings](#settings)\n- [Environment](#environment)\n- [Reload](#reload)\n- [Watching a Conversation](#watching-a-conversation)\n- [Busy Conversations](#busy-conversations)\n- [Reset and Handoff](#reset-and-handoff)\n- [Compaction](#compaction)\n- [Agent Events (Experimental)](#agent-events-experimental)\n- [Hooks](#hooks)\n- [More Conversations and Forks](#more-conversations-and-forks)\n- [Abort and Subagents](#abort-and-subagents)\n- [Child Tasks](#child-tasks)\n- [Task Graph](#task-graph)\n- [Your Own State](#your-own-state)\n- [Usage and Cost](#usage-and-cost)\n- [Storage](#storage)\n- [Errors](#errors)\n- [Examples](#examples)\n- [Design Documents](#design-documents)\n\n## Installation\n\n```bash\nnpm install @earendil-works/pi-durable @earendil-works/pi-ai @earendil-works/chord\n```\n\n## Quick Start\n\n```typescript\nimport { BACKGROUND_CONTEXT } from \"@earendil-works/chord/context\";\nimport { createModels } from \"@earendil-works/pi-ai/models\";\nimport { openaiProvider } from \"@earendil-works/pi-ai/providers/openai\";\nimport { AssistantEntry, createRegistry, Harness, MemoryStorage } from \"@earendil-works/pi-durable\";\n\nconst context = BACKGROUND_CONTEXT;\n\nconst models = createModels();\nmodels.setProvider(openaiProvider()); // reads OPENAI_API_KEY\n\nconst harness = await Harness.open(new MemoryStorage(), { models, registry: createRegistry() }, context);\nconst root = await harness.root(context, { agent: { model: { provider: \"openai\", modelId: \"gpt-6-sol\" } } });\n\nconst submission = await root.submit({ type: \"input\", content: \"What is the capital of France?\" }, context);\nconst settled = await submission.wait(context);\nif (settled.status === \"done\" && settled.type === \"input\") {\n\tconst answer = await root.commit((tx) => tx.entry(AssistantEntry, settled.answer), context);\n\tconsole.log(answer?.model?.[0]);\n}\nawait harness.close(context);\n```\n\nWhat happened:\n\n- `Harness.open()` opens a Session over a storage backend. `MemoryStorage` keeps everything in memory.\n- `root()` returns the root conversation, creating it on first use with the given agent choices. A conversation is a transcript of immutable entries.\n- `submit()` durably admits your input and returns a `Submission`. A built-in generation task calls the model and appends the answer.\n- `wait()` resolves once the input is answered (`done`) or has failed (`unanswered`, with a reason).\n\nEvery async call takes a Chord `Context`, which carries cancellation and its current `TelemetrySpan`. `BACKGROUND_CONTEXT` never cancels and uses a NOOP span. The Harness owns the root adapter; adapters are never stored in a `Context`. Cancelling a wait only cancels that wait, never the work.\n\n`HarnessOptions.identity` sets how model requests identify the app to providers (a pi-ai `ClientIdentity`), merged over `DEFAULT_HARNESS_IDENTITY` (`{ attribution: PI_ATTRIBUTION }`: OpenRouter, NVIDIA NIM, and OpenCode attribution headers name pi). It applies to generation, compaction, hooks, and tools, over the identity the host's `Models` was created with. Pass your app's attribution, for example `{ attribution: { name: \"my-app\", url: \"https://my-app.example\" } }`, or `{ attribution: null }` to send none.\n\n`HarnessOptions.telemetry` accepts a host-owned `TelemetryContext` from `@earendil-works/pi-telemetry`, with optional `propagation` and `metrics` capabilities; omitted, it is a no-op. `DURABLE_TELEMETRY_SCHEMA`, exported from the package root, documents its typed spans, events, and metrics. Attributes contain IDs and control metadata, never messages, arguments, or results; IDs point to the transcript.\n\n- `pi.durable.submit` covers the public submit call and its commit; for `submit(tx, draft)` it covers the admission only, its `result` is provisional until your commit is stored, and the commit's events go to your commit's context. Each input starts a new root trace with a link to its caller's current span; a write is a child of its caller. Duplicate `requestId` preserves the original submission and carrier. Internal admissions, such as compaction writes, emit events on their phase span without a submit span.\n- `pi.durable.phase` covers one run or abort phase of every task, including its decision commit, never the next phase, a durable wait, or a restart. Its attributes identify the task, phase, attempt when present, `resumed`, and outcome. Tool phases also identify the tool and call. Nested tasks and background compactions inherit the creating phase; model requests receive that phase context. Hooks add no spans.\n- Failed phase outcomes set error status with a fixed category (`task_faulted`, `task_failed`, or `task_orphaned`) and the outcome's diagnostic message, truncated to 500 characters (the reason for an orphaned task). Diagnostics can contain caller content; no error detail or exception name is recorded. An `aborted` outcome keeps status `ok`, including interruption by close or cancellation.\n- Every `onReport` report also emits a `pi.durable.report` event on its current span. Without a span, the NOOP span drops the event; no root report span is created. Only `type` (the report's `kind`), optional fixed `reason`, `extension`, and `task.id` are recorded; no error payload is included. `pi.durable.reports` counts all reports by `type` only, including those without a span. Clock failures report without a phase context. The `onReport` callback is unchanged.\n- Committed entries and settled submissions emit `pi.durable.entry` and `pi.durable.submission`. Committed running phase changes emit `pi.durable.checkpoint`; a nested call answered from its stored result emits `pi.durable.replay`.\n- Propagation stores optional opaque `trace` carriers in submission and task JSON without a storage migration. Phase spans extract their task's stored carrier, or start at the adapter root when absent or unknown. `TaskOptions.trace` inherits the creator's carrier when absent, accepts an explicit carrier override, or uses `\"root\"` to start at the adapter root without storing a carrier. A run started for several queued inputs takes the first input's trace; its first invocation's phase spans link to the other inputs through immutable task `links`. A steer stays in the running trace and its submit span links to that run's stored carrier. A reopened task's first invocation has `resumed: true` in the same trace.\n- Metrics record `pi.durable.phase.duration` (milliseconds; task, phase, outcome) and `pi.durable.tasks.active` (live tasks; task name), without record IDs. Closing the Harness releases its active counts.\n\n## Concepts\n\n- **Harness**: one open storage plus the machinery that runs agents on it. All changes go through one line of atomic commits, and nothing is shown before its commit is stored.\n- **Conversation**: a transcript. `root()` creates the root conversation on first use; you can create more and fork them. A `Conversation` handle holds no state; compare handles by `id`.\n- **Entry**: one immutable transcript record, such as a user message (`pi.user`), a model response (`pi.assistant`), a tool result (`pi.tool-result`), a system prompt change (`pi.system`), a reset (`pi.reset`), or your own kind. The model sees the entries from the newest reset onward.\n- **Commit**: an atomic write. `conversation.commit((tx) => ...)` can append entries, edit documents, and create tasks together; either all of it is stored or none of it.\n- **Document**: typed JSON state stored next to the transcript and changed in commits. Built-in ones hold each conversation's agent choices (`pi.agent`), provider-facing session identity (`pi.provider`), running generation and tools (`pi.live`), queued submissions (`pi.inbox`), and spend (`pi.usage`).\n- **Task**: a durable state machine that saves a checkpoint at every step, so a restarted process continues from the last one. Every task has an owner: its conversation, or another task. The Harness runs answers as built-in tasks: `pi.generation` calls the model and owns the `pi.tool` tasks of its tool calls, waits for them, and hands the run to the next generation.\n- **Submission**: something you hand to a conversation, either user input or an entry to write, which you can wait for.\n- **Turn and run**: a turn is one model response and its tool calls; a run is the turns from an input to its final answer. A conversation is busy while a run is going.\n- **Extension**: a named bundle of tools, system prompt sections, hooks, wrappers, and tasks.\n- **Registry**: the extensions this process installed. It can change while the Harness runs; new work uses the new state.\n- **Agent**: what a conversation runs with: model, thinking level, selected extensions, tools, instructions, and working directory. Stored per conversation as names in `pi.agent`, resolved against the registry at each use.\n\nOne answered input, as entries and tasks:\n\n```text\nsubmit(input) → pi.user\n  pi.generation → pi.system (only if the prompt or tools changed), pi.assistant (tool calls)\n    pi.tool × n → pi.tool-result × n   (owned by the generation, which waits for them)\n  pi.generation → pi.assistant (answer) → submission done\n```\n\n## Persist and Resume\n\nUse SQLite or JSONL storage to keep conversations across restarts:\n\n```typescript\nimport { openNodeSqliteStorage } from \"@earendil-works/pi-durable/storage/sqlite/node\";\n\nconst harness = await Harness.open(await openNodeSqliteStorage(\"./session.sqlite\"), { models, registry }, context);\nconst root = await harness.root(context); // the same root as last time\nharness.resume(); // continue any run the last process left unfinished\n```\n\nWork interrupted by a crash or close stays pending. `resume()` starts the task scheduler; submitting or waiting starts it too. A process that only shows a session another one drives opens it with `readOnly: true`: open recovers nothing, and every write, `resume()`, and every call that would run tasks rejects with `ReadOnlySession`. That option covers the Harness, not the storage open before it: open JSONL storage with `openNodeJsonlStorage(directory, context, { readOnly: true })` too, since a writable JSONL open repairs files the writer may be appending to (see [Storage](#storage)). SQLite storage opens as usual: SQLite's file locks keep it safe beside the writer. Each conversation has its own persisted UUIDv7 in `pi.provider`, forwarded to pi-ai as `sessionId` for provider prompt-cache and session affinity. It survives reopen, retries, reset, compaction, and model changes; a child or fork receives a fresh identity. A legacy conversation receives and persists one before its first generation or compaction request.\n\nA retried submission with the same `requestId` returns the existing submission instead of submitting twice:\n\n```typescript\nconst submission = await root.submit({ type: \"input\", content: \"Hello\", requestId: \"greeting-1\" }, context);\n// After a restart: the same request ID finds the same submission.\nconst again = await root.submit({ type: \"input\", content: \"Hello\", requestId: \"greeting-1\" }, context);\n// again.id === submission.id\n```\n\n`harness.submission(id)` reacquires a submission by ID, for example to wait for it after a restart.\n\n### Sleeping and Waking Up\n\nA task waits for time by ending its phase asleep. The sleep is stored, so the task holds no invocation meanwhile, survives restarts, and resumes at the checkpoint once the Harness clock reaches `until`:\n\n```typescript\nconst Reminder = defineTask<{ text: string; at: number }, { phase: \"wait\" } | { phase: \"deliver\" }, null>({\n\tname: \"app.reminder\",\n\tversion: 1,\n\tinitial: () => ({ phase: \"wait\" }),\n\tphases: {\n\t\t// Resolves once the sleep is stored; the phase ends there.\n\t\twait: (task, runtime, context) => runtime.sleepUntil(task.input.at, { phase: \"deliver\" }, context),\n\t\tdeliver: async (task, runtime, context) => {\n\t\t\tawait notify(task.input.text);\n\t\t\tawait runtime.commit(() => ({ status: \"terminal\", outcome: { status: \"completed\", result: null } }), context);\n\t\t},\n\t},\n\tabort: (_task, runtime, context) =>\n\t\truntime.commit(() => ({ status: \"terminal\", outcome: { status: \"aborted\" } }), context),\n});\n```\n\nThere is no sleep in the middle of a phase: a phase reruns from its top after a restart, so work after the wait goes in the next phase, and what it needs goes in the checkpoint. `{ status: \"sleeping\", until, checkpoint }` returned from `runtime.commit()` is the same sleep, committed together with other writes; with `signals` it also wakes on a signal (see [Signals](#signals)), and `until` becomes optional. Retry backoffs and deferred-response polls of the built-in tasks sleep the same way.\n\nThe timers of the Session, the scheduler, and its tasks go through `setTimer` (default `setTimeout`), and their times through `now` (default `Date.now`); pass both to run a Harness on a fake clock. The Node.js environment, file watcher, and image worker keep their own timers. Sleep deadlines are stored on `now`, so every process that opens one storage must use the same clock. While scheduling runs, a timer resumes sleeping tasks when they are due and keeps a Node.js process alive meanwhile.\n\nA host whose process can be evicted, such as a Cloudflare Durable Object, wakes it itself. With `onWake`, the Harness arms no timer for sleeps; it tells the host what `harness.wake()` says whenever that changes: `active` while some task can run now or is running, and `at`, the earliest sleep. The host keeps its alarm armed and calls `resume()` when it fires:\n\n```typescript\nexport class Session extends DurableObject<Env> {\n\t#harness!: Harness;\n\n\tconstructor(ctx: DurableObjectState, env: Env) {\n\t\tsuper(ctx, env);\n\t\tvoid ctx.blockConcurrencyWhile(async () => {\n\t\t\t// A fallback before anything can throw: an object whose open or recovery fails is started again.\n\t\t\tconst fallback = Date.now() + 60_000;\n\t\t\tconst current = await ctx.storage.getAlarm();\n\t\t\tif (current === null || current > fallback) await ctx.storage.setAlarm(fallback);\n\t\t\tconst storage = await openDurableObjectSqliteStorage(ctx.storage);\n\t\t\tconst onWake = (wake: Wake) =>\n\t\t\t\t// A failed alarm write resets the object; it arms again when it next starts.\n\t\t\t\tvoid this.#arm(wake).catch(() => ctx.abort(\"Alarm write failed\"));\n\t\t\tthis.#harness = await Harness.open(storage, { models, registry, onWake }, context);\n\t\t\t// Armed before `resume()` runs anything, as for any call that can start work.\n\t\t\tawait this.#arm(this.#harness.wake());\n\t\t\tthis.#harness.resume(); // work a lost instance left, and due sleeps\n\t\t});\n\t}\n\n\toverride async alarm(): Promise<void> {\n\t\tawait this.#arm({ ...this.#harness.wake(), active: true });\n\t\tthis.#harness.resume(); // due sleeps and work a lost instance left\n\t}\n\n\t// Arm before any call that can start work (submit, signal, compact, abortTask, abort, a registry change): `onWake`\n\t// runs after the commit. An early alarm is harmless, a missing one strands the work.\n\tasync submit(conversation: Conversation, input: string, requestId: string): Promise<void> {\n\t\tawait this.#arm({ ...this.#harness.wake(), active: true });\n\t\tawait conversation.submit({ type: \"input\", content: input, requestId }, context);\n\t}\n\n\tasync #arm(wake: Wake): Promise<void> {\n\t\t// A recovery heartbeat while work runs, never later than the earliest sleep.\n\t\tconst heartbeat = wake.active ? Date.now() + 60_000 : undefined;\n\t\tconst at = heartbeat === undefined || wake.at === undefined ? (heartbeat ?? wake.at) : Math.min(heartbeat, wake.at);\n\t\tif (at === undefined) await this.ctx.storage.deleteAlarm();\n\t\telse await this.ctx.storage.setAlarm(at);\n\t}\n}\n```\n\nThe default `setTimer` declines the timers that only free memory in Workers, so no pending timer keeps the object from hibernating or being evicted; memory is then freed at later commits.\n\n### Signals\n\nA signal is a typed JSON value delivered to a live task from outside: a webhook's result, a person's answer. The task sleeps on a key and holds no process meanwhile; `harness.wake()` is not `active` for it, and `at` is its deadline, if any. Define a signal kind with a pi-schema schema, sleep on one of its keys, and read the value after the wake:\n\n```typescript\nimport { obj, str } from \"@earendil-works/pi-schema\";\nimport { defineSignal, defineTask } from \"@earendil-works/pi-durable\";\n\nconst HOUR = 60 * 60 * 1000;\nconst Answer = defineSignal({ name: \"app.answer\", version: 1, schema: obj({ text: str() }) });\n\nconst AskPerson = defineTask<{ question: string }, { phase: \"ask\" } | { phase: \"answered\" }, string | null>({\n\tname: \"app.ask-person\",\n\tversion: 1,\n\tinitial: () => ({ phase: \"ask\" }),\n\tphases: {\n\t\t// Wakes on the answer, or after four hours, whichever comes first.\n\t\task: (_task, runtime, context) =>\n\t\t\truntime.commit(\n\t\t\t\t() => ({\n\t\t\t\t\tstatus: \"sleeping\",\n\t\t\t\t\tsignals: [Answer.key(\"answer\")],\n\t\t\t\t\tuntil: runtime.now() + 4 * HOUR,\n\t\t\t\t\tcheckpoint: { phase: \"answered\" },\n\t\t\t\t}),\n\t\t\t\tcontext,\n\t\t\t),\n\t\tanswered: async (task, runtime, context) => {\n\t\t\t// task.state.wake says why: { reason: \"signal\", signal, key } or { reason: \"expired\" }.\n\t\t\tconst state = await runtime.readSignal(Answer, \"answer\", context); // { value }, { expired: true }, or undefined\n\t\t\tconst text = state !== undefined && \"value\" in state ? state.value.text : null;\n\t\t\tawait runtime.commit(() => ({ status: \"terminal\", outcome: { status: \"completed\", result: text } }), context);\n\t\t},\n\t},\n\tabort: (_task, runtime, context) =>\n\t\truntime.commit(() => ({ status: \"terminal\", outcome: { status: \"aborted\" } }), context),\n});\n\n// Whatever shows the question (an inbox, a chat bridge) keeps the task ID and delivers the answer:\nconst result = await harness.signal(taskId, Answer, \"answer\", { text: \"Yes\" }, context);\n```\n\n- **Results:** `delivered` (durably kept), `duplicate` (the key already holds a value, as for a webhook retry), `invalid` (not matching the schema), `closed` (the task ended or was aborted, or the deadline came first), `not_found`. Hosts answer `duplicate` and `closed` to the sender as final. `tx.signal()` delivers inside your own commit, before its first table write. Nothing checks who sends a signal: authenticate senders in your host.\n- **Early signals:** a value that arrives before the task sleeps on its key is kept, and the sleep wakes at once.\n- **One wait per key:** the wake that uses a key consumes it, and a second sleep on it is rejected. A second wait for the same kind of signal uses a new key (`ci-1`, `ci-2`).\n- **Small values:** values live in the task record. Send a reference (a document ID, a CI run ID) for anything large.\n- **Waking on tasks:** a `waiting` state with `policy: \"any\"` resumes once one task in `on` ends; `task.state.wake` is then `{ reason: \"tasks\", ended }`.\n- **Submissions:** a submission with `notify: { taskId, key }` delivers the built-in `SubmissionSettled` signal, the record `wait()` resolves to, to that task when it settles, which is how a tool waits for a subagent without holding a process (see [Tools that park](#tools-that-park)).\n\n### Failures and Recovery\n\n**Crash loops.** Work that deterministically crashes its process, by exhausting memory or CPU before its next checkpoint, would otherwise be resumed and crash again forever. A model request the host died during is a failed attempt under `settings.retry`: its partial answer is kept as an aborted entry, the next attempt waits for the backoff (shown in `docs[\"pi.live\"].generation.retry`), and with no retry left the run ends with `docs[\"pi.live\"].runFailure` reason `interrupted`. A deferred response that was being fetched is polled again as the next attempt, not requested again, and cancelled when the run ends. A close is not a crash: a request it stopped is sent again. Other work is counted: open counts each task a crash, eviction, or reset cut off, and a new state the task commits starts the count over. Once the count reaches `settings.restartLimit` (default 5; `Infinity` never ends a task for it), the task ends instead of running again: a tool call with an error result (diagnostic code `restart_limit`), a compaction failed into `compactionFailure`, a run with `runFailure` reason `restart_limit` (also when charging an interrupted request keeps crashing), and a task of your own kinds `faulted`, reported as `task_faulted` with reason `restart_limit`. The built-in ones are reported as `task_interrupted`, as is a run that ends `interrupted`, so a crash loop always reaches `onReport`. Every task running when a process dies is counted, not only the one that killed it. An abort handler cut off that many times ends its task `faulted` too; a run someone aborted still ends `aborted`, with the cut-off in `detail`.\n\n**Reports.** `onReport(report)` gets one `Report`: the `error` and what happened in `report.kind`: `storage_failed` for the error that failed the Harness (a Storage error, often a platform reset); `task_faulted`, `task_interrupted` (crashes ended it, with `report.reason` and `report.restarts`), `migration_failed`, `task_outdated` (`reason` `missing_task`, `task_too_old`, or `migration_failed`, the words a blocked task shows), or `task_error` for a task, with `report.task` (its `id`, `kind`, and `conversationId`) and the extension that installed it in `report.extension`; `extension_error` for hooks, sections, wrappers, and tools, with the extension's name; `host_error` for a host callback, named in `report.callback`; and `listener_error`. A host can feed `task_faulted` reports of one kind to its own breaker.\n\n**Queued inputs after a failed run.** A run that fails with a model error, a missing model, nothing to answer, its turn limit, or crashes (`interrupted`, `restart_limit`) leaves the inputs queued behind it waiting until the next input arrives. `settings.afterFailedRun` changes that: `continue` starts the next run with them, as after an answer, and `withdraw` settles them `unanswered` with reason `run_failed`.\n\n**Blocked tasks.** Tasks blocked on a missing or unmigratable definition show their reason in the task graph too, and a registry change that unblocks them makes `onWake` report the Session active, so a host need not poll them.\n\n## Extensions\n\nCode the Harness runs, other than its built-in tasks, comes in named extensions installed in a registry your process owns:\n\n```typescript\nimport { createRegistry, defineExtension, defineTool, hook, section, ToolTask } from \"@earendil-works/pi-durable\";\nimport { CodingTools } from \"@earendil-works/pi-durable/tools\";\n\nconst Coding = defineExtension({\n\tname: \"coding\",\n\tsections: [section(\"preamble\", () => \"You are a concise coding assistant.\", { tag: false })],\n\thooks: [hook(ToolTask, { beforeTool: (call) => (isDangerous(call) ? { block: \"Needs approval\" } : undefined) })],\n});\n\nconst registry = createRegistry();\nregistry.install(CodingTools);\nregistry.install(Coding);\n```\n\nAn extension may bring `tools`, `sections`, `hooks`, `wraps` (decorators of a tool or section by name), and `tasks`. By default every conversation selects every installed extension, in install order. Nothing in the registry is stored; conversations store extension names.\n\n## Tools\n\n`@earendil-works/pi-durable/tools` provides `read`, `write`, `edit`, and `bash`, and the `CodingTools` extension with all four. They touch files and processes only through the call's environment (see [Environment](#environment)).\n\n`read` returns an image file as one image block, which programs calling it get as an `ImageContent`. Limits are the model's `inputLimits.images.resize`, by default 2000x2000 pixels and 4.5 MB of base64. Without an image processor it sends PNG, JPEG, GIF, and WebP files within them (dimensions read from the file's header) as they are, without decoding them, and refuses larger ones and other formats. With one, it decodes every image, turns it upright by its EXIF orientation, converts BMP to PNG, and shrinks it to fit. The Photon-based processor runs on WebAssembly and is only loaded when you import it:\n\n```typescript\nimport { createNodePhotonImages } from \"@earendil-works/pi-durable/images/node\"; // or /images/cloudflare, or createPhotonImages(wasm) from /images\nimport { createCodingTools } from \"@earendil-works/pi-durable/tools\";\n\nregistry.install(createCodingTools({ images: await createNodePhotonImages() }));\n```\n\nImages also reach the model through other tools' results (an MCP tool, code mode's `image()`) and through a host's input. `@earendil-works/pi-durable/images/fit` fits those to the conversation model's limits with any processor, before they are stored, so the transcript, and the provider's prompt cache, never changes later. `createFitImagesExtension(images)` is an `afterTool` hook for every result the model gets, and says what changed in an `info` diagnostic; `fitImage(bytes, mimeType, imageLimits(model), images)` fits an attachment before the host submits it, and returns notes for the model. Every image is decoded, as the coding agent does, so a damaged one never reaches the transcript; one that cannot be prepared is left out with a note.\n\n```typescript\nimport { createFitImagesExtension } from \"@earendil-works/pi-durable/images/fit\";\n\nconst images = await createNodePhotonImages();\nregistry.install(createCodingTools({ images }));\nregistry.install(createFitImagesExtension(images));\n```\n\nA model without image input sees a placeholder instead of the image, decided per request, so an image read under such a model still reaches a vision model the conversation switches to; `read` names such a model in `details.imageUnsupportedByModel` for UIs. `/images/node` prepares images in a worker thread, so a large photo (a second or two of work) never blocks the event loop; the worker exits after 30 s without images, freeing Photon's WebAssembly memory (`createNodePhotonImages({ worker: false, idleMs })`). Elsewhere, `createPhotonImages()` and `/images/cloudflare` work on the calling thread, and decoding takes the image's full size in WebAssembly memory, which does not shrink again; leave the processor out on memory-constrained hosts such as Cloudflare Workers unless images stay small.\n\nDefine your own tool with a JSON Schema, built here with `@earendil-works/pi-schema`. `defineTool()` types `args` from `parameters` (through pi-schema's `Static`; other JSON Schema gives `unknown`), which the Harness coerces and validates before `execute()`. `api.output()` streams running output, which becomes the result when `execute()` returns no `output`:\n\n```typescript\nimport { num, obj, str } from \"@earendil-works/pi-schema\";\n\nconst count = defineTool({\n\tname: \"count\",\n\tdescription: \"Count from 1 to n\",\n\tparameters: obj({ n: num() }),\n\texecute: async (args, api) => {\n\t\tfor (let i = 1; i <= args.n; i++) api.output(`${i}\\n`);\n\t\treturn {};\n\t},\n});\nregistry.install(defineExtension({ name: \"count\", tools: [count] }));\n```\n\nEach call runs as its own durable task. Its intent is committed before `execute()` runs. If the process dies mid-call, the tool reruns on reopen only when it is declared `replay: \"safe\"`; otherwise the model gets an `interrupted` error result with the output committed so far. A replay-safe call cut off `settings.restartLimit` times in a row ends with a `restart_limit` error result instead of running again. Throwing from `execute()` gives the model an error result. A result can also return `usage`, which is added to the conversation's [usage](#usage-and-cost). It can also return `control: { terminate: true }`: when every result of the round asks for it, the run ends without another model request.\n\nA result has three channels: `output` for the model, `structuredOutput` for programs that call the tool (see [Calling tools from tools](#calling-tools-from-tools)), and `details` for UIs. A tool that declares `structuredOutputSchema` returns a matching `structuredOutput`, which the Harness validates. Programs calling a tool without one get its bounded output: one text item as a string, one image as its `ImageContent`, nothing as `\"\"`, and anything else as the content list, for errors too. `structuredOutput` is always the tool's own value: a schema tool's error result keeps the value it returned, and the text of one without is in a `tool_error` diagnostic, as a thrown error's message is. The transcript stores only `output` and `details`:\n\n```typescript\nconst lines = defineTool({\n\tname: \"lines\",\n\tdescription: \"Count the lines of a file\",\n\tparameters: obj({ path: str() }),\n\tstructuredOutputSchema: obj({ lines: num() }),\n\texecute: async (args, api, context) => {\n\t\tconst text = await readText(api, args.path, context);\n\t\tconst count = text.split(\"\\n\").length;\n\t\treturn { output: [{ type: \"text\", text: `${count} lines` }], structuredOutput: { lines: count } };\n\t},\n});\n```\n\nA missing, undeclared, or invalid `structuredOutput` turns a nested call's result into an error result with an `invalid_structured_output` diagnostic; for a call the model made, which never sees it, it is dropped and reported through `onReport`. An error result may omit it, and programs then find its text in a `tool_error` diagnostic; error results the Harness writes itself (blocked, invalid, interrupted, aborted) carry none, even when an `afterTool` hook returns one, and their `diagnostics` say what went wrong; one a hook turns into a success gives a schema-less tool's program its output. An `afterTool` hook that redacts a schema tool's `output` must redact its `structuredOutput` too. The built-in `bash` returns `{ output, truncated, fullOutputPath?, exitCode }`, where `output` is the retained tail the model sees, read with `api.retainedOutput()`, and answers a nonzero exit with an error result that still carries it. The built-in `read` returns a text file's text as a string and an image as its `ImageContent`, which code mode's `image()` shows.\n\nA later extension's tool with the same name replaces an earlier one where both are selected, and `wrapTool()` decorates whichever tool won:\n\n```typescript\nconst Venv = defineExtension({ name: \"venv\", tools: [createBashTool({ commandPrefix: \"source .venv/bin/activate\" })] });\nconst Timing = defineExtension({\n\tname: \"timing\",\n\twraps: [wrapTool(createBashTool(), (bash) => ({ ...bash, execute: (args, api, ctx) => timed(() => bash.execute(args, api, ctx)) }))],\n});\n```\n\n### Calling tools from tools\n\nA tool calls another tool with `api.executeTool()`, as a code mode script or an MCP bridge does. The nested call is its own tool task, owned by the calling one: it is validated, runs the `ToolTask` hooks, keeps its own output limits and replay policy, and returns its result to the caller instead of the transcript:\n\n```typescript\nconst testsPass = defineTool({\n\tname: \"tests_pass\",\n\tdescription: \"Run the test suite and say whether it passed\",\n\tparameters: obj({}),\n\texecute: async (_args, api, context) => {\n\t\tconst run = await api.executeTool(\"bash\", { command: \"npm test\" }, context, { progress: false });\n\t\t// Absent when bash did not finish, for example on a timeout.\n\t\tconst exitCode = (run.structuredOutput as { exitCode: number } | undefined)?.exitCode;\n\t\treturn { output: [{ type: \"text\", text: exitCode === 0 ? \"passed\" : \"failed\" }] };\n\t},\n});\n```\n\n- The caller gets the nested call's `taskId`, `structuredOutput`, `details`, `diagnostics`, `usage`, and `isError`, not the `output` meant for the model. A blocked, invalid, failed, or aborted nested call returns an `isError` result. `executeTool()` itself rejects once `execute()` has returned, when the caller is aborted, or when the Harness closes; cancelling its `context` stops only the wait.\n- Hooks see a nested call's `call.parent`, so a guard can treat calls from scripts differently.\n- While the caller runs, its nested calls show in `docs[\"pi.live\"].nestedTools`, with their caller's `parentCallId` and `parentTaskId`, the arguments they run with, and a `summary` (error, duration, usage) once done; a nested call's full result is in its caller's `NestedCallDoc` while the caller runs. `progress: false` keeps a nested call's running output out of `pi.live`. Before the caller settles, nested calls it left running are aborted, also those an earlier attempt made. The caller's result message does not list its nested calls; their task records keep them.\n- Each nested call has a key, its position among the caller's nested calls unless the caller passes `{ key }`. A replay-safe caller that reruns after a crash and calls in the same order, or passes the same keys, gets the nested calls it already made back, finished or still running, instead of starting them again. A nested call the crash interrupted before its result was committed follows its own `replay` policy, so a replay-safe tool with external effects still needs its own idempotency. A caller that is not replay-safe never reruns, so after a restart its unfinished nested calls are abandoned, with everything they own, before they run again.\n- A nested call's `usage` is counted under its own tool; passing it on in the caller's result counts it twice.\n- Nested results are not kept: they live in the caller's task documents (`NestedCallDoc`, one per nested call, keyed by its key, holding `{ taskId, result? }`) only until the caller settles. The nested call's task record keeps only a small receipt. A stored result is exactly what `executeTool()` returns, without the model's `output`, so an image or a `bash` tail is stored once.\n- Nothing bounds how deeply calls nest; a tool with the default `callers` may even call itself. Restrict `callers` where that matters (below).\n\n### Tools that park\n\nA tool that waits for the outside world (a CI webhook, a person, a slow job) returns a park instead of a result: `{ sleep: { signals?, until?, checkpoint? } }` or `{ wait: { on, policy, checkpoint? } }` for tasks the call owns. The call then holds no process. Once woken, `execute()` runs again with the same arguments, `api.wake` saying why and `api.checkpoint` holding what it parked with; on a fresh call both are `undefined`. `cancel` cleans up external work when the call is stopped while parked:\n\n```typescript\nconst HOUR = 60 * 60 * 1000;\nconst CiResult = defineSignal({ name: \"app.ci-result\", version: 1, schema: obj({ status: oneOf([\"passed\", \"failed\"]), logUrl: str() }) });\nconst CiParameters = obj({ ref: str() });\n\nconst runCi = defineTool<typeof CiParameters, JsonValue, { buildId: string }>({\n\tname: \"run_ci\",\n\tdescription: \"Run CI on a git ref and report the result\",\n\tparameters: CiParameters,\n\treplay: \"safe\",\n\tasync execute({ ref }, api, context) {\n\t\tconst state = await api.readSignal(CiResult, \"done\", context);\n\t\tif (state !== undefined && \"value\" in state) {\n\t\t\treturn { output: [{ type: \"text\", text: `CI ${state.value.status}: ${state.value.logUrl}` }], isError: state.value.status !== \"passed\" };\n\t\t}\n\t\tif (state !== undefined) return { output: [{ type: \"text\", text: \"CI never reported\" }], isError: true };\n\t\t// A fresh call. The tool's own idempotency key, memoized before the external call, so a rerun finds the same build.\n\t\tconst runId = await api.memo(\"ci.run\", crypto.randomUUID(), context);\n\t\tawait webhooks.expect(runId, api.taskId, CiResult, \"done\", context); // your registry: the webhook signals this task\n\t\tconst build = await ci.trigger({ ref, idempotencyKey: runId }, context);\n\t\treturn { sleep: { checkpoint: { buildId: build.id }, signals: [CiResult.key(\"done\")], until: api.now() + 2 * HOUR } };\n\t},\n\t// Runs when the call is stopped while parked; may run more than once.\n\tasync cancel(_args, api, context) {\n\t\tif (api.checkpoint !== undefined) await ci.cancel(api.checkpoint.buildId, context);\n\t\telse await ci.cancelByKey((await api.memo<string>(\"ci.run\", context))!, context);\n\t},\n});\n```\n\n- **Crashes:** a crash before the park is stored reruns a replay-safe `execute()`, which is why the idempotency key is memoized first. A restart while the call is parked runs no tool code, also for a tool that is not replay-safe, and keeps its nested calls and children.\n- **`cancel`:** runs when a parked call, or a woken one cut off before it parked again, is aborted, and before a woken replay-unsafe run ends `interrupted`. It also runs in the run itself when an abort mark refuses its park, with that park's checkpoint, which was never stored. In it, `api.wake` is `undefined`, `api.checkpoint` is the last park's, and it cannot start nested calls or tasks. It does not run for a first run cut off before it parked: find that work by the idempotency key.\n- **Parallel children:** `api.executeTool(name, args, context, { key, wait: false })` starts a nested call and returns `{ taskId, result(context) }` at once; park with `{ wait: { on: [taskId, ...], policy: \"any\" } }` and read `api.wake.ended`. `api.createTask(task, input, { ownership, key })` finds the same task again by key. After a wake, nested calls and child tasks need explicit keys, since positions may mean other calls. Awaiting `executeTool()` normally keeps the caller's process even while the nested call is parked.\n- **Subagents:** submit to the child with `notify: { taskId: api.taskId, key: \"answered\" }` and park on `SubmissionSettled.key(\"answered\")`; the child's settled record is the signal's value.\n- **Slots and results:** a parked call's `pi.live` slot is `sleeping` or `waiting`, without output; details and diagnostics carry over to the next run. `durationMs` is the whole span from the call's start, parks included. A park that breaks a rule (both `sleep` and `wait`, a used key, a task the call does not own) ends the call with an `invalid_park` error result. Wrappers never park: they return their base's park unchanged.\n\nExamples [40](test/examples/40-tool-waits-for-webhook.ts) to [43](test/examples/43-subagent-waits.ts) run each pattern with a crash or a Stop.\n\n### Who may call a tool\n\n`callers` on a tool says who may call it: the model, other tools through `executeTool()`, or both, the default. A conversation's `modelTools` narrows which of its tools the model is offered, without taking them away from tools:\n\n```typescript\nconst codemode = defineTool({ name: \"codemode\", callers: [\"model\"], ... }); // scripts cannot start scripts\nconst search = defineTool({ name: \"mcp__github__search\", callers: [\"tools\"], ... }); // never offered to the model\n\n// The model is offered only codemode; its scripts call read, bash, and the MCP tools.\nawait root.configure({ modelTools: [codemode] }, context);\n// The model is offered everything but bash, which scripts may still call.\nawait root.configure({ modelTools: { remove: [bash] } }, context);\n```\n\n`conversation.agent()` resolves both lists: `tools`, offered to the model, and `callable`, which nested calls resolve among. `tools` still decides what is enabled at all; `modelTools` cannot add to it.\n\nA `deferred: true` tool is not offered to the model until it is loaded, though other tools can call it any time. The `tool_search` tool from `@earendil-works/pi-durable/tool-search` (`createToolSearchExtension()`) lets the model search the deferred tools and loads the matches with `control.addTools`, which records them in `modelTools`; loaded tools stay offered on that branch, also after a compaction, and the `codemode` section leaves deferred tools out. Use it for large tool sets, such as an MCP server's.\n\n### Tasks a restart abandons\n\nA task that its creator awaits only in memory, and that the creator never resumes after a restart, can be created with `abandonOnRestart: true`. When a later Harness starts scheduling and finds it still live, it is aborted with `abortReason: \"restart\"`, together with everything it owns, before any of it runs again. Nested calls of tools that are not replay-safe get this automatically, and so do the child tasks such a tool creates with `api.createTask()`. A task abandoned this way whose definition is missing waits until its extension is installed, so its abort handler still cleans up. Its caller, and the conversation, wait with it; `harness.inspect()` shows it as blocked. Aborting it then orphans it, as any abort does.\n\n## Code Mode\n\n`@earendil-works/pi-durable/codemode` adds a `codemode` tool: the model writes JavaScript that calls the conversation's tools as `await tools.<name>(args)`, in a QuickJS sandbox (`@earendil-works/pi-codemode`). Each call is a nested tool call, and only the script's output reaches the model. The script survives a restart: it resumes where it was, without running its finished calls again.\n\n```typescript\nimport { CodemodeSandbox } from \"@earendil-works/pi-codemode\";\nimport { createCodemodeExtension } from \"@earendil-works/pi-durable/codemode\";\n\nregistry.install(createCodemodeExtension({ sandbox: new CodemodeSandbox({ memoryLimitBytes: 256 * 1024 * 1024 }) }));\n```\n\nThe extension also adds a `codemode` prompt section listing the tools scripts can call, as TypeScript declarations within a token budget; scripts find the others with `searchTools()`, `describeTool()`, and `describeNamespace()`. Group tools into namespaces by declaring one on the extension that brings them, `namespace: { name, description, instructions? }`, for example one extension per MCP server: the section lists every selected extension's namespace with its one-line description (also before it has tools), and `describeNamespace()` returns its instructions. The result reads like the coding agent's: a header, the script's output, and on failure the calls already made; text past `max_output_tokens` is cut, with the full text in a temp file. Scripts also get `models.*`: the model catalog, `models.classify()`, and `models.generateImages()`, which run as nested calls of internal tools (`models: false` turns them off). On Cloudflare, pass a `RemoteCodemodeSandbox` instead. Closing the sandbox while a script runs (for example when shutting down) is not an outcome: the script resumes with the next process's sandbox. A failed nested call rejects in the script with its error text, unless the tool declares a schema and returned its own value with the error: `tools.bash` resolves with `{ output, exitCode, ... }` also for a nonzero exit, so scripts check `exitCode`. `store(key, value)` and `load(key)` keep JSON values per conversation; a fork sees them as they were at its entry.\n\nHow it survives a restart: the sandbox runs the script deterministically (a virtual clock, seeded randomness, UTC), and the tool writes each result the script gets to a journal before handing it over. After a restart, the tool runs the script again and hands it the journaled results in the same order, so it makes the same calls with the same arguments; these reattach to their nested calls by key, and then the script continues. A rerun ends the call with an error instead when the script takes another path than before, when the sandbox's fingerprint or the code mode version changed, or when its `timeout_ms` passed meanwhile. A nested call running at the restart follows its own replay policy.\n\n## System Prompt\n\nThe system prompt is built from the selected extensions' sections, rendered in order before each request. A section sees the resolved agent, the environment built for the request, and committed documents:\n\n```typescript\nsection(\"cwd\", (input) => input.env?.cwd); // rendered as <cwd>\\n...\\n</cwd>; undefined omits it\n```\n\nA conversation's `instructions` render last, as the section `instructions`. Sections and tool changes are stored as positional system entries in the transcript. Only what changed is sent again, which keeps provider prompt caches warm. A section that returns something different every time, such as the current time, defeats that.\n\n## Per-Conversation Agent\n\nEach conversation stores what it runs with in its `pi.agent` document. `configure()` changes it in one commit; unset fields follow the host:\n\n```typescript\nawait root.configure(\n\t{\n\t\tmodel: { provider: \"openai\", modelId: \"gpt-6-sol\" },\n\t\tthinkingLevel: \"high\",\n\t\textensions: { remove: [Coding] }, // edits the host default; an array selects exactly these, in order\n\t\ttools: [readTool, bashTool], // an array enables exactly these; { remove: [...] } drops some\n\t\tmodelTools: [readTool], // of those, offer the model only read; tools may still call bash\n\t\tinstructions: \"Only read; never edit files.\",\n\t\tcwd: \"/work/repo\",\n\t\tmaxTurns: 50, // tool rounds one run takes at most; unset: no limit\n\t},\n\tcontext,\n);\nawait root.configure({ tools: null }, context); // null clears a field back to the host default\nconst agent = await root.agent(context); // resolved: model, extensions, tools, sections, cwd\n```\n\nExtensions and tools are passed as objects and stored by name, so a stored name outlives its code: after an extension is uninstalled, conversations that select it just stop getting it until it is installed again. `createConversation()`, `fork()`, and `root()` take the same change as `agent`. A task-owned conversation, such as a subagent's, starts as a copy of its owner's conversation's agent. A fork starts with the agent its parent had at the fork entry. The model, prompt, and offered tools of a request are fixed when it is prepared; a change applies from the next request. Tool calls and hooks use the agent as their task phase resolves it, and the environment is built from the current `cwd` at each use, so a `cwd` or extension change can reach calls the model already made.\n\n**Turn limits.** `maxTurns` bounds the tool rounds one run takes: the round that reaches it still runs its tools, then the run ends `unanswered` with `turn_limit`, like a failed run (`runFailure`, and `settings.afterFailedRun` decides the inputs queued behind it). An answer always ends the run, so it is never cut off. The count is `docs[\"pi.live\"].run.turns`; it survives restarts, and every run starts at 0, also one a continue starts (see [Busy Conversations](#busy-conversations)), so a host or tool that continues automatically gets a fresh budget each time and must bound that itself. An `onYield` continuation also starts the count over: an extension that keeps a run going bounds its own loop, reading `pi.live.run.turns` and `pi.agent.maxTurns` with `api.snapshot`. `configure()` throws a `RangeError` for anything but an integer 1 or more (or `null`); a change applies at the end of the current round, and children and forks inherit it like the rest of the agent.\n\n## Settings\n\nRun policy shared by every conversation is passed as `settings`. It is read at every use and never stored, so getters make it live, for example backed by a settings file:\n\n```typescript\nconst harness = await Harness.open(storage, {\n\tmodels,\n\tregistry,\n\tsettings: {\n\t\textensions: [CodingTools, Coding], // default selection; absent: every installed extension\n\t\tstream: { timeoutMs: 120_000 },\n\t\tretry: { maxRetries: 3 },\n\t\tcompaction: { reserveTokens: 16384 },\n\t\tprogress: { partialIntervalMs: 100, outputIntervalMs: 100, persistWithinMs: 1_000 },\n\t\ttoolExecution: \"parallel\",\n\t\tcontextRetentionMs: 600_000, // inactive conversations (idle, or all live work parked) keep their context in memory this long (checked lazily where background timers are declined, as in Workers)\n\t\tdocumentRetentionMs: 600_000, // loaded documents nothing observes stay in memory this long after their last use; observed ones always\n\t\tget followUpMode() {\n\t\t\treturn userSettings.followUpMode;\n\t\t},\n\t},\n}, context);\n```\n\n## Environment\n\n`env` builds the execution environment for each tool call, section rendering, and `runtime.env()`. It receives the conversation's ID, its agent `cwd`, and committed reads, so one function serves a directory per conversation or a container per conversation:\n\n```typescript\nimport { NodeExecutionEnv } from \"@earendil-works/pi-durable/env/node\";\n\nconst harness = await Harness.open(storage, {\n\tmodels,\n\tregistry,\n\tenv: ({ cwd }) => new NodeExecutionEnv({ cwd: cwd ?? process.cwd() }),\n}, context);\n```\n\nA throw from `env` becomes the call's error result. Without an environment, the built-in tools fail with an error result. A fresh environment object per call is fine: `edit` and `write` serialize changes to one file by the environment's `id` and path. A custom `ExecutionEnv` sets `id` so that equal ids see the same files at the same paths, for example one id per container.\n\nHosts can use the environment directly too, for example to show a project's files. `openBinaryReader()` reads byte ranges of one opened file, `openDirReader()` pages a directory, and `exec()` with an argv array runs a program without a shell, reporting which stream each output chunk came from:\n\n```typescript\nconst status = { stdout: \"\", stderr: \"\" };\nawait env.exec([\"git\", \"status\", \"--porcelain=v2\", \"-z\"], {\n\tonOutput: (text, _context, { stream }) => {\n\t\tstatus[stream] += text;\n\t},\n}, context);\n```\n\nAbort the context to stop one call; `cleanup()` is for shutting the environment down. A custom environment can check itself with `registerEnvConformance()` from `@earendil-works/pi-durable/testing`, like storage below.\n\nSome environments also implement the optional `listFiles()`: the files and directories below a directory at any depth, as `fd` lists them, skipping what git ignores and stopping at bounds with `truncated`. `NodeExecutionEnv` does not; pi-env's `RemoteExecutionEnv` and `LocalExecutionEnv` do. Callers fall back to their own walk when the method is missing or fails with `not_supported`:\n\n```typescript\nconst listing = await env.listFiles?.(\".\", { exclude: [\"node_modules\"], maxEntries: 50_000 }, context);\n```\n\n## Reload\n\nInstalling an extension with an installed name replaces it in place, in one step:\n\n```typescript\nregistry.install(await loadCodingExtension()); // same name \"coding\": replaces the installed one\n```\n\n`registry.uninstall(extension)` removes the installed extension with that name, whichever object it is.\n\nWork that already started keeps the code it took: a running tool call finishes under its old implementation, and each task phase resolves hooks and the agent once, from the registry at the phase's start. The next phase, request, or call uses the new code. After a restart, install the same extensions again; pending tasks of an extension's `tasks` resume once it is installed.\n\n## Watching a Conversation\n\nEverything a UI needs is committed state. `watch()` returns a watch of the conversation's structural view: its value at attachment, then each commit that touches it, with the Chord operations of that commit, one callback at a time:\n\n```typescript\nconst watch = await root.watch(context);\nrender(watch.value); // the state at attachment\nwatch.start(async (call) => {\n\tif (call.kind !== \"value\") return; // Durable's watches end on a failure; they never send a failed call\n\tconst { value, ops } = call;\n\t// value.entries: a window over the transcript, newest last; value.before: the entry just before it\n\t// value.docs[\"pi.live\"]: the run, the running generation (streamed partial, retry, deferred), tool calls (output,\n\t//   details), compactions, and why the last run ended without an answer (runFailure)\n\t// value.docs[\"pi.inbox\"], value.docs[\"pi.usage\"], value.docs[\"pi.agent\"], value.docs[\"pi.provider\"]\n\trender(value);\n\tawait send(ops); // for example to a remote client that applies them\n});\n// later: await watch.stop();\n```\n\nThe view's `entries` are a window, so neither the first value nor a reconnect costs the whole transcript. A watch starts with the newest 50 entries; new entries are appended, and once the window would hold more than 100, its oldest leave in one splice, leaving the newest 50. `watch(context, { min, max })` changes the bounds. `from` picks where the first value starts (as `transcript.resume` does after a drop); every entry committed after the watch attached is appended, so a `from` past the newest entry starts empty and receives what comes next. Compaction summaries and resets are entries like any other, in place; a summary's `head` says where the entries it summarizes end. `conversation.context()` gives the active transcript the model sees.\n\n`ConversationTranscript` keeps what a client has seen beyond the window: call `merge()` with every value of the view, and render the `items` it returns, the client's whole transcript with a \"load earlier\" marker at the top and a \"load more\" gap wherever the client missed entries, after a stall or a reconnect:\n\n```typescript\nimport { ConversationTranscript } from \"@earendil-works/pi-durable\";\n\nconst transcript = new ConversationTranscript((query, limit, ctx) => root.entries(query, limit, undefined, ctx));\nconst watch = await root.watch(context);\nrender(transcript.merge(watch.value));\nwatch.start(async (call) => {\n\tif (call.kind === \"value\") render(transcript.merge(call.value));\n});\n\n// When a marker scrolls into view:\nrender(await transcript.loadEarlier(context)); // the page before the oldest entry\nrender(await transcript.fillGap(gap, context)); // the next page of a gap item\n\n// Reconnect after a drop: only what was missed, when it fits the window, otherwise the newest entries and a gap.\nconst resumed = await root.watch(context, transcript.resume);\n```\n\nEntries never change once committed, so a merge only adds; one that adds nothing returns the same `items` array. See `test/examples/31-transcript.ts`.\n\nWatches are Chord's `WatchHandle` (exported by `@earendil-works/chord/watch`; Durable re-exports it). The listener gets one `WatchCall` per call, tagged by `kind`, and the newest commit's context: `{ kind: \"value\", value, ops, retired }`. Chord's watches also have `{ kind: \"failed\", error }` calls for failures a source recovers from; Durable's failures are final, so a Durable watch never sends one and ends instead. A watch ends once, and `closed` (or `stop()`) gives a `WatchEnd` tagged by `kind`: `stopped`, `aborted` (its acquisition context was aborted), `ended` (the Harness closed, or a task document's task ended), `listener_error`, or `failed` (the Harness failed). An ended watch keeps its last value and no longer references the Harness.\n\nAdapters that must change in the same step as Durable's memory, such as a Chord source over a view, attach a synchronous observer instead of a watch: `harness.observeConversation(id, observer, context)`, `harness.observeTaskGraph(observer, context)`, and `harness.observeDoc(token, ...scope, observer, context)` return the current `value` and `detach()`, and call `observer.advance(call, context)` with every later change as a `WatchCall` (always a `value` call), unfolded, as memory adopts it: inside the storage's commit for a stored commit, at once for a deferred one (before it is stored). A document observer gets one call per change at its address, so a commit that retires and recreates the document gives two; the task graph also advances without a commit when a registry change alters a task's `blocked` reason. A change can arrive before the `observeXXX()` promise resolves; its ops apply from the observation's `value`. `observer.end(end)` comes once with a `WatchEnd`: `ended` when the Harness closes or, for a task document, right after the retirement of the commit that ends its task, `failed` when the Harness fails. `advance` only records the change: no awaits, no Harness calls, no throws, and quick, since every commit waits for it. One that throws (or returns a rejected promise) is reported, detached, and ended `listener_error`. Watches are built on these observers.\n\nCommits that land while a callback runs are delivered together in the next callback: the newest view and the operations of all of them, folded (appends to one string join, sets of one field keep the last). Past 10,000 pending operations the callback gets one root replacement `[[\"r\", view]]` holding the whole newest view instead, its window included. A client that joins late or reconnects starts from the current view; nothing is replayed.\n\nPartial answers and tool output are committed at most every 100 ms by default, and watches see each commit at once. Storage gets them later and together, as deferred commits (see [Your Own State](#your-own-state)): with the next commit that reads `pi.live`, such as the end of the answer or of a tool, and at the latest after `settings.progress.persistWithinMs` (default 1,000 ms). A crash loses at most about that window of an answer or of tool output; a stream that crashes in its first second may leave no aborted entry, and that attempt's usage is not recorded. `settings.progress` changes the intervals; a host whose storage is remote can commit less often, for example `{ partialIntervalMs: 500, outputIntervalMs: 500 }`.\n\n## Busy Conversations\n\nA conversation is busy while a run is working on an input. Submitting to a busy conversation queues the submission in the conversation's inbox, `docs[\"pi.inbox\"]` in the view:\n\n```typescript\nawait root.submit({ type: \"input\", content: \"Also run the tests\" }, context); // follow-up (default)\nawait root.submit({ type: \"input\", content: \"Use pnpm, not npm\", whenBusy: \"steer\" }, context);\nawait root.submit({ type: \"input\", content: \"Only if idle\", whenBusy: \"reject\" }, context); // throws ConversationBusy\nawait root.submit({ type: \"input\", content: \"Only if busy\", whenBusy: \"steer\", whenIdle: \"reject\" }, context); // throws ConversationIdle when idle\nawait root.submit({ type: \"write\", entry: { kind: \"app.note\", data: \"user opened a file\" } }, context);\n```\n\n- **Steers** are placed after the current tool round and join the running work.\n- **Follow-ups** are placed when the run answers, and start the next run.\n- **`whenIdle: \"reject\"`** refuses an input when no run is working, so it never starts a run of its own. With `whenBusy: \"steer\"`, it steers the current run or throws `ConversationIdle`. A run that answered and waits for its [after-run tasks](#work-at-the-end-of-a-run) is still working, so such an input queues and starts the next run.\n- **`submit(tx, draft)`** admits inside your own commit, with the same rules, and returns the submission's ID. Your checks, the admission, and your writes are stored together or not at all:\n\n  ```typescript\n  const id = await harness.commit(async (tx) => {\n    const chat = await tx.doc(MyChat, root.id); // your own conversation document\n    if (chat.muted.includes(userId)) throw new Error(\"Muted\");\n    const id = await root.submit(tx, { type: \"input\", content: text, whenBusy: \"steer\", whenIdle: \"reject\" });\n    chat.sent.push({ id, userId }); // your own state, same commit\n    return id;\n  }, context);\n  ```\n\n  Call it before the commit's own table writes (`appendEntry()`, `createTask()`, another admission), once per commit: otherwise it throws `ReadAfterWrite`, on every path. Documents may be read and written before and after it. A rejection (`ConversationBusy`, `ConversationIdle`) throws before any write, so you may catch it. Until your commit is stored the admission is provisional: if your callback throws later, no submission exists. Tasks and tools do the same in their own commits through `api.conversation(id)`; entries the admission places carry the task's `byTaskId`.\n- **Writes** append an entry without asking the model anything. A write of only `kind` and `data` changes nothing the model sees, so it is appended at once, even mid-run, and is never queued: a chat message shows in the transcript as soon as it is sent. It can therefore appear before items submitted earlier that are still queued, except behind a queued reset, where it waits so the reset does not hide it. A write with `model`, `head`, or `edits` waits for the next boundary like a steer.\n- `await submission.abort(context)` withdraws a queued submission.\n- The [settings](#settings) `steeringMode: \"all\"` and `followUpMode: \"all\"` place every queued item at once instead of one per turn.\n\nIf a run fails, queued items stay in the inbox until the next input, queued write, or continue places them, oldest first.\n\nWhen a run ends without an answer, `docs[\"pi.live\"].runFailure` says why until the next run starts: `model_error` and `no_model` (with the error text or the missing model in `detail`), `aborted`, `reset`, `interrupted` (the host stopped while the model answered, with no retry left), `faulted`, `orphaned`, and `restart_limit` (the run's task could not go on), `turn_limit` (a tool round reached the conversation's `maxTurns`), or `nothing_to_answer` (a continue, below, found nothing to answer). The run's inputs are in it too, settled `unanswered`; the settlement's reason is the same, except that an orphaned run's inputs carry why it was orphaned (`missing_task`, `task_too_old`, `migration_failed`) and `no_model` has no `detail` there (spec §8.2).\n\nTo resume such a run without typing a message, submit a continue. It starts a run on the context as it is, so the model answers the user message or tool results the stopped run left:\n\n```typescript\nconst live = await harness.snapshot(LiveDoc, root.id, context);\nif (live?.run === undefined && live?.runFailure !== undefined) {\n\tconst resumed = await root.submit({ type: \"continue\" }, context); // throws ConversationBusy while busy\n\tawait resumed.wait(context); // done with the answer, or unanswered like any run\n}\n```\n\nA continue is never queued: it throws `ConversationBusy` while a run is working, since whether there is anything to continue depends on how that run ends. Items a failed run left queued are placed first and join the run. A context with nothing to answer (empty, or ending in an answer, also a text answer cut off at its output limit) ends the run without a request, `unanswered` with `nothing_to_answer`. A cut-off answer with tool calls can be continued: its calls never ran, so the context ends in their error results. Tools can continue the conversations they own through `api.conversation(id)`, as they submit to them.\n\nAn input is placed as a `pi.user` entry. To show it as something else, give it an `entry` with your kind and data; the model still sees `content` as the user message:\n\n```typescript\nawait root.submit(\n\t{\n\t\ttype: \"input\",\n\t\tcontent: \"ann: can you check the build?\",\n\t\tentry: { kind: \"chat.mention\", data: { author: \"ann\", text: \"can you check the build?\" } },\n\t},\n\tcontext,\n);\n// placed as { kind: \"chat.mention\", data: { author: \"ann\", ... }, model: [{ role: \"user\", content: \"ann: can you check the build?\" }] }\n```\n\nIt behaves like any other input: it starts a run, steers, follows up, or rejects, and is answered. While queued, its inbox item carries the entry. The kind must not start with `pi.`.\n\n## Reset and Handoff\n\n`reset()` starts a new context. The model no longer sees older entries, but they stay in storage:\n\n```typescript\nawait root.reset(undefined, context);                                  // start from nothing\nawait root.reset(\"We were fixing the flaky login test. Continue.\", context); // start from a handoff note\n```\n\nWhile busy, the reset is queued like a write. When it is placed during a tool round, the current run ends: its inputs settle `unanswered` with reason `reset`, and queued inputs run in the new context.\n\nA tool can return `control: { handoff: \"...\" }` to write the same reset with its text, but the run continues: the next model request starts in the new context, and the submission settles with that eventual answer. Queued writes and steers land after the handoff text, follow-ups wait for the run's end, and a queued `reset()` still ends the run. When every call of the round also returns `terminate: true`, the run ends after the handoff instead.\n\n## Compaction\n\nCompaction shrinks what the model sees: it summarizes older entries and appends a `pi.compaction` entry that holds the summary and heads the first entry it keeps. Older entries stay in storage.\n\n```typescript\nconst id = await root.compact(\"Keep the failing test names\", context); // manual, with optional instructions\nconst { outcome } = (await harness.waitForTask(id, context)).state;\nif (outcome.status === \"completed\" && outcome.result.submissionId !== undefined) {\n\tconst placed = await (await harness.submission(outcome.result.submissionId, context))!.wait(context);\n\tconsole.log(placed.status); // \"done\", or \"unanswered\" with reason \"stale\"\n}\n```\n\nThe conversation keeps working while the summary is made. The summary is placed at once when the conversation is idle, otherwise at the next turn boundary. Esc (`abort()`) cancels a manual compaction.\n\nGeneration also compacts on its own, controlled by the [settings](#settings):\n\n```typescript\nsettings: {\n\tcompaction: {\n\t\tenabled: true, // automatic compaction; manual compact() always works\n\t\treserveTokens: 16384, // above contextWindow - reserveTokens, the next request waits for a compaction\n\t\tkeepRecentTokens: 20000, // roughly how much recent context stays verbatim\n\t\tbackgroundTokens: 32768, // this far below that, a compaction starts in the background; 0 disables it\n\t\tmodelOverrides: {\n\t\t\t// exact \"provider/modelId\"; each field set here replaces the one above for that model\n\t\t\t\"local/small-32k\": { reserveTokens: 4096, keepRecentTokens: 8000, back","readmeFilename":"README.md"}