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
22 lines (21 loc) • 719 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/.
export const envListShapes = [
{
command: "env-list",
handler: (result) => {
const r = result;
const envs = Array.isArray(r.envs) ? r.envs : [];
return {
...r,
shape: r.shape ?? "env-list",
schemaVersion: r.schemaVersion ?? 1,
envs: envs.map((v) => {
const { path: _path, ...rest } = v;
return rest;
}),
};
},
},
];