@archon-claw/cli 0.3.0 → 0.4.0

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/cli.js CHANGED
@@ -11,7 +11,7 @@ import { SessionStore } from "./session.js";
11
11
  import { startDev } from "./dev.js";
12
12
  import { runToolTests, formatResults } from "./test-runner.js";
13
13
  import { runEvals } from "./eval/runner.js";
14
- import { scaffoldAgent, scaffoldWorkspace, updateSkills } from "./scaffold.js";
14
+ import { scaffoldAgent, scaffoldWorkspace, exportSkills } from "./scaffold.js";
15
15
  const pkg = JSON.parse(readFileSync(path.resolve(__dirname, "../package.json"), "utf-8"));
16
16
  const program = new Command();
17
17
  program
@@ -237,12 +237,12 @@ program
237
237
  }
238
238
  });
239
239
  program
240
- .command("update-skills")
241
- .description("Update skills to the latest version bundled with @archon-claw/cli")
242
- .argument("[dir]", "Workspace directory", ".")
243
- .action(async (dir) => {
240
+ .command("export-skills")
241
+ .description("Export bundled skills to a target directory")
242
+ .argument("<target>", "Target directory to export skills into")
243
+ .action(async (target) => {
244
244
  try {
245
- await updateSkills(dir);
245
+ await exportSkills(target);
246
246
  }
247
247
  catch (err) {
248
248
  console.error(err instanceof Error ? err.message : err);
@@ -4,4 +4,4 @@ export declare function scaffoldAgent(name: string, targetDir: string, opts?: {
4
4
  export declare function scaffoldWorkspace(targetDir: string, opts?: {
5
5
  install?: boolean;
6
6
  }): Promise<void>;
7
- export declare function updateSkills(targetDir: string): Promise<void>;
7
+ export declare function exportSkills(targetDir: string): Promise<void>;
package/dist/scaffold.js CHANGED
@@ -89,15 +89,12 @@ export async function scaffoldWorkspace(targetDir, opts = {}) {
89
89
  }
90
90
  console.log(` archon-claw dev agents/my-agent`);
91
91
  }
92
- export async function updateSkills(targetDir) {
92
+ export async function exportSkills(targetDir) {
93
93
  const dest = path.resolve(targetDir);
94
- const destSkillsDir = path.join(dest, ".claude", "skills");
95
- // Remove old skills directory and copy fresh
96
- await fs.rm(destSkillsDir, { recursive: true, force: true });
97
- await fs.mkdir(destSkillsDir, { recursive: true });
98
- await fs.cp(skillsDir, destSkillsDir, { recursive: true });
99
- const entries = await fs.readdir(destSkillsDir);
100
- console.log(`\nUpdated ${entries.length} skills in ${destSkillsDir}\n`);
94
+ await fs.mkdir(dest, { recursive: true });
95
+ await fs.cp(skillsDir, dest, { recursive: true });
96
+ const entries = await fs.readdir(dest);
97
+ console.log(`\nExported ${entries.length} skills to ${dest}\n`);
101
98
  for (const entry of entries.sort()) {
102
99
  console.log(` ${entry}/SKILL.md`);
103
100
  }
@@ -4,10 +4,12 @@
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "dev": "archon-claw dev agents/my-agent",
8
- "start": "archon-claw start agents/my-agent -p ${PORT:-5100}",
7
+ "dev": "archon-claw dev --agents-dir agents",
8
+ "start": "archon-claw start --agents-dir agents -p ${PORT:-5100}",
9
+ "test": "archon-claw test agents/my-agent",
10
+ "eval": "archon-claw eval agents/my-agent",
9
11
  "create:agent": "archon-claw create-agent",
10
- "update:skills": "archon-claw update-skills"
12
+ "export:skills": "archon-claw export-skills .claude/skills"
11
13
  },
12
14
  "keywords": [],
13
15
  "license": "ISC",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archon-claw/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "AI Agent CLI",
5
5
  "type": "module",
6
6
  "bin": {