internal/

directory
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT

Directories

Path Synopsis
Package activitystore persists agent activity across Sidecar restarts.
Package activitystore persists agent activity across Sidecar restarts.
Package adapter defines the pluggable interface for AI session data sources, including the core Adapter, Session, Message, and Event types shared by all provider implementations.
Package adapter defines the pluggable interface for AI session data sources, including the core Adapter, Session, Message, and Event types shared by all provider implementations.
amp
Package amp provides an adapter for Amp Code that reads thread JSON files from ~/.local/share/amp/threads/.
Package amp provides an adapter for Amp Code that reads thread JSON files from ~/.local/share/amp/threads/.
antigravity
Package antigravity provides an adapter for Antigravity CLI (agy) that parses JSONL session logs from ~/.gemini/antigravity-cli/brain/<session-id>/.system_generated/logs/transcript.jsonl
Package antigravity provides an adapter for Antigravity CLI (agy) that parses JSONL session logs from ~/.gemini/antigravity-cli/brain/<session-id>/.system_generated/logs/transcript.jsonl
cache
Package cache provides a generic thread-safe LRU cache with file-metadata invalidation, along with incremental, tail, and head JSONL readers that share pooled scanner buffers.
Package cache provides a generic thread-safe LRU cache with file-metadata invalidation, along with incremental, tail, and head JSONL readers that share pooled scanner buffers.
claudecode
Package claudecode provides an adapter for Claude Code (Anthropic's CLI) that parses JSONL session files to display conversations and token usage.
Package claudecode provides an adapter for Claude Code (Anthropic's CLI) that parses JSONL session files to display conversations and token usage.
codex
Package codex provides an adapter for Codex CLI that reads session files with two-pass parsing optimization for large conversation files.
Package codex provides an adapter for Codex CLI that reads session files with two-pass parsing optimization for large conversation files.
copilot
Package copilot provides an adapter for GitHub Copilot CLI that parses workspace.yaml metadata and events.jsonl session files to display conversations and tool usage.
Package copilot provides an adapter for GitHub Copilot CLI that parses workspace.yaml metadata and events.jsonl session files to display conversations and tool usage.
cursor
Package cursor provides an adapter for Cursor that reads SQLite databases to extract conversation history with workspace-based organization.
Package cursor provides an adapter for Cursor that reads SQLite databases to extract conversation history with workspace-based organization.
grok
Package grok provides an adapter for Grok Build TUI sessions.
Package grok provides an adapter for Grok Build TUI sessions.
kiro
Package kiro provides an adapter for Kiro CLI (kiro-cli from AWS) that queries its SQLite database for conversation history filtered by working directory.
Package kiro provides an adapter for Kiro CLI (kiro-cli from AWS) that queries its SQLite database for conversation history filtered by working directory.
omp
Package omp implements an adapter for Oh My Pi (OMP) agent sessions.
Package omp implements an adapter for Oh My Pi (OMP) agent sessions.
opencode
Package opencode provides an adapter for OpenCode that reads sessions with project indexing and session metadata caching.
Package opencode provides an adapter for OpenCode that reads sessions with project indexing and session metadata caching.
pi
Package pi provides an adapter for Pi AI agent sessions (embedded in OpenClaw).
Package pi provides an adapter for Pi AI agent sessions (embedded in OpenClaw).
piagent
Package piagent implements an adapter for standalone Pi Agent sessions.
Package piagent implements an adapter for standalone Pi Agent sessions.
testutil
Package testutil provides fixture generators for adapter testing and benchmarking, producing realistic JSONL session files in Claude Code and Codex formats.
Package testutil provides fixture generators for adapter testing and benchmarking, producing realistic JSONL session files in Claude Code and Codex formats.
tieredwatcher
Package tieredwatcher implements tiered file watching with a HOT tier using real-time fsnotify and a COLD tier using periodic polling, reducing file descriptor usage while keeping recently active sessions responsive.
Package tieredwatcher implements tiered file watching with a HOT tier using real-time fsnotify and a COLD tier using periodic polling, reducing file descriptor usage while keeping recently active sessions responsive.
warp
Package warp provides an adapter for Warp terminal AI that queries its SQLite database for conversation history filtered by working directory.
Package warp provides an adapter for Warp terminal AI that queries its SQLite database for conversation history filtered by working directory.
Package agentactivity classifies live agent terminal observations without depending on tmux, Bubble Tea, or persistent conversation storage.
Package agentactivity classifies live agent terminal observations without depending on tmux, Bubble Tea, or persistent conversation storage.
Package agentcatalog is the single description of the agent families Sidecar can start: their order in a creation picker, what to call them, and the command each one launches by default.
Package agentcatalog is the single description of the agent families Sidecar can start: their order in a creation picker, what to call them, and the command each one launches by default.
Package agentstatus resolves product-neutral agent activity and health into one presentation shared by human-facing views.
Package agentstatus resolves product-neutral agent activity and health into one presentation shared by human-facing views.
Package app implements the root Bubble Tea application model, orchestrating plugins, modals, project switching, themes, and global keyboard bindings.
Package app implements the root Bubble Tea application model, orchestrating plugins, modals, project switching, themes, and global keyboard bindings.
Package cli provides Sidecar's non-interactive command dispatch boundary.
Package cli provides Sidecar's non-interactive command dispatch boundary.
Package clip is the one path text takes to the clipboard.
Package clip is the one path text takes to the clipboard.
Package community imports and converts community color schemes from Windows Terminal JSON format into sidecar theme overrides.
Package community imports and converts community color schemes from Windows Terminal JSON format into sidecar theme overrides.
Package config handles loading, saving, and validating user configuration from JSON files, including project settings, plugin options, keymaps, and UI preferences.
Package config handles loading, saving, and validating user configuration from JSON files, including project settings, plugin options, keymaps, and UI preferences.
Package configchecks answers "is Sidecar ready to work here?" It is the decision layer behind Sidecar Setup and Diagnostics: it inspects the environment and the configuration, and reports what it found, why it matters, and which focused repair route addresses it.
Package configchecks answers "is Sidecar ready to work here?" It is the decision layer behind Sidecar Setup and Diagnostics: it inspects the environment and the configuration, and reports what it found, why it matters, and which focused repair route addresses it.
Package configui owns Sidecar's Configuration surface: its route model, its sidebar/detail presentation, and the shared controls every Configuration page composes.
Package configui owns Sidecar's Configuration surface: its route model, its sidebar/detail presentation, and the shared controls every Configuration page composes.
Package contentlink recognizes activatable references in rendered text.
Package contentlink recognizes activatable references in rendered text.
Package contentpanes owns the host-independent lifecycle of Sidecar's passive Document, Issue, Note, Diff, and Resource panes.
Package contentpanes owns the host-independent lifecycle of Sidecar's passive Document, Issue, Note, Diff, and Resource panes.
Package docview is the shared file viewer: one document, wrap, and path actions (info, reveal, yank).
Package docview is the shared file viewer: one document, wrap, and path actions (info, reveal, yank).
Package event defines typed event structures for system-wide event bus communication including file changes, git updates, and UI refresh notifications.
Package event defines typed event structures for system-wide event bus communication including file changes, git updates, and UI refresh notifications.
Package fdmonitor monitors open file descriptor counts for the current process and logs warnings when configurable thresholds are exceeded.
Package fdmonitor monitors open file descriptor counts for the current process and logs warnings when configurable thresholds are exceeded.
Package features provides a feature flag system for gating experimental functionality, with priority resolution from CLI overrides, config file values, and compiled-in defaults.
Package features provides a feature flag system for gating experimental functionality, with priority resolution from CLI overrides, config file values, and compiled-in defaults.
Package filefind provides the file-finding primitives shared by any surface that offers "open a file by typing part of its name": fuzzy matching and scoring, the gitignore rules the scan honours, and a background project file cache that keeps its previous answer visible while it rescans.
Package filefind provides the file-finding primitives shared by any surface that offers "open a file by typing part of its name": fuzzy matching and scoring, the gitignore rules the scan honours, and a background project file cache that keeps its previous answer visible while it rescans.
Package filepreview loads a regular file into a text preview.
Package filepreview loads a regular file into a text preview.
Package gitinit is the one place Sidecar initializes a Git repository.
Package gitinit is the one place Sidecar initializes a Git repository.
Package image handles terminal image preview rendering using the Halfblocks protocol, with LRU caching and graphics protocol detection.
Package image handles terminal image preview rendering using the Halfblocks protocol, with LRU caching and graphics protocol detection.
Package inlineedit owns the shared lifecycle of an inline tmux-PTY editor hosted inside a pane: session start bookkeeping, activation-epoch guards, stale-start cleanup, mouse/cursor coordinate translation, and the save/discard/cancel exit confirmation.
Package inlineedit owns the shared lifecycle of an inline tmux-PTY editor hosted inside a pane: session start bookkeeping, activation-epoch guards, stale-start cleanup, mouse/cursor coordinate translation, and the save/discard/cancel exit confirmation.
Package installui is the shared first-install surface used by td's not-installed view and by Configuration's integration enable route.
Package installui is the shared first-install surface used by td's not-installed view and by Configuration's integration enable route.
Package issueview fetches one td issue and renders it as a reusable card.
Package issueview fetches one td issue and renders it as a reusable card.
Package kanban provides reusable board data, stable selection, navigation, and layout calculations.
Package kanban provides reusable board data, stable selection, navigation, and layout calculations.
Package keymap manages centralized keyboard shortcut registration, multi-key sequence handling, context-aware binding resolution, and user-configurable key overrides.
Package keymap manages centralized keyboard shortcut registration, multi-key sequence handling, context-aware binding resolution, and user-configurable key overrides.
Package layoutapply owns the all-or-nothing layout apply verdict path: resolve descriptors, plan against a trial copy, fit-test floors once, then commit or decline with the first violation and the tree byte-for-byte untouched.
Package layoutapply owns the all-or-nothing layout apply verdict path: resolve descriptors, plan against a trial copy, fit-test floors once, then commit or decline with the first violation and the tree byte-for-byte untouched.
Package layoutreport owns the versioned JSON projection `sidecar layout get` returns: grid, kinds, targets, sessions, caps, and floors.
Package layoutreport owns the versioned JSON projection `sidecar layout get` returns: grid, kinds, targets, sessions, caps, and floors.
Package livepanes owns the lifecycle every live-refreshed pane kind shares.
Package livepanes owns the lifecycle every live-refreshed pane kind shares.
Package livewatch keeps an open pane in step with state it does not own.
Package livewatch keeps an open pane in step with state it does not own.
Package markdown wraps Glamour for cached markdown-to-ANSI rendering with width-based revalidation, falling back to plain text wrapping for narrow terminals.
Package markdown wraps Glamour for cached markdown-to-ANSI rendering with width-based revalidation, falling back to plain text wrapping for narrow terminals.
Package migration handles one-time migration of legacy sidecar state files to the centralized XDG-compliant locations introduced in the feature/centralized-project-storage PR.
Package migration handles one-time migration of legacy sidecar state files to the centralized XDG-compliant locations introduced in the feature/centralized-project-storage PR.
Package modal provides declarative modal dialog components with automatic hit region management, focus handling, scrolling, and keyboard/mouse interaction.
Package modal provides declarative modal dialog components with automatic hit region management, focus handling, scrolling, and keyboard/mouse interaction.
Package mouse provides mouse interaction infrastructure with hit region testing, click/double-click detection, drag tracking, and scroll event handling for TUI components.
Package mouse provides mouse interaction infrastructure with hit region testing, click/double-click detection, drag tracking, and scroll event handling for TUI components.
Package msg defines common Bubble Tea message types shared across packages, including toast notifications for temporary status displays.
Package msg defines common Bubble Tea message types shared across packages, including toast notifications for temporary status displays.
Package noteview fetches one td note and renders it as a reusable read-only card.
Package noteview fetches one td note and renders it as a reusable read-only card.
Package notify owns the notification model, its source registry, and the state-free rules every surface applies to a set of notifications.
Package notify owns the notification model, its source registry, and the state-free rules every surface applies to a set of notifications.
Package overlay composites a floating block of text over already-rendered lines without changing their number.
Package overlay composites a floating block of text over already-rendered lines without changing their number.
Package overview owns the app-level cross-project Overview model.
Package overview owns the app-level cross-project Overview model.
Package palette implements the command palette UI for fuzzy searching and executing commands, with support for context filtering and keybinding display.
Package palette implements the command palette UI for fuzzy searching and executing commands, with support for context filtering and keybinding display.
Package panebadge derives a workspace row's compact layout badge from the pane tree that workspace has persisted.
Package panebadge derives a workspace row's compact layout badge from the pane tree that workspace has persisted.
Package panecodec owns the projection between *state.PaneLayoutJSON and (contentpanes.State + live-leaf records).
Package panecodec owns the projection between *state.PaneLayoutJSON and (contentpanes.State + live-leaf records).
Package paneframe is the presentation half of the pane tree: the chrome one placed leaf wears, the handle one split draws, and the compositor that turns a panelayout.Layout into cells.
Package paneframe is the presentation half of the pane tree: the chrome one placed leaf wears, the handle one split draws, and the compositor that turns a panelayout.Layout into cells.
Package panelayout owns the presentation-neutral pane tree shared by project and global workspace previews.
Package panelayout owns the presentation-neutral pane tree shared by project and global workspace previews.
Package panemodal renders a modal inside an arbitrary rectangular box rather than over the whole screen, and puts the modal's mouse hit regions where the box actually is on screen.
Package panemodal renders a modal inside an arbitrary rectangular box rather than over the whole screen, and puts the modal's mouse hit regions where the box actually is on screen.
Package panesearch is the pair of search surfaces a document pane can open on itself: the fuzzy file finder (ctrl+p) and the project-wide ripgrep search (f).
Package panesearch is the pair of search surfaces a document pane can open on itself: the fuzzy file finder (ctrl+p) and the project-wide ripgrep search (f).
Package parityscan is test support for the surface-parity contract around targetactivation plans.
Package parityscan is test support for the surface-parity contract around targetactivation plans.
Package pathcomplete offers directory completion for a typed path prefix.
Package pathcomplete offers directory completion for a typed path prefix.
Package plugin defines the plugin system interface and registry for registering, managing, and coordinating sidecar plugins with shared context.
Package plugin defines the plugin system interface and registry for registering, managing, and coordinating sidecar plugins with shared context.
plugins
assembly
Package assembly owns the ordered list of plugins sidecar registers, and therefore the tab order.
Package assembly owns the ordered list of plugins sidecar registers, and therefore the tab order.
conversations
Package conversations provides the content search functionality for cross-conversation search (searching message content across sessions).
Package conversations provides the content search functionality for cross-conversation search (searching message content across sessions).
filebrowser
Package filebrowser implements the file browser plugin with tree navigation, file preview, quick open, search, git integration, and file operations.
Package filebrowser implements the file browser plugin with tree navigation, file preview, quick open, search, git integration, and file operations.
gitstatus
Package gitstatus implements the git status plugin with staging/unstaging, diff viewing, commit history, branch management, and conflict resolution.
Package gitstatus implements the git status plugin with staging/unstaging, diff viewing, commit history, branch management, and conflict resolution.
tasks
Package tasks embeds the Tasks GTD terminal UI as a sidecar plugin, giving the full standalone experience — views, overlays, agent queue — inside a tab.
Package tasks embeds the Tasks GTD terminal UI as a sidecar plugin, giving the full standalone experience — views, overlays, agent queue — inside a tab.
tdmonitor
Package tdmonitor embeds the td task manager monitor TUI as a sidecar plugin, providing task/issue tracking with kanban boards and setup flows.
Package tdmonitor embeds the td task manager monitor TUI as a sidecar plugin, providing task/issue tracking with kanban boards and setup flows.
workspace
Package workspace manages git worktrees and tmux sessions for parallel development workflows, with AI agent orchestration, PR fetching, and interactive shell access.
Package workspace manages git worktrees and tmux sessions for parallel development workflows, with AI agent orchestration, PR fetching, and interactive shell access.
Package projectdir resolves project-specific state directories under $XDG_STATE_HOME/sidecar/projects/<slug>/ (defaults to ~/.local/state/sidecar/projects/<slug>/).
Package projectdir resolves project-specific state directories under $XDG_STATE_HOME/sidecar/projects/<slug>/ (defaults to ~/.local/state/sidecar/projects/<slug>/).
Package projectsearch runs project-wide text search through ripgrep and holds the surface-neutral state a UI needs to present the results: the flattened file/match list, cursor and scroll bookkeeping, and the search options.
Package projectsearch runs project-wide text search through ripgrep and holds the surface-neutral state a UI needs to present the results: the flattened file/match list, cursor and scroll bookkeeping, and the search options.
Package resource holds the presentation-neutral resource document a terminal resource provider returns, and the validation and sanitization Sidecar runs before any provider-supplied byte reaches view state.
Package resource holds the presentation-neutral resource document a terminal resource provider returns, and the validation and sanitization Sidecar runs before any provider-supplied byte reaches view state.
Package resourceprovider runs terminal resource providers: it owns the process boundary, the protocol envelope, the compiled matcher snapshot, and the host-side cache and concurrency policy.
Package resourceprovider runs terminal resource providers: it owns the process boundary, the protocol envelope, the compiled matcher snapshot, and the host-side cache and concurrency policy.
Package resourceview renders one external resource document in one content box, and a tabbed set of them in one pane leaf.
Package resourceview renders one external resource document in one content box, and a tabbed set of them in one pane leaf.
Package reveal is the row-count state machine behind design frame 1h — the only motion sidecar allows outside the intro.
Package reveal is the row-count state machine behind design frame 1h — the only motion sidecar allows outside the intro.
Package scroll contains the small, state-free rules shared by Sidecar's scrollable surfaces.
Package scroll contains the small, state-free rules shared by Sidecar's scrollable surfaces.
scrolltest
Package scrolltest provides the shared inertial-wheel stress fixture used by boundary tests across sidecar.
Package scrolltest provides the shared inertial-wheel stress fixture used by boundary tests across sidecar.
Package shellliveness decides, from tmux evidence alone, whether a Sidecar shell's tmux session is gone.
Package shellliveness decides, from tmux evidence alone, whether a Sidecar shell's tmux session is gone.
Package shellstate owns validation and persistence of Sidecar shell display names.
Package shellstate owns validation and persistence of Sidecar shell display names.
Package startupfail renders the message Sidecar prints when it cannot reach its first frame.
Package startupfail renders the message Sidecar prints when it cannot reach its first frame.
Package startuptrace records how long each phase of sidecar's startup takes.
Package startuptrace records how long each phase of sidecar's startup takes.
Package state manages persistent user state such as diff mode preferences, pane widths, and plugin-specific state per working directory across sessions.
Package state manages persistent user state such as diff mode preferences, pane widths, and plugin-specific state per working directory across sessions.
Package styles defines the visual design system including color palettes, lipgloss styles, gradient tabs, and theme application for consistent UI rendering.
Package styles defines the visual design system including color palettes, lipgloss styles, gradient tabs, and theme application for consistent UI rendering.
Package tabs is a content-neutral ordered tab group and strip layout.
Package tabs is a content-neutral ordered tab group and strip layout.
Package targetactivation is the state-free half of Sidecar's one jump service: it answers "what should happen when someone activates this target" without touching a model, a plugin, or the filesystem.
Package targetactivation is the state-free half of Sidecar's one jump service: it answers "what should happen when someone activates this target" without touching a model, a plugin, or the filesystem.
Package tdroot provides utilities for resolving td's root directory and database paths.
Package tdroot provides utilities for resolving td's root directory and database paths.
Package tdsetup owns Sidecar's narrow boundary for initializing a td project.
Package tdsetup owns Sidecar's narrow boundary for initializing a td project.
Package terminallink is the compatibility facade for terminal callers of the presentation-neutral contentlink recognition core.
Package terminallink is the compatibility facade for terminal callers of the presentation-neutral contentlink recognition core.
Package terminalperf exposes privacy-safe counters for the visible terminal pipeline.
Package terminalperf exposes privacy-safe counters for the visible terminal pipeline.
Package termpanes owns the host-independent state and lifecycle of Sidecar's live terminal leaves.
Package termpanes owns the host-independent state and lifecycle of Sidecar's live terminal leaves.
Package termpreview is the presentation layer shared by every Sidecar surface that puts a list beside an embedded terminal.
Package termpreview is the presentation layer shared by every Sidecar surface that puts a list beside an embedded terminal.
Package termtitle formats and emits the terminal window/tab title.
Package termtitle formats and emits the terminal window/tab title.
Package testenv establishes process-wide isolation for test binaries that shell out to tmux.
Package testenv establishes process-wide isolation for test binaries that shell out to tmux.
testfixture
terminal
Package terminalfixture provides synthetic terminal workloads for tests and benchmarks.
Package terminalfixture provides synthetic terminal workloads for tests and benchmarks.
terminal/cmd/opencode command
Command opencode emits a deterministic OpenCode-shaped terminal workload for isolated Sidecar performance proofs.
Command opencode emits a deterministic OpenCode-shaped terminal workload for isolated Sidecar performance proofs.
Package textselect is Sidecar's one text-selection engine: the click/drag gesture state machine, the coordinate mapping under it, the highlight the selection is drawn with, and the copy that ends it.
Package textselect is Sidecar's one text-selection engine: the click/drag gesture state machine, the coordinate mapping under it, the highlight the selection is drawn with, and the copy that ends it.
Package theme resolves and applies themes with precedence (project-specific > global > default), supporting both built-in and community color schemes with user overrides.
Package theme resolves and applies themes with precedence (project-specific > global > default), supporting both built-in and community color schemes with user overrides.
Package themecheck detects styles that are frozen to the default theme.
Package themecheck detects styles that are frozen to the default theme.
Package tmuxenv identifies the tmux server this process talks to.
Package tmuxenv identifies the tmux server this process talks to.
Package tmuxserver identifies one tmux server process bound to a socket.
Package tmuxserver identifies one tmux server process bound to a socket.
tty
Package tty provides an embeddable interactive tmux component for sending keystrokes, mouse events, and clipboard paste to a tmux pane while capturing and rendering its output.
Package tty provides an embeddable interactive tmux component for sending keystrokes, mouse events, and clipboard paste to a tmux pane while capturing and rendering its output.
screenmodel
Package screenmodel owns Sidecar's byte-fed pane screen model.
Package screenmodel owns Sidecar's byte-fed pane screen model.
Package ui provides reusable TUI components including modals, buttons, scrollbars, skeleton loaders, overlays, and text utilities.
Package ui provides reusable TUI components including modals, buttons, scrollbars, skeleton loaders, overlays, and text utilities.
Package version checks GitHub for latest releases, compares semantic versions, and manages update workflows for the sidecar and td binaries.
Package version checks GitHub for latest releases, compares semantic versions, and manages update workflows for the sidecar and td binaries.
Package workspacecreate owns the shared Create Workspace form: presentation and in-memory state.
Package workspacecreate owns the shared Create Workspace form: presentation and in-memory state.
Package workspacediff is the shared Diff preview model.
Package workspacediff is the shared Diff preview model.
Package workspaceinventory provides the narrow, read-only inventory used by cross-project surfaces.
Package workspaceinventory provides the narrow, read-only inventory used by cross-project surfaces.
Package workspacelist is the presentation component shared by the project Workspaces sidebar and the global Workspaces browser.
Package workspacelist is the presentation component shared by the project Workspaces sidebar and the global Workspaces browser.
Package workspaceops holds the parts of workspace creation that belong to no particular view.
Package workspaceops holds the parts of workspace creation that belong to no particular view.
Package worktreedelete owns the "Delete Worktree?" confirmation shared by every surface that can delete a worktree.
Package worktreedelete owns the "Delete Worktree?" confirmation shared by every surface that can delete a worktree.

Jump to

Keyboard shortcuts

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