@intellectronica/ruler 0.3.16 → 0.3.17
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 +1 -1
- package/dist/core/FileSystemUtils.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -319,7 +319,7 @@ ruler revert [options]
|
|
|
319
319
|
| Option | Description |
|
|
320
320
|
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
321
321
|
| `--project-root <path>` | Path to your project's root (default: current directory) |
|
|
322
|
-
| `--agents <agent1,agent2,...>` | Comma-separated list of agent names to revert (agentsmd, aider, amazonqcli, amp, augmentcode, claude, cline, codex, copilot, crush, cursor, firebase, firebender, gemini-cli, goose, jules, junie, kilocode, kiro, opencode, openhands, qwen, roo, trae, warp, windsurf, zed) |
|
|
322
|
+
| `--agents <agent1,agent2,...>` | Comma-separated list of agent names to revert (agentsmd, aider, amazonqcli, amp, antigravity, augmentcode, claude, cline, codex, copilot, crush, cursor, firebase, firebender, gemini-cli, goose, jules, junie, kilocode, kiro, opencode, openhands, qwen, roo, trae, warp, windsurf, zed) |
|
|
323
323
|
| `--config <path>` | Path to a custom `ruler.toml` configuration file |
|
|
324
324
|
| `--keep-backups` | Keep backup files (.bak) after restoration (default: false) |
|
|
325
325
|
| `--dry-run` | Preview changes without actually reverting files |
|
|
@@ -43,6 +43,7 @@ exports.findAllRulerDirs = findAllRulerDirs;
|
|
|
43
43
|
const fs_1 = require("fs");
|
|
44
44
|
const path = __importStar(require("path"));
|
|
45
45
|
const os = __importStar(require("os"));
|
|
46
|
+
const constants_1 = require("../constants");
|
|
46
47
|
/**
|
|
47
48
|
* Gets the XDG config directory path, falling back to ~/.config if XDG_CONFIG_HOME is not set.
|
|
48
49
|
*/
|
|
@@ -101,6 +102,13 @@ async function readMarkdownFiles(rulerDir) {
|
|
|
101
102
|
for (const entry of entries) {
|
|
102
103
|
const fullPath = path.join(dir, entry.name);
|
|
103
104
|
if (entry.isDirectory()) {
|
|
105
|
+
// Skip .ruler/skills; skills are propagated separately and should not be concatenated
|
|
106
|
+
const relativeFromRoot = path.relative(rulerDir, fullPath);
|
|
107
|
+
const isSkillsDir = relativeFromRoot === constants_1.SKILLS_DIR ||
|
|
108
|
+
relativeFromRoot.startsWith(`${constants_1.SKILLS_DIR}${path.sep}`);
|
|
109
|
+
if (isSkillsDir) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
104
112
|
await walk(fullPath);
|
|
105
113
|
}
|
|
106
114
|
else if (entry.isFile() && entry.name.endsWith('.md')) {
|