@aleph-alpha/chat-kit 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @aleph-alpha/chat-kit
|
|
2
2
|
|
|
3
|
-
Chat kit for building chat interfaces with Vue.
|
|
3
|
+
Chat kit for building chat interfaces with Vue. Ships components, handlers (message tree via `useMessageHandler`, markdown, labels — from the package root or `@aleph-alpha/chat-kit/handlers`), a composables entry for `useChat` _(under development)_, and a services layer for backends _(under development)_.
|
|
4
4
|
|
|
5
5
|
> Part of the [frontend-hub](https://github.com/Aleph-Alpha/frontend-hub) monorepo.
|
|
6
6
|
|
|
@@ -12,13 +12,13 @@ pnpm add @aleph-alpha/chat-kit
|
|
|
12
12
|
|
|
13
13
|
## Architecture
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Chat Kit is organised into **three layers**:
|
|
16
16
|
|
|
17
|
-
1. **
|
|
18
|
-
2. **
|
|
19
|
-
3. **
|
|
17
|
+
1. **Components** — Pre-built Vue 3 components for chat UIs, split into **base** (presentational) and **composed** (opinionated patterns).
|
|
18
|
+
2. **Handlers** — Reactive utilities for chat state management: `useMessageHandler` (conversation tree), `useMarkdownParser` (markdown pipeline), `useChatKitLabels` (i18n).
|
|
19
|
+
3. **Services** _(under development)_ — Abstract `ChatService` / `IChatService` for backend communication and streaming. Not ready for production use.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
`useChat` _(under development)_ lives in `composables/` as a planned high-level orchestrator that composes handlers and services into a single API.
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
@@ -28,6 +28,9 @@ Import from specific entry points for tree-shaking:
|
|
|
28
28
|
// Services only
|
|
29
29
|
import { ChatService, type IChatService } from '@aleph-alpha/chat-kit/services';
|
|
30
30
|
|
|
31
|
+
// Handlers only
|
|
32
|
+
import { useMessageHandler } from '@aleph-alpha/chat-kit/handlers';
|
|
33
|
+
|
|
31
34
|
// Composables only
|
|
32
35
|
import { useChat } from '@aleph-alpha/chat-kit/composables';
|
|
33
36
|
|
|
@@ -60,8 +63,9 @@ pnpm nx run chat-kit:storybook
|
|
|
60
63
|
## Documentation
|
|
61
64
|
|
|
62
65
|
- [Overview](./docs/overview.md) — Architecture and features
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
66
|
+
- [Quick Start](./docs/quick-start.md) — Install and minimal chat UI
|
|
67
|
+
- [Handlers and Services](./docs/handlers-and-services.md) — Message state, markdown, labels, services
|
|
68
|
+
- [API Reference](./docs/reference.md) — Public exports (components, handlers, composables, services, types)
|
|
65
69
|
- [CI/CD Flow](../../.github/documentation/GITHUB_CI_FLOW.md) — Release process and PR checks
|
|
66
70
|
- [Storybook Deployment](../../.github/documentation/STORYBOOK_DEPLOYMENT.md) — Preview and production Storybook
|
|
67
71
|
|