From dd30d5abe78532b0dcfcd2ba3d3dfa5caa22bba4 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 21:14:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=88=B6=E4=BD=9C=E9=98=B6=E6=AE=B5=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/projects/api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/projects/api.ts b/src/features/projects/api.ts index d84d1c4..aa95364 100644 --- a/src/features/projects/api.ts +++ b/src/features/projects/api.ts @@ -1,13 +1,15 @@ import { request, optionalResource } from '../../lib/http' import type { Checkpoint } from '../workflows/types' import type { WorkflowExecutionStart } from '../workflows/execution.types' -import type { CreateProjectInput, DramaState, Project, ProjectDetail, UpdateProjectInput } from './types' +import type { CreateProjectInput, DramaState, Project, ProjectDetail, ProjectStageReadiness, UpdateProjectInput } from './types' /** 项目与 Create Drama API;路径严格对应后端 dev。 */ export const projectsApi = { list: (signal?: AbortSignal) => request('/projects', { signal }), detail: (id: string, signal?: AbortSignal) => request(`/projects/${encodeURIComponent(id)}`, { signal }), + stageReadiness: (id: string, signal?: AbortSignal) => + request(`/projects/${encodeURIComponent(id)}/stage-readiness`, { signal }), create: (input: CreateProjectInput) => request<{ projectId: string; status: string; executionId: string }>('/projects', { method: 'POST', body: input }), update: (id: string, input: UpdateProjectInput) =>