diff --git a/apps/ai-game-creator-shell/package.json b/apps/ai-game-creator-shell/package.json index ca9a8c2a9..583b98d69 100644 --- a/apps/ai-game-creator-shell/package.json +++ b/apps/ai-game-creator-shell/package.json @@ -1,7 +1,7 @@ { "name": "@genarrative/ai-game-creator-shell", "private": true, - "version": "0.1.2", + "version": "0.1.4", "type": "module", "scripts": { "dev": "node scripts/start-tauri-dev.mjs", diff --git a/apps/ai-game-creator-shell/scripts/check-config.mjs b/apps/ai-game-creator-shell/scripts/check-config.mjs index 714c594b4..5fe6bbee3 100644 --- a/apps/ai-game-creator-shell/scripts/check-config.mjs +++ b/apps/ai-game-creator-shell/scripts/check-config.mjs @@ -1734,12 +1734,12 @@ if ( } if ( - tauriConfig.version !== '0.1.2' || - packageConfig.version !== '0.1.2' || - cargoPackageVersion !== '0.1.2' + tauriConfig.version !== '0.1.4' || + packageConfig.version !== '0.1.4' || + cargoPackageVersion !== '0.1.4' ) { throw new Error( - 'AI game creator standard release must remain version 0.1.2 while game-chat uses its dedicated version', + 'AI game creator standard release must remain version 0.1.4 while game-chat uses its dedicated version', ); } diff --git a/apps/ai-game-creator-shell/src-tauri/Cargo.lock b/apps/ai-game-creator-shell/src-tauri/Cargo.lock index 2c48043dc..490862f83 100644 --- a/apps/ai-game-creator-shell/src-tauri/Cargo.lock +++ b/apps/ai-game-creator-shell/src-tauri/Cargo.lock @@ -1695,7 +1695,7 @@ dependencies = [ [[package]] name = "genarrative-ai-game-creator-shell" -version = "0.1.2" +version = "0.1.4" dependencies = [ "agent-runtime-core", "axum", diff --git a/apps/ai-game-creator-shell/src-tauri/Cargo.toml b/apps/ai-game-creator-shell/src-tauri/Cargo.toml index bd7a22b1e..2a4de1ecb 100644 --- a/apps/ai-game-creator-shell/src-tauri/Cargo.toml +++ b/apps/ai-game-creator-shell/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "genarrative-ai-game-creator-shell" -version = "0.1.2" +version = "0.1.4" edition = "2021" publish = false diff --git a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json index bef133928..8459c9330 100644 --- a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json +++ b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Genarrative AI Game Creator", - "version": "0.1.2", + "version": "0.1.4", "identifier": "world.genarrative.ai-game-creator", "build": { "beforeDevCommand": "npm --prefix ../.. run agc:serve", diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 9cf7ad4c0..ea305a8bc 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -1243,6 +1243,9 @@ export function App({ const initialProjectOpenedRef = useRef(false); const pendingUiConfirmationActionRef = useRef<(() => void) | null>(null); const queueRunLocalShortcutRef = useRef<() => void>(() => undefined); + const executeRunLocalRef = useRef<(announceToChat: boolean) => void>( + () => undefined, + ); function requestRuntimeConfigOpen() { if (projectSupervisorOnly && !supervisorChatOnly && !gameChatOnly) { @@ -3283,6 +3286,7 @@ export function App({ ]); } queueRunLocalShortcutRef.current = queueRunLocalShortcut; + executeRunLocalRef.current = executeRunLocal; useEffect(() => { const nextProjectPath = localProject?.projectPath; @@ -3300,7 +3304,7 @@ export function App({ } handledPlayRequestRef.current = requestKey; onPlayRequestHandled?.(playRequest.requestId); - queueRunLocalShortcutRef.current(); + void executeRunLocalRef.current(true); }, [ localProject?.projectPath, onPlayRequestHandled, diff --git a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx index 139446dee..10e4fd343 100644 --- a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx +++ b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx @@ -34,7 +34,7 @@ export function WorkspaceLauncherShell({ ProjectSupervisor, }: WorkspaceLauncherShellProps) { const accountWallet = useAccountWallet(currentUser.id); - const [status, setStatus] = useState('请选择项目'); + const [status, setStatus] = useState(''); const recentProjects = useRecentProjects(setStatus); const { recentProjectRows, rememberRecentWorkspace } = recentProjects; const [launcherView, setLauncherView] = useState(initialView); @@ -273,7 +273,6 @@ export function WorkspaceLauncherShell({ {launcherView === 'home' ? ( 0} - status={status} onStatusChange={setStatus} recentProjectRows={recentProjectRows} onCreateDraftAutomatically={createHomeDraftAutomatically} diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx index 10a88f942..d7f3dbd3b 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx @@ -1,4 +1,4 @@ -import { Send } from 'lucide-react'; +import { ArrowUp } from 'lucide-react'; import type { ComponentProps, Dispatch, @@ -251,14 +251,7 @@ export function ProjectSupervisorView({ type="submit" disabled={runtimePanelProps.controlBusy || needsUserInput} > -