INNER CODE UNIT · TypeScript

systemEnv

lidge-jun/opencodex · src/cli/index.ts:861

      const systemEnv = await injectSystemEnv(live.port, config).catch(() => ({ injected: false }));
      if (siblingOfLivePort() === null) reportShellHookFailure(reconcileShellHook(systemEnv.injected));
      if (!systemEnv.injected) await syncClaudeAgentDefsAtProxyStartup(config, live.port);
      // Refresh the Grok Build fence too (same contract as start). Keep the observed
      // bind scope for admission and its responding address for the destination.
      // The reconciler re-reads immediately before each client-file mutation;
      // config.hostname may have drifted from the running proxy's bind scope.
      if (siblingOfLivePort() === null) await reconcileEnsureDesiredIntegrations(
        live.port,
        { kind: "live", hostname: live.hostname, probeHostname: live.probeHostname },
      );
      console.log(`✅ Proxy running on port ${live.port}`);
      return true;
    }

  const pinPort = config.port ?? 10100;
  const child = spawn(process.execPath, startArgv(pinPort > 0 ? pinPort : undefined), {
    detached: true,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…