{"_id":"@accurix/centrinfo-chat-app","_rev":"4-c744463a029945617b47151759885aee","name":"@accurix/centrinfo-chat-app","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.1":{"name":"@accurix/centrinfo-chat-app","version":"0.1.1","keywords":["centrinfo","ai","chat","analytics","embed","sdk"],"license":"SEE LICENSE IN LICENSE.md","_id":"@accurix/centrinfo-chat-app@0.1.1","maintainers":[{"name":"accurix","email":"accurixtech@gmail.com"}],"homepage":"https://github.com/accurix-tech/accurix-web#readme","bugs":{"url":"https://github.com/accurix-tech/accurix-web/issues"},"dist":{"shasum":"13afcc9f1383e4f1a7781c123f75b70866d87f72","tarball":"https://registry.npmjs.org/@accurix/centrinfo-chat-app/-/centrinfo-chat-app-0.1.1.tgz","fileCount":7,"integrity":"sha512-bzoFpCGctyntpQWzZf9SoDWmgSN6etjrk+UUFO2fgSHHmrYbsEDqR2vyBJGRUdf0x8xx5+JzZqdSxT/YOL1AhQ==","signatures":[{"sig":"MEQCIHpvWD8t1Q3iuUzP7fpxu5FVRGf6hL9au0QZywOdyewfAiBqYTb3ZMFEZWZiN4sAx8wKbJPqeUWodo1QcndK7Hh3iQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1204232},"main":"./dist/index.cjs","type":"module","_from":"file:accurix-centrinfo-chat-app-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"private":false,"scripts":{"dev":"vite --port 3008 --host 0.0.0.0","lint":"eslint .","build":"tsdown --config tsdown.config.ts","test-unit":"vitest run","check-types":"tsc --noEmit","verify:release":"pnpm check-types && pnpm lint && pnpm test-unit && pnpm build"},"_npmUser":{"name":"accurix","email":"accurixtech@gmail.com"},"_resolved":"/tmp/cfd9d1cd725c7b256dea69ec6e6f5071/accurix-centrinfo-chat-app-0.1.1.tgz","_integrity":"sha512-bzoFpCGctyntpQWzZf9SoDWmgSN6etjrk+UUFO2fgSHHmrYbsEDqR2vyBJGRUdf0x8xx5+JzZqdSxT/YOL1AhQ==","repository":{"url":"git+https://github.com/accurix-tech/accurix-web.git","type":"git","directory":"sdk/centrinfo-chat-app"},"_npmVersion":"11.6.2","description":"Full-page, authenticated Centrinfo AI chat application SDK.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"preact":"^10.27.0","@accurix/centrinfo-widget":"^1.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","jsdom":"^26.0.0","eslint":"^9.27.0","tsdown":"^0.18.0","vitest":"^3.2.0","typescript":"^5.8.0","@accurix/centrinfo-results":"^0.1.0","@accurix/web-config-eslint":"^0.0.0"},"peerDependencies":{"@accurix/centrinfo":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/centrinfo-chat-app_0.1.1_1784679677478_0.4864558815906963","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@accurix/centrinfo-chat-app","version":"0.1.2","keywords":["centrinfo","ai","chat","analytics","embed","sdk"],"license":"SEE LICENSE IN LICENSE.md","_id":"@accurix/centrinfo-chat-app@0.1.2","maintainers":[{"name":"accurix","email":"accurixtech@gmail.com"}],"homepage":"https://github.com/accurix-tech/accurix-web#readme","bugs":{"url":"https://github.com/accurix-tech/accurix-web/issues"},"dist":{"shasum":"830504f7a6c370fb710c0d9b567bd98953295149","tarball":"https://registry.npmjs.org/@accurix/centrinfo-chat-app/-/centrinfo-chat-app-0.1.2.tgz","fileCount":7,"integrity":"sha512-finNxHkJJ5aQeQIYdPqkIRTX22g9qz96ENFZFyg1w0T/TRPO6DBydVQW2zCSfY3tc/ENLNfTuh9JWbpptpvExw==","signatures":[{"sig":"MEUCIQDbbxnrLQophpi/5i2Q5914cqagQy9mrqxTEjezLTFUMQIgaLobKwnqvOI4M2WT3AG42dqREHrhlniMD+3qoSBIrhY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1240359},"main":"./dist/index.cjs","type":"module","_from":"file:accurix-centrinfo-chat-app-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"private":false,"scripts":{"dev":"vite --port 3008 --host 0.0.0.0","lint":"eslint .","build":"tsdown --config tsdown.config.ts","test-unit":"vitest run","check-types":"tsc --noEmit","verify:release":"pnpm check-types && pnpm lint && pnpm test-unit && pnpm build"},"_npmUser":{"name":"accurix","email":"accurixtech@gmail.com"},"_resolved":"/tmp/2e1631e7d93db5b0ff4920a1853e577d/accurix-centrinfo-chat-app-0.1.2.tgz","_integrity":"sha512-finNxHkJJ5aQeQIYdPqkIRTX22g9qz96ENFZFyg1w0T/TRPO6DBydVQW2zCSfY3tc/ENLNfTuh9JWbpptpvExw==","repository":{"url":"git+https://github.com/accurix-tech/accurix-web.git","type":"git","directory":"sdk/centrinfo-chat-app"},"_npmVersion":"11.6.2","description":"Full-page, authenticated Centrinfo AI chat application SDK.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"jspdf":"^4.2.1","preact":"^10.27.0","pptxgenjs":"^4.0.1","@accurix/centrinfo-widget":"^1.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","jsdom":"^26.0.0","eslint":"^9.27.0","tsdown":"^0.18.0","vitest":"^3.2.0","typescript":"^5.8.0","@accurix/centrinfo-results":"^0.1.0","@accurix/web-config-eslint":"^0.0.0"},"peerDependencies":{"@accurix/centrinfo":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/centrinfo-chat-app_0.1.2_1786234700282_0.44105871783609607","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@accurix/centrinfo-chat-app","version":"1.0.0","keywords":["centrinfo","ai","chat","analytics","embed","sdk"],"license":"SEE LICENSE IN LICENSE.md","_id":"@accurix/centrinfo-chat-app@1.0.0","maintainers":[{"name":"accurix","email":"accurixtech@gmail.com"}],"homepage":"https://github.com/accurix-tech/accurix-web#readme","bugs":{"url":"https://github.com/accurix-tech/accurix-web/issues"},"dist":{"shasum":"4ba1d645708553c98e7637187af3e87c57755c1a","tarball":"https://registry.npmjs.org/@accurix/centrinfo-chat-app/-/centrinfo-chat-app-1.0.0.tgz","fileCount":7,"integrity":"sha512-lsVJklqtcQ6CM1jrbnQrPCjInAQfeJyhnn9MabGlXIoTgbdZfMqiDL8msEOLnfoWBPM0lqrOqXRdqcIxk5JzAw==","signatures":[{"sig":"MEQCIBIzwZYP59yrRfduwReTa8hy0W/faYox8FGPqTDsUamFAiB0Qa66zFvCvSP6Q4RxB+/vKaUntbcyvTUGFzTXCi3vIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1287313},"main":"./dist/index.cjs","type":"module","_from":"file:accurix-centrinfo-chat-app-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"private":false,"scripts":{"dev":"vite --port 3008 --host 0.0.0.0","lint":"eslint .","build":"tsdown --config tsdown.config.ts","test-unit":"vitest run","check-types":"tsc --noEmit","verify:release":"pnpm check-types && pnpm lint && pnpm test-unit && pnpm build"},"_npmUser":{"name":"accurix","email":"accurixtech@gmail.com"},"_resolved":"/tmp/3a2459fb6a2daa96385408198fb8523c/accurix-centrinfo-chat-app-1.0.0.tgz","_integrity":"sha512-lsVJklqtcQ6CM1jrbnQrPCjInAQfeJyhnn9MabGlXIoTgbdZfMqiDL8msEOLnfoWBPM0lqrOqXRdqcIxk5JzAw==","repository":{"url":"git+https://github.com/accurix-tech/accurix-web.git","type":"git","directory":"sdk/centrinfo-chat-app"},"_npmVersion":"11.6.2","description":"Full-page, authenticated Centrinfo AI chat application SDK.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"jspdf":"^4.2.1","preact":"^10.27.0","pptxgenjs":"^4.0.1","@accurix/centrinfo-widget":"^2.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","jsdom":"^26.0.0","eslint":"^9.27.0","tsdown":"^0.18.0","vitest":"^3.2.0","typescript":"^5.8.0","@accurix/centrinfo-results":"^0.1.0","@accurix/web-config-eslint":"^0.0.0"},"peerDependencies":{"@accurix/centrinfo":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/centrinfo-chat-app_1.0.0_1788306186957_0.4877800823741725","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@accurix/centrinfo-chat-app","version":"3.0.0","private":false,"type":"module","sideEffects":false,"main":"./dist/index.cjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"description":"Full-page, authenticated Centrinfo AI chat application SDK.","keywords":["centrinfo","ai","chat","analytics","embed","sdk"],"license":"SEE LICENSE IN LICENSE.md","repository":{"type":"git","url":"git+https://github.com/accurix-tech/accurix-web.git","directory":"sdk/centrinfo-chat-app"},"dependencies":{"jspdf":"^4.2.1","pptxgenjs":"^4.0.1","preact":"^10.27.0","@accurix/centrinfo-widget":"^4.0.0"},"devDependencies":{"eslint":"^9.27.0","jsdom":"^26.0.0","tsdown":"^0.18.0","typescript":"^5.8.0","vite":"^7.0.0","vitest":"^3.2.0","@accurix/centrinfo-results":"^0.1.0","@accurix/web-config-eslint":"^0.0.0"},"module":"./dist/index.mjs","peerDependencies":{"@accurix/centrinfo":"^0.4.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tsdown --config tsdown.config.ts","check-types":"tsc --noEmit","dev":"vite --port 3008 --host 0.0.0.0","lint":"eslint .","test-unit":"vitest run","verify:release":"pnpm check-types && pnpm lint && pnpm test-unit && pnpm build"},"_id":"@accurix/centrinfo-chat-app@3.0.0","bugs":{"url":"https://github.com/accurix-tech/accurix-web/issues"},"homepage":"https://github.com/accurix-tech/accurix-web#readme","_integrity":"sha512-79BF4SASgSlvfoueLXkzSXRL7grq1rA2+tDMArP/QYD5WhoOfQw8QXi82sED0gFHVGgqyK1DBY8cnw4t0DCRnQ==","_resolved":"/tmp/74880bf6eca3dc892c22a7fcac440a1a/accurix-centrinfo-chat-app-3.0.0.tgz","_from":"file:accurix-centrinfo-chat-app-3.0.0.tgz","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-79BF4SASgSlvfoueLXkzSXRL7grq1rA2+tDMArP/QYD5WhoOfQw8QXi82sED0gFHVGgqyK1DBY8cnw4t0DCRnQ==","shasum":"f4dbcf3a56c320ed9b12589153b36d1e9462fe58","tarball":"https://registry.npmjs.org/@accurix/centrinfo-chat-app/-/centrinfo-chat-app-3.0.0.tgz","fileCount":7,"unpackedSize":1287313,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCh8AOFaqHWCKiAoIsUOifQufYdY1lFPMCZg2vBUgOu1wIgXe2wBja/PxM6ZzTjXdMkPTGSRXUC46JaLXIMhkoXrPg="}]},"_npmUser":{"name":"accurix","email":"accurixtech@gmail.com"},"directories":{},"maintainers":[{"name":"accurix","email":"accurixtech@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/centrinfo-chat-app_3.0.0_1788454550701_0.30561823143739475"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T00:21:17.254Z","modified":"2026-09-03T16:55:51.052Z","0.1.1":"2026-07-22T00:21:17.675Z","0.1.2":"2026-08-09T00:18:20.437Z","1.0.0":"2026-09-01T23:43:07.110Z","3.0.0":"2026-09-03T16:55:50.876Z"},"bugs":{"url":"https://github.com/accurix-tech/accurix-web/issues"},"license":"SEE LICENSE IN LICENSE.md","homepage":"https://github.com/accurix-tech/accurix-web#readme","keywords":["centrinfo","ai","chat","analytics","embed","sdk"],"repository":{"type":"git","url":"git+https://github.com/accurix-tech/accurix-web.git","directory":"sdk/centrinfo-chat-app"},"description":"Full-page, authenticated Centrinfo AI chat application SDK.","maintainers":[{"name":"accurix","email":"accurixtech@gmail.com"}],"readme":"# `@accurix/centrinfo-chat-app`\n\nFull-page, authenticated AI chat application for customer portals. It is a\nseparate UI from the floating messenger and shares the same governed chat\nruntime, identity, streaming, history, charts, and source permissions.\n\nMost customers should install the unified package and use its chat entry point:\n\n```ts\nimport { createCentrinfo } from '@accurix/centrinfo';\nimport { chat } from '@accurix/centrinfo/chat';\n\nconst centrinfo = createCentrinfo({\n  publicWidgetToken: 'pub_...',\n  customerAppId: '...',\n  getIdentityToken: () =>\n    fetch('/api/centrinfo/token', { credentials: 'include' }).then((response) => response.json()),\n  features: [chat()],\n});\n\nconst application = await centrinfo.chat.mountFullPage('#ai-assistant', {\n  sidebar: 'collapsed',\n  userLabel: 'Alex Kim',\n  userDetail: 'alex@example.com',\n  userAvatarUrl: 'https://customer-app.example/alex.png',\n  assistantAvatarUrl: 'https://customer-app.example/assistant.png',\n  attachments: true,\n});\n```\n\nThe navigation modes are:\n\n- `collapsed` (default): safe beside the host application's sidebar.\n- `expanded`: shows searchable conversation history. Authenticated history is\n  restored from the backend; anonymous history remains browser-local.\n- `hidden`: removes all Centrinfo navigation; the host can call\n  `application.expandSidebar()` when needed.\n\nThe application can also be installed directly:\n\n```ts\nimport { createChatApplication } from '@accurix/centrinfo-chat-app';\n```\n\n## Styling, avatars, and attachments\n\nFull-page chat inherits SDK theme tokens from `createCentrinfo` and can also\nreceive session-specific display fields at mount time.\n\n```ts\nconst centrinfo = createCentrinfo({\n  publicWidgetToken: 'pub_...',\n  applicationId: '...',\n  getIdentityToken,\n  features: [chat()],\n  theme: {\n    accent: '#2563eb',\n    background: '#f8fafc',\n    surface: '#ffffff',\n    text: '#101827',\n    border: '#dbe4ee',\n    radius: '16px',\n    fontFamily: 'Avenir Next, sans-serif',\n  },\n});\n\nawait centrinfo.chat.mountFullPage('#ai-assistant', {\n  sidebar: 'collapsed',\n  userLabel: currentUser.name,\n  userDetail: currentUser.email,\n  userAvatarUrl: currentUser.avatarUrl,\n  assistantAvatarUrl: '/brand/assistant-avatar.png',\n  attachments: true,\n});\n```\n\nThe assistant avatar normally comes from the SDK application bootstrap after an\nadmin uploads it in Centrinfo. `assistantAvatarUrl` is a host fallback. The\ncustomer avatar is optional and comes from the host application. When\nattachments are enabled, users can attach supported images, PDFs, text files,\nand CSVs; extracted text is sent with the next message.\n\nThe signing private key remains on the host backend. Only the short-lived\nidentity token is returned to the browser. Keep `externalUserId` stable for a\ncustomer so their retained conversations can be restored in another browser\nor device. Call the shared runtime's `centrinfo.logout()` when the host session\nends; use the mounted application's `shutdown()` on shared devices to remove\nits local cache as well.\n","readmeFilename":"README.md"}