{"_id":"@akihiiii/store","name":"@akihiiii/store","dist-tags":{"latest":"0.1.0-rc.1"},"versions":{"0.1.0-rc.1":{"name":"@akihiiii/store","version":"0.1.0-rc.1","description":"PostgreSQL + pgvector persistence for the Zleap Agent SDK","license":"MIT","author":{"name":"Zleap","url":"https://zleap.com"},"repository":{"type":"git","url":"git+https://github.com/Akihiiii/Zleap-Agent-SDK.git"},"homepage":"https://github.com/Akihiiii/Zleap-Agent-SDK#readme","bugs":{"url":"https://github.com/Akihiiii/Zleap-Agent-SDK/issues"},"keywords":["zleap","agent","sdk","postgres","pgvector","store"],"type":"module","sideEffects":false,"main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"dependencies":{"@akihiiii/core":"0.1.0-rc.1"},"optionalDependencies":{"pg":"^8.13.1"},"devDependencies":{"@types/pg":"^8.11.10","vitest":"^2.1.8","@akihiiii/ai":"0.1.0-rc.1"},"scripts":{"build":"node ../../scripts/clean-package-dist.mjs && tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit","test":"vitest run --passWithNoTests","migrate":"node dist/migrate.js"},"_id":"@akihiiii/store@0.1.0-rc.1","_integrity":"sha512-OeYoh0gaIcOsG45iCylfS027Du+0KmNOe3zoTZuZ3wZwE6JVm9cO4qoyqm20zJdcNjsifTwsz/Rnibi5fDFhPA==","_resolved":"/private/var/folders/21/czfg80nj58j3tndjdhrwkb0m0000gn/T/e09a1b705d12a48a3b0cbb821a6bae07/akihiiii-store-0.1.0-rc.1.tgz","_from":"file:akihiiii-store-0.1.0-rc.1.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OeYoh0gaIcOsG45iCylfS027Du+0KmNOe3zoTZuZ3wZwE6JVm9cO4qoyqm20zJdcNjsifTwsz/Rnibi5fDFhPA==","shasum":"9f1ee11ec3336334889480d15595ac0e6ca2bae2","tarball":"https://registry.npmjs.org/@akihiiii/store/-/store-0.1.0-rc.1.tgz","fileCount":37,"unpackedSize":294888,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDk/zbJFkKGsjAUPUg5YhFnk0eu0FpOU6hK6/+/btvd+AIhAJggJPAf27U9zbrqDY8C67RqNtSv/EfaQezEHiqtefr6"}]},"_npmUser":{"name":"akihiiii","email":"1306747319@qq.com"},"directories":{},"maintainers":[{"name":"akihiiii","email":"1306747319@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/store_0.1.0-rc.1_1785130437064_0.38470911493274507"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-27T05:33:56.898Z","0.1.0-rc.1":"2026-07-27T05:33:57.211Z","modified":"2026-07-27T05:33:57.394Z"},"maintainers":[{"name":"akihiiii","email":"1306747319@qq.com"}],"description":"PostgreSQL + pgvector persistence for the Zleap Agent SDK","homepage":"https://github.com/Akihiiii/Zleap-Agent-SDK#readme","keywords":["zleap","agent","sdk","postgres","pgvector","store"],"repository":{"type":"git","url":"git+https://github.com/Akihiiii/Zleap-Agent-SDK.git"},"author":{"name":"Zleap","url":"https://zleap.com"},"bugs":{"url":"https://github.com/Akihiiii/Zleap-Agent-SDK/issues"},"license":"MIT","readme":"# @akihiiii/store\n\nPostgreSQL + pgvector persistence for the Zleap Agent SDK.\n\n## Overview\n\nThis package provides the persistence layer:\n\n- **`ZleapStore`** — Full CRUD for agents, sessions, tools, MCP configs, memory records\n- **Core event graph** — `CoreStore` interface for event-sourced data: sources, events, entities\n- **Recall** — Multi-path semantic recall with RRF (Reciprocal Rank Fusion) ranking\n- **Memory extraction** — `CoreExtractor` — extract structured events from conversation\n- **Memory reconciliation** — `CoreMemoryReconciler` — merge and deduplicate memory records\n- **Schema** — Complete PostgreSQL DDL with pgvector support (`schemaSql`, `coreSchemaSql`)\n- **Seed** — `seedSuperAgentDefaults()` — bootstrap with default agent and workspaces\n\n## Install\n\n```bash\nnpm install @akihiiii/store\n```\n\n> **Note:** Most users should install `@akihiiii/sdk` instead, which re-exports the public API.\n\n## Requirements\n\n- PostgreSQL with pgvector extension (or use `@akihiiii/sdk-pglite` for embedded mode)\n- Node.js ≥ 20\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-94ab32927c99070e31f151f402b06ba9"}