agent-ctrl-cli 0.1.0 → 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/README.md CHANGED
@@ -18,21 +18,11 @@ A centralized CLI tool for managing AI agent configurations using a **standard d
18
18
  ### Installation
19
19
 
20
20
  ```bash
21
- # Clone the repository
22
- git clone https://github.com/ahmet-cetinkaya/agent-ctrl.git
23
- cd agent-ctrl
24
-
25
- # Install dependencies
26
- bun install
27
-
28
- # Build the CLI
29
- bun run build
30
-
31
- # Run directly (development)
32
- bun run dev --help
21
+ # Install from npm (global)
22
+ npm install -g agent-ctrl-cli
33
23
 
34
- # Or run the built version
35
- node dist/index.js --help
24
+ # Run CLI
25
+ agent-ctrl --help
36
26
  ```
37
27
 
38
28
  ### Basic Usage
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: `${command.id}${commandRenderer.fileExtension}`,
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.0",
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": "./dist/index.js",
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",