feat(ext): single callable binding, provider v2 CLI, capability handlers, stdlib aliases
Implements RFC-EXT-0001 PR-00..PR-07 first pass: - CallSiteKey/CallBindingTable + one frontend binding pass; runtime dispatch by identity - prepare composition root shared by check/run/inspect/Analysis; exact plugin reconciliation - provider.json v2 --provider/--allow-provider worker CLI with fail-closed verification - capability handler registry with real fs.read and audit - verified stdlib public aliases replace print_override/AST scan - docs: specs, ADR-0054/0055/0057/0058, README, CI/release gates, evidence PR-04 extension selection/lock v4 and final frozen-binary evidence remain.
This commit is contained in:
1 parent
9aa536c2c9
commit
1f6fd644a0
54 files changed
+8710
-828
No files matched your search
+15
-15
@@ -1,38 +1,38 @@
|
||||
---
|
||||
import:
|
||||
fs: "std:fs/file"
|
||||
fs_lib: "std:fs/file"
|
||||
---
|
||||
|
||||
# @exec fs
|
||||
|
||||
## main
|
||||
|
||||
**创建 = fs.创建目录("out")**
|
||||
**创建 = fs_lib.创建目录("out")**
|
||||
|
||||
**写入 = fs.写文本("out/fs-a.txt", "你好\n")**
|
||||
**写入 = fs_lib.写文本("out/fs-a.txt", "你好\n")**
|
||||
|
||||
**存在 = fs.存在("out/fs-a.txt")**
|
||||
**存在 = fs_lib.存在("out/fs-a.txt")**
|
||||
|
||||
**元数据 = fs.元数据("out/fs-a.txt")**
|
||||
**元数据 = fs_lib.元数据("out/fs-a.txt")**
|
||||
|
||||
**列表 = fs.列出目录("out")**
|
||||
**列表 = fs_lib.列出目录("out")**
|
||||
|
||||
**是文件 = fs.是文件("out/fs-a.txt")**
|
||||
**是文件 = fs_lib.是文件("out/fs-a.txt")**
|
||||
|
||||
**是目录 = fs.是目录("out")**
|
||||
**是目录 = fs_lib.是目录("out")**
|
||||
|
||||
**重命名 = fs.重命名("out/fs-a.txt", "out/fs-b.txt")**
|
||||
**重命名 = fs_lib.重命名("out/fs-a.txt", "out/fs-b.txt")**
|
||||
|
||||
**读取 = fs.读文本("out/fs-b.txt")**
|
||||
**读取 = fs_lib.读文本("out/fs-b.txt")**
|
||||
|
||||
**追加 = fs.追加文本("out/fs-b.txt", "世界\n")**
|
||||
**追加 = fs_lib.追加文本("out/fs-b.txt", "世界\n")**
|
||||
|
||||
**片段 = fs.读取片段("out/fs-b.txt", 0, 100)**
|
||||
**片段 = fs_lib.读取片段("out/fs-b.txt", 0, 100)**
|
||||
|
||||
**遍历 = fs.遍历("out")**
|
||||
**遍历 = fs_lib.遍历("out")**
|
||||
|
||||
**删除 = fs.删除("out/fs-b.txt")**
|
||||
**删除 = fs_lib.删除("out/fs-b.txt")**
|
||||
|
||||
**删除目录 = fs.删除("out")**
|
||||
**删除目录 = fs_lib.删除("out")**
|
||||
|
||||
`return [创建.ok, 写入.value.count, 存在.value, 元数据.value.kind, 元数据.value.size, 列表.value, 是文件.value, 是目录.value, 重命名.ok, 读取.value, 追加.value, 片段.value, 遍历.value, 删除.ok, 删除目录.ok]`
|
||||
Reference in new issue
Block a user