mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #170] [MERGED] fix: pin chess.js so the chess package rebuilds from a clean checkout #836
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#836
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/170
Author: @Romuromylus
Created: 7/31/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/169-chess-js-dependency📝 Commits (2)
6b26e63fix: pin chess.js so the chess package rebuilds from a clean checkout5ac91fedocs: npm ci setup step + external-source-root resolution caveat📊 Changes
4 files changed (+45 additions, -0 deletions)
View changed files
➕
.gitignore(+1 -0)📝
CONTRIBUTING.md(+8 -0)➕
package-lock.json(+24 -0)➕
package.json(+12 -0)📄 Description
Linked issue
Closes #169
Why this change
The chess feature bundle imports
chess.js, but the Engine dropped that dependency when the turn games moved into this catalog, and this repository had no dependency manifest of its own. The library existed nowhere, sonode scripts/build-feature-packages.mjs chessfailed withCould not resolve "chess.js"on any clean Engine + Agents checkout — the chess package was the only one in the catalog that could not be rebuilt reproducibly (#168 worked around it with a scratch install).What changed
Option 1 from #169 — a root dependency manifest, no builder changes:
package.json— new minimal private manifest pinningchess.js@1.4.0exactly (the version the Engine shipped before the extraction; the committed chess bundle was built from it).package-lock.json— lockfile for that single dependency (chess.js has no transitive deps)..gitignore— new, ignoresnode_modules/.CONTRIBUTING.md— documentsnpm installas a one-time setup step under Requirements and Setup, and why the manifest exists.No generated outputs changed. Node module resolution walks upward from
sources/engine/…, so the builder resolveschess.jsfrom this repository'snode_modulesexactly the way every other bare import already resolves — no changes tobuild-feature-packages.mjsneeded.Package and security impact
chess(rebuild path only — its committed payload, manifest, artifact, and catalog entry are untouched)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Could not resolve "chess.js"(only the chess package; every other bare import resolves).npm installat the repo root, then rebuilt the chess server bundle with the builder's exact entry stub and esbuild flags.chess.jsnow resolves fromMarinara-Agents/node_modules.packages/chess/server.mjsafter normalizing the committed file's CRLF line endings (51\rbytes from the Windows build noted in #168) — i.e. the pinnedchess.js@1.4.0reproduces exactly the shipped artifact.node scripts/test-catalog-lanes.mjs— passes.node scripts/validate-catalog.mjs— passes (31 packages,v2=31, v3=6; legacy=v2).git diff --check— clean.spawnSync("pnpm", …)cannot spawn here, so the rebuild used the Engine's esbuild binary directly with the builder's flags. The dependency-resolution change this PR makes is independent of that.Documentation impact
(CONTRIBUTING.md setup section — the README catalog itself is unchanged.)
UI evidence (if applicable)
Not applicable — build/tooling change only.
Summary by CodeRabbit
Documentation
Chores
chess.jsdependency.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.