@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 +6 -6
- package/dist/scaffold.d.ts +1 -1
- package/dist/scaffold.js +5 -8
- package/dist/templates/workspace/package.json +5 -3
- package/package.json +1 -1
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,
|
|
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("
|
|
241
|
-
.description("
|
|
242
|
-
.argument("
|
|
243
|
-
.action(async (
|
|
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
|
|
245
|
+
await exportSkills(target);
|
|
246
246
|
}
|
|
247
247
|
catch (err) {
|
|
248
248
|
console.error(err instanceof Error ? err.message : err);
|
package/dist/scaffold.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
92
|
+
export async function exportSkills(targetDir) {
|
|
93
93
|
const dest = path.resolve(targetDir);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
await fs.
|
|
97
|
-
|
|
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
|
|
8
|
-
"start": "archon-claw start agents
|
|
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
|
-
"
|
|
12
|
+
"export:skills": "archon-claw export-skills .claude/skills"
|
|
11
13
|
},
|
|
12
14
|
"keywords": [],
|
|
13
15
|
"license": "ISC",
|