internal/

directory
v1.0.0-alpha.35 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package accuracy holds the record of Costroid's own accuracy test that a release carries: the lines of the accuracy page, docs/accuracy.md, for the page's last Window days, as the page stood when the release was built.
Package accuracy holds the record of Costroid's own accuracy test that a release carries: the lines of the accuracy page, docs/accuracy.md, for the page's last Window days, as the page stood when the release was built.
Package adapter holds what every agent adapter hands the wrapper.
Package adapter holds what every agent adapter hands the wrapper.
claudecode
Package claudecode reads Claude Code runs.
Package claudecode reads Claude Code runs.
codex
Package codex reads `codex exec --json` runs.
Package codex reads `codex exec --json` runs.
copilot
Package copilot reads `copilot -p --output-format json` runs of GitHub Copilot CLI.
Package copilot reads `copilot -p --output-format json` runs of GitHub Copilot CLI.
ghaw
Package ghaw reads what a GitHub Agentic Workflows (gh-aw) run spent, from the usage artifact its conclusion job uploads.
Package ghaw reads what a GitHub Agentic Workflows (gh-aw) run spent, from the usage artifact its conclusion job uploads.
opencode
Package opencode reads `opencode run --format json` runs.
Package opencode reads `opencode run --format json` runs.
Package agentcommand names the agent a command starts by the command's own name.
Package agentcommand names the agent a command starts by the command's own name.
Package agenttest keeps a test from starting a real coding agent.
Package agenttest keeps a test from starting a real coding agent.
Package amounts decides whether what Costroid posts on a repository shows amounts.
Package amounts decides whether what Costroid posts on a repository shows amounts.
Package catalog prices token classes against the pinned sheets.
Package catalog prices token classes against the pinned sheets.
Package cicontext reads what the CI system says about a run.
Package cicontext reads what the CI system says about a run.
Package cli holds what every costroid command shares on the command line: the shape of a help page, what a mistake and an error print, and the codes a command exits with.
Package cli holds what every costroid command shares on the command line: the shape of a help page, what a mistake and an error print, and the codes a command exits with.
Package comment turns FOCUS rows into the check output and the sticky pull request comment.
Package comment turns FOCUS rows into the check output and the sticky pull request comment.
Package config checks a costroid.yml against the published schema.
Package config checks a costroid.yml against the published schema.
Package decimal is an exact base-10 number for money and quantities.
Package decimal is an exact base-10 number for money and quantities.
Package docstest reads the fenced blocks of the README and of docs/, for the tests that hold a block to what a command prints.
Package docstest reads the fenced blocks of the README and of docs/, for the tests that hold a block to what a command prints.
Package egress is the one way out of costroid serve.
Package egress is the one way out of costroid serve.
Package export writes a rows file in the import format of another cost tool: FOCUS 1.4 CSV, a Vantage custom provider's CSV, Datadog's Custom Costs CSV, Harness's custom cost CSV, a Cloudability FOCUS drop, Ternary's daily FOCUS 1.2 files, or FOCUS 1.5's candidate release.
Package export writes a rows file in the import format of another cost tool: FOCUS 1.4 CSV, a Vantage custom provider's CSV, Datadog's Custom Costs CSV, Harness's custom cost CSV, a Cloudability FOCUS drop, Ternary's daily FOCUS 1.2 files, or FOCUS 1.5's candidate release.
Package fanout runs CPU-bound work over a list on every core the process has.
Package fanout runs CPU-bound work over a list on every core the process has.
Package focus holds the Costroid FOCUS row, version 0.3, and its writer.
Package focus holds the Costroid FOCUS row, version 0.3, and its writer.
Package focusfile reads a FOCUS cost file that a step of the customer's own CI wrote, such as an infrastructure estimator's output, and turns each of its rows into one Costroid row with the basis estimate.
Package focusfile reads a FOCUS cost file that a step of the customer's own CI wrote, such as an infrastructure estimator's output, and turns each of its rows into one Costroid row with the basis estimate.
Package gateway gives one CI run its own key on a LiteLLM proxy.
Package gateway gives one CI run its own key on a LiteLLM proxy.
gatewaytest
Package gatewaytest serves the LiteLLM proxy routes costroid gateway calls, as LiteLLM v1.108.1 answered them on 2026-11-07, for tests.
Package gatewaytest serves the LiteLLM proxy routes costroid gateway calls, as LiteLLM v1.108.1 answered them on 2026-11-07, for tests.
Package history reads the result objects earlier reports posted on a pull request's commits, and adds their figures up with this run's.
Package history reads the result objects earlier reports posted on a pull request's commits, and adds their figures up with this run's.
Package mcpserver answers the Model Context Protocol over one connection, so an agent can ask what its run has cost while it works.
Package mcpserver answers the Model Context Protocol over one connection, so an agent can ask what its run has cost while it works.
Package oidc verifies CI OIDC ID tokens and reads a run's identity from them.
Package oidc verifies CI OIDC ID tokens and reads a run's identity from them.
oidctest
Package oidctest is a stub OIDC issuer for tests: an RSA key, a JWKS endpoint and a signer.
Package oidctest is a stub OIDC issuer for tests: an RSA key, a JWKS endpoint and a signer.
Package otlp reads OTLP/HTTP traces and logs into per-request usage.
Package otlp reads OTLP/HTTP traces and logs into per-request usage.
Package otlpemit sends a rows file to an OpenTelemetry backend as traces over OTLP/HTTP: one span per model request.
Package otlpemit sends a rows file to an OpenTelemetry backend as traces over OTLP/HTTP: one span per model request.
Package policy decides the check's conclusion.
Package policy decides the check's conclusion.
Package reason holds the words a run states about itself: why it wrote no rows, what to do about the error its agent ended in, and the reader's error line.
Package reason holds the words a run states about itself: why it wrote no rows, what to do about the error its agent ended in, and the reader's error line.
Package receipt holds the token counts of a developer's own agent sessions on one branch, as costroid receipt prints them for the developer to post on the pull request, and as a report reads, refuses and prices them.
Package receipt holds the token counts of a developer's own agent sessions on one branch, as costroid receipt prints them for the developer to post on the pull request, and as a report reads, refuses and prices them.
receipttest
Package receipttest writes synthetic Claude Code session files for the tests of costroid receipt.
Package receipttest writes synthetic Claude Code session files for the tests of costroid receipt.
Package recipelint holds the shipped CI recipes to their security rules: no privileged trigger, every action pinned by SHA, and an agent's job that holds nothing but read access to the code.
Package recipelint holds the shipped CI recipes to their security rules: no privileged trigger, every action pinned by SHA, and an agent's job that holds nothing but read access to the code.
Package reconcile compares the ledger with the provider's own reports, per credential per day.
Package reconcile compares the ledger with the provider's own reports, per credential per day.
state
Package state names a reconciliation's verdict on its tokens.
Package state names a reconciliation's verdict on its tokens.
Package review renders the agent's own answer as a second pull request comment, apart from Costroid's report.
Package review renders the agent's own answer as a second pull request comment, apart from Costroid's report.
Package run launches an agent under a budget and turns its usage into rows.
Package run launches an agent under a budget and turns its usage into rows.
scm
Package scm reaches a source-code host through one interface.
Package scm reaches a source-code host through one interface.
kmstest
Package kmstest stands in for AWS KMS in tests.
Package kmstest stands in for AWS KMS in tests.
scmtest
Package scmtest holds stub GitHub and GitLab APIs for tests.
Package scmtest holds stub GitHub and GitLab APIs for tests.
Package server is the ingest service behind costroid serve: the result-stream and OTLP paths, pricing against the pinned catalog, and the per-PR view.
Package server is the ingest service behind costroid serve: the result-stream and OTLP paths, pricing against the pinned catalog, and the per-PR view.
Package status writes a run's status file: what the run has spent so far, its cap, what is left and what holds it, for the agent and the job to read while the agent works.
Package status writes a run's status file: what the run has spent so far, its cap, what is left and what holds it, for the agent and the job to read while the agent works.
Package store is the ledger: FOCUS rows in Postgres, one tenant at a time.
Package store is the ledger: FOCUS rows in Postgres, one tenant at a time.
storetest
Package storetest runs Postgres in Docker for the packages that need it.
Package storetest runs Postgres in Docker for the packages that need it.
Package vcs reads the names a version control system gives a commit.
Package vcs reads the names a version control system gives a commit.

Jump to

Keyboard shortcuts

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