adapters

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 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) OrientPath

func (ClaudeAdapter) OrientPath() string

OrientPath returns the rendered SKILL.md path inside IntegrationsFS. Tier-2 orient calls with host="claude" append these bytes to the canonical body so agents see Claude's skill frontmatter alongside the host-agnostic guidance.

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) OrientPath

func (CodexAdapter) OrientPath() string

OrientPath returns the rendered AGENTS.md path inside IntegrationsFS. Tier-2 orient calls with host="codex" append these bytes to the canonical body; Codex users see the same preamble and concat as the install-tree AGENTS.md.

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