Files
reverse-engineering-anything/tests/fixtures/clientEnvironment.ts
T
07de725f17 feat(setup): register Mistral Vibe CLI client (#15278)
* feat(setup): register Mistral Vibe CLI client

* fix(setup): preserve inline Vibe entry order and reject non-boolean enable_mcp on read

* fix(setup): report duplicate Vibe registrations in doctor and preserve separated subtables

* docs(setup): record the Mistral Vibe 3.2.0 registration check

Mistral Vibe 3.2.0 on Linux loaded the setup registration through its
configuration schema and discovered REA's tools over stdio. After its own
`vibe mcp add` rewrote the file, setup made no change and uninstall removed
only the REA entry.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 12:46:21 +08:00

66 lines
1.6 KiB
TypeScript

import { vi } from "vitest";
/** Environment variables that redirect where supported clients keep config. */
const CLIENT_LOCATION_ENVIRONMENT = [
"HOME",
"USERPROFILE",
"HOMEDRIVE",
"HOMEPATH",
"APPDATA",
"CLINE_MCP_SETTINGS_PATH",
"CLINE_DATA_DIR",
"CLINE_DIR",
"CLAUDE_CONFIG_DIR",
"CODEX_HOME",
"DSH_HOME",
"DSH_AGENTS_HOME",
"COPILOT_HOME",
"FACTORY_HOME_OVERRIDE",
"FLATPAK_XDG_CONFIG_HOME",
"GROK_HOME",
"GEMINI_CLI_HOME",
"GEMINI_CLI_TRUST_WORKSPACE",
"GEMINI_RESTRICTED_MODE",
"GEMINI_CLI_TRUSTED_FOLDERS_PATH",
"GEMINI_CLI_SYSTEM_SETTINGS_PATH",
"GEMINI_CLI_SYSTEM_DEFAULTS_PATH",
"HERMES_DATA_DIR_SUFFIX",
"HERMES_HOME",
"FX_HOME",
"GOOSE_ADDITIONAL_CONFIG_FILES",
"GOOSE_PATH_ROOT",
"PROGRAMDATA",
"JUNIE_HOME",
"JUNIE_MCP_DEFAULT_LOCATIONS",
"JUNIE_CONFIG_LOCATION",
"JUNIE_CONFIG_DEFAULT_LOCATIONS",
"KILO_CONFIG",
"KILO_CONFIG_CONTENT",
"KILO_CONFIG_DIR",
"KILO_DISABLE_PROJECT_CONFIG",
"KIMI_CODE_HOME",
"KIRO_HOME",
"MCPORTER_CONFIG",
"LOCALAPPDATA",
"OMP_PROFILE",
"OPENCODE_CONFIG",
"OPENCODE_CONFIG_DIR",
"PI_CODING_AGENT_DIR",
"PI_CONFIG_DIR",
"PI_PROFILE",
"QODER_CONFIG_DIR",
"QWEN_HOME",
"SAND_DATA_ROOT",
"VIBE_ENABLE_MCP",
"VIBE_HOME",
"VSCODE_APPDATA",
"VSCODE_CWD",
"VSCODE_PORTABLE",
"XDG_CONFIG_HOME",
] as const;
/** Clear the developer's client locations so tests resolve only their temporary homes. */
export const clearClientLocationEnvironment = (): void => {
for (const name of CLIENT_LOCATION_ENVIRONMENT) vi.stubEnv(name, undefined);
};