Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
382 B
Markdown
26 lines
382 B
Markdown
---
|
|
title: lib/foreign
|
|
description: Run bound code fences and inline sources via local interpreters
|
|
---
|
|
|
|
## set_cmd
|
|
+ `lang`
|
|
+ `cmd`
|
|
|
|
**> host_foreign_set_cmd lang=`lang` cmd=`cmd`**
|
|
|
|
## run
|
|
+ `code`
|
|
|
|
**> host_foreign_run code=`code`**
|
|
|
|
## run_lang
|
|
+ `lang`
|
|
+ `source`
|
|
|
|
**> host_foreign_run_lang lang=`lang` source=`source`**
|
|
|
|
## langs
|
|
|
|
**> host_foreign_langs**
|