internal/

directory
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT

Directories

Path Synopsis
Package acquire obtains a pinned binary artifact and places it on disk, verified.
Package acquire obtains a pinned binary artifact and places it on disk, verified.
Package archetype defines the Agent resource kind: a versioned, addressable description of how an agent runs.
Package archetype defines the Agent resource kind: a versioned, addressable description of how an agent runs.
Package bindguard is the inbound network policy every listener Flynn opens is bound through: a default-loopback gate that decides whether a given listen address may be bound.
Package bindguard is the inbound network policy every listener Flynn opens is bound through: a default-loopback gate that decides whether a given listen address may be bound.
Package catalog is the model catalog: a vetted, versioned list of models with provenance, so a user (or the agent) can discover, compare, and choose a model on evidence instead of guessing.
Package catalog is the model catalog: a vetted, versioned list of models with provenance, so a user (or the agent) can discover, compare, and choose a model on evidence instead of guessing.
Package credential models a stored credential as metadata on the resource store, kept strictly separate from the secret value it points at.
Package credential models a stored credential as metadata on the resource store, kept strictly separate from the secret value it points at.
Package dependency manages the external command-line programs Flynn needs to operate but does not ship in its own binary (for example a hosting provider's CLI).
Package dependency manages the external command-line programs Flynn needs to operate but does not ship in its own binary (for example a hosting provider's CLI).
Package exposure is the registry of everything Flynn has open to the network: the record that makes the inbound-exposure boundary observable and time-bounded.
Package exposure is the registry of everything Flynn has open to the network: the record that makes the inbound-exposure boundary observable and time-bounded.
Package fetch downloads a file from an untrusted source and verifies it before it is installed: the generic, security-first transport for pulling any file (model weights, a plugin, a dataset) onto the local machine.
Package fetch downloads a file from an untrusted source and verifies it before it is installed: the generic, security-first transport for pulling any file (model weights, a plugin, a dataset) onto the local machine.
Package flow is the declarative action interpreter: it lets an extension express multi-step behaviour as data instead of compiled code.
Package flow is the declarative action interpreter: it lets an extension express multi-step behaviour as data instead of compiled code.
Package fsatomic writes files so a reader never observes a partial file and a crash cannot lose the previous contents: write to a sibling temp file, fsync it, rename over the destination, then fsync the directory so the rename itself is durable.
Package fsatomic writes files so a reader never observes a partial file and a crash cannot lose the previous contents: write to a sibling temp file, fsync it, rename over the destination, then fsync the directory so the rename itself is durable.
Package gbnf compiles a tool's JSON Schema into a GBNF grammar that a local inference runtime applies as a token mask during decoding, so a model cannot emit a structurally invalid tool call no matter how small or weak it is.
Package gbnf compiles a tool's JSON Schema into a GBNF grammar that a local inference runtime applies as a token mask during decoding, so a model cannot emit a structurally invalid tool call no matter how small or weak it is.
Package gguf reads the metadata header of a GGUF model file safely.
Package gguf reads the metadata header of a GGUF model file safely.
Package grade scores how far an agent got toward an objective, not just whether it finished.
Package grade scores how far an agent got toward an objective, not just whether it finished.
Package hardware probes the local machine for the resources that decide which models it can run: the GPU and its memory, and the system RAM a CPU-only run draws on.
Package hardware probes the local machine for the resources that decide which models it can run: the GPU and its memory, and the system RAM a CPU-only run draws on.
Package huggingface is a read-only client for the Hugging Face Hub HTTP API: it searches the Hub for models, lists the files in a model repository, and reads a model's card metadata, all over the same hardened, public-only transport the file downloader uses.
Package huggingface is a read-only client for the Hugging Face Hub HTTP API: it searches the Hub for models, lists the files in a model repository, and reads a model's card metadata, all over the same hardened, public-only transport the file downloader uses.
Package inference describes the local model runtimes Flynn can drive and gates them on their security posture.
Package inference describes the local model runtimes Flynn can drive and gates them on their security posture.
launch
Package launch builds the exact command that serves a local model, without running it.
Package launch builds the exact command that serves a local model, without running it.
modelsource
Package modelsource classifies where a model's weights come from and how far that source can be trusted, so a model from anywhere (a curated catalog entry, a model-hub reference, a raw URL, or a file a user drops in) goes through one trust decision before it is ever fetched or run.
Package modelsource classifies where a model's weights come from and how far that source can be trusted, so a model from anywhere (a curated catalog entry, a model-hub reference, a raw URL, or a file a user drops in) goes through one trust decision before it is ever fetched or run.
orchestrate
Package orchestrate decides which local models stay resident in limited device memory.
Package orchestrate decides which local models stay resident in limited device memory.
provision
Package provision installs a local inference runtime that Flynn fetches itself, so a machine with no runtime can still run a model with no manual setup step.
Package provision installs a local inference runtime that Flynn fetches itself, so a machine with no runtime can still run a model with no manual setup step.
serve
Package serve runs a local model server and keeps track of it.
Package serve runs a local model server and keeps track of it.
Package instance defines the Instance resource kind: a record of one running flynn process.
Package instance defines the Instance resource kind: a record of one running flynn process.
Package integrations turns an Extension's "integration" surface into callable tools.
Package integrations turns an Extension's "integration" surface into callable tools.
auth
Package auth applies an integration's credentials to an outbound HTTP request.
Package auth applies an integration's credentials to an outbound HTTP request.
request
Package request is the shared HTTP transport every integration surface runs on: the API surface, the scraper, and the search providers all make their outbound calls through one Transport rather than each holding its own *http.Client.
Package request is the shared HTTP transport every integration surface runs on: the API surface, the scraper, and the search providers all make their outbound calls through one Transport rather than each holding its own *http.Client.
Package migrate applies versioned SQL migrations to a SQL database, safely.
Package migrate applies versioned SQL migrations to a SQL database, safely.
Package modelformat identifies a model file's real format from its leading bytes and refuses the formats that execute code when loaded.
Package modelformat identifies a model file's real format from its leading bytes and refuses the formats that execute code when loaded.
Package modeltrust classifies how far a model run is trusted, which sets how strongly it must be contained.
Package modeltrust classifies how far a model run is trusted, which sets how strongly it must be contained.
Package ops turns an Extension's "ops" surface into a hosting/operations provider: the deploy, status, logs, list, teardown (and optional provision) operations a provider like Cloudflare, Vercel, or Hetzner exposes.
Package ops turns an Extension's "ops" surface into a hosting/operations provider: the deploy, status, logs, list, teardown (and optional provision) operations a provider like Cloudflare, Vercel, or Hetzner exposes.
Package playbook turns a multi-step operational procedure into a typed resource that Flynn can run: provision the command-line tools it needs, run them, verify the outcome, and register what it produced as a supervised Service.
Package playbook turns a multi-step operational procedure into a typed resource that Flynn can run: provision the command-line tools it needs, run them, verify the outcome, and register what it produced as a supervised Service.
Package profilestore persists a model's measured capability profile as a typed resource and reads it back as a harness.ProfileSource, so a reliability measurement made once drives how hard the harness scaffolds that model on every later run.
Package profilestore persists a model's measured capability profile as a typed resource and reads it back as a harness.ProfileSource, so a reliability measurement made once drives how hard the harness scaffolds that model on every later run.
Package reliability measures whether a model is dependable enough to drive an agent loop, which is a different question from whether a machine can run it.
Package reliability measures whether a model is dependable enough to drive an agent loop, which is a different question from whether a machine can run it.
Package rigor enforces the project's engineering-rigor floor as a test rather than a hope: every production package must carry a property test (rapid or the testkit harness), a declared set must carry a fuzz target, and a declared set must carry a benchmark (so a hot path, once measured, can never silently lose its measurement).
Package rigor enforces the project's engineering-rigor floor as a test rather than a hope: every production package must carry a property test (rapid or the testkit harness), a declared set must carry a fuzz target, and a declared set must carry a benchmark (so a hot path, once measured, can never silently lose its measurement).
Package service models a deployed workload as a typed resource on the event-sourced foundation.
Package service models a deployed workload as a typed resource on the event-sourced foundation.
source
signalcli
Package signalcli adapts the Signal messenger to the inbox Source and Sink ports by speaking JSON-RPC to a signal-cli daemon.
Package signalcli adapts the Signal messenger to the inbox Source and Sink ports by speaking JSON-RPC to a signal-cli daemon.
telegram
Package telegram adapts the Telegram Bot API to the inbox Source and Sink ports.
Package telegram adapts the Telegram Bot API to the inbox Source and Sink ports.
Package spinesink adapts the dispatch waist to the event spine: it implements dispatch.EventSink by translating each dispatched action's lifecycle events into spine events on a run's stream.
Package spinesink adapts the dispatch waist to the event spine: it implements dispatch.EventSink by translating each dispatched action's lifecycle events into spine events on a run's stream.
Package sqlitex is the shared SQLite engine for the agent's durable backends.
Package sqlitex is the shared SQLite engine for the agent's durable backends.
Package testkit is shared test infrastructure for the agent: deterministic fault injection and invariant checks that make rigorous tests cheap to write.
Package testkit is shared test infrastructure for the agent: deterministic fault injection and invariant checks that make rigorous tests cheap to write.
Package text holds the small string helpers that were re-implemented across the tree: rune-safe clipping (one of the copies sliced bytes and could split a multibyte character), single-line collapsing, and multi-substring matching.
Package text holds the small string helpers that were re-implemented across the tree: rune-safe clipping (one of the copies sliced bytes and could split a multibyte character), single-line collapsing, and multi-substring matching.
tui
app
Package app is the interactive session shell: one event loop composing the input reader, the composer editor, and the screen painter into a running terminal application.
Package app is the interactive session shell: one event loop composing the input reader, the composer editor, and the screen painter into a running terminal application.
editor
Package editor is the composer's line editor: the multi-line buffer the user types a prompt into, with grapheme-correct cursor movement, a kill ring, undo, and atomic paste chips.
Package editor is the composer's line editor: the multi-line buffer the user types a prompt into, with grapheme-correct cursor movement, a kill ring, undo, and atomic paste chips.
fuzzy
Package fuzzy ranks completion candidates against a typed pattern.
Package fuzzy ranks completion candidates against a typed pattern.
input
Package input decodes the terminal's raw byte stream into typed events: keys with modifiers, bracketed pastes, and focus changes.
Package input decodes the terminal's raw byte stream into typed events: keys with modifiers, bracketed pastes, and focus changes.
mdstream
Package mdstream partitions streamed markdown into a stable prefix and a mutable tail.
Package mdstream partitions streamed markdown into a stable prefix and a mutable tail.
render
Package render turns session content into pre-styled, pre-wrapped terminal lines: markdown through a goldmark AST walk, fenced code through a chroma highlighter bucketed into the theme's syntax roles, and file changes through a width-adaptive diff view.
Package render turns session content into pre-styled, pre-wrapped terminal lines: markdown through a goldmark AST walk, fenced code through a chroma highlighter bucketed into the theme's syntax roles, and file changes through a width-adaptive diff view.
screen
Package screen is the terminal renderer core for the interactive session: line-array components, a diffing painter, and scrollback-native output.
Package screen is the terminal renderer core for the interactive session: line-array components, a diffing painter, and scrollback-native output.
term
Package term manages the terminal's lifecycle around an interactive session: raw mode, the private modes the session needs (bracketed paste, focus reporting, the kitty keyboard enhancement), the terminal size, and a portable resize watcher.
Package term manages the terminal's lifecycle around an interactive session: raw mode, the private modes the session needs (bracketed paste, focus reporting, the kitty keyboard enhancement), the terminal size, and a portable resize watcher.
theme
Package theme is the semantic styling layer for the terminal session.
Package theme is the semantic styling layer for the terminal session.
Package vault is Flynn's credential store: a secret.Source that holds API keys and other credentials encrypted at rest, so a user enters a key once and it is never written to disk in plaintext, never echoed, and revealed only at the point of use (the model request's authorization header).
Package vault is Flynn's credential store: a secret.Source that holds API keys and other credentials encrypted at rest, so a user enters a key once and it is never written to disk in plaintext, never echoed, and revealed only at the point of use (the model request's authorization header).
Package version holds build version metadata for the agent binary.
Package version holds build version metadata for the agent binary.

Jump to

Keyboard shortcuts

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