Files
marqdo/tests/lib/foreign-probe-register.mq.md
T
cflmy e32ff8f6b3 feat(foreign): structured invoke, presets, probe and config
F0/F1: safe execution core (exec gate, bounded IO, process-group timeout), structured invoke records, run options, 15 language presets, register/unset/probe/config, view stderr/exit/ms, and node/bash gold tests.
2026-10-18 01:26:53 +08:00

477 B


title: foreign probe and register import foreign:lib/foreign.mq.md

main

探测 = > foreign.probe lang="node"

print text=ok print text=lang

模板 =

步骤
node
"-e"
{inline}

> foreign.register lang="tiny" template=模板 运行 = > foreign.invoke lang="tiny" source="console.log('tiny')" 运行输出 = > trim stdout

print text=运行输出 > foreign.unset lang="tiny"