[K4][G10] Merge: Aufräumen (tote TS-/Rust-Doppelspuren), id-Index, Commit ohne Kopie, Punkttyp im Kern; Tests unter Last stabil

CLAUDE.md: Dokument im Kern, Modulkarte nachgeführt.

Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-10-29 13:21:24 +00:00
commit 34e77b607c
53 files changed
+1293 -1043

No files matched your search

+4 -2
View File
@@ -9,7 +9,7 @@
// {@link opsMutation} die Ops mit — `setProject` nimmt dann die Ops ohne Differenz.
import type { Project } from "../model/types";
import { applyOps } from "./ops";
import { applyOps, indexOfId } from "./ops";
import type { CoreOp } from "./ops";
/** Projekt-Felder, die Listen von Elementen mit `id` sind (walls, drawings2d, rooms, …). */
@@ -34,7 +34,9 @@ export function itemsOf<K extends EntityCollection>(p: Project, collection: K):
/** Element `id` aus `collection` (erstes Vorkommen). */
export function findItem<K extends EntityCollection>(p: Project, collection: K, id: string): EntityOf<K> | undefined {
return itemsOf(p, collection).find((e) => (e as { id: string }).id === id);
const list = itemsOf(p, collection);
const i = indexOfId(list, id);
return i < 0 ? undefined : list[i];
}
/** Ersetzt ein Element (gleiche id, Position bleibt). */