kitbridge

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package kitbridge turns a tamnd/*-cli built on the kit framework into tomo tools. Each kit Operation carries its own name, schema, and typed handler, so one adapter exposes a whole CLI's surface as typed tools with no per-command wiring. The CLI's own client (the thing that talks to the site) is supplied once and injected into every op, exactly as kit does when it runs the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tools

func Tools(prefix string, app *kit.App, client any, st store.Store, limit int) []tool.Tool

Tools adapts every operation an app registers into a tomo tool. prefix namespaces the names so several bridged CLIs never collide; an empty prefix leaves the kit names as they are. client is the domain client injected into each op, and st is an optional record store to tee results into. limit caps how many records one call returns, 0 for no cap.

Types

This section is empty.

Jump to

Keyboard shortcuts

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