Skip to content

feat(api): map exits CRUD with blocked-tile and topology checks (#10) - #351

Open
Aduersarius wants to merge 1 commit into
Bitcoindefi:mainfrom
Aduersarius:feat/map-exits-api-10
Open

feat(api): map exits CRUD with blocked-tile and topology checks (#10)#351
Aduersarius wants to merge 1 commit into
Bitcoindefi:mainfrom
Aduersarius:feat/map-exits-api-10

Conversation

@Aduersarius

Copy link
Copy Markdown

Closes #10.

Summary

  • Admin API to list (outbound + inbound), create/update, and delete map exits persisted in mapas_source/mapa_<n>/specials.json.
  • Strict validation: destination map must exist; destination tile must be in-grid and not blocked (reads terrain.json palette/rows).
  • Atomic bidirectional pair creation (validates both landings before writing).
  • Topology reports: orphan exits (dest map missing), maps with no inbound links, and BFS-unreachable maps from entry map 1.
  • Fixture-based unit tests covering blocked-tile rejection, CRUD/persist, bidirectional pairs, and reachability.

Differentiation vs open PRs

Verification

  • Tests: api/src/tests/map-exits.unit.test.ts (temp dir fixtures; no DB required).
  • Local install/tsc blocked in agent session; CI should cover compile/test.
  • No txs/keys/funds involved.

…oindefi#10)

File-backed specials.json editing with destination existence/blocked
validation, atomic bidirectional pairs, orphan detection, and
reachability reports. Scoped to api/ admin routes + fixture tests.
@gitar-bot

gitar-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Etapa 2: edicion de salidas entre mapas

1 participant