tregExtension
Reach treg's catalog from log. `tregSearch` finds an endpoint by the job, `tregGet` gives its price and params, and `tregCall` calls it with the key held server-side; a priced endpoint only runs as `t
Files1
View on GitHubSKILL.mdskills/tregExtension/SKILL.md
GitHubtregExtension
The loop
- Search by the job.
tregSearch{ query: ["<what you want done>"] }. Pick one of the endpoints it returns. Never guess an id. - Read it.
tregGet{ id } shows its price and its params, and a call that works. - Call it.
tregCall{ id, params: "<json object>" }.- A free endpoint answers straight away.
- A priced one comes back as a dry run with its price. Run it only when the owner asked for that spend:
tregCallLive{ id, params, approvedBy: "<owner>", confirmLive: true }.
- Name the source. Say which endpoint the answer came from (rule 53).
Hard boundaries
- Nothing that costs money runs unless the owner asked for it (rule 41).
- Every call goes through these tools, never a hand-run
tregfrom a shell for log's work (rule 163). - treg's balance:
balance. How long a call took:timing{ call }.
Docs: docs/extensions/treg.md. Spec: docs/specs/treg.md.