{"_id":"@agent-base/neon-client","_rev":"7-7fc58c4b7add6a1264953e09e29bba99","name":"@agent-base/neon-client","dist-tags":{"latest":"0.7.0"},"versions":{"1.0.0":{"name":"@agent-base/neon-client","version":"1.0.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@1.0.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"91c2e37f03e27cb3d1b709945047a4a6f1c558dd","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-1.0.0.tgz","fileCount":18,"integrity":"sha512-5XdomP8fpTDc0w7+ptPWgcLBcaEBE20kFmQJucPorCRlBtmlFBDputs/rbIAF48+ClJBmyGYpjGKyIHTXHlqRg==","signatures":[{"sig":"MEUCIH3rrEuzbxkcaMrd4PNgovgPEnfMs0RSEa09YcFCxYOGAiEAgGOz4zvwApDP3rBViOUMbVx8eHvH9kPaKGA6YaQn0sw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29027},"main":"dist/index.js","_from":"file:agent-base-neon-client-1.0.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/132f2b4e02dd0ff607582c195d23a68e/agent-base-neon-client-1.0.0.tgz","_integrity":"sha512-5XdomP8fpTDc0w7+ptPWgcLBcaEBE20kFmQJucPorCRlBtmlFBDputs/rbIAF48+ClJBmyGYpjGKyIHTXHlqRg==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.54.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_1.0.0_1750407434405_0.8175436322583516","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agent-base/neon-client","version":"0.2.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@0.2.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"22bf4116ce0f28ee0b0572f30f71bd5e8e7e5312","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.2.0.tgz","fileCount":18,"integrity":"sha512-ndUVtrtVz2MCCDklGC/U4yk/DVkLNsMLfMH3ztQCcCK+GNkvaEC0XdKGgQIjCAgdtLBUbvv4u1fLh+XOK1e/Cg==","signatures":[{"sig":"MEQCIBln/N2ayPScX1PPtdKtaTZQP7aXCqoRPe3Wk+ybJ9EXAiAVRrRWVh9M+q5zujVh/eQIZ123O62Lg8l1sQOmNOjv7A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34596},"main":"dist/index.js","type":"module","_from":"file:agent-base-neon-client-0.2.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/cfe73648466e286507d579c4083c5223/agent-base-neon-client-0.2.0.tgz","_integrity":"sha512-ndUVtrtVz2MCCDklGC/U4yk/DVkLNsMLfMH3ztQCcCK+GNkvaEC0XdKGgQIjCAgdtLBUbvv4u1fLh+XOK1e/Cg==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.54.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_0.2.0_1750408351635_0.11548672008802763","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agent-base/neon-client","version":"0.3.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@0.3.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"e065020cf0408786972b3ffc33713843d52cd8f9","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.3.0.tgz","fileCount":18,"integrity":"sha512-PwgwgC/7/u0Fzj+QB2xbXtqelYR/IBofzlmUeGJjF1uIoN2E37LNegPD2DqDqmoKHP68r/OZyQGSz5pFkSpfwg==","signatures":[{"sig":"MEYCIQDNdWJXJOR4UgJ8sM29jKfl6qXqn8jGQh3LbRiq2r+xZAIhAO5zNnqu+0K/VwSj9D8yrtpxf/pgGZPEg4AsJjaymtdK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34804},"main":"dist/index.js","type":"module","_from":"file:agent-base-neon-client-0.3.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/e1933d40afbb58a4439b6fcb233fbb58/agent-base-neon-client-0.3.0.tgz","_integrity":"sha512-PwgwgC/7/u0Fzj+QB2xbXtqelYR/IBofzlmUeGJjF1uIoN2E37LNegPD2DqDqmoKHP68r/OZyQGSz5pFkSpfwg==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.54.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_0.3.0_1750410194372_0.008948846335286698","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@agent-base/neon-client","version":"0.4.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@0.4.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"5e780df17363f02e87bd87b29782302a600b9a66","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.4.0.tgz","fileCount":18,"integrity":"sha512-tTqZRdJ3E3D3JRqUSplN0YvK28A6PsmEoE2lADYzUSpldY1BkC+MKXi1S3rIpfq5jGHhvXFXqTecb2tZ8+I2GA==","signatures":[{"sig":"MEQCIB4RHIlm6xkRVlMfVKz2PYVrYhyvIQ2giqBGqgkIkxH8AiAUU9q9Lck7Fu/v1A+4BDnLG1o6TXqpCjK1vyRI2nQPSw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35097},"main":"dist/index.js","type":"module","_from":"file:agent-base-neon-client-0.4.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/463dd29d9437bb64a4252172e0edbe41/agent-base-neon-client-0.4.0.tgz","_integrity":"sha512-tTqZRdJ3E3D3JRqUSplN0YvK28A6PsmEoE2lADYzUSpldY1BkC+MKXi1S3rIpfq5jGHhvXFXqTecb2tZ8+I2GA==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.54.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_0.4.0_1750410350611_0.8570759476718","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@agent-base/neon-client","version":"0.5.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@0.5.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"8a220c361587bee1fdd56b8ab1cd771355204a65","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.5.0.tgz","fileCount":18,"integrity":"sha512-/uiiIld7UYSmH5CDV24W8dI2alBz9AUlSsGv+5X7V5UryrUkOtSyDa3JWRC18IoRq/KPKDjPYsjvvHuYIuBFfg==","signatures":[{"sig":"MEYCIQDF+QFmxvj9AURZkrf2AQRXlHiHWatK+hbf1rTlqNe6HwIhAN/YIqFUHdSGtlQ5Hqa3Vt8fErp5/i4Tcu0rqt7pU6ZY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35097},"main":"dist/index.js","type":"module","_from":"file:agent-base-neon-client-0.5.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/02a266afa1592da04ba56b25f9efa0ee/agent-base-neon-client-0.5.0.tgz","_integrity":"sha512-/uiiIld7UYSmH5CDV24W8dI2alBz9AUlSsGv+5X7V5UryrUkOtSyDa3JWRC18IoRq/KPKDjPYsjvvHuYIuBFfg==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.55.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_0.5.0_1750416281158_0.7204879294857987","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@agent-base/neon-client","version":"0.6.0","keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","_id":"@agent-base/neon-client@0.6.0","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"homepage":"https://github.com/your-org/agent-base-backend#readme","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"dist":{"shasum":"bbe9a4627b8ebb6e695bf8583be29431ea2fe1dc","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.6.0.tgz","fileCount":18,"integrity":"sha512-USZA9TRy7KXoh/T/s8jJliMontlwEgT8kYJnN6tF3XVDc/fQMKQRQFTPdFKpGodd4spWvIpJ/pp2wj+23d9uMQ==","signatures":[{"sig":"MEUCIH/ZPeoxhnCNfrqPuF5QYJ3Eg0fiwjLSBXmVP4hJSzmDAiEAxtlFp3nW6T4rKl2OEIB5GlDU/8OgUYlQDOpLjQTR5i4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35853},"main":"dist/index.js","type":"module","_from":"file:agent-base-neon-client-0.6.0.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","lint":"eslint . --ext .ts","build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"kevinlourd","actor":{"name":"kevinlourd","type":"user","email":"kevin.lourd@gmail.com"},"email":"kevin.lourd@gmail.com"},"_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/3a18718c813b1fb82f901b848ed2784e/agent-base-neon-client-0.6.0.tgz","_integrity":"sha512-USZA9TRy7KXoh/T/s8jJliMontlwEgT8kYJnN6tF3XVDc/fQMKQRQFTPdFKpGodd4spWvIpJ/pp2wj+23d9uMQ==","repository":{"url":"git+https://github.com/your-org/agent-base-backend.git","type":"git","directory":"packages/neon-client"},"_npmVersion":"11.4.1","description":"A client for interacting with Neon databases, including utility functions for project and table management.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"ws":"^8.18.2","uuid":"^9.0.1","dotenv":"^16.5.0","postgres":"^3.4.7","node-fetch":"^3.3.2","@xata.io/client":"^0.30.1","@agent-base/types":"0.58.0","@neondatabase/serverless":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.0","@types/pg":"^8.15.1","@types/ws":"^8.18.1","typescript":"^5.3.3","@types/node":"^22.15.29","@types/uuid":"^9.0.8","@kit/tsconfig":"0.1.0","@kit/eslint-config":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/neon-client_0.6.0_1750677555848_0.9947966961252286","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@agent-base/neon-client","version":"0.7.0","description":"A client for interacting with Neon databases, including utility functions for project and table management.","publishConfig":{"access":"public"},"main":"dist/index.js","types":"dist/index.d.ts","type":"module","repository":{"type":"git","url":"git+https://github.com/your-org/agent-base-backend.git","directory":"packages/neon-client"},"keywords":["neon","database","serverless","postgres"],"author":{"name":"Agent Base"},"license":"MIT","dependencies":{"@neondatabase/serverless":"^1.0.1","@types/jszip":"^3.4.1","@xata.io/client":"^0.30.1","dotenv":"^16.5.0","jszip":"^3.10.1","node-fetch":"^3.3.2","postgres":"^3.4.7","uuid":"^9.0.1","ws":"^8.18.2","@agent-base/types":"0.58.0"},"devDependencies":{"@types/node":"^22.15.29","@types/pg":"^8.15.1","@types/uuid":"^9.0.8","@types/ws":"^8.18.1","eslint":"^8.57.0","typescript":"^5.3.3","@kit/eslint-config":"0.2.0","@kit/tsconfig":"0.1.0"},"scripts":{"build":"tsc","dev":"tsc -w","lint":"eslint . --ext .ts","clean":"rm -rf dist"},"_id":"@agent-base/neon-client@0.7.0","bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"homepage":"https://github.com/your-org/agent-base-backend#readme","_integrity":"sha512-tMTVFUNnN0i50XENU2iyjCHhBbMWV1XSl7svblSovwUuDSfTfQqlFtskiG5BxLz5kHdYxnmaBkFnKIvmhOmiQQ==","_resolved":"/private/var/folders/yv/lw13934150vcg04mpwd2291m0000gn/T/433c63ecfc3778586df1a30c5221db8b/agent-base-neon-client-0.7.0.tgz","_from":"file:agent-base-neon-client-0.7.0.tgz","_nodeVersion":"20.19.1","_npmVersion":"11.4.1","dist":{"integrity":"sha512-tMTVFUNnN0i50XENU2iyjCHhBbMWV1XSl7svblSovwUuDSfTfQqlFtskiG5BxLz5kHdYxnmaBkFnKIvmhOmiQQ==","shasum":"c498aa68c2c008453d1abcdb3ef2e84dd63de004","tarball":"https://registry.npmjs.org/@agent-base/neon-client/-/neon-client-0.7.0.tgz","fileCount":18,"unpackedSize":41529,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEXrqKZvgjRBu+yzd6yGVp2vkqCHaucTPH2LPj76s3JBAiEAqpcdhvshahfNXja0oqGHmG8ds9BxMlGRrLUzFolhTw8="}]},"_npmUser":{"name":"kevinlourd","email":"kevin.lourd@gmail.com","actor":{"name":"kevinlourd","email":"kevin.lourd@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/neon-client_0.7.0_1750827063909_0.6489731671135173"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-20T08:17:14.300Z","modified":"2025-06-25T04:51:04.270Z","1.0.0":"2025-06-20T08:17:14.574Z","0.2.0":"2025-06-20T08:32:31.813Z","0.3.0":"2025-06-20T09:03:14.546Z","0.4.0":"2025-06-20T09:05:50.782Z","0.5.0":"2025-06-20T10:44:41.360Z","0.6.0":"2025-06-23T11:19:16.023Z","0.7.0":"2025-06-25T04:51:04.080Z"},"bugs":{"url":"https://github.com/your-org/agent-base-backend/issues"},"author":{"name":"Agent Base"},"license":"MIT","homepage":"https://github.com/your-org/agent-base-backend#readme","keywords":["neon","database","serverless","postgres"],"repository":{"type":"git","url":"git+https://github.com/your-org/agent-base-backend.git","directory":"packages/neon-client"},"description":"A client for interacting with Neon databases, including utility functions for project and table management.","maintainers":[{"name":"kevinlourd","email":"kevin.lourd@gmail.com"}],"readme":"# @agent-base/neon-client\n\nA powerful client for interacting with [Neon](https://neon.tech) databases, designed for serverless environments. This package provides utility functions for programmatic project and table management, as well as a robust logging service for tool executions.\n\n## Features\n\n- **Dynamic Project Management**: Programmatically create Neon projects.\n- **Table Utilities**: Create, get, and query database tables with simple function calls.\n- **Raw SQL Execution**: A utility to run raw SQL queries for maximum flexibility.\n- **Automated Execution Logging**: Automatically log tool executions to a dedicated table, creating the table if it doesn't exist.\n- **WebSocket-Powered**: Uses a WebSocket-based connection pool for robust, session-based database interactions, ideal for DDL statements.\n- **Built with TypeScript**: Fully typed for a better developer experience.\n\n## Installation\n\n```bash\nnpm install @agent-base/neon-client\n```\n\n## Setup\n\nEnsure you have a `.env` file with your Neon database connection string:\n\n```\nNEON_DATABASE_URL=\"your-neon-connection-string\"\n```\n\nThe client also uses the `NEON_API_KEY` for project creation if you are using the `getOrCreateDbConnection` function (though the recommended usage is direct connection via `NEON_DATABASE_URL`).\n\n## Usage\n\nHere's a quick overview of how to use the key functions provided by the client.\n\n### Creating a Table\n\n```typescript\nimport { createTable } from '@agent-base/neon-client';\n\nconst tableName = 'users';\nconst schema = {\n  id: 'int',\n  name: 'string',\n  email: 'email'\n};\n\nawait createTable(tableName, schema);\nconsole.log(`Table '${tableName}' created successfully.`);\n```\n\n### Querying the Database\n\n```typescript\nimport { executeQuery } from '@agent-base/neon-client';\n\nconst result = await executeQuery('SELECT * FROM users LIMIT 5');\nconsole.log(result);\n```\n\n### Logging Tool Executions\n\nThe client can automatically log the execution of your tools.\n\n```typescript\nimport { logExecution } from '@agent-base/neon-client';\nimport { InternalUtilityTool } from '@agent-base/types';\n\n// Example tool definition\nconst myTool: InternalUtilityTool = {\n  id: 'my_custom_tool',\n  description: 'A custom tool.',\n  schema: {\n    type: 'object',\n    properties: {\n      customParam: { type: 'string' }\n    }\n  },\n  // ... execute function\n};\n\n// Inside your execution logic...\nconst params = { customParam: 'some_value' };\nconst result = { success: true, data: 'Tool executed' };\n\n// This will create a 'tool_my_custom_tool' table if it doesn't exist\n// and insert a row with the execution details.\nawait logExecution(myTool, params, result);\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. ","readmeFilename":"README.md"}