coder-config 0.53.1-beta → 0.53.2-beta

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * Constants and tool path configurations
3
3
  */
4
4
 
5
- const VERSION = '0.53.1-beta';
5
+ const VERSION = '0.53.2-beta';
6
6
 
7
7
  // Tool-specific path configurations
8
8
  const TOOL_PATHS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coder-config",
3
- "version": "0.53.1-beta",
3
+ "version": "0.53.2-beta",
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",
@@ -93,6 +93,7 @@ function scanFolderForExplorer(dir, manager, label = null) {
93
93
  name: 'AGENTS.md (root)',
94
94
  path: rootAgentsMd,
95
95
  type: 'agentsmd',
96
+ tool: 'codex',
96
97
  size: fs.statSync(rootAgentsMd).size,
97
98
  isRoot: true
98
99
  });
@@ -105,6 +106,8 @@ function scanFolderForExplorer(dir, manager, label = null) {
105
106
  name: 'AGENTS.override.md (root)',
106
107
  path: rootAgentsOverrideMd,
107
108
  type: 'agentsmd',
109
+ tool: 'codex',
110
+ isOverride: true,
108
111
  size: fs.statSync(rootAgentsOverrideMd).size,
109
112
  isRoot: true
110
113
  });
@@ -847,9 +850,9 @@ function getFileHashes(manager, projectDir, config = {}) {
847
850
  */
848
851
  function getInstructionHierarchy(dir) {
849
852
  const home = os.homedir();
850
- const hierarchy = { claude: [], gemini: [], codex: [] };
853
+ const hierarchy = { dir: path.resolve(dir), claude: [], gemini: [], codex: [] };
851
854
 
852
- // Walk from dir up to filesystem root
855
+ // Walk from dir up to HOME (don't traverse above home directory)
853
856
  let current = path.resolve(dir);
854
857
  const seen = new Set();
855
858
 
@@ -889,19 +892,29 @@ function getInstructionHierarchy(dir) {
889
892
  }
890
893
  }
891
894
 
892
- // Also check ~/.codex/AGENTS.md for global Codex instructions
893
- if (current === home) {
894
- const globalAgents = path.join(home, '.codex', 'AGENTS.md');
895
- if (fs.existsSync(globalAgents)) {
896
- hierarchy.codex.push({ path: globalAgents, dir: '~/.codex', name: 'AGENTS.md', size: fs.statSync(globalAgents).size });
897
- }
898
- }
899
-
895
+ // Stop at HOME directory (don't walk above it)
896
+ if (current === home) break;
900
897
  const parent = path.dirname(current);
901
898
  if (parent === current) break;
902
899
  current = parent;
903
900
  }
904
901
 
902
+ // Always check home directory last (global scope)
903
+ if (!seen.has(home)) {
904
+ const globalClaudeMd = path.join(home, '.claude', 'CLAUDE.md');
905
+ if (fs.existsSync(globalClaudeMd)) {
906
+ hierarchy.claude.push({ path: globalClaudeMd, dir: '~/.claude', size: fs.statSync(globalClaudeMd).size });
907
+ }
908
+ const globalGeminiMd = path.join(home, '.gemini', 'GEMINI.md');
909
+ if (fs.existsSync(globalGeminiMd)) {
910
+ hierarchy.gemini.push({ path: globalGeminiMd, dir: '~/.gemini', size: fs.statSync(globalGeminiMd).size });
911
+ }
912
+ const globalAgentsMd = path.join(home, '.codex', 'AGENTS.md');
913
+ if (fs.existsSync(globalAgentsMd)) {
914
+ hierarchy.codex.push({ path: globalAgentsMd, dir: '~/.codex', name: 'AGENTS.md', size: fs.statSync(globalAgentsMd).size });
915
+ }
916
+ }
917
+
905
918
  return hierarchy;
906
919
  }
907
920