onlyworlds_obsidian-plugin/Commands
Titus 4b056022eb gate fixes: frontmatter elements keep their id through Upload/Copy
readElement returns id OUTSIDE .fields; the Phase B guards in Export and Copy
returned parsed.fields bare, so on a fully-migrated world Upload World would
silently skip EVERY element (the sweep's if-no-id-continue) while reporting
success, and Copy World would emit id-less JSON that breaks paste dedupe.
Both guards now return { id, ...fields }. Smoke step 17 strengthened to check
the uploaded count and spot-check ids in copied JSON, so this class stays dead
at the user layer too.

Gate: tsc clean, build clean, npm test 21/21 (orchestrator hands).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 13:54:47 +02:00
..
CopyWorldCommand.ts gate fixes: frontmatter elements keep their id through Upload/Copy 2026-07-16 13:54:47 +02:00
CreateCategoryFoldersCommand.ts paste world fixes, duplicate world and char name fixes 2025-07-08 19:05:37 +02:00
CreateCoreFilesCommand.ts handlebar API fetch and use 2024-10-08 20:33:14 +02:00
CreateElementCommand.ts Phase B: frontmatter flip (span -> YAML frontmatter) 2026-07-16 13:43:56 +02:00
CreateHandlebarsCommand.ts 2.2.0: Download World restored, round-trip link integrity, key-format sweep 2026-07-12 13:56:56 +02:00
CreateReadmeCommand.ts notice fixes 2024-10-08 21:24:02 +02:00
CreateSettingsCommand.ts email setting 2025-07-08 12:19:39 +02:00
CreateTemplatesCommand.ts 2.0.0: SDK, auto-sync, native settings, modernized build 2026-05-11 12:51:28 +02:00
CreateWorldCommand.ts fix HTML-entity escaping of names (apostrophes) in note write + read paths (2.2.2) 2026-07-12 16:43:24 +02:00
DeleteElementCommand.ts 2.3.0: OnlyWorlds v2 API transport + smoke-hardened sync + Delete Element 2026-07-13 18:22:24 +02:00
DownloadWorldCommand.ts Phase B: frontmatter flip (span -> YAML frontmatter) 2026-07-16 13:43:56 +02:00
ExportWorldCommand.ts gate fixes: frontmatter elements keep their id through Upload/Copy 2026-07-16 13:54:47 +02:00
MigrateWorldCommand.ts R9: writer-minted migration fixtures + entity-decode fix 2026-07-16 13:49:32 +02:00
PasteWorldCommand.ts fix HTML-entity escaping of names (apostrophes) in note write + read paths (2.2.2) 2026-07-12 16:43:24 +02:00
RenameWorldCommand.ts fix wrong-world writes + false-success rename toast (2.2.1) 2026-07-12 14:52:40 +02:00
SaveElementCommand.ts Phase B: frontmatter flip (span -> YAML frontmatter) 2026-07-16 13:43:56 +02:00
UpdateCategoryCountsCommand.ts paste world fixes, duplicate world and char name fixes 2025-07-08 19:05:37 +02:00
ValidateWorldCommand.ts update import world with pin logic; fix multi id csv->json 2025-03-15 18:43:40 +01:00