3d8e0211db
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>
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
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;
|
||
}> = [];
|