{"_id":"@akihiiii/ai","name":"@akihiiii/ai","dist-tags":{"latest":"0.1.0-rc.1"},"versions":{"0.1.0-rc.1":{"name":"@akihiiii/ai","version":"0.1.0-rc.1","description":"LLM provider adapters 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","llm","ai","openai","anthropic"],"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"},"scripts":{"build":"node ../../scripts/clean-package-dist.mjs && tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit","test":"vitest run --passWithNoTests"},"_id":"@akihiiii/ai@0.1.0-rc.1","_integrity":"sha512-0lSYaDyPOlS/YPjd0D9TTxmotDPXLiiHSCJRqXN42FxYJCRBGfe1pNm0XwGaGMz8Uh1eiSFTX2P9TNIrxXOHCg==","_resolved":"/private/var/folders/21/czfg80nj58j3tndjdhrwkb0m0000gn/T/e8218dcd1480511e7b99c2a6694b7ccc/akihiiii-ai-0.1.0-rc.1.tgz","_from":"file:akihiiii-ai-0.1.0-rc.1.tgz","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-0lSYaDyPOlS/YPjd0D9TTxmotDPXLiiHSCJRqXN42FxYJCRBGfe1pNm0XwGaGMz8Uh1eiSFTX2P9TNIrxXOHCg==","shasum":"64afe252d863a0cd9508571a48800dc47320cc6f","tarball":"https://registry.npmjs.org/@akihiiii/ai/-/ai-0.1.0-rc.1.tgz","fileCount":37,"unpackedSize":97953,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAuGSw4PMMOoFNJBCGSBcz8IeRe29N1X+wbDNb++t2/9AiALJgJ3vn1Cn3wbFSoFKbzsb2G94mIyTZtFoocOSlWzeQ=="}]},"_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/ai_0.1.0-rc.1_1785130431356_0.8300407862687977"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-27T05:33:51.173Z","0.1.0-rc.1":"2026-07-27T05:33:51.482Z","modified":"2026-07-27T05:33:51.689Z"},"maintainers":[{"name":"akihiiii","email":"1306747319@qq.com"}],"description":"LLM provider adapters for the Zleap Agent SDK","homepage":"https://github.com/Akihiiii/Zleap-Agent-SDK#readme","keywords":["zleap","agent","sdk","llm","ai","openai","anthropic"],"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/ai\n\nLLM provider adapters for the Zleap Agent SDK.\n\n## Overview\n\nThis package provides the AI abstraction layer:\n\n- **Provider adapters** — `AnthropicProvider`, `OpenAiCompatibleProvider`\n- **Model registry** — `ProviderRegistry`, `ModelRegistry`, `AiRegistries`\n- **Streaming** — SSE parsing, streaming event utilities\n- **Embeddings** — `embed()`, `fauxEmbed()` — vector embedding functions\n- **Pricing** — `ModelPricing`, `MODEL_PRICING`, `calculateCost()` — usage cost calculation\n- **Zero runtime dependencies** — pure TypeScript abstraction layer\n\n## Install\n\n```bash\nnpm install @akihiiii/ai\n```\n\n> **Note:** Most users should install `@akihiiii/sdk` instead, which re-exports the public API.\n\n## Supported Models\n\nPricing data included for: Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5, DeepSeek Chat/Reasoner, GPT-4o, GPT-4o-mini.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-9f476726335f28f958c3215d5cf0f151"}