log-llm-config 1.0.2 → 1.0.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/log_config_files.js +0 -15
- package/package.json +1 -1
package/dist/log_config_files.js
CHANGED
|
@@ -141,12 +141,8 @@ function readVSCDBState() {
|
|
|
141
141
|
*/
|
|
142
142
|
function collectConfigFiles() {
|
|
143
143
|
const configFiles = [];
|
|
144
|
-
console.log(`Collecting config files from project root: ${PROJECT_ROOT}`);
|
|
145
|
-
console.log(`Current working directory: ${process.cwd()}`);
|
|
146
|
-
console.log(`Home directory: ${homedir()}`);
|
|
147
144
|
// Read MCP configs
|
|
148
145
|
for (const configPath of MCP_CONFIG_PATHS) {
|
|
149
|
-
console.log(`Checking MCP config path: ${configPath}`);
|
|
150
146
|
const mcpConfig = readMCPConfig(configPath);
|
|
151
147
|
if (mcpConfig) {
|
|
152
148
|
console.log(`Found MCP config at: ${configPath}`);
|
|
@@ -156,14 +152,10 @@ function collectConfigFiles() {
|
|
|
156
152
|
raw_content: mcpConfig,
|
|
157
153
|
});
|
|
158
154
|
}
|
|
159
|
-
else {
|
|
160
|
-
console.log(`MCP config not found at: ${configPath}`);
|
|
161
|
-
}
|
|
162
155
|
}
|
|
163
156
|
// Read JSON files - collect all levels (enterprise, project, user) so we can display them all
|
|
164
157
|
for (const { path, file_type } of JSON_FILE_PATHS) {
|
|
165
158
|
try {
|
|
166
|
-
console.log(`Checking ${file_type} path: ${path}`);
|
|
167
159
|
const jsonContent = readJSONFile(path);
|
|
168
160
|
if (jsonContent) {
|
|
169
161
|
console.log(`Found ${file_type} at: ${path}`);
|
|
@@ -173,13 +165,6 @@ function collectConfigFiles() {
|
|
|
173
165
|
raw_content: jsonContent,
|
|
174
166
|
});
|
|
175
167
|
}
|
|
176
|
-
else {
|
|
177
|
-
console.log(`${file_type} not found at: ${path}`);
|
|
178
|
-
// Log when file doesn't exist (useful for debugging enterprise files)
|
|
179
|
-
if (path.includes('/Library/Application Support/ClaudeCode/')) {
|
|
180
|
-
console.log(`Enterprise file not found (may require sudo): ${path}`);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
168
|
}
|
|
184
169
|
catch (error) {
|
|
185
170
|
// Log errors but continue collecting other files
|