Merge remote-tracking branch 'origin/master' into feat/acp-snapshot-tests

This commit is contained in:
Tianyi Cui
2026-06-19 10:03:04 +08:00
63 changed files with 1297 additions and 330 deletions

View File

@@ -1,4 +1,4 @@
import { pathToFileURL } from 'node:url'
import { fileURLToPath, pathToFileURL } from 'node:url'
import { Context } from 'cordis'
import Loader from '@cordisjs/plugin-loader'
@@ -33,6 +33,10 @@ if (snapshotMode !== 'replay') {
}
}
// Resolve relative cordis.yml paths from the repo root no matter where the
// editor launches this demo command.
process.chdir(fileURLToPath(new URL('../..', import.meta.url)))
const ctx = new Context()
ctx.baseUrl = pathToFileURL(import.meta.dirname).href + '/'