From 7a7631d766f64f492a1696c704b5fead6127ca3c Mon Sep 17 00:00:00 2001 From: Yif <877193178@qq.com> Date: Thu, 30 Jul 2026 21:18:50 +0800 Subject: [PATCH] fix(examples): resolve web-cordis distIndex from a cwd with spaces --- examples/web-cordis/cordis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/web-cordis/cordis.yml b/examples/web-cordis/cordis.yml index 80b598c696..39144fe783 100644 --- a/examples/web-cordis/cordis.yml +++ b/examples/web-cordis/cordis.yml @@ -12,7 +12,10 @@ config: host: 127.0.0.1 port: 3081 - distIndex: !!js "new URL('./apps/web/dist/index.html', 'file://' + process.cwd() + '/').pathname" + # Plain concatenation, not URL.pathname: a cwd with spaces + # percent-encodes through the URL round-trip and the encoded + # path never resolves. + distIndex: !!js "process.cwd() + '/apps/web/dist/index.html'" - insert: - id: tool-cordis name: '@deepseek-ai/dsh-tool-cordis'