feat: select explicit msglib receive source

This commit is contained in:
zhaoyilun
2026-07-10 09:04:06 +08:00
parent 0820717767
commit 3f270b454f
6 changed files with 187 additions and 15 deletions

View File

@@ -300,6 +300,13 @@ Committed C39 implementation:
- It preserves explicit `source`/`raw_ref` values and bounded attachment metadata while rejecting provider results that report non-read-only mode, raw rows, or file path values.
- It is not wired into MCP default receive behavior; `auto` remains PacketReader/log-backed until an explicit source-selection loop is completed.
Committed C40 implementation:
- Tool-layer selector: `RegisterISphereReadToolsWithReceiveSources`.
- `source_preference=""`, `auto`, and `local_readonly` continue to use the primary PacketReader/log-backed source.
- `source_preference="msglib_readonly"` can select an explicitly configured MsgLib receive source and is rejected when that source is absent.
- Server env wiring is deferred to C41, so standard MCP startup and verification remain deterministic.
## Verification
Default verification builds and checks `self_check` only: