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

18 lines (17 loc) • 703 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/. /** * Platform detection leaf. Imports NOTHING so both * `common.ts` and `paths.ts` can depend on it — extracting IS_WINDOWS here * broke the `common.ts ↔ paths.ts` import cycle (paths needed only this * constant from common). */ export const IS_WINDOWS = process.platform === "win32"; export function backendNameForPlatform(platform = process.platform) { if (platform === "win32") return "schtasks"; if (platform === "darwin") return "launchd"; return "cron"; }