Compare commits

...

1 Commits

Author SHA1 Message Date
Innei 37214c27e8 ♻️ refactor: relocate src/server backend modules to apps/server package
Rebuilt on current canary: git mv the 8 server subtrees (services, routers,
modules, globalConfig, utils, runtimeConfig, workflows, featureFlags) into
@lobechat/server, with @/server/* dual-path alias, database vitest aliases,
and instrumentation import fixup.
2026-06-08 23:48:34 +08:00
1107 changed files with 73 additions and 70 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"name": "@lobechat/server",
"version": "0.0.0",
"private": true,
"scripts": {
"type-check": "tsc --noEmit"
}
}
@@ -3763,9 +3763,9 @@ describe('RuntimeExecutors', () => {
// Import real implementations directly from source (bypassing the @lobechat/model-runtime mock)
const { consumeStreamUntilDone: realConsume } =
await import('../../../../../packages/model-runtime/src/utils/consumeStream');
await import('../../../../../../packages/model-runtime/src/utils/consumeStream');
const { createCallbacksTransformer } =
await import('../../../../../packages/model-runtime/src/core/streams/protocol');
await import('../../../../../../packages/model-runtime/src/core/streams/protocol');
// Use real consumeStreamUntilDone so the stream is actually consumed
vi.mocked(consumeStreamUntilDone).mockImplementation(realConsume);
@@ -188,7 +188,6 @@ describe('AssistantStore', () => {
global.fetch = vi.fn().mockRejectedValue(new Error('something else'));
const store = new AssistantStore();
vi.spyOn(console, 'error').mockImplementation(() => {});
await expect(store.getAgentIndex()).rejects.toThrow('something else');

Some files were not shown because too many files have changed in this diff Show More