acptools

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package acptools provisions the pinned ACP adapter packages onto a host. The embedded manifest (package.json + bun.lock) is materialized into the tools dir and installed with bun --frozen-lockfile, so every host runs exactly the reviewed dependency graph — including the exact @openai/codex the adapter's caret range would otherwise float.

Index

Constants

View Source
const (
	PinnedCodexACPVersion  = "1.1.7"
	PinnedCodexVersion     = "0.145.0"
	PinnedClaudeACPVersion = "0.61.0"
)

Pinned adapter versions. A unit test asserts these match the embedded manifest so a pin bump is always a reviewed two-file diff.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths

type Paths struct {
	Dir            string
	BunBin         string
	CodexACPEntry  string
	ClaudeACPEntry string
	// CodexBin is the pinned codex CLI's JS launcher (run under bun).
	// The auth ceremony uses it so `codex login` and the adapter's
	// app-server child are always the same codex version.
	CodexBin string
}

Paths locates the provisioned tools for spawning.

func Ensure

func Ensure(ctx context.Context, toolsDir string) (Paths, error)

Ensure materializes the manifest into toolsDir and installs it with bun when missing or changed. Idempotent and serialized; concurrent spawn attempts share one install. bun resolves from PATH — a missing bun fails here with an actionable error, not at host startup.

Jump to

Keyboard shortcuts

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