feat(foreign): persistent Python/Node kernels and state bridge

F3/F3.5: session_open/eval/close/list, session_set/get/names, Python and Node bootstraps, strict serial protocol, per-session timeout, crash isolation, drop cleanup, and node/bash gold tests (python conditional).
This commit is contained in:
cflmy committed 2026-10-18 01:32:48 +08:00
1 parent 7859170aec
commit 050d71927f
12 files changed
+1122 -8

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
---
title: foreign session timeout
import foreign:lib/foreign.mq.md
---
# main
**会话 = > foreign.session_open lang="node"**
**慢 = > foreign.session_eval id=`会话` source="(async () => { await new Promise(r => setTimeout(r, 5000)); return 1; })()" timeout=0.3**
> print text=[ok](`慢`)
> print text=[timed_out](`慢`)
> print text=[alive](`慢`)