omp

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package omp integrates Oh My Pi (omp) with MemSpace.

omp has no shell hooks: it loads TypeScript extensions from <agent dir>/hooks/{pre,post}/*.ts, and MCP servers from <agent dir>/mcp.json. `memspace agent install omp` therefore generates a small extension that forwards omp's session and tool events to `memspace hook omp` (the same payload shape Claude Code sends), and registers the stdio MCP bridge next to it.

Index

Constants

View Source
const AgentType = "omp"

AgentType is the agent_type stored on sessions.

Variables

This section is empty.

Functions

func ExtensionSource

func ExtensionSource(argv []string) ([]byte, error)

ExtensionSource renders the extension with the pinned hook argv embedded.

Types

type Adapter

type Adapter struct {
	// AgentDir overrides omp's agent directory (default $PI_CODING_AGENT_DIR
	// or ~/.omp/agent).
	AgentDir string
}

Adapter implements adapter.Adapter for Oh My Pi.

func (*Adapter) Capabilities

func (a *Adapter) Capabilities() []string

func (*Adapter) Detect

func (a *Adapter) Detect(ctx context.Context) adapter.Detection

func (*Adapter) Doctor

func (a *Adapter) Doctor(ctx context.Context, opts adapter.InstallOptions) []adapter.Check

func (*Adapter) ExtensionPath

func (a *Adapter) ExtensionPath() string

ExtensionPath is the extension file that forwards omp events to MemSpace.

func (*Adapter) Install

func (a *Adapter) Install(ctx context.Context, opts adapter.InstallOptions) error

Install writes the capture extension. The MCP server is registered separately through RegisterMCP so `--no-mcp` still leaves capture working.

func (*Adapter) MCPCheck

func (a *Adapter) MCPCheck(ctx context.Context) adapter.Check

MCPCheck verifies that omp's config points at the stdio bridge.

func (*Adapter) MCPConfigPath

func (a *Adapter) MCPConfigPath() string

MCPConfigPath is the omp-native MCP config file.

func (*Adapter) Name

func (a *Adapter) Name() string

func (*Adapter) Normalize

func (a *Adapter) Normalize(raw []byte, now time.Time) ([]spool.Record, error)

Normalize accepts the same payload shape the generated extension sends.

func (*Adapter) RegisterMCP

func (a *Adapter) RegisterMCP(ctx context.Context, opts adapter.MCPOptions) error

RegisterMCP writes MemSpace's stdio bridge into omp's native MCP config (<agent dir>/mcp.json), preserving every other server in the file. It writes no token: the bridge reads this device's credentials itself.

func (*Adapter) Uninstall

func (a *Adapter) Uninstall(ctx context.Context, out io.Writer) error

func (*Adapter) UnregisterMCP

func (a *Adapter) UnregisterMCP(ctx context.Context) error

Jump to

Keyboard shortcuts

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