@skillkit/cli 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -726,9 +726,11 @@ declare class AgentTranslateCommand extends Command {
726
726
  static usage: clipanion.Usage;
727
727
  name: string | undefined;
728
728
  to: string;
729
+ source: string | undefined;
729
730
  output: string | undefined;
730
731
  dryRun: boolean;
731
732
  all: boolean;
733
+ recursive: boolean;
732
734
  execute(): Promise<number>;
733
735
  }
734
736
  declare class AgentSyncCommand extends Command {
package/dist/index.js CHANGED
@@ -7207,6 +7207,7 @@ import {
7207
7207
  findAllAgents,
7208
7208
  findAgent,
7209
7209
  discoverAgents,
7210
+ discoverAgentsFromPath,
7210
7211
  validateAgent,
7211
7212
  translateAgent,
7212
7213
  getAgentTargetDirectory
@@ -7437,9 +7438,18 @@ var AgentTranslateCommand = class extends Command35 {
7437
7438
  static paths = [["agent", "translate"]];
7438
7439
  static usage = Command35.Usage({
7439
7440
  description: "Translate agents between AI coding agent formats",
7441
+ details: `
7442
+ Translates agent definitions between different AI coding agent formats.
7443
+ Supports recursive translation for directories with multiple agents.
7444
+
7445
+ Use --source to specify a custom source directory with agents.
7446
+ Use --recursive to scan all subdirectories for agents.
7447
+ `,
7440
7448
  examples: [
7441
7449
  ["Translate all to Cursor", "$0 agent translate --to cursor"],
7442
7450
  ["Translate specific agent", "$0 agent translate architect --to cursor"],
7451
+ ["Translate from source directory", "$0 agent translate --source ./my-agents --to cursor"],
7452
+ ["Recursive translation", "$0 agent translate --source ./skills --to cursor --recursive"],
7443
7453
  ["Dry run", "$0 agent translate --to cursor --dry-run"]
7444
7454
  ]
7445
7455
  });
@@ -7448,6 +7458,9 @@ var AgentTranslateCommand = class extends Command35 {
7448
7458
  description: "Target AI agent (claude-code, cursor, codex, etc.)",
7449
7459
  required: true
7450
7460
  });
7461
+ source = Option34.String("--source,-s", {
7462
+ description: "Source directory or file to translate from"
7463
+ });
7451
7464
  output = Option34.String("--output,-o", {
7452
7465
  description: "Output directory"
7453
7466
  });
@@ -7457,11 +7470,28 @@ var AgentTranslateCommand = class extends Command35 {
7457
7470
  all = Option34.Boolean("--all,-a", false, {
7458
7471
  description: "Translate all agents"
7459
7472
  });
7473
+ recursive = Option34.Boolean("--recursive,-r", false, {
7474
+ description: "Recursively scan directories for agents"
7475
+ });
7460
7476
  async execute() {
7461
7477
  const searchDirs = [process.cwd()];
7462
7478
  const targetAgent = this.to;
7463
7479
  let agents;
7464
- if (this.name) {
7480
+ if (this.source) {
7481
+ const sourcePath = this.source.startsWith("/") ? this.source : join13(process.cwd(), this.source);
7482
+ if (!existsSync14(sourcePath)) {
7483
+ console.log(chalk32.red(`Source path not found: ${sourcePath}`));
7484
+ return 1;
7485
+ }
7486
+ agents = discoverAgentsFromPath(sourcePath, this.recursive);
7487
+ if (agents.length === 0) {
7488
+ console.log(chalk32.yellow(`No agents found in: ${sourcePath}`));
7489
+ if (!this.recursive) {
7490
+ console.log(chalk32.dim("Tip: Use --recursive to scan subdirectories"));
7491
+ }
7492
+ return 0;
7493
+ }
7494
+ } else if (this.name) {
7465
7495
  const agent = findAgent(this.name, searchDirs);
7466
7496
  if (!agent) {
7467
7497
  console.log(chalk32.red(`Agent not found: ${this.name}`));