* feat(setup): register OMP during setup Add OMP (oh-my-pi) as a setup, doctor and uninstall client. Setup writes a type: stdio entry to the user-level agent mcp.json that OMP reads, following PI_CONFIG_DIR, an absolute PI_CODING_AGENT_DIR and the OMP_PROFILE/PI_PROFILE named profile. It removes rea from OMP's disabledServers denylist, which would otherwise hide the registration, and doctor reports a listed registration as stale. Closes #1257 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(setup): honor OMP's enabledServers allowlist in doctor OMP's user enabledServers allowlist forces an entry with enabled: false on, unless disabledServers also lists it. Doctor reported such a working registration as stale. Also format the FAQ client list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(setup): keep OMP's allowlisted entry in update maintenance rea update skipped an owned OMP entry with enabled: false even when OMP's enabledServers allowlist runs it. Apply the same forced-enable rule as doctor. Share the client-location environment reset across the client tests instead of repeating it in each file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
625 B
TypeScript
23 lines
625 B
TypeScript
import { vi } from "vitest";
|
|
|
|
/** Environment variables that redirect where supported clients keep config. */
|
|
export const CLIENT_LOCATION_ENVIRONMENT = [
|
|
"APPDATA",
|
|
"CLAUDE_CONFIG_DIR",
|
|
"CODEX_HOME",
|
|
"COPILOT_HOME",
|
|
"GROK_HOME",
|
|
"OMP_PROFILE",
|
|
"OPENCODE_CONFIG",
|
|
"PI_CODING_AGENT_DIR",
|
|
"PI_CONFIG_DIR",
|
|
"PI_PROFILE",
|
|
"SAND_DATA_ROOT",
|
|
"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);
|
|
};
|