Directories
¶
| Path | Synopsis |
|---|---|
|
Package artifacts describes large or binary conversation payloads.
|
Package artifacts describes large or binary conversation payloads. |
|
cmd
|
|
|
polly
command
|
|
|
polly/internal/headlessscreen
Package headlessscreen runs tcell's native renderer against a terminal emulator.
|
Package headlessscreen runs tcell's native renderer against a terminal emulator. |
|
polly/internal/markdown
Package markdown renders assistant Markdown into the transcript's styled text: gotui markup with the semantic palette, highlighted code, aligned tables, and sidecar image slots for explicit local image references.
|
Package markdown renders assistant Markdown into the transcript's styled text: gotui markup with the semantic palette, highlighted code, aligned tables, and sidecar image slots for explicit local image references. |
|
polly/internal/screenimg
Package screenimg rasterizes a text screen into an image, so the TUI can write a PNG of the frame it painted: the cells, their colors and the theme's surface substitution are exactly what the screen holds, with no terminal capture, screen-recording permission or external converter in the way.
|
Package screenimg rasterizes a text screen into an image, so the TUI can write a PNG of the frame it painted: the cells, their colors and the theme's surface substitution are exactly what the screen holds, with no terminal capture, screen-recording permission or external converter in the way. |
|
polly/internal/style
Package style is the transcript text vocabulary shared by every polly surface: gotui inline markup and its bracket escaping, cell wrapping, the theme role table that resolves those markup color names, and the sidecar image slots that Markdown rendering leaves in styled text.
|
Package style is the transcript text vocabulary shared by every polly surface: gotui inline markup and its bracket escaping, cell wrapping, the theme role table that resolves those markup color names, and the sidecar image slots that Markdown rendering leaves in styled text. |
|
polly/internal/termimg
Package termimg draws transcript thumbnails with the terminal's native graphics protocol, Kitty or Sixel: it detects which one the terminal speaks, prepares scaled pixels off the event loop, and places or deletes them by screen cell without disturbing the text layer.
|
Package termimg draws transcript thumbnails with the terminal's native graphics protocol, Kitty or Sixel: it detects which one the terminal speaks, prepares scaled pixels off the event loop, and places or deletes them by screen cell without disturbing the text layer. |
|
controltest
Package controltest is an in-process control daemon for tests: it speaks the control contract's lines over a Unix socket, keeps sessions in memory, and runs each turn by a script the test gives.
|
Package controltest is an in-process control daemon for tests: it speaks the control contract's lines over a Unix socket, keeps sessions in memory, and runs each turn by a script the test gives. |
|
experiments
|
|
|
textfx
command
textfx is an isolated gotui/tcell playground; it does not start Polly or a provider.
|
textfx is an isolated gotui/tcell playground; it does not start Polly or a provider. |
|
windowfx
command
windowfx is a local window-chrome playground.
|
windowfx is a local window-chrome playground. |
|
Package images applies the portable image contract shared by every ingestion boundary: user attachments in cmd/polly and model-initiated views through the view_image tool.
|
Package images applies the portable image contract shared by every ingestion boundary: user attachments in cmd/polly and model-initiated views through the view_image tool. |
|
internal
|
|
|
envstorage
Package envstorage manages only directories created for a sandbox environment.
|
Package envstorage manages only directories created for a sandbox environment. |
|
filelock
Package filelock provides cross-platform file locking backed by flock(2) on Unix and LockFileEx/UnlockFileEx on Windows.
|
Package filelock provides cross-platform file locking backed by flock(2) on Unix and LockFileEx/UnlockFileEx on Windows. |
|
ids
Package ids generates the random hexadecimal identifiers shared by the swarm, workflow, and worktree runtimes.
|
Package ids generates the random hexadecimal identifiers shared by the swarm, workflow, and worktree runtimes. |
|
safefile
Package safefile opens local files and verifies that the object opened is a regular file, refusing special files that could block the caller.
|
Package safefile opens local files and verifies that the object opened is a regular file, refusing special files that could block the caller. |
|
scratch
Package scratch removes runtime-owned temporary directories.
|
Package scratch removes runtime-owned temporary directories. |
|
sessiontest
Package sessiontest provides storage conformance fixtures shared by session and runtime tests.
|
Package sessiontest provides storage conformance fixtures shared by session and runtime tests. |
|
textdiff
Package textdiff computes line-oriented unified diffs without external dependencies.
|
Package textdiff computes line-oriented unified diffs without external dependencies. |
|
anthropic
Package anthropic is a minimal REST client for the Anthropic Messages API (api.anthropic.com/v1/messages), covering the slice polly uses: streaming and non-streaming message creation with tools, thinking, and structured output.
|
Package anthropic is a minimal REST client for the Anthropic Messages API (api.anthropic.com/v1/messages), covering the slice polly uses: streaming and non-streaming message creation with tools, thinking, and structured output. |
|
codex
Package codex signs a user in with their ChatGPT account and sends completions to OpenAI's Codex backend on the plan that account carries, the way the Codex CLI does.
|
Package codex signs a user in with their ChatGPT account and sends completions to OpenAI's Codex backend on the plan that account carries, the way the Codex CLI does. |
|
deepseek
Package deepseek talks to DeepSeek's OpenAI-compatible Chat Completions API.
|
Package deepseek talks to DeepSeek's OpenAI-compatible Chat Completions API. |
|
gemini
Package gemini is a minimal REST client for the Gemini Developer API (generativelanguage.googleapis.com) covering the slice polly uses: generateContent, streamGenerateContent over SSE, and batchEmbedContents, authenticated by API key.
|
Package gemini is a minimal REST client for the Gemini Developer API (generativelanguage.googleapis.com) covering the slice polly uses: generateContent, streamGenerateContent over SSE, and batchEmbedContents, authenticated by API key. |
|
internal/catalog
Package catalog holds what every provider's model listing shares: a bounded JSON fetch that never follows a redirect with credentials, the loosely typed accessors for provider records, the neutral fields of a model record, a page walker with cycle detection, and the listing collector that dedupes, filters, and sorts.
|
Package catalog holds what every provider's model listing shares: a bounded JSON fetch that never follows a redirect with credentials, the loosely typed accessors for provider records, the neutral fields of a model record, a page walker with cycle detection, and the listing collector that dedupes, filters, and sorts. |
|
internal/contract
Package contract holds the request contract shared by the llm package and its provider packages: the LLM and stream-processor interfaces, the completion request, the thinking-effort model, model capabilities, the stream watchdog, and the per-run caches providers read.
|
Package contract holds the request contract shared by the llm package and its provider packages: the LLM and stream-processor interfaces, the completion request, the thinking-effort model, model capabilities, the stream watchdog, and the per-run caches providers read. |
|
internal/httpx
Package httpx holds the HTTP plumbing every provider client shares: a retrying POST with the official SDKs' backoff policy, bounded error-body decoding, and a server-sent-events scanner.
|
Package httpx holds the HTTP plumbing every provider client shares: a retrying POST with the official SDKs' backoff policy, bounded error-body decoding, and a server-sent-events scanner. |
|
internal/retry
Package retry provides a bounded budget shared by nested retry loops.
|
Package retry provides a bounded budget shared by nested retry loops. |
|
ollama
Package ollama is a minimal client for the Ollama native chat API (/api/chat), covering the slice polly uses.
|
Package ollama is a minimal client for the Ollama native chat API (/api/chat), covering the slice polly uses. |
|
openai
Package openai is a minimal REST client for the OpenAI API and OpenAI-compatible servers, covering the slice polly uses: Chat Completions (the dialect every compatible provider speaks — DeepSeek, OpenRouter, HuggingFace, custom base URLs), the Responses API (native OpenAI), and embeddings.
|
Package openai is a minimal REST client for the OpenAI API and OpenAI-compatible servers, covering the slice polly uses: Chat Completions (the dialect every compatible provider speaks — DeepSeek, OpenRouter, HuggingFace, custom base URLs), the Responses API (native OpenAI), and embeddings. |
|
openrouter
Package openrouter talks to the OpenRouter gateway.
|
Package openrouter talks to the OpenRouter gateway. |
|
qwencloud
Package qwencloud talks to QwenCloud's OpenAI-compatible Chat Completions API.
|
Package qwencloud talks to QwenCloud's OpenAI-compatible Chat Completions API. |
|
replay
Package replay is the model behind a headless shot fixture: a provider that plays scripted turns instead of calling an API, so a TUI frame that only a live stream shows — thinking, half-streamed text, a tool call being handed over, a stream error — can be captured deterministically and without a credential.
|
Package replay is the model behind a headless shot fixture: a provider that plays scripted turns instead of calling an API, so a TUI frame that only a live stream shows — thinking, half-streamed text, a tool call being handed over, a stream error — can be captured deterministically and without a credential. |
|
Package rex provides a programmatic Go client for the Rex terminal multiplexer over Rex's direct control WebSocket (/api/control, rex.control.v1) and HTTP (/api/help) APIs, with automatic CLI fallback for CLI-only features such as ad-hoc Lua evaluation ("rex do"), remote SSH/Tailscale hosts, and active port-forwarding tunnels.
|
Package rex provides a programmatic Go client for the Rex terminal multiplexer over Rex's direct control WebSocket (/api/control, rex.control.v1) and HTTP (/api/help) APIs, with automatic CLI fallback for CLI-only features such as ad-hoc Lua evaluation ("rex do"), remote SSH/Tailscale hosts, and active port-forwarding tunnels. |
|
Package subagent lets a model delegate work to a child agent.
|
Package subagent lets a model delegate work to a child agent. |
|
Package swarm provides durable coordination for one parent and its direct children.
|
Package swarm provides durable coordination for one parent and its direct children. |
|
internal/live
Package live maintains in-memory, display-only activity snapshots and bounded live transcript tails for running swarm members.
|
Package live maintains in-memory, display-only activity snapshots and bounded live transcript tails for running swarm members. |
|
internal/state
Package state owns the durable coordination record types, format versioning, JSON codecs, copy-on-write edit delta tracking, state cache, and edit queue for package swarm.
|
Package state owns the durable coordination record types, format versioning, JSON codecs, copy-on-write edit delta tracking, state cache, and edit queue for package swarm. |
|
Package workflow executes bounded JavaScript orchestration over a host's existing agent runtime.
|
Package workflow executes bounded JavaScript orchestration over a host's existing agent runtime. |
|
Package worktree captures dirty Git checkouts and prepares isolated changes.
|
Package worktree captures dirty Git checkouts and prepares isolated changes. |
Click to show internal directories.
Click to hide internal directories.