{"_id":"@bymos/agentkit-sdk","_rev":"22-32d14fab2f1adcbd26bd008a49feca34","name":"@bymos/agentkit-sdk","dist-tags":{"latest":"0.9.3"},"versions":{"0.1.0":{"name":"@bymos/agentkit-sdk","version":"0.1.0","_id":"@bymos/agentkit-sdk@0.1.0","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"c950a9d6ebfa862c29525fdb944e083587f277c2","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.0.tgz","fileCount":4,"integrity":"sha512-KIZckcyyT6evGxpQen3OSJjkpt9MyHBRR4/cAKcy1u+WevQzkYv/lN0Fks6qquThdmmR5p6Xw0EJFnqwW9jXmA==","signatures":[{"sig":"MEYCIQCZMpfmYaaXrySirj/ELmqimVDA2aEli57xJc5qQ1ztUwIhANoq6pNr8a1zroqc3epaRfkVIL19N52LqLtPuCuvfbyt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":395829},"main":"./dist/npm/index.cjs","type":"module","types":"./dist/npm/index.d.ts","module":"./dist/npm/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/npm/index.d.ts","import":"./dist/npm/index.js","require":"./dist/npm/index.cjs"}},"gitHead":"f9571e32f909eb3c21774b51a7032148564465d3","scripts":{"lint":"eslint src/","build":"vite build --mode cdn","preview":"vite preview","build:all":"pnpm build:cdn && pnpm build:npm","build:cdn":"vite build --mode cdn","build:npm":"vite build --mode npm","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4","@agentkit/widget-ui":"workspace:*","@agentkit/widget-sdk":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","typescript":"^5.0.0","vite-plugin-dts":"^4.5.4","@preact/preset-vite":"^2.10.3"},"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.0_1774748731277_0.431781358632074","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bymos/agentkit-sdk","version":"0.1.1","_id":"@bymos/agentkit-sdk@0.1.1","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"fa2f319913c20d647d25973ebe20800725eee205","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.1.tgz","fileCount":4,"integrity":"sha512-oMxgOEHi7sVqn0tftjHnxSD8L3LLon52kLLoggtroKaE5xvw9GmKdy0arCEqR6aq7LUPaP1Ob1coQ+c9U69vyA==","signatures":[{"sig":"MEUCIC0utp/dBLcXuqmjwXjrLBVtC9GhgezMXwyLvDip+ndoAiEAuB6YdUT0yc3ltdV8CMNL+62fw1794x2PoABT4wKRhyI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":397611},"main":"./dist/npm/index.cjs","type":"module","types":"./dist/npm/index.d.ts","module":"./dist/npm/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/npm/index.d.ts","import":"./dist/npm/index.js","require":"./dist/npm/index.cjs"}},"gitHead":"1a6f109ec4f576935957201c6f2fbffe7a4befe0","scripts":{"lint":"eslint src/","build":"vite build --mode cdn","preview":"vite preview","build:all":"pnpm build:cdn && pnpm build:npm","build:cdn":"vite build --mode cdn","build:npm":"vite build --mode npm","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4","@agentkit/widget-ui":"workspace:*","@agentkit/widget-sdk":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","typescript":"^5.0.0","vite-plugin-dts":"^4.5.4","@preact/preset-vite":"^2.10.3"},"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.1_1774750659743_0.5839300528556457","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bymos/agentkit-sdk","version":"0.1.2","_id":"@bymos/agentkit-sdk@0.1.2","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"4d9afde652162cb6b58620d0f4f7a2dfee34bfe0","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.2.tgz","fileCount":2,"integrity":"sha512-BZX6Ha/+s0OTsuRGJElKCXrQQZ852DmoOGgixQKDBRhNopnCPzAyOZgad3tglFxDjV/2t5LDCgvXvXNddnjBbA==","signatures":[{"sig":"MEQCIAre72LQ2StqZe5aILCh0x87CV+vMfV8W18AALv7SL0mAiBMJ4Ff0d7EO2r0wTFwDIQ9qbuMtMCGPaDbwDAjMpoA5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7457},"main":"./dist/npm/index.cjs","type":"module","types":"./dist/npm/index.d.ts","module":"./dist/npm/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/npm/index.d.ts","import":"./dist/npm/index.js","require":"./dist/npm/index.cjs"}},"gitHead":"87b076e4884cbef0c46b0ffa72fc54ea5ff95327","scripts":{"lint":"eslint src/","build":"vite build --mode cdn","preview":"vite preview","build:all":"pnpm build:cdn && pnpm build:npm","build:cdn":"vite build --mode cdn","build:npm":"vite build --mode npm && node scripts/create-npm-package.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4","@agentkit/widget-ui":"workspace:*","@agentkit/widget-sdk":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.0","typescript":"^5.0.0","vite-plugin-dts":"^4.5.4","@preact/preset-vite":"^2.10.3"},"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.2_1774758026014_0.23205037604330392","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bymos/agentkit-sdk","version":"0.1.3","_id":"@bymos/agentkit-sdk@0.1.3","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"64824e3ccc99da4946c40c058186bbed30661f9d","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.3.tgz","fileCount":4,"integrity":"sha512-K5PQ5HzL6Yhhy0ULK090rTqBAIQp176Qt+O1bzp9H9cNM2aOKOFsI6iT9l6IgvBCgKBZ2qEL5H17vtbCW3zplw==","signatures":[{"sig":"MEUCIH9sp8vAtcpuLAQv8gftwWEpAaNyFUpy0hzq9Cdxfx7sAiEA7+j9+8IrOYQQUXIHg8Ow/JpFtr250cnvzk6Xm3UmrhI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":353768},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"914d8e1c66d22dc19c403a01dcf27d0921cf12dc","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4","@agentkit/widget-ui":"^0.1.0","@agentkit/widget-sdk":"^0.1.0"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.3_1774762319438_0.43248136950269345","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bymos/agentkit-sdk","version":"0.1.4","_id":"@bymos/agentkit-sdk@0.1.4","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"b620eab433d9a9dc4de2f0f12833f7a2800a3e62","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.4.tgz","fileCount":4,"integrity":"sha512-mQ0Mpyy9/Qxce2ZNnCcUlAUHRi70W5vcA+ex0GaS0AkMC3b/Q68ErNZQnMmuOjm3D7m6AvOcjT2Iq6LT0P5acA==","signatures":[{"sig":"MEYCIQCFeZOZbgPjCw4DnvwqIVtQucrxnTwbYAHfNwWG7GxzYgIhAO/P7M33W5gDNV5UTVa+yO9jfmot+A8xR6fNFZ91+3go","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":353693},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"67f60fcacae0537fc37928973a6cfd5912576bf3","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.4_1774772813415_0.2292792710300564","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bymos/agentkit-sdk","version":"0.1.5","_id":"@bymos/agentkit-sdk@0.1.5","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"40cb8163ad25bc7b8f4acbcebc659f1cccd48eb9","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.1.5.tgz","fileCount":7,"integrity":"sha512-kbIEDEzvXGaUPnvpivuSWP+cT8HigcHl9wdDxMN5QleEect6xX2/7qVszRASK+dQqBpwH5vb64GOLUfcaYp8NQ==","signatures":[{"sig":"MEUCICDsUlre6pVXGw91/XHIyblxB/hT9J/fSxLxg93hVuwkAiEA6q4XNGhjaSFCur46pt6CSvvza9e0txKKO+nN8CyC8TA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":749514},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"0577125a215901f8d5fe64f7d2d4e8c8bf3b0bb6","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.28.4"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.1.5_1774820581273_0.6389036238512475","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bymos/agentkit-sdk","version":"0.2.0","_id":"@bymos/agentkit-sdk@0.2.0","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"a7374cfb7726a631035a2615b0e1d9155a25efd0","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.2.0.tgz","fileCount":7,"integrity":"sha512-TXalG5sMmo2FGbm3/hSI0UsdnxbJ/fxhuy5viZu49G/7vlNv+dPkb9XhPjfCfRqCbePkuNKI39VpaN+L7Rn7jw==","signatures":[{"sig":"MEQCIDF2rRcZ3dBnBFI/KpTOAAD2yE6a/z5VGVttG87DRzm2AiBwmWus4hCz3y7VEscinW+0wTKn8NgoPZ+jC4gbY662FA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":759048},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"e61d49389e0a90cba5ac79c552390fd5597ab87d","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.11.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.8.2","dependencies":{"preact":"^10.29.0"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.2.0_1774891442135_0.6336594785815926","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@bymos/agentkit-sdk","version":"0.3.1","_id":"@bymos/agentkit-sdk@0.3.1","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"e2f29b12a4d3edee6ec8f521c82c66dc3b1d4c0d","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.3.1.tgz","fileCount":7,"integrity":"sha512-Ar00xlOSAouT7e740dCW2fDz8XPM6GDK1AwBo6xRnYu2fjpujHRn450vbRhQx7cRkVSxISBN3cmruRXwuZOMLA==","signatures":[{"sig":"MEQCIEG4+2Cw7/RNiI09fuSNZufhvespIyZfKJAcXrZe6xDGAiAjAukAnFL3NoqJiitViAe3sOTp/3DJpU3E9gNnI2PK8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":811128},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"8d45899a76f4b8a85239ba4639fd9e39b42c891f","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.0"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.3.1_1776626751952_0.6658806630109972","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@bymos/agentkit-sdk","version":"0.3.2","_id":"@bymos/agentkit-sdk@0.3.2","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"e9e65fa367dca21239d697f1f59a89a9f380a65b","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.3.2.tgz","fileCount":7,"integrity":"sha512-X6NhfbFU9w9v9xEqJD/MDxGcYKCYcdTdsO7yoiM3Hz9iZVc00DqGTNsnjaCZ1LE5oYE4bwZLaWrCrCoTysPtIw==","signatures":[{"sig":"MEUCIDNm6Murf2226Hf3qg3lCbcjjepZcF7Zb+9I922L0dD4AiEArFEOFtff3CvV1/+UYpW7n/6TiATvCwmZTSk/Me48+lY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":852707},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"b6bea323d4e52ea7523ccf38e3d523af57928ec4","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.0"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.3.2_1777045781173_0.14973433377198342","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@bymos/agentkit-sdk","version":"0.3.3","_id":"@bymos/agentkit-sdk@0.3.3","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"79ce461b2b8cb9e2217ede4519aeaa39878e22fa","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.3.3.tgz","fileCount":7,"integrity":"sha512-yrsVFWNTkZffefTGOJ5V8Bp4AiR8sAwsr3/LNrcLzYr/lRZ8UdEdp/IFSqmeasR6iO8bmqS8sB2hPXq+nYfpow==","signatures":[{"sig":"MEUCIBnrp+rcv+Z++hrsG9lqSRkrxCCoM0wFQY9ChmXWSvDGAiEAx/rB75FVM5AnOCXnOhWdiusyQujVpJ7JVARTG8Jmg84=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":852707},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"1921aea97e939653de41e955d80a538705766014","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.0"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.3.3_1777137037449_0.7135750693434693","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bymos/agentkit-sdk","version":"0.5.0","_id":"@bymos/agentkit-sdk@0.5.0","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"d647adc3edbf5f3a736802754205514046cc23ab","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.5.0.tgz","fileCount":7,"integrity":"sha512-fO9+qfiUw2pc/NAnSoF6ASVhI4MSjNN5y/NU/74TgA147fhPG2aRixnJO5wUWdJHlFIZSgvAeEk2NozTa7D7rA==","signatures":[{"sig":"MEYCIQDxHXxB6hRn/lLhx4PnWEu0acksW3RNMxxzWK1mzmYwEwIhANODsCpsvGkXNdClMCF8j0CluNSkyiLVPr9UNN76xsog","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":967920},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"10abab83cfe2a88dbad72a23d9853223d5c372bb","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.5.0_1780483528280_0.18346646821208434","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@bymos/agentkit-sdk","version":"0.6.1","_id":"@bymos/agentkit-sdk@0.6.1","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"572738f2ebef56f3763d8b366622fdec62070d38","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.6.1.tgz","fileCount":7,"integrity":"sha512-tXk6lbj2n8hUMquoXZNdwUPGrJwboCiRDM88/mYlsiWXyPlwPc4vgRzvIMLD1dQOXYm0bOvUAkaCDO8KKf0JGg==","signatures":[{"sig":"MEUCIQCTNciFW/MCQbQs8WIvLvgSS0m4nsCf2YxUN+qLIIxcOAIgU1JOK1Jlm4BKJFFUQr5drRPhGDRbjLzhzmqldVtBCsU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":979208},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"5595b82fba4f2e56a5aa7704c72352623b6e8907","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.6.1_1780508560833_0.7561695602616054","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@bymos/agentkit-sdk","version":"0.6.2","_id":"@bymos/agentkit-sdk@0.6.2","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"89e1bea17a6fd72cd0a32b578a6df6cee39aba34","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.6.2.tgz","fileCount":7,"integrity":"sha512-JOlDTRKMPuFhU0940TnkPIAxxqFQN01Udi4wY5fNsHHwU1Kl28e6GZuf4nOs8tnQqfz1tQPOUfkDGKXp4Y1pGA==","signatures":[{"sig":"MEUCIHrxKV91Us+JX+9Mp9pR8ZUB3PdR7hZlbEDXF8rD1GA+AiEAweS0CxpFLMVE14PXQxdHIgO5ZGafHCbhBoJDKBTrJjw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":985243},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"a27c143b60636a7314dc91ea12e13848b890d553","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.6.2_1781276608232_0.8669525726411087","host":"s3://npm-registry-packages-npm-production"}},"0.6.3":{"name":"@bymos/agentkit-sdk","version":"0.6.3","_id":"@bymos/agentkit-sdk@0.6.3","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"36199c3455a2888178f7a29aad649d8c00dcbe0b","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.6.3.tgz","fileCount":7,"integrity":"sha512-KChzi32IF08ghNjLU3cdFsbKvz6o0Hg6/WRJ2dpcYSpY/oRb4J4BUNMU2AbdhbZ4VEHCOhVyFqt0AdPPK/D9qQ==","signatures":[{"sig":"MEUCIGMZiLCHiq/7GIU4EvqsXHQ8mfR1PTbMVXWmseoqpwtDAiEA1la+2LYEKgrZfgz63sdJC3fZedqikyB/2WsO9O+b7iw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":985243},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"4bb8f1e9c7e09163e98169889491f3049d221094","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.6.3_1781290833005_0.16334272200750344","host":"s3://npm-registry-packages-npm-production"}},"0.6.4":{"name":"@bymos/agentkit-sdk","version":"0.6.4","_id":"@bymos/agentkit-sdk@0.6.4","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"3510c3ea19444a9a7d4bd33afceae35fe5f70c5d","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.6.4.tgz","fileCount":7,"integrity":"sha512-GdK6Zejscu6PbvCBaraOww7h7jhPzuFwtmdmdFXHDUNJqbMeG04qtIEXRLIDbYuzNUUk8CvJebmlmjrNGutqBw==","signatures":[{"sig":"MEYCIQDF6obvfZHiRRR1H6ZS0kY2qZraYYuNrhMjc10WIyXtaAIhALvb+pgnJk2Xxpvu61GaK3K6aKlz4KDAcFN9StHEmlXU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1018668},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"4569be48e87cb2b1140a4e4d6b5fb1661cf1233e","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.6.4_1785219889836_0.6453583029447483","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@bymos/agentkit-sdk","version":"0.7.0","_id":"@bymos/agentkit-sdk@0.7.0","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"e965e7ff94d679da3a075eca0c730d33e5eb522d","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.7.0.tgz","fileCount":7,"integrity":"sha512-nZN8NBJT0tCwJDcyTcFSxIsoXBOgpI0hZapX/A/vcKoGLIzNVd3FlH61S9GgYELmJcfNELP0ijVsdSzzfvxOYQ==","signatures":[{"sig":"MEYCIQDtxH8oiExYXadJz36aN+HprVC7/T0dnM1fGWI/9P/iTgIhAIUkH8Qmhq3KE/Mf4JJ128fUhObzB3NNE8Ua/N+CG8sh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1030695},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"e384b13887c5719e8f9ce87f5c404df995fdfd5f","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.7.0_1785231724195_0.917263100878718","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"@bymos/agentkit-sdk","version":"0.7.1","_id":"@bymos/agentkit-sdk@0.7.1","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"983c1c7e834b0e3e16fc71509af4284632871c50","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.7.1.tgz","fileCount":7,"integrity":"sha512-o6qo1dvwZvHUPkPDbvyQT7ISPPqVotzRjgI12fXSK3c5lDxqAR0SL3q50hstqVP7EWYyOd6coIlP644EAi7PVQ==","signatures":[{"sig":"MEUCIGm8O4EWri7Uy5V0bld0VW8KtMi8GVHzOaSsaxYOKMlwAiEAhCU9+BECTUHMV15PCnN5Z0ChM6kPR1gyxrTWowWXxUE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1037194},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"1dd17c0a1041edf0570974d753192624792f565d","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.7.1_1785246208723_0.8634794971922131","host":"s3://npm-registry-packages-npm-production"}},"0.7.2":{"name":"@bymos/agentkit-sdk","version":"0.7.2","_id":"@bymos/agentkit-sdk@0.7.2","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"c795cbc583dc0daba25872fe7c9e99b7376d5f48","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.7.2.tgz","fileCount":7,"integrity":"sha512-mB40yVJf7m8SFhNNc3IODbYuPCZ/9w1qqSfsyqujPQblzrQ7mpmZBxBZssgwR1J/icX//g5vNZk3PRhd1IoYKg==","signatures":[{"sig":"MEUCIBTLL+wMRUDMvFZVtXAdduF99ledieBhYkKB4n9zAuZWAiEA5f2qpBbI6oQRDWeWeC/kUrwxSY7wYPs8v1hkfKR4lLg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1042269},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"b820625257033fce534d822e1dd8f95fe471440d","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.7.2_1785954372675_0.6814427127246536","host":"s3://npm-registry-packages-npm-production"}},"0.7.3":{"name":"@bymos/agentkit-sdk","version":"0.7.3","_id":"@bymos/agentkit-sdk@0.7.3","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"696f37a4cdc5c118766d1406b4cff618cba0e228","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.7.3.tgz","fileCount":7,"integrity":"sha512-UcsJBNv6PLlOrAnLcHQ4MUHozRRPWYdnKpvjvp7q6KskDA6heg2mi3JxRxyJRzGbYBcbDg6HGF3FcLBk2UpZqg==","signatures":[{"sig":"MEYCIQCWdq6iHsTt2yea3s/lyvE9x+q6DnFAv2ORyaotagjjzwIhALM1Yxh10qET2RaGo9Im2in8/rL4criLLrri54YzZxfO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1042801},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"995c7d7da29615863f80ee584fbf2b565ab47be4","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.7.3_1786575087158_0.8400843443876271","host":"s3://npm-registry-packages-npm-production"}},"0.7.4":{"name":"@bymos/agentkit-sdk","version":"0.7.4","_id":"@bymos/agentkit-sdk@0.7.4","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"9b14a31b40861e38846938207acfceb619f25f9e","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.7.4.tgz","fileCount":7,"integrity":"sha512-MkjtogdkJ/DwfmCpTu3EDAwNXS50HeV4bGcKbmIv+G23O1xR+HTF0g/GSKQ8IOZ1zcCRGxSlUSD1eW+6vgKmpg==","signatures":[{"sig":"MEUCIQC3hZ5HK13FWN7rMu+vmXImT046aZjhUpCZ4iyi3OoS/AIgfKj5rqGvg/sHhTuz73x13/5UccVQs0PwqfODjcNTafo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1018222},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"281d6d5022e7f0d4fb5d41337c462961ec4c6d7e","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.7.4_1786603138953_0.03295688733791935","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@bymos/agentkit-sdk","version":"0.8.0","_id":"@bymos/agentkit-sdk@0.8.0","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"dist":{"shasum":"130db23ed53036de4653b5d1bf2db2afc046cee7","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.8.0.tgz","fileCount":7,"integrity":"sha512-W9OCPhoYjY3G/CO6R3ubs+qHCR3Bi6DAjToNf+4VfCpvegvW9U9Rhd2sCyaq0WOMCNzEpxNvTUDWXG0zCaMO/g==","signatures":[{"sig":"MEUCIEud7svjCBsb4HDUquAfubxkawLCkAeIqySRFwMMfhQGAiEAuVOeUFqHhC6DY64wRBmuBu4r3QVLmlpZqBzUnCrLjwc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1034866},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"2c0b6d14915df12dee93e1ae6dd69adf42b607d7","_npmUser":{"name":"mosufy","email":"mosufy@gmail.com"},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/agentkit-sdk_0.8.0_1786881448361_0.16379791071876237","host":"s3://npm-registry-packages-npm-production"}},"0.9.3":{"_id":"@bymos/agentkit-sdk@0.9.3","dist":{"shasum":"f06ec22f43b92e1590a01660f1925a4329685cb2","tarball":"https://registry.npmjs.org/@bymos/agentkit-sdk/-/agentkit-sdk-0.9.3.tgz","fileCount":7,"integrity":"sha512-Fe0lCJ9RHM5zbB20CccXeytG9lxe+Sl0pJZXR3VdNyxIFjkBXzEp7VGM06V+ReKq8nvUefEhyH6Wz7FrrElCSg==","signatures":[{"sig":"MEUCIEmo0htZXHexC+vTRLpuAGm3pj+NxgYdCmvojiIcPbbZAiEA9em38iJ/PBjSgIP1Pqu1wya/lSY1YTJWhy36897xLQ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD3GD9xmADIqydUw/IyVL84cB3v8Lup8j6VX2KaE+AltgIhAKDeTIrj4PbCWeFKx7nQ/P0VUlMeyZTOFBmG49LQzXKB"}],"unpackedSize":1076515},"main":"./index.cjs","name":"@bymos/agentkit-sdk","type":"module","types":"./index.d.ts","module":"./index.js","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"}},"gitHead":"dffc015920aefafc1fad5fd525139716f7497a4c","version":"0.9.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e6dfe9d3-e6ff-4c0a-bdf2-8076811a0cfd"}},"_npmVersion":"11.12.1","description":"AgentKit embeddable widget — CDN build and npm package","directories":{},"maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"_nodeVersion":"25.9.0","dependencies":{"preact":"^10.29.2"},"_hasShrinkwrap":false,"peerDependencies":{"preact":"^10.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agentkit-sdk_0.9.3_1789666282247_0.3021685710791806"}}},"time":{"created":"2026-03-29T01:45:31.209Z","modified":"2026-09-17T17:31:22.501Z","0.1.0":"2026-03-29T01:45:31.455Z","0.1.1":"2026-03-29T02:17:39.903Z","0.1.2":"2026-03-29T04:20:26.147Z","0.1.3":"2026-03-29T05:31:59.582Z","0.1.4":"2026-03-29T08:26:53.547Z","0.1.5":"2026-03-29T21:43:01.468Z","0.2.0":"2026-03-30T17:24:02.370Z","0.3.1":"2026-04-19T19:25:52.154Z","0.3.2":"2026-04-24T15:49:41.478Z","0.3.3":"2026-04-25T17:10:37.633Z","0.5.0":"2026-06-03T10:45:28.452Z","0.6.1":"2026-06-03T17:42:40.981Z","0.6.2":"2026-06-12T15:03:28.401Z","0.6.3":"2026-06-12T19:00:33.245Z","0.6.4":"2026-07-28T06:24:49.980Z","0.7.0":"2026-07-28T09:42:04.335Z","0.7.1":"2026-07-28T13:43:28.902Z","0.7.2":"2026-08-05T18:26:12.827Z","0.7.3":"2026-08-12T22:51:27.356Z","0.7.4":"2026-08-13T06:38:59.109Z","0.8.0":"2026-08-16T11:57:28.572Z","0.9.3":"2026-09-17T17:31:22.332Z"},"description":"AgentKit embeddable widget — CDN build and npm package","maintainers":[{"name":"mosufy","email":"mosufy@gmail.com"}],"readme":"# @bymos/agentkit-sdk\n\nEmbeddable AI chat widget for [KlicForge](https://klicforge.ai). Add a fully-featured, themeable chat widget to any website or app — via a `<script>` tag or npm.\n\n## Installation\n\n```bash\nnpm install @bymos/agentkit-sdk\n# or\npnpm add @bymos/agentkit-sdk\n```\n\n**Peer dependency:** `preact@^10.0.0`\n\n---\n\n## Quick start\n\nBoth integration paths take the **same single-argument config**.\n\n### CDN (no build step)\n\n```html\n<script src=\"https://unpkg.com/@bymos/agentkit-sdk@0.8/agentkit-widget.iife.js\"></script>\n<script>\n  window.AgentKit.init({\n    agentId: 'your-agent-id',\n    tenantId: 'your-tenant-id',\n    apiBaseUrl: 'https://api.klicforge.ai',\n    title: 'Support',\n  });\n</script>\n```\n\nThe `@0.8` pin tracks the latest patch of that minor line. Pin an exact version\n(`@0.8.0`) if you need byte-identical builds, and add\n[SRI](https://developer.mozilla.org/docs/Web/Security/Subresource_Integrity)\n(`integrity` + `crossorigin=\"anonymous\"`) when you do — an SRI hash only holds\nagainst an exact version.\n\n### npm (ESM / CJS)\n\n```ts\nimport { init } from '@bymos/agentkit-sdk';\n\nconst widget = init({\n  agentId: 'your-agent-id',\n  tenantId: 'your-tenant-id',\n  apiBaseUrl: 'https://api.klicforge.ai',\n});\n\nwidget.on('message:received', (msg) => console.log(msg.content));\n```\n\n`init` and `mount` default their renderer and stylesheet to the bundled UI. To\nsupply your own UI layer, pass them explicitly —\n`init(config, myRenderer, myCss)` — which is also the pre-0.6 call shape and\nstill works unchanged.\n\n---\n\n## Before it will run: allow your domain\n\nThe API rejects widget traffic from any origin that is not on the agent's\nallowlist. In the KlicForge dashboard open your agent → **Channels** → **Widget**\nand add every origin the widget loads from (`https://example.com`,\n`https://www.example.com` — scheme and host must match exactly; there are no\nwildcards). Without this the widget renders an access-restricted panel instead of\na chat.\n\n---\n\n## Configuration\n\n```ts\ntype AgentKitWidgetConfig = {\n  // Required\n  agentId: string; // Agent ID or slug from your KlicForge dashboard\n  apiBaseUrl: string; // Base URL of your KlicForge API\n\n  // Strongly recommended — required for conversation tracking and validation\n  tenantId?: string;\n\n  // Identity of the end user in your app (all optional; omit for anonymous)\n  user?: {\n    externalId?: string; // Your own identifier — DB ID, UUID, email, anything\n    authId?: string; // ID from your auth system (JWT sub, Clerk userId, …)\n    name?: string;\n    email?: string;\n  };\n  sessionId?: string; // Resume a conversation across tabs/page loads\n\n  // Display (optional)\n  mode?: 'floating' | 'inline'; // Default: 'floating'\n  title?: string; // Default: 'AI Assistant'\n  subtitle?: string; // Shown under the agent name in the header\n  description?: string; // Shown in the empty state\n  avatarUrl?: string;\n\n  // Behaviour (optional)\n  streaming?: boolean; // Default: true\n  metadata?: Record<string, unknown>; // Sent with every message\n\n  // Theming (optional)\n  theme?: {\n    mode?: 'light' | 'dark' | 'system'; // Default: 'light'\n    accentColor?: string; // Default: '#6366f1'\n    fontFamily?: string; // Default: system UI stack\n    borderRadius?: string; // Default: '12px'\n  };\n};\n```\n\nConfig is validated at init — an invalid value throws a `ZodError`, so wrap\n`init()` in a try/catch if the values are user-supplied.\n\nAt init time the widget fetches the widget config set for your agent in the\nKlicForge dashboard (title, avatar, suggested questions, attachment limits) and\nuses it as defaults. Anything you pass here overrides it.\n\nSuggested questions, photo/file upload and attachment limits are **server-only** —\nconfigure them on the agent in the dashboard; they cannot be set from the host page.\n\nYour agent always serves its **published** version. `preview`, `skipServerConfigFetch`\nand `configChannel` are dashboard-internal: they only do anything for a caller\nholding a KlicForge session cookie for the owning tenant, so setting them on a\npublic site has no effect.\n\n---\n\n## Widget instance API\n\n`init()`, `mount()` and `mountFloating()` all return a `WidgetInstance`:\n\n```ts\nwidget.open();\nwidget.close();\nwidget.toggle();\nwidget.sendMessage('Hello!');\nwidget.sendMessage('See this', [{ file, kind: 'image' }]);\nwidget.reset(); // Clear the conversation and start over\nwidget.destroy(); // Tears down the DOM and closes the event stream\nwidget.getState(); // → WidgetState\nwidget.on(event, fn);\nwidget.off(event, fn);\n```\n\nCall `destroy()` when unmounting in an SPA — it closes the operator-reply event\nstream, which otherwise reconnects indefinitely.\n\n---\n\n## Events\n\n| Event                  | Payload                  |\n| ---------------------- | ------------------------ |\n| `ready`                | `WidgetState`            |\n| `open` / `close`       | —                        |\n| `message:sent`         | `WidgetMessage`          |\n| `message:received`     | `WidgetMessage`          |\n| `message:error`        | `{ error, message }`     |\n| `conversation:started` | `{ sessionId }`          |\n| `stream:start`         | —                        |\n| `stream:delta`         | `{ delta, accumulated }` |\n| `stream:end`           | `{ content }`            |\n| `control_mode_changed` | `{ mode }`               |\n| `reset`                | —                        |\n| `destroy`              | —                        |\n\n`control_mode_changed` fires when a human operator takes over the conversation\nor hands it back to the agent.\n\n---\n\n## CDN global API (`window.AgentKit`)\n\n| Method                   | Description                                          |\n| ------------------------ | ---------------------------------------------------- |\n| `init(config)`           | Create a floating widget anchored to `document.body` |\n| `mount(element, config)` | Mount a widget inline inside a DOM element           |\n| `destroy(id?)`           | Destroy widget by ID, or all widgets if no ID given  |\n\n### Inline mount example\n\n```html\n<div id=\"chat\"></div>\n<script src=\"https://unpkg.com/@bymos/agentkit-sdk@0.8/agentkit-widget.iife.js\"></script>\n<script>\n  window.AgentKit.mount(document.getElementById('chat'), {\n    agentId: 'your-agent-id',\n    tenantId: 'your-tenant-id',\n    apiBaseUrl: 'https://api.klicforge.ai',\n  });\n</script>\n```\n\n`mount()` always renders inline — there is no need to pass `mode`.\n\n---\n\n## npm exports\n\n```ts\n// Lifecycle\nimport { init, mount, mountFloating, destroy } from '@bymos/agentkit-sdk';\nimport { destroyWidget, listWidgets, createWidget } from '@bymos/agentkit-sdk';\n\n// Config\nimport { normalizeConfig } from '@bymos/agentkit-sdk';\n\n// Session\nimport { getSessionId, setSessionId, clearSession } from '@bymos/agentkit-sdk';\n\n// UI (requires the preact peer dep)\nimport { renderWidget, buildWidgetCSS, buildThemeVars } from '@bymos/agentkit-sdk';\n\n// Lower-level\nimport { ApiClient, streamChat, EventEmitter } from '@bymos/agentkit-sdk';\nimport {\n  createShadowHost,\n  createFloatingContainer,\n  prepareInlineContainer,\n} from '@bymos/agentkit-sdk';\n\n// Types\nimport type {\n  AgentKitWidgetConfig,\n  NormalizedWidgetConfig,\n  WidgetInstance,\n  WidgetState,\n  WidgetMessage,\n  WidgetEventMap,\n  RenderFn,\n} from '@bymos/agentkit-sdk';\n```\n\n`mountFloating(element, config)` anchors the launcher inside a specific element\nrather than the page — useful for previews and bounded layouts.\n\n---\n\n## Session management\n\nWithin a browser tab, sessions are automatic — the SDK reads and writes\n`sessionStorage` keyed by `agentId` with no configuration needed. Sessions are\ncleared when the tab closes, and storage access is failure-tolerant: in Safari\nprivate mode or a partitioned third-party context the widget simply starts a new\nconversation on each load rather than erroring.\n\nTo persist a conversation across tabs or page reloads, save and restore the\nsession ID yourself:\n\n```ts\nwidget.on('conversation:started', ({ sessionId }) => {\n  localStorage.setItem('chat-session', sessionId);\n});\n\n// Later, on the next load:\nconst widget = window.AgentKit.init({\n  agentId: 'your-agent-id',\n  tenantId: 'your-tenant-id',\n  apiBaseUrl: 'https://api.klicforge.ai',\n  sessionId: localStorage.getItem('chat-session') ?? undefined,\n});\n```\n\n---\n\n## Theming\n\nThe widget renders inside a **Shadow DOM** to prevent CSS conflicts with your\npage. Use the `theme` config to customise it:\n\n```ts\nwindow.AgentKit.init({\n  agentId: 'your-agent-id',\n  tenantId: 'your-tenant-id',\n  apiBaseUrl: 'https://api.klicforge.ai',\n  theme: {\n    mode: 'dark',\n    accentColor: '#ec4899',\n    fontFamily: \"'Inter', sans-serif\",\n    borderRadius: '8px',\n  },\n});\n```\n\nTheme values become CSS custom properties inside the shadow root —\n`--ak-accent`, `--ak-accent-hover`, `--ak-font`, `--ak-radius`. Setting those\nvariables on your own page has no effect; pass `theme` instead.\n\n---\n\n## Content Security Policy\n\nIf your site sends a CSP, the widget needs:\n\n| Directive     | Value                                                        |\n| ------------- | ------------------------------------------------------------ |\n| `script-src`  | `https://unpkg.com` (CDN install only)                       |\n| `connect-src` | your `apiBaseUrl`                                            |\n| `img-src`     | your `apiBaseUrl` and any avatar host, plus `data:`          |\n| `style-src`   | `'unsafe-inline'` — styles are injected into the shadow root |\n\nShadow DOM does not exempt inline styles from CSP, so `style-src 'unsafe-inline'`\nis currently required.\n\n---\n\n## Requirements\n\n- Node.js ≥ 18 (for npm usage)\n- Modern browser with Shadow DOM support\n","readmeFilename":"README.md"}