π File detail
utils/sessionEnvVars.ts
π― Use case
This file lives under βutils/β, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, β¦). On the API surface it exposes getSessionEnvVars, setSessionEnvVar, deleteSessionEnvVar, and clearSessionEnvVars β mainly functions, hooks, or classes. What the file header says: Session-scoped environment variables set via /env. Applied only to spawned child processes (via bash provider env overrides), not to the REPL process itself.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
Session-scoped environment variables set via /env. Applied only to spawned child processes (via bash provider env overrides), not to the REPL process itself.
π€ Exports (heuristic)
getSessionEnvVarssetSessionEnvVardeleteSessionEnvVarclearSessionEnvVars
π₯οΈ Source preview
/**
* Session-scoped environment variables set via /env.
* Applied only to spawned child processes (via bash provider env overrides),
* not to the REPL process itself.
*/
const sessionEnvVars = new Map<string, string>()
export function getSessionEnvVars(): ReadonlyMap<string, string> {
return sessionEnvVars
}
export function setSessionEnvVar(name: string, value: string): void {
sessionEnvVars.set(name, value)
}
export function deleteSessionEnvVar(name: string): void {
sessionEnvVars.delete(name)
}
export function clearSessionEnvVars(): void {
sessionEnvVars.clear()
}