Commit Graph

5 Commits

Author SHA1 Message Date
mlogclub eb04c344a5 refactor: rename cs-ai-agent to agent-desk in SDK and related files
- Updated message types in support-host-bridge.ts to use agent-desk prefix.
- Added new agent-desk-sdk.min.js file with updated functionality.
- Removed old cs-ai-agent-sdk.min.js file.
- Modified build-sdk script to generate agent-desk-sdk.min.js.
- Changed scrollbar class names in main.scss from cs-ai-agent to agent-desk.
2026-05-31 18:46:05 +08:00
mlogclub 15710d294f feat: add runtime configuration for Kefu Chat SDK
- Introduced `readKefuChatRuntimeConfig` and `setKefuChatRuntimeConfig` functions to manage runtime configuration for the Kefu Chat SDK.
- Updated `useKefuChatStore` to utilize the new runtime configuration functions instead of the previous widget config methods.
- Modified the SDK build process to compile TypeScript instead of JavaScript, enhancing type safety and maintainability.
- Updated the minified SDK file to reflect the changes in configuration handling and TypeScript compilation.
2026-05-06 19:28:49 +08:00
mlogclub 1db5c3bf39 feat: minify SDK JavaScript and improve build process
- Implemented minification of the cs-ai-agent-sdk.min.js file using Terser during the build process.
- Updated build-sdk.mjs to read the source code, minify it, and write the output to the target directory.
- Added logging to display the size reduction after minification.
- Removed redundant code and streamlined the configuration handling in the SDK.
2026-04-24 22:37:11 +08:00
mlogclub 9590fc29d3 refactor(build-sdk): simplify SDK build process by removing minification logic 2026-04-24 19:44:55 +08:00
mlogclub c945f1e73d feat: add minified SDK build script and update widget script references 2026-04-24 19:43:59 +08:00