import { defineCommand } from "politty";
import { ghActionsCommand } from "./gh-actions/index";
import { measureCommand } from "./measure/index";

/**
 * Internal commands are invoked by agents/skills (e.g. `erp-kit-score`,
 * `erp-kit-update-advisor`) — not by humans typing at a terminal. They emit
 * raw signals (JSON, drift lists, counts) that the consuming skill
 * interprets in context. Treat the surface as unstable: the contract is
 * skill-to-CLI, not human-to-CLI.
 */
export const internalCommand = defineCommand({
  name: "internal",
  description: "Commands invoked by erp-kit skills/agents (not intended for direct human use)",
  subCommands: {
    "gh-actions": ghActionsCommand,
    measure: measureCommand,
  },
});
