internal/

directory
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0

Directories

Path Synopsis
Package adjudicate declares the context-maintenance tool the cold-sweep adjudication asks with, and the wire helpers that keep it byte-stable in the prompt-cache prefix.
Package adjudicate declares the context-maintenance tool the cold-sweep adjudication asks with, and the wire helpers that keep it byte-stable in the prompt-cache prefix.
Package buildinfo exposes version metadata stamped at build time via -ldflags.
Package buildinfo exposes version metadata stamped at build time via -ldflags.
Package compactionpoint answers ONE question: at what provider-billed input does a conversation's own compaction mechanism act?
Package compactionpoint answers ONE question: at what provider-billed input does a conversation's own compaction mechanism act?
Package coref builds the Tier-1 co-reference index that co-reference-aware compaction decides from: for each tool output in a request, which identifiers that output INTRODUCED, and whether any later turn carried them forward.
Package coref builds the Tier-1 co-reference index that co-reference-aware compaction decides from: for each tool output in a request, which identifiers that output INTRODUCED, and whether any later turn carried them forward.
Package datadep builds docs/data-dependence.md from one file per table row.
Package datadep builds docs/data-dependence.md from one file per table row.
Package deferred knows the format of Claude Code's deferred-tools list.
Package deferred knows the format of Claude Code's deferred-tools list.
Package extract is the cheap-model tool-output extractor.
Package extract is the cheap-model tool-output extractor.
Package logging is context-guru's logging plumbing: the level/format/sink decision, the credential scrubber that sits in front of every handler, and the per-request logger that carries tenant and session onto the lines of one request's lifecycle — including the ones written after the response, off the request path (see With, and the boundary named there).
Package logging is context-guru's logging plumbing: the level/format/sink decision, the credential scrubber that sits in front of every handler, and the per-request logger that carries tenant and session onto the lines of one request's lifecycle — including the ones written after the response, off the request path (see With, and the boundary named there).
Package modelinfo resolves a model's context window (max input tokens) and per-token price, so context-guru's triggers can scale with the model rather than hard-coding thresholds.
Package modelinfo resolves a model's context window (max input tokens) and per-token price, so context-guru's triggers can scale with the model rather than hard-coding thresholds.
litellm
Package litellm fetches and caches the LiteLLM community price/window map (model_prices_and_context_window.json) and prices the operator's own gateway rate card from it.
Package litellm fetches and caches the LiteLLM community price/window map (model_prices_and_context_window.json) and prices the operator's own gateway rate card from it.
ratefilltest
Package ratefilltest holds what the per-caller price fixture tests share (issue #856): the model list and the check against testdata/ratefill_before.json.
Package ratefilltest holds what the per-caller price fixture tests share (issue #856): the model list and the check against testdata/ratefill_before.json.
Package providerusage reads the token tiers out of a provider's `usage` block.
Package providerusage reads the token tiers out of a provider's `usage` block.
Package record turns one proxied call into the forms the recorder writes.
Package record turns one proxied call into the forms the recorder writes.
Package redact holds the credential-scrubbing primitives: the patterns that recognise a credential in arbitrary text, and the key-name test that recognises one by the name it is stored under.
Package redact holds the credential-scrubbing primitives: the patterns that recognise a credential in arbitrary text, and the key-name test that recognises one by the name it is stored under.
Package skills parses Claude Code's skills listing — the prose block that declares which skills a request carries.
Package skills parses Claude Code's skills listing — the prose block that declares which skills a request carries.
Package testutil holds helpers for tests that wait for something asynchronous.
Package testutil holds helpers for tests that wait for something asynchronous.
testdb
Package testdb opens SQLite files for tests the way production does.
Package testdb opens SQLite files for tests the way production does.
Package thread tells apart the THREADS of one session: the main agent, each subagent, each fork.
Package thread tells apart the THREADS of one session: the main agent, each subagent, each fork.
Package tokens estimates token counts using a real BPE tokenizer (o200k_base, the modern GPT family encoding) — an accurate offline proxy.
Package tokens estimates token counts using a real BPE tokenizer (o200k_base, the modern GPT family encoding) — an accurate offline proxy.
This file is the pure-Go face of the treesitter package: when the cg_skeleton tag is absent, the real cgo implementation (treesitter.go) is excluded and this empty package takes its place, so `go build ./...` under CGO_ENABLED=0 links no tree-sitter grammars.
This file is the pure-Go face of the treesitter package: when the cg_skeleton tag is absent, the real cgo implementation (treesitter.go) is excluded and this empty package takes its place, so `go build ./...` under CGO_ENABLED=0 links no tree-sitter grammars.
Package waitcause records WHY a thread's conversation went idle and WHY it woke up again — the signal issue #424 asks for so a later change can choose a keep-alive ping budget from real data, instead of today's fixed 2 pings per thread (see internal/thread and #426).
Package waitcause records WHY a thread's conversation went idle and WHY it woke up again — the signal issue #424 asks for so a later change can choose a keep-alive ping budget from real data, instead of today's fixed 2 pings per thread (see internal/thread and #426).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL