opencode-supertask 0.1.30 → 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.
package/dist/cli/index.js CHANGED
@@ -21232,7 +21232,7 @@ function pm2JsonList(env = process.env) {
21232
21232
  function gatewayEntryFromProcess(processInfo) {
21233
21233
  const args = processInfo?.pm2_env?.args ?? processInfo?.args;
21234
21234
  const candidates = Array.isArray(args) ? [...args].reverse() : typeof args === "string" ? [args] : [];
21235
- const savedCwd = processInfo?.pm2_env?.pm_cwd;
21235
+ const savedCwd = processInfo?.pm2_env?.pm_cwd ?? processInfo?.pm_cwd;
21236
21236
  for (const candidate of candidates) {
21237
21237
  const path = typeof savedCwd === "string" ? runtimePath(candidate, savedCwd) : candidate;
21238
21238
  if (existsSync5(path)) return resolve3(path);
@@ -21252,7 +21252,7 @@ function gatewayRuntimeFromProcess(processInfo) {
21252
21252
  const gatewayEntry = gatewayEntryFromProcess(processInfo);
21253
21253
  if (!gatewayEntry) return null;
21254
21254
  const savedBunPath = processInfo?.pm2_env?.pm_exec_path ?? processInfo?.pm_exec_path;
21255
- const savedCwd = processInfo?.pm2_env?.pm_cwd;
21255
+ const savedCwd = processInfo?.pm2_env?.pm_cwd ?? processInfo?.pm_cwd;
21256
21256
  const savedEnv = gatewayEnvironmentFromProcess(processInfo);
21257
21257
  if (typeof savedBunPath !== "string" || typeof savedCwd !== "string") return null;
21258
21258
  try {