fix(code-runtime): settle Python provider contracts

This commit is contained in:
Tianyi Cui
2026-08-31 15:50:45 +08:00
parent 8e9d5467b0
commit 7f84a825c9
33 changed files with 1145 additions and 223 deletions
+1 -5
View File
@@ -38,10 +38,7 @@ const DEPLOY_ONLY_DOCS = ['README.md', 'README.zh.md', 'README.i18n.yaml']
/**
* Whole-tree assets cover Cordis's runtime bare-package imports, which pkg's
* static analysis cannot see. Package manifests are explicit because bare-name
* resolution depends on them. `*.py` carries the CPython code-runtime backend's
* bootstrap and protocol scripts into the executable; the backend copies them
* out to a real filesystem path before spawning, since the interpreter is an
* external process that cannot read pkg's virtual filesystem.
* resolution depends on them.
*/
const ASSET_GLOBS = [
'package.json',
@@ -58,7 +55,6 @@ const ASSET_GLOBS = [
'node_modules/**/*.so',
'node_modules/**/*.so.*',
'node_modules/**/*.wasm',
'node_modules/**/*.py',
'node_modules/**/*.yaml',
'node_modules/**/*.yml',
// web-app builds this path dynamically, so pkg cannot discover the static frontend.