30c377d0f0
Project CI / AI game creator shell Rust shard 1/4 (push) Successful in 6m21s
Project CI / AI game creator shell Rust smoke (push) Successful in 1m51s
Project CI / AI game creator shell Rust shard 3/4 (push) Successful in 5m3s
Project CI / AI game creator shell Rust shard 2/4 (push) Failing after 5m54s
Project CI / AI game creator shell Rust shard 4/4 (push) Successful in 4m28s
Project CI / AI game creator shell Rust crates (push) Successful in 1m53s
Project CI / Repository checks (push) Successful in 5m33s
Project CI / Frontend tests (push) Successful in 7m20s
Project CI / Native shell tests (push) Successful in 8m29s
Project CI / Backend tests (push) Successful in 8m57s
Project CI / AI game creator shell web tests (push) Successful in 3m16s
说明: 在把工作交给段哥前还没有实现direct project聊天页面的迁移, 导致在 #375 里用很复杂的实现又做了一套事件流, 实测还有会话丢失的bug, 我在这里把数据获取的部分迁移到 #367 上 --------- Co-authored-by: 孔令弘 <ink29535@proton.me> Reviewed-on: https://git.genarrative.world/git/GenarrativeAI/Genarrative/pulls/384 Reviewed-by: 孔令弘 <ink29535@proton.me> Co-authored-by: 王德宇 <kvtodev@outlook.com> Co-committed-by: 王德宇 <kvtodev@outlook.com>
35 lines
1.4 KiB
TypeScript
35 lines
1.4 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;
|
||
/** 一次翻页操作最多连拉几页:见 ADR「分页锚点取原始条目 id」。 */
|
||
export const DIRECT_HISTORY_MAX_PAGES_PER_ACTION = 5;
|
||
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;
|
||
}> = [];
|