AI 小说工坊:主编 + 作家多模型协作写作应用
- Nuxt 4 + Nuxt UI 4 + AI SDK 7 + Drizzle/SQLite - 主编规划大纲与章节简报、选派作家;作家流式写入章节文件并实时推送前端 - 逐章确认模式(默认)与自动模式;摘要与故事记忆 - 酒馆角色卡(PNG/JSON,V1-V3)与世界书导入 - 自定义最高优先级系统提示词、审稿/修改/多版本、任务日志与提示词检视 - 模拟 LLM 服务与端到端测试脚本 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { InternalApi } from 'nitropack/types'
|
||||
|
||||
/** 从服务端路由推导出的接口返回类型(已序列化,日期为字符串) */
|
||||
export type Api<P extends keyof InternalApi, M extends keyof InternalApi[P] = 'get' & keyof InternalApi[P]> = InternalApi[P][M]
|
||||
|
||||
export type ProjectDetail = Api<'/api/projects/:id'>
|
||||
export type ProjectListItem = Api<'/api/projects'>[number]
|
||||
export type ChapterListItem = Api<'/api/projects/:id/chapters'>[number]
|
||||
export type ChapterDetail = Api<'/api/chapters/:id'>
|
||||
export type ChapterVersion = ChapterDetail['versions'][number]
|
||||
export type AgentItem = Api<'/api/projects/:id/agents'>[number]
|
||||
export type CharacterItem = Api<'/api/projects/:id/characters'>[number]
|
||||
export type LoreItem = Api<'/api/projects/:id/lore'>[number]
|
||||
export type ModelItem = Api<'/api/models'>[number]
|
||||
export type ProviderItem = Api<'/api/providers'>[number]
|
||||
export type JobDetail = Api<'/api/jobs/:id'>
|
||||
export type CardPreview = Api<'/api/projects/:id/cards/preview', 'post'>
|
||||
Reference in New Issue
Block a user