Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions. Co-authored-by: Cursor <cursoragent@cursor.com>
624 B
624 B
title, description
| title | description |
|---|---|
| lib/json | JSON parse/stringify (shared EN/ZH import) |
parse
+ `text`
> host_json_parse text=text
stringify
+ `value`
+ `indent`=None
> host_json_stringify value=value indent=indent
get
+ `value`
+ `key`
> host_json_get value=value key=key
keys
+ `value`
> host_json_keys value=value
quote
+ `text`
> host_json_quote text=text
set
+ `map`
+ `key`
+ `value`
> host_map_set map=map key=key value=value
append
+ `list`
+ `item`
> host_list_append list=list item=item