From 112c185ba6ec50e14185a2bb923514f73b79553e Mon Sep 17 00:00:00 2001 From: Saturn Date: Tue, 14 Apr 2026 23:51:45 +0900 Subject: [PATCH] fix(cli): replace internal paths in loader labels with friendly names Instead of leaking filesystem paths like /home/vscode/.local/share/cannon/ipfs_cache in download logs, show 'local cache' and 'local blobs'. --- packages/cli/src/loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/loader.ts b/packages/cli/src/loader.ts index 99d484676..7e53a5df2 100644 --- a/packages/cli/src/loader.ts +++ b/packages/cli/src/loader.ts @@ -29,7 +29,7 @@ export class LocalLoader implements CannonLoader { } getLabel(): string { - return this.dir; + return 'local blobs'; } read(url: string): Promise { @@ -94,7 +94,7 @@ export class CliLoader implements CannonLoader { case LoaderAction.read: return this.readIpfs ? this.readIpfs.getLabel() : this.repo.getLabel(); case LoaderAction.local: - return this.dir; + return 'local cache'; case LoaderAction.write: return this.writeIpfs ? this.writeIpfs.getLabel() : ''; case LoaderAction.repo: