补充音频资产快捷入口

新增主窗口音效登记和画板音频导入草稿入口

补充用户面快捷入口测试

同步AI游戏创作App技术方案和共享决策记录
This commit is contained in:
AIGameCreator App
2026-07-03 03:04:59 +08:00
parent ae245e11df
commit 980cae575e
4 changed files with 38 additions and 3 deletions
+22
View File
@@ -9725,6 +9725,17 @@ export function App() {
>
</button>
<button
type="button"
disabled={!localProject}
onClick={() =>
prepareChatCommandDraft(
'/asset-register assets/audio/sfx.wav audio audio/wav',
)
}
>
</button>
<button
type="button"
disabled={!localProject}
@@ -9732,6 +9743,17 @@ export function App() {
>
</button>
<button
type="button"
disabled={!localProject}
onClick={() =>
prepareChatCommandDraft(
'/import-canvas-asset assets/audio/sfx.wav ',
)
}
>
</button>
<button
type="button"
disabled={!localProject}
@@ -2094,9 +2094,21 @@ describe('AI 游戏创作 App 界面边界', () => {
fireEvent.click(screen.getByRole('button', { name: '生成美术' }));
expect(composerInput).toHaveProperty('value', '/generate-art ');
await waitFor(() => expect(document.activeElement).toBe(composerInput));
fireEvent.click(screen.getByRole('button', { name: '登记音效' }));
expect(composerInput).toHaveProperty(
'value',
'/asset-register assets/audio/sfx.wav audio audio/wav',
);
await waitFor(() => expect(document.activeElement).toBe(composerInput));
fireEvent.click(screen.getByRole('button', { name: '导入画板资产' }));
expect(composerInput).toHaveProperty('value', '/import-canvas-asset ');
await waitFor(() => expect(document.activeElement).toBe(composerInput));
fireEvent.click(screen.getByRole('button', { name: '导入画板音频' }));
expect(composerInput).toHaveProperty(
'value',
'/import-canvas-asset assets/audio/sfx.wav ',
);
await waitFor(() => expect(document.activeElement).toBe(composerInput));
fireEvent.click(
within(screen.getByLabelText('最近项目资产')).getByRole('button', {
name: 'assets/uploads/hero.txt',
@@ -3859,6 +3859,7 @@
- 2026-07-03 调整:`/llm-status` 读取到的 agent 级 LLM 配置状态可回填到主窗口 Agent 状态列表和单 Agent 对话头部,显示 provider 类型、模型、流式开关和 API Key 是否已读取;密钥本体仍不能进入聊天、状态列表、manifest、trace 或本地项目文件。
- 2026-07-03 调整:开发窗口日志面板提供 `.agent/logs/command.log``.agent/logs/preview.log``.agent/logs/agent.log` 的只读查看入口,复用 `file.read` 授权策略;普通用户窗口仍只通过聊天 `/read` 和摘要消息查看需要的日志,不新增日志面板。
- 2026-07-03 调整:单 Agent 对话面板允许用户把当前输入手动追加到该 agent 的 `memory/agents/<group>/<role>.md` 私有记忆;写入复用 `memory.write` 项目策略、项目锁和 Tauri 本地目录能力,不把普通对话流水自动混入私有记忆。
- 2026-07-03 调整:主窗口新增音效登记和画板音频导入快捷入口,只填入 `/asset-register assets/audio/sfx.wav audio audio/wav``/import-canvas-asset assets/audio/sfx.wav ` 草稿;音乐组仍复用现有资产登记 / 画板回流链路,不新增独立音频生成系统。
- 2026-06-25 调整:本地 HTTP 预览静态 `HEAD` 必须返回与 `GET` 相同的真实 `Content-Length`,但不返回 body;浏览器、图片、音频和视频探测不能拿到 `Content-Length: 0` 的假响应。
- 2026-06-25 调整:普通用户通过聊天输入 `/run` 触发待确认 `game.run_local`,确认后只能复用白名单 `game.static_smoke` 自检当前 `game/index.html`,通过后启动 `127.0.0.1` 本地 HTTP 预览。独立执行 `game.static_smoke` 时如果已有 `.agent/run.latest.json`,必须追加 `Playtest / game.static_smoke` trace step,避免“运行了代码但编排 trace 不可见”。
- 2026-06-25 调整:普通用户通过聊天输入 `/trace` 触发只读 `agent.trace_read`,读取 `.agent/run.latest.json` 并在聊天里摘要 loop 轮次、stopReason、nextStep、active / carry-over 任务、repairRoutes、agent 建议命令和最近 step。trace 面板仍只在开发窗口展示,普通用户窗口不新增面板。
File diff suppressed because one or more lines are too long