The whole laboratory API: lab_api_spec, lab_api_read, lab_api_write #6
Loading…
Reference in a new issue
No description provided.
Delete branch "oss-oo/all-laboratory-features"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The owner wants the plugin to master every feature of the laboratory; the same is asked of the ChatGPT and Z plugins. The laboratory API has 519 operations (253 writes), and the gateway curates 25 of them. This PR adds three tools that reach all of them as the agent identity:
lab_api_speclab_api_readGETs any path with query parameters; long answers are cut with a notelab_api_writePOST/PUT/PATCH/DELETEwith a JSON body (passed on stdin, not argv)Guard (
check_operationin the core). It refuses what is the owner's, whatever the identity's rights; all agent identities are org admins now:Paths must be plain API paths: no host, no query, no
...Checked live on the station:
spec release assetfinds the asset upload,api GET …/topicsreads, andapi DELETE /repos/OSS-OO/claude-pluginis refused.Verification:
sh scripts/check.shpasses: 34 Python tests (guard matrix, path rules, method, body and token on the wire, truncation, spec search, stdin body), assets,validate, and 18 of 18 mod tests.Next, as the owner chose: the same contract as gateway tools in the laboratory, so the ChatGPT and Z plugins get it too.
🤖 Generated with Claude Code