#!/usr/bin/env node
import {
  getErrorMessage
} from "./chunk-473YHDYQ.js";
import {
  init_esm_shims
} from "./chunk-DHET7RCE.js";

// src/cli/lib/exit-codes.ts
init_esm_shims();
var EXIT_CODES = {
  SUCCESS: 0,
  ERROR: 1,
  INVALID_ARGS: 2,
  NETWORK_ERROR: 3,
  CANCELLED: 4
};

// src/cli/base-command.ts
init_esm_shims();
import { Command, Flags } from "@oclif/core";
var BaseCommand = class extends Command {
  static baseFlags = {
    "dry-run": Flags.boolean({
      description: "Preview operations without executing",
      default: false
    }),
    source: Flags.string({
      char: "s",
      description: "Skills source path or URL",
      required: false
    })
  };
  get sourceConfig() {
    return this.config.sourceConfig;
  }
  handleError(error) {
    const message = getErrorMessage(error);
    this.error(message, { exit: EXIT_CODES.ERROR });
  }
  logSuccess(message) {
    this.log(`\u2713 ${message}`);
  }
  logWarning(message) {
    this.warn(message);
  }
  logInfo(message) {
    this.log(message);
  }
};

export {
  EXIT_CODES,
  BaseCommand
};
//# sourceMappingURL=chunk-SRFNNOLC.js.map