chore: scope desktop client build to apps/desktop-client and document regenerate route
Drop the broad path filters that triggered the desktop client build on unrelated workspace changes, and add a swagger description for the existing article regenerate endpoint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,11 +6,6 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- "apps/desktop-client/**"
|
||||
- "packages/**"
|
||||
- "package.json"
|
||||
- "pnpm-lock.yaml"
|
||||
- "pnpm-workspace.yaml"
|
||||
- ".gitea/workflows/desktop-client-build.yml"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
platforms:
|
||||
|
||||
@@ -150,6 +150,7 @@ var routeDocs = map[string]routeDoc{
|
||||
"POST /api/tenant/articles": {"创建文章", "手动创建一篇空文章草稿。"},
|
||||
"POST /api/tenant/articles/generate-from-rule": {"根据 Prompt 规则生成文章", "基于已配置的 Prompt 规则生成一篇文章。"},
|
||||
"POST /api/tenant/articles/imitations/generate": {"仿写生成文章", "基于参考文链接/原文进行仿写并生成新文章。"},
|
||||
"POST /api/tenant/articles/:id/regenerate": {"重新生成文章", "基于文章原始生成参数重新入队生成,并返回新的生成任务。"},
|
||||
"POST /api/tenant/articles/:id/images": {"上传文章配图", "Multipart 上传文章正文使用的图片。"},
|
||||
"POST /api/tenant/articles/:id/selection-optimize/stream": {"选区优化(SSE 流式)", "针对用户选中的段落做润色/改写,结果流式返回。"},
|
||||
"GET /api/tenant/articles/:id": {"文章详情", "返回文章的完整结构(标题、大纲、正文、版本号等)。"},
|
||||
|
||||
Reference in New Issue
Block a user