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

20 lines (19 loc) • 609 B
// 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/. /** * The exit code surfaced to the OS scheduler. Mapped from {@link TaskRunStatus} * so cron / launchd / schtasks see a useful return value. */ export function exitCodeForStatus(status) { switch (status) { case "completed": return 0; case "active": return 0; case "blocked": return 1; case "failed": return 1; } }