opencode-supertask 0.1.29 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28333,7 +28333,7 @@ function pm2JsonList(env = process.env) {
28333
28333
  function gatewayEntryFromProcess(processInfo) {
28334
28334
  const args = processInfo?.pm2_env?.args ?? processInfo?.args;
28335
28335
  const candidates = Array.isArray(args) ? [...args].reverse() : typeof args === "string" ? [args] : [];
28336
- const savedCwd = processInfo?.pm2_env?.pm_cwd;
28336
+ const savedCwd = processInfo?.pm2_env?.pm_cwd ?? processInfo?.pm_cwd;
28337
28337
  for (const candidate of candidates) {
28338
28338
  const path = typeof savedCwd === "string" ? runtimePath(candidate, savedCwd) : candidate;
28339
28339
  if (existsSync4(path)) return resolve(path);
@@ -28353,7 +28353,7 @@ function gatewayRuntimeFromProcess(processInfo) {
28353
28353
  const gatewayEntry = gatewayEntryFromProcess(processInfo);
28354
28354
  if (!gatewayEntry) return null;
28355
28355
  const savedBunPath = processInfo?.pm2_env?.pm_exec_path ?? processInfo?.pm_exec_path;
28356
- const savedCwd = processInfo?.pm2_env?.pm_cwd;
28356
+ const savedCwd = processInfo?.pm2_env?.pm_cwd ?? processInfo?.pm_cwd;
28357
28357
  const savedEnv = gatewayEnvironmentFromProcess(processInfo);
28358
28358
  if (typeof savedBunPath !== "string" || typeof savedCwd !== "string") return null;
28359
28359
  try {