Files
Genarrative/apps/ai-game-creator-shell/src/app/constants.ts
T
lhk229 3d8e0211db
Project CI / Repository checks (push) Successful in 3m54s
Project CI / Frontend tests (push) Successful in 4m20s
Project CI / Backend tests (push) Successful in 4m33s
Project CI / Native shell tests (push) Successful in 16m31s
5分钟策划agent (#159)
Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/159
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
2026-08-24 21:44:44 +08:00

33 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { createGameCreationAppManifest } from '../../../../packages/shared/src/contracts/gameCreationApp';
export const seedManifest = createGameCreationAppManifest(
'local-project-draft',
'未命名游戏原型',
);
export function createLocalProjectId(): string {
return `local-project-${crypto.randomUUID()}`;
}
export const AGENT_RUN_HISTORY_MAX_COUNT = 100;
export const AGENT_RUN_HISTORY_INITIAL_VISIBLE_COUNT = 20;
export const AGENT_RUN_HISTORY_VISIBLE_STEP = 20;
export const CONVERSATION_INITIAL_VISIBLE_COUNT = 20;
export const CONVERSATION_VISIBLE_STEP = 20;
export const AGENT_CHAT_SCROLL_BOTTOM_THRESHOLD = 48;
export const PROJECT_SUPERVISOR_AGENT_ID = 'project-supervisor';
/**
* 立项策划链路的 run `source`。
*
* 这是全前端唯一的字面量出处:`AgentRuntimeState.source` 在类型上只是 `string`,
* 改名不会有任何编译期提示,所以判据必须收敛到这一个常量上。`as const` 让它同时
* 能充当 `ProjectSupervisorRuntimeSubmission['source']` 的成员。
*/
export const PROJECT_SUPERVISOR_PLAN_SOURCE =
'project-supervisor-plan' as const;
export const launcherNotifications: Array<{
label: string;
detail: string;
actionLabel: string;
}> = [];