mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #169] Chess package is not rebuildable: chess.js dependency exists nowhere after turn-game extraction #85
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#85
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?
Originally created by @kolacheee on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/169
Originally assigned to: @Romuromylus on GitHub.
Split out of PR #168 review feedback (CodeRabbit flagged it; the PR also notes it under "Build notes").
The problem
The chess package's server bundle imports the npm library
chess.js(packages/shared/src/features/turn-games/chess/engine.tsin the captured sources:import { Chess, type Move } from "chess.js"). That library used to be a Marinara Engine dependency (chess.js@^1.4.0, added with the chess turn game), but the Engine dropped it when the turn games moved into this catalog — it is no longer declared anywhere in the Engine's dependency tree, and this repository has no dependency manifest of its own.Result: the chess package cannot be rebuilt from a clean Engine + Marinara-Agents checkout.
node scripts/build-feature-packages.mjs chessfails with:Every other feature package resolves its bare imports (zod, react, …) from the Engine workspace
node_modules; chess is the only one with a dependency that exists nowhere.For PR #168 the bundle was built with a scratch-installed
chess.js@1.4.0(the version the Engine pinned before dropping it), which works but is not reproducible by anyone else following CONTRIBUTING.See it yourself
Options (maintainer call)
package.jsonhere pinningchess.js@1.4.0(plus a lockfile), and documentnpm installas a setup step in CONTRIBUTING. Node module resolution walks up fromsources/engine/..., soMarinara-Agents/node_modules/chess.jsresolves naturally with no builder changes. Most standard; adds an install step to the repo workflow.chess.js@1.4.0undersources/(MIT-licensed) and alias it inbuild-feature-packages.mjs. No install step, fully hermetic; adds ~a library of third-party code to the repo.chess.jsrequirement in CONTRIBUTING, with a clearer builder error. Cheapest; still not turnkey-reproducible.Option 1 seems most consistent with how the repo already leans on real package resolution, but any of the three closes the gap.
@Romuromylus commented on GitHub (Aug 1, 2026):
Fixed by #170 (merged to staging as
634e07a5): root package.json pins chess.js@1.4.0 with a lockfile, and CONTRIBUTING documents npm ci as a setup step. Verified the chess server bundle rebuilds byte-identical to the committed artifact from a clean checkout.