@knid/agentx 0.1.7 → 0.1.9
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.js +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -352,6 +352,16 @@ marked.use(
|
|
|
352
352
|
tab: 2
|
|
353
353
|
})
|
|
354
354
|
);
|
|
355
|
+
marked.use({
|
|
356
|
+
renderer: {
|
|
357
|
+
text(token) {
|
|
358
|
+
if (typeof token === "object" && "tokens" in token && token.tokens) {
|
|
359
|
+
return this.parser.parseInline(token.tokens);
|
|
360
|
+
}
|
|
361
|
+
return typeof token === "object" ? token.text : token;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
});
|
|
355
365
|
function renderMarkdown(text3) {
|
|
356
366
|
return marked.parse(text3);
|
|
357
367
|
}
|
|
@@ -812,6 +822,10 @@ Examples:
|
|
|
812
822
|
const populated = replaceTemplateVars(content, vars);
|
|
813
823
|
writeFileSync4(join5(targetDir, file), populated, "utf-8");
|
|
814
824
|
}
|
|
825
|
+
const claudeCommandsDir = join5(targetDir, ".claude", "commands");
|
|
826
|
+
mkdirSync4(claudeCommandsDir, { recursive: true });
|
|
827
|
+
const skillContent = loadTemplate(templatesDir, "create-agent.md");
|
|
828
|
+
writeFileSync4(join5(claudeCommandsDir, "create-agent.md"), skillContent, "utf-8");
|
|
815
829
|
p2.outro(`Agent scaffolded at ${colors.cyan(targetDir)}`);
|
|
816
830
|
console.log();
|
|
817
831
|
console.log(` Next steps:`);
|
|
@@ -819,6 +833,8 @@ Examples:
|
|
|
819
833
|
console.log(` ${colors.dim("2.")} Edit system-prompt.md with your agent's instructions`);
|
|
820
834
|
console.log(` ${colors.dim("3.")} agentx validate`);
|
|
821
835
|
console.log(` ${colors.dim("4.")} agentx run . "test prompt"`);
|
|
836
|
+
console.log();
|
|
837
|
+
console.log(` ${colors.dim("Tip:")} Use ${colors.cyan("/create-agent")} in Claude Code to generate a production-ready agent from a description.`);
|
|
822
838
|
} catch (error) {
|
|
823
839
|
if (error instanceof Error) {
|
|
824
840
|
console.error(colors.error(`Error: ${error.message}`));
|