adapters

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package adapters hosts the host-specific integration renderers. Each adapter is registered with the parent integrations package via init() and owns a single output directory under the rendered root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaudeAdapter

type ClaudeAdapter struct{}

ClaudeAdapter renders the Claude Code plugin tree:

  • claude/.claude-plugin/plugin.json
  • claude/.claude-plugin/.mcp.json
  • claude/skills/tapper/SKILL.md

func (ClaudeAdapter) Name

func (ClaudeAdapter) Name() string

Name returns the adapter's subdirectory under the rendered root.

func (ClaudeAdapter) Render

func (a ClaudeAdapter) Render(rt *toolkit.Runtime, content fs.FS, dst integrations.DestWriter) error

Render emits the Claude plugin files into dst. rt is consulted for release-time configuration (TAPPER_PLUGIN_VERSION); a nil runtime falls back to the default "dev" version. Outputs are written in alphabetical order of their rendered path so the test fixtures and drift detector see a deterministic emission sequence.

type CodexAdapter

type CodexAdapter struct{}

CodexAdapter renders the Codex install tree:

  • codex/AGENTS.md (preamble + canonical body, single H1)
  • codex/prompts/tapper-*.md (saved prompt shortcuts)
  • codex/config-snippet.toml (MCP server registration)

func (CodexAdapter) Name

func (CodexAdapter) Name() string

Name returns the adapter's subdirectory under the rendered root.

func (CodexAdapter) Render

func (a CodexAdapter) Render(rt *toolkit.Runtime, content fs.FS, dst integrations.DestWriter) error

Render emits the Codex install tree under dst. The three output groups (AGENTS.md, prompts, config snippet) are independent; a failure on any one aborts the render. rt is accepted for interface consistency — the Codex adapter has no release-time configuration today — and is not consulted.

Jump to

Keyboard shortcuts

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