{"_id":"@ap3x/agent-core","name":"@ap3x/agent-core","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ap3x/agent-core","version":"0.1.0","description":"Agent loop, tool calling, sessions, compaction, and the AgentBackend interface","repository":{"type":"git","url":"git+https://github.com/AP3X-Dev/AP3X.git","directory":"packages/agent-core"},"license":"MIT","publishConfig":{"access":"public"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format esm --clean --tsconfig tsconfig.build.json && tsc -p tsconfig.build.json","prepublishOnly":"node ../../scripts/publish-gate.mjs","test":"vitest run"},"dependencies":{"@ap3x/ai":"0.1.0","yaml":"^2.9.0"},"_id":"@ap3x/agent-core@0.1.0","gitHead":"572dcf9cfde958270d2c9b5404aa5bc1dc2cbeea","bugs":{"url":"https://github.com/AP3X-Dev/AP3X/issues"},"homepage":"https://github.com/AP3X-Dev/AP3X#readme","_nodeVersion":"20.18.2","_npmVersion":"11.5.1","dist":{"integrity":"sha512-NojJIWtXIpMvxno3s2i0oCBZPFPi3VH+RGmukPi99RyRAryukNwxwn0hdMRXjnjcprhQvfF8c7IpsaK/70Uoqw==","shasum":"6d14c57946dfd6e33e059bad907bf7f897cc89aa","tarball":"https://registry.npmjs.org/@ap3x/agent-core/-/agent-core-0.1.0.tgz","fileCount":54,"unpackedSize":310330,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDiTKl/tJWfjVroLdxkPGpkL2YQ90EvDLbCKbJDfjtxWAiBNw1w0L40HBkhKqgu5UT/X0WRLx8NcY6UTWvSPHz0VPw=="}]},"_npmUser":{"name":"botstack","email":"GuerrillaMedia702@gmail.com"},"directories":{},"maintainers":[{"name":"botstack","email":"GuerrillaMedia702@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-core_0.1.0_1785554969062_0.48809595167919406"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-01T03:29:28.946Z","0.1.0":"2026-08-01T03:29:29.199Z","modified":"2026-08-01T03:29:29.424Z"},"maintainers":[{"name":"botstack","email":"GuerrillaMedia702@gmail.com"}],"description":"Agent loop, tool calling, sessions, compaction, and the AgentBackend interface","homepage":"https://github.com/AP3X-Dev/AP3X#readme","repository":{"type":"git","url":"git+https://github.com/AP3X-Dev/AP3X.git","directory":"packages/agent-core"},"bugs":{"url":"https://github.com/AP3X-Dev/AP3X/issues"},"license":"MIT","readme":"# @ap3x/agent-core\n\nThe native agent runtime: a tool-calling loop, a conversation memory substrate, durable sessions, and context compaction — plus the `AgentBackend` seam orchestration builds on.\n\nPart of [AP3X](https://github.com/AP3X-Dev/AP3X) — a TypeScript multi-agent framework.\n\n## Install\n\n```bash\nnpm install @ap3x/agent-core\n```\n\n## What's inside\n\n- **`runAgentLoop`** — the tool-calling agent loop with typed events.\n- **`Conversation`** — the append-only transcript every orchestrator reads and writes, with JSON/YAML persistence, token-budget management, and durable memory files.\n- **Compaction** — automatic context compaction with summary threading across runs.\n- **`defineTool`** — explicit TypeBox parameter schemas; no runtime reflection.\n- **Sessions** — durable session storage with resume and fork.\n- **`AgentBackend`** — the interface orchestration depends on, so runtimes stay swappable.\n- **Typed errors** — a single `AgentError` hierarchy with stable machine-readable codes.\n\n## Documentation\n\nSee the [AP3X repository](https://github.com/AP3X-Dev/AP3X) for architecture notes, the full package map, and examples.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-a0e0ce43061e25e090749947208768ad"}