- CHANGELOG.md:v2.8.0 条目(中英双语); - README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明); - doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制); - skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/ require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过); - 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
1.3 KiB
Executable File
markup, title, description, import
| markup | title | description | import | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| occlusion | Parent CALL:lib whitelist (offline) | lib.fs.exists + ARGS; reject lib.net; catalog callable. |
|
main
parts = > json.parse text={"a":"CALL:lib.fs.exists","b":"ARGS:{"path":"."}","nl":"\n"}
a = > json.get value=parts key="a"
b = > json.get value=parts key="b"
nl = > json.get value=parts key="nl"
t_ok = a + nl + b + nl
act = > agent.extract_plan_act reply=t_ok
kind = > json.get value=act key="kind"
name = > json.get value=act key="name"
print text=
kindprint text=name
out = > agent.run_parent_tool name=name path="." reply=t_ok
out
print text=exists-ok
print text=exists-bad
deny = > agent.run_parent_tool name="lib.net.get" path="." reply="CALL:lib.net.get"
sep = > json.parse text={"s":"not allowed"}
s = > json.get value=sep key="s"
dparts = > split value=deny sep=s
pn = > len value=dparts
pn> 1
print text=deny-ok
print text=deny-bad
cat = > agent.lib_catalog
callable = > json.get value=cat key="callable"
cn = > len value=callable
cn> 3
print text=callable-ok
print text=callable-bad