[PR #3460] [MERGED] Add Anime Game prompt presets and keyframe-aware setup #5950

Closed
opened 2026-10-23 04:05:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3460
Author: @thetopham
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/11/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/anime-game-presets-3455


📝 Commits (4)

  • debba99 Add anime game prompt preset foundation
  • 7f21c68 Document and verify anime game presets
  • c2a361b Preview selected Game prompt in setup
  • ab47381 Merge branch 'staging' into agent/anime-game-presets-3455

📊 Changes

20 files changed (+556 additions, -34 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/game/getting-started.md (+7 -1)
📝 docs/game/storyboard.md (+11 -5)
📝 docs/media/scene-video.md (+3 -1)
📝 docs/prompts/macros.md (+3 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+65 -1)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+120 -12)
📝 packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx (+32 -4)
📝 packages/server/src/routes/game.routes.ts (+23 -0)
📝 packages/server/src/routes/generate.routes.ts (+8 -2)
📝 packages/server/src/routes/generate/dry-run-route.ts (+13 -4)
📝 packages/server/src/services/generation/game-gm-prompt-runtime.ts (+26 -2)
📝 packages/server/src/services/video/game-video-prompt.ts (+5 -2)
📝 packages/shared/src/constants/game-prompt.ts (+35 -0)
📝 packages/shared/src/constants/game-storyboard-prompts.ts (+60 -0)
📝 packages/shared/src/constants/game-video-prompts.ts (+30 -0)
📝 packages/shared/src/types/chat.ts (+6 -0)
📝 packages/shared/src/types/game.ts (+10 -0)
📝 packages/shared/src/utils/macro-engine.ts (+6 -0)
📝 scripts/regressions/prompt.regression.ts (+92 -0)

📄 Description

Linked issue

Closes #3455

Why this change

  • Game Mode's narration, storyboard planning, still generation, and video animation use broadly shared prompts, making it difficult to create a coherent anime episode pipeline without changing unrelated manual scene and Gallery features.
  • New games need their storyboard keyframe target before the first GM turn, because Chat Settings are not available until after setup.
  • This is the focused Anime Game split from the broader draft #3459.

What changed

  • Added built-in Anime Game Prompt, Anime Episode Director, and Anime Game Video presets, including editable-copy actions.
  • Added the {{gameStoryboardKeyframeCount}} GM macro, normalized to the existing 1-6 storyboard range.
  • Added Presentation -> Anime Episode and Keyframes per Turn to the Game setup wizard.
  • Added per-chat GM prompt-style and storyboard-video prompt selectors.
  • Kept storyboard keyframe videos independent from the shared manual Game Video Prompt.
  • Added exact-first-frame causality, continuity, single-motion direction, and provider-safe non-graphic staging guidance.
  • Added prompt regressions and updated Game, storyboard, scene-video, macro, and changelog documentation.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated commands completed successfully: pnpm install --frozen-lockfile, pnpm check, pnpm regression:prompt, pnpm version:check, and git diff --check.
  • The Playwright suite reached the application after Chromium installation, but repeated Windows runs exhausted local sockets and triggered HTTP 429 responses in unrelated Noodle/Home tests. The final run recorded 14 passed, 7 skipped, and 5 environment-related failures.
  • Manually verify Anime Episode setup and confirm the first GM turn receives the selected keyframe target.
  • Manually verify a short dialogue turn can produce fewer storyboard shots without padding.
  • Manually verify storyboard stills start at time T=0 before the directed action and retain visible-character avatar references.
  • Manually verify Storyboard Video Prompt changes keyframe clips without changing manual Gallery or Game Assets videos.
  • Manually verify severe-harm scenes use non-graphic staging accepted by the configured video provider.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Not captured; setup-wizard and Chat Settings verification is listed above for manual review.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3460 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/10/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/anime-game-presets-3455` --- ### 📝 Commits (4) - [`debba99`](https://github.com/Pasta-Devs/Marinara-Engine/commit/debba99d289c9a078006de42d423432a310e88bb) Add anime game prompt preset foundation - [`7f21c68`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f21c68a114062dd25ebb6ab21ef2cc9f54e98a2) Document and verify anime game presets - [`c2a361b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2a361b67c4860fc5e2419af1b724eaa155defa3) Preview selected Game prompt in setup - [`ab47381`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab4738195c6b85b8f07c39311fe5378b3155878f) Merge branch 'staging' into agent/anime-game-presets-3455 ### 📊 Changes **20 files changed** (+556 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/game/getting-started.md` (+7 -1) 📝 `docs/game/storyboard.md` (+11 -5) 📝 `docs/media/scene-video.md` (+3 -1) 📝 `docs/prompts/macros.md` (+3 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+65 -1) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+120 -12) 📝 `packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx` (+32 -4) 📝 `packages/server/src/routes/game.routes.ts` (+23 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+8 -2) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+13 -4) 📝 `packages/server/src/services/generation/game-gm-prompt-runtime.ts` (+26 -2) 📝 `packages/server/src/services/video/game-video-prompt.ts` (+5 -2) 📝 `packages/shared/src/constants/game-prompt.ts` (+35 -0) 📝 `packages/shared/src/constants/game-storyboard-prompts.ts` (+60 -0) 📝 `packages/shared/src/constants/game-video-prompts.ts` (+30 -0) 📝 `packages/shared/src/types/chat.ts` (+6 -0) 📝 `packages/shared/src/types/game.ts` (+10 -0) 📝 `packages/shared/src/utils/macro-engine.ts` (+6 -0) 📝 `scripts/regressions/prompt.regression.ts` (+92 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #3455 ## Why this change - Game Mode's narration, storyboard planning, still generation, and video animation use broadly shared prompts, making it difficult to create a coherent anime episode pipeline without changing unrelated manual scene and Gallery features. - New games need their storyboard keyframe target before the first GM turn, because Chat Settings are not available until after setup. - This is the focused Anime Game split from the broader draft #3459. ## What changed - Added built-in **Anime Game Prompt**, **Anime Episode Director**, and **Anime Game Video** presets, including editable-copy actions. - Added the `{{gameStoryboardKeyframeCount}}` GM macro, normalized to the existing 1-6 storyboard range. - Added **Presentation -> Anime Episode** and **Keyframes per Turn** to the Game setup wizard. - Added per-chat GM prompt-style and storyboard-video prompt selectors. - Kept storyboard keyframe videos independent from the shared manual **Game Video Prompt**. - Added exact-first-frame causality, continuity, single-motion direction, and provider-safe non-graphic staging guidance. - Added prompt regressions and updated Game, storyboard, scene-video, macro, and changelog documentation. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated commands completed successfully: `pnpm install --frozen-lockfile`, `pnpm check`, `pnpm regression:prompt`, `pnpm version:check`, and `git diff --check`. - The Playwright suite reached the application after Chromium installation, but repeated Windows runs exhausted local sockets and triggered HTTP 429 responses in unrelated Noodle/Home tests. The final run recorded 14 passed, 7 skipped, and 5 environment-related failures. - Manually verify Anime Episode setup and confirm the first GM turn receives the selected keyframe target. - Manually verify a short dialogue turn can produce fewer storyboard shots without padding. - Manually verify storyboard stills start at time T=0 before the directed action and retain visible-character avatar references. - Manually verify **Storyboard Video Prompt** changes keyframe clips without changing manual Gallery or Game Assets videos. - Manually verify severe-harm scenes use non-graphic staging accepted by the configured video provider. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Not captured; setup-wizard and Chat Settings verification is listed above for manual review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5950
No description provided.