Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

359 B
Raw Blame
'use strict';

function resolveInvocationEnvironment(options = {}) {
  if (Object.prototype.hasOwnProperty.call(options, 'env')) {
    return { ...(options.env || {}) };
  }

  if (typeof options.homeDir === 'string' && options.homeDir.trim() !== '') {
    return {};
  }

  return { ...process.env };
}

module.exports = {
  resolveInvocationEnvironment,
};