internal/

directory
v0.0.0-...-40e5282 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package adapter resolves the configuration's providers to model adapters, built once for the life of the process, as the configuration is.
Package adapter resolves the configuration's providers to model adapters, built once for the life of the process, as the configuration is.
Package agent is a bounded tool loop over a git commit's tree.
Package agent is a bounded tool loop over a git commit's tree.
Package aqua resolves packages of the aqua registry (github.com/aquaproj/aqua-registry), as aqua itself does for the platform that the runner runs on, and installs them.
Package aqua resolves packages of the aqua registry (github.com/aquaproj/aqua-registry), as aqua itself does for the platform that the runner runs on, and installs them.
Package auth signs humans in to the dashboard, as the local admin or through the file's OIDC, GitHub, Forgejo, Gitea and GitLab sign-ins.
Package auth signs humans in to the dashboard, as the local admin or through the file's OIDC, GitHub, Forgejo, Gitea and GitLab sign-ins.
Package chatgpt implements Sign in with ChatGPT and token renewal for reviews that use a ChatGPT plan.
Package chatgpt implements Sign in with ChatGPT and token renewal for reviews that use a ChatGPT plan.
Package chunk cuts source files into declarations.
Package chunk cuts source files into declarations.
Package config loads process configuration from the configuration file and the environment.
Package config loads process configuration from the configuration file and the environment.
Package configfile loads application policy and runtime configuration from YAML.
Package configfile loads application policy and runtime configuration from YAML.
configfiletest
Package configfiletest builds configurations for tests from one YAML document, as the configuration file holds it.
Package configfiletest builds configurations for tests from one YAML document, as the configuration file holds it.
Package contextpack builds the review context that the runner writes next to the diff.
Package contextpack builds the review context that the runner writes next to the diff.
Package egress is the worker's forward proxy: the one route out of the cluster for runner pods, which reach it through HTTPS_PROXY and have no other egress.
Package egress is the worker's forward proxy: the one route out of the cluster for runner pods, which reach it through HTTPS_PROXY and have no other egress.
Package egresspolicy is what the gateway lets a runner reach: the hosts and addresses it allows and denies, the credentials it adds and the hosts its cache keeps nothing from.
Package egresspolicy is what the gateway lets a runner reach: the hosts and addresses it allows and denies, the credentials it adds and the hosts its cache keeps nothing from.
Package executor runs a runner for one review: as a Kubernetes Job in production, in-process for tests and local development.
Package executor runs a runner for one review: as a Kubernetes Job in production, in-process for tests and local development.
Package forge is the worker's view of a forge: the few calls a review needs before and after the runner does its work.
Package forge is the worker's view of a forge: the few calls a review needs before and after the runner does its work.
forgejo
Package forgejo implements forge.Client against a Forgejo or Gitea instance's REST API, https://<host>/api/v1, with the standard library's HTTP client.
Package forgejo implements forge.Client against a Forgejo or Gitea instance's REST API, https://<host>/api/v1, with the standard library's HTTP client.
github
Package github is kritika's forge.
Package github is kritika's forge.
gitlab
Package gitlab implements forge.Client against a GitLab instance's REST API, through gitlab.com/gitlab-org/api/client-go.
Package gitlab implements forge.Client against a GitLab instance's REST API, through gitlab.com/gitlab-org/api/client-go.
Package gateway is the worker's listener for runner pods.
Package gateway is the worker's listener for runner pods.
Package gitfetch fetches exactly the commits that a review needs: the head and the merge-base and, for a re-review, the head and merge base of the last review.
Package gitfetch fetches exactly the commits that a review needs: the head and the merge-base and, for a re-review, the head and merge base of the last review.
Package gittest prepares go-git repositories for tests.
Package gittest prepares go-git repositories for tests.
Package indexer cuts a repository tree into the chunks that the embedding index stores.
Package indexer cuts a repository tree into the chunks that the embedding index stores.
Package ingest is the only surface that a forge reaches.
Package ingest is the only surface that a forge reaches.
Package install is what installing a tool takes, whichever source names the tool: it downloads a release's file, makes sure that the download matches a checksum given apart from it, and unpacks it.
Package install is what installing a tool takes, whichever source names the tool: it downloads a release's file, makes sure that the download matches a checksum given apart from it, and unpacks it.
Package jobs defines the River job arguments that ingest, the leader and the dashboard enqueue and the worker consumes.
Package jobs defines the River job arguments that ingest, the leader and the dashboard enqueue and the worker consumes.
Package lexical turns code, and queries about it, into the words that the similar-code index matches by name.
Package lexical turns code, and queries about it, into the words that the similar-code index matches by name.
Package linear reads the Linear issues that a pull request links, so that a review can judge the change against them as it does the forge's issues.
Package linear reads the Linear issues that a pull request links, so that a review can judge the change against them as it does the forge's issues.
Package metrics is every Prometheus series kritika exports beyond the Go runtime.
Package metrics is every Prometheus series kritika exports beyond the Go runtime.
Package model is kritika's view of a language model and an embedder.
Package model is kritika's view of a language model and an embedder.
Package packslip installs a tool from the packslip that its GitHub release carries (https://packslip.dev/release/v1): a statement, signed by a workflow of the tool's repository, of the release's files, the platform each is for, the commands in it and the digest its download must match.
Package packslip installs a tool from the packslip that its GitHub release carries (https://packslip.dev/release/v1): a statement, signed by a workflow of the tool's repository, of the release's files, the platform each is for, the commands in it and the digest its download must match.
Package poller backstops missed webhooks.
Package poller backstops missed webhooks.
Package prfilter compiles and evaluates a CEL boolean expression that decides which pull requests kritika reviews (a condition of the configuration's trigger.include and trigger.exclude lists).
Package prfilter compiles and evaluates a CEL boolean expression that decides which pull requests kritika reviews (a condition of the configuration's trigger.include and trigger.exclude lists).
Package repoconfig parses .kritika.yaml, the optional per-repository file.
Package repoconfig parses .kritika.yaml, the optional per-repository file.
Package retryafter reads the headers in which an HTTP service says how long to wait before asking again: Retry-After, the SDKs' Retry-After-Ms, and the rate-limit resets that GitHub and GitLab send as Unix seconds.
Package retryafter reads the headers in which an HTTP service says how long to wait before asking again: Retry-After, the SDKs' Retry-After-Ms, and the rate-limit resets that GitHub and GitLab send as Unix seconds.
Package review turns a context pack into a prompt, a model answer into findings, and findings into the comments that kritika posts.
Package review turns a context pack into a prompt, a model answer into findings, and findings into the comments that kritika posts.
Package rolemap compiles and evaluates a sign-in's role mapping.
Package rolemap compiles and evaluates a sign-in's role mapping.
Package runner is what a runner pod does.
Package runner is what a runner pod does.
Package runspec is what a worker and a runner agree on across images: the job document a worker hands a runner, the credentials delivered beside it, and the names a runner gives the gateway and its own variables.
Package runspec is what a worker and a runner agree on across images: the job document a worker hands a runner, the credentials delivered beside it, and the names a runner gives the gateway and its own variables.
Package server holds kritika's HTTP listeners.
Package server holds kritika's HTTP listeners.
Package store owns kritika's Postgres access: the two connection pools, the startup assertion that keeps row-level security honest, schema migrations, the leader lock, and account-scoped transactions.
Package store owns kritika's Postgres access: the two connection pools, the startup assertion that keeps row-level security honest, schema migrations, the leader lock, and account-scoped transactions.
storetest
Package storetest opens the store on the integration tests' database, the one the test-integration task provisions.
Package storetest opens the store on the integration tests' database, the one the test-integration task provisions.
Package textcut shortens text without splitting a UTF-8 sequence.
Package textcut shortens text without splitting a UTF-8 sequence.
Package transcript records model calls for the dashboard's transcript view.
Package transcript records model calls for the dashboard's transcript view.
Package tuning holds kritika's behavioural constants: the caps, budgets, timeouts, intervals, batch sizes and retry counts that the other packages work within.
Package tuning holds kritika's behavioural constants: the caps, budgets, timeouts, intervals, batch sizes and retry counts that the other packages work within.
Package udiff reads a unified diff, as git writes one, into its files, their hunks and their lines, and nothing else: what a caller makes of a diff, a prompt's file list, a finding's anchors, the hunks an incremental delta leaves out, stays with the caller.
Package udiff reads a unified diff, as git writes one, into its files, their hunks and their lines, and nothing else: what a caller makes of a diff, a prompt's file list, a finding's anchors, the hunks an incremental delta leaves out, stays with the caller.
Package upstream fetches a repository other than the one under review, at one ref, into a throwaway bare repository.
Package upstream fetches a repository other than the one under review, at one ref, into a throwaway bare repository.
Package web embeds the built kritika UI (see internal/web/src) so the kritika binary serves it without any external static-file dependency.
Package web embeds the built kritika UI (see internal/web/src) so the kritika binary serves it without any external static-file dependency.
Package webapi is the dashboard's JSON API and static UI server.
Package webapi is the dashboard's JSON API and static UI server.
Package webhook does signature verification on inbound forge webhook requests and parses them.
Package webhook does signature verification on inbound forge webhook requests and parses them.
Package worker consumes River jobs.
Package worker consumes River jobs.

Jump to

Keyboard shortcuts

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