From 269b36c7611a6f825a520bf877117b399314dcc4 Mon Sep 17 00:00:00 2001 From: Claude Fable 5 Date: Tue, 14 Jul 2026 16:53:11 +0200 Subject: [PATCH] Fix the gates the #116 commit skipped past MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The asset type lost its name field during the split into path+extension (tsc error), and the fixture's .obsidian/app.json needed Prettier's formatting. Lesson from the /srv move repeated within one day: the gate chain must gate — never '; echo' past a failing typecheck. Co-Authored-By: Claude Fable 5 --- apps/api/src/import-export/obsidian-vault.ts | 2 +- fixtures/import/obsidian-vault/.obsidian/app.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/import-export/obsidian-vault.ts b/apps/api/src/import-export/obsidian-vault.ts index fcd1a3c..e1e305e 100644 --- a/apps/api/src/import-export/obsidian-vault.ts +++ b/apps/api/src/import-export/obsidian-vault.ts @@ -375,7 +375,7 @@ export function rewriteLinks(markdown: string, resolver: LinkResolver): Rewritte return `![${alt}](${ASSET_PLACEHOLDER_PREFIX}${asset.path})`; } attachmentAssets.add(asset.path); - return `*${alt || asset.name}*`; + return `*${alt || asset.path.split('/').pop()!}*`; }); // Plain wikilinks. out = out.replace(/\[\[([^[\]\n]+)\]\]/g, (_whole, inner: string) => { diff --git a/fixtures/import/obsidian-vault/.obsidian/app.json b/fixtures/import/obsidian-vault/.obsidian/app.json index 89aa8d3..c52dda0 100644 --- a/fixtures/import/obsidian-vault/.obsidian/app.json +++ b/fixtures/import/obsidian-vault/.obsidian/app.json @@ -1 +1 @@ -{"theme":"moonstone"} +{ "theme": "moonstone" }