Storage service plugin for ChatLuna, providing persistent storage for conversation history and presets. Current stable version is 1.0.7, release cadence irregular. Integrates with the Koishi bot framework (peer dependency ^4.18.9) and the ChatLuna ecosystem. Unlike generic storage solutions, it is purpose-built for chatbot conversation contexts, supporting preset actions and seamless integration with ChatLuna's plugin architecture. Requires Node.js >=18.0.0 and ships TypeScript types.
npm install koishi-plugin-chatluna-storage-serviceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the ChatLuna Storage Service plugin in a Koishi bot.
Run `npx chatluna-storage-migrate` before upgrading.
Replace `presetActions` with `actions` in plugin config.
Ensure `chatluna` plugin is loaded before `koishi-plugin-chatluna-storage-service` in your Koishi configuration.
Import statically at the top of the file or use Koishi's `ctx.plugin()` with the module directly.
Upgrade Node.js to 18.0.0 or later.
Run `npm install koishi-plugin-chatluna-storage-service --save`
Ensure the code is inside a Koishi plugin definition, e.g., `export function apply(ctx: Context) { ... }`Use `import { StorageService } from 'koishi-plugin-chatluna-storage-service';`Use ES Module import syntax, e.g., `import ChatLunaStorageService from 'koishi-plugin-chatluna-storage-service'`