akm-cli
Version:
akm (Agent Knowledge Manager) — a portable, local-first capability library for AI agents. Discover, load, share, and improve reusable skills, scripts, workflows, and knowledge across any shell-capable coding agent, including Claude Code, OpenCode, and Cur
12 lines (11 loc) • 775 B
JavaScript
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Output text formatters for `akm registry *` commands.
import { formatRegistryAddPlain, formatRegistryListPlain, formatRegistryRemovePlain, formatRegistrySearchPlain, } from "./helpers.js";
export const registryCommandFormatters = [
{ command: "registry-list", handler: (r) => formatRegistryListPlain(r) },
{ command: "registry-add", handler: (r) => formatRegistryAddPlain(r) },
{ command: "registry-remove", handler: (r) => formatRegistryRemovePlain(r) },
{ command: "registry-search", handler: (r, detail) => formatRegistrySearchPlain(r, detail) },
];