mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1795] [MERGED] refactor: move 15 Gacha Forge modules into sources/forge-kit (Otome Forge M0a) #1969
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1969
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1795
Author: @SpicyMarinara
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/forge-kit-move📝 Commits (1)
7931375refactor: move 15 Gacha Forge modules into sources/forge-kit (Otome Forge M0a)📊 Changes
53 files changed (+109 additions, -76 deletions)
View changed files
📝
.github/workflows/gacha-forge-browser.yml(+1 -0)📝
.github/workflows/pull-request-checks.yml(+9 -0)📝
CONTRIBUTING.md(+1 -0)📝
eslint.config.mjs(+16 -0)📝
package.json(+3 -3)📝
packages/gacha-forge/bundle-patches.json(+17 -17)📝
packages/gacha-forge/src/story-memory-shared.mjs(+1 -1)📝
scripts/build-feature-packages.mjs(+1 -3)📝
sources/forge-kit/audio-prompts.mjs(+0 -0)📝
sources/forge-kit/audio-settings.mjs(+0 -0)📝
sources/forge-kit/character-card-context.mjs(+0 -0)📝
sources/forge-kit/chat-continuity-server.mjs(+0 -0)📝
sources/forge-kit/image-avatar-references.mjs(+0 -0)📝
sources/forge-kit/player-choice-text.mjs(+0 -0)📝
sources/forge-kit/player-choices-server.mjs(+0 -0)📝
sources/forge-kit/shared-token-estimator.mjs(+0 -0)📝
sources/forge-kit/story-cancel-server.mjs(+0 -0)📝
sources/forge-kit/story-expressions-server.mjs(+0 -0)📝
sources/forge-kit/story-expressions.mjs(+0 -0)📝
sources/forge-kit/story-memory-fit.mjs(+0 -0)...and 33 more files
📄 Description
Pull request
Linked issue
Fixes #1794 (milestone M0a of #1781, Otome Forge release 1).
Why this change
Otome Forge reuses Gacha Forge's maintained server modules: story memory with the knowledge boundary, expressions, choices, time zones, chat continuity, cancel, avatar references, music prompts and card context. Building both packages from one shared copy means a fix in one reaches the other. Copying the modules would let the two drift apart, and importing them from
packages/gacha-forge/srcwould make Gacha Forge's internals an unstated API.What changed
git mv), 15 modules frompackages/gacha-forge/src/tosources/forge-kit/: story-memory, story-memory-fit, story-memory-integration, shared-token-estimator, story-expressions, story-expressions-server, player-choice-text, player-choices-server, time-zone-server, chat-continuity-server, story-cancel-server, image-avatar-references, audio-prompts, audio-settings and character-card-context.replaceFrompaths inbundle-patches.jsonpoint at the kit, andsrc/story-memory-shared.mjsimports the kit's token estimator.client.js,server.mjs,manifest.json,agents.jsonand zip. There is no version bump.packages/gacha-forge/srcfor now: background-unlocks-server, combat-voices-server and proactive-messages-server.node:built-ins, statically or dynamically (ESLintno-restricted-importsandno-restricted-syntax), because Gacha Forge pastes them into its bundle as text.CONTRIBUTING.mddocuments the folder.gacha-forge-bundle-rebuildcopies the kit.gacha-forge-browser.ymlwatchessources/forge-kit/**.@forge-kitalias, in the build and the regression tsconfig, points at the kit, and itsponytail:note is removed. Otome Forge rebuilds byte-identical.Package and security impact
gacha-forge(no byte change),otome-forge(no byte change).Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-side checks:
node scripts/build-gacha-forge-package.mjsleavespackages/gacha-forge/{client.js,server.mjs,manifest.json}andcatalogunchanged, and the rebuiltgacha-forge-1.26.1.zipequals the committed blob.origin/staging: client.js, server.mjs, manifest.json, agents.json and the zip are all byte-identical. It also confirmed that no old path is referenced anywhere and that every kit import isnode:.tests/gacha-forge-*.regression.mjsfiles pass, includinggacha-forge-bundle-rebuildrun in the real worktree.npm run checkpasses, andnpm run test:otome-forgepasses../other.mjs,zodandimport("zod")are refused;node:cryptois allowed.validate-catalogneeds the fullartifacts/checkout, which this sparse worktree lacks; the payload integrity check (assertDeclaredFilesMatchManifest) passes for both packages.To verify by hand:
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.