UNPKG

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

32 lines (31 loc) • 1.39 kB
// 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/. import { opencodeBuilder } from "./agent-builder.js"; import { OpenCodeProvider } from "./session-log.js"; import { OPENCODE_BIN } from "./version.js"; export { opencodeBuilder } from "./agent-builder.js"; export { OpenCodeProvider } from "./session-log.js"; /** * OpenCode. * * Canonical id is `'opencode'`; it has no distinct runtime identity or alias. */ export class OpencodeHarness { id = "opencode"; displayName = "OpenCode"; // Home-relative config dir scanned by `akm setup` (#567). OpenCode has a // session-log provider, so offering it as a stash source is functional. setupDetectionDir = ".config/opencode"; build = opencodeBuilder.build; profile = { bin: OPENCODE_BIN, args: [] }; // ── Workflow-engine descriptor ──────────── // Session-id env marker for run attribution. identityEnv = ["OPENCODE_SESSION_ID"]; sessionLogProvider = () => new OpenCodeProvider(); systemPrompt = false; nativeAgent = true; // Model work has its tools limited to reading and searching on both majors: the CLI takes an agent defined inline // for the run (./agent-builder.ts). confinable = true; }