Commit c171adbc by 胡悦

feat(config,prelearning,sop-preview): 新增API路径适配工具并修复交互问题

- 新增`buildBackendApiPath`统一后端API路径构建工具,根据运行域名自动适配API前缀:本地开发环境使用无前缀`/api`以兼容Vite代理,测试/生产环境自动添加`/backend`前缀,同时支持通过环境变量覆盖配置
- 完善预学习页面防重复点击规则,新增对「继续学习下个套餐」「完成学习」「查看其他案例」三个按钮的处理:请求未完成时禁用按钮且不重复发送相同请求
- 修复SOP素材预览页的展示逻辑:当用户打开预览页且URL未携带有效`actionId`、且未收到初始化消息时,展示空白页面而非“等待预览数据”文案
- 补充对应测试用例,修改现有SOP预览页的测试断言以匹配新的展示逻辑
- 更新OpenSpec文档、项目任务清单与工作流状态,将当前变更标记为可归档
1 parent 0a5d7409
# 当前状态:yuehu / single-pages
日期:2026-06-24
日期:2026-06-25
## 当前阶段
- 当前 active change 为 `update-h5-tracking-and-product-package-info`,状态已推进到 `READY_TO_ARCHIVE`。用户回流反馈“继续学习下个套餐”仍返回当前套餐后,已先补强 OpenSpec artifacts 和 tasks,再实现后端修复并完成验证。
- 2026-06-25 回流完成:测试环境前端 `single-pages.test.glsx.com.cn` 同域访问后端时,前端 API 请求自动加 `/backend` 前缀;本地运行继续使用无前缀 `/api/...` 以保持 Vite proxy 调试链路。已补充 `single-pages-foundation` OpenSpec 增量、配置层工具和回归测试,并通过配置层测试、预学习前端测试、SOP 素材前端测试、前端 typecheck、前端 build、OpenSpec strict 与 diff 检查。
- 本次回流修复内容:`learn_next` 保存当前学习状态后,后端改为通过带 `currentActivityProductId` 和 `staffUuid` 的候选查询选择下一个活动项;SQL 侧硬排除当前 `activityProductId`,并限制同一 `activityId`、`deleted_flag='N'`、`is_main_push=1`、员工未完成学习。新增回归测试覆盖保存后学习状态读取不一致时也不得返回当前套餐,且返回 title、`packageInfo`、caseId 来自其他未学习主推候选。
- 新鲜验证:`rtk npm run test -- src/routes/prelearning.test.ts`、`rtk npm run typecheck`、`rtk npm run test -- src/routes/sop-material-preview.test.ts src/routes/prelearning.test.ts`、`rtk npm run build`、`rtk openspec validate update-h5-tracking-and-product-package-info --strict`、`rtk git diff --check -- ...` 均通过。OpenSpec strict 的 PostHog 遥测 flush 因网络 DNS 失败,不影响 Exit Code 0 的校验结果。
- 当前 change 为 `add-prelearning-app-bridge-tracking`,OpenSpec artifacts 已创建并通过 `rtk openspec validate add-prelearning-app-bridge-tracking --strict`。`workspace/single-pages/.workflow-state.json` 已同步为 `SPEC_LOCKED`,但 `user_confirmed_openspec=false`,用户确认前不能进入实现。
......
{
"stage": "VALIDATING",
"stage": "READY_TO_ARCHIVE",
"project": "workspace/single-pages",
"change": "add-backend-start-command",
"change": "update-h5-tracking-and-product-package-info",
"current_agent": "qa-validation-agent",
"last_handoff": "2026-06-25 已完成 single-pages backend `npm start` 脚本改动,并通过 backend typecheck 与 OpenSpec strict 校验。受本机现有 3002 端口占用和沙箱限制影响,`npm start` 启动健康检查改由用户手动执行,当前处于待手动验证状态。",
"last_handoff": "2026-06-25 已完成前端后端 API 基路径回流:测试环境等非本地域名自动请求 `/backend/api/...`,本地运行继续请求 `/api/...`;已通过配置层测试、预学习前端测试、SOP 素材前端测试、前端 typecheck、前端 build、OpenSpec strict 和 diff 检查。",
"gates": {
"requirements_boundary_confirmed": true,
"architecture_confirmed": true,
"openspec_locked": true,
"user_confirmed_openspec": true,
"implementation_started": true,
"validation_completed": false
"validation_completed": true
},
"last_validation": {
"commands": [
"rtk npm run test -- packages/config/src/index.test.ts",
"rtk npm run test -- src/apps/sop-material-preview/app.test.tsx",
"rtk npm run test -- src/apps/prelearning/app.test.tsx",
"rtk npm run typecheck",
"rtk openspec validate add-backend-start-command --strict"
"rtk npm run build",
"rtk openspec validate update-h5-tracking-and-product-package-info --strict",
"rtk git diff --check -- <changed-files>"
],
"result": "PARTIAL",
"notes": "2026-06-25 backend typecheck 与 OpenSpec strict 校验通过。`npm start` 的真实启动验证先后受沙箱内 tsx IPC pipe 权限限制、提权启动时 3002 端口占用影响;随后按用户要求改为由用户自行验证启动与 /health 检查。OpenSpec strict 输出包含 PostHog telemetry DNS 提示,但命令 Exit Code 为 0 且报告 change valid。"
"result": "PASS",
"notes": "2026-06-25 全部前端与 OpenSpec 验证通过。OpenSpec strict 输出包含 PostHog telemetry DNS 提示,但命令 Exit Code 为 0 且报告 change valid。"
},
"updated_at": "2026-06-25T18:02:00+08:00"
"updated_at": "2026-06-25T19:25:00+08:00"
}
......@@ -3,6 +3,8 @@ import { describe, expect, it } from 'vitest';
import {
DEFAULT_SOP_PREVIEW_ALLOWED_ORIGINS,
DEFAULT_PRELEARNING_ALLOWED_ORIGINS,
buildBackendApiPath,
resolveBackendApiBasePath,
parseSopPreviewAllowedOrigins,
parsePrelearningAllowedOrigins,
} from './index';
......@@ -40,3 +42,27 @@ describe('parsePrelearningAllowedOrigins', () => {
]);
});
});
describe('resolveBackendApiBasePath', () => {
it('does not add a backend prefix for local runtime hosts', () => {
expect(resolveBackendApiBasePath({ hostname: 'localhost' })).toBe('');
expect(resolveBackendApiBasePath({ hostname: '127.0.0.1' })).toBe('');
expect(resolveBackendApiBasePath({ hostname: '192.168.1.146' })).toBe('');
expect(resolveBackendApiBasePath({ hostname: '10.0.0.8' })).toBe('');
expect(resolveBackendApiBasePath({ hostname: '172.16.1.8' })).toBe('');
});
it('adds the backend prefix for remote deployed front-end hosts', () => {
expect(resolveBackendApiBasePath({ hostname: 'single-pages.test.glsx.com.cn' })).toBe('/backend');
expect(buildBackendApiPath('/api/prelearning/init', { hostname: 'single-pages.test.glsx.com.cn' })).toBe(
'/backend/api/prelearning/init',
);
});
it('allows an explicit env base path override', () => {
expect(resolveBackendApiBasePath({ hostname: 'single-pages.test.glsx.com.cn', envBasePath: '' })).toBe('');
expect(buildBackendApiPath('api/prelearning/init', { envBasePath: '/custom-backend/' })).toBe(
'/custom-backend/api/prelearning/init',
);
});
});
......@@ -14,6 +14,12 @@ export const DEFAULT_SOP_PREVIEW_ALLOWED_ORIGINS = [
] as const;
export const DEFAULT_PRELEARNING_ALLOWED_ORIGINS = [...DEFAULT_SOP_PREVIEW_ALLOWED_ORIGINS];
export const DEFAULT_REMOTE_BACKEND_API_BASE_PATH = '/backend';
export interface BackendApiPathOptions {
hostname?: string;
envBasePath?: string;
}
export function parseSopPreviewAllowedOrigins(rawValue: string | undefined): string[] | '*' {
const text = rawValue?.trim();
......@@ -62,3 +68,55 @@ export function parsePrelearningAllowedOrigins(rawValue: string | undefined): st
}
});
}
export function isLocalRuntimeHostname(hostname: string | undefined): boolean {
const normalized = hostname?.trim().toLowerCase();
if (!normalized) {
return true;
}
if (
normalized === 'localhost'
|| normalized === '0.0.0.0'
|| normalized === '::1'
|| normalized.startsWith('127.')
|| normalized.startsWith('192.168.')
|| normalized.startsWith('10.')
) {
return true;
}
const private172Match = /^172\.(\d+)\./.exec(normalized);
if (private172Match) {
const secondOctet = Number(private172Match[1]);
return secondOctet >= 16 && secondOctet <= 31;
}
return false;
}
export function normalizeBackendApiBasePath(basePath: string): string {
const trimmed = basePath.trim();
if (!trimmed || trimmed === '/') {
return '';
}
return `/${trimmed.replace(/^\/+|\/+$/g, '')}`;
}
export function resolveBackendApiBasePath(options: BackendApiPathOptions = {}): string {
if (options.envBasePath !== undefined) {
return normalizeBackendApiBasePath(options.envBasePath);
}
return isLocalRuntimeHostname(options.hostname) ? '' : DEFAULT_REMOTE_BACKEND_API_BASE_PATH;
}
export function buildBackendApiPath(pathname: string, options: BackendApiPathOptions = {}): string {
const basePath = resolveBackendApiBasePath(options);
const normalizedPathname = pathname.startsWith('/') ? pathname : `/${pathname}`;
return `${basePath}${normalizedPathname}`;
}
......@@ -11,6 +11,13 @@ import type {
PrelearningInitResponse,
PrelearningActionType,
} from '@single-pages/contracts';
import { buildBackendApiPath } from '@single-pages/config';
const backendApiPath = (pathname: string) => buildBackendApiPath(pathname, {
hostname: globalThis.location?.hostname,
envBasePath: (import.meta as ImportMeta & { env: { VITE_BACKEND_API_BASE_PATH?: string } }).env
.VITE_BACKEND_API_BASE_PATH,
});
export class PrelearningRequestError extends Error {
readonly code: string;
......@@ -45,7 +52,7 @@ function isPrelearningError(value: unknown): value is PrelearningApiError {
}
export async function fetchPrelearningSession(payload: PrelearningInitPayload): Promise<PrelearningInitResponse> {
const response = await fetch('/api/prelearning/init', {
const response = await fetch(backendApiPath('/api/prelearning/init'), {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -70,7 +77,7 @@ export async function fetchPrelearningAction(
actionType: PrelearningActionType,
payload: PrelearningActionPayload,
): Promise<PrelearningActionResponse> {
const response = await fetch('/api/prelearning/action', {
const response = await fetch(backendApiPath('/api/prelearning/action'), {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -96,7 +103,7 @@ export async function fetchPrelearningBuriedPoint(
): Promise<PrelearningBuriedPointResponse> {
console.log('[prelearning h5] buried point request payload:', payload);
const response = await fetch('/api/prelearning/buried-point', {
const response = await fetch(backendApiPath('/api/prelearning/buried-point'), {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -576,6 +576,128 @@ describe('PrelearningApp', () => {
});
});
it('does not send a second complete action request when the button is clicked twice before submit state renders', async () => {
const payload: PrelearningInitPayload = {
...VALID_PAYLOAD,
entrySource: 'package_detail',
};
const initResponse = createMockPrelearningResponse(payload);
initResponse.actionState = {
actionType: 'complete',
buttonLabel: '完成学习',
disabled: false,
};
const fetchSpy = vi.spyOn(globalThis, 'fetch').mockImplementation((async (input) => {
const url = typeof input === 'string' ? input : input instanceof Request ? input.url : String(input);
if (url === READ_GATE_CONFIG_URL) {
return buildFetchResponse({
data: {
timeCount: 60,
unit: '秒',
},
}, true);
}
if (url.includes('/api/prelearning/init')) {
return buildFetchResponse(initResponse, true);
}
if (url.includes('/api/prelearning/action')) {
return await new Promise<Response>(() => {});
}
return buildFetchResponse({ stored: true, duplicate: false }, true);
}) as typeof fetch);
render(<PrelearningApp />);
await waitFor(() => {
expect(window.initPrelearningSession).toBeTypeOf('function');
});
vi.useFakeTimers();
await act(async () => {
window.initPrelearningSession?.(payload);
await vi.advanceTimersByTimeAsync(0);
});
await act(async () => {
await vi.advanceTimersByTimeAsync(61000);
});
const button = screen.getByRole('button', { name: '完成学习' });
await act(async () => {
button.click();
button.click();
await vi.advanceTimersByTimeAsync(0);
});
expect(fetchSpy.mock.calls.filter(([input]) => String(input).includes('/api/prelearning/action'))).toHaveLength(1);
});
it('does not send a second view_other action request when the button is clicked twice before submit state renders', async () => {
const payload: PrelearningInitPayload = {
...VALID_PAYLOAD,
entrySource: 'package_detail',
};
const initResponse = createMockPrelearningResponse(payload);
initResponse.actionState = {
actionType: 'view_other',
buttonLabel: '查看其他案例',
disabled: false,
};
const fetchSpy = vi.spyOn(globalThis, 'fetch').mockImplementation((async (input) => {
const url = typeof input === 'string' ? input : input instanceof Request ? input.url : String(input);
if (url === READ_GATE_CONFIG_URL) {
return buildFetchResponse({
data: {
timeCount: 60,
unit: '秒',
},
}, true);
}
if (url.includes('/api/prelearning/init')) {
return buildFetchResponse(initResponse, true);
}
if (url.includes('/api/prelearning/action')) {
return await new Promise<Response>(() => {});
}
return buildFetchResponse({ stored: true, duplicate: false }, true);
}) as typeof fetch);
render(<PrelearningApp />);
await waitFor(() => {
expect(window.initPrelearningSession).toBeTypeOf('function');
});
vi.useFakeTimers();
await act(async () => {
window.initPrelearningSession?.(payload);
await vi.advanceTimersByTimeAsync(0);
});
await act(async () => {
await vi.advanceTimersByTimeAsync(61000);
});
const button = screen.getByRole('button', { name: '查看其他案例' });
await act(async () => {
button.click();
button.click();
await vi.advanceTimersByTimeAsync(0);
});
expect(fetchSpy.mock.calls.filter(([input]) => String(input).includes('/api/prelearning/action'))).toHaveLength(1);
});
it('tracks page_view once and does not record reroll_case when learn_next switches content', async () => {
const initResponse = createMockPrelearningResponse(VALID_PAYLOAD);
const nextPayload: PrelearningInitPayload = {
......
......@@ -2,6 +2,13 @@ import type {
SopMaterialPreviewApiError,
SopMaterialPreviewApiResponse,
} from '@single-pages/contracts';
import { buildBackendApiPath } from '@single-pages/config';
const backendApiPath = (pathname: string) => buildBackendApiPath(pathname, {
hostname: globalThis.location?.hostname,
envBasePath: (import.meta as ImportMeta & { env: { VITE_BACKEND_API_BASE_PATH?: string } }).env
.VITE_BACKEND_API_BASE_PATH,
});
export class SopMaterialPreviewRequestError extends Error {
readonly code: string;
......@@ -31,7 +38,7 @@ export async function fetchSopMaterialPreview(
const params = new URLSearchParams(queryParams);
params.set('actionId', actionId);
const response = await fetch(`/api/sop-material-preview?${params.toString()}`);
const response = await fetch(backendApiPath(`/api/sop-material-preview?${params.toString()}`));
const json = (await response.json().catch(() => null)) as unknown;
......
......@@ -153,7 +153,7 @@ describe('SopMaterialPreviewApp', () => {
it('accepts direct preview messages from allowed origins, ignores invalid messages, and lets later init override earlier one', async () => {
render(<SopMaterialPreviewApp />);
expect(screen.getByText('等待预览数据')).toBeInTheDocument();
expect(screen.queryByText('等待预览数据')).toBeNull();
await new Promise((resolve) => setTimeout(resolve, 0));
......@@ -166,7 +166,7 @@ describe('SopMaterialPreviewApp', () => {
}),
);
expect(screen.getByText('等待预览数据')).toBeInTheDocument();
expect(screen.queryByText('等待预览数据')).toBeNull();
window.dispatchEvent(
new MessageEvent('message', {
......
......@@ -266,6 +266,10 @@ function normalizePreviewStateFromResponse(raw: unknown): SopMaterialPreviewMode
};
}
function renderBlankPage() {
return <div aria-hidden="true" className="min-h-screen w-full" />;
}
export function SopMaterialPreviewApp() {
const [state, setState] = useState<PreviewState>({
pageStatus: 'idle',
......@@ -440,11 +444,11 @@ export function SopMaterialPreviewApp() {
let body: ReactNode;
if (state.pageStatus === 'empty') {
body = <div aria-hidden="true" className="min-h-screen w-full" />;
body = renderBlankPage();
} else if (state.pageStatus === 'loading') {
body = <StatusBlock title="正在加载素材" description="正在根据 ID 获取素材配置。" />;
} else if (state.pageStatus === 'idle' && !state.model) {
body = <StatusBlock title="等待预览数据" description="页面已就绪,等待来自父页面的直接预览数据。" />;
body = renderBlankPage();
} else if (model) {
const previewModel = model;
const intervalPx = previewModel.intervalPx;
......@@ -466,7 +470,7 @@ export function SopMaterialPreviewApp() {
</section>
);
} else {
body = <StatusBlock title="等待预览数据" description="页面已就绪,等待来自父页面的直接预览数据。" />;
body = renderBlankPage();
}
return (
......
......@@ -32,6 +32,7 @@ SOP 素材 H5 需要将 URL 查询入口从 `id` 调整为 `actionId`,并在
- 修复预学习接口返回 `notice` 时的前端处理:页面不得刷新或清空当前内容,只在页面正中间展示黑色 0.8 透明度、白色文字的 toast。
- 补齐 `查看其他案例` 后端候选规则:按入口范围从 `dj_prelearn_product_script` 随机选择未读案例,必须使用 `dj_prelearn_staff_read_case` 中 `staff_uuid + activity_id + activity_product_id` 的已读 `caseId` 过滤,且不得在没有未读案例时 fallback 到已读案例。
- 调整预学习完成学习通知:动作保存成功后 H5 通过 APP bridge postMessage 发送 `type=completeActivity` 和完成 payload,不再依赖 APP 注入 `window.completeActivity(payload)`。
- 测试环境等非本地域名访问前端时,前端调用后端接口必须自动加 `/backend` 前缀;本地运行时继续使用无前缀 `/api/...` 以保持 Vite proxy 与本地调试链路不变。
## Capabilities
......@@ -43,6 +44,7 @@ SOP 素材 H5 需要将 URL 查询入口从 `id` 调整为 `actionId`,并在
- `prelearning-learning-actions`: 补齐 `view_other` 按入口范围随机未读案例、已读过滤、无更多 notice 和 toast 不刷新规则。
- `prelearning-app-bridge-tracking`: 修复预学习首屏 `page_view` 埋点写入失败的契约和回归覆盖。
- `prelearning-app-bridge-tracking`: 将预学习完成学习通知统一到 postMessage bridge,APP 按 `type=completeActivity` 接收完成 payload。
- `single-pages-foundation`: 明确前端运行时后端 API 前缀策略,本地运行不加前缀,非本地域名默认加 `/backend`。
## Impact
......
......@@ -50,6 +50,7 @@
#### Scenario: 提交期间按钮禁用
- **WHEN** 用户点击任一学习动作按钮且请求尚未完成
- **AND** 该按钮是 `继续学习下个套餐`、`完成学习` 或 `查看其他案例` 之一
- **THEN** 前端 MUST 禁用当前动作按钮
- **AND** 前端 MUST NOT 发送第二个相同动作请求
......
## MODIFIED Requirements
### Requirement: Configuration is centralized and environment driven
The system SHALL provide centralized configuration loading for front-end and back-end runtime values, including page entry configuration, API base URL, database connection configuration, and future deployment-specific allowlists.
#### Scenario: Missing required back-end configuration fails fast
- **WHEN** a required back-end configuration value is missing at service startup
- **THEN** the service fails fast with a structured startup error instead of booting with an invalid partial configuration
#### Scenario: Page-specific configuration remains page-scoped
- **WHEN** a later page change defines APP bridge or SOP `postMessage` configuration
- **THEN** the configuration is added under the page-specific module while reusing the centralized configuration loader
#### Scenario: Deployed front-end routes API requests through backend prefix
- **WHEN** the single-pages front-end runs on a non-local host such as `single-pages.test.glsx.com.cn`
- **THEN** front-end calls to same-origin back-end API paths MUST use the `/backend` prefix before `/api`
- **AND** a request for `/api/prelearning/init` MUST be sent as `/backend/api/prelearning/init`
- **AND** a request for `/api/sop-material-preview` MUST be sent as `/backend/api/sop-material-preview`
#### Scenario: Local front-end runtime keeps unprefixed API requests
- **WHEN** the single-pages front-end runs on local development hosts such as `localhost`, `127.0.0.1`, or a private LAN IP
- **THEN** front-end calls to same-origin back-end API paths MUST NOT add the `/backend` prefix
- **AND** local requests MUST continue to use `/api/...` so the existing Vite proxy remains valid
#### Scenario: API base path can be explicitly overridden
- **WHEN** a deployment provides an explicit front-end API base path configuration
- **THEN** the front-end MUST use that configured base path instead of the hostname default
- **AND** an explicitly empty base path MUST keep requests unprefixed
......@@ -67,3 +67,9 @@
- **WHEN** SOP 素材页通过 iframe 直接预览模式接收 `SOP_MATERIAL_PREVIEW_INIT`
- **THEN** 页面不调用 query actionId 查询接口
- **AND** 后端 MUST NOT 因该直接预览写入 `sop_strategy_event_log`
#### Scenario: 等待 iframe 直接预览数据时保持空白
- **WHEN** 用户打开 `sop-material-preview.html` 且 URL query 不包含非空 `actionId`
- **AND** 页面尚未接收到有效的 `SOP_MATERIAL_PREVIEW_INIT`
- **THEN** 页面不展示“等待预览数据”文案
- **AND** 页面展示空白内容
......@@ -62,6 +62,9 @@
- [x] 4.22 将预学习完成通知从 `window.completeActivity(payload)` 改为 APP bridge postMessage,消息 `type=completeActivity`,并增加前端回归测试覆盖 APP 接收数据结构。
- [x] 4.23 按 demo 补齐预学习 H5 的 `uni.webview.1.5.5.js` 动态加载与 `UniAppJSBridgeReady` 等待逻辑,确保 `window.uni` 初始不存在时仍可在 bridge ready 后发送 `completeActivity`。
- [x] 4.24 回流修复点击 `完成学习` 成功后不展示“学习已保存”toast,后端不再返回成功 `notice/toastMessage`,前端兼容旧响应时也忽略该成功 toast。
- [x] 4.25 补齐前端回归测试,覆盖 `继续学习下个套餐`、`完成学习`、`查看其他案例` 三个学习动作在请求完成前连续点击时只发出一次动作请求。
- [x] 4.26 回流修复 SOP 素材页直接预览等待态,未携带 `actionId` 且尚未收到有效 `SOP_MATERIAL_PREVIEW_INIT` 时展示空白内容,不显示“等待预览数据”文案,并补充前端回归断言。
- [x] 4.27 修复前端后端 API 基路径策略:测试环境等非本地域名自动请求 `/backend/api/...`,本地运行继续请求 `/api/...`,并补充配置层回归测试。
## 5. 验证
......@@ -80,3 +83,6 @@
- [x] 5.13 重新运行 `rtk npm run test -- src/apps/prelearning/app.test.tsx`、前端 `rtk npm run typecheck`、`rtk openspec validate update-h5-tracking-and-product-package-info --strict` 和相关文件 `rtk git diff --check`,覆盖完成学习 postMessage 通知回归。
- [x] 5.14 重新运行 `rtk npm run test -- src/apps/prelearning/app.test.tsx`、前端 `rtk npm run typecheck`、`rtk openspec validate update-h5-tracking-and-product-package-info --strict` 和相关文件 `rtk git diff --check`,覆盖按 demo 加载 uni sdk 并等待 bridge ready 的完成通知回归。
- [x] 5.15 重新运行前端预学习测试、后端预学习测试、前后端 typecheck、OpenSpec strict 校验和相关文件 `git diff --check`,覆盖完成学习成功不弹 toast。
- [x] 5.16 重新运行前端预学习测试、前端 `typecheck`、OpenSpec strict 校验和相关文件 `git diff --check`,覆盖三个学习动作按钮的防重复点击回归。
- [x] 5.17 重新运行 SOP 素材前端测试、前端 `typecheck`、OpenSpec strict 校验和相关文件 `git diff --check`,覆盖直接预览等待态空白页回归。
- [x] 5.18 重新运行配置层测试、预学习前端测试、SOP 素材前端测试、前端 `typecheck`、前端 `build`、OpenSpec strict 校验和相关文件 `git diff --check`,覆盖 `/backend` 前缀与本地无前缀回归。
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!