合并:同步最新master
Project CI / Native shell tests (pull_request) Successful in 14m13s
Project CI / Frontend tests (pull_request) Failing after 2m22s
Project CI / Backend tests (pull_request) Successful in 4m6s
Project CI / Repository checks (pull_request) Failing after 43s

合并 origin/master 8f19964e3 到 BGM 优化分支

保留 BGM 记录、完美像素改动及双方前端测试

通过冲突相关前端定向测试(61项)
This commit is contained in:
2026-08-05 13:43:10 +00:00
141 changed files with 24075 additions and 1877 deletions
@@ -638,6 +638,16 @@ describe('AI 游戏创作 App 共享契约', () => {
updatedAt: 123,
},
],
versions: [
{
versionId: 'version-1',
parentVersionId: null,
projectRevision: 7,
resourceBindings: [{ slotId: 'player', resourceId: 'asset-player' }],
createdReason: 'initial',
createdAt: 456,
},
],
assets: [
{
id: 'asset-player',
@@ -678,6 +688,16 @@ describe('AI 游戏创作 App 共享契约', () => {
logPath: '.agent/logs/command.log',
},
],
versions: [
{
versionId: 'version-1',
parentVersionId: null,
projectRevision: 7,
resourceBindings: [{ slotId: 'player', resourceId: 'asset-player' }],
createdReason: 'initial',
createdAt: 456,
},
],
});
});
});
@@ -537,6 +537,25 @@ export interface GameCreationAppCommandRunState {
updatedAt: number;
}
export type GameIterationVersionCreatedReason =
| 'initial'
| 'resource-replacement'
| 'agent-revision';
export interface GameIterationVersionResourceBinding {
slotId: string;
resourceId: string;
}
export interface GameIterationVersion {
versionId: string;
parentVersionId: string | null;
projectRevision: number;
resourceBindings: GameIterationVersionResourceBinding[];
createdReason: GameIterationVersionCreatedReason;
createdAt: number;
}
export interface GameCreationAppManifest {
schemaVersion: string;
projectId: string;
@@ -546,6 +565,7 @@ export interface GameCreationAppManifest {
assets: GameCreationAppAssetManifestEntry[];
preview?: GameCreationAppPreviewState | null;
commandRuns?: GameCreationAppCommandRunState[];
versions?: GameIterationVersion[];
}
export interface GameCreationAgentToolCallTrace {