Documentation
¶
Index ¶
Constants ¶
const ( DefaultBudget = 4 * 1024 // bytes ExplicitBudget = 64 * 1024 // bytes )
The two budget tiers. DefaultBudget caps broad sweeps (outlines, whole packages, every text tool); ExplicitBudget caps explicit, informed requests (a named file with full=true, a symbols fetch) — a higher ceiling sized for real single-file reads, not a bypass.
Variables ¶
This section is empty.
Functions ¶
func Wrapped ¶
Wrapped applies the DefaultBudget (broad-sweep tier) and wraps surviving content in an untrusted-content envelope. See WrappedAt.
func WrappedAt ¶
WrappedAt applies the given budget limit to chain-derived content and wraps the surviving content in an untrusted-content envelope tagged with kind/source. When the content is over budget it is dropped for gnomcp's own truncation summary (framing, not chain bytes), returned unwrapped; truncated reports which case. Explicit, path-targeted tools (e.g. gno_render) pass ExplicitBudget — the same ceiling as a named full-file read.