mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 05:52:10 +00:00
📬 feat: Persist Channel Events and Delivery Receipts (#17595)
* 📬 feat: Persist Channel Events and Delivery Receipts
* fix: enforce channel run identity and fenced recovery
* fix: fence and erase channel state during account deletion
* refactor: share channel owner admission with private persistence
* refactor: name channel account-erasure boundary explicitly
* fix: prove channel identity and delivery authority at storage boundaries
* refactor: enforce channel delivery protocol and terminal lifecycle
* fix: enforce channel tenant and operation boundaries
* fix: initialize channel config from its composition owner
* test: verify config installs channel storage reader
* test: complete config initializer contract in model mocks
* test: include channel config reader in migration fixture
* test: await SSE subscription before advancing keepalive time
* test: Observe and Drain Concurrent Fixture Work
This commit is contained in:
parent
1458e841e4
commit
7dd4fafdf3
48 changed files with 3816 additions and 54 deletions
|
|
@ -35,6 +35,7 @@ jest.mock('@librechat/api', () => ({
|
|||
|
||||
jest.mock('~/models', () => ({
|
||||
initializeMessageBudget: jest.fn(),
|
||||
initializeChannelStorageConfig: jest.fn(),
|
||||
saveMessage: jest.fn(async (req, message) => message),
|
||||
getConvo: jest.fn(async () => null),
|
||||
getMessages: jest.fn(async () => []),
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ const mockGetCacheMultiplier = jest.fn(() => 1);
|
|||
|
||||
jest.mock('~/models', () => ({
|
||||
initializeMessageBudget: jest.fn(),
|
||||
initializeChannelStorageConfig: jest.fn(),
|
||||
getMultiplier: (...args) => mockGetMultiplier(...args),
|
||||
getCacheMultiplier: (...args) => mockGetCacheMultiplier(...args),
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ const mockSpendTokens = jest.fn().mockResolvedValue(undefined);
|
|||
|
||||
jest.mock('~/models', () => ({
|
||||
initializeMessageBudget: jest.fn(),
|
||||
initializeChannelStorageConfig: jest.fn(),
|
||||
spendTokens: mockSpendTokens,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ jest.mock('@librechat/api', () => ({
|
|||
|
||||
jest.mock('~/models', () => ({
|
||||
initializeMessageBudget: jest.fn(),
|
||||
initializeChannelStorageConfig: jest.fn(),
|
||||
saveMessage: jest.fn(async (req, message) => message),
|
||||
getConvo: jest.fn(async () => null),
|
||||
getMessages: jest.fn(async () => []),
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ const mockRecordCollectedUsage = jest
|
|||
|
||||
jest.mock('~/models', () => ({
|
||||
initializeMessageBudget: jest.fn(),
|
||||
initializeChannelStorageConfig: jest.fn(),
|
||||
spendTokens: (...args) => mockSpendTokens(...args),
|
||||
spendStructuredTokens: (...args) => mockSpendStructuredTokens(...args),
|
||||
getMultiplier: mockGetMultiplier,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue