log-llm-config 1.2.6 → 1.2.8
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { existsSync, statSync
|
|
2
|
-
import { join } from 'node:path';
|
|
1
|
+
import { existsSync, statSync } from 'node:fs';
|
|
3
2
|
import { homedir } from 'node:os';
|
|
4
3
|
import { readJSONFile, readMCPConfig, readMarkdownFile, readInstalledExtensions } from '../readers/file_readers.js';
|
|
5
4
|
import { getExtensionsCachePath, getExtensionsCacheInstalledSuffix, getVscdbPath } from '../paths/path_constants_helpers.js';
|
|
@@ -93,18 +92,6 @@ function handleInstalledExtensions(handledSpecialPaths, configFiles, extensionsC
|
|
|
93
92
|
function collectConfigFilesFromPatterns(patterns, projectRoot, onProgress, options) {
|
|
94
93
|
// Prefer process.env.HOME so hook invoker (e.g. Cursor) can pass real home when it differs from os.homedir()
|
|
95
94
|
const home = (process.env.HOME && process.env.HOME.trim()) || homedir();
|
|
96
|
-
try {
|
|
97
|
-
const claudeSettingsPath = join(home, '.claude', 'settings.json');
|
|
98
|
-
writeFileSync(join(process.cwd(), '.optimus-home-debug.json'), JSON.stringify({
|
|
99
|
-
process_env_HOME: process.env.HOME ?? null,
|
|
100
|
-
homedir: homedir(),
|
|
101
|
-
resolved_home: home,
|
|
102
|
-
claude_settings_path: claudeSettingsPath,
|
|
103
|
-
claude_settings_exists: existsSync(claudeSettingsPath),
|
|
104
|
-
cwd: process.cwd(),
|
|
105
|
-
}, null, 2));
|
|
106
|
-
}
|
|
107
|
-
catch (_) { }
|
|
108
95
|
const pathConstants = options?.client_path_constants;
|
|
109
96
|
if (!pathConstants)
|
|
110
97
|
throw new Error('client_path_constants required from API response but not provided');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "log-llm-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vitest": "^4.0.15"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"axios": "^1.
|
|
53
|
+
"axios": "^1.13.5",
|
|
54
54
|
"canonicalize": "^2.1.0"
|
|
55
55
|
}
|
|
56
56
|
}
|