diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 1d12b37a..f0996955 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -157,6 +157,12 @@ jobs: - name: Build prosemirror-markdown run: pnpm --filter @docmost/prosemirror-markdown build + # docmost-client.loader.ts type-imports from @docmost/mcp (issue #446); its + # build/ is gitignored and `test:e2e` type-checks, so build it here or tsc + # fails with TS2307 (mirrors the e2e-mcp / mcp-server-parity jobs). + - name: Build mcp + run: pnpm --filter @docmost/mcp build + - name: Run migrations run: pnpm --filter ./apps/server migration:latest diff --git a/apps/server/test/integration/ai-chat-attach.int-spec.ts b/apps/server/test/integration/ai-chat-attach.int-spec.ts index 7faad55f..70da3cbd 100644 --- a/apps/server/test/integration/ai-chat-attach.int-spec.ts +++ b/apps/server/test/integration/ai-chat-attach.int-spec.ts @@ -182,6 +182,7 @@ describe('AiChatService run-stream attach [integration]', () => { { isAiChatDeferredToolsEnabled: () => false, isAiChatResumableStreamEnabled: () => true, + isAiChatFinalStepLockdownEnabled: () => false, } as any, registry, ); @@ -499,6 +500,7 @@ describe('AiChatService run-stream attach [integration]', () => { { isAiChatDeferredToolsEnabled: () => false, isAiChatResumableStreamEnabled: () => true, + isAiChatFinalStepLockdownEnabled: () => false, } as any, registry, ); diff --git a/apps/server/test/integration/ai-chat-stream.int-spec.ts b/apps/server/test/integration/ai-chat-stream.int-spec.ts index a226e864..bd2a8098 100644 --- a/apps/server/test/integration/ai-chat-stream.int-spec.ts +++ b/apps/server/test/integration/ai-chat-stream.int-spec.ts @@ -150,7 +150,7 @@ describe('AiChatService.stream [integration]', () => { {} as any, // pageAccess (idem) // environment (#332): keep deferred tool loading OFF for this lifecycle // harness so the toolset/behavior is exactly as before. - { isAiChatDeferredToolsEnabled: () => false } as any, + { isAiChatDeferredToolsEnabled: () => false, isAiChatFinalStepLockdownEnabled: () => false } as any, ); } @@ -378,7 +378,7 @@ describe('AiChatService.stream [integration]', () => { {} as any, {} as any, // #332: deferred tool loading ON — the property under test. - { isAiChatDeferredToolsEnabled: () => true } as any, + { isAiChatDeferredToolsEnabled: () => true, isAiChatFinalStepLockdownEnabled: () => false } as any, ); }