agent-ctrl-cli 0.1.1 → 0.1.3
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 +4 -3
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -7533,12 +7533,13 @@ async function syncRulesAsFiles(rules, targetRoot, renderer, dryRun) {
|
|
|
7533
7533
|
}));
|
|
7534
7534
|
return syncRenderedFiles(targetRoot, rendered, dryRun);
|
|
7535
7535
|
}
|
|
7536
|
-
async function syncCommandsAsMarkdown(commands, targetRoot, dryRun, renderer) {
|
|
7536
|
+
async function syncCommandsAsMarkdown(commands, targetRoot, dryRun, renderer, flattenSeparator) {
|
|
7537
7537
|
const commandRenderer = renderer ?? CommandRendererFactory.getRenderer("opencode");
|
|
7538
7538
|
const rendered = await Promise.all(commands.map(async (command) => {
|
|
7539
7539
|
const source = await readFile5(command.path, "utf-8");
|
|
7540
|
+
const relativePath = flattenSeparator ? `${command.id.replaceAll("/", flattenSeparator)}${commandRenderer.fileExtension}` : `${command.id}${commandRenderer.fileExtension}`;
|
|
7540
7541
|
return {
|
|
7541
|
-
relativePath
|
|
7542
|
+
relativePath,
|
|
7542
7543
|
content: commandRenderer.renderCommand(source, command.id)
|
|
7543
7544
|
};
|
|
7544
7545
|
}));
|
|
@@ -8459,7 +8460,7 @@ class CodexAdapter {
|
|
|
8459
8460
|
changed = skillsResult.changed || changed;
|
|
8460
8461
|
fileChanges.push(...skillsResult.paths);
|
|
8461
8462
|
if (target.scope === "user") {
|
|
8462
|
-
const promptsResult = await syncCommandsAsMarkdown(source.commands, promptRoot, Boolean(request.dryRun));
|
|
8463
|
+
const promptsResult = await syncCommandsAsMarkdown(source.commands, promptRoot, Boolean(request.dryRun), undefined, ":");
|
|
8463
8464
|
changed = promptsResult.changed || changed;
|
|
8464
8465
|
fileChanges.push(...promptsResult.paths);
|
|
8465
8466
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-ctrl-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A centralized CLI tool for managing AI agent configurations with standard directory-based patterns.",
|
|
5
5
|
"author": "Ahmet Cetinkaya <ahmetcetinkaya@tutamail.com> (https://github.com/ahmet-cetinkaya)",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -23,7 +23,10 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"bin":
|
|
26
|
+
"bin": {
|
|
27
|
+
"agent-ctrl-cli": "./dist/index.js",
|
|
28
|
+
"agent-ctrl": "./dist/index.js"
|
|
29
|
+
},
|
|
27
30
|
"files": [
|
|
28
31
|
"dist/",
|
|
29
32
|
"README.md",
|