refactor: rename project DADA → 云梦 (slug: yume)
- 所有 workspace 包 @dada/* → @yume/*,根包 dada → yume - 全部导入路径同步更新 - 内部 ID 对齐:dada-ripple → yume-ripple,dada:custom → yume:custom - 首页 / new / play 用户文案整段中文化,保留 smallcaps + 衬线 + 罗马数字排版语汇 - README 标题改为 "# 云梦",部署链接与目录树 slug 改为 yume - 重新生成 pnpm-lock.yaml Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@dada/ai-client",
|
||||
"name": "@yume/ai-client",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -12,6 +12,6 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dada/types": "workspace:*"
|
||||
"@yume/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ProviderConfig } from "@dada/types";
|
||||
import type { ProviderConfig } from "@yume/types";
|
||||
import { fetchWithRetry } from "./fetchWithRetry";
|
||||
|
||||
export type ChatMessage = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ProviderConfig } from "@dada/types";
|
||||
import type { ProviderConfig } from "@yume/types";
|
||||
import { fetchWithRetry } from "./fetchWithRetry";
|
||||
|
||||
type ImageUrlPart = { type: string; image_url?: { url?: string } };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ProviderConfig } from "@dada/types";
|
||||
import type { ProviderConfig } from "@yume/types";
|
||||
import { fetchWithRetry } from "./fetchWithRetry";
|
||||
|
||||
export async function interpretClick(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@dada/engine",
|
||||
"name": "@yume/engine",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -12,8 +12,8 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dada/ai-client": "workspace:*",
|
||||
"@dada/types": "workspace:*",
|
||||
"@yume/ai-client": "workspace:*",
|
||||
"@yume/types": "workspace:*",
|
||||
"sharp": "^0.33.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { chat } from "@dada/ai-client";
|
||||
import type { ProviderConfig, Session, StoryFrame, UIElement } from "@dada/types";
|
||||
import { chat } from "@yume/ai-client";
|
||||
import type { ProviderConfig, Session, StoryFrame, UIElement } from "@yume/types";
|
||||
import { parseJsonLoose } from "./jsonParser";
|
||||
import { DIRECTOR_SYSTEM, buildDirectorUserMessage } from "./prompts";
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
StartResponse,
|
||||
VisionRequest,
|
||||
VisionResponse,
|
||||
} from "@dada/types";
|
||||
} from "@yume/types";
|
||||
import { annotateClick } from "./annotate";
|
||||
import { direct } from "./director";
|
||||
import { render } from "./renderer";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Session, StoryFrame, UIElement } from "@dada/types";
|
||||
import type { Session, StoryFrame, UIElement } from "@yume/types";
|
||||
|
||||
export const DIRECTOR_SYSTEM = `你是一个交互视觉小说的编剧导演。每次根据世界观、画风和历史,输出当前画面要呈现的内容。
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { generateImage } from "@dada/ai-client";
|
||||
import type { ProviderConfig, StoryFrame } from "@dada/types";
|
||||
import { generateImage } from "@yume/ai-client";
|
||||
import type { ProviderConfig, StoryFrame } from "@yume/types";
|
||||
import { buildImagePrompt } from "./prompts";
|
||||
|
||||
export async function render(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { interpretClick } from "@dada/ai-client";
|
||||
import type { ClickIntent, ProviderConfig, UIElement } from "@dada/types";
|
||||
import { interpretClick } from "@yume/ai-client";
|
||||
import type { ClickIntent, ProviderConfig, UIElement } from "@yume/types";
|
||||
import { parseJsonLoose } from "./jsonParser";
|
||||
import { VISION_SYSTEM_PROMPT, buildVisionUserPrompt } from "./prompts";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@dada/types",
|
||||
"name": "@yume/types",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user