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

40 lines (39 loc) • 1.71 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/. /** * Amazon Q Developer CLI harness (P2 integration, plan §"The adapter * contract"). * * Per-harness barrel gathering the Amazon Q integration surfaces: * - agent command builder → ./agent-builder.ts (amazonqBuilder) * - result extractor → ./result-extractor.ts (amazonqResultExtractor) * * It also defines {@link AmazonqHarness}, the {@link AkmHarness} descriptor * that `HARNESS_REGISTRY` registers. Dispatch-only: no native session-log * reader or config importer yet. */ import { caps } from "../shared.js"; import { BaseHarness } from "../types.js"; import { amazonqBuilder } from "./agent-builder.js"; import { amazonqResultExtractor } from "./result-extractor.js"; export { AMAZONQ_PLATFORM, amazonqBuilder } from "./agent-builder.js"; export { amazonqResultExtractor, stripTerminalFraming } from "./result-extractor.js"; /** * Amazon Q Developer CLI (`q`). * * Canonical id is `'amazonq'`; no alias or distinct runtime identity. */ export class AmazonqHarness extends BaseHarness { id = "amazonq"; displayName = "Amazon Q Developer CLI"; agentBuilder = amazonqBuilder; resultExtractor = amazonqResultExtractor; // ── Workflow-engine descriptor (plan §"Capability matrix", P2) ──────────── // No `identityEnv`: the matrix lists Q's identity markers as uncertain, and // Q stamps no session var onto child processes. capabilities = caps({ agentDispatch: true, detection: true, }); }