kcode-k1-web-code-ktool-protocol 0.2.0

Strict model-call protocol for K1 Web code Ktools
Documentation
1
2
3
4
5
6
7
# WebCode model-call protocol

This pure parser owns the six exact names `WebCodeCreate`, `WebCodeDocs`, `WebCodeOpen`, `WebCodeOverwrite`, `WebCodeCheck`, and `WebCodePublish`. `parse(name, arguments)` returns a typed `Call`; foreign names are `UnknownTool` and malformed strict JSON is `InvalidArguments`.

Create accepts exactly `{library,language}`. Docs and Open accept `{library,version?}` where version is canonical stable SemVer or a canonical 24-lowercase-hex unpublished transaction ID. Overwrite accepts positive integer `{box_id,contents}`. Check accepts positive integer `{box_id}`. Publish accepts `{box_id,version}` with a canonical stable SemVer. Library names use the Web-family lowercase-kebab contract. Authority never appears in model arguments.

Every operation has a dedicated metadata type: Create uses `k1.web-code-create/v1`; revised existing operations use their `k1.web-code-*/v2` names. Parsing is linear in supplied JSON and performs no authorization, state, I/O, KTO work, publication, or discovery.