coder-config 0.44.38 → 0.44.39
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/lib/constants.js +1 -1
- package/package.json +1 -1
- package/ui/routes/loops.js +16 -0
package/lib/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coder-config",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.39",
|
|
4
4
|
"description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|
package/ui/routes/loops.js
CHANGED
|
@@ -559,6 +559,7 @@ ${task}
|
|
|
559
559
|
* Fix the ralph-loop plugin structure by converting commands to skills format
|
|
560
560
|
* Claude Code expects skills/<name>/SKILL.md, but the plugin has commands/<name>.md
|
|
561
561
|
* Also fixes frontmatter issues (hide-from-slash-command-tool -> name)
|
|
562
|
+
* Also fixes hooks.json to use absolute paths instead of ${CLAUDE_PLUGIN_ROOT}
|
|
562
563
|
*/
|
|
563
564
|
function fixRalphLoopPluginStructure() {
|
|
564
565
|
const pluginCacheDir = path.join(os.homedir(), '.claude', 'plugins', 'cache', 'claude-plugins-official', 'ralph-loop');
|
|
@@ -577,6 +578,21 @@ function fixRalphLoopPluginStructure() {
|
|
|
577
578
|
const versionDir = path.join(pluginCacheDir, version);
|
|
578
579
|
const commandsDir = path.join(versionDir, 'commands');
|
|
579
580
|
const skillsDir = path.join(versionDir, 'skills');
|
|
581
|
+
const hooksDir = path.join(versionDir, 'hooks');
|
|
582
|
+
|
|
583
|
+
// Fix hooks.json - replace ${CLAUDE_PLUGIN_ROOT} with actual path
|
|
584
|
+
const hooksJsonPath = path.join(hooksDir, 'hooks.json');
|
|
585
|
+
if (fs.existsSync(hooksJsonPath)) {
|
|
586
|
+
try {
|
|
587
|
+
let hooksContent = fs.readFileSync(hooksJsonPath, 'utf8');
|
|
588
|
+
if (hooksContent.includes('${CLAUDE_PLUGIN_ROOT}')) {
|
|
589
|
+
hooksContent = hooksContent.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g, versionDir);
|
|
590
|
+
fs.writeFileSync(hooksJsonPath, hooksContent, 'utf8');
|
|
591
|
+
}
|
|
592
|
+
} catch (e) {
|
|
593
|
+
// Ignore errors fixing hooks
|
|
594
|
+
}
|
|
595
|
+
}
|
|
580
596
|
|
|
581
597
|
if (!fs.existsSync(commandsDir)) {
|
|
582
598
|
continue;
|