{"_id":"@chat-adapter/state-pg","_rev":"29-6fa9c72fbb2d2652f2b541fb2ce151a5","name":"@chat-adapter/state-pg","dist-tags":{"latest":"4.41.0"},"versions":{"4.18.0":{"name":"@chat-adapter/state-pg","version":"4.18.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.18.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"39e74fc8bc579b294af11f4605b9ff40ad6a200f","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.18.0.tgz","fileCount":6,"integrity":"sha512-SzDjwqWQoYupY7tNngsgaGqYk4WtUJNoeg1pzbG0lHytGWKS1Ouqz+365+Ol5d0wBBLiwXgG9rG4hBslPcIchw==","signatures":[{"sig":"MEUCIE7AEvpieeBScgvjnr5bwtYm2IKYPyp8qmY7zLyYM9NTAiEA+7cvxs2M+xOcFwB2Q99WIt823dnb9gJ15njaKd3g5N4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26790},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.18.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/c0e58c38fa08b33bd5547f22c8d4ef26/chat-adapter-state-pg-4.18.0.tgz","_integrity":"sha512-SzDjwqWQoYupY7tNngsgaGqYk4WtUJNoeg1pzbG0lHytGWKS1Ouqz+365+Ol5d0wBBLiwXgG9rG4hBslPcIchw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"pg":"^8.20.0","chat":"4.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.18.0_1772916261494_0.32370546678337764","host":"s3://npm-registry-packages-npm-production"}},"4.19.0":{"name":"@chat-adapter/state-pg","version":"4.19.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.19.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"f688df8af064167fa85a076adf1f9f9a13b46aec","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.19.0.tgz","fileCount":6,"integrity":"sha512-dbAEcKdofdu0pyK3svrdeY2xd9XAJq7GyGoxdC0rbbY/2EnPg6wj9vtydEqQwgaiQf5xW65yDvP5+lqO4vT4lw==","signatures":[{"sig":"MEYCIQD1mc4CMSb8melBC7YOjymJw2VdkQxOcLgaxgnuCaLweQIhAJNivDl8C8ee7AKe4X3sdruz2tqgRcj0BEIHu4ltHgU2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29806},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.19.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/545600584b53131f38e678a4920e582c/chat-adapter-state-pg-4.19.0.tgz","_integrity":"sha512-dbAEcKdofdu0pyK3svrdeY2xd9XAJq7GyGoxdC0rbbY/2EnPg6wj9vtydEqQwgaiQf5xW65yDvP5+lqO4vT4lw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"pg":"^8.20.0","chat":"4.19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.19.0_1773123333833_0.14730498445817908","host":"s3://npm-registry-packages-npm-production"}},"4.20.0":{"name":"@chat-adapter/state-pg","version":"4.20.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.20.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"265624186cebd8c17844707cf7a29ecc36501faa","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.20.0.tgz","fileCount":6,"integrity":"sha512-5EID5Zm9hoguAa7+RXl11/P1iL0iB5U53qfRCmORGfqRyWb0n7WY4Kz1CfgO5eAs+oZsjXObbsNJbXbLFA1OVQ==","signatures":[{"sig":"MEUCIQD2FRxCtPF03VOYO5iiVKgtBM2tR8w24pF2RcZo1EF/qQIgUiTH+s3NfRnJYijDZDxTFAOSarUhG0w7Cvt+I+Ee2KQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35118},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.20.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/ff0005f8a9db8feb6016b40f5714bee1/chat-adapter-state-pg-4.20.0.tgz","_integrity":"sha512-5EID5Zm9hoguAa7+RXl11/P1iL0iB5U53qfRCmORGfqRyWb0n7WY4Kz1CfgO5eAs+oZsjXObbsNJbXbLFA1OVQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"pg":"^8.20.0","chat":"4.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.20.0_1773249032372_0.6373180797120919","host":"s3://npm-registry-packages-npm-production"}},"4.20.1":{"name":"@chat-adapter/state-pg","version":"4.20.1","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.20.1","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"4d1bd966f8fd3cf0f7de7061a232501b44ddb934","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.20.1.tgz","fileCount":6,"integrity":"sha512-CcNaGEFzf4wKOs6I0rbWWfm2GxoPlIjwjcl+IYcv1KxLk5ECyafxCHfAjzbf4C2Ls+/GQaie9Y6FvrvgCoUIAQ==","signatures":[{"sig":"MEYCIQCuI4mXcLU8RHWHz5YM743e+sj3jCV2UGcK/PqrxpeImwIhAJ3dQ+g+2kfNKlv0aDeTWocCBOkZsYMOeKWgsllKvtvy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35118},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.20.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/e14a3584bbdc5ee3d86c9b8da2607408/chat-adapter-state-pg-4.20.1.tgz","_integrity":"sha512-CcNaGEFzf4wKOs6I0rbWWfm2GxoPlIjwjcl+IYcv1KxLk5ECyafxCHfAjzbf4C2Ls+/GQaie9Y6FvrvgCoUIAQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.1","dependencies":{"pg":"^8.20.0","chat":"4.20.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.20.1_1773335366792_0.014720376436834215","host":"s3://npm-registry-packages-npm-production"}},"4.20.2":{"name":"@chat-adapter/state-pg","version":"4.20.2","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.20.2","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"8c1d125aa0eaf20396c579d1a2badda18da07dc2","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.20.2.tgz","fileCount":6,"integrity":"sha512-G2ZwJ8+ItnVAUn1sQn17yZfU7WTXo0nT9Bdeaz4oadcvZe71NGp0TIGDqXLaxgE+/VtmfI+GYoGUL0by7OhWlg==","signatures":[{"sig":"MEYCIQD0gZdEiZDUFlD7BhobEzNayMjogg5Z9zZY5vUZ0n7KAwIhAJag/aOUe0s74prg2gS5O3XRf9f7XwSnkwla02ZuXGiJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35118},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.20.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/b6caba8b664b4746c9f80a3fe13e546b/chat-adapter-state-pg-4.20.2.tgz","_integrity":"sha512-G2ZwJ8+ItnVAUn1sQn17yZfU7WTXo0nT9Bdeaz4oadcvZe71NGp0TIGDqXLaxgE+/VtmfI+GYoGUL0by7OhWlg==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"pg":"^8.20.0","chat":"4.20.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.20.2_1773648160830_0.7052080291420426","host":"s3://npm-registry-packages-npm-production"}},"4.21.0":{"name":"@chat-adapter/state-pg","version":"4.21.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.21.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"6a7f7235a78771ca345be115a2d275f5c36cb46d","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.21.0.tgz","fileCount":6,"integrity":"sha512-h5n2A8fhKOzj+kO3HIBMFpuwAt5wCZsolnNpFMB6/730qsczIV/jaGWyhFfIQUMiUFBGIEvI12mVECKjl1656g==","signatures":[{"sig":"MEQCIC7j5dXfKwDnzyEdDj0xVRudF3BBDfZ862M4O1FofGzsAiBPNxWkfFk9vXE1k7KQDpPU3QMRsEzo7WFA+IewY8IUvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35118},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.21.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/5cd32dcf094c7fecbfeeb9a469d15f62/chat-adapter-state-pg-4.21.0.tgz","_integrity":"sha512-h5n2A8fhKOzj+kO3HIBMFpuwAt5wCZsolnNpFMB6/730qsczIV/jaGWyhFfIQUMiUFBGIEvI12mVECKjl1656g==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.1","dependencies":{"pg":"^8.20.0","chat":"4.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.21.0_1774278568337_0.9993549590437802","host":"s3://npm-registry-packages-npm-production"}},"4.22.0":{"name":"@chat-adapter/state-pg","version":"4.22.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.22.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"414684a68b8c418ec19b939bf138377f268183c0","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.22.0.tgz","fileCount":6,"integrity":"sha512-EvFih7PUjCrcyZowdmqmE9A29RQwSm0gmxMYvwzAvOjDunuC4hHyR95pDQN58h7tfCszX5/+rMJBEU/FRayeiw==","signatures":[{"sig":"MEUCIQDsccDJU6xjWDR2n3BqH93gURsV9ycA5pPWvSMbVgrzZwIgRLKafhsV4HZaQxzJMBOWQB5l0qsOYjPiSusrq2G9B1E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43085},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.22.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/2713af002a7b05ae44d8877ff2c4fc6c/chat-adapter-state-pg-4.22.0.tgz","_integrity":"sha512-EvFih7PUjCrcyZowdmqmE9A29RQwSm0gmxMYvwzAvOjDunuC4hHyR95pDQN58h7tfCszX5/+rMJBEU/FRayeiw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.1","dependencies":{"pg":"^8.20.0","chat":"4.22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.22.0_1774387659966_0.42427552350651454","host":"s3://npm-registry-packages-npm-production"}},"4.23.0":{"name":"@chat-adapter/state-pg","version":"4.23.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.23.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"ba18bce23fab6b187b8d66e0b330c507920f0ba5","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.23.0.tgz","fileCount":6,"integrity":"sha512-4BH1AWytk7ADHOW2pId5Op4I+93kCsP9xm+1CQxuB3L6VCUdxNCN6y39H2hSbBiKYNJSJVf6dHVy/xlNM0zXQA==","signatures":[{"sig":"MEUCIHeZneXvAbN2B90K+mvgngS41zHIfiHTsbASlvziejtpAiEA3NqAexbggvO5+jWPVqrXZ1Xt+IPiMwjxCVJP8dObMqM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43085},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.23.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/02bdbc64ee72656c7df34255fe29855e/chat-adapter-state-pg-4.23.0.tgz","_integrity":"sha512-4BH1AWytk7ADHOW2pId5Op4I+93kCsP9xm+1CQxuB3L6VCUdxNCN6y39H2hSbBiKYNJSJVf6dHVy/xlNM0zXQA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.1","dependencies":{"pg":"^8.20.0","chat":"4.23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.23.0_1774489268874_0.4149848548752322","host":"s3://npm-registry-packages-npm-production"}},"4.24.0":{"name":"@chat-adapter/state-pg","version":"4.24.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.24.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"90f992826e9cf2d23a7f4c8352689a7bc9859395","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.24.0.tgz","fileCount":5,"integrity":"sha512-5262lFupg3h2bqcJlOqSUO1Uy4Yj5ukCT+TV3oEli63LfzrOtNfvFP46jH0o0anVfxJ6IYMsb5mnsKp/u9YJsA==","signatures":[{"sig":"MEUCIQCr1HA9A5P5ihNvY11cciMEy2DIozRNeJ6qEmhN7QjiXQIgTWtABEjVlKlqfcasHYFdNUgDwQQthBttYZ95pAJ4H2Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20880},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.24.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/4fcbd3e50e152a36de40c0593fd8df99/chat-adapter-state-pg-4.24.0.tgz","_integrity":"sha512-5262lFupg3h2bqcJlOqSUO1Uy4Yj5ukCT+TV3oEli63LfzrOtNfvFP46jH0o0anVfxJ6IYMsb5mnsKp/u9YJsA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"pg":"^8.20.0","chat":"4.24.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.24.0_1775566323839_0.719263007166786","host":"s3://npm-registry-packages-npm-production"}},"4.25.0":{"name":"@chat-adapter/state-pg","version":"4.25.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.25.0","maintainers":[{"name":"haydenbleasel","email":"hello@haydenbleasel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"b77b4e4af02aede404abde48647a1645d16acd2b","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.25.0.tgz","fileCount":5,"integrity":"sha512-S2kZCIRm1tZg/srG8q491cLhZ/dbHRAROIskfasTGh46xyqgIWubVrlD4e8RhMfFwmbGdK4mLKzvvjhU5z4XtQ==","signatures":[{"sig":"MEUCIQCombnm5kZW1z7d2VLj3L1r6aWyNw/+yF6ujHq4tZLMUwIgSAhmDao+I/mJjujXlTnBjmwS7DqOv2qOfDj5C8to7Ws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20880},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.25.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/f87a76f8229e379dcd3ddf7f27a68c92/chat-adapter-state-pg-4.25.0.tgz","_integrity":"sha512-S2kZCIRm1tZg/srG8q491cLhZ/dbHRAROIskfasTGh46xyqgIWubVrlD4e8RhMfFwmbGdK4mLKzvvjhU5z4XtQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"pg":"^8.20.0","chat":"4.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.25.0_1775866002224_0.8221351839323434","host":"s3://npm-registry-packages-npm-production"}},"4.26.0":{"name":"@chat-adapter/state-pg","version":"4.26.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.26.0","maintainers":[{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"3360da9cfbb5fd2d33b43f5c2f51236dad7dff74","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.26.0.tgz","fileCount":5,"integrity":"sha512-YnLDURfimQfZx7qeqoN2IdFpOH0xk4DUQcIDvNNnsgId6z40Lh4CyJqoZpiHE+y8EHAy3kJf43plWfxJVuB50A==","signatures":[{"sig":"MEQCIEI9gZ3eNENDvOFy7giVDvTEkkni+FaWzPQlvCQebzGwAiBan+EEkGVZdDrNTk9DY6x9WWWkIhhBI+TtamOZYX1ugQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20880},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.26.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"cramforce","email":"malte.ubl@gmail.com"},"_resolved":"/tmp/6d9994b41019b6c8cecf0f5df3a120e6/chat-adapter-state-pg-4.26.0.tgz","_integrity":"sha512-YnLDURfimQfZx7qeqoN2IdFpOH0xk4DUQcIDvNNnsgId6z40Lh4CyJqoZpiHE+y8EHAy3kJf43plWfxJVuB50A==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"10.8.2","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"pg":"^8.20.0","chat":"4.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.26.0_1776132789096_0.5549092122695314","host":"s3://npm-registry-packages-npm-production"}},"4.27.0":{"name":"@chat-adapter/state-pg","version":"4.27.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.27.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"b911cadcdebc52543e938fa5a8ef1f450f51ddcc","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.27.0.tgz","fileCount":5,"integrity":"sha512-6mOXpt1jJ+ZG5VHEY5Fb5T9/V3XNB7q8TrhTU+u0Sqn9wA8ql0/2Wn6hkW5kif5eYCZW8jXmx/jmWr3jxRT53w==","signatures":[{"sig":"MEQCIC7VnRdrM6xg6Cv4s2Nx46xoRiI/jLExkKoCk5/HGKZaAiBNwnXrwNNUNWUrlKNCs958Y1K6yUvaUpEhc34qlWVZmw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.27.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21205},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.27.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/a4d744a645ea621b4438faf0a98d3b64/chat-adapter-state-pg-4.27.0.tgz","_integrity":"sha512-6mOXpt1jJ+ZG5VHEY5Fb5T9/V3XNB7q8TrhTU+u0Sqn9wA8ql0/2Wn6hkW5kif5eYCZW8jXmx/jmWr3jxRT53w==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.11.0","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"24.14.1","dependencies":{"pg":"^8.20.0","chat":"4.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.27.0_1777581979364_0.5734252517313976","host":"s3://npm-registry-packages-npm-production"}},"4.28.1":{"name":"@chat-adapter/state-pg","version":"4.28.1","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.28.1","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"2a7054251e38a69c40e09ed2069b73aefb0690a8","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.28.1.tgz","fileCount":5,"integrity":"sha512-/obIAWD161Q8oMwxGc1vABVhH+nAaSM6MLCaQ3EaoN0A1sHbY9W9aXQdB2F7+EhvhtWmNDsxBLZryNCL7jZgfA==","signatures":[{"sig":"MEQCIGwQk5M4agG05hPL0f1IdfyPHm0NChpd2p/V0eaxs7NGAiAppWXI2FerOWiKBWD5f5c4qF04L2+ifosX4ZXMfHr2XA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.28.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21205},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.28.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/f69be4bf553d0b9c78a55f92fa0dcf6a/chat-adapter-state-pg-4.28.1.tgz","_integrity":"sha512-/obIAWD161Q8oMwxGc1vABVhH+nAaSM6MLCaQ3EaoN0A1sHbY9W9aXQdB2F7+EhvhtWmNDsxBLZryNCL7jZgfA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.11.0","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"24.14.1","dependencies":{"pg":"^8.20.0","chat":"4.28.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.28.1_1778238890089_0.8269054319101989","host":"s3://npm-registry-packages-npm-production"}},"4.29.0":{"name":"@chat-adapter/state-pg","version":"4.29.0","keywords":["chat","state","postgres","production"],"license":"MIT","_id":"@chat-adapter/state-pg@4.29.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"70c4b43e318261ecda17f1d7c55553e790871239","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.29.0.tgz","fileCount":5,"integrity":"sha512-ocKWDly9my4kftWdVdfE/b9UczRBUFSPrxEHzQAPDNfkt1PjcIKFjDjWIADYSCeUL1MqLjSnu8pM3BE96kUJGQ==","signatures":[{"sig":"MEUCIQDRJxFcxKdddq1Ei547Z9d06ka8CzIDL2ccpkoAZWko/wIgE2FZDlKoohlodc/QXi/DpCXA1o+OqeoJgkiC90o99oo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.29.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21832},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.29.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/6a449392d6f1a3d146ac5f2ac0388bcb/chat-adapter-state-pg-4.29.0.tgz","_integrity":"sha512-ocKWDly9my4kftWdVdfE/b9UczRBUFSPrxEHzQAPDNfkt1PjcIKFjDjWIADYSCeUL1MqLjSnu8pM3BE96kUJGQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.12.1","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"24.15.0","dependencies":{"pg":"^8.20.0","chat":"4.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.29.0_1779114161039_0.4611744233245221","host":"s3://npm-registry-packages-npm-production"}},"4.30.0":{"name":"@chat-adapter/state-pg","version":"4.30.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","subscriptions","distributed-lock","production","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.30.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://github.com/vercel/chat#readme","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"0a7242d90760e625d3815a215e246d3ee803d122","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.30.0.tgz","fileCount":5,"integrity":"sha512-8qymxX34Fg7B0PJCoYi60Bck68Gnd4cW4U8hgvJBc5ZHm8K4XT4srV8G3AeDT7rVSmrW5diidcmROo8Z1ke6iw==","signatures":[{"sig":"MEQCIHygKr7ELmAQ61R8ScCQPJtlAg97uGTqjoM/4D/H7xILAiBAs3kQbLzAgNvVcQS3lv/PJ6lJU393g5gwczotaksPFA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.30.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":21946},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.30.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/841f219d870ea67020f06864ba2430af/chat-adapter-state-pg-4.30.0.tgz","_integrity":"sha512-8qymxX34Fg7B0PJCoYi60Bck68Gnd4cW4U8hgvJBc5ZHm8K4XT4srV8G3AeDT7rVSmrW5diidcmROo8Z1ke6iw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.13.0","description":"Postgres state adapter for chat (production)","directories":{},"_nodeVersion":"24.16.0","dependencies":{"pg":"^8.20.0","chat":"4.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.30.0_1780363959305_0.5924742092815396","host":"s3://npm-registry-packages-npm-production"}},"4.31.0":{"name":"@chat-adapter/state-pg","version":"4.31.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.31.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"1dc4b9cefe7544f6ebda208649532e9e4ae4890e","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.31.0.tgz","fileCount":5,"integrity":"sha512-cKCjWh4q+w85TGZzTAXpQcDbRVzOy/M/ZEyax3y3/BSrjzy/fxNnhcsuvvNrGKR6605bf404b+tuPQ0wcmgNLA==","signatures":[{"sig":"MEQCIHzlKIfwmFmNFau2mFwR8XsKMFoc4e0P26HbrOpqigy0AiBbuQ1oetc6XXA5Ak2FSPyFU54c7Ox+YV6am1rumDWSSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.31.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23569},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.31.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/f8fa1d48beda6083a45ddd3101b5707a/chat-adapter-state-pg-4.31.0.tgz","_integrity":"sha512-cKCjWh4q+w85TGZzTAXpQcDbRVzOy/M/ZEyax3y3/BSrjzy/fxNnhcsuvvNrGKR6605bf404b+tuPQ0wcmgNLA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.13.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.16.0","dependencies":{"pg":"^8.20.0","chat":"4.31.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.31.0_1781604381884_0.34572660514333187","host":"s3://npm-registry-packages-npm-production"}},"4.32.0":{"name":"@chat-adapter/state-pg","version":"4.32.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.32.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"3e8cd8a42644efa6e227000158364298edf7aaea","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.32.0.tgz","fileCount":5,"integrity":"sha512-8Ic3Qc+ddLQ4UaBY/ON7XfLPwDROEsd5hrzCNT0KWdCH4rAHrnXe2VUAY4yoO3lXLt6NQtUIIxV97+xPrmW09A==","signatures":[{"sig":"MEUCIECRAlsRYcIFE8S217QE6+y3MNQoUJdhaA0xiNRFOCxwAiEA8TR7qqhnpt2NTOoAujoKFLRGxLy8spg8bh5Z08rcz/w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.32.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23650},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.32.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/d731c59a2f51365f3ad09096770ec083/chat-adapter-state-pg-4.32.0.tgz","_integrity":"sha512-8Ic3Qc+ddLQ4UaBY/ON7XfLPwDROEsd5hrzCNT0KWdCH4rAHrnXe2VUAY4yoO3lXLt6NQtUIIxV97+xPrmW09A==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.32.0_1782878723014_0.5457757476161196","host":"s3://npm-registry-packages-npm-production"}},"4.33.0":{"name":"@chat-adapter/state-pg","version":"4.33.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.33.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"6de283663e52b7047bbefb0db23780530d102c54","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.33.0.tgz","fileCount":5,"integrity":"sha512-IqKqaO9Yc5AP5YLom8elw2qRrW4Nq7+RpE6VAdpSpaxaOrbv4yPr+malFS7osUgWp1vNSKsYSJlaKE0m5H/x9g==","signatures":[{"sig":"MEYCIQD6gcbevT99zE9zK63iUht80So/fJS7DF6buTsNh2FIDQIhAJUnk/aGxeNavT3p9SV3DpyB2vjVXx8xR+L//P664Xeq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.33.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23650},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.33.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/045fc5feb9f516252bd2499960139700/chat-adapter-state-pg-4.33.0.tgz","_integrity":"sha512-IqKqaO9Yc5AP5YLom8elw2qRrW4Nq7+RpE6VAdpSpaxaOrbv4yPr+malFS7osUgWp1vNSKsYSJlaKE0m5H/x9g==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.33.0_1783463367098_0.3105358311097417","host":"s3://npm-registry-packages-npm-production"}},"4.34.0":{"name":"@chat-adapter/state-pg","version":"4.34.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.34.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"fd2eb40ddd009b58294e491efae09df4ff5769d8","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.34.0.tgz","fileCount":5,"integrity":"sha512-Z/SgoLUO0eRHpNEiuRz1NvaHizUAGPnFPc3hHmF9RrEExHGrXNMxuArk+9444wZ+Ahev0EoIXdGRVKm6FQLMzQ==","signatures":[{"sig":"MEQCIC/WtfnqjSgaye5+PYnGdwKmF/jkLn124f0OxptWescLAiAFaqF4QFh0bRHgTNn8QcJvirUWa3zDpVYsYkmLgu/VvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.34.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23650},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.34.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/bf479b5009ec407302ccf5d8a18699cc/chat-adapter-state-pg-4.34.0.tgz","_integrity":"sha512-Z/SgoLUO0eRHpNEiuRz1NvaHizUAGPnFPc3hHmF9RrEExHGrXNMxuArk+9444wZ+Ahev0EoIXdGRVKm6FQLMzQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.34.0_1783957681318_0.19668633047023687","host":"s3://npm-registry-packages-npm-production"}},"4.35.0":{"name":"@chat-adapter/state-pg","version":"4.35.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.35.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"be196cdc536850f8c006c20d635c02842307c4da","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.35.0.tgz","fileCount":5,"integrity":"sha512-QnZXJ9ERfXqwV38tEB0RUBxxPZT/gW4WPykZwWH2R2aPB/atsehplAvNt6zeHVWdpAwEgd89SHuz6oSABQ/blw==","signatures":[{"sig":"MEUCIQDRRf8yGbyvQsXrY0xx82CIu23/gBRsKuXKn8hjFe2t5QIgHML9lA80BpJDn0NKcCo9+2h9ekYR319lQVKItHowWnc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.35.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.35.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/2bbbf68ad9acc3e41b6728f477274ccc/chat-adapter-state-pg-4.35.0.tgz","_integrity":"sha512-QnZXJ9ERfXqwV38tEB0RUBxxPZT/gW4WPykZwWH2R2aPB/atsehplAvNt6zeHVWdpAwEgd89SHuz6oSABQ/blw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.35.0_1784928475459_0.2897676426116118","host":"s3://npm-registry-packages-npm-production"}},"4.36.0":{"name":"@chat-adapter/state-pg","version":"4.36.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.36.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"ffbadc506a482df96ff4077acf4d9a6350d59e05","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.36.0.tgz","fileCount":5,"integrity":"sha512-iqSJ5XGHBEO/4anvWD423ZnZO7qBxGSNena4o1IHbMMQHCVYUooK2+JxF282bRS1YVZ1tue9shb0+jdYCXUprA==","signatures":[{"sig":"MEUCIA6IH8DUMzllBb/OVjJX+jUrT2cR2phT0zk60YOOQcB0AiEAlA3ywiKR6AB+o9lJ09g8Pmsu2HdAPdXyydjrC84AF+c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.36.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.36.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/79e82f37f118e9f78e4a381db17aba20/chat-adapter-state-pg-4.36.0.tgz","_integrity":"sha512-iqSJ5XGHBEO/4anvWD423ZnZO7qBxGSNena4o1IHbMMQHCVYUooK2+JxF282bRS1YVZ1tue9shb0+jdYCXUprA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.36.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.36.0_1785543975041_0.3607942390732286","host":"s3://npm-registry-packages-npm-production"}},"4.37.0":{"name":"@chat-adapter/state-pg","version":"4.37.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.37.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"0b42d86a817f4aa7064437e0f094a97642a9dd89","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.37.0.tgz","fileCount":5,"integrity":"sha512-lfCt2S1yZ/pV/gt76xjds8ZKM9y1Wriw1DIhuEOZ55brWJB6PShMuLxLc2RznM5ciWwqhSoY3q9x8UjWgtn9UA==","signatures":[{"sig":"MEUCIQCDrQDKdvtW/2OPtJ4BGPYRZRX/aQHQteHdhhANiwx7bQIgdPf2kHK0MML0+LmuHPwHp/ahzkgeUD3cKC19OMflxVM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.37.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.37.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/84c4d6c2e1313629014e913f0f54c213/chat-adapter-state-pg-4.37.0.tgz","_integrity":"sha512-lfCt2S1yZ/pV/gt76xjds8ZKM9y1Wriw1DIhuEOZ55brWJB6PShMuLxLc2RznM5ciWwqhSoY3q9x8UjWgtn9UA==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.16.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.18.0","dependencies":{"pg":"^8.20.0","chat":"4.37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.37.0_1786124204940_0.28814437105449997","host":"s3://npm-registry-packages-npm-production"}},"4.38.0":{"name":"@chat-adapter/state-pg","version":"4.38.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.38.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"de8197568c5981d1035cf7137ba1d57bbefc57c9","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.38.0.tgz","fileCount":5,"integrity":"sha512-ZMtPx4MPOzqEP20v1rMoyG4NjiK9RpLq6vJnJlWsAzhg1C74sWt2o5kNwUjXmINdqRLLYYiD7Y/nDvnSxjoCAg==","signatures":[{"sig":"MEQCICRuC31MX3njYv206HZfokCFX0k/YhlLIiA1lzb0dKWRAiARQgJZJS8U89g74IabVmXQVhqmPgP9tpV+hO/XL5kKjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.38.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.38.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/320fd8ba799a038fef0e91ede2217b65/chat-adapter-state-pg-4.38.0.tgz","_integrity":"sha512-ZMtPx4MPOzqEP20v1rMoyG4NjiK9RpLq6vJnJlWsAzhg1C74sWt2o5kNwUjXmINdqRLLYYiD7Y/nDvnSxjoCAg==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.17.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.19.0","dependencies":{"pg":"^8.20.0","chat":"4.38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.38.0_1786736165735_0.28378296999873687","host":"s3://npm-registry-packages-npm-production"}},"4.38.1":{"name":"@chat-adapter/state-pg","version":"4.38.1","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.38.1","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"e88ac2120fb7afa6e2bb52570fcc9fdc33e11bed","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.38.1.tgz","fileCount":5,"integrity":"sha512-kwr6gfwhp1DjJXlWuMbGq5f36MF0v9A19/gPXLUh/1n188MGoR4eYPFE+QS/VKWl9Pimxh564i+rZ5m41zE5kw==","signatures":[{"sig":"MEYCIQCXEEbzafE7oqzmkL2z2nFRPSTExLIlul554vamMauqjQIhAMcuBId6BN60PpgBY0MtdqUqT6sSlvahWM7+pR9CPGvT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.38.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.38.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/fd543b13f015c38bbf7dfddc30b50f83/chat-adapter-state-pg-4.38.1.tgz","_integrity":"sha512-kwr6gfwhp1DjJXlWuMbGq5f36MF0v9A19/gPXLUh/1n188MGoR4eYPFE+QS/VKWl9Pimxh564i+rZ5m41zE5kw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.17.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.19.0","dependencies":{"pg":"^8.20.0","chat":"4.38.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.38.1_1787001318330_0.10759447054096438","host":"s3://npm-registry-packages-npm-production"}},"4.39.0":{"name":"@chat-adapter/state-pg","version":"4.39.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.39.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"0eaa92e787104a217a18554f7d072b7a48789dd4","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.39.0.tgz","fileCount":5,"integrity":"sha512-PJWX4gPkBubHj3K7FhBbASavmbI6qpAVcQHl+7yrR07NKWcZVZ2d9154keR/+vFpyvI4S/pn1gfnoW8DrUqaWQ==","signatures":[{"sig":"MEUCIQDA0qu9hrHT/baF2G54mIkUJ1IP9C1qRiSPY91bDehPywIgG2Axx+KYDLYymGz6vcFMAgFC/a1ThBudDN+V2kaV2Lo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.39.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.39.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/7d462a21c0b575fffd15683327852168/chat-adapter-state-pg-4.39.0.tgz","_integrity":"sha512-PJWX4gPkBubHj3K7FhBbASavmbI6qpAVcQHl+7yrR07NKWcZVZ2d9154keR/+vFpyvI4S/pn1gfnoW8DrUqaWQ==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.17.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.19.0","dependencies":{"pg":"^8.20.0","chat":"4.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.39.0_1787913886658_0.33404028728431157","host":"s3://npm-registry-packages-npm-production"}},"4.40.0":{"name":"@chat-adapter/state-pg","version":"4.40.0","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"license":"MIT","_id":"@chat-adapter/state-pg@4.40.0","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"homepage":"https://chat-sdk.dev/adapters/official/postgres","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"eabdbbb7e167e46ad24a5263ba815bf7a9949766","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.40.0.tgz","fileCount":5,"integrity":"sha512-EmUAgJNLF0dpF1cm4sw4NKxVmtunYiqGoNADiasW/T/JhKiJLCH9KMhjtxG5ZgEwORGvcKGEOCnhocTY/fylcw==","signatures":[{"sig":"MEYCIQDBPJBCh0OvHVY3s9aiiHehw0MNgzaaGM1nFjMCOh/EEgIhAMUvHBAxv0zQHg60uch36zsK8DBxxKHVH+Odsn8bntKl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.40.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":23872},"main":"./dist/index.js","type":"module","_from":"file:chat-adapter-state-pg-4.40.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"_resolved":"/tmp/68d6bd98cd4346836c5b278210b8d718/chat-adapter-state-pg-4.40.0.tgz","_integrity":"sha512-EmUAgJNLF0dpF1cm4sw4NKxVmtunYiqGoNADiasW/T/JhKiJLCH9KMhjtxG5ZgEwORGvcKGEOCnhocTY/fylcw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.19.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"_nodeVersion":"24.20.0","dependencies":{"pg":"^8.20.0","chat":"4.40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/state-pg_4.40.0_1788588871483_0.01726518806807298","host":"s3://npm-registry-packages-npm-production"}},"4.41.0":{"_id":"@chat-adapter/state-pg@4.41.0","bugs":{"url":"https://github.com/vercel/chat/issues"},"dist":{"shasum":"96f45efac2d90d853f24b65d76350c222fe605b7","tarball":"https://registry.npmjs.org/@chat-adapter/state-pg/-/state-pg-4.41.0.tgz","fileCount":5,"integrity":"sha512-VuKDZIPrvdwZLhubjuvX8orQmZZUqtuuTyebxzwQl29sPIQJO7mvHzpdYvdo4Y+xd728wiBKZkE4XxUNc5awxw==","signatures":[{"sig":"MEUCIQCPjfgtbUCVpUu+h1Hg6Ui0KCSHwoYc3ocO1Cys0LkcngIgdkhFJwG8pzP1O8zn1wsVB5j9NhSlmVo30VvWCvzHnZQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAQMReApbmCzt7AWBlCTA8miOu5nmW7/s1h+XdLArtDPAiEAv6+m3Hce+CiPhjZDq8PQR7SxOlJAyB+wag9EhY3Qbbk="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@chat-adapter%2fstate-pg@4.41.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32873},"main":"./dist/index.js","name":"@chat-adapter/state-pg","type":"module","_from":"file:chat-adapter-state-pg-4.41.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"license":"MIT","scripts":{"dev":"tsup --watch","test":"vitest run --coverage","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"version":"4.41.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84400886-bc3c-4bcd-873c-94fe78f19467"}},"homepage":"https://chat-sdk.dev/adapters/official/postgres","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"_resolved":"/tmp/17dded2fa9bab7fc0d8c0512990a25e1/chat-adapter-state-pg-4.41.0.tgz","_integrity":"sha512-VuKDZIPrvdwZLhubjuvX8orQmZZUqtuuTyebxzwQl29sPIQJO7mvHzpdYvdo4Y+xd728wiBKZkE4XxUNc5awxw==","repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"_npmVersion":"11.19.0","description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","directories":{},"maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"_nodeVersion":"24.20.0","dependencies":{"pg":"^8.20.0","chat":"4.41.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^4.0.18","@types/pg":"^8.18.0","typescript":"^5.7.2","@types/node":"^25.3.2","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/state-pg_4.41.0_1789735032630_0.657558237186451"}}},"time":{"created":"2026-03-07T20:44:21.429Z","modified":"2026-09-18T12:37:13.122Z","4.18.0":"2026-03-07T20:44:21.645Z","4.19.0":"2026-03-10T06:15:33.986Z","4.20.0":"2026-03-11T17:10:32.575Z","4.20.1":"2026-03-12T17:09:26.926Z","4.20.2":"2026-03-16T08:02:40.971Z","4.21.0":"2026-03-23T15:09:28.508Z","4.22.0":"2026-03-24T21:27:40.113Z","4.23.0":"2026-03-26T01:41:09.019Z","4.24.0":"2026-04-07T12:52:03.971Z","4.25.0":"2026-04-11T00:06:42.346Z","4.26.0":"2026-04-14T02:13:09.245Z","4.27.0":"2026-04-30T20:46:19.508Z","4.28.1":"2026-05-08T11:14:50.224Z","4.29.0":"2026-05-18T14:22:41.178Z","4.30.0":"2026-06-02T01:32:39.457Z","4.31.0":"2026-06-16T10:06:22.038Z","4.32.0":"2026-07-01T04:05:23.135Z","4.33.0":"2026-07-07T22:29:27.247Z","4.34.0":"2026-07-13T15:48:01.472Z","4.35.0":"2026-07-24T21:27:55.601Z","4.36.0":"2026-08-01T00:26:15.203Z","4.37.0":"2026-08-07T17:36:45.079Z","4.38.0":"2026-08-14T19:36:05.882Z","4.38.1":"2026-08-17T21:15:18.489Z","4.39.0":"2026-08-28T10:44:47.031Z","4.40.0":"2026-09-05T06:14:31.617Z","4.41.0":"2026-09-18T12:37:12.725Z"},"bugs":{"url":"https://github.com/vercel/chat/issues"},"license":"MIT","homepage":"https://chat-sdk.dev/adapters/official/postgres","keywords":["chat","chat-sdk","state","state-adapter","postgres","postgresql","database","subscriptions","distributed-lock","cache","queues","production","typescript","vercel"],"repository":{"url":"git+https://github.com/vercel/chat.git","type":"git","directory":"packages/state-pg"},"description":"PostgreSQL state adapter for Chat SDK — production subscriptions, distributed locks, cache, lists, and queues","maintainers":[{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"cramforce","email":"malte.ubl@gmail.com"}],"readme":"# @chat-adapter/state-pg\n\n> npm package: [`@chat-adapter/state-pg`](https://www.npmjs.com/package/@chat-adapter/state-pg)\n\n[![Agent Stack](https://img.shields.io/badge/Agent%20Stack-000?style=flat-square&logo=vercel&logoColor=FFF&labelColor=000&color=000)](https://vercel.com/kb/agent-stack)\n[![MIT License](https://img.shields.io/badge/License-MIT-000?style=flat-square&logo=opensourceinitiative&logoColor=white&labelColor=000&color=000)](../../LICENSE)\n\nProduction PostgreSQL state adapter for [Chat SDK](https://chat-sdk.dev) built with [pg](https://www.npmjs.com/package/pg) (node-postgres). Use this when PostgreSQL is your primary datastore and you want state persistence without a separate Redis dependency.\n\nDocumentation: [chat-sdk.dev/adapters/official/postgres](https://chat-sdk.dev/adapters/official/postgres) · Guides: [vercel.com/kb/chat-sdk](https://vercel.com/kb/chat-sdk)\n\n## Installation\n\n```bash\npnpm add @chat-adapter/state-pg\n```\n\n## Scaffold with the CLI\n\nTo scaffold a new Slack bot that uses PostgreSQL for state:\n\n```bash\nnpx create-chat-sdk@latest my-bot --adapter slack postgres\n```\n\nVisit the [adapters directory](https://chat-sdk.dev/adapters) to see other available official and vendor-official adapters.\n\n## Usage\n\n`createPostgresState()` auto-detects `POSTGRES_URL` (or `DATABASE_URL`) so you can call it with no arguments:\n\n```typescript\nimport { Chat } from \"chat\";\nimport { createPostgresState } from \"@chat-adapter/state-pg\";\n\nconst bot = new Chat({\n  userName: \"mybot\",\n  adapters: { /* ... */ },\n  state: createPostgresState(),\n});\n```\n\nTo provide a URL explicitly:\n\n```typescript\nconst state = createPostgresState({\n  url: \"postgres://postgres:postgres@localhost:5432/chat\",\n});\n```\n\n### Using an existing client\n\n```typescript\nimport pg from \"pg\";\n\nconst client = new pg.Pool({ connectionString: process.env.POSTGRES_URL! });\nconst state = createPostgresState({ client });\n```\n\n## Configuration\n\n| Option | Required | Description |\n|--------|----------|-------------|\n| `url` | No* | Postgres connection URL |\n| `client` | No | Existing `pg.Pool` instance |\n| `autoCreateSchema` | No | Create tables and indexes on connect (default: `true`); set to `false` for migrations |\n| `keyPrefix` | No | Prefix for all state rows (default: `\"chat-sdk\"`) |\n| `logger` | No | Logger instance (defaults to `ConsoleLogger(\"info\").child(\"postgres\")`) |\n\n*Either `url`, `POSTGRES_URL`/`DATABASE_URL`, or `client` is required.\n\n## Environment variables\n\n```bash\nPOSTGRES_URL=postgres://postgres:postgres@localhost:5432/chat\n```\n\n## Data model\n\nBy default, the adapter creates these tables and their indexes on `connect()`:\n\n```sql\nchat_state_subscriptions\nchat_state_locks\nchat_state_cache\nchat_state_lists\nchat_state_queues\n```\n\nAll rows are namespaced by `key_prefix`.\n\n### Migration-owned schema\n\nSet `autoCreateSchema: false` when your migrations provision the tables and indexes. The default is `true`.\n\n```typescript\n// Explicit URL, or omit url to use POSTGRES_URL / DATABASE_URL.\nconst state = createPostgresState({\n  url: process.env.POSTGRES_URL,\n  autoCreateSchema: false,\n});\n```\n\nAn existing pool supports the same option. The adapter has no `schemaName` option: every query uses unqualified table names that resolve through the connection's PostgreSQL `search_path`. To keep the tables in a dedicated schema, set the runtime role's default `search_path`. A role default follows the role through connection poolers such as PgBouncer, Neon, and Supabase in transaction mode, which may reject or silently drop per-connection startup parameters.\n\n```sql\nALTER ROLE chat_runtime SET search_path TO chat_state;\n```\n\nOn a direct connection you can set it per connection instead, either with `options` on the pool or with `?options=-c%20search_path%3Dchat_state` on the connection URL.\n\n```typescript\nimport pg from \"pg\";\nimport { createPostgresState } from \"@chat-adapter/state-pg\";\n\nconst client = new pg.Pool({\n  connectionString: process.env.POSTGRES_URL,\n  options: \"-c search_path=chat_state\",\n});\nconst state = createPostgresState({ client, autoCreateSchema: false });\n```\n\nBefore starting the bot, run the adapter migration as the schema owner, using the same `search_path` as the runtime connection. Create your chosen schema first if needed. The adapter exports the complete migration as `postgresSchemaStatements`, an ordered array of statements you can run from your own migration tooling:\n\n```typescript\nimport { postgresSchemaStatements } from \"@chat-adapter/state-pg\";\n\nfor (const statement of postgresSchemaStatements) {\n  await client.query(statement);\n}\n```\n\nIf you would rather keep the migration in SQL, these are the same statements. They make up the complete adapter schema; `bigserial` also creates the list and queue sequences.\n\n```sql\nCREATE TABLE IF NOT EXISTS chat_state_subscriptions (\n  key_prefix text NOT NULL,\n  thread_id text NOT NULL,\n  created_at timestamptz NOT NULL DEFAULT now(),\n  PRIMARY KEY (key_prefix, thread_id)\n);\n\nCREATE TABLE IF NOT EXISTS chat_state_locks (\n  key_prefix text NOT NULL,\n  thread_id text NOT NULL,\n  token text NOT NULL,\n  expires_at timestamptz NOT NULL,\n  updated_at timestamptz NOT NULL DEFAULT now(),\n  PRIMARY KEY (key_prefix, thread_id)\n);\n\nCREATE TABLE IF NOT EXISTS chat_state_cache (\n  key_prefix text NOT NULL,\n  cache_key text NOT NULL,\n  value text NOT NULL,\n  expires_at timestamptz,\n  updated_at timestamptz NOT NULL DEFAULT now(),\n  PRIMARY KEY (key_prefix, cache_key)\n);\n\nCREATE INDEX IF NOT EXISTS chat_state_locks_expires_idx\n  ON chat_state_locks (expires_at);\n\nCREATE INDEX IF NOT EXISTS chat_state_cache_expires_idx\n  ON chat_state_cache (expires_at);\n\nCREATE TABLE IF NOT EXISTS chat_state_lists (\n  key_prefix text NOT NULL,\n  list_key text NOT NULL,\n  seq bigserial NOT NULL,\n  value text NOT NULL,\n  expires_at timestamptz,\n  PRIMARY KEY (key_prefix, list_key, seq)\n);\n\nCREATE INDEX IF NOT EXISTS chat_state_lists_expires_idx\n  ON chat_state_lists (expires_at);\n\nCREATE TABLE IF NOT EXISTS chat_state_queues (\n  key_prefix text NOT NULL,\n  thread_id text NOT NULL,\n  seq bigserial NOT NULL,\n  value text NOT NULL,\n  expires_at timestamptz NOT NULL,\n  PRIMARY KEY (key_prefix, thread_id, seq)\n);\n\nCREATE INDEX IF NOT EXISTS chat_state_queues_expires_idx\n  ON chat_state_queues (expires_at);\n```\n\nGrant the runtime role access to the schema, all five tables, and both sequences. For example, after creating the objects in a dedicated `chat_state` schema with a separate owner:\n\n```sql\nGRANT USAGE ON SCHEMA chat_state TO chat_runtime;\nGRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA chat_state TO chat_runtime;\nGRANT USAGE ON ALL SEQUENCES IN SCHEMA chat_state TO chat_runtime;\n```\n\nThe runtime role also needs database `CONNECT` permission. It does not need schema `CREATE` permission or table ownership. Adjust the schema and role names to your deployment; these grants apply to existing objects only.\n\nWith this option disabled, `connect()` checks connectivity with `SELECT 1` and then runs one read-only query to verify that all five tables exist and that the current role holds the privileges the adapter uses on each of them: `SELECT`, `INSERT`, and `DELETE` everywhere, `UPDATE` on the locks, cache, and lists tables, and `nextval` on the list and queue sequences through either `USAGE` or `UPDATE`. Identity `seq` columns need no sequence grant. It never issues DDL. If anything is missing, `connect()` rejects with an error naming the problem, so a wrong `search_path` or a forgotten grant fails at startup instead of on the first message. Your application owns migrations for future adapter schema changes too; the changelog for `@chat-adapter/state-pg` lists the statements to run when the schema changes. An externally supplied pool remains open after `disconnect()`.\n\nColumn-level grants are supported for `SELECT`, `INSERT`, and `UPDATE`: the probe checks each column used by the adapter, accepting either a column grant or a table-wide grant. `DELETE` is checked at the table level. The broader grants shown above remain sufficient.\n\n## Features\n\n| Feature | Supported |\n|---------|-----------|\n| Persistence | Yes |\n| Multi-instance | Yes |\n| Subscriptions | Yes |\n| Distributed locking | Yes |\n| Key-value caching | Yes (with TTL) |\n| Automatic table creation | Yes |\n| Key prefix namespacing | Yes |\n\n## Locking considerations\n\nThe Redis state adapters use atomic `SET NX PX` for lock acquisition, which is a single atomic operation. The PostgreSQL adapter uses `INSERT ... ON CONFLICT DO UPDATE WHERE expires_at <= now()`, which relies on Postgres row-level locking. This is safe for most workloads but under extreme contention (many processes competing for the same lock simultaneously) may behave slightly differently than Redis. For high-contention distributed locking, prefer the Redis adapter.\n\n## Expired row cleanup\n\nUnlike Redis (which handles TTL expiry natively), PostgreSQL does not automatically delete expired rows. The adapter performs opportunistic cleanup — expired locks are overwritten on the next `acquireLock()` call, expired cache entries are deleted on the next `get()` call for that key, and expired queue entries for a given thread are purged on the next `enqueue()` or `dequeue()` call. Expired list entries are filtered out on read but never deleted by the adapter.\n\nFor high-throughput deployments, you may want to run a periodic cleanup job:\n\n```sql\nDELETE FROM chat_state_locks WHERE expires_at <= now();\nDELETE FROM chat_state_cache WHERE expires_at <= now();\nDELETE FROM chat_state_lists WHERE expires_at <= now();\nDELETE FROM chat_state_queues WHERE expires_at <= now();\n```\n\n## AI Coding Agents\n\nIf you use an AI coding agent such as OpenAI Codex, Claude Code, or Cursor, install the Chat SDK skill so it knows the SDK APIs, adapter patterns, and project conventions before writing code.\n\n```bash\nnpx skills add vercel/chat\n```\n\nThe skill references bundled documentation in `node_modules/chat/docs`, plus adapter guides and starter templates in the published package.\n\nYou can also install the [Vercel Plugin](https://vercel.com/docs/agent-resources/vercel-plugin) for a broader agent toolkit — it includes the Chat SDK skill alongside specialist agents, agent slash commands, and more:\n\n```bash\nnpx plugins add vercel/vercel-plugin\n```\n\nThe plugin is optional; the skill alone is enough to build with Chat SDK.\n\nFor agent-readable documentation, see [chat-sdk.dev/llms.txt](https://chat-sdk.dev/llms.txt) (page index) or [chat-sdk.dev/llms-full.txt](https://chat-sdk.dev/llms-full.txt) (full text).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}