mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
5ecdee36b8
Adds a durable persistence layer for @copilotkit/bot, replacing the
in-memory-only ActionStore with a pluggable StateStore.
- StateStore interface (kv/list/lock/dedup/queue) with a shared
conformance suite; MemoryStore default plus @copilotkit/bot-store-redis
and @copilotkit/bot-store-postgres backends.
- createBot({ store }): typed per-thread state via Standard Schema,
action snapshots persisted through the store, per-conversation turn
lock (onLockConflict drop|force), and inbound-event dedup keyed on a
stable eventId. ActionStore is kept as a deprecated alias.
- Cross-platform transcripts (bot.transcripts + identity resolver) with
age-bounded retention (prune on append + filter on read), and
runAgent({ transcript: true }) to auto-inject history and capture the
reply.
- createBot({ components }) re-registers components so durable actions
re-fire after a restart; restart-durability demo in examples/slack.
- Dedup is marked seen only after the turn lock is acquired, so a turn
dropped on lock-conflict does not burn its eventId (no lost retries).
- Release lockstep: bot-store-redis/postgres version with bot + bot-ui.
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"prereleaseTag": "canary",
|
|
"scopes": {
|
|
"monorepo": {
|
|
"packages": [
|
|
"@copilotkit/a2ui-renderer",
|
|
"@copilotkit/agentcore-runner",
|
|
"@copilotkit/core",
|
|
"@copilotkit/react-core",
|
|
"@copilotkit/react-native",
|
|
"@copilotkit/react-textarea",
|
|
"@copilotkit/react-ui",
|
|
"@copilotkit/runtime",
|
|
"@copilotkit/runtime-client-gql",
|
|
"@copilotkit/sdk-js",
|
|
"@copilotkit/shared",
|
|
"@copilotkit/sqlite-runner",
|
|
"@copilotkit/voice",
|
|
"@copilotkit/vue",
|
|
"@copilotkit/web-inspector"
|
|
],
|
|
"versionSource": "@copilotkit/react-core",
|
|
"sharedVersion": true
|
|
},
|
|
"angular": {
|
|
"packages": ["@copilotkit/angular"],
|
|
"versionSource": "@copilotkit/angular",
|
|
"sharedVersion": false
|
|
},
|
|
"bot": {
|
|
"packages": [
|
|
"@copilotkit/bot",
|
|
"@copilotkit/bot-ui",
|
|
"@copilotkit/bot-store-redis",
|
|
"@copilotkit/bot-store-postgres"
|
|
],
|
|
"versionSource": "@copilotkit/bot",
|
|
"sharedVersion": true
|
|
},
|
|
"bot-discord": {
|
|
"packages": ["@copilotkit/bot-discord"],
|
|
"versionSource": "@copilotkit/bot-discord",
|
|
"sharedVersion": false
|
|
},
|
|
"bot-slack": {
|
|
"packages": ["@copilotkit/bot-slack"],
|
|
"versionSource": "@copilotkit/bot-slack",
|
|
"sharedVersion": false
|
|
},
|
|
"bot-telegram": {
|
|
"packages": ["@copilotkit/bot-telegram"],
|
|
"versionSource": "@copilotkit/bot-telegram",
|
|
"sharedVersion": false
|
|
},
|
|
"bot-whatsapp": {
|
|
"packages": ["@copilotkit/bot-whatsapp"],
|
|
"versionSource": "@copilotkit/bot-whatsapp",
|
|
"sharedVersion": false
|
|
}
|
|
}
|
|
}
|