build(trial): preserve deployed source for knowledge refresh

This commit is contained in:
鲨鱼辣椒 committed 2026-10-13 14:29:33 +08:00
1 parent 8e0e52f30e
commit 2d4e44f4a0
42 files changed
+2321 -283

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
import { test, expect, type Page } from '@playwright/test';
import { createServer, type ViteDevServer } from 'vite';
import { createServer, normalizePath, type ViteDevServer } from 'vite';
import { resolve } from 'node:path';
import type { CloudAttachment, CloudHistory, CloudInterrupt, CloudRun, CloudThread } from '../../shared/cloud-agents';
@@ -11,7 +11,7 @@ test.use({ headless: true, channel: process.env.MAKELORE_LAYOUT_BROWSER_CHANNEL,
// the event stream are isolated fixtures; this suite never starts a native app
// or contacts an account, cloud service or model.
test.beforeAll(async () => {
const entry = resolve('tests/e2e/__cloud-agent-chat-layout-harness.tsx');
const entry = normalizePath(resolve('tests/e2e/__cloud-agent-chat-layout-harness.tsx'));
server = await createServer({
configFile: false,
cacheDir: 'node_modules/.vite-cloud-agent-chat-layout',
@@ -422,7 +422,7 @@ for (const viewport of [{ width: 375, height: 540 }, { width: 1440, height: 900
test(`reasoning streams separately and becomes collapsed durable history at ${viewport.width}×${viewport.height}`, async ({ page }) => {
const errors = await openChat(page, 'thinking', viewport.width, viewport.height);
const transcript = page.getByTestId('cloud-chat-messages');
const thinking = page.getByTestId('cloud-chat-reasoning');
const thinking = page.getByTestId('cloud-message-process');
const envelope = { thread_id: 'story-first', run_id: 'run-story-first' };
const prefix = '先观察故事里的小发现。\n';
const reasoning = prefix + Array.from({ length: 40 }, (_, index) =>