Skip to content

Add ai-chat-widget plugin with tests#10

Merged
dewitt4 merged 1 commit into
mainfrom
feature/plugin-chat-widget
Apr 4, 2026
Merged

Add ai-chat-widget plugin with tests#10
dewitt4 merged 1 commit into
mainfrom
feature/plugin-chat-widget

Conversation

@dewitt4
Copy link
Copy Markdown
Contributor

@dewitt4 dewitt4 commented Apr 4, 2026

Introduce a new ai-chat-widget plugin under packages/plugins/official/ai-chat-widget. Adds the plugin implementation (src/index.ts) with session management helpers (generateSessionId, buildSessionKey, buildActiveKey, trimMessages), lifecycle hooks (app:init, conversation:start, conversation:beforeMessage, conversation:end), filters (prompt:modify, response:modify), and REST endpoints (GET /config, POST /session, GET/DELETE /session/:id). Also includes unit tests, package.json, manifest and TypeScript configs for the plugin. Tests cover helpers, hooks, filters and endpoint behavior.

Introduce a new ai-chat-widget plugin under packages/plugins/official/ai-chat-widget. Adds the plugin implementation (src/index.ts) with session management helpers (generateSessionId, buildSessionKey, buildActiveKey, trimMessages), lifecycle hooks (app:init, conversation:start, conversation:beforeMessage, conversation:end), filters (prompt:modify, response:modify), and REST endpoints (GET /config, POST /session, GET/DELETE /session/:id). Also includes unit tests, package.json, manifest and TypeScript configs for the plugin. Tests cover helpers, hooks, filters and endpoint behavior.
@dewitt4 dewitt4 self-assigned this Apr 4, 2026
@dewitt4 dewitt4 added the enhancement New feature or request label Apr 4, 2026
@dewitt4 dewitt4 merged commit b2aa540 into main Apr 4, 2026
4 checks passed
@dewitt4 dewitt4 deleted the feature/plugin-chat-widget branch April 4, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant