cloudflare-mcp-smart-proxy 1.4.0 → 1.4.1
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/package.json
CHANGED
|
@@ -197,6 +197,7 @@ export function getReferenceConnectorTarget({
|
|
|
197
197
|
const normalizedScope = normalizeString(scope, 'user').toLowerCase();
|
|
198
198
|
const resolvedWorkspaceRoot = path.resolve(workspaceRoot || process.cwd());
|
|
199
199
|
const resolvedHomeDir = resolveHomeDir(homeDir);
|
|
200
|
+
const explicitHomeDir = normalizeString(homeDir);
|
|
200
201
|
|
|
201
202
|
if (normalizedEcosystem === 'codex') {
|
|
202
203
|
return {
|
|
@@ -205,7 +206,7 @@ export function getReferenceConnectorTarget({
|
|
|
205
206
|
format: 'toml',
|
|
206
207
|
targetFile: path.resolve(
|
|
207
208
|
normalizeString(codexConfigPath)
|
|
208
|
-
|| normalizeString(process.env.CODEX_SHARED_CONFIG_PATH)
|
|
209
|
+
|| (!explicitHomeDir ? normalizeString(process.env.CODEX_SHARED_CONFIG_PATH) : '')
|
|
209
210
|
|| path.join(resolvedHomeDir, '.codex', 'config.toml')
|
|
210
211
|
)
|
|
211
212
|
};
|
|
@@ -314,10 +315,11 @@ export function installReferenceConnector({
|
|
|
314
315
|
codexConfigPath
|
|
315
316
|
});
|
|
316
317
|
const resolvedHomeDir = resolveHomeDir(homeDir);
|
|
318
|
+
const explicitHomeDir = normalizeString(homeDir);
|
|
317
319
|
const deviceIdentityPath = target.ecosystem === 'codex'
|
|
318
320
|
? path.resolve(
|
|
319
321
|
normalizeString(codexDeviceIdentityPath)
|
|
320
|
-
|| normalizeString(process.env.CODEX_SHARED_DEVICE_IDENTITY_PATH)
|
|
322
|
+
|| (!explicitHomeDir ? normalizeString(process.env.CODEX_SHARED_DEVICE_IDENTITY_PATH) : '')
|
|
321
323
|
|| path.join(resolvedHomeDir, '.codex', 'cloudmcp', 'device-identity.json')
|
|
322
324
|
)
|
|
323
325
|
: path.join(resolvedHomeDir, '.cloudmcp', 'device-identity.json');
|