Skip to main content
All usage examples from the package, aggregated for quick reference.

checkStatuslineIntegration()

Check if statusline integration is configured. Returns the current integration status. View in API reference

getStatuslineConfig()

Get the statusline setup command for Claude Code settings. View in API reference

getSetupInstructions()

Get human-readable setup instructions. View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

readLatestTranscript()

Read the most recent JSON or JSONL session file from providerDir and return its contents as a flat transcript string. Files are sorted in descending order by filename — this works naturally for providers that embed timestamps in filenames. The most recently named file is read first. Returns null when: - providerDir does not exist or cannot be read - No JSON/JSONL files are present - The most recent file contains no parseable turns View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

buildOpenCodeAgentMarkdown()

Build the markdown content for an OpenCode agent definition file. OpenCode agents are defined as markdown files with YAML frontmatter in the .opencode/agent/ directory. View in API reference

createAdapter()

Factory function for creating adapter instances. Used by AdapterManager’s dynamic import fallback. View in API reference

getProviderManifests()

Get the manifests for all bundled provider adapters. View in API reference

discoverProviders()

Discover all available provider adapters. Returns a map of provider ID to adapter factory function. View in API reference