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
21 lines (20 loc) • 1.37 kB
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 shape registration for `akm proposal new` (#226; formerly the
// top-level `akm propose`, moved under `proposal` in the 0.9 CLI overhaul, S8).
// Shares the proposal-producer envelope shape (success carries a proposal
// entry; failure carries an AgentFailureReason discriminant) with the
// internal `akmReflect` result shape — but `reflect` has no standalone CLI
// verb and never reaches the output() chokepoint (reflect.ts is called
// directly by the improve loop, not through this registry), so only
// `proposal new` is registered here.
//
// Deliberately phrased WITHOUT the literal call spelling: the registry
// completeness scanner (tests/integration/output-shape-registry-completeness.ts)
// greps sources for that exact pattern to find commands needing a shape, and
// it does not skip comments — so writing the spelling here to explain the
// absence would re-summon the very registration this comment says is gone.
import { shapeProposalProducerOutput } from "../helpers.js";
const handler = (result, detail) => shapeProposalProducerOutput(result, detail);
export const proposalProducerShapes = [{ command: "proposal-new", handler }];