{"_id":"@actos-voice/core","_rev":"5-891951f8bae22591267c4baa413d3185","name":"@actos-voice/core","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@actos-voice/core","version":"0.1.0","keywords":["voice","ai","asr","llm","realtime"],"author":{"name":"patrick-mns"},"license":"MIT","_id":"@actos-voice/core@0.1.0","maintainers":[{"name":"patrick-mns","email":"patrick-mns@hotmail.com"}],"dist":{"shasum":"37672ed4eafe4074befb6c6a3e0595adc1bea551","tarball":"https://registry.npmjs.org/@actos-voice/core/-/core-0.1.0.tgz","fileCount":11,"integrity":"sha512-376IKn/7YzQ2TDm6e9NFAY4G7d/gNxG5v66S5TaB00aPu3+ojSFxwKlKfVr6lycjZaurtBHvRdcefXOlBnMrZw==","signatures":[{"sig":"MEUCIE+80spcGA6BSUNslUZJczDqTIyaHero30OsTZZnDVNnAiEAlkz3E/rfy56lp2qtVvDtuIiZcqjlRv+l7djKwU6cMDI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16494},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"6ef99684609a491ace43ac6dad2edb07642359bc","scripts":{"dev":"tsup src/index.ts --format cjs,esm --watch --dts","lint":"eslint src/**/*.ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"patrick-mns","email":"patrick-mns@hotmail.com"},"_npmVersion":"11.6.0","description":"ActosVoice core logic and types","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1768451235779_0.5536318903826958","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Versão obsoleta. Por favor, use a versão 0.1.3 ou superior para as correções mais recentes e suporte ao site oficial."},"0.1.1":{"name":"@actos-voice/core","version":"0.1.1","keywords":["voice","ai","asr","llm","realtime"],"author":{"name":"patrick-mns"},"license":"MIT","_id":"@actos-voice/core@0.1.1","maintainers":[{"name":"patrick-mns","email":"patrick-mns@hotmail.com"}],"homepage":"https://github.com/patrick-mns/actos-voice#readme","bugs":{"url":"https://github.com/patrick-mns/actos-voice/issues"},"dist":{"shasum":"91253f5f9c5e5fe4a66a00788aab7dff416f47d6","tarball":"https://registry.npmjs.org/@actos-voice/core/-/core-0.1.1.tgz","fileCount":12,"integrity":"sha512-U8vWNZX3rPW5jKT8QcvwqRo90m/n2x8kTlyR7nQg2icVakNz0ruWNzU05p8UKqcWIW+XBf/tifVMET8z0xeWzw==","signatures":[{"sig":"MEYCIQDeRg4xtw45/QdYKcipog8Q/CcKu5DIj1xKPVcKjn7P2wIhAO0n2si2xHj/plHW1X7oI6kBxJ3s+QWIDZKrXgu4KBhk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19544},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"93881e211deedddeb3925c484dac806c19d8816e","scripts":{"dev":"tsup src/index.ts --format cjs,esm --watch --dts","lint":"eslint src/**/*.ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"patrick-mns","email":"patrick-mns@hotmail.com"},"repository":{"url":"git+https://github.com/patrick-mns/actos-voice.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.0","description":"ActosVoice core logic and types","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1768451748849_0.3783694285176262","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Versão obsoleta. Por favor, use a versão 0.1.3 ou superior para as correções mais recentes e suporte ao site oficial."},"0.1.2":{"name":"@actos-voice/core","version":"0.1.2","keywords":["voice","ai","asr","llm","realtime"],"author":{"name":"patrick-mns"},"license":"MIT","_id":"@actos-voice/core@0.1.2","maintainers":[{"name":"patrick-mns","email":"patrick-mns@hotmail.com"}],"homepage":"https://github.com/patrick-mns/actos-voice#readme","bugs":{"url":"https://github.com/patrick-mns/actos-voice/issues"},"dist":{"shasum":"8927ae1eddd7c5a3dd81ee81935256cd1e955af6","tarball":"https://registry.npmjs.org/@actos-voice/core/-/core-0.1.2.tgz","fileCount":12,"integrity":"sha512-5ted62CXTjgx9fxhC25kyZzz8EzZlAYv4wJEZlCiss+Rjspl6MWsH/WQaD0JrR/h6VLfntpBfggoojWZBLSwoA==","signatures":[{"sig":"MEUCIH1o/SPR26m5JDV0Nt50wZlU1uYWbbApj+5lARYgpef6AiEA7+q0KPTV7VkH8B1tPhd5Tgn290ORycu1+f/HuodpUIY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22094},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"6782194ec87a27790ffdbc3ac616bc0984a5ac67","scripts":{"dev":"tsup src/index.ts --format cjs,esm --watch --dts","lint":"eslint src/**/*.ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"patrick-mns","email":"patrick-mns@hotmail.com"},"repository":{"url":"git+https://github.com/patrick-mns/actos-voice.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.0","description":"ActosVoice core logic and types","directories":{},"_nodeVersion":"24.8.0","dependencies":{"debug":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0","@types/debug":"^4.1.12"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.2_1768610016990_0.22369840638057625","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Versão obsoleta. Por favor, use a versão 0.1.3 ou superior para as correções mais recentes e suporte ao site oficial."},"0.1.3":{"name":"@actos-voice/core","version":"0.1.3","keywords":["voice","ai","asr","llm","realtime"],"author":{"name":"patrick-mns"},"license":"MIT","_id":"@actos-voice/core@0.1.3","maintainers":[{"name":"patrick-mns","email":"patrick-mns@hotmail.com"}],"homepage":"https://actosvoice.com","bugs":{"url":"https://github.com/patrick-mns/actos-voice/issues"},"dist":{"shasum":"01902cc11f5ce5d775cc397ad9d2d117a5e481d5","tarball":"https://registry.npmjs.org/@actos-voice/core/-/core-0.1.3.tgz","fileCount":12,"integrity":"sha512-vwZTkbat523zKQRtqIk9JlKXsNyENz+HVlx/eBS6uDCd0hbpwjhgwx4+G8dzPWhRH9EAdzpOfd/U/w13sE+UaQ==","signatures":[{"sig":"MEUCIQDb8Ix/go9cBNzpYE5f12cOV5U8g56tk3qVZNFERvypXwIgfwNWWj+8YGa1jGvvP9oJVWWqHHg7+Y/XH8hysXO7YcI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22067},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","gitHead":"b6ba93703acc97a9f49d1a1a32c7f77551b684bb","scripts":{"dev":"tsup src/index.ts --format cjs,esm --watch --dts","lint":"eslint src/**/*.ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts"},"_npmUser":{"name":"patrick-mns","email":"patrick-mns@hotmail.com"},"repository":{"url":"git+https://github.com/patrick-mns/actos-voice.git","type":"git","directory":"packages/core"},"_npmVersion":"11.6.0","description":"ActosVoice core logic and types","directories":{},"_nodeVersion":"24.8.0","dependencies":{"debug":"^4.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0","@types/debug":"^4.1.12"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.3_1768610158514_0.767738796756378","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-01-15T04:27:15.665Z","modified":"2026-01-17T00:37:51.287Z","0.1.0":"2026-01-15T04:27:15.948Z","0.1.1":"2026-01-15T04:35:49.000Z","0.1.2":"2026-01-17T00:33:37.171Z","0.1.3":"2026-01-17T00:35:58.681Z"},"bugs":{"url":"https://github.com/patrick-mns/actos-voice/issues"},"author":{"name":"patrick-mns"},"license":"MIT","homepage":"https://actosvoice.com","keywords":["voice","ai","asr","llm","realtime"],"repository":{"url":"git+https://github.com/patrick-mns/actos-voice.git","type":"git","directory":"packages/core"},"description":"ActosVoice core logic and types","maintainers":[{"name":"patrick-mns","email":"patrick-mns@hotmail.com"}],"readme":"# @actos-voice/core\n\nCore types, interfaces, and controller logic for ActosVoice - A modern voice AI library.\n\n## Installation\n\n```bash\nnpm install @actos-voice/core\n```\n\n## Overview\n\nThis package provides the foundational building blocks for ActosVoice:\n\n- **Core Types** - TypeScript interfaces for ASR, LLM, and Tool providers\n- **Controller** - Central orchestration logic for voice interactions\n- **Tool System** - JSON Schema-based tool calling interface\n\n## Usage\n\nMost users should use [`@actos-voice/react`](https://www.npmjs.com/package/@actos-voice/react) instead of this package directly. This package is primarily for:\n\n- Building custom framework integrations (Vue, Svelte, Angular, etc.)\n- Creating custom ASR or LLM providers\n- Advanced use cases requiring direct controller access\n\n## Core Types\n\n### ASRProvider\n\n```typescript\ninterface ASRProvider {\n  start(): Promise<void>;\n  stop(): void;\n  onTranscript(callback: (text: string) => void): void;\n  onError(callback: (error: Error) => void): void;\n}\n```\n\n### LLMProvider\n\n```typescript\ninterface LLMProvider {\n  load(config?: LLMConfig): Promise<void>;\n  chat(messages: ChatMessage[], tools?: Tool[]): Promise<string>;\n  onProgress(callback: (progress: number) => void): void;\n}\n```\n\n### Tool\n\n```typescript\ninterface Tool {\n  name: string;\n  description: string;\n  parameters: JSONSchema;\n  execute: (args: Record<string, unknown>) => Promise<ToolResult>;\n}\n```\n\n## Example: Custom Integration\n\n```typescript\nimport { VoiceController } from '@actos-voice/core';\nimport { WebSpeechASR } from '@actos-voice/asr-webspeech';\nimport { WebLLM } from '@actos-voice/llm-webllm';\n\nconst controller = new VoiceController({\n  asrProvider: new WebSpeechASR(),\n  llmProvider: new WebLLM(),\n  tools: [\n    {\n      name: 'greet',\n      description: 'Greet the user',\n      parameters: { type: 'object', properties: {} },\n      execute: async () => {\n        console.log('Hello!');\n        return { success: true };\n      }\n    }\n  ]\n});\n\nawait controller.initialize();\nawait controller.startListening();\n```\n\n## Documentation\n\n📚 **[Full Documentation](https://github.com/patrick-mns/actos-voice/tree/main/docs)**\n\n## Related Packages\n\n- [`@actos-voice/react`](https://www.npmjs.com/package/@actos-voice/react) - React hooks and components\n- [`@actos-voice/asr-webspeech`](https://www.npmjs.com/package/@actos-voice/asr-webspeech) - WebSpeech ASR provider\n- [`@actos-voice/llm-webllm`](https://www.npmjs.com/package/@actos-voice/llm-webllm) - WebLLM provider\n\n## License\n\nMIT © [patrick-mns](https://github.com/patrick-mns)\n\n## Links\n\n- [GitHub Repository](https://github.com/patrick-mns/actos-voice)\n- [Report Issues](https://github.com/patrick-mns/actos-voice/issues)\n","readmeFilename":"README.md"}