feat(markup): adopt v0.3 as sole mapping (** code, * return)
Make prose-unified Markup the only runtime: bold segments are executable, italic is return, params can be inferred from body/prose, with no v0.2 dual mode. Migrate lib and structure/keywords golds; gate on tests/markup-v03. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
00a77181ef
commit
bfb10d172b
114 files changed
+2271
-732
No files matched your search
+7
-7
@@ -9,9 +9,9 @@ description: Persist run output in .mq.md (Jupyter-style writeback)
|
||||
+ `key`=None
|
||||
+ `line`=None
|
||||
|
||||
Write `value` to `<!-- marqdo-out … -->` in the entry file. Default: insert or replace the block immediately below the call; `at_end=true` replaces the unkeyed EOF block. With `key=` (e.g. `ok` / `error`), replace or create that **named** slot only — slots do not overwrite each other. Optional `line=` anchors the block under that source line (needed when writing from a subtask).
|
||||
Write `value` to `<!-- marqdo-out … -->` in the entry file. Default: insert or replace the block immediately below the call; `at_end=true` replaces the unkeyed EOF block. With `key=` (e.g. `ok` / `error`), replace or create that *named* slot only — slots do not overwrite each other. Optional `line=` anchors the block under that source line (needed when writing from a subtask).
|
||||
|
||||
**> host_writeback_record value=`value` at_end=`at_end` key=`key` line=`line`**
|
||||
*> host_writeback_record value=`value` at_end=`at_end` key=`key` line=`line`*
|
||||
|
||||
## get
|
||||
+ `at_end`=False
|
||||
@@ -20,7 +20,7 @@ Write `value` to `<!-- marqdo-out … -->` in the entry file. Default: insert or
|
||||
|
||||
Read persisted output for the current call site (adjacent unkeyed block), the unkeyed EOF block when `at_end=true`, or a named slot when `key=` is set.
|
||||
|
||||
**> host_writeback_get at_end=`at_end` key=`key` line=`line`**
|
||||
*> host_writeback_get at_end=`at_end` key=`key` line=`line`*
|
||||
|
||||
## clear
|
||||
+ `at_end`=False
|
||||
@@ -29,7 +29,7 @@ Read persisted output for the current call site (adjacent unkeyed block), the un
|
||||
|
||||
Remove the adjacent, EOF, or named output block.
|
||||
|
||||
**> host_writeback_clear at_end=`at_end` key=`key` line=`line`**
|
||||
*> host_writeback_clear at_end=`at_end` key=`key` line=`line`*
|
||||
|
||||
## ensure
|
||||
+ `key`
|
||||
@@ -38,17 +38,17 @@ Remove the adjacent, EOF, or named output block.
|
||||
|
||||
Create a named slot with `placeholder` if missing. Never overwrites an existing slot body.
|
||||
|
||||
**> host_writeback_ensure key=`key` placeholder=`placeholder` line=`line`**
|
||||
*> host_writeback_ensure key=`key` placeholder=`placeholder` line=`line`*
|
||||
|
||||
## list
|
||||
|
||||
List all output blocks in the entry file (includes `key` when named).
|
||||
|
||||
**> host_writeback_list**
|
||||
*> host_writeback_list*
|
||||
|
||||
## scan_path
|
||||
+ `path`
|
||||
|
||||
List `<!-- marqdo-out … -->` slots in any file (workbook inspection).
|
||||
|
||||
**> host_writeback_scan_path path=`path`**
|
||||
*> host_writeback_scan_path path=`path`*
|
||||
Reference in new issue
Block a user