{"_id":"@cognivo/core","name":"@cognivo/core","dist-tags":{"latest":"0.4.0"},"versions":{"0.4.0":{"name":"@cognivo/core","version":"0.4.0","description":"Framework-agnostic AI client and streaming utilities for Cognivo.","keywords":["cognivo","design-system","ui","components"],"license":"MIT","author":{"name":"Cognivo"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/murisd/cognivo.git","directory":"packages/core"},"homepage":"https://cognivo.dev","bugs":{"url":"https://github.com/murisd/cognivo/issues"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.7.0","vite":"^6.0.0","vite-plugin-dts":"^4.0.0","vitest":"^2.1.0"},"scripts":{"build":"vite build","dev":"vite build --watch","test":"vitest run","test:watch":"vitest","bench":"vitest bench","type-check":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@cognivo/core@0.4.0","_integrity":"sha512-DrZqtbf14jQyAx+/Afgjn1fHLLhQJ0BhGIMxahL7Mmry+soM+xc50Tj6hu2eH8EVPdFA4mGESQAkFzK+zB9Uog==","_resolved":"/private/var/folders/ts/mj917p251k38v_z025z2d8ww0000gn/T/c6424ca7703a7f3a03ee0b3a0c6cb0a5/cognivo-core-0.4.0.tgz","_from":"file:cognivo-core-0.4.0.tgz","_nodeVersion":"25.8.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-DrZqtbf14jQyAx+/Afgjn1fHLLhQJ0BhGIMxahL7Mmry+soM+xc50Tj6hu2eH8EVPdFA4mGESQAkFzK+zB9Uog==","shasum":"60f339f9c27aa8a77fcec1e7f9a0d254ff2e962f","tarball":"https://registry.npmjs.org/@cognivo/core/-/core-0.4.0.tgz","fileCount":121,"unpackedSize":441959,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCP+PjgoXKsgECIKhQrc0e0n/55USuyiQJ7uut2Cs7DMwIgbFcmNJ0pGXWeghXnV+K9vagVDH/MshPjx00zJJmtt6U="}]},"_npmUser":{"name":"muriloscigliano","email":"dev@murilo.design"},"directories":{},"maintainers":[{"name":"muriloscigliano","email":"dev@murilo.design"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.4.0_1782873658958_0.7269186923791868"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T02:40:58.809Z","0.4.0":"2026-07-01T02:40:59.094Z","modified":"2026-07-01T02:40:59.287Z"},"maintainers":[{"name":"muriloscigliano","email":"dev@murilo.design"}],"description":"Framework-agnostic AI client and streaming utilities for Cognivo.","homepage":"https://cognivo.dev","keywords":["cognivo","design-system","ui","components"],"repository":{"type":"git","url":"git+https://github.com/murisd/cognivo.git","directory":"packages/core"},"author":{"name":"Cognivo"},"bugs":{"url":"https://github.com/murisd/cognivo/issues"},"license":"MIT","readme":"# @cognivo/core\n\nCore AI integration logic for Cognivo. Framework-agnostic TypeScript package providing:\n\n- AI intent definitions\n- Context and result types\n- Base AI client interface\n- Utilities for data formatting\n\n## Installation\n\n```bash\npnpm add @cognivo/core\n```\n\n## Usage\n\n```typescript\nimport { AiIntent, type AiContext, type AiClient } from '@cognivo/core';\n\n// Define your AI client (or use an adapter)\nclass MyAiClient implements AiClient {\n  async runIntent(intent: AiIntent, context: AiContext) {\n    // Your implementation\n    return { explanation: 'Result', confidence: 0.9 };\n  }\n}\n\n// Use it\nconst client = new MyAiClient();\nconst result = await client.runIntent(AiIntent.EXPLAIN, {\n  dataset: [{ month: 'Jan', spending: 1200 }],\n  meta: { unit: 'USD' },\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-54f9c0cecf47b465479f2f645d3c88f6"}