{"_id":"@bernierllc/chat-ai-router","_rev":"13-77d42e602f94b6c4fa1f10a947d69571","name":"@bernierllc/chat-ai-router","dist-tags":{"latest":"1.6.1"},"versions":{"1.0.0":{"name":"@bernierllc/chat-ai-router","version":"1.0.0","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.0.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"5d947af1953971e771f7054214aa0232c8049bf1","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.0.0.tgz","fileCount":90,"integrity":"sha512-2O+OqDKVn3/PGWeXi1mbnWEOuhj6kVqojqxcszXJmFOr0XmuPy8WUB5l1vHih1pbVM23yp1Xlj6VhXb0XsK0Bg==","signatures":[{"sig":"MEYCIQCDHdN+9KhPaLOpQ8lH0ml5RDl1MNQ9SOGUJoaQ83uQmQIhALXLk2jhdclqZYssB8qG7zAgUZ8prJENMMzB72Ps2dCd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255614},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.0.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_resolved":"/tmp/fc6c71864152d8b95ab661b81b330a8e/bernierllc-chat-ai-router-1.0.0.tgz","_integrity":"sha512-2O+OqDKVn3/PGWeXi1mbnWEOuhj6kVqojqxcszXJmFOr0XmuPy8WUB5l1vHih1pbVM23yp1Xlj6VhXb0XsK0Bg==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.7.0","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.19.6","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.0.3","@bernierllc/retry-policy":"0.1.6","@bernierllc/neverhub-adapter":"0.1.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.0.0_1766087433227_0.397521350706326","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bernierllc/chat-ai-router","version":"1.0.1","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.0.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"085e414fc2dab6a32cc846bf9173f32cca0f89ed","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.0.1.tgz","fileCount":91,"integrity":"sha512-eBSR0jJw30pYp/6Qdpodgp7tlCwz7lDIwYZfrS+7n2T803L8kCCVlKLRvnzNsx/+n86lmKlSBFD0yf817kAM5Q==","signatures":[{"sig":"MEYCIQDOxckj3urGx6wB4UBkTYPEggDsRdLksfb6kNCHDF20/QIhAPnCPxPs7/S1h7JARVPA525DzUx+JpLtQ8ALPn/9qZuZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255825},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.0.1.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/tmp/2eb30e4a44963367cff4cf5d98cf31ad/bernierllc-chat-ai-router-1.0.1.tgz","_integrity":"sha512-eBSR0jJw30pYp/6Qdpodgp7tlCwz7lDIwYZfrS+7n2T803L8kCCVlKLRvnzNsx/+n86lmKlSBFD0yf817kAM5Q==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.7.0","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.19.6","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.0.4","@bernierllc/retry-policy":"0.1.6","@bernierllc/neverhub-adapter":"0.1.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.0.1_1766437719976_0.24787264182217283","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bernierllc/chat-ai-router","version":"1.0.2","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.0.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"ac02db4d7ad7edd3423d401ddeb3f2aea0385e8d","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.0.2.tgz","fileCount":91,"integrity":"sha512-ebfroZjzdpEb6EXXjMabHaeyUM8B1IBHht3tV0q7U/qQ8MLkcDTpbvtMtWlfZMQrmZyQdZKbPQWnP7qiniUh8w==","signatures":[{"sig":"MEUCIBy17+hjs98+mmYVcSZ8gQ+1G4DIGd92ehq0Gt1SbQ6/AiEA+E/Lc6f1ZtZW8XeDiWuCCCH4InsLpulkK5qartod7iA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256007},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.0.2.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/tmp/54cd9eff933c6b455663efe3656e0e86/bernierllc-chat-ai-router-1.0.2.tgz","_integrity":"sha512-ebfroZjzdpEb6EXXjMabHaeyUM8B1IBHht3tV0q7U/qQ8MLkcDTpbvtMtWlfZMQrmZyQdZKbPQWnP7qiniUh8w==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.7.0","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.19.6","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.1.0","@bernierllc/retry-policy":"0.1.6","@bernierllc/neverhub-adapter":"0.1.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.0.2_1766454377667_0.05473199117621741","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@bernierllc/chat-ai-router","version":"1.2.0","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"15c92bd097ce37d7a0547a7c5e1c173e814956c2","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.0.tgz","fileCount":91,"integrity":"sha512-HA4eBHyrTmRrh7uA/H7HB94W1SMLifAfqfqlbCBQnuP0YV+w6jDSEzFA7Je0ZDKSKcklF1BweppejOFj4ILtug==","signatures":[{"sig":"MEUCIQCxS7rmVpgeX85JW88ykp4WyS+of4l2xwwDnGBdby/ygQIgLdpo14RflfFerQN4umr9QDO4V4NKj1ZRfPirpqfTaZE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259037},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"af7e74b3715d56d3a193e1bb6743b337c2b0df6d","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"lerna/9.0.3/node@v20.19.6+x64 (linux)","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.19.6","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.3.0","@bernierllc/retry-policy":"0.3.0","@bernierllc/neverhub-adapter":"0.1.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.0_1767642430656_0.6055072203583711","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@bernierllc/chat-ai-router","version":"1.2.1","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"685dddd6ffc4175656c751b66017a6ff35e7507e","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.1.tgz","fileCount":91,"integrity":"sha512-l2TCw4+xxm4iqO612BN1eY4/nSRPE521LPTEYD1jVSpaYpJqNAbAwWSvELjyBDnCiWnCSzYkdUYewfxfy/hIMg==","signatures":[{"sig":"MEQCIBfRGWVofdHEA779GMHhkvp5wiFWIej7mzuwY9tPoHcfAiBI13kxU3Cac7J3aPve+A+5vxO1CVoq0DbE+IsPuJA3QQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259189},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.2.1.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/tmp/7712f7b731b3dfac99e2443881e2cbab/bernierllc-chat-ai-router-1.2.1.tgz","_integrity":"sha512-l2TCw4+xxm4iqO612BN1eY4/nSRPE521LPTEYD1jVSpaYpJqNAbAwWSvELjyBDnCiWnCSzYkdUYewfxfy/hIMg==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.11.0","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.3.1","@bernierllc/retry-policy":"0.3.1","@bernierllc/neverhub-adapter":"0.1.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.1_1773078363172_0.6533479721943458","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@bernierllc/chat-ai-router","version":"1.2.2","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"dbecfec6dab20c34fd1c22dcd6438e92bb0ca89b","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.2.tgz","fileCount":91,"integrity":"sha512-0F9UeEjEHk5VdHQNgarlKPO+cuC9LHzEir7dXnfDFkt+rVy9M6lu5PhHaIisKZEadR5BS5vYKdLwZAs9uQV36A==","signatures":[{"sig":"MEUCIEawln28pw0DxfmwQsXiW1I/n3B5bhQeebrVvtzvQl73AiEAx90nv23zMmEwacPRSRWCqgLsWHYqJ5LFwY44A4SUtgE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259399},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.2.2.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.2.2.tgz","_integrity":"sha512-0F9UeEjEHk5VdHQNgarlKPO+cuC9LHzEir7dXnfDFkt+rVy9M6lu5PhHaIisKZEadR5BS5vYKdLwZAs9uQV36A==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.11.0","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.3.2","@bernierllc/retry-policy":"0.3.2","@bernierllc/neverhub-adapter":"0.1.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.2_1773163034299_0.4513119264147647","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@bernierllc/chat-ai-router","version":"1.2.3","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.3","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"57037a5470ef44059968710f3fdb9a6b570b4c27","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.3.tgz","fileCount":91,"integrity":"sha512-9WWUT0to5l5w9Z1DXxmIBOp2xc056xr0uQkixYiUnVixZk/YGqkqogkwDY5wb7d19VhfwPsxHd7FIw/pJwjAcQ==","signatures":[{"sig":"MEUCIFZxqsgsCq3MN2GbzvFuWM7pMnfF//0lQjYjbwQOtDl6AiEAzWkJozQiniTZHucckXXnUqTgs+KkVe1qWTKInkRcQtY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259609},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.2.3.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.2.3.tgz","_integrity":"sha512-9WWUT0to5l5w9Z1DXxmIBOp2xc056xr0uQkixYiUnVixZk/YGqkqogkwDY5wb7d19VhfwPsxHd7FIw/pJwjAcQ==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.4.0","@bernierllc/retry-policy":"0.4.0","@bernierllc/neverhub-adapter":"0.1.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.3_1779133352055_0.8833625093878157","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@bernierllc/chat-ai-router","version":"1.2.4","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.4","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"4c081684c6b5e93517f820c20a700f2932bc91cb","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.4.tgz","fileCount":91,"integrity":"sha512-3rJn2Lj0WgarcRaeJozRqlugfJk6yhvLBzM+sCk1knPtdcBispMG90pOlPHpPyylXisZO3wj0xQdhwHhvfxT8Q==","signatures":[{"sig":"MEUCIQDRRgF+Ad3ZpgcLQH/C3jBKxaLbv5K3d0ilwioU9tbl0QIgH1JucQXg8H2k5bQIDKSN9V8rPRftOMBRe1cErhAC9zQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":259819},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.2.4.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.2.4.tgz","_integrity":"sha512-3rJn2Lj0WgarcRaeJozRqlugfJk6yhvLBzM+sCk1knPtdcBispMG90pOlPHpPyylXisZO3wj0xQdhwHhvfxT8Q==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.4.2","@bernierllc/retry-policy":"0.5.1","@bernierllc/neverhub-adapter":"0.1.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.4_1779157106925_0.7597625944922044","host":"s3://npm-registry-packages-npm-production"}},"1.2.5":{"name":"@bernierllc/chat-ai-router","version":"1.2.5","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.2.5","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"059b2566b0ef24ea17f001fdcc30a44e97132a75","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.2.5.tgz","fileCount":91,"integrity":"sha512-NNzSmJ1VLoDUURlAuwp1pXOZvj6XlRx1q4vBLLjBZ2F/1Hhfda7w0yC470qQMaSoVWMLIIM831uBfD8OdkVEyg==","signatures":[{"sig":"MEUCIQCIeyRBG0DLqXTPd4dz9LgMoX0MKFi0wYbC15ysK24t0wIgf/yLsYSnqSrxOaVuiSioA2iCfQBAnm/V09omW46oLWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":260029},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.2.5.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.2.5.tgz","_integrity":"sha512-NNzSmJ1VLoDUURlAuwp1pXOZvj6XlRx1q4vBLLjBZ2F/1Hhfda7w0yC470qQMaSoVWMLIIM831uBfD8OdkVEyg==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.4.3","@bernierllc/retry-policy":"0.5.1","@bernierllc/neverhub-adapter":"0.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.2.5_1779221204885_0.8295722485243795","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@bernierllc/chat-ai-router","version":"1.4.0","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.4.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"2e96217a2f586977f6241d77ec99d97e6590a322","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.4.0.tgz","fileCount":58,"integrity":"sha512-cZTHgebw7/ZzkAqkXUCZq1mssZloQ9eOYB1QZtLT5QD9jQKCvJSDDcMFQEWrhQ7BaQrTx3M/YRFL0WYGTpiN+Q==","signatures":[{"sig":"MEUCIAnUvP07pKgpsYxIUeu1eVPh5EfnXAtMf3iab4cnrvUsAiEAi0LqC7tqMHJ2hCWK/cs/qc/LXtRnytJl/KMnRYQVDp8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132120},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.4.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.4.0.tgz","_integrity":"sha512-cZTHgebw7/ZzkAqkXUCZq1mssZloQ9eOYB1QZtLT5QD9jQKCvJSDDcMFQEWrhQ7BaQrTx3M/YRFL0WYGTpiN+Q==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.4.3","@bernierllc/retry-policy":"0.5.1","@bernierllc/neverhub-adapter":"0.2.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.4.0_1779233834935_0.8485463812488065","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@bernierllc/chat-ai-router","version":"1.5.0","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.5.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"506909549210b70bd76dc28137c4c18ef36050ae","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.5.0.tgz","fileCount":58,"integrity":"sha512-BBeJcV09+qZFkiwE8tRX/Ky7C3YZ3TG9XzVGDZTOtOBEwc8+XDT1Awg7wrGqnmsR3TCpfqd3wuKoDEkplyNnqg==","signatures":[{"sig":"MEYCIQD4Q65WARSF5qswF1Kmfse+YRHNKP9Rgvx8wCbdltPJuwIhAIqK/cwR6B9OOrBVWt/H925fOdhXDvuQu9Fe2LHO7Ni2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132120},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.5.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.5.0.tgz","_integrity":"sha512-BBeJcV09+qZFkiwE8tRX/Ky7C3YZ3TG9XzVGDZTOtOBEwc8+XDT1Awg7wrGqnmsR3TCpfqd3wuKoDEkplyNnqg==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.6.0","@bernierllc/retry-policy":"0.6.0","@bernierllc/neverhub-adapter":"0.3.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.5.0_1779240944029_0.7126008192017697","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"@bernierllc/chat-ai-router","version":"1.6.0","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/chat-ai-router@1.6.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"dist":{"shasum":"13de14c0c6a728d52c50839c8eca0df0aa0e471b","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.6.0.tgz","fileCount":58,"integrity":"sha512-dfyQTiRjuKq9J7g/i/RNY7u56C0T5ws7ZGUVrMIi3cbnoStKVS70gDHvvgIw6kH7sFfPxdKVILbP43TmYNo2vA==","signatures":[{"sig":"MEUCIBJqD9bd3LNqtT/Vkk0JM08VVJtFqxZ1pVys7thVwlv0AiEAoxw/riVFRA7mnXfYhM/QHOKDOCFoS0/f1ziIEZjpXVc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":132120},"main":"dist/index.js","_from":"file:bernierllc-chat-ai-router-1.6.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint src/**/*.ts","test":"jest --watch","build":"tsc","clean":"rm -rf dist","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.6.0.tgz","_integrity":"sha512-dfyQTiRjuKq9J7g/i/RNY7u56C0T5ws7ZGUVrMIi3cbnoStKVS70gDHvvgIw6kH7sFfPxdKVILbP43TmYNo2vA==","bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"_npmVersion":"11.14.1","description":"AI-powered message routing and intent analysis for chat orchestration","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^3.22.0","@bernierllc/logger":"1.7.0","@bernierllc/retry-policy":"0.7.0","@bernierllc/neverhub-adapter":"0.4.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.0.0","ts-jest":"^29.1.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chat-ai-router_1.6.0_1779249678159_0.8544719084996761","host":"s3://npm-registry-packages-npm-production"}},"1.6.1":{"name":"@bernierllc/chat-ai-router","version":"1.6.1","description":"AI-powered message routing and intent analysis for chat orchestration","main":"dist/index.js","types":"dist/index.d.ts","keywords":["chat","ai","router","intent","analysis","orchestration"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","dependencies":{"zod":"^3.22.0","@bernierllc/neverhub-adapter":"0.4.1","@bernierllc/retry-policy":"0.7.0","@bernierllc/logger":"1.7.1"},"devDependencies":{"@types/jest":"^29.5.0","@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","eslint":"^8.0.0","jest":"^29.5.0","ts-jest":"^29.1.0","typescript":"^5.0.0"},"bernierllc":{"category":"core","integration":{"neverhub":"optional"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tsc","test":"jest --watch","test:run":"jest --no-watch","test:coverage":"jest --coverage --no-watch","lint":"eslint src/**/*.ts","clean":"rm -rf dist"},"_id":"@bernierllc/chat-ai-router@1.6.1","_integrity":"sha512-RHzDhw6ZGQ8Adq7RK+++kawkEefrl04G6fjN4XkOsaqqquZK6uX8Ot4P7fjaJz4+cSPgNuDzmsubK8OONgCYFw==","_resolved":"/home/runner/work/tools/tools/packages/core/chat-ai-router/bernierllc-chat-ai-router-1.6.1.tgz","_from":"file:bernierllc-chat-ai-router-1.6.1.tgz","_nodeVersion":"24.18.0","_npmVersion":"12.0.1","dist":{"integrity":"sha512-RHzDhw6ZGQ8Adq7RK+++kawkEefrl04G6fjN4XkOsaqqquZK6uX8Ot4P7fjaJz4+cSPgNuDzmsubK8OONgCYFw==","shasum":"f42a1e362857abf344f6c6907708774283b0b1b4","tarball":"https://registry.npmjs.org/@bernierllc/chat-ai-router/-/chat-ai-router-1.6.1.tgz","fileCount":58,"unpackedSize":132120,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCMOFrLadyO8SdN+HIHub7GVhLxrX/pb4TszF82di0BfgIhAKJzCg292Du/BgblXSZzvuTAt4Y9+gP9Eomg9Et3Ypu8"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b75d4eea-4570-42d2-9c9c-f0db448858b7"}},"directories":{},"maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chat-ai-router_1.6.1_1784015512422_0.4598856055232454"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-18T19:50:33.159Z","modified":"2026-07-14T07:51:52.710Z","1.0.0":"2025-12-18T19:50:33.382Z","1.0.1":"2025-12-22T21:08:40.157Z","1.0.2":"2025-12-23T01:46:17.826Z","1.2.0":"2026-01-05T19:47:10.783Z","1.2.1":"2026-03-09T17:46:03.333Z","1.2.2":"2026-03-10T17:17:14.502Z","1.2.3":"2026-05-18T19:42:32.212Z","1.2.4":"2026-05-19T02:18:27.092Z","1.2.5":"2026-05-19T20:06:45.170Z","1.4.0":"2026-05-19T23:37:15.078Z","1.5.0":"2026-05-20T01:35:44.213Z","1.6.0":"2026-05-20T04:01:18.290Z","1.6.1":"2026-07-14T07:51:52.544Z"},"author":{"name":"Bernier LLC"},"license":"UNLICENSED","keywords":["chat","ai","router","intent","analysis","orchestration"],"description":"AI-powered message routing and intent analysis for chat orchestration","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"readme":"# @bernierllc/chat-ai-router\n\nAI-powered message routing and intent analysis for intelligent chat orchestration across multiple providers.\n\n## Overview\n\n`@bernierllc/chat-ai-router` provides intelligent routing for chat messages, analyzing user intent and directing messages to the most appropriate handler—whether that's ChatKit for conversational AI, slash commands for task management, or external platforms for specific workflows.\n\n## Features\n\n- **AI-Powered Intent Analysis**: Automatically detects task, calendar, general chat, and platform routing intents\n- **Intelligent Message Routing**: Routes to appropriate handlers based on confidence and provider priority\n- **Multi-Provider Support**: Works with ChatKit, slash commands, and external platforms (Slack, Discord, Teams)\n- **Fallback Strategies**: Graceful degradation with configurable fallback routing\n- **Context Awareness**: Maintains conversation history for better routing decisions\n- **NeverHub Integration**: Optional service discovery and event publishing\n- **ML-Driven Optimization**: Learns from routing patterns to improve performance over time\n- **Comprehensive Metrics**: Tracks routing performance, confidence scores, and provider usage\n\n## Installation\n\n```bash\nnpm install @bernierllc/chat-ai-router\n```\n\n## Basic Usage\n\n```typescript\nimport { ChatAIRouter } from '@bernierllc/chat-ai-router';\nimport { defaultConfig } from '@bernierllc/chat-ai-router/config/router-config';\n\n// Initialize router with default config\nconst router = new ChatAIRouter(defaultConfig);\n\n// Route a message\nconst result = await router.route({\n  message: 'Create a task for reviewing PR #123',\n  context: {\n    user: { id: 'user123' },\n    previousMessages: []\n  }\n});\n\nconsole.log(result);\n// {\n//   success: true,\n//   intent: 'task-creation',\n//   route: 'slash-commands-tasks',\n//   command: '/task create',\n//   confidence: 0.95,\n//   parameters: {\n//     title: 'reviewing PR #123',\n//     priority: 'medium'\n//   }\n// }\n```\n\n## Intent Analysis Examples\n\n### Task Intent\n\n```typescript\n// Task Creation\nawait router.route({ message: 'Create a task for testing' });\n// → Routes to: slash-commands-tasks, command: /task create\n\n// Task Management\nawait router.route({ message: 'Complete task #123' });\n// → Routes to: slash-commands-tasks, command: /task update\n\n// Task Query\nawait router.route({ message: 'Show me my tasks' });\n// → Routes to: slash-commands-tasks, command: /task list\n```\n\n### Calendar Intent\n\n```typescript\n// Calendar Scheduling\nawait router.route({ message: 'Schedule a meeting with Bob tomorrow at 2pm' });\n// → Routes to: slash-commands-calendar, command: /schedule\n\n// Calendar Query\nawait router.route({ message: 'When is my next meeting?' });\n// → Routes to: slash-commands-calendar, command: /schedule list\n```\n\n### General Chat Intent\n\n```typescript\n// Conversational Messages\nawait router.route({ message: 'How do I deploy this application?' });\n// → Routes to: chatkit-adapter, provider: chatkit\n\n// Greetings\nawait router.route({ message: 'Hello, how are you?' });\n// → Routes to: chatkit-adapter, provider: chatkit\n```\n\n### Platform Routing Intent\n\n```typescript\n// External Platform Messages\nawait router.route({ message: 'Send this to the team in Slack' });\n// → Routes to: slack-integration, provider: slack\n\n// Channel Messages\nawait router.route({ message: 'Post to #general channel' });\n// → Routes to: slack-integration, provider: slack\n```\n\n## Configuration\n\n### Custom Configuration\n\n```typescript\nimport { ChatAIRouter } from '@bernierllc/chat-ai-router';\nimport { mergeConfig, defaultConfig } from '@bernierllc/chat-ai-router/config/router-config';\n\nconst customConfig = mergeConfig({\n  intentAnalysis: {\n    confidenceThreshold: 0.9, // Increase threshold\n    fallbackToHuman: true,\n  },\n  routing: {\n    providers: {\n      chatkit: {\n        id: 'chatkit',\n        priority: 1,\n        enabled: true,\n        capabilities: ['conversational-ai', 'general-chat'],\n      },\n      // Add custom providers...\n    },\n  },\n});\n\nconst router = new ChatAIRouter(customConfig);\n```\n\n### Environment Variables\n\n```bash\n# Router Configuration\nCHAT_AI_ROUTER_ENABLED=true\nCHAT_AI_ROUTER_CONFIDENCE_THRESHOLD=0.8\nCHAT_AI_ROUTER_FALLBACK_TO_HUMAN=true\n\n# ML Integration\nCHAT_AI_ROUTER_ML_ENABLED=true\nCHAT_AI_ROUTER_LEARNING_RATE=0.01\n\n# NeverHub Integration\nNEVERHUB_ENABLED=true\nNEVERHUB_SERVICE_NAME=chat-ai-router\n```\n\n## Advanced Usage\n\n### Context-Aware Routing\n\n```typescript\nconst result = await router.route({\n  message: 'And one for Bob too',\n  context: {\n    previousMessages: [\n      {\n        content: 'Create a task for Alice',\n        role: 'user',\n        timestamp: new Date(),\n      },\n    ],\n    user: { id: 'user123' },\n  },\n});\n\n// Router understands this is a follow-up task creation\n// → Routes to: slash-commands-tasks\n```\n\n### Custom Analyzers\n\n```typescript\nimport type { IntentAnalyzer } from '@bernierllc/chat-ai-router';\n\nconst customAnalyzer: IntentAnalyzer = {\n  analyze: async (message, context) => ({\n    intent: 'custom-intent',\n    confidence: 0.9,\n    route: 'custom-provider',\n  }),\n  getPriority: () => 1,\n  getName: () => 'custom-analyzer',\n  isEnabled: () => true,\n  setEnabled: (enabled) => {},\n};\n\nrouter.addAnalyzer(customAnalyzer);\n```\n\n### Dynamic Provider Management\n\n```typescript\n// Add provider at runtime\nrouter.addProvider({\n  id: 'new-provider',\n  priority: 10,\n  enabled: true,\n  capabilities: ['custom-capability'],\n});\n\n// Update provider status\nrouter.updateProviderStatus('chatkit', false); // Disable\n\n// Remove provider\nrouter.removeProvider('discord');\n```\n\n### Metrics Tracking\n\n```typescript\nconst metrics = router.getMetrics();\n\nconsole.log(metrics);\n// {\n//   totalMessages: 100,\n//   successfulRoutes: 95,\n//   failedRoutes: 5,\n//   averageConfidence: 0.87,\n//   routesByIntent: {\n//     'task-creation': 40,\n//     'calendar-scheduling': 25,\n//     'general-chat': 30\n//   },\n//   routesByProvider: {\n//     'slash-commands-tasks': 40,\n//     'slash-commands-calendar': 25,\n//     'chatkit': 30\n//   }\n// }\n\n// Reset metrics\nrouter.resetMetrics();\n```\n\n## NeverHub Integration\n\n### Service Registration\n\n```typescript\nimport { NeverHubAdapter } from '@bernierllc/neverhub-adapter';\nimport { buildServiceRegistration } from '@bernierllc/chat-ai-router/neverhub';\n\n// Auto-detect NeverHub\nif (await NeverHubAdapter.detect()) {\n  const neverhub = new NeverHubAdapter();\n\n  const registration = buildServiceRegistration(config);\n\n  await neverhub.register({\n    type: registration.type,\n    name: registration.name,\n    version: registration.version,\n    capabilities: registration.capabilities,\n    dependencies: registration.dependencies,\n  });\n}\n```\n\n### Event Publishing\n\n```typescript\nimport { buildMessageRoutedEvent } from '@bernierllc/chat-ai-router/neverhub';\n\nconst result = await router.route({ message: 'Create a task' });\n\nif (result.success) {\n  const event = buildMessageRoutedEvent(result);\n  await neverhub.publishEvent(event);\n}\n```\n\n### Service Discovery\n\n```typescript\nimport { buildProvidersFromDiscovery } from '@bernierllc/chat-ai-router/neverhub';\n\n// Discover chat providers\nconst services = await neverhub.discover({\n  capabilityTypes: ['chat', 'slash-commands'],\n});\n\n// Convert to provider configs\nconst providers = buildProvidersFromDiscovery(services);\n\n// Add to router\nproviders.forEach(provider => router.addProvider(provider));\n```\n\n## API Reference\n\n### ChatAIRouter\n\nMain router class for intelligent message routing.\n\n#### Constructor\n\n```typescript\nnew ChatAIRouter(config: ChatAIRouterConfig)\n```\n\n#### Methods\n\n- `route(input: RouterInput): Promise<RouterOutput>` - Route a message to appropriate handler\n- `getMetrics(): RouterMetrics` - Get current routing metrics\n- `resetMetrics(): void` - Reset routing metrics\n- `updateConfig(config: Partial<ChatAIRouterConfig>): void` - Update configuration\n- `addAnalyzer(analyzer: IntentAnalyzer): void` - Add custom intent analyzer\n- `removeAnalyzer(name: string): void` - Remove analyzer by name\n- `getAnalyzers(): IntentAnalyzer[]` - Get all registered analyzers\n- `addProvider(provider: ProviderConfig): void` - Add routing provider\n- `removeProvider(providerId: string): void` - Remove provider\n- `updateProviderStatus(providerId: string, enabled: boolean): void` - Enable/disable provider\n\n### Intent Analyzers\n\nBuilt-in analyzers for different intent types:\n\n- `TaskIntentAnalyzer` - Detects task creation, management, and query intents\n- `CalendarIntentAnalyzer` - Detects calendar scheduling and query intents\n- `GeneralIntentAnalyzer` - Detects conversational chat intents\n- `PlatformIntentAnalyzer` - Detects external platform routing intents\n\n### Services\n\n- `RouteResolver` - Resolves routes based on intent and provider capabilities\n- `FallbackHandler` - Handles fallback routing when primary routes fail\n- `MessageClassifier` - Classifies messages into categories for better routing\n- `ContextManager` - Manages conversation context for context-aware routing\n\n## Performance\n\n- **Routing Time**: < 1000ms (configurable threshold)\n- **Analysis Time**: < 500ms (configurable threshold)\n- **Confidence Threshold**: 0.7-0.9 (configurable)\n- **Test Coverage**: 90%+ (branches, functions, lines, statements)\n\n## Integration Status\n\n- **Logger**: Optional - Can integrate with `@bernierllc/logger` for structured logging\n- **Docs-Suite**: Ready - Full API documentation and examples available\n- **NeverHub**: Optional - Full service discovery and event integration support\n\n## Dependencies\n\n- `@bernierllc/neverhub-adapter` - NeverHub integration (optional)\n- `@bernierllc/retry-policy` - Retry logic for failed routes\n- `@bernierllc/rate-limiter` - Rate limiting for provider requests\n- `@bernierllc/logger` - Structured logging (optional)\n- `@bernierllc/config-manager` - Configuration management\n- `zod` - Runtime type validation\n\n## Contributing\n\nThis package follows BernierLLC quality standards:\n\n- Strict TypeScript (zero errors, no implicit `any`)\n- 90%+ test coverage with real data\n- Comprehensive documentation with examples\n- License headers in all files\n- Zero linting errors or warnings\n\n## License\n\nCopyright (c) 2025 Bernier LLC\n\nThis file is licensed to the client under a limited-use license. The client may use and modify this code *only within the scope of the project it was delivered for*. Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.\n\n## See Also\n\n- [@bernierllc/chatkit-adapter](../chatkit-adapter) - ChatKit AI integration\n- [@bernierllc/neverhub-adapter](../neverhub-adapter) - NeverHub service discovery\n- [@bernierllc/retry-policy](../retry-policy) - Retry logic for failed operations\n- [@bernierllc/rate-limiter](../rate-limiter) - Rate limiting utilities\n","readmeFilename":"README.md"}