internal/

directory
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: AGPL-3.0, AGPL-3.0

Directories

Path Synopsis
adapters
inbound/cli
Package cli implements the operator-facing entrypoint and daemon namespace.
Package cli implements the operator-facing entrypoint and daemon namespace.
inbound/httpapi
Package httpapi implements the client-facing HTTP protocol surface.
Package httpapi implements the client-facing HTTP protocol surface.
outbound/credentials
Package credentials owns credential resolution adapters.
Package credentials owns credential resolution adapters.
outbound/httpedge
Package httpedge owns outbound provider HTTP-edge helpers only: URL join, content-encoding decode, exact media-type recognition, and backend error materialization.
Package httpedge owns outbound provider HTTP-edge helpers only: URL join, content-encoding decode, exact media-type recognition, and backend error materialization.
outbound/media
Package media owns credential-free, policy-bounded image materialization for provider-attempt preparation.
Package media owns credential-free, policy-bounded image materialization for provider-attempt preparation.
outbound/modelcatalog/openai
Package openai owns model-catalog wire decoding for OpenAI-style /models responses shared by multiple providers.
Package openai owns model-catalog wire decoding for OpenAI-style /models responses shared by multiple providers.
outbound/providers
Package providers owns the outbound provider namespace registry and dispatch.
Package providers owns the outbound provider namespace registry and dispatch.
outbound/providers/anthropic
Package anthropic owns the shared x-api-key Messages transport used by Anthropic-compatible provider profiles.
Package anthropic owns the shared x-api-key Messages transport used by Anthropic-compatible provider profiles.
outbound/providers/azure
Package azure wires the Azure provider ID to the shared OpenAI-compatible and Anthropic family kernels.
Package azure wires the Azure provider ID to the shared OpenAI-compatible and Anthropic family kernels.
outbound/providers/bedrock
Package bedrock wires the AWS Bedrock Mantle OpenAI-compatible endpoint behind one provider adapter edge.
Package bedrock wires the AWS Bedrock Mantle OpenAI-compatible endpoint behind one provider adapter edge.
outbound/providers/cerebras
Package cerebras binds Cerebras hosted inference to shared OpenAI-family discovery, transport, and Chat grammar.
Package cerebras binds Cerebras hosted inference to shared OpenAI-family discovery, transport, and Chat grammar.
outbound/providers/chatgpt
swobu:lint ignore file-length because=provider edge behavior is intentionally localized in one executor owner seam
swobu:lint ignore file-length because=provider edge behavior is intentionally localized in one executor owner seam
outbound/providers/deepinfra
Package deepinfra composes the fixed DeepInfra API contract around shared OpenAI-family transport and Chat Completions grammar.
Package deepinfra composes the fixed DeepInfra API contract around shared OpenAI-family transport and Chat Completions grammar.
outbound/providers/deepseek
Package deepseek binds DeepSeek's Anthropic-compatible generation endpoint to the shared Messages transport and owns its distinct root model discovery.
Package deepseek binds DeepSeek's Anthropic-compatible generation endpoint to the shared Messages transport and owns its distinct root model discovery.
outbound/providers/fireworks
Package fireworks binds Fireworks' documented Responses refinements to the shared OpenAI-family provider kernel.
Package fireworks binds Fireworks' documented Responses refinements to the shared OpenAI-family provider kernel.
outbound/providers/friendli
Package friendli owns FriendliAI's provider-local composition around the shared OpenAI-family transport and standard protocol grammars.
Package friendli owns FriendliAI's provider-local composition around the shared OpenAI-family transport and standard protocol grammars.
outbound/providers/gemini
Package gemini owns the private native Gemini Interactions adapter.
Package gemini owns the private native Gemini Interactions adapter.
outbound/providers/gmi
Package gmi composes GMI Cloud's documented provider-edge refinements around shared OpenAI-family transport and standard protocol codecs.
Package gmi composes GMI Cloud's documented provider-edge refinements around shared OpenAI-family transport and standard protocol codecs.
outbound/providers/groq
Package groq adapts Groq's documented Chat reasoning request/response and capacity carriers around shared OpenAI-family transport, catalog discovery, and protocol grammar.
Package groq adapts Groq's documented Chat reasoning request/response and capacity carriers around shared OpenAI-family transport, catalog discovery, and protocol grammar.
outbound/providers/kimi
Package kimi owns Kimi's small Chat Completions dialect: three-bin effort projection and opaque reasoning_content capture/replay.
Package kimi owns Kimi's small Chat Completions dialect: three-bin effort projection and opaque reasoning_content capture/replay.
outbound/providers/llm7
Package llm7 binds LLM7's selector-based Chat service to the shared OpenAI-family transport.
Package llm7 binds LLM7's selector-based Chat service to the shared OpenAI-family transport.
outbound/providers/mistral
Package mistral binds the direct Mistral Chat API to shared Chat Completions transport and grammar.
Package mistral binds the direct Mistral Chat API to shared Chat Completions transport and grammar.
outbound/providers/modelscope
Package modelscope composes ModelScope API-Inference with the shared OpenAI-family runtime and decorates only its documented reasoning_content response carrier.
Package modelscope composes ModelScope API-Inference with the shared OpenAI-family runtime and decorates only its documented reasoning_content response carrier.
outbound/providers/novita
Package novita binds Novita AI's managed and deployment Chat surface to the shared OpenAI-family runtime.
Package novita binds Novita AI's managed and deployment Chat surface to the shared OpenAI-family runtime.
outbound/providers/ollama
Package ollama composes Ollama's OpenAI-compatible runtime with its narrow Responses request-grammar normalization.
Package ollama composes Ollama's OpenAI-compatible runtime with its narrow Responses request-grammar normalization.
outbound/providers/openai
Package openai binds the openai provider id to the shared OpenAI-family provider kernel.
Package openai binds the openai provider id to the shared OpenAI-family provider kernel.
outbound/providers/openaifamily
selection, wire realization, and response decoding in one outbound seam.
selection, wire realization, and response decoding in one outbound seam.
outbound/providers/openrouter
Package openrouter binds the OpenRouter provider ID to the shared OpenAI-family transport kernel and owns the provider's exact request dialects.
Package openrouter binds the OpenRouter provider ID to the shared OpenAI-family transport kernel and owns the provider's exact request dialects.
outbound/providers/protocolcodec
Package protocolcodec is the provider-facing target-aware compiler facade.
Package protocolcodec is the provider-facing target-aware compiler facade.
outbound/providers/runpod
Package runpod binds Runpod OpenAI-compatible inference to the shared OpenAI-family transport.
Package runpod binds Runpod OpenAI-compatible inference to the shared OpenAI-family transport.
outbound/providers/runtime
Package runtime owns provider-facet role contracts and runtime bundle wiring for the outbound provider namespace.
Package runtime owns provider-facet role contracts and runtime bundle wiring for the outbound provider namespace.
outbound/providers/sambanova
Package sambanova adapts the documented SambaNova Messages thinking carrier around shared protocol grammars and OpenAI-family transport.
Package sambanova adapts the documented SambaNova Messages thinking carrier around shared protocol grammars and OpenAI-family transport.
outbound/providers/scaleway
Package scaleway adapts documented Scaleway Generative APIs differences around shared OpenAI-family transport and protocol grammars.
Package scaleway adapts documented Scaleway Generative APIs differences around shared OpenAI-family transport and protocol grammars.
outbound/providers/siliconflow
Package siliconflow binds SiliconFlow's fixed Bearer inference origin to shared Chat and Messages grammar.
Package siliconflow binds SiliconFlow's fixed Bearer inference origin to shared Chat and Messages grammar.
outbound/providers/together
Package together binds Together AI's one Chat Completions inference API to the shared OpenAI-family transport.
Package together binds Together AI's one Chat Completions inference API to the shared OpenAI-family transport.
outbound/providers/workersai
Package workersai binds Cloudflare-hosted Workers AI to shared Chat and Responses codecs.
Package workersai binds Cloudflare-hosted Workers AI to shared Chat and Responses codecs.
outbound/providers/zai
Package zai owns the two-access Z.AI provider and its demonstrated divergences from standard Chat Completions request grammar.
Package zai owns the two-access Z.AI provider and its demonstrated divergences from standard Chat Completions request grammar.
outbound/trafficevidence
Package trafficevidence stores immutable traffic events and derives small operator-facing projections from them.
Package trafficevidence stores immutable traffic events and derives small operator-facing projections from them.
app
Package app is the namespace root for Swobu application-layer use cases.
Package app is the namespace root for Swobu application-layer use cases.
operator/authplane
Package authplane owns daemon-side operator auth session lifecycle orchestration.
Package authplane owns daemon-side operator auth session lifecycle orchestration.
operator/chatgptlogin
Package chatgptlogin owns daemon-side operator login-session orchestration for ChatGPT subscription login.
Package chatgptlogin owns daemon-side operator login-session orchestration for ChatGPT subscription login.
operator/client
Runtime lane: daemon HTTP client behavior and transport orchestration.
Runtime lane: daemon HTTP client behavior and transport orchestration.
operator/daemonlifecycle
Package daemonlifecycle owns operator-facing local daemon lifecycle facts shared across CLI and cockpit adapters.
Package daemonlifecycle owns operator-facing local daemon lifecycle facts shared across CLI and cockpit adapters.
operator/workspaces
Package workspaces owns operator queries and semantic commands over the latest routing aggregate.
Package workspaces owns operator queries and semantic commands over the latest routing aggregate.
dependency wiring, and control-plane serving in one process seam.
dependency wiring, and control-plane serving in one process seam.
Package carrier defines typed exchange-carrier contracts used by exchange orchestration seams.
Package carrier defines typed exchange-carrier contracts used by exchange orchestration seams.
Package clientconnect discovers and surgically rewires supported local AI clients to one canonical, unversioned workspace URL.
Package clientconnect discovers and surgically rewires supported local AI clients to one canonical, unversioned workspace URL.
Package cockpit is the active operator-facing TUI surface for Swobu.
Package cockpit is the active operator-facing TUI surface for Swobu.
adapters
Package adapters translates daemon operator control-plane data into Cockpit ports and read models.
Package adapters translates daemon operator control-plane data into Cockpit ports and read models.
features/target_config
Package target_config owns the mounted component for creating and editing route targets.
Package target_config owns the mounted component for creating and editing route targets.
features/workspace_connect
Package workspace_connect owns the inline workspace endpoint disclosure, client browse presentation, named-client plan preview and execution lifecycle, and manual setup inspection and copying for generic clients.
Package workspace_connect owns the inline workspace endpoint disclosure, client browse presentation, named-client plan preview and execution lifecycle, and manual setup inspection and copying for generic clients.
features/workspace_delete
Package workspace_delete owns the inline workspace deletion confirmation.
Package workspace_delete owns the inline workspace deletion confirmation.
features/workspace_edit
Package workspace_edit owns the operator-facing workspace name lifecycle row.
Package workspace_edit owns the operator-facing workspace name lifecycle row.
mountedrender
Package mountedrender renders go-tui components through a seeded App without entering a real terminal.
Package mountedrender renders go-tui components through a seeded App without entering a real terminal.
pages/workspace
Package workspace renders the Cockpit page for one selected Swobu workspace.
Package workspace renders the Cockpit page for one selected Swobu workspace.
ports
Package ports defines the narrow Cockpit command and query boundaries.
Package ports defines the narrow Cockpit command and query boundaries.
readmodel
Package readmodel defines the Cockpit-owned projection consumed by go-tui surfaces, sections, fixtures, and adapter ports.
Package readmodel defines the Cockpit-owned projection consumed by go-tui surfaces, sections, fixtures, and adapter ports.
sections/activity
Package activity renders Cockpit request activity rows and expanded trace detail.
Package activity renders Cockpit request activity rows and expanded trace detail.
sections/routes
Package routes renders Cockpit route rows and expanded target detail.
Package routes renders Cockpit route rows and expanded target detail.
sections/workspace_overview
Package workspace_overview renders the Cockpit workspace overview section.
Package workspace_overview renders the Cockpit workspace overview section.
testkit
Part of testscreen family: surface=cockpit
Part of testscreen family: surface=cockpit
ui
ui provides shared selection and entry primitives for cockpit.
ui provides shared selection and entry primitives for cockpit.
ui/interaction
Package interaction owns Cockpit's low-level go-tui interaction grammar.
Package interaction owns Cockpit's low-level go-tui interaction grammar.
Package compat records semantic loss produced by projection.
Package compat records semantic loss produced by projection.
Package configstore owns Swobu's only durable routing configuration format and transactional local file store.
Package configstore owns Swobu's only durable routing configuration format and transactional local file store.
domain
cachelocality
Package cachelocality owns portable cache locality: an opaque key used to prefer a cache domain for requests expected to reuse provider prompt state.
Package cachelocality owns portable cache locality: an opaque key used to prefer a cache domain for requests expected to reuse provider prompt state.
canonical
Package canonical owns Swobu's ordered semantic request and response grammar.
Package canonical owns Swobu's ordered semantic request and response grammar.
historyfingerprint
Package historyfingerprint owns opaque, protocol-scheme fingerprints for completed client-visible history and its ordered request/response leaves.
Package historyfingerprint owns opaque, protocol-scheme fingerprints for completed client-visible history and its ordered request/response leaves.
trafficevidence
Package trafficevidence owns immutable traffic facts about request handling.
Package trafficevidence owns immutable traffic facts about request handling.
Package exchange is the request-path orchestration bounded context.
Package exchange is the request-path orchestration bounded context.
codecresolver
Package codecresolver composes wire protocol family codecs into a RuntimeCodecResolver that satisfies the exchange.RuntimeResolver interface.
Package codecresolver composes wire protocol family codecs into a RuntimeCodecResolver that satisfies the exchange.RuntimeResolver interface.
Package mcp owns Swobu's client-executed, request-scoped URL MCP lifecycle.
Package mcp owns Swobu's client-executed, request-scoped URL MCP lifecycle.
platform
browser
Package browser opens URLs in the system default browser.
Package browser opens URLs in the system default browser.
clipboard
Package clipboard provides best-effort system clipboard access for the Cockpit operator surface: copy diagnostics, copy endpoint URLs, etc.
Package clipboard provides best-effort system clipboard access for the Cockpit operator surface: copy diagnostics, copy endpoint URLs, etc.
config
Package config owns process startup preferences and pure platform path resolution.
Package config owns process startup preferences and pure platform path resolution.
httpcontent
Package httpcontent owns transport-level HTTP content-coding helpers used at the client and provider-execution edges.
Package httpcontent owns transport-level HTTP content-coding helpers used at the client and provider-execution edges.
logging
Package logging configures Swobu's process-wide slog logger.
Package logging configures Swobu's process-wide slog logger.
outboundhttp
Package outboundhttp owns production net/http network transport construction.
Package outboundhttp owns production net/http network transport construction.
Package producttelemetry owns local operator-facing product-telemetry state, the first-run notice, and the closed product-report path: the client and provider classifiers, the report reducer, and the JSON uploader.
Package producttelemetry owns local operator-facing product-telemetry state, the first-run notice, and the closed product-report path: the client and provider classifiers, the report reducer, and the JSON uploader.
Package profile owns the canonical provider descriptor catalog used by domain validation and operator-facing setup surfaces.
Package profile owns the canonical provider descriptor catalog used by domain validation and operator-facing setup surfaces.
Package provider defines the inward contract between exchange orchestration and exact outbound provider backends.
Package provider defines the inward contract between exchange orchestration and exact outbound provider backends.
Package routing owns the immutable workspace/route/tier/target aggregate, whole-value invariants, semantic edits, default-compatible route resolution, and deterministic ordered target-plan construction.
Package routing owns the immutable workspace/route/tier/target aggregate, whole-value invariants, semantic edits, default-compatible route resolution, and deterministic ordered target-plan construction.
Package session owns immutable canonical checkpoints and linear client-session heads used to resume one logical model session across independent requests.
Package session owns immutable canonical checkpoints and linear client-session heads used to resume one logical model session across independent requests.
testkit
canonicaltest
Package canonicaltest provides checked canonical fixtures for non-canonical tests.
Package canonicaltest provides checked canonical fixtures for non-canonical tests.
providertest
Package providertest provides checked provider-attempt fixtures.
Package providertest provides checked provider-attempt fixtures.
Package wire is the Swobu wire-protocol translation bounded context.
Package wire is the Swobu wire-protocol translation bounded context.
chatcompletions
translation in one place so request and stream semantics stay recoverable.
translation in one place so request and stream semantics stay recoverable.
framing/sse
Package sse owns shared JSON framing helpers used by wire adapters.
Package sse owns shared JSON framing helpers used by wire adapters.
messages
translation in one place so request and stream semantics stay recoverable.
translation in one place so request and stream semantics stay recoverable.
openai
Package openai owns shared OpenAI-style wire compatibility helpers.
Package openai owns shared OpenAI-style wire compatibility helpers.
reasoningprojection
Package reasoningprojection lowers canonical reasoning controls into the provider-neutral ordinal field shared by standard OpenAI-shaped protocols.
Package reasoningprojection lowers canonical reasoning controls into the provider-neutral ordinal field shared by standard OpenAI-shaped protocols.
responses
swobu:lint ignore file-length because=Responses request decoding keeps the protocol DTO-to-canonical boundary cohesive
swobu:lint ignore file-length because=Responses request decoding keeps the protocol DTO-to-canonical boundary cohesive
shared
Package shared owns wire-adapter helper code that is family-neutral.
Package shared owns wire-adapter helper code that is family-neutral.
toolname
Package toolname owns the flat provider tool-name spelling grammar.
Package toolname owns the flat provider tool-name spelling grammar.

Jump to

Keyboard shortcuts

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