refactor(env): migrated environment variables from OMP_ to PI_ prefix and centralized access via getEnv()
- Migrated environment variable access from direct process.env to centralized getEnv() utility function across all packages. - Renamed environment variable prefix from OMP_ to PI_ throughout codebase (e.g., OMP_CODING_AGENT_DIR -> PI_CODING_AGENT_DIR). - Removed automatic environment variable migration from PI_ to OMP_ prefixes via migrate-env.ts module. - Removed env setting from configuration schema and applyEnvironmentVariables() method from settings. - Updated CI/CD build configuration to use PI_COMPILED flag instead of OMP_COMPILED. - Changed venvPath property in PythonRuntime from nullable (string | null) to optional (string | undefined).
This commit is contained in:
@@ -160,8 +160,8 @@ afterEach(async () => {
|
||||
|
||||
describe("warmPythonEnvironment", () => {
|
||||
it("caches prelude docs on warmup", async () => {
|
||||
const previousSkip = process.env.OMP_PYTHON_SKIP_CHECK;
|
||||
process.env.OMP_PYTHON_SKIP_CHECK = "1";
|
||||
const previousSkip = process.env.PI_PYTHON_SKIP_CHECK;
|
||||
process.env.PI_PYTHON_SKIP_CHECK = "1";
|
||||
using tempDir = TempDir.createSync("@python-executor-");
|
||||
const docs: PreludeHelper[] = [
|
||||
{
|
||||
@@ -188,9 +188,9 @@ describe("warmPythonEnvironment", () => {
|
||||
|
||||
startSpy.mockRestore();
|
||||
if (previousSkip === undefined) {
|
||||
delete process.env.OMP_PYTHON_SKIP_CHECK;
|
||||
delete process.env.PI_PYTHON_SKIP_CHECK;
|
||||
} else {
|
||||
process.env.OMP_PYTHON_SKIP_CHECK = previousSkip;
|
||||
process.env.PI_PYTHON_SKIP_CHECK = previousSkip;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user