With replScoped: true, persistent-in-memory runs each call as a separate VM Script in one retained context. Each call starts with copies of the top-level bindings left by earlier calls, so a later call may declare any earlier name again with any keyword while earlier functions and still-running code keep their values. Results, top-level await, errors and asynchronous failures follow the existing REPL evaluator; modules load only through dynamic import(), resolved from the environment's first working directory. The control protocol moves to version 3; the upgrade guide covers preinstalled bootstraps and the new PtcProgramFormat member. The Agent Note records the decision and its comparison with node:repl and vm-script, and the ptc-scoped-repl snapshot pins the model guidance.
20 lines
761 B
YAML
20 lines
761 B
YAML
# Bilingual-pair consistency record for ptc-runtime.md (docs/i18n/README.md): per heading
|
|
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
# After editing either side, bring the other along and re-record with:
|
|
# pnpm run verify-translation-pairing --write docs/subsystems/ptc-runtime.md
|
|
/ptc-runtime:
|
|
en: 337a6580d7571274
|
|
zh: f4ae98899120d122
|
|
/ptc-runtime/the-run-request-in-result-out:
|
|
en: 94ba725bef6684b7
|
|
zh: f113745a4a07952a
|
|
/ptc-runtime/bindings-host-functions-as-program-globals:
|
|
en: 182147ddf388c600
|
|
zh: c0a7d77602c78bcd
|
|
/ptc-runtime/captured-output-and-the-failure-taxonomy:
|
|
en: ef553620e77bd638
|
|
zh: 40ff2f5ba3de5ed5
|
|
/ptc-runtime/the-service:
|
|
en: a82f828fa006c7e9
|
|
zh: 2279d36867335b57
|